chunk-vendors.0488c6c1.js 2.7 MB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors"],{"0046":function(e,t,n){var r=n("6d8b"),i=r.each,o=r.createHashMap,a=n("4f85"),s=n("3301"),c=a.extend({type:"series.parallel",dependencies:["parallel"],visualColorAccessPath:"lineStyle.color",getInitialData:function(e,t){var n=this.getSource();return u(n,this),s(n,this)},getRawIndicesByActiveState:function(e){var t=this.coordinateSystem,n=this.getData(),r=[];return t.eachActiveState(n,(function(t,i){e===t&&r.push(n.getRawIndex(i))})),r},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 u(e,t){if(!e.encodeDefine){var n=t.ecModel.getComponent("parallel",t.get("parallelIndex"));if(n){var r=e.encodeDefine=o();i(n.dimensions,(function(e){var t=l(e);r.set(e,t)}))}}}function l(e){return+e.replace("dim","")}e.exports=c},"004f":function(e,t,n){var r=n("6d8b"),i=n("72b6"),o=n("2306"),a=n("a15a"),s=a.createSymbol,c=n("f934"),u=n("cbb0"),l=i.extend({type:"visualMap.piecewise",doRender:function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get("textGap"),i=t.textStyleModel,a=i.getFont(),s=i.getTextColor(),u=this._getItemAlign(),l=t.itemSize,d=this._getViewData(),h=d.endsText,f=r.retrieve(t.get("showLabel",!0),!h);function p(i){var c=i.piece,d=new o.Group;d.onclick=r.bind(this._onItemClick,this,c),this._enableHoverLink(d,i.indexInModelPieceList);var h=t.getRepresentValue(c);if(this._createItemSymbol(d,h,[0,0,l[0],l[1]]),f){var p=this.visualMapModel.getValueState(h);d.add(new o.Text({style:{x:"right"===u?-n:l[0]+n,y:l[1]/2,text:c.text,textVerticalAlign:"middle",textAlign:u,textFont:a,textFill:s,opacity:"outOfRange"===p?.5:1}}))}e.add(d)}h&&this._renderEndsText(e,h[0],l,f,u),r.each(d.viewPieceList,p,this),h&&this._renderEndsText(e,h[1],l,f,u),c.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:u.makeHighDownBatch(n.findTargetDataIndices(t),n)})}e.on("mouseover",r.bind(n,this,"highlight")).on("mouseout",r.bind(n,this,"downplay"))},_getItemAlign:function(){var e=this.visualMapModel,t=e.option;if("vertical"===t.orient)return u.getItemAlign(e,this.api,e.itemSize);var n=t.align;return n&&"auto"!==n||(n="left"),n},_renderEndsText:function(e,t,n,r,i){if(t){var a=new o.Group,s=this.visualMapModel.textStyleModel;a.add(new o.Text({style:{x:r?"right"===i?n[0]:0:n[0]/2,y:n[1]/2,textVerticalAlign:"middle",textAlign:r?i:"center",text:t,textFont:s.getFont(),textFill:s.getTextColor()}})),e.add(a)}},_getViewData:function(){var e=this.visualMapModel,t=r.map(e.getPieceList(),(function(e,t){return{piece:e,indexInModelPieceList:t}})),n=e.get("text"),i=e.get("orient"),o=e.get("inverse");return("horizontal"===i?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,i=r.clone(n.selected),o=t.getSelectedMapKey(e);"single"===n.selectedMode?(i[o]=!0,r.each(i,(function(e,t){i[t]=t===o}))):i[o]=!i[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}}),d=l;e.exports=d},"007d":function(e,t,n){var r=n("3eba");n("cb8f"),n("a96b"),n("42f6"),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},(function(){})),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},(function(){}))},"00b4":function(e,t,n){"use strict";n("ac1f");var r=n("23e7"),i=n("da84"),o=n("c65b"),a=n("e330"),s=n("1626"),c=n("861d"),u=function(){var e=!1,t=/[ac]/;return t.exec=function(){return e=!0,/./.exec.apply(this,arguments)},!0===t.test("abc")&&e}(),l=i.Error,d=a(/./.test);r({target:"RegExp",proto:!0,forced:!u},{test:function(e){var t=this.exec;if(!s(t))return d(this,e);var n=o(t,this,e);if(null!==n&&!c(n))throw new l("RegExp exec method returned something other than an Object or null");return!!n}})},"00ba":function(e,t,n){var r=n("3eba"),i=n("6d8b"),o=n("e46b"),a=n("e0d3"),s=a.defaultEmphasis,c=n("0f99"),u=c.makeSeriesEncodeForNameBased,l=n("c4a3"),d=r.extendSeriesModel({type:"series.funnel",init:function(e){d.superApply(this,"init",arguments),this.legendVisualProvider=new l(i.bind(this.getData,this),i.bind(this.getRawData,this)),this._defaultLabelLine(e)},getInitialData:function(e,t){return o(this,{coordDimensions:["value"],encodeDefaulter:i.curry(u,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=d.superCall(this,"getDataParams",e),r=t.mapDimension("value"),i=t.getSum(r);return n.percent=i?+(t.get(r,e)/i*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}}}}),h=d;e.exports=h},"00d8":function(e,t,n){var r=n("6d8b");function i(e,t){return t=t||[0,0],r.map([0,1],(function(n){var r=t[n],i=e[n]/2,o=[],a=[];return o[n]=r-i,a[n]=r+i,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:r.bind(i,e)}}}e.exports=o},"00ee":function(e,t,n){var r=n("b622"),i=r("toStringTag"),o={};o[i]="z",e.exports="[object z]"===String(o)},"0141":function(e,t,n){var r=n("6d8b"),i=n("9850"),o=n("6cc5"),a=n("5b87");function s(e,t,n,r){o.call(this,e),this.map=t;var i=a.load(t,n);this._nameCoordMap=i.nameCoordMap,this._regionsMap=i.regionsMap,this._invertLongitute=null==r||r,this.regions=i.regions,this._rect=i.boundingRect}function c(e,t,n,r){var i=n.geoModel,o=n.seriesModel,a=i?i.coordinateSystem:o?o.coordinateSystem||(o.getReferringComponents("geo")[0]||{}).coordinateSystem:null;return a===this?a[e](r):null}s.prototype={constructor:s,type:"geo",dimensions:["lng","lat"],containCoord:function(e){for(var t=this.regions,n=0;n<t.length;n++)if(t[n].contain(e))return!0;return!1},transformTo:function(e,t,n,r){var o=this.getBoundingRect(),a=this._invertLongitute;o=o.clone(),a&&(o.y=-o.y-o.height);var s=this._rawTransformable;if(s.transform=o.calculateTransform(new i(e,t,n,r)),s.decomposeTransform(),a){var c=s.scale;c[1]=-c[1]}s.updateTransform(),this._updateTransform()},getRegion:function(e){return this._regionsMap.get(e)},getRegionByCoord:function(e){for(var t=this.regions,n=0;n<t.length;n++)if(t[n].contain(e))return t[n]},addGeoCoord:function(e,t){this._nameCoordMap.set(e,t)},getGeoCoord:function(e){return this._nameCoordMap.get(e)},getBoundingRect:function(){return this._rect},dataToPoint:function(e,t,n){if("string"===typeof e&&(e=this.getGeoCoord(e)),e)return o.prototype.dataToPoint.call(this,e,t,n)},convertToPixel:r.curry(c,"dataToPoint"),convertFromPixel:r.curry(c,"pointToData")},r.mixin(s,o);var u=s;e.exports=u},"0156":function(e,t,n){var r=n("6d8b");function i(e,t,n){n=n||{};var i=e.coordinateSystem,o=t.axis,a={},s=o.getAxesOnZeroOf()[0],c=o.position,u=s?"onZero":c,l=o.dim,d=i.getRect(),h=[d.x,d.x+d.width,d.y,d.y+d.height],f={left:0,right:1,top:0,bottom:1,onZero:2},p=t.get("offset")||0,g="x"===l?[h[2]-p,h[3]+p]:[h[0]-p,h[1]+p];if(s){var m=s.toGlobalCoord(s.dataToCoord(0));g[f.onZero]=Math.max(Math.min(m,g[1]),g[0])}a.position=["y"===l?g[f[u]]:h[0],"x"===l?g[f[u]]:h[3]],a.rotation=Math.PI/2*("x"===l?0:1);var v={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=v[c],a.labelOffset=s?g[f[c]]-g[f.onZero]:0,t.get("axisTick.inside")&&(a.tickDirection=-a.tickDirection),r.retrieve(n.labelInside,t.get("axisLabel.inside"))&&(a.labelDirection=-a.labelDirection);var y=t.get("axisLabel.rotate");return a.labelRotate="top"===u?-y:y,a.z2=1,a}t.layout=i},"01b4":function(e,t){var n=function(){this.head=null,this.tail=null};n.prototype={add:function(e){var t={item:e,next:null};this.head?this.tail.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}},e.exports=n},"01ed":function(e,t,n){var r=n("3eba"),i=n("6d8b"),o=n("2306");n("5aa9"),n("af24"),r.extendComponentView({type:"grid",render:function(e,t){this.group.removeAll(),e.get("show")&&this.group.add(new o.Rect({shape:e.coordinateSystem.getRect(),style:i.defaults({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))}}),r.registerPreprocessor((function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})}))},"01ef":function(e,t){function n(e,t,n){var r=e.target,i=r.position;i[0]+=t,i[1]+=n,r.dirty()}function r(e,t,n,r){var i=e.target,o=e.zoomLimit,a=i.position,s=i.scale,c=e.zoom=e.zoom||1;if(c*=t,o){var u=o.min||0,l=o.max||1/0;c=Math.max(Math.min(l,c),u)}var d=c/e.zoom;e.zoom=c,a[0]-=(n-a[0])*(d-1),a[1]-=(r-a[1])*(d-1),s[0]*=d,s[1]*=d,i.dirty()}t.updateViewOnPan=n,t.updateViewOnZoom=r},"0352":function(e,t,n){var r=n("6cb7"),i=n("b12f"),o=n("0f99"),a=o.detectSourceFormat,s=n("93d0"),c=s.SERIES_LAYOUT_BY_COLUMN;r.extend({type:"dataset",defaultOption:{seriesLayoutBy:c,sourceHeader:null,dimensions:null,source:null},optionUpdated:function(){a(this)}}),i.extend({type:"dataset"})},"0366":function(e,t,n){var r=n("e330"),i=n("59ed"),o=n("40d5"),a=r(r.bind);e.exports=function(e,t){return i(e),void 0===t?e:o?a(e,t):function(){return e.apply(t,arguments)}}},"037e":function(e,t,n){},"042d":function(e,t,n){},"04d1":function(e,t,n){var r=n("342f"),i=r.match(/firefox\/(\d+)/i);e.exports=!!i&&+i[1]},"04f6":function(e,t){var n=32,r=7;function i(e){var t=0;while(e>=n)t|=1&e,e>>=1;return e+t}function o(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){while(i<n&&r(e[i],e[i-1])<0)i++;a(e,t,i)}else while(i<n&&r(e[i],e[i-1])>=0)i++;return i-t}function a(e,t,n){n--;while(t<n){var r=e[t];e[t++]=e[n],e[n--]=r}}function s(e,t,n,r,i){for(r===t&&r++;r<n;r++){var o,a=e[r],s=t,c=r;while(s<c)o=s+c>>>1,i(a,e[o])<0?c=o:s=o+1;var u=r-s;switch(u){case 3:e[s+3]=e[s+2];case 2:e[s+2]=e[s+1];case 1:e[s+1]=e[s];break;default:while(u>0)e[s+u]=e[s+u-1],u--}e[s]=a}}function c(e,t,n,r,i,o){var a=0,s=0,c=1;if(o(e,t[n+i])>0){s=r-i;while(c<s&&o(e,t[n+i+c])>0)a=c,c=1+(c<<1),c<=0&&(c=s);c>s&&(c=s),a+=i,c+=i}else{s=i+1;while(c<s&&o(e,t[n+i-c])<=0)a=c,c=1+(c<<1),c<=0&&(c=s);c>s&&(c=s);var u=a;a=i-c,c=i-u}a++;while(a<c){var l=a+(c-a>>>1);o(e,t[n+l])>0?a=l+1:c=l}return c}function u(e,t,n,r,i,o){var a=0,s=0,c=1;if(o(e,t[n+i])<0){s=i+1;while(c<s&&o(e,t[n+i-c])<0)a=c,c=1+(c<<1),c<=0&&(c=s);c>s&&(c=s);var u=a;a=i-c,c=i-u}else{s=r-i;while(c<s&&o(e,t[n+i+c])>=0)a=c,c=1+(c<<1),c<=0&&(c=s);c>s&&(c=s),a+=i,c+=i}a++;while(a<c){var l=a+(c-a>>>1);o(e,t[n+l])<0?c=l:a=l+1}return c}function l(e,t){var n,i,o=r,a=0,s=0;a=e.length;var l=[];function d(e,t){n[s]=e,i[s]=t,s+=1}function h(){while(s>1){var e=s-2;if(e>=1&&i[e-1]<=i[e]+i[e+1]||e>=2&&i[e-2]<=i[e]+i[e-1])i[e-1]<i[e+1]&&e--;else if(i[e]>i[e+1])break;p(e)}}function f(){while(s>1){var e=s-2;e>0&&i[e-1]<i[e+1]&&e--,p(e)}}function p(r){var o=n[r],a=i[r],l=n[r+1],d=i[r+1];i[r]=a+d,r===s-3&&(n[r+1]=n[r+2],i[r+1]=i[r+2]),s--;var h=u(e[l],e,o,a,0,t);o+=h,a-=h,0!==a&&(d=c(e[o+a-1],e,l,d,d-1,t),0!==d&&(a<=d?g(o,a,l,d):m(o,a,l,d)))}function g(n,i,a,s){var d=0;for(d=0;d<i;d++)l[d]=e[n+d];var h=0,f=a,p=n;if(e[p++]=e[f++],0!==--s)if(1!==i){var g,m,v,y=o;while(1){g=0,m=0,v=!1;do{if(t(e[f],l[h])<0){if(e[p++]=e[f++],m++,g=0,0===--s){v=!0;break}}else if(e[p++]=l[h++],g++,m=0,1===--i){v=!0;break}}while((g|m)<y);if(v)break;do{if(g=u(e[f],l,h,i,0,t),0!==g){for(d=0;d<g;d++)e[p+d]=l[h+d];if(p+=g,h+=g,i-=g,i<=1){v=!0;break}}if(e[p++]=e[f++],0===--s){v=!0;break}if(m=c(l[h],e,f,s,0,t),0!==m){for(d=0;d<m;d++)e[p+d]=e[f+d];if(p+=m,f+=m,s-=m,0===s){v=!0;break}}if(e[p++]=l[h++],1===--i){v=!0;break}y--}while(g>=r||m>=r);if(v)break;y<0&&(y=0),y+=2}if(o=y,o<1&&(o=1),1===i){for(d=0;d<s;d++)e[p+d]=e[f+d];e[p+s]=l[h]}else{if(0===i)throw new Error;for(d=0;d<i;d++)e[p+d]=l[h+d]}}else{for(d=0;d<s;d++)e[p+d]=e[f+d];e[p+s]=l[h]}else for(d=0;d<i;d++)e[p+d]=l[h+d]}function m(n,i,a,s){var d=0;for(d=0;d<s;d++)l[d]=e[a+d];var h=n+i-1,f=s-1,p=a+s-1,g=0,m=0;if(e[p--]=e[h--],0!==--i)if(1!==s){var v=o;while(1){var y=0,_=0,b=!1;do{if(t(l[f],e[h])<0){if(e[p--]=e[h--],y++,_=0,0===--i){b=!0;break}}else if(e[p--]=l[f--],_++,y=0,1===--s){b=!0;break}}while((y|_)<v);if(b)break;do{if(y=i-u(l[f],e,n,i,i-1,t),0!==y){for(p-=y,h-=y,i-=y,m=p+1,g=h+1,d=y-1;d>=0;d--)e[m+d]=e[g+d];if(0===i){b=!0;break}}if(e[p--]=l[f--],1===--s){b=!0;break}if(_=s-c(e[h],l,0,s,s-1,t),0!==_){for(p-=_,f-=_,s-=_,m=p+1,g=f+1,d=0;d<_;d++)e[m+d]=l[g+d];if(s<=1){b=!0;break}}if(e[p--]=e[h--],0===--i){b=!0;break}v--}while(y>=r||_>=r);if(b)break;v<0&&(v=0),v+=2}if(o=v,o<1&&(o=1),1===s){for(p-=i,h-=i,m=p+1,g=h+1,d=i-1;d>=0;d--)e[m+d]=e[g+d];e[p]=l[f]}else{if(0===s)throw new Error;for(g=p-(s-1),d=0;d<s;d++)e[g+d]=l[d]}}else{for(p-=i,h-=i,m=p+1,g=h+1,d=i-1;d>=0;d--)e[m+d]=e[g+d];e[p]=l[f]}else for(g=p-(s-1),d=0;d<s;d++)e[g+d]=l[d]}n=[],i=[],this.mergeRuns=h,this.forceMergeRuns=f,this.pushRun=d}function d(e,t,r,a){r||(r=0),a||(a=e.length);var c=a-r;if(!(c<2)){var u=0;if(c<n)return u=o(e,r,a,t),void s(e,r,a,r+u,t);var d=new l(e,t),h=i(c);do{if(u=o(e,r,a,t),u<h){var f=c;f>h&&(f=h),s(e,r,r+f,r+u,t),u=f}d.pushRun(r,u),d.mergeRuns(),c-=u,r+=u}while(0!==c);d.forceMergeRuns()}}e.exports=d},"04fb":function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var i=r(n("7037")),o=r(n("970b"));n("0ca1");var a=r(n("9886")),s=n("5557"),c=n("a736"),u=function e(t){if((0,o["default"])(this,e),!t)return console.error("Charts Missing parameters!"),!1;var n=t.clientWidth,r=t.clientHeight,i=document.createElement("canvas");i.setAttribute("width",n),i.setAttribute("height",r),t.appendChild(i);var s={container:t,canvas:i,render:new a["default"](i),option:null};Object.assign(this,s)};t["default"]=u,u.prototype.setOption=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e||"object"!==(0,i["default"])(e))return console.error("setOption Missing parameters!"),!1;t&&this.render.graphs.forEach((function(e){return e.animationEnd()}));var n=(0,s.deepClone)(e,!0);(0,c.mergeColor)(this,n),(0,c.grid)(this,n),(0,c.axis)(this,n),(0,c.radarAxis)(this,n),(0,c.title)(this,n),(0,c.bar)(this,n),(0,c.line)(this,n),(0,c.pie)(this,n),(0,c.radar)(this,n),(0,c.gauge)(this,n),(0,c.legend)(this,n),this.option=e,this.render.launchAnimation()},u.prototype.resize=function(){var e=this.container,t=this.canvas,n=this.render,r=this.option,i=e.clientWidth,o=e.clientHeight;t.setAttribute("width",i),t.setAttribute("height",o),n.area=[i,o],this.setOption(r)}},"050c":function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"bezierCurveToPolyline",{enumerable:!0,get:function(){return i.bezierCurveToPolyline}}),Object.defineProperty(t,"getBezierCurveLength",{enumerable:!0,get:function(){return i.getBezierCurveLength}}),Object.defineProperty(t,"polylineToBezierCurve",{enumerable:!0,get:function(){return o["default"]}}),t["default"]=void 0;var i=n("2db9"),o=r(n("ae10")),a={bezierCurveToPolyline:i.bezierCurveToPolyline,getBezierCurveLength:i.getBezierCurveLength,polylineToBezierCurve:o["default"]};t["default"]=a},"057f":function(e,t,n){var r=n("c6b6"),i=n("fc6a"),o=n("241c").f,a=n("4dae"),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(e){try{return o(e)}catch(t){return a(s)}};e.exports.f=function(e){return s&&"Window"==r(e)?c(e):o(i(e))}},"0655":function(e,t,n){var r=n("8728"),i=1e-8;function o(e,t){return Math.abs(e-t)<i}function a(e,t,n){var i=0,a=e[0];if(!a)return!1;for(var s=1;s<e.length;s++){var c=e[s];i+=r(a[0],a[1],c[0],c[1],t,n),a=c}var u=e[0];return o(a[0],u[0])&&o(a[1],u[1])||(i+=r(a[0],a[1],u[0],u[1],t,n)),0!==i}t.contain=a},"0676":function(e,t,n){function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n("d9e2"),e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},"0680":function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.axis=v;var i=r(n("7037")),o=r(n("278c")),a=r(n("9523")),s=r(n("448a")),c=n("18ad"),u=n("9d85"),l=n("becb"),d=n("5557");function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){(0,a["default"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var p={xAxisConfig:u.xAxisConfig,yAxisConfig:u.yAxisConfig},g=(Math.min,Math.max,Math.abs),m=Math.pow;function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.xAxis,r=t.yAxis,i=t.series,o=[];n&&r&&i&&(o=y(n,r),o=_(o),o=o.filter((function(e){var t=e.show;return t})),o=b(o),o=S(o,i),o=L(o),o=P(o,e),o=N(o,e),o=F(o,e),o=G(o,e)),(0,c.doUpdate)({chart:e,series:o,key:"axisLine",getGraphConfig:V}),(0,c.doUpdate)({chart:e,series:o,key:"axisTick",getGraphConfig:z}),(0,c.doUpdate)({chart:e,series:o,key:"axisLabel",getGraphConfig:q}),(0,c.doUpdate)({chart:e,series:o,key:"axisName",getGraphConfig:X}),(0,c.doUpdate)({chart:e,series:o,key:"splitLine",getGraphConfig:te}),e.axisData=o}function y(e,t){var n,r,i=[],o=[];e instanceof Array?(n=i).push.apply(n,(0,s["default"])(e)):i.push(e);t instanceof Array?(r=o).push.apply(r,(0,s["default"])(t)):o.push(t);return i.splice(2),o.splice(2),i=i.map((function(e,t){return f(f({},e),{},{index:t,axis:"x"})})),o=o.map((function(e,t){return f(f({},e),{},{index:t,axis:"y"})})),[].concat((0,s["default"])(i),(0,s["default"])(o))}function _(e){var t=e.filter((function(e){var t=e.axis;return"x"===t})),n=e.filter((function(e){var t=e.axis;return"y"===t}));return t=t.map((function(e){return(0,l.deepMerge)((0,d.deepClone)(u.xAxisConfig),e)})),n=n.map((function(e){return(0,l.deepMerge)((0,d.deepClone)(u.yAxisConfig),e)})),[].concat((0,s["default"])(t),(0,s["default"])(n))}function b(e){var t=e.filter((function(e){var t=e.data;return"value"===t})),n=e.filter((function(e){var t=e.data;return"value"!==t}));return t.forEach((function(e){"boolean"!==typeof e.boundaryGap&&(e.boundaryGap=!1)})),n.forEach((function(e){"boolean"!==typeof e.boundaryGap&&(e.boundaryGap=!0)})),[].concat((0,s["default"])(t),(0,s["default"])(n))}function S(e,t){var n=e.filter((function(e){var t=e.data;return"value"===t})),r=e.filter((function(e){var t=e.data;return t instanceof Array}));return n=x(n,t),r=O(r),[].concat((0,s["default"])(n),(0,s["default"])(r))}function x(e,t){return e.map((function(e){var n=w(e,t),r=M(e,n),i=(0,o["default"])(r,2),a=i[0],s=i[1],c=R(a,s,e),u=e.axisLabel.formatter,l=[];return l=a<0&&s>0?E(a,s,c):A(a,s,c),l=l.map((function(e){return parseFloat(e.toFixed(2))})),f(f({},e),{},{maxValue:l.slice(-1)[0],minValue:l[0],label:D(l,u)})}))}function w(e,t){if(t=t.filter((function(e){var t=e.show,n=e.type;return!1!==t&&"pie"!==n})),0===t.length)return[0,0];var n=e.index,r=e.axis;t=C(t);var i=r+"Axis",o=t.filter((function(e){return e[i]===n}));return o.length||(o=t),I(o)}function I(e){if(e){var t=Math.min.apply(Math,(0,s["default"])(e.map((function(e){var t=e.data;return Math.min.apply(Math,(0,s["default"])((0,l.filterNonNumber)(t)))})))),n=Math.max.apply(Math,(0,s["default"])(e.map((function(e){var t=e.data;return Math.max.apply(Math,(0,s["default"])((0,l.filterNonNumber)(t)))}))));return[t,n]}}function C(e){var t=(0,d.deepClone)(e,!0);return e.forEach((function(n,r){var i=(0,l.mergeSameStackData)(n,e);t[r].data=i})),t}function M(e,t){var n=e.min,r=e.max,a=e.axis,s=(0,o["default"])(t,2),c=s[0],u=s[1],l=(0,i["default"])(n),d=(0,i["default"])(r);if(k(n)||(n=p[a+"AxisConfig"].min,l="string"),k(r)||(r=p[a+"AxisConfig"].max,d="string"),"string"===l){n=parseInt(c-g(c*parseFloat(n)/100));var h=T(n);n=parseFloat((n/h-.1).toFixed(1))*h}if("string"===d){r=parseInt(u+g(u*parseFloat(r)/100));var f=T(r);r=parseFloat((r/f+.1).toFixed(1))*f}return[n,r]}function T(e){var t=g(e).toString(),n=t.length,r=t.replace(/0*$/g,"").indexOf("0"),i=n-1;return-1!==r&&(i-=r),m(10,i)}function k(e){var t=(0,i["default"])(e),n="string"===t&&/^\d+%$/.test(e),r="number"===t;return n||r}function E(e,t,n){var r=[],i=[],o=0,a=0;do{r.push(o-=n)}while(o>e);do{i.push(a+=n)}while(a<t);return[].concat((0,s["default"])(r.reverse()),[0],(0,s["default"])(i))}function A(e,t,n){var r=[e],i=e;do{r.push(i+=n)}while(i<t);return r}function D(e,t){return t?("string"===typeof t&&(e=e.map((function(e){return t.replace("{value}",e)}))),"function"===typeof t&&(e=e.map((function(e,n){return t({value:e,index:n})}))),e):e}function O(e){return e.map((function(e){var t=e.data,n=e.axisLabel.formatter;return f(f({},e),{},{label:D(t,n)})}))}function R(e,t,n){var r=n.interval,i=n.minInterval,o=n.maxInterval,a=n.splitNumber,s=n.axis,c=p[s+"AxisConfig"];if("number"!==typeof r&&(r=c.interval),"number"!==typeof i&&(i=c.minInterval),"number"!==typeof o&&(o=c.maxInterval),"number"!==typeof a&&(a=c.splitNumber),"number"===typeof r)return r;var u=parseInt((t-e)/(a-1));return u.toString().length>1&&(u=parseInt(u.toString().replace(/\d$/,"0"))),0===u&&(u=1),"number"===typeof i&&u<i?i:"number"===typeof o&&u>o?o:u}function L(e){var t=e.filter((function(e){var t=e.axis;return"x"===t})),n=e.filter((function(e){var t=e.axis;return"y"===t}));return t[0]&&!t[0].position&&(t[0].position=u.xAxisConfig.position),t[1]&&!t[1].position&&(t[1].position="bottom"===t[0].position?"top":"bottom"),n[0]&&!n[0].position&&(n[0].position=u.yAxisConfig.position),n[1]&&!n[1].position&&(n[1].position="left"===n[0].position?"right":"left"),[].concat((0,s["default"])(t),(0,s["default"])(n))}function P(e,t){var n=t.gridArea,r=n.x,i=n.y,o=n.w,a=n.h;return e=e.map((function(e){var t=e.position,n=[];return"left"===t?n=[[r,i],[r,i+a]].reverse():"right"===t?n=[[r+o,i],[r+o,i+a]].reverse():"top"===t?n=[[r,i],[r+o,i]]:"bottom"===t&&(n=[[r,i+a],[r+o,i+a]]),f(f({},e),{},{linePosition:n})})),e}function N(e,t){return e.map((function(e){var t=e.axis,n=e.linePosition,r=e.position,i=e.label,a=e.boundaryGap;"boolean"!==typeof a&&(a=p[t+"AxisConfig"].boundaryGap);var s=i.length,c=(0,o["default"])(n,2),u=(0,o["default"])(c[0],2),l=u[0],d=u[1],h=(0,o["default"])(c[1],2),g=h[0],m=h[1],v="x"===t?g-l:m-d,y=v/(a?s:s-1),_=new Array(s).fill(0).map((function(e,n){return"x"===t?[l+y*(a?n+.5:n),d]:[l,d+y*(a?n+.5:n)]})),b=U(t,a,r,_,y);return f(f({},e),{},{tickPosition:_,tickLinePosition:b,tickGap:y})}))}function U(e,t,n,r,i){var a="x"===e?1:0,s=5;"x"===e&&"top"===n&&(s=-5),"y"===e&&"left"===n&&(s=-5);var c=r.map((function(e){var t=(0,d.deepClone)(e);return t[a]+=s,[(0,d.deepClone)(e),t]}));return t?(a="x"===e?0:1,s=i/2,c.forEach((function(e){var t=(0,o["default"])(e,2),n=t[0],r=t[1];n[a]+=s,r[a]+=s})),c):c}function F(e,t){return e.map((function(e){var t=e.nameGap,n=e.nameLocation,r=e.position,i=e.linePosition,a=(0,o["default"])(i,2),c=a[0],u=a[1],l=(0,s["default"])(c);"end"===n&&(l=(0,s["default"])(u)),"center"===n&&(l[0]=(c[0]+u[0])/2,l[1]=(c[1]+u[1])/2);var d=0;"top"===r&&"center"===n&&(d=1),"bottom"===r&&"center"===n&&(d=1),"left"===r&&"center"!==n&&(d=1),"right"===r&&"center"!==n&&(d=1);var h=t;return"top"===r&&"end"!==n&&(h*=-1),"left"===r&&"start"!==n&&(h*=-1),"bottom"===r&&"start"===n&&(h*=-1),"right"===r&&"end"===n&&(h*=-1),l[d]+=h,f(f({},e),{},{namePosition:l})}))}function G(e,t){var n=t.gridArea,r=n.w,i=n.h;return e.map((function(e){var t=e.tickLinePosition,n=e.position,a=e.boundaryGap,c=0,u=r;"top"!==n&&"bottom"!==n||(c=1),"top"!==n&&"bottom"!==n||(u=i),"right"!==n&&"bottom"!==n||(u*=-1);var l=t.map((function(e){var t=(0,o["default"])(e,1),n=t[0],r=(0,s["default"])(n);return r[c]+=u,[(0,s["default"])(n),r]}));return a||l.shift(),f(f({},e),{},{splitLinePosition:l})}))}function V(e){var t=e.animationCurve,n=e.animationFrame,r=e.rLevel;return[{name:"polyline",index:r,visible:e.axisLine.show,animationCurve:t,animationFrame:n,shape:j(e),style:B(e)}]}function j(e){var t=e.linePosition;return{points:t}}function B(e){return e.axisLine.style}function z(e){var t=e.animationCurve,n=e.animationFrame,r=e.rLevel,i=H(e),o=W(e);return i.map((function(i){return{name:"polyline",index:r,visible:e.axisTick.show,animationCurve:t,animationFrame:n,shape:i,style:o}}))}function H(e){var t=e.tickLinePosition;return t.map((function(e){return{points:e}}))}function W(e){return e.axisTick.style}function q(e){var t=e.animationCurve,n=e.animationFrame,r=e.rLevel,i=$(e),o=Y(e,i);return i.map((function(i,a){return{name:"text",index:r,visible:e.axisLabel.show,animationCurve:t,animationFrame:n,shape:i,style:o[a],setGraphCenter:function(){}}}))}function $(e){var t=e.label,n=e.tickPosition,r=e.position;return n.map((function(e,n){return{position:K(e,r),content:t[n].toString()}}))}function K(e,t){var n=0,r=10;return"top"!==t&&"bottom"!==t||(n=1),"top"!==t&&"left"!==t||(r=-10),e=(0,d.deepClone)(e),e[n]+=r,e}function Y(e,t){var n=e.position,r=e.axisLabel.style,i=J(n);r=(0,l.deepMerge)(i,r);var o=t.map((function(e){var t=e.position;return f(f({},r),{},{graphCenter:t})}));return o}function J(e){return"left"===e?{textAlign:"right",textBaseline:"middle"}:"right"===e?{textAlign:"left",textBaseline:"middle"}:"top"===e?{textAlign:"center",textBaseline:"bottom"}:"bottom"===e?{textAlign:"center",textBaseline:"top"}:void 0}function X(e){var t=e.animationCurve,n=e.animationFrame,r=e.rLevel;return[{name:"text",index:r,animationCurve:t,animationFrame:n,shape:Z(e),style:Q(e)}]}function Z(e){var t=e.name,n=e.namePosition;return{content:t,position:n}}function Q(e){var t=e.nameLocation,n=e.position,r=e.nameTextStyle,i=ee(n,t);return(0,l.deepMerge)(i,r)}function ee(e,t){return"top"===e&&"start"===t||"bottom"===e&&"start"===t||"left"===e&&"center"===t?{textAlign:"right",textBaseline:"middle"}:"top"===e&&"end"===t||"bottom"===e&&"end"===t||"right"===e&&"center"===t?{textAlign:"left",textBaseline:"middle"}:"top"===e&&"center"===t||"left"===e&&"end"===t||"right"===e&&"end"===t?{textAlign:"center",textBaseline:"bottom"}:"bottom"===e&&"center"===t||"left"===e&&"start"===t||"right"===e&&"start"===t?{textAlign:"center",textBaseline:"top"}:void 0}function te(e){var t=e.animationCurve,n=e.animationFrame,r=e.rLevel,i=ne(e),o=re(e);return i.map((function(i){return{name:"polyline",index:r,visible:e.splitLine.show,animationCurve:t,animationFrame:n,shape:i,style:o}}))}function ne(e){var t=e.splitLinePosition;return t.map((function(e){return{points:e}}))}function re(e){return e.splitLine.style}},"06ad":function(e,t,n){var r=n("4436"),i=n("41ef"),o=n("6d8b"),a=o.isArrayLike,s=Array.prototype.slice;function c(e,t){return e[t]}function u(e,t,n){e[t]=n}function l(e,t,n){return(t-e)*n+e}function d(e,t,n){return n>.5?t:e}function h(e,t,n,r,i){var o=e.length;if(1===i)for(var a=0;a<o;a++)r[a]=l(e[a],t[a],n);else{var s=o&&e[0].length;for(a=0;a<o;a++)for(var c=0;c<s;c++)r[a][c]=l(e[a][c],t[a][c],n)}}function f(e,t,n){var r=e.length,i=t.length;if(r!==i){var o=r>i;if(o)e.length=i;else for(var a=r;a<i;a++)e.push(1===n?t[a]:s.call(t[a]))}var c=e[0]&&e[0].length;for(a=0;a<e.length;a++)if(1===n)isNaN(e[a])&&(e[a]=t[a]);else for(var u=0;u<c;u++)isNaN(e[a][u])&&(e[a][u]=t[a][u])}function p(e,t,n){if(e===t)return!0;var r=e.length;if(r!==t.length)return!1;if(1===n){for(var i=0;i<r;i++)if(e[i]!==t[i])return!1}else{var o=e[0].length;for(i=0;i<r;i++)for(var a=0;a<o;a++)if(e[i][a]!==t[i][a])return!1}return!0}function g(e,t,n,r,i,o,a,s,c){var u=e.length;if(1===c)for(var l=0;l<u;l++)s[l]=m(e[l],t[l],n[l],r[l],i,o,a);else{var d=e[0].length;for(l=0;l<u;l++)for(var h=0;h<d;h++)s[l][h]=m(e[l][h],t[l][h],n[l][h],r[l][h],i,o,a)}}function m(e,t,n,r,i,o,a){var s=.5*(n-e),c=.5*(r-t);return(2*(t-n)+s+c)*a+(-3*(t-n)-2*s-c)*o+s*i+t}function v(e){if(a(e)){var t=e.length;if(a(e[0])){for(var n=[],r=0;r<t;r++)n.push(s.call(e[r]));return n}return s.call(e)}return e}function y(e){return e[0]=Math.floor(e[0]),e[1]=Math.floor(e[1]),e[2]=Math.floor(e[2]),"rgba("+e.join(",")+")"}function _(e){var t=e[e.length-1].value;return a(t&&t[0])?2:1}function b(e,t,n,o,s,c){var u=e._getter,v=e._setter,b="spline"===t,S=o.length;if(S){var x,w=o[0].value,I=a(w),C=!1,M=!1,T=I?_(o):0;o.sort((function(e,t){return e.time-t.time})),x=o[S-1].time;for(var k=[],E=[],A=o[0].value,D=!0,O=0;O<S;O++){k.push(o[O].time/x);var R=o[O].value;if(I&&p(R,A,T)||!I&&R===A||(D=!1),A=R,"string"===typeof R){var L=i.parse(R);L?(R=L,C=!0):M=!0}E.push(R)}if(c||!D){var P=E[S-1];for(O=0;O<S-1;O++)I?f(E[O],P,T):!isNaN(E[O])||isNaN(P)||M||C||(E[O]=P);I&&f(u(e._target,s),P,T);var N,U,F,G,V,j,B=0,z=0;if(C)var H=[0,0,0,0];var W=function(e,t){var n;if(t<0)n=0;else if(t<z){for(N=Math.min(B+1,S-1),n=N;n>=0;n--)if(k[n]<=t)break;n=Math.min(n,S-2)}else{for(n=B;n<S;n++)if(k[n]>t)break;n=Math.min(n-1,S-2)}B=n,z=t;var r=k[n+1]-k[n];if(0!==r)if(U=(t-k[n])/r,b)if(G=E[n],F=E[0===n?n:n-1],V=E[n>S-2?S-1:n+1],j=E[n>S-3?S-1:n+2],I)g(F,G,V,j,U,U*U,U*U*U,u(e,s),T);else{if(C)i=g(F,G,V,j,U,U*U,U*U*U,H,1),i=y(H);else{if(M)return d(G,V,U);i=m(F,G,V,j,U,U*U,U*U*U)}v(e,s,i)}else if(I)h(E[n],E[n+1],U,u(e,s),T);else{var i;if(C)h(E[n],E[n+1],U,H,1),i=y(H);else{if(M)return d(E[n],E[n+1],U);i=l(E[n],E[n+1],U)}v(e,s,i)}},q=new r({target:e._target,life:x,loop:e._loop,delay:e._delay,onframe:W,ondestroy:n});return t&&"spline"!==t&&(q.easing=t),q}}}var S=function(e,t,n,r){this._tracks={},this._target=e,this._loop=t||!1,this._getter=n||c,this._setter=r||u,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};S.prototype={when:function(e,t){var n=this._tracks;for(var r in t)if(t.hasOwnProperty(r)){if(!n[r]){n[r]=[];var i=this._getter(this._target,r);if(null==i)continue;0!==e&&n[r].push({time:0,value:v(i)})}n[r].push({time:e,value:t[r]})}return this},during:function(e){return this._onframeList.push(e),this},pause:function(){for(var e=0;e<this._clipList.length;e++)this._clipList[e].pause();this._paused=!0},resume:function(){for(var e=0;e<this._clipList.length;e++)this._clipList[e].resume();this._paused=!1},isPaused:function(){return!!this._paused},_doneCallback:function(){this._tracks={},this._clipList.length=0;for(var e=this._doneList,t=e.length,n=0;n<t;n++)e[n].call(this)},start:function(e,t){var n,r=this,i=0,o=function(){i--,i||r._doneCallback()};for(var a in this._tracks)if(this._tracks.hasOwnProperty(a)){var s=b(this,e,o,this._tracks[a],a,t);s&&(this._clipList.push(s),i++,this.animation&&this.animation.addClip(s),n=s)}if(n){var c=n.onframe;n.onframe=function(e,t){c(e,t);for(var n=0;n<r._onframeList.length;n++)r._onframeList[n](e,t)}}return i||this._doneCallback(),this},stop:function(e){for(var t=this._clipList,n=this.animation,r=0;r<t.length;r++){var i=t[r];e&&i.onframe(this._target,1),n&&n.removeClip(i)}t.length=0},delay:function(e){return this._delay=e,this},done:function(e){return e&&this._doneList.push(e),this},getClips:function(){return this._clipList}};var x=S;e.exports=x},"06c5":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n("fb6a"),n("d3b7"),n("b0c0"),n("a630"),n("3ca3"),n("ac1f"),n("00b4");var r=n("6b75");function i(e,t){if(e){if("string"===typeof e)return Object(r["a"])(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r["a"])(e,t):void 0}}},"06c7":function(e,t,n){var r=n("6d8b"),i=n("31d9"),o=n("6179"),a=n("b1d4"),s=function(e,t){this.name=e||"",this.depth=0,this.height=0,this.parentNode=null,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.hostTree=t};function c(e){this.root,this.data,this._nodes=[],this.hostModel=e}function u(e,t){var n=t.children;e.parentNode!==t&&(n.push(e),e.parentNode=t)}s.prototype={constructor:s,isRemoved:function(){return this.dataIndex<0},eachNode:function(e,t,n){"function"===typeof e&&(n=t,t=e,e=null),e=e||{},r.isString(e)&&(e={order:e});var i,o=e.order||"preorder",a=this[e.attr||"children"];"preorder"===o&&(i=t.call(n,this));for(var s=0;!i&&s<a.length;s++)a[s].eachNode(e,t,n);"postorder"===o&&t.call(n,this)},updateDepthAndHeight:function(e){var t=0;this.depth=e;for(var n=0;n<this.children.length;n++){var r=this.children[n];r.updateDepthAndHeight(e+1),r.height>t&&(t=r.height)}this.height=t+1},getNodeById:function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,r=n.length;t<r;t++){var i=n[t].getNodeById(e);if(i)return i}},contains:function(e){if(e===this)return!0;for(var t=0,n=this.children,r=n.length;t<r;t++){var i=n[t].contains(e);if(i)return i}},getAncestors:function(e){var t=[],n=e?this:this.parentNode;while(n)t.push(n),n=n.parentNode;return t.reverse(),t},getValue:function(e){var t=this.hostTree.data;return t.get(t.getDimension(e||"value"),this.dataIndex)},setLayout:function(e,t){this.dataIndex>=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)}},c.prototype={constructor:c,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,r=t.length;n<r;n++)t[n].dataIndex=-1;for(n=0,r=e.count();n<r;n++)t[e.getRawIndex(n)].dataIndex=n},clearLayouts:function(){this.data.clearItemLayouts()}},c.createTree=function(e,t,n){var l=new c(t),d=[],h=1;function f(e,t){var n=e.value;h=Math.max(h,r.isArray(n)?n.length:1),d.push(e);var i=new s(e.name,l);t?u(i,t):l.root=i,l._nodes.push(i);var o=e.children;if(o)for(var a=0;a<o.length;a++)f(o[a],i)}f(e),l.root.updateDepthAndHeight(0);var p=a(d,{coordDimensions:["value"],dimensionsCount:h}),g=new o(p,t);return g.initData(d),n&&n(g),i({mainData:g,struct:l,structAttr:"tree"}),l.update(),l};var l=c;e.exports=l},"06cf":function(e,t,n){var r=n("83ab"),i=n("c65b"),o=n("d1e7"),a=n("5c6c"),s=n("fc6a"),c=n("a04b"),u=n("1a2d"),l=n("0cfb"),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=s(e),t=c(t),l)try{return d(e,t)}catch(n){}if(u(e,t))return a(!i(o.f,e,t),e[t])}},"06ea":function(e,t,n){var r=n("4e08"),i=(r.__DEV__,n("6d8b")),o=n("eaea"),a=n("5f14"),s=n("60e3"),c=n("3842"),u=c.reformIntervals,l=o.extend({type:"visualMap.piecewise",defaultOption:{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieceList:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0,showLabel:null},optionUpdated:function(e,t){l.superApply(this,"optionUpdated",arguments),this._pieceList=[],this.resetExtent();var n=this._mode=this._determineMode();d[this._mode].call(this),this._resetSelected(e,t);var r=this.option.categories;this.resetVisual((function(e,t){"categories"===n?(e.mappingMethod="category",e.categories=i.clone(r)):(e.dataExtent=this.getExtent(),e.mappingMethod="piecewise",e.pieceList=i.map(this._pieceList,(function(e){e=i.clone(e);return"inRange"!==t&&(e.visual=null),e})))}))},completeVisualOption:function(){var e=this.option,t={},n=a.listVisualTypes(),r=this.isCategory();function c(e,t,n){return e&&e[t]&&(i.isObject(e[t])?e[t].hasOwnProperty(n):e[t]===n)}i.each(e.pieces,(function(e){i.each(n,(function(n){e.hasOwnProperty(n)&&(t[n]=1)}))})),i.each(t,(function(t,n){var o=0;i.each(this.stateList,(function(t){o|=c(e,t,n)||c(e.target,t,n)}),this),!o&&i.each(this.stateList,(function(t){(e[t]||(e[t]={}))[n]=s.get(n,"inRange"===t?"active":"inactive",r)}))}),this),o.prototype.completeVisualOption.apply(this,arguments)},_resetSelected:function(e,t){var n=this.option,r=this._pieceList,o=(t?n:e).selected||{};if(n.selected=o,i.each(r,(function(e,t){var n=this.getSelectedMapKey(e);o.hasOwnProperty(n)||(o[n]=!0)}),this),"single"===n.selectedMode){var a=!1;i.each(r,(function(e,t){var n=this.getSelectedMapKey(e);o[n]&&(a?o[n]=!1:a=!0)}),this)}},getSelectedMapKey:function(e){return"categories"===this._mode?e.value+"":e.index+""},getPieceList:function(){return this._pieceList},_determineMode:function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},setSelected:function(e){this.option.selected=i.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 r=[],i=n.getData();i.each(this.getDataDimension(i),(function(t,n){var i=a.findPieceIndex(t,this._pieceList);i===e&&r.push(n)}),this),t.push({seriesId:n.id,dataIndex:r})}),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=[],r=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 i.each(o,(function(e){var t=e.interval;t&&(t[0]>s&&c([s,t[0]],"outOfRange"),c(t.slice()),s=t[1])}),this),{stops:t,outerColors:n}}function c(i,o){var a=r.getRepresentValue({interval:i});o||(o=r.getValueState(a));var s=e(a,o);i[0]===-1/0?n[0]=s:i[1]===1/0?n[1]=s:t.push({value:i[0],color:s},{value:i[1],color:s})}}}),d={splitNumber:function(){var e=this.option,t=this._pieceList,n=Math.min(e.precision,20),r=this.getExtent(),o=e.splitNumber;o=Math.max(parseInt(o,10),1),e.splitNumber=o;var a=(r[1]-r[0])/o;while(+a.toFixed(n)!==a&&n<5)n++;e.precision=n,a=+a.toFixed(n),e.minOpen&&t.push({interval:[-1/0,r[0]],close:[0,0]});for(var s=0,c=r[0];s<o;c+=a,s++){var l=s===o-1?r[1]:c+a;t.push({interval:[c,l],close:[1,1]})}e.maxOpen&&t.push({interval:[r[1],1/0],close:[0,0]}),u(t),i.each(t,(function(e,t){e.index=t,e.text=this.formatValueText(e.interval)}),this)},categories:function(){var e=this.option;i.each(e.categories,(function(e){this._pieceList.push({text:this.formatValueText(e,!0),value:e})}),this),h(e,this._pieceList)},pieces:function(){var e=this.option,t=this._pieceList;i.each(e.pieces,(function(e,n){i.isObject(e)||(e={value:e});var r={text:"",index:n};if(null!=e.label&&(r.text=e.label),e.hasOwnProperty("value")){var o=r.value=e.value;r.interval=[o,o],r.close=[1,1]}else{for(var s=r.interval=[],c=r.close=[0,0],u=[1,0,1],l=[-1/0,1/0],d=[],h=0;h<2;h++){for(var f=[["gte","gt","min"],["lte","lt","max"]][h],p=0;p<3&&null==s[h];p++)s[h]=e[f[p]],c[h]=u[p],d[h]=2===p;null==s[h]&&(s[h]=l[h])}d[0]&&s[1]===1/0&&(c[0]=0),d[1]&&s[0]===-1/0&&(c[1]=0),s[0]===s[1]&&c[0]&&c[1]&&(r.value=s[0])}r.visual=a.retrieveVisuals(e),t.push(r)}),this),h(e,t),u(t),i.each(t,(function(e){var t=e.close,n=[["<","≤"][t[1]],[">","≥"][t[0]]];e.text=e.text||this.formatValueText(null!=e.value?e.value:e.interval,!1,n)}),this)}};function h(e,t){var n=e.inverse;("vertical"===e.orient?!n:n)&&t.reverse()}var f=l;e.exports=f},"07d7":function(e,t,n){var r=n("6d8b"),i=n("41ef"),o=n("607d"),a=n("65ed"),s=n("22d1"),c=n("eda2"),u=r.each,l=c.toCamelCase,d=["","-webkit-","-moz-","-o-"],h="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 r.map(d,(function(e){return e+"transition:"+n})).join(";")}function p(e){var t=[],n=e.get("fontSize"),r=e.getTextColor();r&&t.push("color:"+r),t.push("font:"+e.getFont());var i=e.get("lineHeight");null==i&&(i=Math.round(3*n/2)),n&&t.push("line-height:"+i+"px");var o=e.get("textShadowColor"),a=e.get("textShadowBlur")||0,s=e.get("textShadowOffsetX")||0,c=e.get("textShadowOffsetY")||0;return a&&t.push("text-shadow:"+s+"px "+c+"px "+a+"px "+o),u(["decoration","align"],(function(n){var r=e.get(n);r&&t.push("text-"+n+":"+r)})),t.join(";")}function g(e){var t=[],n=e.get("transitionDuration"),r=e.get("backgroundColor"),o=e.getModel("textStyle"),a=e.get("padding");return n&&t.push(f(n)),r&&(s.canvasSupported?t.push("background-Color:"+r):(t.push("background-Color:#"+i.toHex(r)),t.push("filter:alpha(opacity=70)"))),u(["width","color","radius"],(function(n){var r="border-"+n,i=l(r),o=e.get(i);null!=o&&t.push(r+":"+o+("color"===n?"":"px"))})),t.push(p(o)),null!=a&&t.push("padding:"+c.normalizeCssArray(a).join("px ")+"px"),t.join(";")+";"}function m(e,t,n,r,i){var o=t&&t.painter;if(n){var s=o&&o.getViewportRoot();s&&a.transformLocalCoord(e,s,document.body,r,i)}else{e[0]=r,e[1]=i;var c=o&&o.getViewportRootOffset();c&&(e[0]+=c.offsetLeft,e[1]+=c.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}function v(e,t,n){if(s.wxa)return null;var r=document.createElement("div");r.domBelongToZr=!0,this.el=r;var i=this._zr=t.getZr(),a=this._appendToBody=n&&n.appendToBody;this._styleCoord=[0,0,0,0],m(this._styleCoord,i,a,t.getWidth()/2,t.getHeight()/2),a?document.body.appendChild(r):e.appendChild(r),this._container=e,this._show=!1,this._hideTimeout;var c=this;r.onmouseenter=function(){c._enterable&&(clearTimeout(c._hideTimeout),c._show=!0),c._inContent=!0},r.onmousemove=function(e){if(e=e||window.event,!c._enterable){var t=i.handler,n=i.painter.getViewportRoot();o.normalizeEvent(n,e,!0),t.dispatch("mousemove",e)}},r.onmouseleave=function(){c._enterable&&c._show&&c.hideLater(c._hideDelay),c._inContent=!1}}v.prototype={constructor:v,_enterable:!0,update:function(e){var t=this._container,n=t.currentStyle||document.defaultView.getComputedStyle(t),r=t.style;"absolute"!==r.position&&"absolute"!==n.position&&(r.position="relative");var i=e.get("alwaysShowContent");i&&this._moveTooltipIfResized()},_moveTooltipIfResized:function(){var e=this._styleCoord[2],t=this._styleCoord[3],n=e*this._zr.getWidth(),r=t*this._zr.getHeight();this.moveTo(n,r)},show:function(e){clearTimeout(this._hideTimeout);var t=this.el,n=this._styleCoord;t.style.cssText=h+g(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;m(n,this._zr,this._appendToBody,e,t);var r=this.el.style;r.left=n[0]+"px",r.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(r.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 y=v;e.exports=y},"07e6":function(e,t,n){n("4d85"),n("a753")},"07fa":function(e,t,n){var r=n("50c4");e.exports=function(e){return r(e.length)}},"0817":function(e,t,n){var r=n("3eba");n("f306"),n("0046"),n("60d7");var i=n("ab71");r.registerVisual(i)},"085d":function(e,t,n){var r=n("3eba");n("bd92"),n("19e2");var i=n("eabf"),o=n("4c99"),a=n("09b1");r.registerPreprocessor(i),r.registerVisual(o),r.registerLayout(a)},"08c3":function(e,t,n){var r=n("6d8b"),i=n("84ce"),o=function(e,t,n,r){i.call(this,e,t,n),this.type=r||"value",this.model=null};o.prototype={constructor:o,getLabelModel:function(){return this.model.getModel("label")},isHorizontal:function(){return"horizontal"===this.model.get("orient")}},r.inherits(o,i);var a=o;e.exports=a},"09b1":function(e,t,n){var r=n("2306"),i=r.subPixelOptimize,o=n("cccd"),a=n("3842"),s=a.parsePercent,c=n("6d8b"),u=c.retrieve2,l="undefined"!==typeof Float32Array?Float32Array:Array,d={seriesType:"candlestick",plan:o(),reset:function(e){var t=e.coordinateSystem,n=e.getData(),r=f(e,n),o=0,a=1,s=["x","y"],c=n.mapDimension(s[o]),u=n.mapDimension(s[a],!0),d=u[0],p=u[1],g=u[2],m=u[3];if(n.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),!(null==c||u.length<4))return{progress:e.pipelineContext.large?y:v};function v(e,n){var s;while(null!=(s=e.next())){var u=n.get(c,s),l=n.get(d,s),f=n.get(p,s),v=n.get(g,s),y=n.get(m,s),_=Math.min(l,f),b=Math.max(l,f),S=M(_,u),x=M(b,u),w=M(v,u),I=M(y,u),C=[];T(C,x,0),T(C,S,1),C.push(E(I),E(x),E(w),E(S)),n.setItemLayout(s,{sign:h(n,s,l,f,p),initBaseline:l>f?x[a]:S[a],ends:C,brushRect:k(v,y,u)})}function M(e,n){var r=[];return r[o]=n,r[a]=e,isNaN(n)||isNaN(e)?[NaN,NaN]:t.dataToPoint(r)}function T(e,t,n){var a=t.slice(),s=t.slice();a[o]=i(a[o]+r/2,1,!1),s[o]=i(s[o]-r/2,1,!0),n?e.push(a,s):e.push(s,a)}function k(e,t,n){var i=M(e,n),s=M(t,n);return i[o]-=r/2,s[o]-=r/2,{x:i[0],y:i[1],width:a?r:s[0]-i[0],height:a?s[1]-i[1]:r}}function E(e){return e[o]=i(e[o],1),e}}function y(e,n){var r,i,s=new l(4*e.count),u=0,f=[],v=[];while(null!=(i=e.next())){var y=n.get(c,i),_=n.get(d,i),b=n.get(p,i),S=n.get(g,i),x=n.get(m,i);isNaN(y)||isNaN(S)||isNaN(x)?(s[u++]=NaN,u+=3):(s[u++]=h(n,i,_,b,p),f[o]=y,f[a]=S,r=t.dataToPoint(f,null,v),s[u++]=r?r[0]:NaN,s[u++]=r?r[1]:NaN,f[a]=x,r=t.dataToPoint(f,null,v),s[u++]=r?r[1]:NaN)}n.setLayout("largePoints",s)}}};function h(e,t,n,r,i){var o;return o=n>r?-1:n<r?1:t>0?e.get(i,t-1)<=r?1:-1:1,o}function f(e,t){var n,r=e.getBaseAxis(),i="category"===r.type?r.getBandWidth():(n=r.getExtent(),Math.abs(n[1]-n[0])/t.count()),o=s(u(e.get("barMaxWidth"),i),i),a=s(u(e.get("barMinWidth"),1),i),c=e.get("barWidth");return null!=c?s(c,i):Math.max(Math.min(i/2,o),a)}e.exports=d},"0a06":function(e,t,n){"use strict";var r=n("c532"),i=n("30b5"),o=n("f6b4"),a=n("5270"),s=n("4a7b"),c=n("848b"),u=c.validators;function l(e){this.defaults=e,this.interceptors={request:new o,response:new o}}l.prototype.request=function(e,t){"string"===typeof e?(t=t||{},t.url=e):t=e||{},t=s(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&c.assertOptions(n,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var r=[],i=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var o,l=[];if(this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)})),!i){var d=[a,void 0];Array.prototype.unshift.apply(d,r),d=d.concat(l),o=Promise.resolve(t);while(d.length)o=o.then(d.shift(),d.shift());return o}var h=t;while(r.length){var f=r.shift(),p=r.shift();try{h=f(h)}catch(g){p(g);break}}try{o=a(h)}catch(g){return Promise.reject(g)}while(l.length)o=o.then(l.shift(),l.shift());return o},l.prototype.getUri=function(e){return e=s(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.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}))}})),r.forEach(["post","put","patch"],(function(e){l.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}})),e.exports=l},"0a6d":function(e,t,n){n("e4d1"),n("7f72")},"0b25":function(e,t,n){var r=n("da84"),i=n("5926"),o=n("50c4"),a=r.RangeError;e.exports=function(e){if(void 0===e)return 0;var t=i(e),n=o(t);if(t!==n)throw a("Wrong length or index");return n}},"0b42":function(e,t,n){var r=n("da84"),i=n("e8b5"),o=n("68ee"),a=n("861d"),s=n("b622"),c=s("species"),u=r.Array;e.exports=function(e){var t;return i(e)&&(t=e.constructor,o(t)&&(t===u||i(t.prototype))?t=void 0:a(t)&&(t=t[c],null===t&&(t=void 0))),void 0===t?u:t}},"0b44":function(e,t,n){var r=n("607d"),i=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]}i.prototype={constructor:i,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 i=e.touches;if(i){for(var o={points:[],touches:[],target:t,event:e},a=0,s=i.length;a<s;a++){var c=i[a],u=r.clientToLocal(n,c,{});o.points.push([u.zrX,u.zrY]),o.touches.push(c)}this._track.push(o)}},_recognize:function(e){for(var t in s)if(s.hasOwnProperty(t)){var n=s[t](this._track,e);if(n)return n}}};var s={pinch:function(e,t){var n=e.length;if(n){var r=(e[n-1]||{}).points,i=(e[n-2]||{}).points||r;if(i&&i.length>1&&r&&r.length>1){var s=o(r)/o(i);!isFinite(s)&&(s=1),t.pinchScale=s;var c=a(r);return t.pinchX=c[0],t.pinchY=c[1],{type:"pinch",target:e[0].target,event:t}}}}},c=i;e.exports=c},"0b4b":function(e,t,n){n("d28f"),n("f14c"),n("0ee7"),n("ebf9")},"0c12":function(e,t){function n(){}function r(e,t,n,r){for(var i=0,o=t.length,a=0,s=0;i<o;i++){var c=t[i];if(c.removed){for(u=[],l=s;l<s+c.count;l++)u.push(l);c.indices=u,s+=c.count}else{for(var u=[],l=a;l<a+c.count;l++)u.push(l);c.indices=u,a+=c.count,c.added||(s+=c.count)}}return t}function i(e){return{newPos:e.newPos,components:e.components.slice(0)}}n.prototype={diff:function(e,t,n){n||(n=function(e,t){return e===t}),this.equals=n;var o=this;e=e.slice(),t=t.slice();var a=t.length,s=e.length,c=1,u=a+s,l=[{newPos:-1,components:[]}],d=this.extractCommon(l[0],t,e,0);if(l[0].newPos+1>=a&&d+1>=s){for(var h=[],f=0;f<t.length;f++)h.push(f);return[{indices:h,count:t.length}]}function p(){for(var n=-1*c;n<=c;n+=2){var u,d=l[n-1],h=l[n+1],f=(h?h.newPos:0)-n;d&&(l[n-1]=void 0);var p=d&&d.newPos+1<a,g=h&&0<=f&&f<s;if(p||g){if(!p||g&&d.newPos<h.newPos?(u=i(h),o.pushComponent(u.components,void 0,!0)):(u=d,u.newPos++,o.pushComponent(u.components,!0,void 0)),f=o.extractCommon(u,t,e,n),u.newPos+1>=a&&f+1>=s)return r(o,u.components,t,e);l[n]=u}else l[n]=void 0}c++}while(c<=u){var g=p();if(g)return g}},pushComponent:function(e,t,n){var r=e[e.length-1];r&&r.added===t&&r.removed===n?e[e.length-1]={count:r.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,r){var i=t.length,o=n.length,a=e.newPos,s=a-r,c=0;while(a+1<i&&s+1<o&&this.equals(t[a+1],n[s+1]))a++,s++,c++;return c&&e.components.push({count:c}),e.newPos=a,s},tokenize:function(e){return e.slice()},join:function(e){return e.slice()}};var o=new n;function a(e,t,n){return o.diff(e,t,n)}e.exports=a},"0c37":function(e,t,n){var r=n("6d8b"),i="--\x3e",o=function(e){return e.get("autoCurveness")||null},a=function(e,t){var n=o(e),i=20,a=[];if("number"===typeof n)i=n;else if(r.isArray(n))return void(e.__curvenessList=n);t>i&&(i=t);var s=i%2?i+2:i+3;a=[];for(var c=0;c<s;c++)a.push((c%2?c+1:c)/10*(c%2?-1:1));e.__curvenessList=a},s=function(e,t,n){var r=[e.id,e.dataIndex].join("."),o=[t.id,t.dataIndex].join(".");return[n.uid,r,o].join(i)},c=function(e){var t=e.split(i);return[t[0],t[2],t[1]].join(i)},u=function(e,t){var n=s(e.node1,e.node2,t);return t.__edgeMap[n]},l=function(e,t){var n=d(s(e.node1,e.node2,t),t),r=d(s(e.node2,e.node1,t),t);return n+r},d=function(e,t){var n=t.__edgeMap;return n[e]?n[e].length:0};function h(e){o(e)&&(e.__curvenessList=[],e.__edgeMap={},a(e))}function f(e,t,n,r){if(o(n)){var i=s(e,t,n),a=n.__edgeMap,u=a[c(i)];a[i]&&!u?a[i].isForward=!0:u&&a[i]&&(u.isForward=!0,a[i].isForward=!1),a[i]=a[i]||[],a[i].push(r)}}function p(e,t,n,i){var h=o(t),f=r.isArray(h);if(!h)return null;var p=u(e,t);if(!p)return null;for(var g=-1,m=0;m<p.length;m++)if(p[m]===n){g=m;break}var v=l(e,t);a(t,v),e.lineStyle=e.lineStyle||{};var y=s(e.node1,e.node2,t),_=t.__curvenessList,b=f||v%2?0:1;if(p.isForward)return _[b+g];var S=c(y),x=d(S,t),w=_[g+x+b];return i?f?h&&0===h[0]?(x+b)%2?w:-w:((x%2?0:1)+b)%2?w:-w:(x+b)%2?w:-w:_[g+x+b]}t.initCurvenessList=h,t.createEdgeMapForCurveness=f,t.getCurvenessForEdge=p},"0c41":function(e,t,n){var r=n("6d8b"),i=n("4a01"),o=n("01ef"),a=n("c526"),s=a.onIrrelevantElement,c=n("2306"),u=n("5b87"),l=n("8918"),d=l.getUID,h=n("0cde");function f(e){var t=e.getItemStyle(),n=e.get("areaColor");return null!=n&&(t.fill=n),t}function p(e,t,n,i,o){n.off("click"),n.off("mousedown"),t.get("selectedMode")&&(n.on("mousedown",(function(){e._mouseDownFlag=!0})),n.on("click",(function(a){if(e._mouseDownFlag){e._mouseDownFlag=!1;var s=a.target;while(!s.__regions)s=s.parent;if(s){var c={type:("geo"===t.mainType?"geo":"map")+"ToggleSelect",batch:r.map(s.__regions,(function(e){return{name:e.name,from:o.uid}}))};c[t.mainType+"Id"]=t.id,i.dispatchAction(c),g(t,n)}}})))}function g(e,t){t.eachChild((function(t){r.each(t.__regions,(function(n){t.trigger(e.isSelected(n.name)?"emphasis":"normal")}))}))}function m(e,t){var n=new c.Group;this.uid=d("ec_map_draw"),this._controller=new i(e.getZr()),this._controllerHost={target:t?n:null},this.group=n,this._updateGroup=t,this._mouseDownFlag,this._mapName,this._initialized,n.add(this._regionsGroup=new c.Group),n.add(this._backgroundGroup=new c.Group)}m.prototype={constructor:m,draw:function(e,t,n,i,o){var a="geo"===e.mainType,s=e.getData&&e.getData();a&&t.eachComponent({mainType:"series",subType:"map"},(function(t){s||t.getHostGeoModel()!==e||(s=t.getData())}));var u=e.coordinateSystem;this._updateBackground(u);var l,d=this._regionsGroup,m=this.group,v=u.getTransformInfo(),y=!d.childAt(0)||o;if(y)m.transform=v.roamTransform,m.decomposeTransform(),m.dirty();else{var _=new h;_.transform=v.roamTransform,_.decomposeTransform();var b={scale:_.scale,position:_.position};l=_.scale,c.updateProps(m,b,e)}var S=v.rawScale,x=v.rawPosition;d.removeAll();var w=["itemStyle"],I=["emphasis","itemStyle"],C=["label"],M=["emphasis","label"],T=r.createHashMap();r.each(u.regions,(function(t){var n=T.get(t.name)||T.set(t.name,new c.Group),i=new c.CompoundPath({segmentIgnoreThreshold:1,shape:{paths:[]}});n.add(i);var o,u=e.getRegionModel(t.name)||e,h=u.getModel(w),p=u.getModel(I),g=f(h),v=f(p),_=u.getModel(C),b=u.getModel(M);if(s){o=s.indexOfName(t.name);var k=s.getItemVisual(o,"color",!0);k&&(g.fill=k)}var E=function(e){return[e[0]*S[0]+x[0],e[1]*S[1]+x[1]]};r.each(t.geometries,(function(e){if("polygon"===e.type){for(var t=[],n=0;n<e.exterior.length;++n)t.push(E(e.exterior[n]));i.shape.paths.push(new c.Polygon({segmentIgnoreThreshold:1,shape:{points:t}}));for(n=0;n<(e.interiors?e.interiors.length:0);++n){for(var r=e.interiors[n],o=(t=[],0);o<r.length;++o)t.push(E(r[o]));i.shape.paths.push(new c.Polygon({segmentIgnoreThreshold:1,shape:{points:t}}))}}})),i.setStyle(g),i.style.strokeNoScale=!0,i.culling=!0;var A=_.get("show"),D=b.get("show"),O=s&&isNaN(s.get(s.mapDimension("value"),o)),R=s&&s.getItemLayout(o);if(a||O&&(A||D)||R&&R.showLabel){var L,P=a?t.name:o;(!s||o>=0)&&(L=e);var N=new c.Text({position:E(t.center.slice()),scale:[1/m.scale[0],1/m.scale[1]],z2:10,silent:!0});if(c.setLabelStyle(N.style,N.hoverStyle={},_,b,{labelFetcher:L,labelDataIndex:P,defaultText:t.name,useInsideStyle:!1},{textAlign:"center",textVerticalAlign:"middle"}),!y){var U=[1/l[0],1/l[1]];c.updateProps(N,{scale:U},e)}n.add(N)}if(s)s.setItemGraphicEl(o,n);else{u=e.getRegionModel(t.name);i.eventData={componentType:"geo",componentIndex:e.componentIndex,geoIndex:e.componentIndex,name:t.name,region:u&&u.option||{}}}var F=n.__regions||(n.__regions=[]);F.push(t),n.highDownSilentOnTouch=!!e.get("selectedMode"),c.setHoverStyle(n,v),d.add(n)})),this._updateController(e,t,n),p(this,e,d,n,i),g(e,d)},remove:function(){this._regionsGroup.removeAll(),this._backgroundGroup.removeAll(),this._controller.dispose(),this._mapName&&u.removeGraphic(this._mapName,this.uid),this._mapName=null,this._controllerHost={}},_updateBackground:function(e){var t=e.map;this._mapName!==t&&r.each(u.makeGraphic(t,this.uid),(function(e){this._backgroundGroup.add(e)}),this),this._mapName=t},_updateController:function(e,t,n){var i=e.coordinateSystem,a=this._controller,c=this._controllerHost;c.zoomLimit=e.get("scaleLimit"),c.zoom=i.getZoom(),a.enable(e.get("roam")||!1);var u=e.mainType;function l(){var t={type:"geoRoam",componentType:u};return t[u+"Id"]=e.id,t}a.off("pan").on("pan",(function(e){this._mouseDownFlag=!1,o.updateViewOnPan(c,e.dx,e.dy),n.dispatchAction(r.extend(l(),{dx:e.dx,dy:e.dy}))}),this),a.off("zoom").on("zoom",(function(e){if(this._mouseDownFlag=!1,o.updateViewOnZoom(c,e.scale,e.originX,e.originY),n.dispatchAction(r.extend(l(),{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,r,o){return i.getViewRectAfterRoam().contain(r,o)&&!s(t,n,e)}))}};var v=m;e.exports=v},"0c67":function(e,t,n){},"0ca1":function(e,t,n){"use strict";var r=n("4ea4"),i=r(n("9523")),o=r(n("448a")),a=n("9886"),s=n("b06d"),c=n("5557"),u=n("53b8"),l=n("becb");function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){(0,i["default"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f={shape:{rx:0,ry:0,ir:0,or:0,startAngle:0,endAngle:0,clockWise:!0},validator:function(e){var t=e.shape,n=["rx","ry","ir","or","startAngle","endAngle"];return!n.find((function(e){return"number"!==typeof t[e]}))||(console.error("Pie shape configuration is abnormal!"),!1)},draw:function(e,t){var n=e.ctx,r=t.shape;n.beginPath();var i=r.rx,a=r.ry,s=r.ir,u=r.or,l=r.startAngle,d=r.endAngle,h=r.clockWise;i=parseInt(i)+.5,a=parseInt(a)+.5,n.arc(i,a,s>0?s:0,l,d,!h);var f=(0,c.getCircleRadianPoint)(i,a,u,d).map((function(e){return parseInt(e)+.5})),p=(0,c.getCircleRadianPoint)(i,a,s,l).map((function(e){return parseInt(e)+.5}));n.lineTo.apply(n,(0,o["default"])(f)),n.arc(i,a,u>0?u:0,d,l,h),n.lineTo.apply(n,(0,o["default"])(p)),n.closePath(),n.stroke(),n.fill()}},p={shape:{rx:0,ry:0,r:0,startAngle:0,endAngle:0,gradientStartAngle:null,gradientEndAngle:null},validator:function(e){var t=e.shape,n=["rx","ry","r","startAngle","endAngle"];return!n.find((function(e){return"number"!==typeof t[e]}))||(console.error("AgArc shape configuration is abnormal!"),!1)},draw:function(e,t){var n=e.ctx,r=t.shape,i=t.style,o=i.gradient;o=o.map((function(e){return(0,u.getColorFromRgbValue)(e)})),1===o.length&&(o=[o[0],o[0]]);var a=o.length-1,s=r.gradientStartAngle,d=r.gradientEndAngle,h=r.startAngle,f=r.endAngle,p=r.r,g=r.rx,m=r.ry;null===s&&(s=h),null===d&&(d=f);var v=(d-s)/a;v===2*Math.PI&&(v=2*Math.PI-.001);for(var y=0;y<a;y++){n.beginPath();var _=(0,c.getCircleRadianPoint)(g,m,p,h+v*y),b=(0,c.getCircleRadianPoint)(g,m,p,h+v*(y+1)),S=(0,l.getLinearGradientColor)(n,_,b,[o[y],o[y+1]]),x=h+v*y,w=h+v*(y+1),I=!1;if(w>f&&(w=f,I=!0),n.arc(g,m,p,x,w),n.strokeStyle=S,n.stroke(),I)break}}},g={shape:{number:[],content:"",position:[0,0],toFixed:0,rowGap:0,formatter:null},validator:function(e){var t=e.shape,n=t.number,r=t.content,i=t.position;return n instanceof Array&&"string"===typeof r&&i instanceof Array||(console.error("NumberText shape configuration is abnormal!"),!1)},draw:function(e,t){var n=e.ctx,r=t.shape,i=r.number,o=r.content,a=r.toFixed,c=r.rowGap,u=r.formatter,l=o.split("{nt}"),d="";l.forEach((function(e,t){var n=i[t];"number"!==typeof n&&(n=""),"number"===typeof n&&(n=n.toFixed(a),"function"===typeof u&&(n=u(n))),d+=e+(n||"")})),s.text.draw({ctx:n},{shape:h(h({},r),{},{content:d,rowGap:c})})}},m={shape:{x:0,y:0,w:0,h:0},validator:function(e){var t=e.shape,n=t.x,r=t.y,i=t.w,o=t.h;return"number"===typeof n&&"number"===typeof r&&"number"===typeof i&&"number"===typeof o||(console.error("lineIcon shape configuration is abnormal!"),!1)},draw:function(e,t){var n=e.ctx,r=t.shape;n.beginPath();var i=r.x,o=r.y,a=r.w,s=r.h,c=s/2;n.strokeStyle=n.fillStyle,n.moveTo(i,o+c),n.lineTo(i+a,o+c),n.lineWidth=1,n.stroke(),n.beginPath();var u=c-10;u<=0&&(u=3),n.arc(i+a/2,o+c,u,0,2*Math.PI),n.lineWidth=5,n.stroke(),n.fillStyle="#fff",n.fill()},hoverCheck:function(e,t){var n=t.shape,r=n.x,i=n.y,o=n.w,a=n.h;return(0,c.checkPointIsInRect)(e,r,i,o,a)},setGraphCenter:function(e,t){var n=t.shape,r=t.style,i=n.x,o=n.y,a=n.w,s=n.h;r.graphCenter=[i+a/2,o+s/2]}};(0,a.extendNewGraph)("pie",f),(0,a.extendNewGraph)("agArc",p),(0,a.extendNewGraph)("numberText",g),(0,a.extendNewGraph)("lineIcon",m)},"0cb2":function(e,t,n){var r=n("e330"),i=n("7b0b"),o=Math.floor,a=r("".charAt),s=r("".replace),c=r("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,d,h){var f=n+e.length,p=r.length,g=l;return void 0!==d&&(d=i(d),g=u),s(h,g,(function(i,s){var u;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return c(t,0,n);case"'":return c(t,f);case"<":u=d[c(s,1,-1)];break;default:var l=+s;if(0===l)return i;if(l>p){var h=o(l/10);return 0===h?i:h<=p?void 0===r[h-1]?a(s,1):r[h-1]+a(s,1):i}u=r[l-1]}return void 0===u?"":u}))}},"0cd4":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.radarAxisConfig=void 0;var r={show:!0,center:["50%","50%"],radius:"65%",startAngle:-Math.PI/2,splitNum:5,polygon:!1,axisLabel:{show:!0,labelGap:15,color:[],style:{fill:"#333"}},axisLine:{show:!0,color:[],style:{stroke:"#999",lineWidth:1}},splitLine:{show:!0,color:[],style:{stroke:"#d4d4d4",lineWidth:1}},splitArea:{show:!1,color:["#f5f5f5","#e6e6e6"],style:{}},rLevel:-10,animationCurve:"easeOutCubic",animationFrane:50};t.radarAxisConfig=r},"0cde":function(e,t,n){var r=n("1687"),i=n("401b"),o=r.identity,a=5e-5;function s(e){return e>a||e<-a}var c=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},u=c.prototype;u.transform=null,u.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 l=[];u.updateTransform=function(){var e=this.parent,t=e&&e.transform,n=this.needLocalTransform(),i=this.transform;if(n||t){i=i||r.create(),n?this.getLocalTransform(i):o(i),t&&(n?r.mul(i,e.transform,i):r.copy(i,e.transform)),this.transform=i;var a=this.globalScaleRatio;if(null!=a&&1!==a){this.getGlobalScale(l);var s=l[0]<0?-1:1,c=l[1]<0?-1:1,u=((l[0]-s)*a+s)/l[0]||0,d=((l[1]-c)*a+c)/l[1]||0;i[0]*=u,i[1]*=u,i[2]*=d,i[3]*=d}this.invTransform=this.invTransform||r.create(),r.invert(this.invTransform,i)}else i&&o(i)},u.getLocalTransform=function(e){return c.getLocalTransform(this,e)},u.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)},u.restoreTransform=function(e){var t=e.dpr||1;e.setTransform(t,0,0,t,0,0)};var d=[],h=r.create();u.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],r=this.position,i=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),r[0]=e[4],r[1]=e[5],i[0]=t,i[1]=n,this.rotation=Math.atan2(-e[1]/n,e[0]/t)}},u.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(r.mul(d,e.invTransform,t),t=d);var n=this.origin;n&&(n[0]||n[1])&&(h[4]=n[0],h[5]=n[1],r.mul(d,t,h),d[4]-=n[0],d[5]-=n[1],t=d),this.setLocalTransform(t)}},u.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)},u.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&i.applyTransform(n,n,r),n},u.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&i.applyTransform(n,n,r),n},c.getLocalTransform=function(e,t){t=t||[],o(t);var n=e.origin,i=e.scale||[1,1],a=e.rotation||0,s=e.position||[0,0];return n&&(t[4]-=n[0],t[5]-=n[1]),r.scale(t,t,i),a&&r.rotate(t,t,a),n&&(t[4]+=n[0],t[5]+=n[1]),t[4]+=s[0],t[5]+=s[1],t};var f=c;e.exports=f},"0cfb":function(e,t,n){var r=n("83ab"),i=n("d039"),o=n("cc12");e.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"0d51":function(e,t,n){var r=n("da84"),i=r.String;e.exports=function(e){try{return i(e)}catch(t){return"Object"}}},"0da8":function(e,t,n){var r=n("19eb"),i=n("9850"),o=n("6d8b"),a=n("5e76");function s(e){r.call(this,e)}s.prototype={constructor:s,type:"image",brush:function(e,t){var n=this.style,r=n.image;n.bind(e,this,t);var i=this._image=a.createOrUpdateImage(r,this._image,this,this.onload);if(i&&a.isImageReady(i)){var o=n.x||0,s=n.y||0,c=n.width,u=n.height,l=i.width/i.height;if(null==c&&null!=u?c=u*l:null==u&&null!=c?u=c/l:null==c&&null==u&&(c=i.width,u=i.height),this.setTransform(e),n.sWidth&&n.sHeight){var d=n.sx||0,h=n.sy||0;e.drawImage(i,d,h,n.sWidth,n.sHeight,o,s,c,u)}else if(n.sx&&n.sy){d=n.sx,h=n.sy;var f=c-d,p=u-h;e.drawImage(i,d,h,f,p,o,s,c,u)}else e.drawImage(i,o,s,c,u);null!=n.text&&(this.restoreTransform(e),this.drawRectText(e,this.getBoundingRect()))}},getBoundingRect:function(){var e=this.style;return this._rect||(this._rect=new i(e.x||0,e.y||0,e.width||0,e.height||0)),this._rect}},o.inherits(s,r);var c=s;e.exports=c},"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 r=n("5f14"),i=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;i.each(n,(function(e){var t=e.getLayout().value;t<o&&(o=t),t>a&&(a=t)})),i.each(n,(function(t){var n=new r({type:"color",mappingMethod:"linear",dataExtent:[o,a],visual:e.get("color")}),i=n.mapValueToVisual(t.getLayout().value),s=t.getModel().get("itemStyle.color");null!=s?t.setVisual("color",s):t.setVisual("color",i)}))}}))}e.exports=o},"0e15":function(e,t,n){var r=n("597f");e.exports=function(e,t,n){return void 0===n?r(e,t,!1):r(e,n,!1!==t)}},"0ee7":function(e,t,n){var r=n("6d8b"),i=n("2306"),o=n("f934"),a=n("5e97"),s=i.Group,c=["width","height"],u=["x","y"],l=a.extend({type:"legend.scroll",newlineDisabled:!0,init:function(){l.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(){l.superCall(this,"resetInner"),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},renderInner:function(e,t,n,o,a,s,c){var u=this;l.superCall(this,"renderInner",e,t,n,o,a,s,c);var d=this._controllerGroup,h=t.get("pageIconSize",!0);r.isArray(h)||(h=[h,h]),p("pagePrev",0);var f=t.getModel("pageTextStyle");function p(e,n){var a=e+"DataIndex",s=i.createIcon(t.get("pageIcons",!0)[t.getOrient().name][n],{onclick:r.bind(u._pageGo,u,a,t,o)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});s.name=e,d.add(s)}d.add(new i.Text({name:"pageText",style:{textFill:f.getTextColor(),font:f.getFont(),textVerticalAlign:"middle",textAlign:"center"},silent:!0})),p("pageNext",1)},layoutInner:function(e,t,n,i,a,s){var l=this.getSelectorGroup(),d=e.getOrient().index,h=c[d],f=u[d],p=c[1-d],g=u[1-d];a&&o.box("horizontal",l,e.get("selectorItemGap",!0));var m=e.get("selectorButtonGap",!0),v=l.getBoundingRect(),y=[-v.x,-v.y],_=r.clone(n);a&&(_[h]=n[h]-v[h]-m);var b=this._layoutContentAndController(e,i,_,d,h,p,g);if(a){if("end"===s)y[d]+=b[h]+m;else{var S=v[h]+m;y[d]-=S,b[f]-=S}b[h]+=v[h]+m,y[1-d]+=b[g]+b[p]/2-v[p]/2,b[p]=Math.max(b[p],v[p]),b[g]=Math.min(b[g],v[g]+y[1-d]),l.attr("position",y)}return b},_layoutContentAndController:function(e,t,n,a,s,c,u){var l=this.getContentGroup(),d=this._containerGroup,h=this._controllerGroup;o.box(e.get("orient"),l,e.get("itemGap"),a?n.width:null,a?null:n.height),o.box("horizontal",h,e.get("pageButtonItemGap",!0));var f=l.getBoundingRect(),p=h.getBoundingRect(),g=this._showController=f[s]>n[s],m=[-f.x,-f.y];t||(m[a]=l.position[a]);var v=[0,0],y=[-p.x,-p.y],_=r.retrieve2(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(g){var b=e.get("pageButtonPosition",!0);"end"===b?y[a]+=n[s]-p[s]:v[a]+=p[s]+_}y[1-a]+=f[c]/2-p[c]/2,l.attr("position",m),d.attr("position",v),h.attr("position",y);var S={x:0,y:0};if(S[s]=g?n[s]:f[s],S[c]=Math.max(f[c],p[c]),S[u]=Math.min(0,p[u]+y[1-a]),d.__rectSize=n[s],g){var x={x:0,y:0};x[s]=Math.max(n[s]-p[s]-_,0),x[c]=S[c],d.setClipPath(new i.Rect({shape:x})),d.__rectSize=x[s]}else h.eachChild((function(e){e.attr({invisible:!0,silent:!0})}));var w=this._getPageInfo(e);return null!=w.pageIndex&&i.updateProps(l,{position:w.contentPosition},!!g&&e),this._updatePageInfoView(e,w),S},_pageGo:function(e,t,n){var r=this._getPageInfo(t)[e];null!=r&&n.dispatchAction({type:"legendScroll",scrollDataIndex:r,legendId:t.id})},_updatePageInfoView:function(e,t){var n=this._controllerGroup;r.each(["pagePrev","pageNext"],(function(r){var i=null!=t[r+"DataIndex"],o=n.childOfName(r);o&&(o.setStyle("fill",i?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),o.cursor=i?"pointer":"default")}));var i=n.childOfName("pageText"),o=e.get("pageFormatter"),a=t.pageIndex,s=null!=a?a+1:0,c=t.pageCount;i&&o&&i.setStyle("text",r.isString(o)?o.replace("{current}",s).replace("{total}",c):o({current:s,total:c}))},_getPageInfo:function(e){var t=e.get("scrollDataIndex",!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=e.getOrient().index,o=c[i],a=u[i],s=this._findTargetItemIndex(t),l=n.children(),d=l[s],h=l.length,f=h?1:0,p={contentPosition:n.position.slice(),pageCount:f,pageIndex:f-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!d)return p;var g=b(d);p.contentPosition[i]=-g.s;for(var m=s+1,v=g,y=g,_=null;m<=h;++m)_=b(l[m]),(!_&&y.e>v.s+r||_&&!S(_,v.s))&&(v=y.i>v.i?y:_,v&&(null==p.pageNextDataIndex&&(p.pageNextDataIndex=v.i),++p.pageCount)),y=_;for(m=s-1,v=g,y=g,_=null;m>=-1;--m)_=b(l[m]),_&&S(y,_.s)||!(v.i<y.i)||(y=v,null==p.pagePrevDataIndex&&(p.pagePrevDataIndex=v.i),++p.pageCount,++p.pageIndex),v=_;return p;function b(e){if(e){var t=e.getBoundingRect(),n=t[a]+e.position[i];return{s:n,e:n+t[o],i:e.__legendDataIndex}}}function S(e,t){return e.e>=t&&e.s<=t+r}},_findTargetItemIndex:function(e){if(!this._showController)return 0;var t,n,r=this.getContentGroup();return r.eachChild((function(r,i){var o=r.__legendDataIndex;null==n&&null!=o&&(n=i),o===e&&(t=i)})),null!=t?t:n}}),d=l;e.exports=d},"0f55":function(e,t,n){var r=n("6d8b"),i=n("84ce"),o=function(e,t,n,r,o){i.call(this,e,t,n),this.type=r||"value",this.axisIndex=o};o.prototype={constructor:o,model:null,isHorizontal:function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")}},r.inherits(o,i);var a=o;e.exports=a},"0f99":function(e,t,n){var r=n("4e08"),i=(r.__DEV__,n("e0d3")),o=i.makeInner,a=i.getDataItemValue,s=n("6d8b"),c=s.createHashMap,u=s.each,l=s.map,d=s.isArray,h=s.isString,f=s.isObject,p=s.isTypedArray,g=s.isArrayLike,m=s.extend,v=(s.assert,n("ec6f")),y=n("93d0"),_=y.SOURCE_FORMAT_ORIGINAL,b=y.SOURCE_FORMAT_ARRAY_ROWS,S=y.SOURCE_FORMAT_OBJECT_ROWS,x=y.SOURCE_FORMAT_KEYED_COLUMNS,w=y.SOURCE_FORMAT_UNKNOWN,I=y.SOURCE_FORMAT_TYPED_ARRAY,C=y.SERIES_LAYOUT_BY_ROW,M={Must:1,Might:2,Not:3},T=o();function k(e){var t=e.option.source,n=w;if(p(t))n=I;else if(d(t)){0===t.length&&(n=b);for(var r=0,i=t.length;r<i;r++){var o=t[r];if(null!=o){if(d(o)){n=b;break}if(f(o)){n=S;break}}}}else if(f(t)){for(var a in t)if(t.hasOwnProperty(a)&&g(t[a])){n=x;break}}else if(null!=t)throw new Error("Invalid data");T(e).sourceFormat=n}function E(e){return T(e).source}function A(e){T(e).datasetMap=c()}function D(e){var t=e.option,n=t.data,r=p(n)?I:_,i=!1,o=t.seriesLayoutBy,a=t.sourceHeader,s=t.dimensions,c=F(e);if(c){var u=c.option;n=u.source,r=T(c).sourceFormat,i=!0,o=o||u.seriesLayoutBy,null==a&&(a=u.sourceHeader),s=s||u.dimensions}var l=O(n,r,o,a,s);T(e).source=new v({data:n,fromDataset:i,seriesLayoutBy:o,sourceFormat:r,dimensionsDefine:l.dimensionsDefine,startIndex:l.startIndex,dimensionsDetectCount:l.dimensionsDetectCount,encodeDefine:t.encode})}function O(e,t,n,r,i){if(!e)return{dimensionsDefine:R(i)};var o,s;if(t===b)"auto"===r||null==r?L((function(e){null!=e&&"-"!==e&&(h(e)?null==s&&(s=1):s=0)}),n,e,10):s=r?1:0,i||1!==s||(i=[],L((function(e,t){i[t]=null!=e?e:""}),n,e)),o=i?i.length:n===C?e.length:e[0]?e[0].length:null;else if(t===S)i||(i=P(e));else if(t===x)i||(i=[],u(e,(function(e,t){i.push(t)})));else if(t===_){var c=a(e[0]);o=d(c)&&c.length||1}return{startIndex:s,dimensionsDefine:R(i),dimensionsDetectCount:o}}function R(e){if(e){var t=c();return l(e,(function(e,n){if(e=m({},f(e)?e:{name:e}),null==e.name)return e;e.name+="",null==e.displayName&&(e.displayName=e.name);var r=t.get(e.name);return r?e.name+="-"+r.count++:t.set(e.name,{count:1}),e}))}}function L(e,t,n,r){if(null==r&&(r=1/0),t===C)for(var i=0;i<n.length&&i<r;i++)e(n[i]?n[i][0]:null,i);else{var o=n[0]||[];for(i=0;i<o.length&&i<r;i++)e(o[i],i)}}function P(e){var t,n=0;while(n<e.length&&!(t=e[n++]));if(t){var r=[];return u(t,(function(e,t){r.push(t)})),r}}function N(e,t,n){var r={},i=F(t);if(!i||!e)return r;var o,a,s=[],c=[],l=t.ecModel,d=T(l).datasetMap,h=i.uid+"_"+n.seriesLayoutBy;e=e.slice(),u(e,(function(t,n){!f(t)&&(e[n]={name:t}),"ordinal"===t.type&&null==o&&(o=n,a=m(e[n])),r[t.name]=[]}));var p=d.get(h)||d.set(h,{categoryWayDim:a,valueWayDim:0});function g(e,t,n){for(var r=0;r<n;r++)e.push(t+r)}function m(e){var t=e.dimsDef;return t?t.length:1}return u(e,(function(e,t){var n=e.name,i=m(e);if(null==o){var a=p.valueWayDim;g(r[n],a,i),g(c,a,i),p.valueWayDim+=i}else if(o===t)g(r[n],0,i),g(s,0,i);else{a=p.categoryWayDim;g(r[n],a,i),g(c,a,i),p.categoryWayDim+=i}})),s.length&&(r.itemName=s),c.length&&(r.seriesName=c),r}function U(e,t,n){var r={},i=F(e);if(!i)return r;var o,a=t.sourceFormat,s=t.dimensionsDefine;a!==S&&a!==x||u(s,(function(e,t){"name"===(f(e)?e.name:e)&&(o=t)}));var c=function(){for(var e={},r={},i=[],c=0,u=Math.min(5,n);c<u;c++){var l=V(t.data,a,t.seriesLayoutBy,s,t.startIndex,c);i.push(l);var d=l===M.Not;if(d&&null==e.v&&c!==o&&(e.v=c),(null==e.n||e.n===e.v||!d&&i[e.n]===M.Not)&&(e.n=c),h(e)&&i[e.n]!==M.Not)return e;d||(l===M.Might&&null==r.v&&c!==o&&(r.v=c),null!=r.n&&r.n!==r.v||(r.n=c))}function h(e){return null!=e.v&&null!=e.n}return h(e)?e:h(r)?r:null}();if(c){r.value=c.v;var l=null!=o?o:c.n;r.itemName=[l],r.seriesName=[l]}return r}function F(e){var t=e.option,n=t.data;if(!n)return e.ecModel.getComponent("dataset",t.datasetIndex||0)}function G(e,t){return V(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function V(e,t,n,r,i,o){var s,c,u,l=5;if(p(e))return M.Not;if(r){var g=r[o];f(g)?(c=g.name,u=g.type):h(g)&&(c=g)}if(null!=u)return"ordinal"===u?M.Must:M.Not;if(t===b)if(n===C){for(var m=e[o],v=0;v<(m||[]).length&&v<l;v++)if(null!=(s=T(m[i+v])))return s}else for(v=0;v<e.length&&v<l;v++){var y=e[i+v];if(y&&null!=(s=T(y[o])))return s}else if(t===S){if(!c)return M.Not;for(v=0;v<e.length&&v<l;v++){var w=e[v];if(w&&null!=(s=T(w[c])))return s}}else if(t===x){if(!c)return M.Not;m=e[c];if(!m||p(m))return M.Not;for(v=0;v<m.length&&v<l;v++)if(null!=(s=T(m[v])))return s}else if(t===_)for(v=0;v<e.length&&v<l;v++){w=e[v];var I=a(w);if(!d(I))return M.Not;if(null!=(s=T(I[o])))return s}function T(e){var t=h(e);return null!=e&&isFinite(e)&&""!==e?t?M.Might:M.Not:t&&"-"!==e?M.Must:void 0}return M.Not}t.BE_ORDINAL=M,t.detectSourceFormat=k,t.getSource=E,t.resetSourceDefaulter=A,t.prepareSource=D,t.makeSeriesEncodeForAxisCoordSys=N,t.makeSeriesEncodeForNameBased=U,t.guessOrdinal=G},"0fae":function(e,t,n){},"0fb7":function(e,t,n){},"0fd3":function(e,t,n){var r=n("2306"),i=n("7e5b"),o=n("6d8b"),a=n("a15a"),s=a.createSymbol,c=n("401b"),u=n("4a3f");function l(e,t,n){r.Group.call(this),this.add(this.createLine(e,t,n)),this._updateEffectSymbol(e,t)}var d=l.prototype;d.createLine=function(e,t,n){return new i(e,t,n)},d._updateEffectSymbol=function(e,t){var n=e.getItemModel(t),r=n.getModel("effect"),i=r.get("symbolSize"),a=r.get("symbol");o.isArray(i)||(i=[i,i]);var c=r.get("color")||e.getItemVisual(t,"color"),u=this.childAt(1);this._symbolType!==a&&(this.remove(u),u=s(a,-.5,-.5,1,1,c),u.z2=100,u.culling=!0,this.add(u)),u&&(u.setStyle("shadowColor",c),u.setStyle(r.getItemStyle(["color"])),u.attr("scale",i),u.setColor(c),u.attr("scale",i),this._symbolType=a,this._symbolScale=i,this._updateEffectAnimation(e,r,t))},d._updateEffectAnimation=function(e,t,n){var r=this.childAt(1);if(r){var i=this,a=e.getItemLayout(n),s=1e3*t.get("period"),c=t.get("loop"),u=t.get("constantSpeed"),l=o.retrieve(t.get("delay"),(function(t){return t/e.count()*s/3})),d="function"===typeof l;if(r.ignore=!0,this.updateAnimationPoints(r,a),u>0&&(s=this.getLineLength(r)/u*1e3),s!==this._period||c!==this._loop){r.stopAnimation();var h=l;d&&(h=l(n)),r.__t>0&&(h=-s*r.__t),r.__t=0;var f=r.animate("",c).when(s,{__t:1}).delay(h).during((function(){i.updateSymbolPosition(r)}));c||f.done((function(){i.remove(r)})),f.start()}this._period=s,this._loop=c}},d.getLineLength=function(e){return c.dist(e.__p1,e.__cp1)+c.dist(e.__cp1,e.__p2)},d.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]},d.updateData=function(e,t,n){this.childAt(0).updateData(e,t,n),this._updateEffectSymbol(e,t)},d.updateSymbolPosition=function(e){var t=e.__p1,n=e.__p2,r=e.__cp1,i=e.__t,o=e.position,a=[o[0],o[1]],s=u.quadraticAt,l=u.quadraticDerivativeAt;o[0]=s(t[0],r[0],n[0],i),o[1]=s(t[1],r[1],n[1],i);var d=l(t[0],r[0],n[0],i),h=l(t[1],r[1],n[1],i);if(e.rotation=-Math.atan2(h,d)-Math.PI/2,"line"===this._symbolType||"rect"===this._symbolType||"roundRect"===this._symbolType)if(void 0!==e.__lastT&&e.__lastT<e.__t){var f=1.05*c.dist(a,o);e.attr("scale",[e.scale[0],f]),1===i&&(o[0]=a[0]+(o[0]-a[0])/2,o[1]=a[1]+(o[1]-a[1])/2)}else if(1===e.__lastT){f=2*c.dist(t,o);e.attr("scale",[e.scale[0],f])}else e.attr("scale",this._symbolScale);e.__lastT=e.__t,e.ignore=!1},d.updateLayout=function(e,t){this.childAt(0).updateLayout(e,t);var n=e.getItemModel(t).getModel("effect");this._updateEffectAnimation(e,n,t)},o.inherits(l,r.Group);var h=l;e.exports=h},"101e":function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=78)}({0:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var c,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(c=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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=c):i&&(c=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(e,t){return c.call(t),l(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},10:function(e,t){e.exports=n("f3ad")},3:function(e,t){e.exports=n("8122")},44:function(e,t){e.exports=n("4e4b")},45:function(e,t){e.exports=n("e772")},6:function(e,t){e.exports=n("6b7c")},78:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("ul",{staticClass:"el-pager",on:{click:e.onPagerClick}},[e.pageCount>0?n("li",{staticClass:"number",class:{active:1===e.currentPage,disabled:e.disabled}},[e._v("1")]):e._e(),e.showPrevMore?n("li",{staticClass:"el-icon more btn-quickprev",class:[e.quickprevIconClass,{disabled:e.disabled}],on:{mouseenter:function(t){e.onMouseenter("left")},mouseleave:function(t){e.quickprevIconClass="el-icon-more"}}}):e._e(),e._l(e.pagers,(function(t){return n("li",{key:t,staticClass:"number",class:{active:e.currentPage===t,disabled:e.disabled}},[e._v(e._s(t))])})),e.showNextMore?n("li",{staticClass:"el-icon more btn-quicknext",class:[e.quicknextIconClass,{disabled:e.disabled}],on:{mouseenter:function(t){e.onMouseenter("right")},mouseleave:function(t){e.quicknextIconClass="el-icon-more"}}}):e._e(),e.pageCount>1?n("li",{staticClass:"number",class:{active:e.currentPage===e.pageCount,disabled:e.disabled}},[e._v(e._s(e.pageCount))]):e._e()],2)},i=[];r._withStripped=!0;var o={name:"ElPager",props:{currentPage:Number,pageCount:Number,pagerCount:Number,disabled:Boolean},watch:{showPrevMore:function(e){e||(this.quickprevIconClass="el-icon-more")},showNextMore:function(e){e||(this.quicknextIconClass="el-icon-more")}},methods:{onPagerClick:function(e){var t=e.target;if("UL"!==t.tagName&&!this.disabled){var n=Number(e.target.textContent),r=this.pageCount,i=this.currentPage,o=this.pagerCount-2;-1!==t.className.indexOf("more")&&(-1!==t.className.indexOf("quickprev")?n=i-o:-1!==t.className.indexOf("quicknext")&&(n=i+o)),isNaN(n)||(n<1&&(n=1),n>r&&(n=r)),n!==i&&this.$emit("change",n)}},onMouseenter:function(e){this.disabled||("left"===e?this.quickprevIconClass="el-icon-d-arrow-left":this.quicknextIconClass="el-icon-d-arrow-right")}},computed:{pagers:function(){var e=this.pagerCount,t=(e-1)/2,n=Number(this.currentPage),r=Number(this.pageCount),i=!1,o=!1;r>e&&(n>e-t&&(i=!0),n<r-t&&(o=!0));var a=[];if(i&&!o)for(var s=r-(e-2),c=s;c<r;c++)a.push(c);else if(!i&&o)for(var u=2;u<e;u++)a.push(u);else if(i&&o)for(var l=Math.floor(e/2)-1,d=n-l;d<=n+l;d++)a.push(d);else for(var h=2;h<r;h++)a.push(h);return this.showPrevMore=i,this.showNextMore=o,a}},data:function(){return{current:null,showPrevMore:!1,showNextMore:!1,quicknextIconClass:"el-icon-more",quickprevIconClass:"el-icon-more"}}},a=o,s=n(0),c=Object(s["a"])(a,r,i,!1,null,null,null);c.options.__file="packages/pagination/src/pager.vue";var u=c.exports,l=n(44),d=n.n(l),h=n(45),f=n.n(h),p=n(10),g=n.n(p),m=n(6),v=n.n(m),y=n(3),_={name:"ElPagination",props:{pageSize:{type:Number,default:10},small:Boolean,total:Number,pageCount:Number,pagerCount:{type:Number,validator:function(e){return(0|e)===e&&e>4&&e<22&&e%2===1},default:7},currentPage:{type:Number,default:1},layout:{default:"prev, pager, next, jumper, ->, total"},pageSizes:{type:Array,default:function(){return[10,20,30,40,50,100]}},popperClass:String,prevText:String,nextText:String,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean},data:function(){return{internalCurrentPage:1,internalPageSize:0,lastEmittedPage:-1,userChangePageSize:!1}},render:function(e){var t=this.layout;if(!t)return null;if(this.hideOnSinglePage&&(!this.internalPageCount||1===this.internalPageCount))return null;var n=e("div",{class:["el-pagination",{"is-background":this.background,"el-pagination--small":this.small}]}),r={prev:e("prev"),jumper:e("jumper"),pager:e("pager",{attrs:{currentPage:this.internalCurrentPage,pageCount:this.internalPageCount,pagerCount:this.pagerCount,disabled:this.disabled},on:{change:this.handleCurrentChange}}),next:e("next"),sizes:e("sizes",{attrs:{pageSizes:this.pageSizes}}),slot:e("slot",[this.$slots.default?this.$slots.default:""]),total:e("total")},i=t.split(",").map((function(e){return e.trim()})),o=e("div",{class:"el-pagination__rightwrapper"}),a=!1;return n.children=n.children||[],o.children=o.children||[],i.forEach((function(e){"->"!==e?a?o.children.push(r[e]):n.children.push(r[e]):a=!0})),a&&n.children.unshift(o),n},components:{Prev:{render:function(e){return e("button",{attrs:{type:"button",disabled:this.$parent.disabled||this.$parent.internalCurrentPage<=1},class:"btn-prev",on:{click:this.$parent.prev}},[this.$parent.prevText?e("span",[this.$parent.prevText]):e("i",{class:"el-icon el-icon-arrow-left"})])}},Next:{render:function(e){return e("button",{attrs:{type:"button",disabled:this.$parent.disabled||this.$parent.internalCurrentPage===this.$parent.internalPageCount||0===this.$parent.internalPageCount},class:"btn-next",on:{click:this.$parent.next}},[this.$parent.nextText?e("span",[this.$parent.nextText]):e("i",{class:"el-icon el-icon-arrow-right"})])}},Sizes:{mixins:[v.a],props:{pageSizes:Array},watch:{pageSizes:{immediate:!0,handler:function(e,t){Object(y["valueEquals"])(e,t)||Array.isArray(e)&&(this.$parent.internalPageSize=e.indexOf(this.$parent.pageSize)>-1?this.$parent.pageSize:this.pageSizes[0])}}},render:function(e){var t=this;return e("span",{class:"el-pagination__sizes"},[e("el-select",{attrs:{value:this.$parent.internalPageSize,popperClass:this.$parent.popperClass||"",size:"mini",disabled:this.$parent.disabled},on:{input:this.handleChange}},[this.pageSizes.map((function(n){return e("el-option",{attrs:{value:n,label:n+t.t("el.pagination.pagesize")}})}))])])},components:{ElSelect:d.a,ElOption:f.a},methods:{handleChange:function(e){e!==this.$parent.internalPageSize&&(this.$parent.internalPageSize=e=parseInt(e,10),this.$parent.userChangePageSize=!0,this.$parent.$emit("update:pageSize",e),this.$parent.$emit("size-change",e))}}},Jumper:{mixins:[v.a],components:{ElInput:g.a},data:function(){return{userInput:null}},watch:{"$parent.internalCurrentPage":function(){this.userInput=null}},methods:{handleKeyup:function(e){var t=e.keyCode,n=e.target;13===t&&this.handleChange(n.value)},handleInput:function(e){this.userInput=e},handleChange:function(e){this.$parent.internalCurrentPage=this.$parent.getValidCurrentPage(e),this.$parent.emitChange(),this.userInput=null}},render:function(e){return e("span",{class:"el-pagination__jump"},[this.t("el.pagination.goto"),e("el-input",{class:"el-pagination__editor is-in-pagination",attrs:{min:1,max:this.$parent.internalPageCount,value:null!==this.userInput?this.userInput:this.$parent.internalCurrentPage,type:"number",disabled:this.$parent.disabled},nativeOn:{keyup:this.handleKeyup},on:{input:this.handleInput,change:this.handleChange}}),this.t("el.pagination.pageClassifier")])}},Total:{mixins:[v.a],render:function(e){return"number"===typeof this.$parent.total?e("span",{class:"el-pagination__total"},[this.t("el.pagination.total",{total:this.$parent.total})]):""}},Pager:u},methods:{handleCurrentChange:function(e){this.internalCurrentPage=this.getValidCurrentPage(e),this.userChangePageSize=!0,this.emitChange()},prev:function(){if(!this.disabled){var e=this.internalCurrentPage-1;this.internalCurrentPage=this.getValidCurrentPage(e),this.$emit("prev-click",this.internalCurrentPage),this.emitChange()}},next:function(){if(!this.disabled){var e=this.internalCurrentPage+1;this.internalCurrentPage=this.getValidCurrentPage(e),this.$emit("next-click",this.internalCurrentPage),this.emitChange()}},getValidCurrentPage:function(e){e=parseInt(e,10);var t="number"===typeof this.internalPageCount,n=void 0;return t?e<1?n=1:e>this.internalPageCount&&(n=this.internalPageCount):(isNaN(e)||e<1)&&(n=1),(void 0===n&&isNaN(e)||0===n)&&(n=1),void 0===n?e:n},emitChange:function(){var e=this;this.$nextTick((function(){(e.internalCurrentPage!==e.lastEmittedPage||e.userChangePageSize)&&(e.$emit("current-change",e.internalCurrentPage),e.lastEmittedPage=e.internalCurrentPage,e.userChangePageSize=!1)}))}},computed:{internalPageCount:function(){return"number"===typeof this.total?Math.max(1,Math.ceil(this.total/this.internalPageSize)):"number"===typeof this.pageCount?Math.max(1,this.pageCount):null}},watch:{currentPage:{immediate:!0,handler:function(e){this.internalCurrentPage=this.getValidCurrentPage(e)}},pageSize:{immediate:!0,handler:function(e){this.internalPageSize=isNaN(e)?10:e}},internalCurrentPage:{immediate:!0,handler:function(e){this.$emit("update:currentPage",e),this.lastEmittedPage=-1}},internalPageCount:function(e){var t=this.internalCurrentPage;e>0&&0===t?this.internalCurrentPage=1:t>e&&(this.internalCurrentPage=0===e?1:e,this.userChangePageSize&&this.emitChange()),this.userChangePageSize=!1}},install:function(e){e.component(_.name,_)}};t["default"]=_}})},"107c":function(e,t,n){var r=n("d039"),i=n("da84"),o=i.RegExp;e.exports=r((function(){var e=o("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},"10cb":function(e,t,n){},"10cc":function(e,t,n){var r=n("3eba"),i=n("6d8b"),o=n("9850"),a=n("2b8c"),s=n("a890"),c=n("88b3"),u=n("bd9e"),l=["inBrush","outOfBrush"],d="__ecBrushSelect",h="__ecInBrushSelectEvent",f=r.PRIORITY.VISUAL.BRUSH;function p(e){e.eachComponent({mainType:"brush"},(function(t){var n=t.brushTargetManager=new u(t.option,e);n.setInputRanges(t.areas,e)}))}function g(e,t,n,r,i){if(i){var o=e.getZr();if(!o[h]){o[d]||(o[d]=m);var a=c.createOrUpdate(o,d,n,t);a(e,r)}}}function m(e,t){if(!e.isDisposed()){var n=e.getZr();n[h]=!0,e.dispatchAction({type:"brushSelect",batch:t}),n[h]=!1}}function v(e,t,n,r){for(var i=0,o=t.length;i<o;i++){var a=t[i];if(e[a.brushType](r,n,a.selectors,a))return!0}}function y(e){var t=e.brushSelector;if(i.isString(t)){var n=[];return i.each(s,(function(e,r){n[r]=function(n,r,i,o){var a=r.getItemLayout(n);return e[t](a,i,o)}})),n}if(i.isFunction(t)){var r={};return i.each(s,(function(e,n){r[n]=t})),r}return t}function _(e,t){var n=e.option.seriesIndex;return null!=n&&"all"!==n&&(i.isArray(n)?i.indexOf(n,t)<0:t!==n)}function b(e){var t=e.selectors={};return i.each(s[e.brushType],(function(n,r){t[r]=function(r){return n(r,t,e)}})),e}r.registerLayout(f,(function(e,t,n){e.eachComponent({mainType:"brush"},(function(e){n&&"takeGlobalCursor"===n.type&&e.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1})})),p(e)})),r.registerVisual(f,(function(e,t,n){var r,o,s=[];e.eachComponent({mainType:"brush"},(function(t,n){var c={brushId:t.id,brushIndex:n,brushName:t.name,areas:i.clone(t.areas),selected:[]};s.push(c);var u=t.option,d=u.brushLink,h=[],f=[],p=[],g=0;n||(r=u.throttleType,o=u.throttleDelay);var m=i.map(t.areas,(function(e){return b(i.defaults({boundingRect:S[e.brushType](e)},e))})),x=a.createVisualMappings(t.option,l,(function(e){e.mappingMethod="fixed"}));function w(e){return"all"===d||h[e]}function I(e){return!!e.length}function C(e,t){var n=e.coordinateSystem;g|=n.hasAxisBrushed(),w(t)&&n.eachActiveState(e.getData(),(function(e,t){"active"===e&&(f[t]=1)}))}function M(n,r,o){var a=y(n);if(a&&!_(t,r)&&(i.each(m,(function(r){a[r.brushType]&&t.brushTargetManager.controlSeries(r,n,e)&&o.push(r),g|=I(o)})),w(r)&&I(o))){var s=n.getData();s.each((function(e){v(a,o,s,e)&&(f[e]=1)}))}}i.isArray(d)&&i.each(d,(function(e){h[e]=1})),e.eachSeries((function(e,t){var n=p[t]=[];"parallel"===e.subType?C(e,t,n):M(e,t,n)})),e.eachSeries((function(e,t){var n={seriesId:e.id,seriesIndex:t,seriesName:e.name,dataIndex:[]};c.selected.push(n);var r=y(e),i=p[t],o=e.getData(),s=w(t)?function(e){return f[e]?(n.dataIndex.push(o.getRawIndex(e)),"inBrush"):"outOfBrush"}:function(e){return v(r,i,o,e)?(n.dataIndex.push(o.getRawIndex(e)),"inBrush"):"outOfBrush"};(w(t)?g:I(i))&&a.applyVisual(l,x,o,s)}))})),g(t,r,o,s,n)}));var S={lineX:i.noop,lineY:i.noop,rect:function(e){return x(e.range)},polygon:function(e){for(var t,n=e.range,r=0,i=n.length;r<i;r++){t=t||[[1/0,-1/0],[1/0,-1/0]];var o=n[r];o[0]<t[0][0]&&(t[0][0]=o[0]),o[0]>t[0][1]&&(t[0][1]=o[0]),o[1]<t[1][0]&&(t[1][0]=o[1]),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=p},1111:function(e,t,n){var r=n("3eba");n("67a8"),n("4784");var i=n("7f96"),o=n("87c3");r.registerVisual(i("effectScatter","circle")),r.registerLayout(o("effectScatter"))},1148:function(e,t,n){"use strict";var r=n("da84"),i=n("5926"),o=n("577e"),a=n("1d80"),s=r.RangeError;e.exports=function(e){var t=o(a(this)),n="",r=i(e);if(r<0||r==1/0)throw s("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n}},"11b0":function(e,t,n){function r(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),n("a630"),e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},"11b09":function(e,t,n){},1209:function(e,t,n){"use strict";var r={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},i={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},o=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],a={CSS:{},springs:{}};function s(e,t,n){return Math.min(Math.max(e,t),n)}function c(e,t){return e.indexOf(t)>-1}function u(e,t){return e.apply(null,t)}var l={arr:function(e){return Array.isArray(e)},obj:function(e){return c(Object.prototype.toString.call(e),"Object")},pth:function(e){return l.obj(e)&&e.hasOwnProperty("totalLength")},svg:function(e){return e instanceof SVGElement},inp:function(e){return e instanceof HTMLInputElement},dom:function(e){return e.nodeType||l.svg(e)},str:function(e){return"string"===typeof e},fnc:function(e){return"function"===typeof e},und:function(e){return"undefined"===typeof e},nil:function(e){return l.und(e)||null===e},hex:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)},rgb:function(e){return/^rgb/.test(e)},hsl:function(e){return/^hsl/.test(e)},col:function(e){return l.hex(e)||l.rgb(e)||l.hsl(e)},key:function(e){return!r.hasOwnProperty(e)&&!i.hasOwnProperty(e)&&"targets"!==e&&"keyframes"!==e}};function d(e){var t=/\(([^)]+)\)/.exec(e);return t?t[1].split(",").map((function(e){return parseFloat(e)})):[]}function h(e,t){var n=d(e),r=s(l.und(n[0])?1:n[0],.1,100),i=s(l.und(n[1])?100:n[1],.1,100),o=s(l.und(n[2])?10:n[2],.1,100),c=s(l.und(n[3])?0:n[3],.1,100),u=Math.sqrt(i/r),h=o/(2*Math.sqrt(i*r)),f=h<1?u*Math.sqrt(1-h*h):0,p=1,g=h<1?(h*u-c)/f:-c+u;function m(e){var n=t?t*e/1e3:e;return n=h<1?Math.exp(-n*h*u)*(p*Math.cos(f*n)+g*Math.sin(f*n)):(p+g*n)*Math.exp(-n*u),0===e||1===e?e:1-n}function v(){var t=a.springs[e];if(t)return t;var n=1/6,r=0,i=0;while(1)if(r+=n,1===m(r)){if(i++,i>=16)break}else i=0;var o=r*n*1e3;return a.springs[e]=o,o}return t?m:v}function f(e){return void 0===e&&(e=10),function(t){return Math.ceil(s(t,1e-6,1)*e)*(1/e)}}var p=function(){var e=11,t=1/(e-1);function n(e,t){return 1-3*t+3*e}function r(e,t){return 3*t-6*e}function i(e){return 3*e}function o(e,t,o){return((n(t,o)*e+r(t,o))*e+i(t))*e}function a(e,t,o){return 3*n(t,o)*e*e+2*r(t,o)*e+i(t)}function s(e,t,n,r,i){var a,s,c=0;do{s=t+(n-t)/2,a=o(s,r,i)-e,a>0?n=s:t=s}while(Math.abs(a)>1e-7&&++c<10);return s}function c(e,t,n,r){for(var i=0;i<4;++i){var s=a(t,n,r);if(0===s)return t;var c=o(t,n,r)-e;t-=c/s}return t}function u(n,r,i,u){if(0<=n&&n<=1&&0<=i&&i<=1){var l=new Float32Array(e);if(n!==r||i!==u)for(var d=0;d<e;++d)l[d]=o(d*t,n,i);return function(e){return n===r&&i===u||0===e||1===e?e:o(h(e),r,u)}}function h(r){for(var o=0,u=1,d=e-1;u!==d&&l[u]<=r;++u)o+=t;--u;var h=(r-l[u])/(l[u+1]-l[u]),f=o+h*t,p=a(f,n,i);return p>=.001?c(r,f,n,i):0===p?f:s(r,o,o+t,n,i)}}return u}(),g=function(){var e={linear:function(){return function(e){return e}}},t={Sine:function(){return function(e){return 1-Math.cos(e*Math.PI/2)}},Circ:function(){return function(e){return 1-Math.sqrt(1-e*e)}},Back:function(){return function(e){return e*e*(3*e-2)}},Bounce:function(){return function(e){var t,n=4;while(e<((t=Math.pow(2,--n))-1)/11);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*t-2)/22-e,2)}},Elastic:function(e,t){void 0===e&&(e=1),void 0===t&&(t=.5);var n=s(e,1,10),r=s(t,.1,2);return function(e){return 0===e||1===e?e:-n*Math.pow(2,10*(e-1))*Math.sin((e-1-r/(2*Math.PI)*Math.asin(1/n))*(2*Math.PI)/r)}}},n=["Quad","Cubic","Quart","Quint","Expo"];return n.forEach((function(e,n){t[e]=function(){return function(e){return Math.pow(e,n+2)}}})),Object.keys(t).forEach((function(n){var r=t[n];e["easeIn"+n]=r,e["easeOut"+n]=function(e,t){return function(n){return 1-r(e,t)(1-n)}},e["easeInOut"+n]=function(e,t){return function(n){return n<.5?r(e,t)(2*n)/2:1-r(e,t)(-2*n+2)/2}},e["easeOutIn"+n]=function(e,t){return function(n){return n<.5?(1-r(e,t)(1-2*n))/2:(r(e,t)(2*n-1)+1)/2}}})),e}();function m(e,t){if(l.fnc(e))return e;var n=e.split("(")[0],r=g[n],i=d(e);switch(n){case"spring":return h(e,t);case"cubicBezier":return u(p,i);case"steps":return u(f,i);default:return u(r,i)}}function v(e){try{var t=document.querySelectorAll(e);return t}catch(n){return}}function y(e,t){for(var n=e.length,r=arguments.length>=2?arguments[1]:void 0,i=[],o=0;o<n;o++)if(o in e){var a=e[o];t.call(r,a,o,e)&&i.push(a)}return i}function _(e){return e.reduce((function(e,t){return e.concat(l.arr(t)?_(t):t)}),[])}function b(e){return l.arr(e)?e:(l.str(e)&&(e=v(e)||e),e instanceof NodeList||e instanceof HTMLCollection?[].slice.call(e):[e])}function S(e,t){return e.some((function(e){return e===t}))}function x(e){var t={};for(var n in e)t[n]=e[n];return t}function w(e,t){var n=x(e);for(var r in e)n[r]=t.hasOwnProperty(r)?t[r]:e[r];return n}function I(e,t){var n=x(e);for(var r in t)n[r]=l.und(e[r])?t[r]:e[r];return n}function C(e){var t=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(e);return t?"rgba("+t[1]+",1)":e}function M(e){var t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,n=e.replace(t,(function(e,t,n,r){return t+t+n+n+r+r})),r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(n),i=parseInt(r[1],16),o=parseInt(r[2],16),a=parseInt(r[3],16);return"rgba("+i+","+o+","+a+",1)"}function T(e){var t,n,r,i=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(e)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(e),o=parseInt(i[1],10)/360,a=parseInt(i[2],10)/100,s=parseInt(i[3],10)/100,c=i[4]||1;function u(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(0==a)t=n=r=s;else{var l=s<.5?s*(1+a):s+a-s*a,d=2*s-l;t=u(d,l,o+1/3),n=u(d,l,o),r=u(d,l,o-1/3)}return"rgba("+255*t+","+255*n+","+255*r+","+c+")"}function k(e){return l.rgb(e)?C(e):l.hex(e)?M(e):l.hsl(e)?T(e):void 0}function E(e){var t=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(e);if(t)return t[1]}function A(e){return c(e,"translate")||"perspective"===e?"px":c(e,"rotate")||c(e,"skew")?"deg":void 0}function D(e,t){return l.fnc(e)?e(t.target,t.id,t.total):e}function O(e,t){return e.getAttribute(t)}function R(e,t,n){var r=E(t);if(S([n,"deg","rad","turn"],r))return t;var i=a.CSS[t+n];if(!l.und(i))return i;var o=100,s=document.createElement(e.tagName),c=e.parentNode&&e.parentNode!==document?e.parentNode:document.body;c.appendChild(s),s.style.position="absolute",s.style.width=o+n;var u=o/s.offsetWidth;c.removeChild(s);var d=u*parseFloat(t);return a.CSS[t+n]=d,d}function L(e,t,n){if(t in e.style){var r=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),i=e.style[t]||getComputedStyle(e).getPropertyValue(r)||"0";return n?R(e,i,n):i}}function P(e,t){return l.dom(e)&&!l.inp(e)&&(!l.nil(O(e,t))||l.svg(e)&&e[t])?"attribute":l.dom(e)&&S(o,t)?"transform":l.dom(e)&&"transform"!==t&&L(e,t)?"css":null!=e[t]?"object":void 0}function N(e){if(l.dom(e)){var t,n=e.style.transform||"",r=/(\w+)\(([^)]*)\)/g,i=new Map;while(t=r.exec(n))i.set(t[1],t[2]);return i}}function U(e,t,n,r){var i=c(t,"scale")?1:0+A(t),o=N(e).get(t)||i;return n&&(n.transforms.list.set(t,o),n.transforms["last"]=t),r?R(e,o,r):o}function F(e,t,n,r){switch(P(e,t)){case"transform":return U(e,t,r,n);case"css":return L(e,t,n);case"attribute":return O(e,t);default:return e[t]||0}}function G(e,t){var n=/^(\*=|\+=|-=)/.exec(e);if(!n)return e;var r=E(e)||0,i=parseFloat(t),o=parseFloat(e.replace(n[0],""));switch(n[0][0]){case"+":return i+o+r;case"-":return i-o+r;case"*":return i*o+r}}function V(e,t){if(l.col(e))return k(e);if(/\s/g.test(e))return e;var n=E(e),r=n?e.substr(0,e.length-n.length):e;return t?r+t:r}function j(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function B(e){return 2*Math.PI*O(e,"r")}function z(e){return 2*O(e,"width")+2*O(e,"height")}function H(e){return j({x:O(e,"x1"),y:O(e,"y1")},{x:O(e,"x2"),y:O(e,"y2")})}function W(e){for(var t,n=e.points,r=0,i=0;i<n.numberOfItems;i++){var o=n.getItem(i);i>0&&(r+=j(t,o)),t=o}return r}function q(e){var t=e.points;return W(e)+j(t.getItem(t.numberOfItems-1),t.getItem(0))}function $(e){if(e.getTotalLength)return e.getTotalLength();switch(e.tagName.toLowerCase()){case"circle":return B(e);case"rect":return z(e);case"line":return H(e);case"polyline":return W(e);case"polygon":return q(e)}}function K(e){var t=$(e);return e.setAttribute("stroke-dasharray",t),t}function Y(e){var t=e.parentNode;while(l.svg(t)){if(!l.svg(t.parentNode))break;t=t.parentNode}return t}function J(e,t){var n=t||{},r=n.el||Y(e),i=r.getBoundingClientRect(),o=O(r,"viewBox"),a=i.width,s=i.height,c=n.viewBox||(o?o.split(" "):[0,0,a,s]);return{el:r,viewBox:c,x:c[0]/1,y:c[1]/1,w:a,h:s,vW:c[2],vH:c[3]}}function X(e,t){var n=l.str(e)?v(e)[0]:e,r=t||100;return function(e){return{property:e,el:n,svg:J(n),totalLength:$(n)*(r/100)}}}function Z(e,t,n){function r(n){void 0===n&&(n=0);var r=t+n>=1?t+n:0;return e.el.getPointAtLength(r)}var i=J(e.el,e.svg),o=r(),a=r(-1),s=r(1),c=n?1:i.w/i.vW,u=n?1:i.h/i.vH;switch(e.property){case"x":return(o.x-i.x)*c;case"y":return(o.y-i.y)*u;case"angle":return 180*Math.atan2(s.y-a.y,s.x-a.x)/Math.PI}}function Q(e,t){var n=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,r=V(l.pth(e)?e.totalLength:e,t)+"";return{original:r,numbers:r.match(n)?r.match(n).map(Number):[0],strings:l.str(e)||t?r.split(n):[]}}function ee(e){var t=e?_(l.arr(e)?e.map(b):b(e)):[];return y(t,(function(e,t,n){return n.indexOf(e)===t}))}function te(e){var t=ee(e);return t.map((function(e,n){return{target:e,id:n,total:t.length,transforms:{list:N(e)}}}))}function ne(e,t){var n=x(t);if(/^spring/.test(n.easing)&&(n.duration=h(n.easing)),l.arr(e)){var r=e.length,i=2===r&&!l.obj(e[0]);i?e={value:e}:l.fnc(t.duration)||(n.duration=t.duration/r)}var o=l.arr(e)?e:[e];return o.map((function(e,n){var r=l.obj(e)&&!l.pth(e)?e:{value:e};return l.und(r.delay)&&(r.delay=n?0:t.delay),l.und(r.endDelay)&&(r.endDelay=n===o.length-1?t.endDelay:0),r})).map((function(e){return I(e,n)}))}function re(e){for(var t=y(_(e.map((function(e){return Object.keys(e)}))),(function(e){return l.key(e)})).reduce((function(e,t){return e.indexOf(t)<0&&e.push(t),e}),[]),n={},r=function(r){var i=t[r];n[i]=e.map((function(e){var t={};for(var n in e)l.key(n)?n==i&&(t.value=e[n]):t[n]=e[n];return t}))},i=0;i<t.length;i++)r(i);return n}function ie(e,t){var n=[],r=t.keyframes;for(var i in r&&(t=I(re(r),t)),t)l.key(i)&&n.push({name:i,tweens:ne(t[i],e)});return n}function oe(e,t){var n={};for(var r in e){var i=D(e[r],t);l.arr(i)&&(i=i.map((function(e){return D(e,t)})),1===i.length&&(i=i[0])),n[r]=i}return n.duration=parseFloat(n.duration),n.delay=parseFloat(n.delay),n}function ae(e,t){var n;return e.tweens.map((function(r){var i=oe(r,t),o=i.value,a=l.arr(o)?o[1]:o,s=E(a),c=F(t.target,e.name,s,t),u=n?n.to.original:c,d=l.arr(o)?o[0]:u,h=E(d)||E(c),f=s||h;return l.und(a)&&(a=u),i.from=Q(d,f),i.to=Q(G(a,d),f),i.start=n?n.end:0,i.end=i.start+i.delay+i.duration+i.endDelay,i.easing=m(i.easing,i.duration),i.isPath=l.pth(o),i.isPathTargetInsideSVG=i.isPath&&l.svg(t.target),i.isColor=l.col(i.from.original),i.isColor&&(i.round=1),n=i,i}))}var se={css:function(e,t,n){return e.style[t]=n},attribute:function(e,t,n){return e.setAttribute(t,n)},object:function(e,t,n){return e[t]=n},transform:function(e,t,n,r,i){if(r.list.set(t,n),t===r.last||i){var o="";r.list.forEach((function(e,t){o+=t+"("+e+") "})),e.style.transform=o}}};function ce(e,t){var n=te(e);n.forEach((function(e){for(var n in t){var r=D(t[n],e),i=e.target,o=E(r),a=F(i,n,o,e),s=o||E(a),c=G(V(r,s),a),u=P(i,n);se[u](i,n,c,e.transforms,!0)}}))}function ue(e,t){var n=P(e.target,t.name);if(n){var r=ae(t,e),i=r[r.length-1];return{type:n,property:t.name,animatable:e,tweens:r,duration:i.end,delay:r[0].delay,endDelay:i.endDelay}}}function le(e,t){return y(_(e.map((function(e){return t.map((function(t){return ue(e,t)}))}))),(function(e){return!l.und(e)}))}function de(e,t){var n=e.length,r=function(e){return e.timelineOffset?e.timelineOffset:0},i={};return i.duration=n?Math.max.apply(Math,e.map((function(e){return r(e)+e.duration}))):t.duration,i.delay=n?Math.min.apply(Math,e.map((function(e){return r(e)+e.delay}))):t.delay,i.endDelay=n?i.duration-Math.max.apply(Math,e.map((function(e){return r(e)+e.duration-e.endDelay}))):t.endDelay,i}var he=0;function fe(e){var t=w(r,e),n=w(i,e),o=ie(n,e),a=te(e.targets),s=le(a,o),c=de(s,n),u=he;return he++,I(t,{id:u,children:[],animatables:a,animations:s,duration:c.duration,delay:c.delay,endDelay:c.endDelay})}var pe=[],ge=function(){var e;function t(){e||me()&&ve.suspendWhenDocumentHidden||!(pe.length>0)||(e=requestAnimationFrame(n))}function n(t){var r=pe.length,i=0;while(i<r){var o=pe[i];o.paused?(pe.splice(i,1),r--):(o.tick(t),i++)}e=i>0?requestAnimationFrame(n):void 0}function r(){ve.suspendWhenDocumentHidden&&(me()?e=cancelAnimationFrame(e):(pe.forEach((function(e){return e._onDocumentVisibility()})),ge()))}return"undefined"!==typeof document&&document.addEventListener("visibilitychange",r),t}();function me(){return!!document&&document.hidden}function ve(e){void 0===e&&(e={});var t,n=0,r=0,i=0,o=0,a=null;function c(e){var t=window.Promise&&new Promise((function(e){return a=e}));return e.finished=t,t}var u=fe(e);c(u);function l(){var e=u.direction;"alternate"!==e&&(u.direction="normal"!==e?"normal":"reverse"),u.reversed=!u.reversed,t.forEach((function(e){return e.reversed=u.reversed}))}function d(e){return u.reversed?u.duration-e:e}function h(){n=0,r=d(u.currentTime)*(1/ve.speed)}function f(e,t){t&&t.seek(e-t.timelineOffset)}function p(e){if(u.reversePlayback)for(var n=o;n--;)f(e,t[n]);else for(var r=0;r<o;r++)f(e,t[r])}function g(e){var t=0,n=u.animations,r=n.length;while(t<r){var i=n[t],o=i.animatable,a=i.tweens,c=a.length-1,l=a[c];c&&(l=y(a,(function(t){return e<t.end}))[0]||l);for(var d=s(e-l.start-l.delay,0,l.duration)/l.duration,h=isNaN(d)?1:l.easing(d),f=l.to.strings,p=l.round,g=[],m=l.to.numbers.length,v=void 0,_=0;_<m;_++){var b=void 0,S=l.to.numbers[_],x=l.from.numbers[_]||0;b=l.isPath?Z(l.value,h*S,l.isPathTargetInsideSVG):x+h*(S-x),p&&(l.isColor&&_>2||(b=Math.round(b*p)/p)),g.push(b)}var w=f.length;if(w){v=f[0];for(var I=0;I<w;I++){f[I];var C=f[I+1],M=g[I];isNaN(M)||(v+=C?M+C:M+" ")}}else v=g[0];se[i.type](o.target,i.property,v,o.transforms),i.currentValue=v,t++}}function m(e){u[e]&&!u.passThrough&&u[e](u)}function v(){u.remaining&&!0!==u.remaining&&u.remaining--}function _(e){var o=u.duration,h=u.delay,f=o-u.endDelay,y=d(e);u.progress=s(y/o*100,0,100),u.reversePlayback=y<u.currentTime,t&&p(y),!u.began&&u.currentTime>0&&(u.began=!0,m("begin")),!u.loopBegan&&u.currentTime>0&&(u.loopBegan=!0,m("loopBegin")),y<=h&&0!==u.currentTime&&g(0),(y>=f&&u.currentTime!==o||!o)&&g(o),y>h&&y<f?(u.changeBegan||(u.changeBegan=!0,u.changeCompleted=!1,m("changeBegin")),m("change"),g(y)):u.changeBegan&&(u.changeCompleted=!0,u.changeBegan=!1,m("changeComplete")),u.currentTime=s(y,0,o),u.began&&m("update"),e>=o&&(r=0,v(),u.remaining?(n=i,m("loopComplete"),u.loopBegan=!1,"alternate"===u.direction&&l()):(u.paused=!0,u.completed||(u.completed=!0,m("loopComplete"),m("complete"),!u.passThrough&&"Promise"in window&&(a(),c(u)))))}return u.reset=function(){var e=u.direction;u.passThrough=!1,u.currentTime=0,u.progress=0,u.paused=!0,u.began=!1,u.loopBegan=!1,u.changeBegan=!1,u.completed=!1,u.changeCompleted=!1,u.reversePlayback=!1,u.reversed="reverse"===e,u.remaining=u.loop,t=u.children,o=t.length;for(var n=o;n--;)u.children[n].reset();(u.reversed&&!0!==u.loop||"alternate"===e&&1===u.loop)&&u.remaining++,g(u.reversed?u.duration:0)},u._onDocumentVisibility=h,u.set=function(e,t){return ce(e,t),u},u.tick=function(e){i=e,n||(n=i),_((i+(r-n))*ve.speed)},u.seek=function(e){_(d(e))},u.pause=function(){u.paused=!0,h()},u.play=function(){u.paused&&(u.completed&&u.reset(),u.paused=!1,pe.push(u),h(),ge())},u.reverse=function(){l(),u.completed=!u.reversed,h()},u.restart=function(){u.reset(),u.play()},u.remove=function(e){var t=ee(e);_e(t,u)},u.reset(),u.autoplay&&u.play(),u}function ye(e,t){for(var n=t.length;n--;)S(e,t[n].animatable.target)&&t.splice(n,1)}function _e(e,t){var n=t.animations,r=t.children;ye(e,n);for(var i=r.length;i--;){var o=r[i],a=o.animations;ye(e,a),a.length||o.children.length||r.splice(i,1)}n.length||r.length||t.pause()}function be(e){for(var t=ee(e),n=pe.length;n--;){var r=pe[n];_e(t,r)}}function Se(e,t){void 0===t&&(t={});var n=t.direction||"normal",r=t.easing?m(t.easing):null,i=t.grid,o=t.axis,a=t.from||0,s="first"===a,c="center"===a,u="last"===a,d=l.arr(e),h=d?parseFloat(e[0]):parseFloat(e),f=d?parseFloat(e[1]):0,p=E(d?e[1]:e)||0,g=t.start||0+(d?h:0),v=[],y=0;return function(e,t,l){if(s&&(a=0),c&&(a=(l-1)/2),u&&(a=l-1),!v.length){for(var m=0;m<l;m++){if(i){var _=c?(i[0]-1)/2:a%i[0],b=c?(i[1]-1)/2:Math.floor(a/i[0]),S=m%i[0],x=Math.floor(m/i[0]),w=_-S,I=b-x,C=Math.sqrt(w*w+I*I);"x"===o&&(C=-w),"y"===o&&(C=-I),v.push(C)}else v.push(Math.abs(a-m));y=Math.max.apply(Math,v)}r&&(v=v.map((function(e){return r(e/y)*y}))),"reverse"===n&&(v=v.map((function(e){return o?e<0?-1*e:-e:Math.abs(y-e)})))}var M=d?(f-h)/y:h;return g+M*(Math.round(100*v[t])/100)+p}}function xe(e){void 0===e&&(e={});var t=ve(e);return t.duration=0,t.add=function(n,r){var o=pe.indexOf(t),a=t.children;function s(e){e.passThrough=!0}o>-1&&pe.splice(o,1);for(var c=0;c<a.length;c++)s(a[c]);var u=I(n,w(i,e));u.targets=u.targets||e.targets;var d=t.duration;u.autoplay=!1,u.direction=t.direction,u.timelineOffset=l.und(r)?d:G(r,d),s(t),t.seek(u.timelineOffset);var h=ve(u);s(h),a.push(h);var f=de(a,e);return t.delay=f.delay,t.endDelay=f.endDelay,t.duration=f.duration,t.seek(0),t.reset(),t.autoplay&&t.play(),t},t}ve.version="3.2.1",ve.speed=1,ve.suspendWhenDocumentHidden=!0,ve.running=pe,ve.remove=be,ve.get=F,ve.set=ce,ve.convertPx=R,ve.path=X,ve.setDashoffset=K,ve.stagger=Se,ve.timeline=xe,ve.easing=m,ve.penner=g,ve.random=function(e,t){return Math.floor(Math.random()*(t-e+1))+e},t["a"]=ve},1276:function(e,t,n){"use strict";var r=n("2ba4"),i=n("c65b"),o=n("e330"),a=n("d784"),s=n("44e7"),c=n("825a"),u=n("1d80"),l=n("4840"),d=n("8aa5"),h=n("50c4"),f=n("577e"),p=n("dc4a"),g=n("4dae"),m=n("14c3"),v=n("9263"),y=n("9f7f"),_=n("d039"),b=y.UNSUPPORTED_Y,S=4294967295,x=Math.min,w=[].push,I=o(/./.exec),C=o(w),M=o("".slice),T=!_((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]}));a("split",(function(e,t,n){var o;return o="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 o=f(u(this)),a=void 0===n?S:n>>>0;if(0===a)return[];if(void 0===e)return[o];if(!s(e))return i(t,o,e,a);var c,l,d,h=[],p=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),m=0,y=new RegExp(e.source,p+"g");while(c=i(v,y,o)){if(l=y.lastIndex,l>m&&(C(h,M(o,m,c.index)),c.length>1&&c.index<o.length&&r(w,h,g(c,1)),d=c[0].length,m=l,h.length>=a))break;y.lastIndex===c.index&&y.lastIndex++}return m===o.length?!d&&I(y,"")||C(h,""):C(h,M(o,m)),h.length>a?g(h,0,a):h}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:i(t,this,e,n)}:t,[function(t,n){var r=u(this),a=void 0==t?void 0:p(t,e);return a?i(a,t,r,n):i(o,f(r),t,n)},function(e,r){var i=c(this),a=f(e),s=n(o,i,a,r,o!==t);if(s.done)return s.value;var u=l(i,RegExp),p=i.unicode,g=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(b?"g":"y"),v=new u(b?"^(?:"+i.source+")":i,g),y=void 0===r?S:r>>>0;if(0===y)return[];if(0===a.length)return null===m(v,a)?[a]:[];var _=0,w=0,I=[];while(w<a.length){v.lastIndex=b?0:w;var T,k=m(v,b?M(a,w):a);if(null===k||(T=x(h(v.lastIndex+(b?w:0)),a.length))===_)w=d(a,w,p);else{if(C(I,M(a,_,w)),I.length===y)return I;for(var E=1;E<=k.length-1;E++)if(C(I,k[E]),I.length===y)return I;w=_=T}}return C(I,M(a,_)),I}]}),!T,b)},"12f2":function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return{methods:{focus:function(){this.$refs[e].focus()}}}}},"133d":function(e,t,n){var r=n("6d8b"),i=n("e0d3");function o(e,t){var n,o=[],a=e.seriesIndex;if(null==a||!(n=t.getSeriesByIndex(a)))return{point:[]};var s=n.getData(),c=i.queryDataIndex(s,e);if(null==c||c<0||r.isArray(c))return{point:[]};var u=s.getItemGraphicEl(c),l=n.coordinateSystem;if(n.getTooltipPosition)o=n.getTooltipPosition(c)||[];else if(l&&l.dataToPoint)o=l.dataToPoint(s.getValues(r.map(l.dimensions,(function(e){return s.mapDimension(e)})),c,!0))||[];else if(u){var d=u.getBoundingRect().clone();d.applyTransform(u.transform),o=[d.x+d.width/2,d.y+d.height/2]}return{point:o,el:u}}e.exports=o},1418:function(e,t,n){var r=n("6d8b"),i=n("a15a"),o=i.createSymbol,a=n("2306"),s=n("3842"),c=s.parsePercent,u=n("c775"),l=u.getDefaultLabel;function d(e,t,n){a.Group.call(this),this.updateData(e,t,n)}var h=d.prototype,f=d.getSymbolSize=function(e,t){var n=e.getItemVisual(t,"symbolSize");return n instanceof Array?n.slice():[+n,+n]};function p(e){return[e[0]/2,e[1]/2]}function g(e,t){this.parent.drift(e,t)}h._createSymbol=function(e,t,n,r,i){this.removeAll();var a=t.getItemVisual(n,"color"),s=o(e,-1,-1,2,2,a,i);s.attr({z2:100,culling:!0,scale:p(r)}),s.drift=g,this._symbolType=e,this.add(s)},h.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(e)},h.getSymbolPath=function(){return this.childAt(0)},h.getScale=function(){return this.childAt(0).scale},h.highlight=function(){this.childAt(0).trigger("emphasis")},h.downplay=function(){this.childAt(0).trigger("normal")},h.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},h.setDraggable=function(e){var t=this.childAt(0);t.draggable=e,t.cursor=e?"move":t.cursor},h.updateData=function(e,t,n){this.silent=!1;var r=e.getItemVisual(t,"symbol")||"circle",i=e.hostModel,o=f(e,t),s=r!==this._symbolType;if(s){var c=e.getItemVisual(t,"symbolKeepAspect");this._createSymbol(r,e,t,o,c)}else{var u=this.childAt(0);u.silent=!1,a.updateProps(u,{scale:p(o)},i,t)}if(this._updateCommon(e,t,o,n),s){u=this.childAt(0);var l=n&&n.fadeIn,d={scale:u.scale.slice()};l&&(d.style={opacity:u.style.opacity}),u.scale=[0,0],l&&(u.style.opacity=0),a.initProps(u,d,i,t)}this._seriesModel=i};var m=["itemStyle"],v=["emphasis","itemStyle"],y=["label"],_=["emphasis","label"];function b(e,t){if(!this.incremental&&!this.useHoverLayer)if("emphasis"===t){var n=this.__symbolOriginalScale,r=n[1]/n[0],i={scale:[Math.max(1.1*n[0],n[0]+3),Math.max(1.1*n[1],n[1]+3*r)]};this.animateTo(i,400,"elasticOut")}else"normal"===t&&this.animateTo({scale:this.__symbolOriginalScale},400,"elasticOut")}h._updateCommon=function(e,t,n,i){var o=this.childAt(0),s=e.hostModel,u=e.getItemVisual(t,"color");"image"!==o.type?o.useStyle({strokeNoScale:!0}):o.setStyle({opacity:1,shadowBlur:null,shadowOffsetX:null,shadowOffsetY:null,shadowColor:null});var d=i&&i.itemStyle,h=i&&i.hoverItemStyle,f=i&&i.symbolOffset,g=i&&i.labelModel,S=i&&i.hoverLabelModel,x=i&&i.hoverAnimation,w=i&&i.cursorStyle;if(!i||e.hasItemOption){var I=i&&i.itemModel?i.itemModel:e.getItemModel(t);d=I.getModel(m).getItemStyle(["color"]),h=I.getModel(v).getItemStyle(),f=I.getShallow("symbolOffset"),g=I.getModel(y),S=I.getModel(_),x=I.getShallow("hoverAnimation"),w=I.getShallow("cursor")}else h=r.extend({},h);var C=o.style,M=e.getItemVisual(t,"symbolRotate");o.attr("rotation",(M||0)*Math.PI/180||0),f&&o.attr("position",[c(f[0],n[0]),c(f[1],n[1])]),w&&o.attr("cursor",w),o.setColor(u,i&&i.symbolInnerColor),o.setStyle(d);var T=e.getItemVisual(t,"opacity");null!=T&&(C.opacity=T);var k=e.getItemVisual(t,"liftZ"),E=o.__z2Origin;null!=k?null==E&&(o.__z2Origin=o.z2,o.z2+=k):null!=E&&(o.z2=E,o.__z2Origin=null);var A=i&&i.useNameLabel;function D(t,n){return A?e.getName(t):l(e,t)}a.setLabelStyle(C,h,g,S,{labelFetcher:s,labelDataIndex:t,defaultText:D,isRectText:!0,autoColor:u}),o.__symbolOriginalScale=p(n),o.hoverStyle=h,o.highDownOnUpdate=x&&s.isAnimationEnabled()?b:null,a.setHoverStyle(o)},h.fadeOut=function(e,t){var n=this.childAt(0);this.silent=n.silent=!0,(!t||!t.keepLabel)&&(n.style.text=null),a.updateProps(n,{style:{opacity:0},scale:[0,0]},this._seriesModel,this.dataIndex,e)},r.inherits(d,a.Group);var S=d;e.exports=S},"143c":function(e,t,n){var r=n("74e8");r("Int32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},1448:function(e,t,n){var r=n("dfb9"),i=n("b6b7");e.exports=function(e,t){return r(i(e),t)}},"145e":function(e,t,n){"use strict";var r=n("7b0b"),i=n("23cb"),o=n("07fa"),a=Math.min;e.exports=[].copyWithin||function(e,t){var n=r(this),s=o(n),c=i(e,s),u=i(t,s),l=arguments.length>2?arguments[2]:void 0,d=a((void 0===l?s:i(l,s))-u,s-c),h=1;u<c&&c<u+d&&(h=-1,u+=d-1,c+=d-1);while(d-- >0)u in n?n[c]=n[u]:delete n[c],c+=h,u+=h;return n}},1466:function(e,t,n){var r=n("3eba"),i=n("2306"),o=n("6d8b"),a=n("a15a");function s(e){return o.isArray(e)||(e=[+e,+e]),e}var c=r.extendChartView({type:"radar",render:function(e,t,n){var r=e.coordinateSystem,c=this.group,u=e.getData(),l=this._data;function d(e,t){var n=e.getItemVisual(t,"symbol")||"circle",r=e.getItemVisual(t,"color");if("none"!==n){var i=s(e.getItemVisual(t,"symbolSize")),o=a.createSymbol(n,-1,-1,2,2,r),c=e.getItemVisual(t,"symbolRotate")||0;return o.attr({style:{strokeNoScale:!0},z2:100,scale:[i[0]/2,i[1]/2],rotation:c*Math.PI/180||0}),o}}function h(t,n,r,o,a,s){r.removeAll();for(var c=0;c<n.length-1;c++){var u=d(o,a);u&&(u.__dimIdx=c,t[c]?(u.attr("position",t[c]),i[s?"initProps":"updateProps"](u,{position:n[c]},e,a)):u.attr("position",n[c]),r.add(u))}}function f(e){return o.map(e,(function(e){return[r.cx,r.cy]}))}u.diff(l).add((function(t){var n=u.getItemLayout(t);if(n){var r=new i.Polygon,o=new i.Polyline,a={shape:{points:n}};r.shape.points=f(n),o.shape.points=f(n),i.initProps(r,a,e,t),i.initProps(o,a,e,t);var s=new i.Group,c=new i.Group;s.add(o),s.add(r),s.add(c),h(o.shape.points,n,c,u,t,!0),u.setItemGraphicEl(t,s)}})).update((function(t,n){var r=l.getItemGraphicEl(n),o=r.childAt(0),a=r.childAt(1),s=r.childAt(2),c={shape:{points:u.getItemLayout(t)}};c.shape.points&&(h(o.shape.points,c.shape.points,s,u,t,!1),i.updateProps(o,c,e),i.updateProps(a,c,e),u.setItemGraphicEl(t,r))})).remove((function(e){c.remove(l.getItemGraphicEl(e))})).execute(),u.eachItemGraphicEl((function(e,t){var n=u.getItemModel(t),r=e.childAt(0),a=e.childAt(1),s=e.childAt(2),l=u.getItemVisual(t,"color");c.add(e),r.useStyle(o.defaults(n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:l})),r.hoverStyle=n.getModel("emphasis.lineStyle").getLineStyle();var d=n.getModel("areaStyle"),h=n.getModel("emphasis.areaStyle"),f=d.isEmpty()&&d.parentModel.isEmpty(),p=h.isEmpty()&&h.parentModel.isEmpty();p=p&&f,a.ignore=f,a.useStyle(o.defaults(d.getAreaStyle(),{fill:l,opacity:.7})),a.hoverStyle=h.getAreaStyle();var g=n.getModel("itemStyle").getItemStyle(["color"]),m=n.getModel("emphasis.itemStyle").getItemStyle(),v=n.getModel("label"),y=n.getModel("emphasis.label");s.eachChild((function(e){e.setStyle(g),e.hoverStyle=o.clone(m);var n=u.get(u.dimensions[e.__dimIdx],t);(null==n||isNaN(n))&&(n=""),i.setLabelStyle(e.style,e.hoverStyle,v,y,{labelFetcher:u.hostModel,labelDataIndex:t,labelDimIndex:e.__dimIdx,defaultText:n,autoColor:l,isRectText:!0})})),e.highDownOnUpdate=function(e,t){a.attr("ignore","emphasis"===t?p:f)},i.setHoverStyle(e)})),this._data=u},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}});e.exports=c},"14c3":function(e,t,n){var r=n("da84"),i=n("c65b"),o=n("825a"),a=n("1626"),s=n("c6b6"),c=n("9263"),u=r.TypeError;e.exports=function(e,t){var n=e.exec;if(a(n)){var r=i(n,e,t);return null!==r&&o(r),r}if("RegExp"===s(e))return i(c,e,t);throw u("RegExp#exec called on incompatible receiver")}},"14d3":function(e,t,n){var r=n("6d8b"),i=n("2306"),o=n("fab2"),a=n("6679"),s=["axisLine","axisTickLabel","axisName"],c=["splitLine","splitArea","minorSplitLine"],u=a.extend({type:"radiusAxis",axisPointerClass:"PolarAxisPointer",render:function(e,t){if(this.group.removeAll(),e.get("show")){var n=e.axis,i=n.polar,a=i.getAngleAxis(),u=n.getTicksCoords(),d=n.getMinorTicksCoords(),h=a.getExtent()[0],f=n.getExtent(),p=l(i,e,h),g=new o(e,p);r.each(s,g.add,g),this.group.add(g.getGroup()),r.each(c,(function(t){e.get(t+".show")&&!n.scale.isBlank()&&this["_"+t](e,i,h,f,u,d)}),this)}},_splitLine:function(e,t,n,o,a){var s=e.getModel("splitLine"),c=s.getModel("lineStyle"),u=c.get("color"),l=0;u=u instanceof Array?u:[u];for(var d=[],h=0;h<a.length;h++){var f=l++%u.length;d[f]=d[f]||[],d[f].push(new i.Circle({shape:{cx:t.cx,cy:t.cy,r:a[h].coord}}))}for(h=0;h<d.length;h++)this.group.add(i.mergePath(d[h],{style:r.defaults({stroke:u[h%u.length],fill:null},c.getLineStyle()),silent:!0}))},_minorSplitLine:function(e,t,n,o,a,s){if(s.length){for(var c=e.getModel("minorSplitLine"),u=c.getModel("lineStyle"),l=[],d=0;d<s.length;d++)for(var h=0;h<s[d].length;h++)l.push(new i.Circle({shape:{cx:t.cx,cy:t.cy,r:s[d][h].coord}}));this.group.add(i.mergePath(l,{style:r.defaults({fill:null},u.getLineStyle()),silent:!0}))}},_splitArea:function(e,t,n,o,a){if(a.length){var s=e.getModel("splitArea"),c=s.getModel("areaStyle"),u=c.get("color"),l=0;u=u instanceof Array?u:[u];for(var d=[],h=a[0].coord,f=1;f<a.length;f++){var p=l++%u.length;d[p]=d[p]||[],d[p].push(new i.Sector({shape:{cx:t.cx,cy:t.cy,r0:h,r:a[f].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),h=a[f].coord}for(f=0;f<d.length;f++)this.group.add(i.mergePath(d[f],{style:r.defaults({fill:u[f%u.length]},c.getAreaStyle()),silent:!0}))}}});function l(e,t,n){return{position:[e.cx,e.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}e.exports=u},"14e9":function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=132)}({132:function(e,t,n){"use strict";n.r(t);var r=n(16),i=n(38),o=n.n(i),a=n(3),s=n(2),c={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}};function u(e){var t=e.move,n=e.size,r=e.bar,i={},o="translate"+r.axis+"("+t+"%)";return i[r.size]=n,i.transform=o,i.msTransform=o,i.webkitTransform=o,i}var l={name:"Bar",props:{vertical:Boolean,size:String,move:Number},computed:{bar:function(){return c[this.vertical?"vertical":"horizontal"]},wrap:function(){return this.$parent.wrap}},render:function(e){var t=this.size,n=this.move,r=this.bar;return e("div",{class:["el-scrollbar__bar","is-"+r.key],on:{mousedown:this.clickTrackHandler}},[e("div",{ref:"thumb",class:"el-scrollbar__thumb",on:{mousedown:this.clickThumbHandler},style:u({size:t,move:n,bar:r})})])},methods:{clickThumbHandler:function(e){e.ctrlKey||2===e.button||(this.startDrag(e),this[this.bar.axis]=e.currentTarget[this.bar.offset]-(e[this.bar.client]-e.currentTarget.getBoundingClientRect()[this.bar.direction]))},clickTrackHandler:function(e){var t=Math.abs(e.target.getBoundingClientRect()[this.bar.direction]-e[this.bar.client]),n=this.$refs.thumb[this.bar.offset]/2,r=100*(t-n)/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=r*this.wrap[this.bar.scrollSize]/100},startDrag:function(e){e.stopImmediatePropagation(),this.cursorDown=!0,Object(s["on"])(document,"mousemove",this.mouseMoveDocumentHandler),Object(s["on"])(document,"mouseup",this.mouseUpDocumentHandler),document.onselectstart=function(){return!1}},mouseMoveDocumentHandler:function(e){if(!1!==this.cursorDown){var t=this[this.bar.axis];if(t){var n=-1*(this.$el.getBoundingClientRect()[this.bar.direction]-e[this.bar.client]),r=this.$refs.thumb[this.bar.offset]-t,i=100*(n-r)/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=i*this.wrap[this.bar.scrollSize]/100}}},mouseUpDocumentHandler:function(e){this.cursorDown=!1,this[this.bar.axis]=0,Object(s["off"])(document,"mousemove",this.mouseMoveDocumentHandler),document.onselectstart=null}},destroyed:function(){Object(s["off"])(document,"mouseup",this.mouseUpDocumentHandler)}},d={name:"ElScrollbar",components:{Bar:l},props:{native:Boolean,wrapStyle:{},wrapClass:{},viewClass:{},viewStyle:{},noresize:Boolean,tag:{type:String,default:"div"}},data:function(){return{sizeWidth:"0",sizeHeight:"0",moveX:0,moveY:0}},computed:{wrap:function(){return this.$refs.wrap}},render:function(e){var t=o()(),n=this.wrapStyle;if(t){var r="-"+t+"px",i="margin-bottom: "+r+"; margin-right: "+r+";";Array.isArray(this.wrapStyle)?(n=Object(a["toObject"])(this.wrapStyle),n.marginRight=n.marginBottom=r):"string"===typeof this.wrapStyle?n+=i:n=i}var s=e(this.tag,{class:["el-scrollbar__view",this.viewClass],style:this.viewStyle,ref:"resize"},this.$slots.default),c=e("div",{ref:"wrap",style:n,on:{scroll:this.handleScroll},class:[this.wrapClass,"el-scrollbar__wrap",t?"":"el-scrollbar__wrap--hidden-default"]},[[s]]),u=void 0;return u=this.native?[e("div",{ref:"wrap",class:[this.wrapClass,"el-scrollbar__wrap"],style:n},[[s]])]:[c,e(l,{attrs:{move:this.moveX,size:this.sizeWidth}}),e(l,{attrs:{vertical:!0,move:this.moveY,size:this.sizeHeight}})],e("div",{class:"el-scrollbar"},u)},methods:{handleScroll:function(){var e=this.wrap;this.moveY=100*e.scrollTop/e.clientHeight,this.moveX=100*e.scrollLeft/e.clientWidth},update:function(){var e=void 0,t=void 0,n=this.wrap;n&&(e=100*n.clientHeight/n.scrollHeight,t=100*n.clientWidth/n.scrollWidth,this.sizeHeight=e<100?e+"%":"",this.sizeWidth=t<100?t+"%":"")}},mounted:function(){this.native||(this.$nextTick(this.update),!this.noresize&&Object(r["addResizeListener"])(this.$refs.resize,this.update))},beforeDestroy:function(){this.native||!this.noresize&&Object(r["removeResizeListener"])(this.$refs.resize,this.update)},install:function(e){e.component(d.name,d)}};t["default"]=d},16:function(e,t){e.exports=n("4010")},2:function(e,t){e.exports=n("5924")},3:function(e,t){e.exports=n("8122")},38:function(e,t){e.exports=n("e62d")}})},1548:function(e,t,n){var r=n("6d8b"),i=n("3301"),o=n("697e"),a=n("2023"),s=n("4319"),c=n("f934");c.getLayoutRect;t.getLayoutRect=c.getLayoutRect;var u=n("ee1a"),l=u.enableDataStack,d=u.isDimensionStacked,h=u.getStackedDimension,f=n("862d");t.completeDimensions=f;var p=n("b1d4");t.createDimensions=p;var g=n("a15a");function m(e){return i(e.getSource(),e)}t.createSymbol=g.createSymbol;var v={isDimensionStacked:d,enableDataStack:l,getStackedDimension:h};function y(e,t){var n=t;s.isInstance(t)||(n=new s(t),r.mixin(n,a));var i=o.createScaleByModel(n);return i.setExtent(e[0],e[1]),o.niceScaleExtent(i,n),i}function _(e){r.mixin(e,a)}t.createList=m,t.dataStack=v,t.createScale=y,t.mixinAxisModelCommonMethods=_},"159b":function(e,t,n){var r=n("da84"),i=n("fdbc"),o=n("785a"),a=n("17c2"),s=n("9112"),c=function(e){if(e&&e.forEach!==a)try{s(e,"forEach",a)}catch(t){e.forEach=a}};for(var u in i)i[u]&&c(r[u]&&r[u].prototype);c(o)},"15af":function(e,t,n){var r=n("3eba");n("cb69"),n("abff");var i=n("7f96"),o=n("87c3");n("01ed"),r.registerVisual(i("scatter","circle")),r.registerLayout(o("scatter"))},1626:function(e,t){e.exports=function(e){return"function"==typeof e}},1687:function(e,t){var n="undefined"===typeof Float32Array?Array:Float32Array;function r(){var e=new n(6);return i(e),e}function i(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function o(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function a(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],o=t[0]*n[2]+t[2]*n[3],a=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],c=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=o,e[3]=a,e[4]=s,e[5]=c,e}function s(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function c(e,t,n){var r=t[0],i=t[2],o=t[4],a=t[1],s=t[3],c=t[5],u=Math.sin(n),l=Math.cos(n);return e[0]=r*l+a*u,e[1]=-r*u+a*l,e[2]=i*l+s*u,e[3]=-i*u+l*s,e[4]=l*o+u*c,e[5]=l*c-u*o,e}function u(e,t,n){var r=n[0],i=n[1];return e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i,e}function l(e,t){var n=t[0],r=t[2],i=t[4],o=t[1],a=t[3],s=t[5],c=n*a-o*r;return c?(c=1/c,e[0]=a*c,e[1]=-o*c,e[2]=-r*c,e[3]=n*c,e[4]=(r*s-a*i)*c,e[5]=(o*i-n*s)*c,e):null}function d(e){var t=r();return o(t,e),t}t.create=r,t.identity=i,t.copy=o,t.mul=a,t.translate=s,t.rotate=c,t.scale=u,t.invert=l,t.clone=d},"170b":function(e,t,n){"use strict";var r=n("ebb5"),i=n("50c4"),o=n("23cb"),a=n("b6b7"),s=r.aTypedArray,c=r.exportTypedArrayMethod;c("subarray",(function(e,t){var n=s(this),r=n.length,c=o(e,r),u=a(n);return new u(n.buffer,n.byteOffset+c*n.BYTES_PER_ELEMENT,i((void 0===t?r:o(t,r))-c))}))},1748:function(e,t,n){var r=n("3eba"),i=n("6d8b"),o=n("71ad"),a=n("4319"),s=n("2023"),c=o.valueAxis;function u(e,t){return i.defaults({show:t},e)}var l=r.extendComponentModel({type:"radar",optionUpdated:function(){var e=this.get("boundaryGap"),t=this.get("splitNumber"),n=this.get("scale"),r=this.get("axisLine"),o=this.get("axisTick"),c=this.get("axisType"),u=this.get("axisLabel"),l=this.get("name"),d=this.get("name.show"),h=this.get("name.formatter"),f=this.get("nameGap"),p=this.get("triggerEvent"),g=i.map(this.get("indicator")||[],(function(g){null!=g.max&&g.max>0&&!g.min?g.min=0:null!=g.min&&g.min<0&&!g.max&&(g.max=0);var m=l;if(null!=g.color&&(m=i.defaults({color:g.color},l)),g=i.merge(i.clone(g),{boundaryGap:e,splitNumber:t,scale:n,axisLine:r,axisTick:o,axisType:c,axisLabel:u,name:g.text,nameLocation:"end",nameGap:f,nameTextStyle:m,triggerEvent:p},!1),d||(g.name=""),"string"===typeof h){var v=g.name;g.name=h.replace("{value}",null!=v?v:"")}else"function"===typeof h&&(g.name=h(g.name,g));var y=i.extend(new a(g,null,this.ecModel),s);return y.mainType="radar",y.componentIndex=this.componentIndex,y}),this);this.getIndicatorModels=function(){return g}},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,name:{show:!0},boundaryGap:[0,0],splitNumber:5,nameGap:15,scale:!1,shape:"polygon",axisLine:i.merge({lineStyle:{color:"#bbb"}},c.axisLine),axisLabel:u(c.axisLabel,!1),axisTick:u(c.axisTick,!1),axisType:"interval",splitLine:u(c.splitLine,!0),splitArea:u(c.splitArea,!0),indicator:[]}}),d=l;e.exports=d},1792:function(e,t){var n={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};function r(e,t){if("china"===e){var r=n[t.name];if(r){var i=t.center;i[0]+=r[0]/10.5,i[1]+=-r[1]/14}}}e.exports=r},"17b8":function(e,t,n){var r=n("3014"),i=r.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=i},"17c2":function(e,t,n){"use strict";var r=n("b727").forEach,i=n("a640"),o=i("forEach");e.exports=o?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},"17d6":function(e,t,n){var r=n("6d8b"),i=n("22d1"),o=n("e0d3"),a=o.makeInner,s=a(),c=r.each;function u(e,t,n){if(!i.node){var r=t.getZr();s(r).records||(s(r).records={}),l(r,t);var o=s(r).records[e]||(s(r).records[e]={});o.handler=n}}function l(e,t){function n(n,r){e.on(n,(function(n){var i=p(t);c(s(e).records,(function(e){e&&r(e,n,i.dispatchAction)})),d(i.pendings,t)}))}s(e).initialized||(s(e).initialized=!0,n("click",r.curry(f,"click")),n("mousemove",r.curry(f,"mousemove")),n("globalout",h))}function d(e,t){var n,r=e.showTip.length,i=e.hideTip.length;r?n=e.showTip[r-1]:i&&(n=e.hideTip[i-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function h(e,t,n){e.handler("leave",null,n)}function f(e,t,n,r){t.handler(e,n,r)}function p(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function g(e,t){if(!i.node){var n=t.getZr(),r=(s(n).records||{})[e];r&&(s(n).records[e]=null)}}t.register=u,t.unregister=g},"182d":function(e,t,n){var r=n("da84"),i=n("f8cd"),o=r.RangeError;e.exports=function(e,t){var n=i(e);if(n%t)throw o("Wrong offset");return n}},"18ad":function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.doUpdate=f,t.Updater=void 0;var i=r(n("448a")),o=r(n("7037")),a=r(n("970b")),s=function e(t,n){(0,a["default"])(this,e);var r=t.chart,i=t.key,o=t.getGraphConfig;"function"===typeof o?(r[i]||(this.graphs=r[i]=[]),Object.assign(this,t),this.update(n)):console.warn("Updater need function getGraphConfig!")};function c(e,t){var n=e.graphs,r=e.chart.render,i=n.length,o=t.length;if(i>o){var a=n.splice(o);a.forEach((function(e){return e.forEach((function(e){return r.delGraph(e)}))}))}}function u(e,t,n,r){var i=r.getGraphConfig,o=r.chart.render,a=r.beforeChange,s=i(t,r);l(e,s,o),e.forEach((function(e,t){var n=s[t];"function"===typeof a&&a(e,n),h(e,n)}))}function l(e,t,n){var r=e.length,o=t.length;if(o>r){var a=e.slice(-1)[0],s=o-r,c=new Array(s).fill(0).map((function(e){return n.clone(a)}));e.push.apply(e,(0,i["default"])(c))}else if(o<r){var u=e.splice(o);u.forEach((function(e){return n.delGraph(e)}))}}function d(e,t,n,r){var i=r.getGraphConfig,o=r.getStartGraphConfig,a=r.chart,s=a.render,c=null;"function"===typeof o&&(c=o(t,r));var u=i(t,r);if(u.length){c?(e[n]=c.map((function(e){return s.add(e)})),e[n].forEach((function(e,t){var n=u[t];h(e,n)}))):e[n]=u.map((function(e){return s.add(e)}));var l=r.afterAddGraph;"function"===typeof l&&l(e[n])}}function h(e,t){var n=Object.keys(t);n.forEach((function(n){"shape"===n||"style"===n?e.animation(n,t[n],!0):e[n]=t[n]}))}function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.chart,n=e.series,r=e.key,i=e.getGraphConfig,o=e.getStartGraphConfig,a=e.beforeChange,c=e.beforeUpdate,u=e.afterAddGraph;t[r]?t[r].update(n):t[r]=new s({chart:t,key:r,getGraphConfig:i,getStartGraphConfig:o,beforeChange:a,beforeUpdate:c,afterAddGraph:u},n)}t.Updater=s,s.prototype.update=function(e){var t=this,n=this.graphs,r=this.beforeUpdate;if(c(this,e),e.length){var i=(0,o["default"])(r);e.forEach((function(e,o){"function"===i&&r(n,e,o,t);var a=n[o];a?u(a,e,o,t):d(n,e,o,t)}))}}},"18c0":function(e,t,n){var r=n("6d8b"),i=n("e0d8"),o=n("8e43"),a=i.prototype,s=i.extend({type:"ordinal",init:function(e,t){e&&!r.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:r.noop,niceExtent:r.noop});s.create=function(){return new s};var c=s;e.exports=c},"18ff":function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=93)}({0:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var c,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(c=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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=c):i&&(c=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(e,t){return c.call(t),l(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},4:function(e,t){e.exports=n("d010")},93:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{staticClass:"el-dropdown-menu__item",class:{"is-disabled":e.disabled,"el-dropdown-menu__item--divided":e.divided},attrs:{"aria-disabled":e.disabled,tabindex:e.disabled?null:-1},on:{click:e.handleClick}},[e.icon?n("i",{class:e.icon}):e._e(),e._t("default")],2)},i=[];r._withStripped=!0;var o=n(4),a=n.n(o),s={name:"ElDropdownItem",mixins:[a.a],props:{command:{},disabled:Boolean,divided:Boolean,icon:String},methods:{handleClick:function(e){this.dispatch("ElDropdown","menu-item-click",[this.command,this])}}},c=s,u=n(0),l=Object(u["a"])(c,r,i,!1,null,null,null);l.options.__file="packages/dropdown/src/dropdown-item.vue";var d=l.exports;d.install=function(e){e.component(d.name,d)};t["default"]=d}})},1951:function(e,t,n){},1953:function(e,t,n){var r=n("2449"),i=r.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=i},"19aa":function(e,t,n){var r=n("da84"),i=n("3a9b"),o=r.TypeError;e.exports=function(e,t){if(i(t,e))return e;throw o("Incorrect invocation")}},"19e2":function(e,t,n){var r=n("6d8b"),i=n("e887"),o=n("2306"),a=n("cbe5"),s=n("b0af"),c=s.createClipPath,u=["itemStyle"],l=["emphasis","itemStyle"],d=["color","color0","borderColor","borderColor0"],h=i.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,r){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,r=this.group,i=t.getLayout("isSimpleBox"),a=e.get("clip",!0),s=e.coordinateSystem,c=s.getArea&&s.getArea();this._data||r.removeAll(),t.diff(n).add((function(n){if(t.hasValue(n)){var s,u=t.getItemLayout(n);if(a&&g(c,u))return;s=p(u,n,!0),o.initProps(s,{shape:{points:u.ends}},e,n),m(s,t,n,i),r.add(s),t.setItemGraphicEl(n,s)}})).update((function(s,u){var l=n.getItemGraphicEl(u);if(t.hasValue(s)){var d=t.getItemLayout(s);a&&g(c,d)?r.remove(l):(l?o.updateProps(l,{shape:{points:d.ends}},e,s):l=p(d,s),m(l,t,s,i),r.add(l),t.setItemGraphicEl(s,l))}else r.remove(l)})).remove((function(e){var t=n.getItemGraphicEl(e);t&&r.remove(t)})).execute(),this._data=t},_renderLarge:function(e){this._clear(),_(e,this.group);var t=e.get("clip",!0)?c(e.coordinateSystem,!1,e):null;t?this.group.setClipPath(t):this.group.removeClipPath()},_incrementalRenderNormal:function(e,t){var n,r=t.getData(),i=r.getLayout("isSimpleBox");while(null!=(n=e.next())){var o,a=r.getItemLayout(n);o=p(a,n),m(o,r,n,i),o.incremental=!0,this.group.add(o)}},_incrementalRenderLarge:function(e,t){_(t,this.group,!0)},remove:function(e){this._clear()},_clear:function(){this.group.removeAll(),this._data=null},dispose:r.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 p(e,t,n){var r=e.ends;return new f({shape:{points:n?v(r,e):r},z2:100})}function g(e,t){for(var n=!0,r=0;r<t.ends.length;r++)if(e.contain(t.ends[r][0],t.ends[r][1])){n=!1;break}return n}function m(e,t,n,r){var i=t.getItemModel(n),a=i.getModel(u),s=t.getItemVisual(n,"color"),c=t.getItemVisual(n,"borderColor")||s,h=a.getItemStyle(d);e.useStyle(h),e.style.strokeNoScale=!0,e.style.fill=s,e.style.stroke=c,e.__simpleBox=r;var f=i.getModel(l).getItemStyle();o.setHoverStyle(e,f)}function v(e,t){return r.map(e,(function(e){return e=e.slice(),e[1]=t.initBaseline,e}))}var y=a.extend({type:"largeCandlestickBox",shape:{},buildPath:function(e,t){for(var n=t.points,r=0;r<n.length;)if(this.__sign===n[r++]){var i=n[r++];e.moveTo(i,n[r++]),e.lineTo(i,n[r++])}else r+=3}});function _(e,t,n){var r=e.getData(),i=r.getLayout("largePoints"),o=new y({shape:{points:i},__sign:1});t.add(o);var a=new y({shape:{points:i},__sign:-1});t.add(a),b(1,o,e,r),b(-1,a,e,r),n&&(o.incremental=!0,a.incremental=!0)}function b(e,t,n,r){var i=e>0?"P":"N",o=r.getVisual("borderColor"+i)||r.getVisual("color"+i),a=n.getModel(u).getItemStyle(d);t.useStyle(a),t.style.fill=null,t.style.stroke=o}var S=h;e.exports=S},"19eb":function(e,t,n){var r=n("6d8b"),i=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 i(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),r=this.getBoundingRect();return r.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 i(e,this),this.dirty(!1),this},calculateTextPosition:null},r.inherits(s,o),r.mixin(s,a);var c=s;e.exports=c},"1a2d":function(e,t,n){var r=n("e330"),i=n("7b0b"),o=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},"1ab3":function(e,t,n){var r=n("6d8b"),i=n("2306"),o=n("e887");function a(e,t,n,r){var i=t.getData(),o=this.dataIndex,a=i.getName(o),c=t.get("selectedOffset");r.dispatchAction({type:"pieToggleSelect",from:e,name:a,seriesId:t.id}),i.each((function(e){s(i.getItemGraphicEl(e),i.getItemLayout(e),t.isSelected(i.getName(e)),c,n)}))}function s(e,t,n,r,i){var o=(t.startAngle+t.endAngle)/2,a=Math.cos(o),s=Math.sin(o),c=n?r:0,u=[a*c,s*c];i?e.animate().when(200,{position:u}).start("bounceOut"):e.attr("position",u)}function c(e,t){i.Group.call(this);var n=new i.Sector({z2:2}),r=new i.Polyline,o=new i.Text;this.add(n),this.add(r),this.add(o),this.updateData(e,t,!0)}var u=c.prototype;u.updateData=function(e,t,n){var o=this.childAt(0),a=this.childAt(1),c=this.childAt(2),u=e.hostModel,l=e.getItemModel(t),d=e.getItemLayout(t),h=r.extend({},d);h.label=null;var f=u.getShallow("animationTypeUpdate");if(n){o.setShape(h);var p=u.getShallow("animationType");"scale"===p?(o.shape.r=d.r0,i.initProps(o,{shape:{r:d.r}},u,t)):(o.shape.endAngle=d.startAngle,i.updateProps(o,{shape:{endAngle:d.endAngle}},u,t))}else"expansion"===f?o.setShape(h):i.updateProps(o,{shape:h},u,t);var g=e.getItemVisual(t,"color");o.useStyle(r.defaults({lineJoin:"bevel",fill:g},l.getModel("itemStyle").getItemStyle())),o.hoverStyle=l.getModel("emphasis.itemStyle").getItemStyle();var m=l.getShallow("cursor");m&&o.attr("cursor",m),s(this,e.getItemLayout(t),u.isSelected(e.getName(t)),u.get("selectedOffset"),u.get("animation"));var v=!n&&"transition"===f;this._updateLabel(e,t,v),this.highDownOnUpdate=u.get("silent")?null:function(e,t){var n=u.isAnimationEnabled()&&l.get("hoverAnimation");"emphasis"===t?(a.ignore=a.hoverIgnore,c.ignore=c.hoverIgnore,n&&(o.stopAnimation(!0),o.animateTo({shape:{r:d.r+u.get("hoverOffset")}},300,"elasticOut"))):(a.ignore=a.normalIgnore,c.ignore=c.normalIgnore,n&&(o.stopAnimation(!0),o.animateTo({shape:{r:d.r}},300,"elasticOut")))},i.setHoverStyle(this)},u._updateLabel=function(e,t,n){var r=this.childAt(1),o=this.childAt(2),a=e.hostModel,s=e.getItemModel(t),c=e.getItemLayout(t),u=c.label,l=e.getItemVisual(t,"color");if(!u||isNaN(u.x)||isNaN(u.y))o.ignore=o.normalIgnore=o.hoverIgnore=r.ignore=r.normalIgnore=r.hoverIgnore=!0;else{var d={points:u.linePoints||[[u.x,u.y],[u.x,u.y],[u.x,u.y]]},h={x:u.x,y:u.y};n?(i.updateProps(r,{shape:d},a,t),i.updateProps(o,{style:h},a,t)):(r.attr({shape:d}),o.attr({style:h})),o.attr({rotation:u.rotation,origin:[u.x,u.y],z2:10});var f=s.getModel("label"),p=s.getModel("emphasis.label"),g=s.getModel("labelLine"),m=s.getModel("emphasis.labelLine");l=e.getItemVisual(t,"color");i.setLabelStyle(o.style,o.hoverStyle={},f,p,{labelFetcher:e.hostModel,labelDataIndex:t,defaultText:u.text,autoColor:l,useInsideStyle:!!u.inside},{textAlign:u.textAlign,textVerticalAlign:u.verticalAlign,opacity:e.getItemVisual(t,"opacity")}),o.ignore=o.normalIgnore=!f.get("show"),o.hoverIgnore=!p.get("show"),r.ignore=r.normalIgnore=!g.get("show"),r.hoverIgnore=!m.get("show"),r.setStyle({stroke:l,opacity:e.getItemVisual(t,"opacity")}),r.setStyle(g.getModel("lineStyle").getLineStyle()),r.hoverStyle=m.getModel("lineStyle").getLineStyle();var v=g.get("smooth");v&&!0===v&&(v=.4),r.setShape({smooth:v})}},r.inherits(c,i.Group);var l=o.extend({type:"pie",init:function(){var e=new i.Group;this._sectorGroup=e},render:function(e,t,n,i){if(!i||i.from!==this.uid){var o=e.getData(),s=this._data,u=this.group,l=t.get("animation"),d=!s,h=e.get("animationType"),f=e.get("animationTypeUpdate"),p=r.curry(a,this.uid,e,l,n),g=e.get("selectedMode");if(o.diff(s).add((function(e){var t=new c(o,e);d&&"scale"!==h&&t.eachChild((function(e){e.stopAnimation(!0)})),g&&t.on("click",p),o.setItemGraphicEl(e,t),u.add(t)})).update((function(e,t){var n=s.getItemGraphicEl(t);d||"transition"===f||n.eachChild((function(e){e.stopAnimation(!0)})),n.updateData(o,e),n.off("click"),g&&n.on("click",p),u.add(n),o.setItemGraphicEl(e,n)})).remove((function(e){var t=s.getItemGraphicEl(e);u.remove(t)})).execute(),l&&o.count()>0&&(d?"scale"!==h:"transition"!==f)){for(var m=o.getItemLayout(0),v=1;isNaN(m.startAngle)&&v<o.count();++v)m=o.getItemLayout(v);var y=Math.max(n.getWidth(),n.getHeight())/2,_=r.bind(u.removeClipPath,u);u.setClipPath(this._createClipPath(m.cx,m.cy,y,m.startAngle,m.clockwise,_,e,d))}else u.removeClipPath();this._data=o}},dispose:function(){},_createClipPath:function(e,t,n,r,o,a,s,c){var u=new i.Sector({shape:{cx:e,cy:t,r0:0,r:n,startAngle:r,endAngle:r,clockwise:o}}),l=c?i.initProps:i.updateProps;return l(u,{shape:{endAngle:r+(o?1:-1)*Math.PI*2}},s,a),u},containPoint:function(e,t){var n=t.getData(),r=n.getItemLayout(0);if(r){var i=e[0]-r.cx,o=e[1]-r.cy,a=Math.sqrt(i*i+o*o);return a<=r.r&&a>=r.r0}}}),d=l;e.exports=d},"1be4":function(e,t,n){var r=n("d066");e.exports=r("document","documentElement")},"1bf2":function(e,t,n){var r=n("23e7"),i=n("56ef");r({target:"Reflect",stat:!0},{ownKeys:i})},"1c5f":function(e,t,n){var r=n("401b"),i=n("6d8b"),o=n("0c37"),a=o.getCurvenessForEdge;function s(e){var t=e.coordinateSystem;if(!t||"view"===t.type){var n=e.getGraph();n.eachNode((function(e){var t=e.getModel();e.setLayout([+t.get("x"),+t.get("y")])})),c(n,e)}}function c(e,t){e.eachEdge((function(e,n){var o=i.retrieve3(e.getModel().get("lineStyle.curveness"),-a(e,t,n,!0),0),s=r.clone(e.node1.getLayout()),c=r.clone(e.node2.getLayout()),u=[s,c];+o&&u.push([(s[0]+c[0])/2-(s[1]-c[1])*o,(s[1]+c[1])/2-(c[0]-s[0])*o]),e.setLayout(u)}))}t.simpleLayout=s,t.simpleLayoutEdge=c},"1c7e":function(e,t,n){var r=n("b622"),i=r("iterator"),o=!1;try{var a=0,s={next:function(){return{done:!!a++}},return:function(){o=!0}};s[i]=function(){return this},Array.from(s,(function(){throw 2}))}catch(c){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var r={};r[i]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(c){}return n}},"1ccf":function(e,t,n){var r=n("4e08"),i=(r.__DEV__,n("6d8b")),o=n("fd27"),a=n("3842"),s=a.parsePercent,c=n("697e"),u=c.createScaleByModel,l=c.niceScaleExtent,d=n("2039"),h=n("ee1a"),f=h.getStackedDimension;function p(e,t,n){var r=t.get("center"),o=n.getWidth(),a=n.getHeight();e.cx=s(r[0],o),e.cy=s(r[1],a);var c=e.getRadiusAxis(),u=Math.min(o,a)/2,l=t.get("radius");null==l?l=[0,"100%"]:i.isArray(l)||(l=[0,l]),l=[s(l[0],u),s(l[1],u)],c.inverse?c.setExtent(l[1],l[0]):c.setExtent(l[0],l[1])}function g(e,t){var n=this,r=n.getAngleAxis(),o=n.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),o.scale.setExtent(1/0,-1/0),e.eachSeries((function(e){if(e.coordinateSystem===n){var t=e.getData();i.each(t.mapDimension("radius",!0),(function(e){o.scale.unionExtentFromData(t,f(t,e))})),i.each(t.mapDimension("angle",!0),(function(e){r.scale.unionExtentFromData(t,f(t,e))}))}})),l(r.scale,r.model),l(o.scale,o.model),"category"===r.type&&!r.onBand){var a=r.getExtent(),s=360/r.scale.count();r.inverse?a[1]+=s:a[1]-=s,r.setExtent(a[0],a[1])}}function m(e,t){if(e.type=t.get("type"),e.scale=u(t),e.onBand=t.get("boundaryGap")&&"category"===e.type,e.inverse=t.get("inverse"),"angleAxis"===t.mainType){e.inverse^=t.get("clockwise");var n=t.get("startAngle");e.setExtent(n,n+(e.inverse?-360:360))}t.axis=e,e.model=t}n("78f0");var v={dimensions:o.prototype.dimensions,create:function(e,t){var n=[];return e.eachComponent("polar",(function(e,r){var i=new o(r);i.update=g;var a=i.getRadiusAxis(),s=i.getAngleAxis(),c=e.findAxisModel("radiusAxis"),u=e.findAxisModel("angleAxis");m(a,c),m(s,u),p(i,e,t),n.push(i),e.coordinateSystem=i,i.model=e})),e.eachSeries((function(t){if("polar"===t.get("coordinateSystem")){var n=e.queryComponents({mainType:"polar",index:t.get("polarIndex"),id:t.get("polarId")})[0];t.coordinateSystem=n.coordinateSystem}})),n}};d.register("polar",v)},"1cdc":function(e,t,n){var r=n("342f");e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},"1d2b":function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},"1d80":function(e,t,n){var r=n("da84"),i=r.TypeError;e.exports=function(e){if(void 0==e)throw i("Can't call method on "+e);return e}},"1da1":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n("d3b7");function r(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var a=e.apply(t,n);function s(e){r(a,i,o,s,c,"next",e)}function c(e){r(a,i,o,s,c,"throw",e)}s(void 0)}))}}},"1dac":function(e,t,n){},"1dde":function(e,t,n){var r=n("d039"),i=n("b622"),o=n("2d00"),a=i("species");e.exports=function(e){return o>=51||!r((function(){var t=[],n=t.constructor={};return n[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},"1e32":function(e,t,n){var r=n("6d8b"),i=n("3842"),o=i.parsePercent,a=n("ee1a"),s=a.isDimensionStacked;function c(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function u(e,t){return t.dim+e.model.componentIndex}function l(e,t,n){var i={},o=d(r.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,r=n.getBaseAxis(),a=u(n,r),l=c(e),d=o[a][l],h=d.offset,f=d.width,p=n.getOtherAxis(r),g=e.coordinateSystem.cx,m=e.coordinateSystem.cy,v=e.get("barMinHeight")||0,y=e.get("barMinAngle")||0;i[l]=i[l]||[];for(var _=t.mapDimension(p.dim),b=t.mapDimension(r.dim),S=s(t,_),x="radius"!==r.dim||!e.get("roundCap",!0),w="radius"===p.dim?p.dataToRadius(0):p.dataToAngle(0),I=0,C=t.count();I<C;I++){var M,T,k,E,A=t.get(_,I),D=t.get(b,I),O=A>=0?"p":"n",R=w;if(S&&(i[l][D]||(i[l][D]={p:w,n:w}),R=i[l][D][O]),"radius"===p.dim){var L=p.dataToRadius(A)-w,P=r.dataToAngle(D);Math.abs(L)<v&&(L=(L<0?-1:1)*v),M=R,T=R+L,k=P-h,E=k-f,S&&(i[l][D][O]=T)}else{var N=p.dataToAngle(A,x)-w,U=r.dataToRadius(D);Math.abs(N)<y&&(N=(N<0?-1:1)*y),M=U+h,T=M+f,k=R,E=R+N,S&&(i[l][D][O]=E)}t.setItemLayout(I,{cx:g,cy:m,r0:M,r:T,startAngle:-k*Math.PI/180,endAngle:-E*Math.PI/180})}}}),this)}function d(e,t){var n={};r.each(e,(function(e,t){var r=e.getData(),i=e.coordinateSystem,a=i.getBaseAxis(),s=u(i,a),l=a.getExtent(),d="category"===a.type?a.getBandWidth():Math.abs(l[1]-l[0])/r.count(),h=n[s]||{bandWidth:d,remainedWidth:d,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},f=h.stacks;n[s]=h;var p=c(e);f[p]||h.autoWidthCount++,f[p]=f[p]||{width:0,maxWidth:0};var g=o(e.get("barWidth"),d),m=o(e.get("barMaxWidth"),d),v=e.get("barGap"),y=e.get("barCategoryGap");g&&!f[p].width&&(g=Math.min(h.remainedWidth,g),f[p].width=g,h.remainedWidth-=g),m&&(f[p].maxWidth=m),null!=v&&(h.gap=v),null!=y&&(h.categoryGap=y)}));var i={};return r.each(n,(function(e,t){i[t]={};var n=e.stacks,a=e.bandWidth,s=o(e.categoryGap,a),c=o(e.gap,1),u=e.remainedWidth,l=e.autoWidthCount,d=(u-s)/(l+(l-1)*c);d=Math.max(d,0),r.each(n,(function(e,t){var n=e.maxWidth;n&&n<d&&(n=Math.min(n,u),e.width&&(n=Math.min(n,e.width)),u-=n,e.width=n,l--)})),d=(u-s)/(l+(l-1)*c),d=Math.max(d,0);var h,f=0;r.each(n,(function(e,t){e.width||(e.width=d),h=e,f+=e.width*(1+c)})),h&&(f-=h.width*c);var p=-f/2;r.each(n,(function(e,n){i[t][n]=i[t][n]||{offset:p,width:e.width},p+=e.width*(1+c)}))})),i}var h=l;e.exports=h},"1e4c":function(e,t,n){},"1f0e":function(e,t,n){var r=n("cbe5"),i=r.extend({type:"echartsGaugePointer",shape:{angle:0,width:10,r:10,x:0,y:0},buildPath:function(e,t){var n=Math.cos,r=Math.sin,i=t.r,o=t.width,a=t.angle,s=t.x-n(a)*o*(o>=i/3?1:2),c=t.y-r(a)*o*(o>=i/3?1:2);a=t.angle-Math.PI/2,e.moveTo(s,c),e.lineTo(t.x+n(a)*o,t.y+r(a)*o),e.lineTo(t.x+n(t.angle)*i,t.y+r(t.angle)*i),e.lineTo(t.x-n(a)*o,t.y-r(a)*o),e.lineTo(s,c)}});e.exports=i},"1f1a":function(e,t,n){},"1f1a5":function(e,t,n){var r=n("6d8b"),i=n("e0d3"),o=n("6cb7"),a=n("4319"),s=n("7023"),c=n("eeea"),u=o.extend({type:"geo",coordinateSystem:null,layoutMode:"box",init:function(e){o.prototype.init.apply(this,arguments),i.defaultEmphasis(e,"label",["show"])},optionUpdated:function(){var e=this.option,t=this;e.regions=c.getFilledRegions(e.regions,e.map,e.nameMap),this._optionModelMap=r.reduce(e.regions||[],(function(e,n){return n.name&&e.set(n.name,new a(n,t)),e}),r.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),r=n.get(("normal"===t?"":t+".")+"label.formatter"),i={name:e};return"function"===typeof r?(i.status=t,r(i)):"string"===typeof r?r.replace("{a}",null!=e?e:""):void 0},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e}});r.mixin(u,s);var l=u;e.exports=l},"1f55":function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.gauge=g;var i=r(n("9523")),o=r(n("7037")),a=r(n("278c")),s=r(n("448a")),c=n("18ad"),u=n("cc6d"),l=n("5557"),d=n("becb"),h=n("53b8");function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){(0,i["default"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.series;n||(n=[]);var r=(0,d.initNeedSeries)(n,u.gaugeConfig,"gauge");r=m(r,e),r=v(r,e),r=y(r,e),r=_(r,e),r=b(r,e),r=S(r,e),r=x(r,e),r=w(r,e),r=I(r,e),r=C(r,e),(0,c.doUpdate)({chart:e,series:r,key:"gaugeAxisTick",getGraphConfig:T}),(0,c.doUpdate)({chart:e,series:r,key:"gaugeAxisLabel",getGraphConfig:A}),(0,c.doUpdate)({chart:e,series:r,key:"gaugeBackgroundArc",getGraphConfig:R,getStartGraphConfig:N}),(0,c.doUpdate)({chart:e,series:r,key:"gaugeArc",getGraphConfig:U,getStartGraphConfig:V,beforeChange:j}),(0,c.doUpdate)({chart:e,series:r,key:"gaugePointer",getGraphConfig:B,getStartGraphConfig:q}),(0,c.doUpdate)({chart:e,series:r,key:"gaugeDetails",getGraphConfig:$})}function m(e,t){var n=t.render.area;return e.forEach((function(e){var t=e.center;t=t.map((function(e,t){return"number"===typeof e?e:parseInt(e)/100*n[t]})),e.center=t})),e}function v(e,t){var n=t.render.area,r=Math.min.apply(Math,(0,s["default"])(n))/2;return e.forEach((function(e){var t=e.radius;"number"!==typeof t&&(t=parseInt(t)/100*r),e.radius=t})),e}function y(e,t){var n=t.render.area,r=Math.min.apply(Math,(0,s["default"])(n))/2;return e.forEach((function(e){var t=e.radius,n=e.data,i=e.arcLineWidth;n.forEach((function(e){var n=e.radius,o=e.lineWidth;n||(n=t),"number"!==typeof n&&(n=parseInt(n)/100*r),e.radius=n,o||(o=i),e.lineWidth=o}))})),e}function _(e,t){return e.forEach((function(e){var t=e.startAngle,n=e.endAngle,r=e.data,i=e.min,o=e.max,a=n-t,s=o-i;r.forEach((function(e){var n=e.value,r=Math.abs((n-i)/s*a);e.startAngle=t,e.endAngle=t+r}))})),e}function b(e,t){return e.forEach((function(e){var t=e.data;t.forEach((function(e){var t=e.color,n=e.gradient;n&&n.length||(n=t),n instanceof Array||(n=[n]),e.gradient=n}))})),e}function S(e,t){return e.forEach((function(e){var t=e.startAngle,n=e.endAngle,r=e.splitNum,i=e.center,o=e.radius,a=e.arcLineWidth,c=e.axisTick,u=c.tickLength,d=c.style.lineWidth,h=n-t,f=o-a/2,p=f-u,g=h/(r-1),m=2*Math.PI*o*h/(2*Math.PI),v=Math.ceil(d/2)/m*h;e.tickAngles=[],e.tickInnerRadius=[],e.tickPosition=new Array(r).fill(0).map((function(n,o){var a=t+g*o;return 0===o&&(a+=v),o===r-1&&(a-=v),e.tickAngles[o]=a,e.tickInnerRadius[o]=p,[l.getCircleRadianPoint.apply(void 0,(0,s["default"])(i).concat([f,a])),l.getCircleRadianPoint.apply(void 0,(0,s["default"])(i).concat([p,a]))]}))})),e}function x(e,t){return e.forEach((function(e){var t=e.center,n=e.tickInnerRadius,r=e.tickAngles,i=e.axisLabel.labelGap,o=r.map((function(e,o){return l.getCircleRadianPoint.apply(void 0,(0,s["default"])(t).concat([n[o]-i,r[o]]))})),c=o.map((function(e){var n=(0,a["default"])(e,2),r=n[0],i=n[1];return{textAlign:r>t[0]?"right":"left",textBaseline:i>t[1]?"bottom":"top"}}));e.labelPosition=o,e.labelAlign=c})),e}function w(e,t){return e.forEach((function(e){var t=e.axisLabel,n=e.min,r=e.max,i=e.splitNum,a=t.data,s=t.formatter,c=(r-n)/(i-1),u=new Array(i).fill(0).map((function(e,t){return parseInt(n+c*t)})),l=(0,o["default"])(s);a=(0,d.deepMerge)(u,a).map((function(e,t){var n=e;return"string"===l&&(n=s.replace("{value}",e)),"function"===l&&(n=s({value:e,index:t})),n})),t.data=a})),e}function I(e,t){return e.forEach((function(e){var t=e.data,n=e.details,r=e.center,i=n.position,o=n.offset,a=t.map((function(e){var t=e.startAngle,n=e.endAngle,a=e.radius,c=null;return"center"===i?c=r:"start"===i?c=l.getCircleRadianPoint.apply(void 0,(0,s["default"])(r).concat([a,t])):"end"===i&&(c=l.getCircleRadianPoint.apply(void 0,(0,s["default"])(r).concat([a,n]))),M(c,o)}));e.detailsPosition=a})),e}function C(e,t){return e.forEach((function(e){var t=e.data,n=e.details,r=n.formatter,i=(0,o["default"])(r),a=t.map((function(e){var t=e.value;return"string"===i&&(t=r.replace("{value}","{nt}"),t=t.replace("{name}",e.name)),"function"===i&&(t=r(e)),t.toString()}));e.detailsContent=a})),e}function M(e,t){var n=(0,a["default"])(e,2),r=n[0],i=n[1],o=(0,a["default"])(t,2),s=o[0],c=o[1];return[r+s,i+c]}function T(e){var t=e.tickPosition,n=e.animationCurve,r=e.animationFrame,i=e.rLevel;return t.map((function(t,o){return{name:"polyline",index:i,visible:e.axisTick.show,animationCurve:n,animationFrame:r,shape:k(e,o),style:E(e,o)}}))}function k(e,t){var n=e.tickPosition;return{points:n[t]}}function E(e,t){var n=e.axisTick.style;return n}function A(e){var t=e.labelPosition,n=e.animationCurve,r=e.animationFrame,i=e.rLevel;return t.map((function(t,o){return{name:"text",index:i,visible:e.axisLabel.show,animationCurve:n,animationFrame:r,shape:D(e,o),style:O(e,o)}}))}function D(e,t){var n=e.labelPosition,r=e.axisLabel.data;return{content:r[t].toString(),position:n[t]}}function O(e,t){var n=e.labelAlign,r=e.axisLabel,i=r.style;return(0,d.deepMerge)(p({},n[t]),i)}function R(e){var t=e.animationCurve,n=e.animationFrame,r=e.rLevel;return[{name:"arc",index:r,visible:e.backgroundArc.show,animationCurve:t,animationFrame:n,shape:L(e),style:P(e)}]}function L(e){var t=e.startAngle,n=e.endAngle,r=e.center,i=e.radius;return{rx:r[0],ry:r[1],r:i,startAngle:t,endAngle:n}}function P(e){var t=e.backgroundArc,n=e.arcLineWidth,r=t.style;return(0,d.deepMerge)({lineWidth:n},r)}function N(e){var t=R(e)[0],n=p({},t.shape);return n.endAngle=t.shape.startAngle,t.shape=n,[t]}function U(e){var t=e.data,n=e.animationCurve,r=e.animationFrame,i=e.rLevel;return t.map((function(t,o){return{name:"agArc",index:i,animationCurve:n,animationFrame:r,shape:F(e,o),style:G(e,o)}}))}function F(e,t){var n=e.data,r=e.center,i=e.endAngle,o=n[t],a=o.radius,s=o.startAngle,c=o.endAngle,u=o.localGradient;return u&&(i=c),{rx:r[0],ry:r[1],r:a,startAngle:s,endAngle:c,gradientEndAngle:i}}function G(e,t){var n=e.data,r=e.dataItemStyle,i=n[t],o=i.lineWidth,a=i.gradient;return a=a.map((function(e){return(0,h.getRgbaValue)(e)})),(0,d.deepMerge)({lineWidth:o,gradient:a},r)}function V(e){var t=U(e);return t.map((function(e){var t=p({},e.shape);t.endAngle=e.shape.startAngle,e.shape=t})),t}function j(e,t){var n=e.style.gradient,r=n.length,i=t.style.gradient.length;if(r>i)n.splice(i);else{var o=n.slice(-1)[0];n.push.apply(n,(0,s["default"])(new Array(i-r).fill(0).map((function(e){return(0,s["default"])(o)}))))}}function B(e){var t=e.animationCurve,n=e.animationFrame,r=e.center,i=e.rLevel;return[{name:"polyline",index:i,visible:e.pointer.show,animationCurve:t,animationFrame:n,shape:z(e),style:H(e),setGraphCenter:function(e,t){t.style.graphCenter=r}}]}function z(e){var t=e.center;return{points:W(t),close:!0}}function H(e){var t=e.startAngle,n=e.endAngle,r=e.min,i=e.max,o=e.data,a=e.pointer,s=e.center,c=a.valueIndex,u=a.style,l=o[c]?o[c].value:0,h=(l-r)/(i-r)*(n-t)+t+Math.PI/2;return(0,d.deepMerge)({rotate:(0,d.radianToAngle)(h),scale:[1,1],graphCenter:s},u)}function W(e){var t=(0,a["default"])(e,2),n=t[0],r=t[1],i=[n,r-40],o=[n+5,r],s=[n,r+10],c=[n-5,r];return[i,o,s,c]}function q(e){var t=e.startAngle,n=B(e)[0];return n.style.rotate=(0,d.radianToAngle)(t+Math.PI/2),[n]}function $(e){var t=e.detailsPosition,n=e.animationCurve,r=e.animationFrame,i=e.rLevel,o=e.details.show;return t.map((function(t,a){return{name:"numberText",index:i,visible:o,animationCurve:n,animationFrame:r,shape:K(e,a),style:Y(e,a)}}))}function K(e,t){var n=e.detailsPosition,r=e.detailsContent,i=e.data,o=e.details,a=n[t],s=r[t],c=i[t].value,u=o.valueToFixed;return{number:[c],content:s,position:a,toFixed:u}}function Y(e,t){var n=e.details,r=e.data,i=n.style,o=r[t].color;return(0,d.deepMerge)({fill:o},i)}},"1fab":function(e,t){var n=Array.prototype.slice,r=function(e){this._$handlers={},this._$eventProcessor=e};function i(e,t){var n=e._$eventProcessor;return null!=t&&n&&n.normalizeQuery&&(t=n.normalizeQuery(t)),t}function o(e,t,n,r,o,a){var s=e._$handlers;if("function"===typeof n&&(o=r,r=n,n=null),!r||!t)return e;n=i(e,n),s[t]||(s[t]=[]);for(var c=0;c<s[t].length;c++)if(s[t][c].h===r)return e;var u={h:r,one:a,query:n,ctx:o||e,callAtLast:r.zrEventfulCallAtLast},l=s[t].length-1,d=s[t][l];return d&&d.callAtLast?s[t].splice(l,0,u):s[t].push(u),e}r.prototype={constructor:r,one:function(e,t,n,r){return o(this,e,t,n,r,!0)},on:function(e,t,n,r){return o(this,e,t,n,r,!1)},isSilent:function(e){var t=this._$handlers;return!t[e]||!t[e].length},off:function(e,t){var n=this._$handlers;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var r=[],i=0,o=n[e].length;i<o;i++)n[e][i].h!==t&&r.push(n[e][i]);n[e]=r}n[e]&&0===n[e].length&&delete n[e]}else delete n[e];return this},trigger:function(e){var t=this._$handlers[e],r=this._$eventProcessor;if(t){var i=arguments,o=i.length;o>3&&(i=n.call(i,1));for(var a=t.length,s=0;s<a;){var c=t[s];if(r&&r.filter&&null!=c.query&&!r.filter(e,c.query))s++;else{switch(o){case 1:c.h.call(c.ctx);break;case 2:c.h.call(c.ctx,i[1]);break;case 3:c.h.call(c.ctx,i[1],i[2]);break;default:c.h.apply(c.ctx,i);break}c.one?(t.splice(s,1),a--):s++}}}return r&&r.afterTrigger&&r.afterTrigger(e),this},triggerWithContext:function(e){var t=this._$handlers[e],r=this._$eventProcessor;if(t){var i=arguments,o=i.length;o>4&&(i=n.call(i,1,i.length-1));for(var a=i[i.length-1],s=t.length,c=0;c<s;){var u=t[c];if(r&&r.filter&&null!=u.query&&!r.filter(e,u.query))c++;else{switch(o){case 1:u.h.call(a);break;case 2:u.h.call(a,i[1]);break;case 3:u.h.call(a,i[1],i[2]);break;default:u.h.apply(a,i);break}u.one?(t.splice(c,1),s--):c++}}}return r&&r.afterTrigger&&r.afterTrigger(e),this}};var a=r;e.exports=a},2023:function(e,t,n){var r=n("6d8b"),i={getMin:function(e){var t=this.option,n=e||null==t.rangeStart?t.min:t.rangeStart;return this.axis&&null!=n&&"dataMin"!==n&&"function"!==typeof n&&!r.eqNaN(n)&&(n=this.axis.scale.parse(n)),n},getMax:function(e){var t=this.option,n=e||null==t.rangeEnd?t.max:t.rangeEnd;return this.axis&&null!=n&&"dataMax"!==n&&"function"!==typeof n&&!r.eqNaN(n)&&(n=this.axis.scale.parse(n)),n},getNeedCrossZero:function(){var e=this.option;return null==e.rangeStart&&null==e.rangeEnd&&!e.scale},getCoordSysModel:r.noop,setRange:function(e,t){this.option.rangeStart=e,this.option.rangeEnd=t},resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}};e.exports=i},2039:function(e,t,n){var r=n("6d8b"),i={};function o(){this._coordinateSystems=[]}o.prototype={constructor:o,create:function(e,t){var n=[];r.each(i,(function(r,i){var o=r.create(e,t);n=n.concat(o||[])})),this._coordinateSystems=n},update:function(e,t){r.each(this._coordinateSystems,(function(n){n.update&&n.update(e,t)}))},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},o.register=function(e,t){i[e]=t},o.get=function(e){return i[e]};var a=o;e.exports=a},"204e":function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.bar=p;var i=r(n("7037")),o=r(n("9523")),a=r(n("278c")),s=r(n("448a")),c=n("18ad"),u=n("9d85"),l=n("5557"),d=n("becb");function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){(0,o["default"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.xAxis,r=t.yAxis,i=t.series,o=[];n&&r&&i&&(o=(0,d.initNeedSeries)(i,u.barConfig,"bar"),o=g(o,e),o=m(o,e),o=M(o,e)),(0,c.doUpdate)({chart:e,series:o.slice(-1),key:"backgroundBar",getGraphConfig:R}),o.reverse(),(0,c.doUpdate)({chart:e,series:o,key:"bar",getGraphConfig:U,getStartGraphConfig:W,beforeUpdate:Y}),(0,c.doUpdate)({chart:e,series:o,key:"barLabel",getGraphConfig:J})}function g(e,t){var n=t.axisData;return e.forEach((function(e){var t=e.xAxisIndex,r=e.yAxisIndex;"number"!==typeof t&&(t=0),"number"!==typeof r&&(r=0);var i=n.find((function(e){var n=e.axis,r=e.index;return"".concat(n).concat(r)==="x".concat(t)})),o=n.find((function(e){var t=e.axis,n=e.index;return"".concat(t).concat(n)==="y".concat(r)})),a=[i,o],s=a.findIndex((function(e){var t=e.data;return"value"===t}));e.valueAxis=a[s],e.labelAxis=a[1-s]})),e}function m(e,t){var n=y(e);return n.forEach((function(e){v(e),b(e),S(e,t),x(e),C(e)})),e}function v(e){var t=_(e);t=t.map((function(e){return{stack:e,index:-1}}));var n=0;e.forEach((function(e){var r=e.stack;if(r){var i=t.find((function(e){var t=e.stack;return t===r}));-1===i.index&&(i.index=n,n++),e.barIndex=i.index}else e.barIndex=n,n++}))}function y(e){var t=e.map((function(e){var t=e.labelAxis,n=t.axis,r=t.index;return n+r}));return t=(0,s["default"])(new Set(t)),t.map((function(t){return e.filter((function(e){var n=e.labelAxis,r=n.axis,i=n.index;return r+i===t}))}))}function _(e){var t=[];return e.forEach((function(e){var n=e.stack;n&&t.push(n)})),(0,s["default"])(new Set(t))}function b(e){var t=(0,s["default"])(new Set(e.map((function(e){var t=e.barIndex;return t})))).length;e.forEach((function(e){return e.barNum=t}))}function S(e){var t=e.slice(-1)[0],n=t.barCategoryGap,r=t.labelAxis.tickGap,i=0;i="number"===typeof n?n:(1-parseInt(n)/100)*r,e.forEach((function(e){return e.barCategoryWidth=i}))}function x(e){var t=e.slice(-1)[0],n=t.barCategoryWidth,r=t.barWidth,i=t.barGap,o=t.barNum,s=[];"number"===typeof r||"auto"!==r?s=w(n,r,i,o):"auto"===r&&(s=I(n,r,i,o));var c=s,u=(0,a["default"])(c,2),l=u[0],d=u[1];e.forEach((function(e){e.barWidth=l,e.barGap=d}))}function w(e,t,n){var r=0,i=0;return r="number"===typeof t?t:parseInt(t)/100*e,i="number"===typeof n?n:parseInt(n)/100*r,[r,i]}function I(e,t,n,r){var i=0,o=0,a=e/r;if("number"===typeof n)o=n,i=a-o;else{var s=10+parseInt(n)/10;0===s?(i=2*a,o=-i):(i=a/s*10,o=a-i)}return[i,o]}function C(e){var t=e.slice(-1)[0],n=t.barGap,r=t.barWidth,i=t.barNum,o=(n+r)*i-n;e.forEach((function(e){return e.barAllWidthAndGap=o}))}function M(e,t){return e=k(e),e=T(e),e=A(e),e=D(e),e}function T(e){return e.map((function(e){var t=e.labelAxis,n=e.barAllWidthAndGap,r=e.barGap,i=e.barWidth,o=e.barIndex,a=t.tickGap,s=t.tickPosition,c=t.axis,u="x"===c?0:1,l=s.map((function(e,t){var c=s[t][u]-a/2,l=c+(a-n)/2;return l+(o+.5)*i+o*r}));return f(f({},e),{},{barLabelAxisPos:l})}))}function k(e){return e.map((function(t){var n=(0,d.mergeSameStackData)(t,e);n=E(t,n);var r=t.valueAxis,i=r.axis,o=r.minValue,a=r.maxValue,s=r.linePosition,c=O(o,a,o<0?0:o,s,i),u=n.map((function(e){return O(o,a,e,s,i)})),l=u.map((function(e){return[c,e]}));return f(f({},t),{},{barValueAxisPos:l})}))}function E(e,t){var n=e.data;return t.map((function(e,t){return"number"===typeof n[t]?e:null})).filter((function(e){return null!==e}))}function A(e){return e.map((function(e){var t=e.barLabelAxisPos,n=e.data;return n.forEach((function(e,n){"number"!==typeof e&&(t[n]=null)})),f(f({},e),{},{barLabelAxisPos:t.filter((function(e){return null!==e}))})}))}function D(e){return e.forEach((function(e){var t=e.data,n=e.barLabelAxisPos,r=e.barValueAxisPos,i=t.filter((function(e){return"number"===typeof e})).length,o=n.length;o>i&&(n.splice(i),r.splice(i))})),e}function O(e,t,n,r,i){if("number"!==typeof n)return null;var o=t-e,a="x"===i?0:1,s=r[1][a]-r[0][a],c=(n-e)/o;0===o&&(c=0);var u=c*s;return u+r[0][a]}function R(e){var t=e.animationCurve,n=e.animationFrame,r=e.rLevel,i=L(e),o=N(e);return i.map((function(i){return{name:"rect",index:r,visible:e.backgroundBar.show,animationCurve:t,animationFrame:n,shape:i,style:o}}))}function L(e){var t=e.labelAxis,n=e.valueAxis,r=t.tickPosition,i=n.axis,o=n.linePosition,a=P(e),s=a/2,c="x"===i?0:1,u=r.map((function(e){return e[1-c]})),l=[o[0][c],o[1][c]],d=l[0],h=l[1];return u.map((function(e){return"x"===i?{x:d,y:e-s,w:h-d,h:a}:{x:e-s,y:h,w:a,h:d-h}}))}function P(e){var t=e.barAllWidthAndGap,n=e.barCategoryWidth,r=e.backgroundBar,i=r.width;return"number"===typeof i?i:"auto"===i?t:parseInt(i)/100*n}function N(e){return e.backgroundBar.style}function U(e){var t=e.barLabelAxisPos,n=e.animationCurve,r=e.animationFrame,i=e.rLevel,o=F(e);return t.map((function(t,a){return{name:o,index:i,animationCurve:n,animationFrame:r,shape:G(e,a),style:z(e,a)}}))}function F(e){var t=e.shapeType;return"leftEchelon"===t||"rightEchelon"===t?"polyline":"rect"}function G(e,t){var n=e.shapeType;return"leftEchelon"===n?V(e,t):"rightEchelon"===n?j(e,t):B(e,t)}function V(e,t){var n=e.barValueAxisPos,r=e.barLabelAxisPos,i=e.barWidth,o=e.echelonOffset,s=(0,a["default"])(n[t],2),c=s[0],u=s[1],l=r[t],d=i/2,h=e.valueAxis.axis,f=[];return"x"===h?(f[0]=[u,l-d],f[1]=[u,l+d],f[2]=[c,l+d],f[3]=[c+o,l-d],u-c<o&&f.splice(3,1)):(f[0]=[l-d,u],f[1]=[l+d,u],f[2]=[l+d,c],f[3]=[l-d,c-o],c-u<o&&f.splice(3,1)),{points:f,close:!0}}function j(e,t){var n=e.barValueAxisPos,r=e.barLabelAxisPos,i=e.barWidth,o=e.echelonOffset,s=(0,a["default"])(n[t],2),c=s[0],u=s[1],l=r[t],d=i/2,h=e.valueAxis.axis,f=[];return"x"===h?(f[0]=[u,l+d],f[1]=[u,l-d],f[2]=[c,l-d],f[3]=[c+o,l+d],u-c<o&&f.splice(2,1)):(f[0]=[l+d,u],f[1]=[l-d,u],f[2]=[l-d,c],f[3]=[l+d,c-o],c-u<o&&f.splice(2,1)),{points:f,close:!0}}function B(e,t){var n=e.barValueAxisPos,r=e.barLabelAxisPos,i=e.barWidth,o=(0,a["default"])(n[t],2),s=o[0],c=o[1],u=r[t],l=e.valueAxis.axis,d={};return"x"===l?(d.x=s,d.y=u-i/2,d.w=c-s,d.h=i):(d.x=u-i/2,d.y=c,d.w=i,d.h=s-c),d}function z(e,t){var n=e.barStyle,r=e.gradient,i=e.color,o=e.independentColor,a=e.independentColors,s=[n.fill||i],c=(0,d.deepMerge)(s,r.color);if(o){var u=a[t%a.length];c=u instanceof Array?u:[u]}1===c.length&&c.push(c[0]);var l=H(e,t);return(0,d.deepMerge)({gradientColor:c,gradientParams:l,gradientType:"linear",gradientWith:"fill"},n)}function H(e,t){var n=e.barValueAxisPos,r=e.barLabelAxisPos,i=e.data,o=e.valueAxis,s=o.linePosition,c=o.axis,u=(0,a["default"])(n[t],2),l=u[0],d=u[1],h=r[t],f=i[t],p=(0,a["default"])(s,2),g=p[0],m=p[1],v="x"===c?0:1,y=d;return e.gradient.local||(y=f<0?g[v]:m[v]),"y"===c?[h,y,h,l]:[y,h,l,h]}function W(e){var t=U(e),n=e.shapeType;return t.forEach((function(t){var r=t.shape;r="leftEchelon"===n?q(r,e):"rightEchelon"===n?$(r,e):K(r,e),t.shape=r})),t}function q(e,t){var n=t.valueAxis.axis;e=(0,l.deepClone)(e);var r=e,i=r.points,o="x"===n?0:1,a=i[2][o];return i.forEach((function(e){return e[o]=a})),e}function $(e,t){var n=t.valueAxis.axis;e=(0,l.deepClone)(e);var r=e,i=r.points,o="x"===n?0:1,a=i[2][o];return i.forEach((function(e){return e[o]=a})),e}function K(e,t){var n=t.valueAxis.axis,r=e.x,i=e.y,o=e.w,a=e.h;return"x"===n?o=0:(i+=a,a=0),{x:r,y:i,w:o,h:a}}function Y(e,t,n,r){var i=r.chart.render,o=F(t);e[n]&&e[n][0].name!==o&&(e[n].forEach((function(e){return i.delGraph(e)})),e[n]=null)}function J(e){var t=e.animationCurve,n=e.animationFrame,r=e.rLevel,i=X(e),o=te(e);return i.map((function(i){return{name:"text",index:r,visible:e.label.show,animationCurve:t,animationFrame:n,shape:i,style:o}}))}function X(e){var t=Z(e),n=Q(e);return n.map((function(e,n){return{position:e,content:t[n]}}))}function Z(e){var t=e.data,n=e.label,r=n.formatter;if(t=t.filter((function(e){return"number"===typeof e})).map((function(e){return e.toString()})),!r)return t;var o=(0,i["default"])(r);return"string"===o?t.map((function(e){return r.replace("{value}",e)})):"function"===o?t.map((function(e,t){return r({value:e,index:t})})):t}function Q(e){var t=e.label,n=e.barValueAxisPos,r=e.barLabelAxisPos,i=t.position,o=t.offset,s=e.valueAxis.axis;return n.map((function(e,t){var n=(0,a["default"])(e,2),c=n[0],u=n[1],l=r[t],d=[u,l];return"bottom"===i&&(d=[c,l]),"center"===i&&(d=[(c+u)/2,l]),"y"===s&&d.reverse(),ee(d,o)}))}function ee(e,t){var n=(0,a["default"])(e,2),r=n[0],i=n[1],o=(0,a["default"])(t,2),s=o[0],c=o[1];return[r+s,i+c]}function te(e){var t=e.color,n=e.label.style,r=e.gradient.color;return r.length&&(t=r[0]),n=(0,d.deepMerge)({fill:t},n),n}},"20c8":function(e,t,n){var r=n("4a3f"),i=n("401b"),o=n("e263"),a=n("9850"),s=n("2cf4"),c=s.devicePixelRatio,u={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},l=[],d=[],h=[],f=[],p=Math.min,g=Math.max,m=Math.cos,v=Math.sin,y=Math.sqrt,_=Math.abs,b="undefined"!==typeof Float32Array,S=function(e){this._saveData=!e,this._saveData&&(this.data=[]),this._ctx=null};S.prototype={constructor:S,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(e,t,n){n=n||0,this._ux=_(n/c/e)||0,this._uy=_(n/c/t)||0},getContext:function(){return this._ctx},beginPath:function(e){return this._ctx=e,e&&e.beginPath(),e&&(this.dpr=e.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(e,t){return this.addData(u.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},lineTo:function(e,t){var n=_(e-this._xi)>this._ux||_(t-this._yi)>this._uy||this._len<5;return this.addData(u.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,r,i,o){return this.addData(u.C,e,t,n,r,i,o),this._ctx&&(this._needsDash()?this._dashedBezierTo(e,t,n,r,i,o):this._ctx.bezierCurveTo(e,t,n,r,i,o)),this._xi=i,this._yi=o,this},quadraticCurveTo:function(e,t,n,r){return this.addData(u.Q,e,t,n,r),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(e,t,n,r):this._ctx.quadraticCurveTo(e,t,n,r)),this._xi=n,this._yi=r,this},arc:function(e,t,n,r,i,o){return this.addData(u.A,e,t,n,n,r,i-r,0,o?0:1),this._ctx&&this._ctx.arc(e,t,n,r,i,o),this._xi=m(i)*n+e,this._yi=v(i)*n+t,this},arcTo:function(e,t,n,r,i){return this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},rect:function(e,t,n,r){return this._ctx&&this._ctx.rect(e,t,n,r),this.addData(u.R,e,t,n,r),this},closePath:function(){this.addData(u.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;n<e.length;n++)t+=e[n];this._dashSum=t}return this},setLineDashOffset:function(e){return this._dashOffset=e,this},len:function(){return this._len},setData:function(e){var t=e.length;this.data&&this.data.length===t||!b||(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t},appendPath:function(e){e instanceof Array||(e=[e]);for(var t=e.length,n=0,r=this._len,i=0;i<t;i++)n+=e[i].len();b&&this.data instanceof Float32Array&&(this.data=new Float32Array(r+n));for(i=0;i<t;i++)for(var o=e[i].data,a=0;a<o.length;a++)this.data[r++]=o[a];this._len=r},addData:function(e){if(this._saveData){var t=this.data;this._len+arguments.length>t.length&&(this._expandData(),t=this.data);for(var n=0;n<arguments.length;n++)t[this._len++]=arguments[n];this._prevCmd=e}},_expandData:function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(e,t){var n,r,i=this._dashSum,o=this._dashOffset,a=this._lineDash,s=this._ctx,c=this._xi,u=this._yi,l=e-c,d=t-u,h=y(l*l+d*d),f=c,m=u,v=a.length;l/=h,d/=h,o<0&&(o=i+o),o%=i,f-=o*l,m-=o*d;while(l>0&&f<=e||l<0&&f>=e||0===l&&(d>0&&m<=t||d<0&&m>=t))r=this._dashIdx,n=a[r],f+=l*n,m+=d*n,this._dashIdx=(r+1)%v,l>0&&f<c||l<0&&f>c||d>0&&m<u||d<0&&m>u||s[r%2?"moveTo":"lineTo"](l>=0?p(f,e):g(f,e),d>=0?p(m,t):g(m,t));l=f-e,d=m-t,this._dashOffset=-y(l*l+d*d)},_dashedBezierTo:function(e,t,n,i,o,a){var s,c,u,l,d,h=this._dashSum,f=this._dashOffset,p=this._lineDash,g=this._ctx,m=this._xi,v=this._yi,_=r.cubicAt,b=0,S=this._dashIdx,x=p.length,w=0;for(f<0&&(f=h+f),f%=h,s=0;s<1;s+=.1)c=_(m,e,n,o,s+.1)-_(m,e,n,o,s),u=_(v,t,i,a,s+.1)-_(v,t,i,a,s),b+=y(c*c+u*u);for(;S<x;S++)if(w+=p[S],w>f)break;s=(w-f)/b;while(s<=1)l=_(m,e,n,o,s),d=_(v,t,i,a,s),S%2?g.moveTo(l,d):g.lineTo(l,d),s+=p[S]/b,S=(S+1)%x;S%2!==0&&g.lineTo(o,a),c=o-l,u=a-d,this._dashOffset=-y(c*c+u*u)},_dashedQuadraticTo:function(e,t,n,r){var i=n,o=r;n=(n+2*e)/3,r=(r+2*t)/3,e=(this._xi+2*e)/3,t=(this._yi+2*t)/3,this._dashedBezierTo(e,t,n,r,i,o)},toStatic:function(){var e=this.data;e instanceof Array&&(e.length=this._len,b&&(this.data=new Float32Array(e)))},getBoundingRect:function(){l[0]=l[1]=h[0]=h[1]=Number.MAX_VALUE,d[0]=d[1]=f[0]=f[1]=-Number.MAX_VALUE;for(var e=this.data,t=0,n=0,r=0,s=0,c=0;c<e.length;){var p=e[c++];switch(1===c&&(t=e[c],n=e[c+1],r=t,s=n),p){case u.M:r=e[c++],s=e[c++],t=r,n=s,h[0]=r,h[1]=s,f[0]=r,f[1]=s;break;case u.L:o.fromLine(t,n,e[c],e[c+1],h,f),t=e[c++],n=e[c++];break;case u.C:o.fromCubic(t,n,e[c++],e[c++],e[c++],e[c++],e[c],e[c+1],h,f),t=e[c++],n=e[c++];break;case u.Q:o.fromQuadratic(t,n,e[c++],e[c++],e[c],e[c+1],h,f),t=e[c++],n=e[c++];break;case u.A:var g=e[c++],y=e[c++],_=e[c++],b=e[c++],S=e[c++],x=e[c++]+S;c+=1;var w=1-e[c++];1===c&&(r=m(S)*_+g,s=v(S)*b+y),o.fromArc(g,y,_,b,S,x,w,h,f),t=m(x)*_+g,n=v(x)*b+y;break;case u.R:r=t=e[c++],s=n=e[c++];var I=e[c++],C=e[c++];o.fromLine(r,s,r+I,s+C,h,f);break;case u.Z:t=r,n=s;break}i.min(l,l,h),i.max(d,d,f)}return 0===c&&(l[0]=l[1]=d[0]=d[1]=0),new a(l[0],l[1],d[0]-l[0],d[1]-l[1])},rebuildPath:function(e){for(var t,n,r,i,o,a,s=this.data,c=this._ux,l=this._uy,d=this._len,h=0;h<d;){var f=s[h++];switch(1===h&&(r=s[h],i=s[h+1],t=r,n=i),f){case u.M:t=r=s[h++],n=i=s[h++],e.moveTo(r,i);break;case u.L:o=s[h++],a=s[h++],(_(o-r)>c||_(a-i)>l||h===d-1)&&(e.lineTo(o,a),r=o,i=a);break;case u.C:e.bezierCurveTo(s[h++],s[h++],s[h++],s[h++],s[h++],s[h++]),r=s[h-2],i=s[h-1];break;case u.Q:e.quadraticCurveTo(s[h++],s[h++],s[h++],s[h++]),r=s[h-2],i=s[h-1];break;case u.A:var p=s[h++],g=s[h++],y=s[h++],b=s[h++],S=s[h++],x=s[h++],w=s[h++],I=s[h++],C=y>b?y:b,M=y>b?1:y/b,T=y>b?b/y:1,k=Math.abs(y-b)>.001,E=S+x;k?(e.translate(p,g),e.rotate(w),e.scale(M,T),e.arc(0,0,C,S,E,1-I),e.scale(1/M,1/T),e.rotate(-w),e.translate(-p,-g)):e.arc(p,g,C,S,E,1-I),1===h&&(t=m(S)*y+p,n=v(S)*b+g),r=m(E)*y+p,i=v(E)*b+g;break;case u.R:t=r=s[h],n=i=s[h+1],e.rect(s[h++],s[h++],s[h++],s[h++]);break;case u.Z:e.closePath(),r=t,i=n}}}},S.CMD=u;var x=S;e.exports=x},2145:function(e,t){var n={};function r(e,t){n[e]=t}function i(e){return n[e]}t.register=r,t.get=i},2163:function(e,t,n){var r=n("4f85"),i=n("06c7"),o=n("eda2"),a=o.encodeHTML,s=n("4319"),c=r.extend({type:"series.tree",layoutInfo:null,layoutMode:"box",getInitialData:function(e){var t={name:e.name,children:e.data},n=e.leaves||{},r=new s(n,this,this.ecModel),o=i.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=r),e}))}var c=0;o.eachNode("preorder",(function(e){e.depth>c&&(c=e.depth)}));var u=e.expandAndCollapse,l=u&&e.initialTreeDepth>=0?e.initialTreeDepth:c;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<=l})),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],r=t.getNodeByDataIndex(e),i=r.getValue(),o=r.name;while(r&&r!==n)o=r.parentNode.name+"."+o,r=r.parentNode;return a(o+(isNaN(i)||null==i?"":" : "+i))},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=c},"216a":function(e,t,n){var r=n("6d8b"),i=n("3842"),o=n("eda2"),a=n("944e"),s=n("89e3"),c=s.prototype,u=Math.ceil,l=Math.floor,d=1e3,h=60*d,f=60*h,p=24*f,g=function(e,t,n,r){while(n<r){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n},m=s.extend({type:"time",getLabel:function(e){var t=this._stepLvl,n=new Date(e);return o.formatTime(t[0],n,this.getSetting("useUTC"))},niceExtent:function(e){var t=this._extent;if(t[0]===t[1]&&(t[0]-=p,t[1]+=p),t[1]===-1/0&&t[0]===1/0){var n=new Date;t[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),t[0]=t[1]-p}this.niceTicks(e.splitNumber,e.minInterval,e.maxInterval);var r=this._interval;e.fixMin||(t[0]=i.round(l(t[0]/r)*r)),e.fixMax||(t[1]=i.round(u(t[1]/r)*r))},niceTicks:function(e,t,n){e=e||10;var r=this._extent,o=r[1]-r[0],s=o/e;null!=t&&s<t&&(s=t),null!=n&&s>n&&(s=n);var c=v.length,d=g(v,s,0,c),h=v[Math.min(d,c-1)],f=h[1];if("year"===h[0]){var p=o/f,m=i.nice(p/e,!0);f*=m}var y=this.getSetting("useUTC")?0:60*new Date(+r[0]||+r[1]).getTimezoneOffset()*1e3,_=[Math.round(u((r[0]-y)/f)*f+y),Math.round(l((r[1]-y)/f)*f+y)];a.fixExtent(_,r),this._stepLvl=h,this._interval=f,this._niceExtent=_},parse:function(e){return+i.parseDate(e)}});r.each(["contain","normalize"],(function(e){m.prototype[e]=function(t){return c[e].call(this,this.parse(t))}}));var v=[["hh:mm:ss",d],["hh:mm:ss",5*d],["hh:mm:ss",10*d],["hh:mm:ss",15*d],["hh:mm:ss",30*d],["hh:mm\nMM-dd",h],["hh:mm\nMM-dd",5*h],["hh:mm\nMM-dd",10*h],["hh:mm\nMM-dd",15*h],["hh:mm\nMM-dd",30*h],["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",p],["MM-dd\nyyyy",2*p],["MM-dd\nyyyy",3*p],["MM-dd\nyyyy",4*p],["MM-dd\nyyyy",5*p],["MM-dd\nyyyy",6*p],["week",7*p],["MM-dd\nyyyy",10*p],["week",14*p],["week",21*p],["month",31*p],["week",42*p],["month",62*p],["week",70*p],["quarter",95*p],["month",31*p*4],["month",31*p*5],["half-year",380*p/2],["month",31*p*8],["month",31*p*10],["year",380*p]];m.create=function(e){return new m({useUTC:e.ecModel.get("useUTC")})};var y=m;e.exports=y},"217b":function(e,t,n){var r=n("4e08"),i=(r.__DEV__,n("3301")),o=n("4f85"),a=o.extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(e,t){return i(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 r=n("6d8b"),i=n("6cb7");n("df3a");var o=i.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(){i.prototype.init.apply(this,arguments),this.mergeOption({})},mergeOption:function(e){var t=this.option;e&&r.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){r.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=r.filter(this.dependentModels.parallelAxis,(function(e){return(e.get("parallelIndex")||0)===this.componentIndex}),this);r.each(n,(function(n){e.push("dim"+n.get("dim")),t.push(n.componentIndex)}))}});e.exports=o},"219c":function(e,t,n){"use strict";var r=n("da84"),i=n("e330"),o=n("d039"),a=n("59ed"),s=n("addb"),c=n("ebb5"),u=n("04d1"),l=n("d998"),d=n("2d00"),h=n("512c"),f=r.Array,p=c.aTypedArray,g=c.exportTypedArrayMethod,m=r.Uint16Array,v=m&&i(m.prototype.sort),y=!!v&&!(o((function(){v(new m(2),null)}))&&o((function(){v(new m(2),{})}))),_=!!v&&!o((function(){if(d)return d<74;if(u)return u<67;if(l)return!0;if(h)return h<602;var e,t,n=new m(516),r=f(516);for(e=0;e<516;e++)t=e%4,n[e]=515-e,r[e]=e-2*t+3;for(v(n,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(n[e]!==r[e])return!0})),b=function(e){return function(t,n){return void 0!==e?+e(t,n)||0:n!==n?-1:t!==t?1:0===t&&0===n?1/t>0&&1/n<0?1:-1:t>n}};g("sort",(function(e){return void 0!==e&&a(e),_?v(this,e):s(p(this),b(e))}),!_||y)},"222a":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pieConfig=void 0;var r={show:!0,name:"",radius:"50%",center:["50%","50%"],startAngle:-Math.PI/2,roseType:!1,roseSort:!0,roseIncrement:"auto",data:[],insideLabel:{show:!1,formatter:"{percent}%",style:{fontSize:10,fill:"#fff",textAlign:"center",textBaseline:"middle"}},outsideLabel:{show:!0,formatter:"{name}",style:{fontSize:11},labelLineBendGap:"20%",labelLineEndLength:50,labelLineStyle:{lineWidth:1}},pieStyle:{},percentToFixed:0,rLevel:10,animationDelayGap:60,animationCurve:"easeOutCubic",startAnimationCurve:"easeOutBack",animationFrame:50};t.pieConfig=r},2236:function(e,t,n){var r=n("5a43");function i(e){if(Array.isArray(e))return r(e)}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},2266:function(e,t,n){var r=n("da84"),i=n("0366"),o=n("c65b"),a=n("825a"),s=n("0d51"),c=n("e95a"),u=n("07fa"),l=n("3a9b"),d=n("9a1f"),h=n("35a1"),f=n("2a62"),p=r.TypeError,g=function(e,t){this.stopped=e,this.result=t},m=g.prototype;e.exports=function(e,t,n){var r,v,y,_,b,S,x,w=n&&n.that,I=!(!n||!n.AS_ENTRIES),C=!(!n||!n.IS_ITERATOR),M=!(!n||!n.INTERRUPTED),T=i(t,w),k=function(e){return r&&f(r,"normal",e),new g(!0,e)},E=function(e){return I?(a(e),M?T(e[0],e[1],k):T(e[0],e[1])):M?T(e,k):T(e)};if(C)r=e;else{if(v=h(e),!v)throw p(s(e)+" is not iterable");if(c(v)){for(y=0,_=u(e);_>y;y++)if(b=E(e[y]),b&&l(m,b))return b;return new g(!1)}r=d(e,v)}S=r.next;while(!(x=o(S,r)).done){try{b=E(x.value)}catch(A){f(r,"throw",A)}if("object"==typeof b&&b&&l(m,b))return b}return new g(!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}:i(navigator.userAgent);var r=n;function i(e){var t={},n={},r=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),o=e.match(/Edge\/([\d.]+)/),a=/micromessenger/i.test(e);return r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[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=r},"22da":function(e,t,n){var r=n("f934");function i(e){e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};var t,n,r=[e];while(t=r.pop())if(n=t.children,t.isExpand&&n.length)for(var i=n.length,o=i-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},r.push(a)}}function o(e,t){var n=e.isExpand?e.children:[],r=e.parentNode.children,i=e.hierNode.i?r[e.hierNode.i-1]:null;if(n.length){l(e);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;i?(e.hierNode.prelim=i.hierNode.prelim+t(e,i),e.hierNode.modifier=e.hierNode.prelim-o):e.hierNode.prelim=o}else i&&(e.hierNode.prelim=i.hierNode.prelim+t(e,i));e.parentNode.hierNode.defaultAncestor=d(e,i,e.parentNode.hierNode.defaultAncestor||r[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:m}function c(e,t){var n={};return e-=Math.PI/2,n.x=t*Math.cos(e),n.y=t*Math.sin(e),n}function u(e,t){return r.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function l(e){var t=e.children,n=t.length,r=0,i=0;while(--n>=0){var o=t[n];o.hierNode.prelim+=r,o.hierNode.modifier+=r,i+=o.hierNode.change,r+=o.hierNode.shift+i}}function d(e,t,n,r){if(t){var i=e,o=e,a=o.parentNode.children[0],s=t,c=i.hierNode.modifier,u=o.hierNode.modifier,l=a.hierNode.modifier,d=s.hierNode.modifier;while(s=h(s),o=f(o),s&&o){i=h(i),a=f(a),i.hierNode.ancestor=e;var m=s.hierNode.prelim+d-o.hierNode.prelim-u+r(s,o);m>0&&(g(p(s,e,n),e,m),u+=m,c+=m),d+=s.hierNode.modifier,u+=o.hierNode.modifier,c+=i.hierNode.modifier,l+=a.hierNode.modifier}s&&!h(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=d-c),o&&!f(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=u-l,n=e)}return n}function h(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 p(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function g(e,t,n){var r=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=r,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=r}function m(e,t){return e.parentNode===t.parentNode?1:2}t.init=i,t.firstWalk=o,t.secondWalk=a,t.separation=s,t.radialCoordinate=c,t.getViewRect=u},2306:function(e,t,n){var r=n("6d8b"),i=n("342d"),o=n("41ef"),a=n("1687"),s=n("401b"),c=n("cbe5"),u=n("0cde"),l=n("0da8");t.Image=l;var d=n("e1fc");t.Group=d;var h=n("76a5");t.Text=h;var f=n("d9fc");t.Circle=f;var p=n("4aa2");t.Sector=p;var g=n("4573");t.Ring=g;var m=n("87b1");t.Polygon=m;var v=n("d498");t.Polyline=v;var y=n("c7a2");t.Rect=y;var _=n("cb11");t.Line=_;var b=n("ac0f");t.BezierCurve=b;var S=n("8d32");t.Arc=S;var x=n("d4c6");t.CompoundPath=x;var w=n("48a9");t.LinearGradient=w;var I=n("dded");t.RadialGradient=I;var C=n("9850");t.BoundingRect=C;var M=n("392f");t.IncrementalDisplayable=M;var T=n("9cf9"),k=Math.max,E=Math.min,A={},D=1,O={color:"textFill",textBorderColor:"textStroke",textBorderWidth:"textStrokeWidth"},R="emphasis",L="normal",P=1,N={},U={};function F(e){return c.extend(e)}function G(e,t){return i.extendFromString(e,t)}function V(e,t){U[e]=t}function j(e){if(U.hasOwnProperty(e))return U[e]}function B(e,t,n,r){var o=i.createFromString(e,t);return n&&("center"===r&&(n=H(n,o.getBoundingRect())),q(o,n)),o}function z(e,t,n){var r=new l({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if("center"===n){var i={width:e.width,height:e.height};r.setStyle(H(t,i))}}});return r}function H(e,t){var n,r=t.width/t.height,i=e.height*r;i<=e.width?n=e.height:(i=e.width,n=i/r);var o=e.x+e.width/2,a=e.y+e.height/2;return{x:o-i/2,y:a-n/2,width:i,height:n}}var W=i.mergePath;function q(e,t){if(e.applyTransform){var n=e.getBoundingRect(),r=n.calculateTransform(t);e.applyTransform(r)}}function $(e){return T.subPixelOptimizeLine(e.shape,e.shape,e.style),e}function K(e){return T.subPixelOptimizeRect(e.shape,e.shape,e.style),e}var Y=T.subPixelOptimize;function J(e){return null!=e&&"none"!==e}var X=r.createHashMap(),Z=0;function Q(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 r=e.style;for(var i in t)null!=t[i]&&(n[i]=r[i]);n.fill=r.fill,n.stroke=r.stroke}else e.__cachedNormalStl=e.__cachedNormalZ2=null}}function te(e){var t=e.__hoverStl;if(t&&!e.__highlighted){var n=e.__zr,r=e.useHoverLayer&&n&&"canvas"===n.painter.type;if(e.__highlighted=r?"layer":"plain",!(e.isGroup||!n&&e.useHoverLayer)){var i=e,o=e.style;r&&(i=n.addHover(e),o=i.style),Ie(o),r||ee(i),o.extendFrom(t),ne(o,t,"fill"),ne(o,t,"stroke"),we(o),r||(e.dirty(!1),e.z2+=D)}}}function ne(e,t,n){!J(t[n])&&J(e[n])&&(e[n]=Q(e[n]))}function re(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,r=e.__cachedNormalStl;r&&(Ie(n),e.setStyle(r),we(n));var i=e.__cachedNormalZ2;null!=i&&e.z2-i===D&&(e.z2=i)}}function ie(e,t,n){var r,i=L,o=L;e.__highlighted&&(i=R,r=!0),t(e,n),e.__highlighted&&(o=R,r=!0),e.isGroup&&e.traverse((function(e){!e.isGroup&&t(e,n)})),r&&e.__highDownOnUpdate&&e.__highDownOnUpdate(i,o)}function oe(e,t){t=e.__hoverStl=!1!==t&&(e.hoverStyle||t||{}),e.__hoverStlDirty=!0,e.__highlighted&&(e.__cachedNormalStl=null,re(e),te(e))}function ae(e){!le(this,e)&&!this.__highByOuter&&ie(this,te)}function se(e){!le(this,e)&&!this.__highByOuter&&ie(this,re)}function ce(e){this.__highByOuter|=1<<(e||0),ie(this,te)}function ue(e){!(this.__highByOuter&=~(1<<(e||0)))&&ie(this,re)}function le(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function de(e,t){he(e,!0),ie(e,oe,t)}function he(e,t){var n=!1===t;if(e.__highDownSilentOnTouch=e.highDownSilentOnTouch,e.__highDownOnUpdate=e.highDownOnUpdate,!n||e.__highDownDispatcher){var r=n?"off":"on";e[r]("mouseover",ae)[r]("mouseout",se),e[r]("emphasis",ce)[r]("normal",ue),e.__highByOuter=e.__highByOuter||0,e.__highDownDispatcher=!n}}function fe(e){return!(!e||!e.__highDownDispatcher)}function pe(e){var t=N[e];return null==t&&P<=32&&(t=N[e]=P++),t}function ge(e,t,n,i,o,a,s){o=o||A;var c,u=o.labelFetcher,l=o.labelDataIndex,d=o.labelDimIndex,h=o.labelProp,f=n.getShallow("show"),p=i.getShallow("show");(f||p)&&(u&&(c=u.getFormattedLabel(l,"normal",null,d,h)),null==c&&(c=r.isFunction(o.defaultText)?o.defaultText(l,o):o.defaultText));var g=f?c:null,m=p?r.retrieve2(u?u.getFormattedLabel(l,"emphasis",null,d,h):null,c):null;null==g&&null==m||(ve(e,n,a,o),ve(t,i,s,o,!0)),e.text=g,t.text=m}function me(e,t,n){var i=e.style;t&&(Ie(i),e.setStyle(t),we(i)),i=e.__hoverStl,n&&i&&(Ie(i),r.extend(i,n),we(i))}function ve(e,t,n,i,o){return _e(e,t,i,o),n&&r.extend(e,n),e}function ye(e,t,n){var r,i={isRectText:!0};!1===n?r=!0:i.autoColor=n,_e(e,t,i,r)}function _e(e,t,n,i){if(n=n||A,n.isRectText){var o;n.getTextPosition?o=n.getTextPosition(t,i):(o=t.getShallow("position")||(i?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=r.retrieve2(t.getShallow("distance"),i?null:5)}var s,c=t.ecModel,u=c&&c.option.textStyle,l=be(t);if(l)for(var d in s={},l)if(l.hasOwnProperty(d)){var h=t.getModel(["rich",d]);Se(s[d]={},h,u,n,i)}return e.rich=s,Se(e,t,u,n,i,!0),n.forceRich&&!n.textStyle&&(n.textStyle={}),e}function be(e){var t;while(e&&e!==e.ecModel){var n=(e.option||A).rich;if(n)for(var r in t=t||{},n)n.hasOwnProperty(r)&&(t[r]=1);e=e.parentModel}return t}function Se(e,t,n,i,o,a){n=!o&&n||A,e.textFill=xe(t.getShallow("color"),i)||n.color,e.textStroke=xe(t.getShallow("textBorderColor"),i)||n.textBorderColor,e.textStrokeWidth=r.retrieve2(t.getShallow("textBorderWidth"),n.textBorderWidth),o||(a&&(e.insideRollbackOpt=i,we(e)),null==e.textFill&&(e.textFill=i.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&&i.disableBox||(e.textBackgroundColor=xe(t.getShallow("backgroundColor"),i),e.textPadding=t.getShallow("padding"),e.textBorderColor=xe(t.getShallow("borderColor"),i),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 we(e){var t,n=e.textPosition,r=e.insideRollbackOpt;if(r&&null==e.textFill){var i=r.autoColor,o=r.isRectText,a=r.useInsideStyle,s=!1!==a&&(!0===a||o&&n&&"string"===typeof n&&n.indexOf("inside")>=0),c=!s&&null!=i;(s||c)&&(t={textFill:e.textFill,textStroke:e.textStroke,textStrokeWidth:e.textStrokeWidth}),s&&(e.textFill="#fff",null==e.textStroke&&(e.textStroke=i,null==e.textStrokeWidth&&(e.textStrokeWidth=2))),c&&(e.textFill=i)}e.insideRollback=t}function Ie(e){var t=e.insideRollback;t&&(e.textFill=t.textFill,e.textStroke=t.textStroke,e.textStrokeWidth=t.textStrokeWidth,e.insideRollback=null)}function Ce(e,t){var n=t&&t.getModel("textStyle");return r.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 Me(e,t,n,r,i,o){"function"===typeof i&&(o=i,i=null);var a=r&&r.isAnimationEnabled();if(a){var s=e?"Update":"",c=r.getShallow("animationDuration"+s),u=r.getShallow("animationEasing"+s),l=r.getShallow("animationDelay"+s);"function"===typeof l&&(l=l(i,r.getAnimationDelayParams?r.getAnimationDelayParams(t,i):null)),"function"===typeof c&&(c=c(i)),c>0?t.animateTo(n,c,l||0,u,o,!!o):(t.stopAnimation(),t.attr(n),o&&o())}else t.stopAnimation(),t.attr(n),o&&o()}function Te(e,t,n,r,i){Me(!0,e,t,n,r,i)}function ke(e,t,n,r,i){Me(!1,e,t,n,r,i)}function Ee(e,t){var n=a.identity([]);while(e&&e!==t)a.mul(n,e.getLocalTransform(),n),e=e.parent;return n}function Ae(e,t,n){return t&&!r.isArrayLike(t)&&(t=u.getLocalTransform(t)),n&&(t=a.invert([],t)),s.applyTransform([],e,t)}function De(e,t,n){var r=0===t[4]||0===t[5]||0===t[0]?1:Math.abs(2*t[4]/t[0]),i=0===t[4]||0===t[5]||0===t[2]?1:Math.abs(2*t[4]/t[2]),o=["left"===e?-r:"right"===e?r:0,"top"===e?-i:"bottom"===e?i:0];return o=Ae(o,t,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Oe(e,t,n,i){if(e&&t){var o=a(e);t.traverse((function(e){if(!e.isGroup&&e.anid){var t=o[e.anid];if(t){var r=c(e);e.attr(c(t)),Te(e,r,n,e.dataIndex)}}}))}function a(e){var t={};return e.traverse((function(e){!e.isGroup&&e.anid&&(t[e.anid]=e)})),t}function c(e){var t={position:s.clone(e.position),rotation:e.rotation};return e.shape&&(t.shape=r.extend({},e.shape)),t}}function Re(e,t){return r.map(e,(function(e){var n=e[0];n=k(n,t.x),n=E(n,t.x+t.width);var r=e[1];return r=k(r,t.y),r=E(r,t.y+t.height),[n,r]}))}function Le(e,t){var n=k(e.x,t.x),r=E(e.x+e.width,t.x+t.width),i=k(e.y,t.y),o=E(e.y+e.height,t.y+t.height);if(r>=n&&o>=i)return{x:n,y:i,width:r-n,height:o-i}}function Pe(e,t,n){t=r.extend({rectHover:!0},t);var i=t.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return 0===e.indexOf("image://")?(i.image=e.slice(8),r.defaults(i,n),new l(t)):B(e.replace("path://",""),t,n,"center")}function Ne(e,t,n,r,i){for(var o=0,a=i[i.length-1];o<i.length;o++){var s=i[o];if(Ue(e,t,n,r,s[0],s[1],a[0],a[1]))return!0;a=s}}function Ue(e,t,n,r,i,o,a,s){var c=n-e,u=r-t,l=a-i,d=s-o,h=Fe(l,d,c,u);if(Ge(h))return!1;var f=e-i,p=t-o,g=Fe(f,p,c,u)/h;if(g<0||g>1)return!1;var m=Fe(f,p,l,d)/h;return!(m<0||m>1)}function Fe(e,t,n,r){return e*r-n*t}function Ge(e){return e<=1e-6&&e>=-1e-6}V("circle",f),V("sector",p),V("ring",g),V("polygon",m),V("polyline",v),V("rect",y),V("line",_),V("bezierCurve",b),V("arc",S),t.Z2_EMPHASIS_LIFT=D,t.CACHED_LABEL_STYLE_PROPERTIES=O,t.extendShape=F,t.extendPath=G,t.registerShape=V,t.getShapeClass=j,t.makePath=B,t.makeImage=z,t.mergePath=W,t.resizePath=q,t.subPixelOptimizeLine=$,t.subPixelOptimizeRect=K,t.subPixelOptimize=Y,t.setElementHoverStyle=oe,t.setHoverStyle=de,t.setAsHighDownDispatcher=he,t.isHighDownDispatcher=fe,t.getHighlightDigit=pe,t.setLabelStyle=ge,t.modifyLabelStyle=me,t.setTextStyle=ve,t.setText=ye,t.getFont=Ce,t.updateProps=Te,t.initProps=ke,t.getTransform=Ee,t.applyTransform=Ae,t.transformDirection=De,t.groupTransition=Oe,t.clipPointsByRect=Re,t.clipRectByRect=Le,t.createIcon=Pe,t.linePolygonIntersect=Ne,t.lineLineIntersect=Ue},2325:function(e,t,n){var r=n("6d8b"),i=n("607d"),o=n("2306"),a=n("88b3"),s=n("7dcf"),c=n("3842"),u=n("f934"),l=n("ef6a"),d=o.Rect,h=c.linearMap,f=c.asc,p=r.bind,g=r.each,m=7,v=1,y=30,_="horizontal",b="vertical",S=5,x=["line","bar","candlestick","scatter"],w=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,r){w.superApply(this,"render",arguments),a.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=e.get("orient"),!1!==this.dataZoomModel.get("show")?(r&&"dataZoom"===r.type&&r.from===this.uid||this._buildView(),this._updateView()):this.group.removeAll()},remove:function(){w.superApply(this,"remove",arguments),a.clear(this,"_dispatchZoomAction")},dispose:function(){w.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(),i={width:t.getWidth(),height:t.getHeight()},o=this._orient===_?{right:i.width-n.x-n.width,top:i.height-y-m,width:n.width,height:y}:{right:m,top:n.y,width:y,height:n.height},a=u.getLayoutParams(e.option);r.each(["right","top","width","height"],(function(e){"ph"===a[e]&&(a[e]=o[e])}));var s=u.getLayoutRect(a,i,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,r=this.dataZoomModel.getFirstTargetAxisModel(),i=r&&r.get("inverse"),o=this._displayables.barGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==_||i?n===_&&i?{scale:a?[-1,1]:[-1,-1]}:n!==b||i?{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 d({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get("backgroundColor")},z2:-40})),n.add(new d({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:"transparent"},z2:0,onclick:r.bind(this._onClickPanelClick,this)}))},_renderDataShadow:function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(e){var t=this._size,n=e.series,i=n.getRawData(),a=n.getShadowDim?n.getShadowDim():e.otherDim;if(null!=a){var s=i.getDataExtent(a),c=.3*(s[1]-s[0]);s=[s[0]-c,s[1]+c];var u,l=[0,t[1]],d=[0,t[0]],f=[[t[0],0],[0,0]],p=[],g=d[1]/(i.count()-1),m=0,v=Math.round(i.count()/t[0]);i.each([a],(function(e,t){if(v>0&&t%v)m+=g;else{var n=null==e||isNaN(e)||""===e,r=n?0:h(e,s,l,!0);n&&!u&&t?(f.push([f[f.length-1][0],0]),p.push([p[p.length-1][0],0])):!n&&u&&(f.push([m,0]),p.push([m,0])),f.push([m,r]),p.push([m,r]),m+=g,u=n}}));var y=this.dataZoomModel;this._displayables.barGroup.add(new o.Polygon({shape:{points:f},style:r.defaults({fill:y.get("dataBackgroundColor")},y.getModel("dataBackground.areaStyle").getAreaStyle()),silent:!0,z2:-20})),this._displayables.barGroup.add(new o.Polyline({shape:{points:p},style:y.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19}))}}},_prepareDataShadowInfo:function(){var e=this.dataZoomModel,t=e.get("showDataShadow");if(!1!==t){var n,i=this.ecModel;return e.eachTargetAxis((function(o,a){var s=e.getAxisProxy(o.name,a).getTargetSeriesModels();r.each(s,(function(e){if(!n&&!(!0!==t&&r.indexOf(x,e.get("type"))<0)){var s,c=i.getComponent(o.axis,a).axis,u=I(o.name),l=e.coordinateSystem;null!=u&&l.getOtherAxis&&(s=l.getOtherAxis(c).inverse),u=e.getData().mapDimension(u),n={thisAxis:c,series:e,thisDim:o.name,otherDim:u,otherAxisInverse:s}}}),this)}),this),n}},_renderHandle:function(){var e=this._displayables,t=e.handles=[],n=e.handleLabels=[],r=this._displayables.barGroup,i=this._size,a=this.dataZoomModel;r.add(e.filler=new d({draggable:!0,cursor:C(this._orient),drift:p(this._onDragMove,this,"all"),ondragstart:p(this._showDataInfo,this,!0),ondragend:p(this._onDragEnd,this),onmouseover:p(this._showDataInfo,this,!0),onmouseout:p(this._showDataInfo,this,!1),style:{fill:a.get("fillerColor"),textPosition:"inside"}})),r.add(new d({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:i[0],height:i[1]},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:v,fill:"rgba(0,0,0,0)"}})),g([0,1],(function(e){var i=o.createIcon(a.get("handleIcon"),{cursor:C(this._orient),draggable:!0,drift:p(this._onDragMove,this,e),ondragend:p(this._onDragEnd,this),onmouseover:p(this._showDataInfo,this,!0),onmouseout:p(this._showDataInfo,this,!1)},{x:-1,y:0,width:2,height:2}),s=i.getBoundingRect();this._handleHeight=c.parsePercent(a.get("handleSize"),this._size[1]),this._handleWidth=s.width/s.height*this._handleHeight,i.setStyle(a.getModel("handleStyle").getItemStyle());var u=a.get("handleColor");null!=u&&(i.style.fill=u),r.add(t[e]=i);var l=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:l.getTextColor(),textFont:l.getFont()},z2:10}))}),this)},_resetInterval:function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[h(e[0],[0,100],t,!0),h(e[1],[0,100],t,!0)]},_updateInterval:function(e,t){var n=this.dataZoomModel,r=this._handleEnds,i=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];l(t,r,i,n.get("zoomLock")?"all":e,null!=o.minSpan?h(o.minSpan,a,i,!0):null,null!=o.maxSpan?h(o.maxSpan,a,i,!0):null);var s=this._range,c=this._range=f([h(r[0],i,a,!0),h(r[1],i,a,!0)]);return!s||s[0]!==c[0]||s[1]!==c[1]},_updateView:function(e){var t=this._displayables,n=this._handleEnds,r=f(n.slice()),i=this._size;g([0,1],(function(e){var r=t.handles[e],o=this._handleHeight;r.attr({scale:[o/2,o/2],position:[n[e],i[1]/2-o/2]})}),this),t.filler.setShape({x:r[0],y:0,width:r[1]-r[0],height:i[1]}),this._updateDataInfo(e)},_updateDataInfo:function(e){var t=this.dataZoomModel,n=this._displayables,r=n.handleLabels,i=this._orient,a=["",""];if(t.get("showDetail")){var s=t.findRepresentativeAxisProxy();if(s){var c=s.getAxisModel().axis,u=this._range,l=e?s.calculateDataWindow({start:u[0],end:u[1]}).valueWindow:s.getDataValueWindow();a=[this._formatLabel(l[0],c),this._formatLabel(l[1],c)]}}var d=f(this._handleEnds.slice());function h(e){var t=o.getTransform(n.handles[e].parent,this.group),s=o.transformDirection(0===e?"right":"left",t),c=this._handleWidth/2+S,u=o.applyTransform([d[e]+(0===e?-c:c),this._size[1]/2],t);r[e].setStyle({x:u[0],y:u[1],textVerticalAlign:i===_?"middle":s,textAlign:i===_?s:"center",text:a[e]})}h.call(this,0),h.call(this,1)},_formatLabel:function(e,t){var n=this.dataZoomModel,i=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 r.isFunction(i)?i(e,a):r.isString(i)?i.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,r){this._dragging=!0,i.stop(r.event);var a=this._displayables.barGroup.getLocalTransform(),s=o.applyTransform([t,n],a,!0),c=this._updateInterval(e,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),c&&u&&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 r=this._handleEnds,i=(r[0]+r[1])/2,o=this._updateInterval("all",n[0]-i);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(g(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 I(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function C(e){return"vertical"===e?"ns-resize":"ew-resize"}var M=w;e.exports=M},"237f":function(e,t,n){var r=n("6d8b"),i=n("6179"),o=n("7368"),a=n("31d9"),s=n("b1d4"),c=n("2039"),u=n("3301");function l(e,t,n,l,d){for(var h=new o(l),f=0;f<e.length;f++)h.addNode(r.retrieve(e[f].id,e[f].name,f),f);var p=[],g=[],m=0;for(f=0;f<t.length;f++){var v=t[f],y=v.source,_=v.target;h.addEdge(y,_,m)&&(g.push(v),p.push(r.retrieve(v.id,y+" > "+_)),m++)}var b,S=n.get("coordinateSystem");if("cartesian2d"===S||"polar"===S)b=u(e,n);else{var x=c.get(S),w=x&&"view"!==x.type&&x.dimensions||[];r.indexOf(w,"value")<0&&w.concat(["value"]);var I=s(e,{coordDimensions:w});b=new i(I,n),b.initData(e)}var C=new i(["value"],n);return C.initData(g,p),d&&d(b,C),a({mainData:b,struct:h,structAttr:"graph",datas:{node:b,edge:C},datasAttr:{node:"data",edge:"edgeData"}}),h.update(),h}e.exports=l},"23cb":function(e,t,n){var r=n("5926"),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},"23e0":function(e,t,n){var r=n("6d8b"),i=n("7887"),o=n("89e3"),a=n("3842"),s=n("697e"),c=s.getScaleExtent,u=s.niceScaleExtent,l=n("2039"),d=n("8c2a");function h(e,t,n){this._model=e,this.dimensions=[],this._indicatorAxes=r.map(e.getIndicatorModels(),(function(e,t){var n="indicator_"+t,r=new i(n,"log"===e.get("axisType")?new d:new o);return r.name=e.get("name"),r.model=e,e.axis=r,this.dimensions.push(n),r}),this),this.resize(e,n),this.cx,this.cy,this.r,this.r0,this.startAngle}h.prototype.getIndicatorAxes=function(){return this._indicatorAxes},h.prototype.dataToPoint=function(e,t){var n=this._indicatorAxes[t];return this.coordToPoint(n.dataToCoord(e),t)},h.prototype.coordToPoint=function(e,t){var n=this._indicatorAxes[t],r=n.angle,i=this.cx+e*Math.cos(r),o=this.cy-e*Math.sin(r);return[i,o]},h.prototype.pointToData=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,r=Math.sqrt(t*t+n*n);t/=r,n/=r;for(var i,o=Math.atan2(-n,t),a=1/0,s=-1,c=0;c<this._indicatorAxes.length;c++){var u=this._indicatorAxes[c],l=Math.abs(o-u.angle);l<a&&(i=u,s=c,a=l)}return[s,+(i&&i.coordToData(r))]},h.prototype.resize=function(e,t){var n=e.get("center"),i=t.getWidth(),o=t.getHeight(),s=Math.min(i,o)/2;this.cx=a.parsePercent(n[0],i),this.cy=a.parsePercent(n[1],o),this.startAngle=e.get("startAngle")*Math.PI/180;var c=e.get("radius");"string"!==typeof c&&"number"!==typeof c||(c=[0,c]),this.r0=a.parsePercent(c[0],s),this.r=a.parsePercent(c[1],s),r.each(this._indicatorAxes,(function(e,t){e.setExtent(this.r0,this.r);var n=this.startAngle+t*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),e.angle=n}),this)},h.prototype.update=function(e,t){var n=this._indicatorAxes,i=this._model;r.each(n,(function(e){e.scale.setExtent(1/0,-1/0)})),e.eachSeriesByType("radar",(function(t,o){if("radar"===t.get("coordinateSystem")&&e.getComponent("radar",t.get("radarIndex"))===i){var a=t.getData();r.each(n,(function(e){e.scale.unionExtentFromData(a,a.mapDimension(e.dim))}))}}),this);var o=i.get("splitNumber");function s(e){var t=Math.pow(10,Math.floor(Math.log(e)/Math.LN10)),n=e/t;return 2===n?n=5:n*=2,n*t}r.each(n,(function(e,t){var n=c(e.scale,e.model).extent;u(e.scale,e.model);var r=e.model,i=e.scale,l=r.getMin(),d=r.getMax(),h=i.getInterval();if(null!=l&&null!=d)i.setExtent(+l,+d),i.setInterval((d-l)/o);else if(null!=l){do{p=l+h*o,i.setExtent(+l,p),i.setInterval(h),h=s(h)}while(p<n[1]&&isFinite(p)&&isFinite(n[1]))}else if(null!=d){do{g=d-h*o,i.setExtent(g,+d),i.setInterval(h),h=s(h)}while(g>n[0]&&isFinite(g)&&isFinite(n[0]))}else{var f=i.getTicks().length-1;f>o&&(h=s(h));var p=Math.ceil(n[1]/h)*h,g=a.round(p-h*o);i.setExtent(g,p),i.setInterval(h)}}))},h.dimensions=[],h.create=function(e,t){var n=[];return e.eachComponent("radar",(function(r){var i=new h(r,e,t);n.push(i),r.coordinateSystem=i})),e.eachSeriesByType("radar",(function(e){"radar"===e.get("coordinateSystem")&&(e.coordinateSystem=n[e.get("radarIndex")||0])})),n},l.register("radar",h);var f=h;e.exports=f},"23e7":function(e,t,n){var r=n("da84"),i=n("06cf").f,o=n("9112"),a=n("6eeb"),s=n("ce4e"),c=n("e893"),u=n("94ca");e.exports=function(e,t){var n,l,d,h,f,p,g=e.target,m=e.global,v=e.stat;if(l=m?r:v?r[g]||s(g,{}):(r[g]||{}).prototype,l)for(d in t){if(f=t[d],e.noTargetGet?(p=i(l,d),h=p&&p.value):h=l[d],n=u(m?d:g+(v?".":"#")+d,e.forced),!n&&void 0!==h){if(typeof f==typeof h)continue;c(f,h)}(e.sham||h&&h.sham)&&o(f,"sham",!0),a(l,d,f,e)}}},"23ee":function(e,t,n){var r=n("3eba");n("879e"),n("9704"),n("d747");var i=n("675a"),o=n("7f96"),a=n("2943"),s=n("de6e"),c=n("d357"),u=n("adda"),l=n("5866"),d=n("7b0c");r.registerProcessor(i),r.registerVisual(o("graph","circle",null)),r.registerVisual(a),r.registerVisual(s),r.registerLayout(c),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,u),r.registerLayout(l),r.registerCoordinateSystem("graphView",{create:d})},"241c":function(e,t,n){var r=n("ca84"),i=n("7839"),o=i.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},2444:function(e,t,n){"use strict";(function(t){var r=n("c532"),i=n("c8af"),o=n("387f"),a={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function c(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof t&&"[object process]"===Object.prototype.toString.call(t))&&(e=n("b50d")),e}function u(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(i){if("SyntaxError"!==i.name)throw i}return(n||JSON.stringify)(e)}var l={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:c(),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(s(t,"application/json"),u(e)):e}],transformResponse:[function(e){var t=this.transitional||l.transitional,n=t&&t.silentJSONParsing,i=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||i&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(s){if(a){if("SyntaxError"===s.name)throw o(s,this,"E_JSON_PARSE");throw s}}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, */*"}}};r.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){l.headers[e]=r.merge(a)})),e.exports=l}).call(this,n("4362"))},2449:function(e,t,n){var r=n("4e08"),i=(r.__DEV__,n("3eba")),o=n("6d8b"),a=n("22d1"),s=n("e0d3"),c=n("eda2"),u=n("38a2"),l=c.addCommas,d=c.encodeHTML;function h(e){s.defaultEmphasis(e,"label",["show"])}var f=i.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,r){var i=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):(r&&h(n),o.each(n.data,(function(e){e instanceof Array?(h(e[0]),h(e[1])):h(e)})),s=new i(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,r){var i=this.getData(),a=this.getRawValue(e),s=o.isArray(a)?o.map(a,l).join(", "):l(a),c=i.getName(e),u=d(this.name),h="html"===r?"<br/>":"\n";return(null!=a||c)&&(u+=h),c&&(u+=d(c),null!=a&&(u+=" : ")),null!=a&&(u+=d(s)),u},getData:function(){return this._data},setData:function(e){this._data=e}});o.mixin(f,u);var p=f;e.exports=p},"24b9":function(e,t,n){var r=n("4e08"),i=(r.__DEV__,n("f934")),o=n("3842"),a=o.parsePercent,s=o.linearMap;function c(e,t){return i.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function u(e,t){for(var n=e.mapDimension("value"),r=e.mapArray(n,(function(e){return e})),i=[],o="ascending"===t,a=0,s=e.count();a<s;a++)i[a]=a;return"function"===typeof t?i.sort(t):"none"!==t&&i.sort((function(e,t){return o?r[e]-r[t]:r[t]-r[e]})),i}function l(e){e.each((function(t){var n,r,i,o,a=e.getItemModel(t),s=a.getModel("label"),c=s.get("position"),u=a.get("orient"),l=a.getModel("labelLine"),d=e.getItemLayout(t),h=d.points,f="inner"===c||"inside"===c||"center"===c||"insideLeft"===c||"insideRight"===c;if(f)"insideLeft"===c?(r=(h[0][0]+h[3][0])/2+5,i=(h[0][1]+h[3][1])/2,n="left"):"insideRight"===c?(r=(h[1][0]+h[2][0])/2-5,i=(h[1][1]+h[2][1])/2,n="right"):(r=(h[0][0]+h[1][0]+h[2][0]+h[3][0])/4,i=(h[0][1]+h[1][1]+h[2][1]+h[3][1])/4,n="center"),o=[[r,i],[r,i]];else{var p,g,m,v,y=l.get("length");"left"===c?(p=(h[3][0]+h[0][0])/2,g=(h[3][1]+h[0][1])/2,m=p-y,r=m-5,n="right"):"right"===c?(p=(h[1][0]+h[2][0])/2,g=(h[1][1]+h[2][1])/2,m=p+y,r=m+5,n="left"):"top"===c?(p=(h[3][0]+h[0][0])/2,g=(h[3][1]+h[0][1])/2,v=g-y,i=v-5,n="center"):"bottom"===c?(p=(h[1][0]+h[2][0])/2,g=(h[1][1]+h[2][1])/2,v=g+y,i=v+5,n="center"):"rightTop"===c?(p="horizontal"===u?h[3][0]:h[1][0],g="horizontal"===u?h[3][1]:h[1][1],"horizontal"===u?(v=g-y,i=v-5,n="center"):(m=p+y,r=m+5,n="top")):"rightBottom"===c?(p=h[2][0],g=h[2][1],"horizontal"===u?(v=g+y,i=v+5,n="center"):(m=p+y,r=m+5,n="bottom")):"leftTop"===c?(p=h[0][0],g="horizontal"===u?h[0][1]:h[1][1],"horizontal"===u?(v=g-y,i=v-5,n="center"):(m=p-y,r=m-5,n="right")):"leftBottom"===c?(p="horizontal"===u?h[1][0]:h[3][0],g="horizontal"===u?h[1][1]:h[2][1],"horizontal"===u?(v=g+y,i=v+5,n="center"):(m=p-y,r=m-5,n="right")):(p=(h[1][0]+h[2][0])/2,g=(h[1][1]+h[2][1])/2,"horizontal"===u?(v=g+y,i=v+5,n="center"):(m=p+y,r=m+5,n="left")),"horizontal"===u?(m=p,r=m):(v=g,i=v),o=[[p,g],[m,v]]}d.label={linePoints:o,x:r,y:i,verticalAlign:"middle",textAlign:n,inside:f}}))}function d(e,t,n){e.eachSeriesByType("funnel",(function(e){var n=e.getData(),r=n.mapDimension("value"),i=e.get("sort"),o=c(e,t),d=u(n,i),h=e.get("orient"),f=o.width,p=o.height,g=o.x,m=o.y,v="horizontal"===h?[a(e.get("minSize"),p),a(e.get("maxSize"),p)]:[a(e.get("minSize"),f),a(e.get("maxSize"),f)],y=n.getDataExtent(r),_=e.get("min"),b=e.get("max");null==_&&(_=Math.min(y[0],0)),null==b&&(b=y[1]);var S=e.get("funnelAlign"),x=e.get("gap"),w="horizontal"===h?f:p,I=(w-x*(n.count()-1))/n.count(),C=function(e,t){if("horizontal"===h){var i,o=n.get(r,e)||0,a=s(o,[_,b],v,!0);switch(S){case"top":i=m;break;case"center":i=m+(p-a)/2;break;case"bottom":i=m+(p-a);break}return[[t,i],[t,i+a]]}o=n.get(r,e)||0;var c,u=s(o,[_,b],v,!0);switch(S){case"left":c=g;break;case"center":c=g+(f-u)/2;break;case"right":c=g+f-u;break}return[[c,t],[c+u,t]]};"ascending"===i&&(I=-I,x=-x,"horizontal"===h?g+=f:m+=p,d=d.reverse());for(var M=0;M<d.length;M++){var T=d[M],k=d[M+1],E=n.getItemModel(T);if("horizontal"===h){var A=E.get("itemStyle.width");null==A?A=I:(A=a(A,f),"ascending"===i&&(A=-A));var D=C(T,g),O=C(k,g+A);g+=A+x,n.setItemLayout(T,{points:D.concat(O.slice().reverse())})}else{var R=E.get("itemStyle.height");null==R?R=I:(R=a(R,p),"ascending"===i&&(R=-R));D=C(T,"horizontal"===h?g:m),O=C(k,"horizontal"===h?g+A:m+R);m+=R+x,n.setItemLayout(T,{points:D.concat(O.slice().reverse())})}}l(n)}))}e.exports=d},"252f":function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.line=m;var i=r(n("7037")),o=r(n("278c")),a=r(n("448a")),s=r(n("9523")),c=n("18ad"),u=n("9d85"),l=r(n("050c")),d=n("becb");function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){(0,s["default"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var p=l["default"].polylineToBezierCurve,g=l["default"].getBezierCurveLength;function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.xAxis,r=t.yAxis,i=t.series,o=[];n&&r&&i&&(o=(0,d.initNeedSeries)(i,u.lineConfig,"line"),o=v(o,e)),(0,c.doUpdate)({chart:e,series:o,key:"lineArea",getGraphConfig:x,getStartGraphConfig:T,beforeUpdate:k,beforeChange:E}),(0,c.doUpdate)({chart:e,series:o,key:"line",getGraphConfig:A,getStartGraphConfig:L,beforeUpdate:k,beforeChange:E}),(0,c.doUpdate)({chart:e,series:o,key:"linePoint",getGraphConfig:P,getStartGraphConfig:F}),(0,c.doUpdate)({chart:e,series:o,key:"lineLabel",getGraphConfig:G})}function v(e,t){var n=t.axisData;return e.map((function(t){var r=(0,d.mergeSameStackData)(t,e);r=y(t,r);var i=_(t,n),o=b(r,i),a=S(i);return f(f({},t),{},{linePosition:o.filter((function(e){return e})),lineFillBottomPos:a})}))}function y(e,t){var n=e.data;return t.map((function(e,t){return"number"===typeof n[t]?e:null}))}function _(e,t){var n=e.xAxisIndex,r=e.yAxisIndex,i=t.find((function(e){var t=e.axis,r=e.index;return"x"===t&&r===n})),o=t.find((function(e){var t=e.axis,n=e.index;return"y"===t&&n===r}));return[i,o]}function b(e,t){var n=t.findIndex((function(e){var t=e.data;return"value"===t})),r=t[n],i=t[1-n],o=r.linePosition,a=r.axis,s=i.tickPosition,c=s.length,u="x"===a?0:1,l=o[0][u],d=o[1][u],h=d-l,f=r.maxValue,p=r.minValue,g=f-p,m=new Array(c).fill(0).map((function(t,n){var r=e[n];if("number"!==typeof r)return null;var i=(r-p)/g;return 0===g&&(i=0),i*h+l}));return m.map((function(e,t){if(t>=c||"number"!==typeof e)return null;var n=[e,s[t][1-u]];return 0===u||n.reverse(),n}))}function S(e){var t=e.find((function(e){var t=e.data;return"value"===t})),n=t.axis,r=t.linePosition,i=t.minValue,o=t.maxValue,a="x"===n?0:1,s=r[0][a];if(i<0&&o>0){var c=o-i,u=Math.abs(r[0][a]-r[1][a]),l=Math.abs(i)/c*u;"y"===n&&(l*=-1),s+=l}return{changeIndex:a,changeValue:s}}function x(e){var t=e.animationCurve,n=e.animationFrame,r=e.lineFillBottomPos,i=e.rLevel;return[{name:D(e),index:i,animationCurve:t,animationFrame:n,visible:e.lineArea.show,lineFillBottomPos:r,shape:w(e),style:I(e),drawed:M}]}function w(e){var t=e.linePosition;return{points:t}}function I(e){var t=e.lineArea,n=e.color,r=t.gradient,i=t.style,o=[i.fill||n],a=(0,d.deepMerge)(o,r);1===a.length&&a.push(a[0]);var s=C(e);return i=f(f({},i),{},{stroke:"rgba(0, 0, 0, 0)"}),(0,d.deepMerge)({gradientColor:a,gradientParams:s,gradientType:"linear",gradientWith:"fill"},i)}function C(e){var t=e.lineFillBottomPos,n=e.linePosition,r=t.changeIndex,i=t.changeValue,o=n.map((function(e){return e[r]})),s=Math.max.apply(Math,(0,a["default"])(o)),c=Math.min.apply(Math,(0,a["default"])(o)),u=s;return 1===r&&(u=c),1===r?[0,u,0,i]:[u,0,i,0]}function M(e,t){var n=e.lineFillBottomPos,r=e.shape,i=t.ctx,o=r.points,s=n.changeIndex,c=n.changeValue,u=(0,a["default"])(o[o.length-1]),l=(0,a["default"])(o[0]);u[s]=c,l[s]=c,i.lineTo.apply(i,(0,a["default"])(u)),i.lineTo.apply(i,(0,a["default"])(l)),i.closePath(),i.fill()}function T(e){var t=x(e)[0],n=f({},t.style);return n.opacity=0,t.style=n,[t]}function k(e,t,n,r){var i=e[n];if(i){var o=D(t),a=r.chart.render,s=i[0].name,c=o!==s;c&&(i.forEach((function(e){return a.delGraph(e)})),e[n]=null)}}function E(e,t){var n=t.shape.points,r=e.shape.points,i=r.length,o=n.length;if(o>i){var s=r.slice(-1)[0],c=new Array(o-i).fill(0).map((function(e){return(0,a["default"])(s)}));r.push.apply(r,(0,a["default"])(c))}else o<i&&r.splice(o)}function A(e){var t=e.animationCurve,n=e.animationFrame,r=e.rLevel;return[{name:D(e),index:r+1,animationCurve:t,animationFrame:n,shape:w(e),style:O(e)}]}function D(e){var t=e.smooth;return t?"smoothline":"polyline"}function O(e){var t=e.lineStyle,n=e.color,r=e.smooth,i=e.linePosition,o=R(i,r);return(0,d.deepMerge)({stroke:n,lineDash:[o,0]},t)}function R(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t)return(0,d.getPolylineLength)(e);var n=p(e);return g(n)}function L(e){var t=e.lineStyle.lineDash,n=A(e)[0],r=n.style.lineDash;return r=t?[0,0]:(0,a["default"])(r).reverse(),n.style.lineDash=r,[n]}function P(e){var t=e.animationCurve,n=e.animationFrame,r=e.rLevel,i=N(e),o=U(e);return i.map((function(i){return{name:"circle",index:r+2,visible:e.linePoint.show,animationCurve:t,animationFrame:n,shape:i,style:o}}))}function N(e){var t=e.linePosition,n=e.linePoint.radius;return t.map((function(e){var t=(0,o["default"])(e,2),r=t[0],i=t[1];return{r:n,rx:r,ry:i}}))}function U(e){var t=e.color,n=e.linePoint.style;return(0,d.deepMerge)({stroke:t},n)}function F(e){var t=P(e);return t.forEach((function(e){e.shape.r=.1})),t}function G(e){var t=e.animationCurve,n=e.animationFrame,r=e.rLevel,i=V(e),o=W(e);return i.map((function(i,a){return{name:"text",index:r+3,visible:e.label.show,animationCurve:t,animationFrame:n,shape:i,style:o}}))}function V(e){var t=H(e),n=j(e);return t.map((function(e,t){return{content:e,position:n[t]}}))}function j(e){var t=e.linePosition,n=e.lineFillBottomPos,r=e.label,i=r.position,o=r.offset,s=n.changeIndex,c=n.changeValue;return t.map((function(e){if("bottom"===i&&(e=(0,a["default"])(e),e[s]=c),"center"===i){var t=(0,a["default"])(e);t[s]=c,e=z(e,t)}return B(e,o)}))}function B(e,t){var n=(0,o["default"])(e,2),r=n[0],i=n[1],a=(0,o["default"])(t,2),s=a[0],c=a[1];return[r+s,i+c]}function z(e,t){var n=(0,o["default"])(e,2),r=n[0],i=n[1],a=(0,o["default"])(t,2),s=a[0],c=a[1];return[(r+s)/2,(i+c)/2]}function H(e){var t=e.data,n=e.label.formatter;if(t=t.filter((function(e){return"number"===typeof e})).map((function(e){return e.toString()})),!n)return t;var r=(0,i["default"])(n);return"string"===r?t.map((function(e){return n.replace("{value}",e)})):"function"===r?t.map((function(e,t){return n({value:e,index:t})})):t}function W(e){var t=e.color,n=e.label.style;return(0,d.deepMerge)({fill:t},n)}},2532:function(e,t,n){"use strict";var r=n("23e7"),i=n("e330"),o=n("5a34"),a=n("1d80"),s=n("577e"),c=n("ab13"),u=i("".indexOf);r({target:"String",proto:!0,forced:!c("includes")},{includes:function(e){return!!~u(s(a(this)),s(o(e)),arguments.length>1?arguments[1]:void 0)}})},"255c":function(e,t,n){var r=n("3eba"),i=n("d4d1"),o=i.Polygon,a=n("2306"),s=n("6d8b"),c=s.bind,u=s.extend,l=n("80f0"),d=r.extendChartView({type:"themeRiver",init:function(){this._layers=[]},render:function(e,t,n){var r=e.getData(),i=this.group,s=e.getLayerSeries(),d=r.getLayout("layoutInfo"),f=d.rect,p=d.boundaryGap;function g(e){return e.name}i.attr("position",[0,f.y+p[0]]);var m=new l(this._layersSeries||[],s,g,g),v={};function y(t,n,c){var l=this._layers;if("remove"!==t){for(var d,f,p,g=[],m=[],y=s[n].indices,_=0;_<y.length;_++){var b=r.getItemLayout(y[_]),S=b.x,x=b.y0,w=b.y;g.push([S,x]),m.push([S,x+w]),d=r.getItemVisual(y[_],"color")}var I=r.getItemLayout(y[0]),C=r.getItemModel(y[_-1]),M=C.getModel("label"),T=M.get("margin");if("add"===t){var k=v[n]=new a.Group;f=new o({shape:{points:g,stackedOnPoints:m,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),p=new a.Text({style:{x:I.x-T,y:I.y0+I.y/2}}),k.add(f),k.add(p),i.add(k),f.setClipPath(h(f.getBoundingRect(),e,(function(){f.removeClipPath()})))}else{k=l[c];f=k.childAt(0),p=k.childAt(1),i.add(k),v[n]=k,a.updateProps(f,{shape:{points:g,stackedOnPoints:m}},e),a.updateProps(p,{style:{x:I.x-T,y:I.y0+I.y/2}},e)}var E=C.getModel("emphasis.itemStyle"),A=C.getModel("itemStyle");a.setTextStyle(p.style,M,{text:M.get("show")?e.getFormattedLabel(y[_-1],"normal")||r.getName(y[_-1]):null,textVerticalAlign:"middle"}),f.setStyle(u({fill:d},A.getItemStyle(["color"]))),a.setHoverStyle(f,E.getItemStyle())}else i.remove(l[n])}m.add(c(y,this,"add")).update(c(y,this,"update")).remove(c(y,this,"remove")).execute(),this._layersSeries=s,this._layers=v},dispose:function(){}});function h(e,t,n){var r=new a.Rect({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return a.initProps(r,{shape:{width:e.width+20,height:e.height+20}},t,n),r}e.exports=d},"25a1":function(e,t,n){"use strict";var r=n("ebb5"),i=n("d58f").right,o=r.aTypedArray,a=r.exportTypedArrayMethod;a("reduceRight",(function(e){var t=arguments.length;return i(o(this),e,t,t>1?arguments[1]:void 0)}))},"25f0":function(e,t,n){"use strict";var r=n("e330"),i=n("5e77").PROPER,o=n("6eeb"),a=n("825a"),s=n("3a9b"),c=n("577e"),u=n("d039"),l=n("ad6d"),d="toString",h=RegExp.prototype,f=h[d],p=r(l),g=u((function(){return"/a/b"!=f.call({source:"a",flags:"b"})})),m=i&&f.name!=d;(g||m)&&o(RegExp.prototype,d,(function(){var e=a(this),t=c(e.source),n=e.flags,r=c(void 0===n&&s(h,e)&&!("flags"in h)?p(e):n);return"/"+t+"/"+r}),{unsafe:!0})},2626:function(e,t,n){"use strict";var r=n("d066"),i=n("9bf2"),o=n("b622"),a=n("83ab"),s=o("species");e.exports=function(e){var t=r(e),n=i.f;a&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},"26e1":function(e,t,n){var r=n("6d8b"),i=n("e0d3"),o=r.each,a=r.isObject,s=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function c(e){var t=e&&e.itemStyle;if(t)for(var n=0,i=s.length;n<i;n++){var o=s[n],a=t.normal,c=t.emphasis;a&&a[o]&&(e[o]=e[o]||{},e[o].normal?r.merge(e[o].normal,a[o]):e[o].normal=a[o],a[o]=null),c&&c[o]&&(e[o]=e[o]||{},e[o].emphasis?r.merge(e[o].emphasis,c[o]):e[o].emphasis=c[o],c[o]=null)}}function u(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var i=e[t].normal,o=e[t].emphasis;i&&(n?(e[t].normal=e[t].emphasis=null,r.defaults(e[t],i)):e[t]=i),o&&(e.emphasis=e.emphasis||{},e.emphasis[t]=o)}}function l(e){u(e,"itemStyle"),u(e,"lineStyle"),u(e,"areaStyle"),u(e,"label"),u(e,"labelLine"),u(e,"upperLabel"),u(e,"edgeLabel")}function d(e,t){var n=a(e)&&e[t],r=a(n)&&n.textStyle;if(r)for(var o=0,s=i.TEXT_STYLE_OPTIONS.length;o<s;o++){t=i.TEXT_STYLE_OPTIONS[o];r.hasOwnProperty(t)&&(n[t]=r[t])}}function h(e){e&&(l(e),d(e,"label"),e.emphasis&&d(e.emphasis,"label"))}function f(e){if(a(e)){c(e),l(e),d(e,"label"),d(e,"upperLabel"),d(e,"edgeLabel"),e.emphasis&&(d(e.emphasis,"label"),d(e.emphasis,"upperLabel"),d(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(c(t),h(t));var n=e.markLine;n&&(c(n),h(n));var i=e.markArea;i&&h(i);var o=e.data;if("graph"===e.type){o=o||e.nodes;var s=e.links||e.edges;if(s&&!r.isTypedArray(s))for(var f=0;f<s.length;f++)h(s[f]);r.each(e.categories,(function(e){l(e)}))}if(o&&!r.isTypedArray(o))for(f=0;f<o.length;f++)h(o[f]);t=e.markPoint;if(t&&t.data){var p=t.data;for(f=0;f<p.length;f++)h(p[f])}n=e.markLine;if(n&&n.data){var g=n.data;for(f=0;f<g.length;f++)r.isArray(g[f])?(h(g[f][0]),h(g[f][1])):h(g[f])}"gauge"===e.type?(d(e,"axisLabel"),d(e,"title"),d(e,"detail")):"treemap"===e.type?(u(e.breadcrumb,"itemStyle"),r.each(e.levels,(function(e){l(e)}))):"tree"===e.type&&l(e.leaves)}}function p(e){return r.isArray(e)?e:e?[e]:[]}function g(e){return(r.isArray(e)?e[0]:e)||{}}function m(e,t){o(p(e.series),(function(e){a(e)&&f(e)}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),o(n,(function(t){o(p(e[t]),(function(e){e&&(d(e,"axisLabel"),d(e.axisPointer,"label"))}))})),o(p(e.parallel),(function(e){var t=e&&e.parallelAxisDefault;d(t,"axisLabel"),d(t&&t.axisPointer,"label")})),o(p(e.calendar),(function(e){u(e,"itemStyle"),d(e,"dayLabel"),d(e,"monthLabel"),d(e,"yearLabel")})),o(p(e.radar),(function(e){d(e,"name")})),o(p(e.geo),(function(e){a(e)&&(h(e),o(p(e.regions),(function(e){h(e)})))})),o(p(e.timeline),(function(e){h(e),u(e,"label"),u(e,"itemStyle"),u(e,"controlStyle",!0);var t=e.data;r.isArray(t)&&r.each(t,(function(e){r.isObject(e)&&(u(e,"label"),u(e,"itemStyle"))}))})),o(p(e.toolbox),(function(e){u(e,"iconStyle"),o(e.feature,(function(e){u(e,"iconStyle")}))})),d(g(e.axisPointer),"label"),d(g(e.tooltip).axisPointer,"label")}e.exports=m},"278c":function(e,t,n){var r=n("c135"),i=n("9b42"),o=n("6613"),a=n("c240");function s(e,t){return r(e)||i(e,t)||o(e,t)||a()}e.exports=s,e.exports.__esModule=!0,e.exports["default"]=e.exports},"282b":function(e,t,n){var r=n("6d8b");function i(e){for(var t=0;t<e.length;t++)e[t][1]||(e[t][1]=e[t][0]);return function(t,n,i){for(var o={},a=0;a<e.length;a++){var s=e[a][1];if(!(n&&r.indexOf(n,s)>=0||i&&r.indexOf(i,s)<0)){var c=t.getShallow(s);null!=c&&(o[e[a][0]]=c)}}return o}}e.exports=i},2848:function(e,t,n){},2877:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var c,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(c=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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=c):i&&(c=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(e,t){return c.call(t),l(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},2909:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("6b75");function i(e){if(Array.isArray(e))return Object(r["a"])(e)}n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),n("a630");function o(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}var a=n("06c5");n("d9e2");function s(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(e){return i(e)||o(e)||Object(a["a"])(e)||s()}},"292e":function(e,t,n){var r=n("3842"),i=r.parsePercent,o=r.linearMap,a=n("f934"),s=n("bb70"),c=n("6d8b"),u=2*Math.PI,l=Math.PI/180;function d(e,t){return a.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function h(e,t,n,r){t.eachSeriesByType(e,(function(e){var t=e.getData(),r=t.mapDimension("value"),a=d(e,n),h=e.get("center"),f=e.get("radius");c.isArray(f)||(f=[0,f]),c.isArray(h)||(h=[h,h]);var p=i(a.width,n.getWidth()),g=i(a.height,n.getHeight()),m=Math.min(p,g),v=i(h[0],p)+a.x,y=i(h[1],g)+a.y,_=i(f[0],m/2),b=i(f[1],m/2),S=-e.get("startAngle")*l,x=e.get("minAngle")*l,w=0;t.each(r,(function(e){!isNaN(e)&&w++}));var I=t.getSum(r),C=Math.PI/(I||w)*2,M=e.get("clockwise"),T=e.get("roseType"),k=e.get("stillShowZeroSum"),E=t.getDataExtent(r);E[0]=0;var A=u,D=0,O=S,R=M?1:-1;if(t.each(r,(function(e,n){var r;if(isNaN(e))t.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:M,cx:v,cy:y,r0:_,r:T?NaN:b,viewRect:a});else{r="area"!==T?0===I&&k?C:e*C:u/w,r<x?(r=x,A-=x):D+=e;var i=O+R*r;t.setItemLayout(n,{angle:r,startAngle:O,endAngle:i,clockwise:M,cx:v,cy:y,r0:_,r:T?o(e,E,[_,b]):b,viewRect:a}),O=i}})),A<u&&w)if(A<=.001){var L=u/w;t.each(r,(function(e,n){if(!isNaN(e)){var r=t.getItemLayout(n);r.angle=L,r.startAngle=S+R*n*L,r.endAngle=S+R*(n+1)*L}}))}else C=A/D,O=S,t.each(r,(function(e,n){if(!isNaN(e)){var r=t.getItemLayout(n),i=r.angle===x?x:e*C;r.startAngle=O,r.endAngle=O+R*i,O+=R*i}}));s(e,b,a.width,a.height,a.x,a.y)}))}e.exports=h},2943:function(e,t){function n(e){var t={};e.eachSeriesByType("graph",(function(e){var n=e.getCategoriesData(),r=e.getData(),i={};n.each((function(r){var o=n.getName(r);i["ec-"+o]=r;var a=n.getItemModel(r),s=a.get("itemStyle.color")||e.getColorFromPalette(o,t);n.setItemVisual(r,"color",s);for(var c=["opacity","symbol","symbolSize","symbolKeepAspect"],u=0;u<c.length;u++){var l=a.getShallow(c[u],!0);null!=l&&n.setItemVisual(r,c[u],l)}})),n.count()&&r.each((function(e){var t=r.getItemModel(e),o=t.getShallow("category");if(null!=o){"string"===typeof o&&(o=i["ec-"+o]);for(var a=["color","opacity","symbol","symbolSize","symbolKeepAspect"],s=0;s<a.length;s++)null==r.getItemVisual(e,a[s],!0)&&r.setItemVisual(e,a[s],n.getItemVisual(o,a[s]))}}))}))}e.exports=n},2954:function(e,t,n){"use strict";var r=n("ebb5"),i=n("b6b7"),o=n("d039"),a=n("f36a"),s=r.aTypedArray,c=r.exportTypedArrayMethod,u=o((function(){new Int8Array(1).slice()}));c("slice",(function(e,t){var n=a(s(this),e,t),r=i(this),o=0,c=n.length,u=new r(c);while(c>o)u[o]=n[o++];return u}),u)},"299c":function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=140)}({140:function(e,t,n){"use strict";n.r(t);var r=n(5),i=n.n(r),o=n(18),a=n.n(o),s=n(2),c=n(3),u=n(7),l=n.n(u),d={name:"ElTooltip",mixins:[i.a],props:{openDelay:{type:Number,default:0},disabled:Boolean,manual:Boolean,effect:{type:String,default:"dark"},arrowOffset:{type:Number,default:0},popperClass:String,content:String,visibleArrow:{default:!0},transition:{type:String,default:"el-fade-in-linear"},popperOptions:{default:function(){return{boundariesPadding:10,gpuAcceleration:!1}}},enterable:{type:Boolean,default:!0},hideAfter:{type:Number,default:0},tabindex:{type:Number,default:0}},data:function(){return{tooltipId:"el-tooltip-"+Object(c["generateId"])(),timeoutPending:null,focusing:!1}},beforeCreate:function(){var e=this;this.$isServer||(this.popperVM=new l.a({data:{node:""},render:function(e){return this.node}}).$mount(),this.debounceClose=a()(200,(function(){return e.handleClosePopper()})))},render:function(e){var t=this;this.popperVM&&(this.popperVM.node=e("transition",{attrs:{name:this.transition},on:{afterLeave:this.doDestroy}},[e("div",{on:{mouseleave:function(){t.setExpectedState(!1),t.debounceClose()},mouseenter:function(){t.setExpectedState(!0)}},ref:"popper",attrs:{role:"tooltip",id:this.tooltipId,"aria-hidden":this.disabled||!this.showPopper?"true":"false"},directives:[{name:"show",value:!this.disabled&&this.showPopper}],class:["el-tooltip__popper","is-"+this.effect,this.popperClass]},[this.$slots.content||this.content])]));var n=this.getFirstElement();if(!n)return null;var r=n.data=n.data||{};return r.staticClass=this.addTooltipClass(r.staticClass),n},mounted:function(){var e=this;this.referenceElm=this.$el,1===this.$el.nodeType&&(this.$el.setAttribute("aria-describedby",this.tooltipId),this.$el.setAttribute("tabindex",this.tabindex),Object(s["on"])(this.referenceElm,"mouseenter",this.show),Object(s["on"])(this.referenceElm,"mouseleave",this.hide),Object(s["on"])(this.referenceElm,"focus",(function(){if(e.$slots.default&&e.$slots.default.length){var t=e.$slots.default[0].componentInstance;t&&t.focus?t.focus():e.handleFocus()}else e.handleFocus()})),Object(s["on"])(this.referenceElm,"blur",this.handleBlur),Object(s["on"])(this.referenceElm,"click",this.removeFocusing)),this.value&&this.popperVM&&this.popperVM.$nextTick((function(){e.value&&e.updatePopper()}))},watch:{focusing:function(e){e?Object(s["addClass"])(this.referenceElm,"focusing"):Object(s["removeClass"])(this.referenceElm,"focusing")}},methods:{show:function(){this.setExpectedState(!0),this.handleShowPopper()},hide:function(){this.setExpectedState(!1),this.debounceClose()},handleFocus:function(){this.focusing=!0,this.show()},handleBlur:function(){this.focusing=!1,this.hide()},removeFocusing:function(){this.focusing=!1},addTooltipClass:function(e){return e?"el-tooltip "+e.replace("el-tooltip",""):"el-tooltip"},handleShowPopper:function(){var e=this;this.expectedState&&!this.manual&&(clearTimeout(this.timeout),this.timeout=setTimeout((function(){e.showPopper=!0}),this.openDelay),this.hideAfter>0&&(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;n<e.length;n++)e[n]&&e[n].tag&&(t=e[n]);return t}},beforeDestroy:function(){this.popperVM&&this.popperVM.$destroy()},destroyed:function(){var e=this.referenceElm;1===e.nodeType&&(Object(s["off"])(e,"mouseenter",this.show),Object(s["off"])(e,"mouseleave",this.hide),Object(s["off"])(e,"focus",this.handleFocus),Object(s["off"])(e,"blur",this.handleBlur),Object(s["off"])(e,"click",this.removeFocusing))},install:function(e){e.component(d.name,d)}};t["default"]=d},18:function(e,t){e.exports=n("0e15")},2:function(e,t){e.exports=n("5924")},3:function(e,t){e.exports=n("8122")},5:function(e,t){e.exports=n("e974")},7:function(e,t){e.exports=n("2b0e")}})},"29a8":function(e,t){var n={legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};e.exports=n},"29a9":function(e,t,n){var r=n("3eba"),i=n("b336");n("bc5f"),n("ab05"),n("06ea"),n("004f"),n("d6ef"),r.registerPreprocessor(i)},"2a5e":function(e,t,n){"use strict";t.__esModule=!0,t.default=a;var r=n("2b0e"),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!i.default.prototype.$isServer)if(t){var n=[],r=t.offsetParent;while(r&&e!==r&&e.contains(r))n.push(r),r=r.offsetParent;var o=t.offsetTop+n.reduce((function(e,t){return e+t.offsetTop}),0),a=o+t.offsetHeight,s=e.scrollTop,c=s+e.clientHeight;o<s?e.scrollTop=o:a>c&&(e.scrollTop=a-e.clientHeight)}else e.scrollTop=0}},"2a62":function(e,t,n){var r=n("c65b"),i=n("825a"),o=n("dc4a");e.exports=function(e,t,n){var a,s;i(e);try{if(a=o(e,"return"),!a){if("throw"===t)throw n;return n}a=r(a,e)}catch(c){s=!0,a=c}if("throw"===t)throw n;if(s)throw a;return i(a),n}},"2b0e":function(e,t,n){"use strict";n.r(t),function(e){
/*!
 * Vue.js v2.6.14
 * (c) 2014-2021 Evan You
 * Released under the MIT License.
 */
var n=Object.freeze({});function r(e){return void 0===e||null===e}function i(e){return void 0!==e&&null!==e}function o(e){return!0===e}function a(e){return!1===e}function s(e){return"string"===typeof e||"number"===typeof e||"symbol"===typeof e||"boolean"===typeof e}function c(e){return null!==e&&"object"===typeof e}var u=Object.prototype.toString;function l(e){return"[object Object]"===u.call(e)}function d(e){return"[object RegExp]"===u.call(e)}function h(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function f(e){return i(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function p(e){return null==e?"":Array.isArray(e)||l(e)&&e.toString===u?JSON.stringify(e,null,2):String(e)}function g(e){var t=parseFloat(e);return isNaN(t)?e:t}function m(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}m("slot,component",!0);var v=m("key,ref,slot,slot-scope,is");function y(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}var _=Object.prototype.hasOwnProperty;function b(e,t){return _.call(e,t)}function S(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}var x=/-(\w)/g,w=S((function(e){return e.replace(x,(function(e,t){return t?t.toUpperCase():""}))})),I=S((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),C=/\B([A-Z])/g,M=S((function(e){return e.replace(C,"-$1").toLowerCase()}));function T(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function k(e,t){return e.bind(t)}var E=Function.prototype.bind?k:T;function A(e,t){t=t||0;var n=e.length-t,r=new Array(n);while(n--)r[n]=e[n+t];return r}function D(e,t){for(var n in t)e[n]=t[n];return e}function O(e){for(var t={},n=0;n<e.length;n++)e[n]&&D(t,e[n]);return t}function R(e,t,n){}var L=function(e,t,n){return!1},P=function(e){return e};function N(e,t){if(e===t)return!0;var n=c(e),r=c(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{var i=Array.isArray(e),o=Array.isArray(t);if(i&&o)return e.length===t.length&&e.every((function(e,n){return N(e,t[n])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(i||o)return!1;var a=Object.keys(e),s=Object.keys(t);return a.length===s.length&&a.every((function(n){return N(e[n],t[n])}))}catch(u){return!1}}function U(e,t){for(var n=0;n<e.length;n++)if(N(e[n],t))return n;return-1}function F(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var G="data-server-rendered",V=["component","directive","filter"],j=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],B={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:L,isReservedAttr:L,isUnknownElement:L,getTagNamespace:R,parsePlatformTagName:P,mustUseProp:L,async:!0,_lifecycleHooks:j},z=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function H(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function W(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var q=new RegExp("[^"+z.source+".$_\\d]");function $(e){if(!q.test(e)){var t=e.split(".");return function(e){for(var n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}}var K,Y="__proto__"in{},J="undefined"!==typeof window,X="undefined"!==typeof WXEnvironment&&!!WXEnvironment.platform,Z=X&&WXEnvironment.platform.toLowerCase(),Q=J&&window.navigator.userAgent.toLowerCase(),ee=Q&&/msie|trident/.test(Q),te=Q&&Q.indexOf("msie 9.0")>0,ne=Q&&Q.indexOf("edge/")>0,re=(Q&&Q.indexOf("android"),Q&&/iphone|ipad|ipod|ios/.test(Q)||"ios"===Z),ie=(Q&&/chrome\/\d+/.test(Q),Q&&/phantomjs/.test(Q),Q&&Q.match(/firefox\/(\d+)/)),oe={}.watch,ae=!1;if(J)try{var se={};Object.defineProperty(se,"passive",{get:function(){ae=!0}}),window.addEventListener("test-passive",null,se)}catch(Ia){}var ce=function(){return void 0===K&&(K=!J&&!X&&"undefined"!==typeof e&&(e["process"]&&"server"===e["process"].env.VUE_ENV)),K},ue=J&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function le(e){return"function"===typeof e&&/native code/.test(e.toString())}var de,he="undefined"!==typeof Symbol&&le(Symbol)&&"undefined"!==typeof Reflect&&le(Reflect.ownKeys);de="undefined"!==typeof Set&&le(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var fe=R,pe=0,ge=function(){this.id=pe++,this.subs=[]};ge.prototype.addSub=function(e){this.subs.push(e)},ge.prototype.removeSub=function(e){y(this.subs,e)},ge.prototype.depend=function(){ge.target&&ge.target.addDep(this)},ge.prototype.notify=function(){var e=this.subs.slice();for(var t=0,n=e.length;t<n;t++)e[t].update()},ge.target=null;var me=[];function ve(e){me.push(e),ge.target=e}function ye(){me.pop(),ge.target=me[me.length-1]}var _e=function(e,t,n,r,i,o,a,s){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},be={child:{configurable:!0}};be.child.get=function(){return this.componentInstance},Object.defineProperties(_e.prototype,be);var Se=function(e){void 0===e&&(e="");var t=new _e;return t.text=e,t.isComment=!0,t};function xe(e){return new _e(void 0,void 0,void 0,String(e))}function we(e){var t=new _e(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var Ie=Array.prototype,Ce=Object.create(Ie),Me=["push","pop","shift","unshift","splice","sort","reverse"];Me.forEach((function(e){var t=Ie[e];W(Ce,e,(function(){var n=[],r=arguments.length;while(r--)n[r]=arguments[r];var i,o=t.apply(this,n),a=this.__ob__;switch(e){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2);break}return i&&a.observeArray(i),a.dep.notify(),o}))}));var Te=Object.getOwnPropertyNames(Ce),ke=!0;function Ee(e){ke=e}var Ae=function(e){this.value=e,this.dep=new ge,this.vmCount=0,W(e,"__ob__",this),Array.isArray(e)?(Y?De(e,Ce):Oe(e,Ce,Te),this.observeArray(e)):this.walk(e)};function De(e,t){e.__proto__=t}function Oe(e,t,n){for(var r=0,i=n.length;r<i;r++){var o=n[r];W(e,o,t[o])}}function Re(e,t){var n;if(c(e)&&!(e instanceof _e))return b(e,"__ob__")&&e.__ob__ instanceof Ae?n=e.__ob__:ke&&!ce()&&(Array.isArray(e)||l(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new Ae(e)),t&&n&&n.vmCount++,n}function Le(e,t,n,r,i){var o=new ge,a=Object.getOwnPropertyDescriptor(e,t);if(!a||!1!==a.configurable){var s=a&&a.get,c=a&&a.set;s&&!c||2!==arguments.length||(n=e[t]);var u=!i&&Re(n);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=s?s.call(e):n;return ge.target&&(o.depend(),u&&(u.dep.depend(),Array.isArray(t)&&Ue(t))),t},set:function(t){var r=s?s.call(e):n;t===r||t!==t&&r!==r||s&&!c||(c?c.call(e,t):n=t,u=!i&&Re(t),o.notify())}})}}function Pe(e,t,n){if(Array.isArray(e)&&h(t))return e.length=Math.max(e.length,t),e.splice(t,1,n),n;if(t in e&&!(t in Object.prototype))return e[t]=n,n;var r=e.__ob__;return e._isVue||r&&r.vmCount?n:r?(Le(r.value,t,n),r.dep.notify(),n):(e[t]=n,n)}function Ne(e,t){if(Array.isArray(e)&&h(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||b(e,t)&&(delete e[t],n&&n.dep.notify())}}function Ue(e){for(var t=void 0,n=0,r=e.length;n<r;n++)t=e[n],t&&t.__ob__&&t.__ob__.dep.depend(),Array.isArray(t)&&Ue(t)}Ae.prototype.walk=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)Le(e,t[n])},Ae.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)Re(e[t])};var Fe=B.optionMergeStrategies;function Ge(e,t){if(!t)return e;for(var n,r,i,o=he?Reflect.ownKeys(t):Object.keys(t),a=0;a<o.length;a++)n=o[a],"__ob__"!==n&&(r=e[n],i=t[n],b(e,n)?r!==i&&l(r)&&l(i)&&Ge(r,i):Pe(e,n,i));return e}function Ve(e,t,n){return n?function(){var r="function"===typeof t?t.call(n,n):t,i="function"===typeof e?e.call(n,n):e;return r?Ge(r,i):i}:t?e?function(){return Ge("function"===typeof t?t.call(this,this):t,"function"===typeof e?e.call(this,this):e)}:t:e}function je(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?Be(n):n}function Be(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}function ze(e,t,n,r){var i=Object.create(e||null);return t?D(i,t):i}Fe.data=function(e,t,n){return n?Ve(e,t,n):t&&"function"!==typeof t?e:Ve(e,t)},j.forEach((function(e){Fe[e]=je})),V.forEach((function(e){Fe[e+"s"]=ze})),Fe.watch=function(e,t,n,r){if(e===oe&&(e=void 0),t===oe&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var i={};for(var o in D(i,e),t){var a=i[o],s=t[o];a&&!Array.isArray(a)&&(a=[a]),i[o]=a?a.concat(s):Array.isArray(s)?s:[s]}return i},Fe.props=Fe.methods=Fe.inject=Fe.computed=function(e,t,n,r){if(!e)return t;var i=Object.create(null);return D(i,e),t&&D(i,t),i},Fe.provide=Ve;var He=function(e,t){return void 0===t?e:t};function We(e,t){var n=e.props;if(n){var r,i,o,a={};if(Array.isArray(n)){r=n.length;while(r--)i=n[r],"string"===typeof i&&(o=w(i),a[o]={type:null})}else if(l(n))for(var s in n)i=n[s],o=w(s),a[o]=l(i)?i:{type:i};else 0;e.props=a}}function qe(e,t){var n=e.inject;if(n){var r=e.inject={};if(Array.isArray(n))for(var i=0;i<n.length;i++)r[n[i]]={from:n[i]};else if(l(n))for(var o in n){var a=n[o];r[o]=l(a)?D({from:o},a):{from:a}}else 0}}function $e(e){var t=e.directives;if(t)for(var n in t){var r=t[n];"function"===typeof r&&(t[n]={bind:r,update:r})}}function Ke(e,t,n){if("function"===typeof t&&(t=t.options),We(t,n),qe(t,n),$e(t),!t._base&&(t.extends&&(e=Ke(e,t.extends,n)),t.mixins))for(var r=0,i=t.mixins.length;r<i;r++)e=Ke(e,t.mixins[r],n);var o,a={};for(o in e)s(o);for(o in t)b(e,o)||s(o);function s(r){var i=Fe[r]||He;a[r]=i(e[r],t[r],n,r)}return a}function Ye(e,t,n,r){if("string"===typeof n){var i=e[t];if(b(i,n))return i[n];var o=w(n);if(b(i,o))return i[o];var a=I(o);if(b(i,a))return i[a];var s=i[n]||i[o]||i[a];return s}}function Je(e,t,n,r){var i=t[e],o=!b(n,e),a=n[e],s=tt(Boolean,i.type);if(s>-1)if(o&&!b(i,"default"))a=!1;else if(""===a||a===M(e)){var c=tt(String,i.type);(c<0||s<c)&&(a=!0)}if(void 0===a){a=Xe(r,i,e);var u=ke;Ee(!0),Re(a),Ee(u)}return a}function Xe(e,t,n){if(b(t,"default")){var r=t.default;return e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n]?e._props[n]:"function"===typeof r&&"Function"!==Qe(t.type)?r.call(e):r}}var Ze=/^\s*function (\w+)/;function Qe(e){var t=e&&e.toString().match(Ze);return t?t[1]:""}function et(e,t){return Qe(e)===Qe(t)}function tt(e,t){if(!Array.isArray(t))return et(t,e)?0:-1;for(var n=0,r=t.length;n<r;n++)if(et(t[n],e))return n;return-1}function nt(e,t,n){ve();try{if(t){var r=t;while(r=r.$parent){var i=r.$options.errorCaptured;if(i)for(var o=0;o<i.length;o++)try{var a=!1===i[o].call(r,e,t,n);if(a)return}catch(Ia){it(Ia,r,"errorCaptured hook")}}}it(e,t,n)}finally{ye()}}function rt(e,t,n,r,i){var o;try{o=n?e.apply(t,n):e.call(t),o&&!o._isVue&&f(o)&&!o._handled&&(o.catch((function(e){return nt(e,r,i+" (Promise/async)")})),o._handled=!0)}catch(Ia){nt(Ia,r,i)}return o}function it(e,t,n){if(B.errorHandler)try{return B.errorHandler.call(null,e,t,n)}catch(Ia){Ia!==e&&ot(Ia,null,"config.errorHandler")}ot(e,t,n)}function ot(e,t,n){if(!J&&!X||"undefined"===typeof console)throw e;console.error(e)}var at,st=!1,ct=[],ut=!1;function lt(){ut=!1;var e=ct.slice(0);ct.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!==typeof Promise&&le(Promise)){var dt=Promise.resolve();at=function(){dt.then(lt),re&&setTimeout(R)},st=!0}else if(ee||"undefined"===typeof MutationObserver||!le(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())at="undefined"!==typeof setImmediate&&le(setImmediate)?function(){setImmediate(lt)}:function(){setTimeout(lt,0)};else{var ht=1,ft=new MutationObserver(lt),pt=document.createTextNode(String(ht));ft.observe(pt,{characterData:!0}),at=function(){ht=(ht+1)%2,pt.data=String(ht)},st=!0}function gt(e,t){var n;if(ct.push((function(){if(e)try{e.call(t)}catch(Ia){nt(Ia,t,"nextTick")}else n&&n(t)})),ut||(ut=!0,at()),!e&&"undefined"!==typeof Promise)return new Promise((function(e){n=e}))}var mt=new de;function vt(e){yt(e,mt),mt.clear()}function yt(e,t){var n,r,i=Array.isArray(e);if(!(!i&&!c(e)||Object.isFrozen(e)||e instanceof _e)){if(e.__ob__){var o=e.__ob__.dep.id;if(t.has(o))return;t.add(o)}if(i){n=e.length;while(n--)yt(e[n],t)}else{r=Object.keys(e),n=r.length;while(n--)yt(e[r[n]],t)}}}var _t=S((function(e){var t="&"===e.charAt(0);e=t?e.slice(1):e;var n="~"===e.charAt(0);e=n?e.slice(1):e;var r="!"===e.charAt(0);return e=r?e.slice(1):e,{name:e,once:n,capture:r,passive:t}}));function bt(e,t){function n(){var e=arguments,r=n.fns;if(!Array.isArray(r))return rt(r,null,arguments,t,"v-on handler");for(var i=r.slice(),o=0;o<i.length;o++)rt(i[o],null,e,t,"v-on handler")}return n.fns=e,n}function St(e,t,n,i,a,s){var c,u,l,d;for(c in e)u=e[c],l=t[c],d=_t(c),r(u)||(r(l)?(r(u.fns)&&(u=e[c]=bt(u,s)),o(d.once)&&(u=e[c]=a(d.name,u,d.capture)),n(d.name,u,d.capture,d.passive,d.params)):u!==l&&(l.fns=u,e[c]=l));for(c in t)r(e[c])&&(d=_t(c),i(d.name,t[c],d.capture))}function xt(e,t,n){var a;e instanceof _e&&(e=e.data.hook||(e.data.hook={}));var s=e[t];function c(){n.apply(this,arguments),y(a.fns,c)}r(s)?a=bt([c]):i(s.fns)&&o(s.merged)?(a=s,a.fns.push(c)):a=bt([s,c]),a.merged=!0,e[t]=a}function wt(e,t,n){var o=t.options.props;if(!r(o)){var a={},s=e.attrs,c=e.props;if(i(s)||i(c))for(var u in o){var l=M(u);It(a,c,u,l,!0)||It(a,s,u,l,!1)}return a}}function It(e,t,n,r,o){if(i(t)){if(b(t,n))return e[n]=t[n],o||delete t[n],!0;if(b(t,r))return e[n]=t[r],o||delete t[r],!0}return!1}function Ct(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}function Mt(e){return s(e)?[xe(e)]:Array.isArray(e)?kt(e):void 0}function Tt(e){return i(e)&&i(e.text)&&a(e.isComment)}function kt(e,t){var n,a,c,u,l=[];for(n=0;n<e.length;n++)a=e[n],r(a)||"boolean"===typeof a||(c=l.length-1,u=l[c],Array.isArray(a)?a.length>0&&(a=kt(a,(t||"")+"_"+n),Tt(a[0])&&Tt(u)&&(l[c]=xe(u.text+a[0].text),a.shift()),l.push.apply(l,a)):s(a)?Tt(u)?l[c]=xe(u.text+a):""!==a&&l.push(xe(a)):Tt(a)&&Tt(u)?l[c]=xe(u.text+a.text):(o(e._isVList)&&i(a.tag)&&r(a.key)&&i(t)&&(a.key="__vlist"+t+"_"+n+"__"),l.push(a)));return l}function Et(e){var t=e.$options.provide;t&&(e._provided="function"===typeof t?t.call(e):t)}function At(e){var t=Dt(e.$options.inject,e);t&&(Ee(!1),Object.keys(t).forEach((function(n){Le(e,n,t[n])})),Ee(!0))}function Dt(e,t){if(e){for(var n=Object.create(null),r=he?Reflect.ownKeys(e):Object.keys(e),i=0;i<r.length;i++){var o=r[i];if("__ob__"!==o){var a=e[o].from,s=t;while(s){if(s._provided&&b(s._provided,a)){n[o]=s._provided[a];break}s=s.$parent}if(!s)if("default"in e[o]){var c=e[o].default;n[o]="function"===typeof c?c.call(t):c}else 0}}return n}}function Ot(e,t){if(!e||!e.length)return{};for(var n={},r=0,i=e.length;r<i;r++){var o=e[r],a=o.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,o.context!==t&&o.fnContext!==t||!a||null==a.slot)(n.default||(n.default=[])).push(o);else{var s=a.slot,c=n[s]||(n[s]=[]);"template"===o.tag?c.push.apply(c,o.children||[]):c.push(o)}}for(var u in n)n[u].every(Rt)&&delete n[u];return n}function Rt(e){return e.isComment&&!e.asyncFactory||" "===e.text}function Lt(e){return e.isComment&&e.asyncFactory}function Pt(e,t,r){var i,o=Object.keys(t).length>0,a=e?!!e.$stable:!o,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(a&&r&&r!==n&&s===r.$key&&!o&&!r.$hasNormal)return r;for(var c in i={},e)e[c]&&"$"!==c[0]&&(i[c]=Nt(t,c,e[c]))}else i={};for(var u in t)u in i||(i[u]=Ut(t,u));return e&&Object.isExtensible(e)&&(e._normalized=i),W(i,"$stable",a),W(i,"$key",s),W(i,"$hasNormal",o),i}function Nt(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({});e=e&&"object"===typeof e&&!Array.isArray(e)?[e]:Mt(e);var t=e&&e[0];return e&&(!t||1===e.length&&t.isComment&&!Lt(t))?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function Ut(e,t){return function(){return e[t]}}function Ft(e,t){var n,r,o,a,s;if(Array.isArray(e)||"string"===typeof e)for(n=new Array(e.length),r=0,o=e.length;r<o;r++)n[r]=t(e[r],r);else if("number"===typeof e)for(n=new Array(e),r=0;r<e;r++)n[r]=t(r+1,r);else if(c(e))if(he&&e[Symbol.iterator]){n=[];var u=e[Symbol.iterator](),l=u.next();while(!l.done)n.push(t(l.value,n.length)),l=u.next()}else for(a=Object.keys(e),n=new Array(a.length),r=0,o=a.length;r<o;r++)s=a[r],n[r]=t(e[s],s,r);return i(n)||(n=[]),n._isVList=!0,n}function Gt(e,t,n,r){var i,o=this.$scopedSlots[e];o?(n=n||{},r&&(n=D(D({},r),n)),i=o(n)||("function"===typeof t?t():t)):i=this.$slots[e]||("function"===typeof t?t():t);var a=n&&n.slot;return a?this.$createElement("template",{slot:a},i):i}function Vt(e){return Ye(this.$options,"filters",e,!0)||P}function jt(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function Bt(e,t,n,r,i){var o=B.keyCodes[t]||n;return i&&r&&!B.keyCodes[t]?jt(i,r):o?jt(o,e):r?M(r)!==t:void 0===e}function zt(e,t,n,r,i){if(n)if(c(n)){var o;Array.isArray(n)&&(n=O(n));var a=function(a){if("class"===a||"style"===a||v(a))o=e;else{var s=e.attrs&&e.attrs.type;o=r||B.mustUseProp(t,s,a)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var c=w(a),u=M(a);if(!(c in o)&&!(u in o)&&(o[a]=n[a],i)){var l=e.on||(e.on={});l["update:"+a]=function(e){n[a]=e}}};for(var s in n)a(s)}else;return e}function Ht(e,t){var n=this._staticTrees||(this._staticTrees=[]),r=n[e];return r&&!t||(r=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this),qt(r,"__static__"+e,!1)),r}function Wt(e,t,n){return qt(e,"__once__"+t+(n?"_"+n:""),!0),e}function qt(e,t,n){if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]&&"string"!==typeof e[r]&&$t(e[r],t+"_"+r,n);else $t(e,t,n)}function $t(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function Kt(e,t){if(t)if(l(t)){var n=e.on=e.on?D({},e.on):{};for(var r in t){var i=n[r],o=t[r];n[r]=i?[].concat(i,o):o}}else;return e}function Yt(e,t,n,r){t=t||{$stable:!n};for(var i=0;i<e.length;i++){var o=e[i];Array.isArray(o)?Yt(o,t,n):o&&(o.proxy&&(o.fn.proxy=!0),t[o.key]=o.fn)}return r&&(t.$key=r),t}function Jt(e,t){for(var n=0;n<t.length;n+=2){var r=t[n];"string"===typeof r&&r&&(e[t[n]]=t[n+1])}return e}function Xt(e,t){return"string"===typeof e?t+e:e}function Zt(e){e._o=Wt,e._n=g,e._s=p,e._l=Ft,e._t=Gt,e._q=N,e._i=U,e._m=Ht,e._f=Vt,e._k=Bt,e._b=zt,e._v=xe,e._e=Se,e._u=Yt,e._g=Kt,e._d=Jt,e._p=Xt}function Qt(e,t,r,i,a){var s,c=this,u=a.options;b(i,"_uid")?(s=Object.create(i),s._original=i):(s=i,i=i._original);var l=o(u._compiled),d=!l;this.data=e,this.props=t,this.children=r,this.parent=i,this.listeners=e.on||n,this.injections=Dt(u.inject,i),this.slots=function(){return c.$slots||Pt(e.scopedSlots,c.$slots=Ot(r,i)),c.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return Pt(e.scopedSlots,this.slots())}}),l&&(this.$options=u,this.$slots=this.slots(),this.$scopedSlots=Pt(e.scopedSlots,this.$slots)),u._scopeId?this._c=function(e,t,n,r){var o=fn(s,e,t,n,r,d);return o&&!Array.isArray(o)&&(o.fnScopeId=u._scopeId,o.fnContext=i),o}:this._c=function(e,t,n,r){return fn(s,e,t,n,r,d)}}function en(e,t,r,o,a){var s=e.options,c={},u=s.props;if(i(u))for(var l in u)c[l]=Je(l,u,t||n);else i(r.attrs)&&nn(c,r.attrs),i(r.props)&&nn(c,r.props);var d=new Qt(r,c,a,o,e),h=s.render.call(null,d._c,d);if(h instanceof _e)return tn(h,r,d.parent,s,d);if(Array.isArray(h)){for(var f=Mt(h)||[],p=new Array(f.length),g=0;g<f.length;g++)p[g]=tn(f[g],r,d.parent,s,d);return p}}function tn(e,t,n,r,i){var o=we(e);return o.fnContext=n,o.fnOptions=r,t.slot&&((o.data||(o.data={})).slot=t.slot),o}function nn(e,t){for(var n in t)e[w(n)]=t[n]}Zt(Qt.prototype);var rn={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var n=e;rn.prepatch(n,n)}else{var r=e.componentInstance=sn(e,Dn);r.$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var n=t.componentOptions,r=t.componentInstance=e.componentInstance;Nn(r,n.propsData,n.listeners,t,n.children)},insert:function(e){var t=e.context,n=e.componentInstance;n._isMounted||(n._isMounted=!0,Vn(n,"mounted")),e.data.keepAlive&&(t._isMounted?Qn(n):Fn(n,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?Gn(t,!0):t.$destroy())}},on=Object.keys(rn);function an(e,t,n,a,s){if(!r(e)){var u=n.$options._base;if(c(e)&&(e=u.extend(e)),"function"===typeof e){var l;if(r(e.cid)&&(l=e,e=wn(l,u),void 0===e))return xn(l,t,n,a,s);t=t||{},xr(e),i(t.model)&&ln(e.options,t);var d=wt(t,e,s);if(o(e.options.functional))return en(e,d,t,n,a);var h=t.on;if(t.on=t.nativeOn,o(e.options.abstract)){var f=t.slot;t={},f&&(t.slot=f)}cn(t);var p=e.options.name||s,g=new _e("vue-component-"+e.cid+(p?"-"+p:""),t,void 0,void 0,void 0,n,{Ctor:e,propsData:d,listeners:h,tag:s,children:a},l);return g}}}function sn(e,t){var n={_isComponent:!0,_parentVnode:e,parent:t},r=e.data.inlineTemplate;return i(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns),new e.componentOptions.Ctor(n)}function cn(e){for(var t=e.hook||(e.hook={}),n=0;n<on.length;n++){var r=on[n],i=t[r],o=rn[r];i===o||i&&i._merged||(t[r]=i?un(o,i):o)}}function un(e,t){var n=function(n,r){e(n,r),t(n,r)};return n._merged=!0,n}function ln(e,t){var n=e.model&&e.model.prop||"value",r=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;var o=t.on||(t.on={}),a=o[r],s=t.model.callback;i(a)?(Array.isArray(a)?-1===a.indexOf(s):a!==s)&&(o[r]=[s].concat(a)):o[r]=s}var dn=1,hn=2;function fn(e,t,n,r,i,a){return(Array.isArray(n)||s(n))&&(i=r,r=n,n=void 0),o(a)&&(i=hn),pn(e,t,n,r,i)}function pn(e,t,n,r,o){if(i(n)&&i(n.__ob__))return Se();if(i(n)&&i(n.is)&&(t=n.is),!t)return Se();var a,s,c;(Array.isArray(r)&&"function"===typeof r[0]&&(n=n||{},n.scopedSlots={default:r[0]},r.length=0),o===hn?r=Mt(r):o===dn&&(r=Ct(r)),"string"===typeof t)?(s=e.$vnode&&e.$vnode.ns||B.getTagNamespace(t),a=B.isReservedTag(t)?new _e(B.parsePlatformTagName(t),n,r,void 0,void 0,e):n&&n.pre||!i(c=Ye(e.$options,"components",t))?new _e(t,n,r,void 0,void 0,e):an(c,n,e,r,t)):a=an(t,n,e,r);return Array.isArray(a)?a:i(a)?(i(s)&&gn(a,s),i(n)&&mn(n),a):Se()}function gn(e,t,n){if(e.ns=t,"foreignObject"===e.tag&&(t=void 0,n=!0),i(e.children))for(var a=0,s=e.children.length;a<s;a++){var c=e.children[a];i(c.tag)&&(r(c.ns)||o(n)&&"svg"!==c.tag)&&gn(c,t,n)}}function mn(e){c(e.style)&&vt(e.style),c(e.class)&&vt(e.class)}function vn(e){e._vnode=null,e._staticTrees=null;var t=e.$options,r=e.$vnode=t._parentVnode,i=r&&r.context;e.$slots=Ot(t._renderChildren,i),e.$scopedSlots=n,e._c=function(t,n,r,i){return fn(e,t,n,r,i,!1)},e.$createElement=function(t,n,r,i){return fn(e,t,n,r,i,!0)};var o=r&&r.data;Le(e,"$attrs",o&&o.attrs||n,null,!0),Le(e,"$listeners",t._parentListeners||n,null,!0)}var yn,_n=null;function bn(e){Zt(e.prototype),e.prototype.$nextTick=function(e){return gt(e,this)},e.prototype._render=function(){var e,t=this,n=t.$options,r=n.render,i=n._parentVnode;i&&(t.$scopedSlots=Pt(i.data.scopedSlots,t.$slots,t.$scopedSlots)),t.$vnode=i;try{_n=t,e=r.call(t._renderProxy,t.$createElement)}catch(Ia){nt(Ia,t,"render"),e=t._vnode}finally{_n=null}return Array.isArray(e)&&1===e.length&&(e=e[0]),e instanceof _e||(e=Se()),e.parent=i,e}}function Sn(e,t){return(e.__esModule||he&&"Module"===e[Symbol.toStringTag])&&(e=e.default),c(e)?t.extend(e):e}function xn(e,t,n,r,i){var o=Se();return o.asyncFactory=e,o.asyncMeta={data:t,context:n,children:r,tag:i},o}function wn(e,t){if(o(e.error)&&i(e.errorComp))return e.errorComp;if(i(e.resolved))return e.resolved;var n=_n;if(n&&i(e.owners)&&-1===e.owners.indexOf(n)&&e.owners.push(n),o(e.loading)&&i(e.loadingComp))return e.loadingComp;if(n&&!i(e.owners)){var a=e.owners=[n],s=!0,u=null,l=null;n.$on("hook:destroyed",(function(){return y(a,n)}));var d=function(e){for(var t=0,n=a.length;t<n;t++)a[t].$forceUpdate();e&&(a.length=0,null!==u&&(clearTimeout(u),u=null),null!==l&&(clearTimeout(l),l=null))},h=F((function(n){e.resolved=Sn(n,t),s?a.length=0:d(!0)})),p=F((function(t){i(e.errorComp)&&(e.error=!0,d(!0))})),g=e(h,p);return c(g)&&(f(g)?r(e.resolved)&&g.then(h,p):f(g.component)&&(g.component.then(h,p),i(g.error)&&(e.errorComp=Sn(g.error,t)),i(g.loading)&&(e.loadingComp=Sn(g.loading,t),0===g.delay?e.loading=!0:u=setTimeout((function(){u=null,r(e.resolved)&&r(e.error)&&(e.loading=!0,d(!1))}),g.delay||200)),i(g.timeout)&&(l=setTimeout((function(){l=null,r(e.resolved)&&p(null)}),g.timeout)))),s=!1,e.loading?e.loadingComp:e.resolved}}function In(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];if(i(n)&&(i(n.componentOptions)||Lt(n)))return n}}function Cn(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&En(e,t)}function Mn(e,t){yn.$on(e,t)}function Tn(e,t){yn.$off(e,t)}function kn(e,t){var n=yn;return function r(){var i=t.apply(null,arguments);null!==i&&n.$off(e,r)}}function En(e,t,n){yn=e,St(t,n||{},Mn,Tn,kn,e),yn=void 0}function An(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(Array.isArray(e))for(var i=0,o=e.length;i<o;i++)r.$on(e[i],n);else(r._events[e]||(r._events[e]=[])).push(n),t.test(e)&&(r._hasHookEvent=!0);return r},e.prototype.$once=function(e,t){var n=this;function r(){n.$off(e,r),t.apply(n,arguments)}return r.fn=t,n.$on(e,r),n},e.prototype.$off=function(e,t){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(e)){for(var r=0,i=e.length;r<i;r++)n.$off(e[r],t);return n}var o,a=n._events[e];if(!a)return n;if(!t)return n._events[e]=null,n;var s=a.length;while(s--)if(o=a[s],o===t||o.fn===t){a.splice(s,1);break}return n},e.prototype.$emit=function(e){var t=this,n=t._events[e];if(n){n=n.length>1?A(n):n;for(var r=A(arguments,1),i='event handler for "'+e+'"',o=0,a=n.length;o<a;o++)rt(n[o],t,r,t,i)}return t}}var Dn=null;function On(e){var t=Dn;return Dn=e,function(){Dn=t}}function Rn(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){while(n.$options.abstract&&n.$parent)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}function Ln(e){e.prototype._update=function(e,t){var n=this,r=n.$el,i=n._vnode,o=On(n);n._vnode=e,n.$el=i?n.__patch__(i,e):n.__patch__(n.$el,e,t,!1),o(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},e.prototype.$forceUpdate=function(){var e=this;e._watcher&&e._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){Vn(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||y(t.$children,e),e._watcher&&e._watcher.teardown();var n=e._watchers.length;while(n--)e._watchers[n].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),Vn(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}function Pn(e,t,n){var r;return e.$el=t,e.$options.render||(e.$options.render=Se),Vn(e,"beforeMount"),r=function(){e._update(e._render(),n)},new rr(e,r,R,{before:function(){e._isMounted&&!e._isDestroyed&&Vn(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,Vn(e,"mounted")),e}function Nn(e,t,r,i,o){var a=i.data.scopedSlots,s=e.$scopedSlots,c=!!(a&&!a.$stable||s!==n&&!s.$stable||a&&e.$scopedSlots.$key!==a.$key||!a&&e.$scopedSlots.$key),u=!!(o||e.$options._renderChildren||c);if(e.$options._parentVnode=i,e.$vnode=i,e._vnode&&(e._vnode.parent=i),e.$options._renderChildren=o,e.$attrs=i.data.attrs||n,e.$listeners=r||n,t&&e.$options.props){Ee(!1);for(var l=e._props,d=e.$options._propKeys||[],h=0;h<d.length;h++){var f=d[h],p=e.$options.props;l[f]=Je(f,p,t,e)}Ee(!0),e.$options.propsData=t}r=r||n;var g=e.$options._parentListeners;e.$options._parentListeners=r,En(e,r,g),u&&(e.$slots=Ot(o,i.context),e.$forceUpdate())}function Un(e){while(e&&(e=e.$parent))if(e._inactive)return!0;return!1}function Fn(e,t){if(t){if(e._directInactive=!1,Un(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var n=0;n<e.$children.length;n++)Fn(e.$children[n]);Vn(e,"activated")}}function Gn(e,t){if((!t||(e._directInactive=!0,!Un(e)))&&!e._inactive){e._inactive=!0;for(var n=0;n<e.$children.length;n++)Gn(e.$children[n]);Vn(e,"deactivated")}}function Vn(e,t){ve();var n=e.$options[t],r=t+" hook";if(n)for(var i=0,o=n.length;i<o;i++)rt(n[i],e,null,e,r);e._hasHookEvent&&e.$emit("hook:"+t),ye()}var jn=[],Bn=[],zn={},Hn=!1,Wn=!1,qn=0;function $n(){qn=jn.length=Bn.length=0,zn={},Hn=Wn=!1}var Kn=0,Yn=Date.now;if(J&&!ee){var Jn=window.performance;Jn&&"function"===typeof Jn.now&&Yn()>document.createEvent("Event").timeStamp&&(Yn=function(){return Jn.now()})}function Xn(){var e,t;for(Kn=Yn(),Wn=!0,jn.sort((function(e,t){return e.id-t.id})),qn=0;qn<jn.length;qn++)e=jn[qn],e.before&&e.before(),t=e.id,zn[t]=null,e.run();var n=Bn.slice(),r=jn.slice();$n(),er(n),Zn(r),ue&&B.devtools&&ue.emit("flush")}function Zn(e){var t=e.length;while(t--){var n=e[t],r=n.vm;r._watcher===n&&r._isMounted&&!r._isDestroyed&&Vn(r,"updated")}}function Qn(e){e._inactive=!1,Bn.push(e)}function er(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,Fn(e[t],!0)}function tr(e){var t=e.id;if(null==zn[t]){if(zn[t]=!0,Wn){var n=jn.length-1;while(n>qn&&jn[n].id>e.id)n--;jn.splice(n+1,0,e)}else jn.push(e);Hn||(Hn=!0,gt(Xn))}}var nr=0,rr=function(e,t,n,r,i){this.vm=e,i&&(e._watcher=this),e._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++nr,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new de,this.newDepIds=new de,this.expression="","function"===typeof t?this.getter=t:(this.getter=$(t),this.getter||(this.getter=R)),this.value=this.lazy?void 0:this.get()};rr.prototype.get=function(){var e;ve(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(Ia){if(!this.user)throw Ia;nt(Ia,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&vt(e),ye(),this.cleanupDeps()}return e},rr.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},rr.prototype.cleanupDeps=function(){var e=this.deps.length;while(e--){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},rr.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():tr(this)},rr.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||c(e)||this.deep){var t=this.value;if(this.value=e,this.user){var n='callback for watcher "'+this.expression+'"';rt(this.cb,this.vm,[e,t],this.vm,n)}else this.cb.call(this.vm,e,t)}}},rr.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},rr.prototype.depend=function(){var e=this.deps.length;while(e--)this.deps[e].depend()},rr.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||y(this.vm._watchers,this);var e=this.deps.length;while(e--)this.deps[e].removeSub(this);this.active=!1}};var ir={enumerable:!0,configurable:!0,get:R,set:R};function or(e,t,n){ir.get=function(){return this[t][n]},ir.set=function(e){this[t][n]=e},Object.defineProperty(e,n,ir)}function ar(e){e._watchers=[];var t=e.$options;t.props&&sr(e,t.props),t.methods&&gr(e,t.methods),t.data?cr(e):Re(e._data={},!0),t.computed&&dr(e,t.computed),t.watch&&t.watch!==oe&&mr(e,t.watch)}function sr(e,t){var n=e.$options.propsData||{},r=e._props={},i=e.$options._propKeys=[],o=!e.$parent;o||Ee(!1);var a=function(o){i.push(o);var a=Je(o,t,n,e);Le(r,o,a),o in e||or(e,"_props",o)};for(var s in t)a(s);Ee(!0)}function cr(e){var t=e.$options.data;t=e._data="function"===typeof t?ur(t,e):t||{},l(t)||(t={});var n=Object.keys(t),r=e.$options.props,i=(e.$options.methods,n.length);while(i--){var o=n[i];0,r&&b(r,o)||H(o)||or(e,"_data",o)}Re(t,!0)}function ur(e,t){ve();try{return e.call(t,t)}catch(Ia){return nt(Ia,t,"data()"),{}}finally{ye()}}var lr={lazy:!0};function dr(e,t){var n=e._computedWatchers=Object.create(null),r=ce();for(var i in t){var o=t[i],a="function"===typeof o?o:o.get;0,r||(n[i]=new rr(e,a||R,R,lr)),i in e||hr(e,i,o)}}function hr(e,t,n){var r=!ce();"function"===typeof n?(ir.get=r?fr(t):pr(n),ir.set=R):(ir.get=n.get?r&&!1!==n.cache?fr(t):pr(n.get):R,ir.set=n.set||R),Object.defineProperty(e,t,ir)}function fr(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),ge.target&&t.depend(),t.value}}function pr(e){return function(){return e.call(this,this)}}function gr(e,t){e.$options.props;for(var n in t)e[n]="function"!==typeof t[n]?R:E(t[n],e)}function mr(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)vr(e,n,r[i]);else vr(e,n,r)}}function vr(e,t,n,r){return l(n)&&(r=n,n=n.handler),"string"===typeof n&&(n=e[n]),e.$watch(t,n,r)}function yr(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=Pe,e.prototype.$delete=Ne,e.prototype.$watch=function(e,t,n){var r=this;if(l(t))return vr(r,e,t,n);n=n||{},n.user=!0;var i=new rr(r,e,t,n);if(n.immediate){var o='callback for immediate watcher "'+i.expression+'"';ve(),rt(t,r,[i.value],r,o),ye()}return function(){i.teardown()}}}var _r=0;function br(e){e.prototype._init=function(e){var t=this;t._uid=_r++,t._isVue=!0,e&&e._isComponent?Sr(t,e):t.$options=Ke(xr(t.constructor),e||{},t),t._renderProxy=t,t._self=t,Rn(t),Cn(t),vn(t),Vn(t,"beforeCreate"),At(t),ar(t),Et(t),Vn(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}function Sr(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}function xr(e){var t=e.options;if(e.super){var n=xr(e.super),r=e.superOptions;if(n!==r){e.superOptions=n;var i=wr(e);i&&D(e.extendOptions,i),t=e.options=Ke(n,e.extendOptions),t.name&&(t.components[t.name]=e)}}return t}function wr(e){var t,n=e.options,r=e.sealedOptions;for(var i in n)n[i]!==r[i]&&(t||(t={}),t[i]=n[i]);return t}function Ir(e){this._init(e)}function Cr(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=A(arguments,1);return n.unshift(this),"function"===typeof e.install?e.install.apply(e,n):"function"===typeof e&&e.apply(null,n),t.push(e),this}}function Mr(e){e.mixin=function(e){return this.options=Ke(this.options,e),this}}function Tr(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,i=e._Ctor||(e._Ctor={});if(i[r])return i[r];var o=e.name||n.options.name;var a=function(e){this._init(e)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=t++,a.options=Ke(n.options,e),a["super"]=n,a.options.props&&kr(a),a.options.computed&&Er(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,V.forEach((function(e){a[e]=n[e]})),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=e,a.sealedOptions=D({},a.options),i[r]=a,a}}function kr(e){var t=e.options.props;for(var n in t)or(e.prototype,"_props",n)}function Er(e){var t=e.options.computed;for(var n in t)hr(e.prototype,n,t[n])}function Ar(e){V.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&l(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"===typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}function Dr(e){return e&&(e.Ctor.options.name||e.tag)}function Or(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"===typeof e?e.split(",").indexOf(t)>-1:!!d(e)&&e.test(t)}function Rr(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var o in n){var a=n[o];if(a){var s=a.name;s&&!t(s)&&Lr(n,o,r,i)}}}function Lr(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,y(n,t)}br(Ir),yr(Ir),An(Ir),Ln(Ir),bn(Ir);var Pr=[String,RegExp,Array],Nr={name:"keep-alive",abstract:!0,props:{include:Pr,exclude:Pr,max:[String,Number]},methods:{cacheVNode:function(){var e=this,t=e.cache,n=e.keys,r=e.vnodeToCache,i=e.keyToCache;if(r){var o=r.tag,a=r.componentInstance,s=r.componentOptions;t[i]={name:Dr(s),tag:o,componentInstance:a},n.push(i),this.max&&n.length>parseInt(this.max)&&Lr(t,n[0],n,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)Lr(this.cache,e,this.keys)},mounted:function(){var e=this;this.cacheVNode(),this.$watch("include",(function(t){Rr(e,(function(e){return Or(t,e)}))})),this.$watch("exclude",(function(t){Rr(e,(function(e){return!Or(t,e)}))}))},updated:function(){this.cacheVNode()},render:function(){var e=this.$slots.default,t=In(e),n=t&&t.componentOptions;if(n){var r=Dr(n),i=this,o=i.include,a=i.exclude;if(o&&(!r||!Or(o,r))||a&&r&&Or(a,r))return t;var s=this,c=s.cache,u=s.keys,l=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;c[l]?(t.componentInstance=c[l].componentInstance,y(u,l),u.push(l)):(this.vnodeToCache=t,this.keyToCache=l),t.data.keepAlive=!0}return t||e&&e[0]}},Ur={KeepAlive:Nr};function Fr(e){var t={get:function(){return B}};Object.defineProperty(e,"config",t),e.util={warn:fe,extend:D,mergeOptions:Ke,defineReactive:Le},e.set=Pe,e.delete=Ne,e.nextTick=gt,e.observable=function(e){return Re(e),e},e.options=Object.create(null),V.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,D(e.options.components,Ur),Cr(e),Mr(e),Tr(e),Ar(e)}Fr(Ir),Object.defineProperty(Ir.prototype,"$isServer",{get:ce}),Object.defineProperty(Ir.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Ir,"FunctionalRenderContext",{value:Qt}),Ir.version="2.6.14";var Gr=m("style,class"),Vr=m("input,textarea,option,select,progress"),jr=function(e,t,n){return"value"===n&&Vr(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},Br=m("contenteditable,draggable,spellcheck"),zr=m("events,caret,typing,plaintext-only"),Hr=function(e,t){return Yr(t)||"false"===t?"false":"contenteditable"===e&&zr(t)?t:"true"},Wr=m("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),qr="http://www.w3.org/1999/xlink",$r=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Kr=function(e){return $r(e)?e.slice(6,e.length):""},Yr=function(e){return null==e||!1===e};function Jr(e){var t=e.data,n=e,r=e;while(i(r.componentInstance))r=r.componentInstance._vnode,r&&r.data&&(t=Xr(r.data,t));while(i(n=n.parent))n&&n.data&&(t=Xr(t,n.data));return Zr(t.staticClass,t.class)}function Xr(e,t){return{staticClass:Qr(e.staticClass,t.staticClass),class:i(e.class)?[e.class,t.class]:t.class}}function Zr(e,t){return i(e)||i(t)?Qr(e,ei(t)):""}function Qr(e,t){return e?t?e+" "+t:e:t||""}function ei(e){return Array.isArray(e)?ti(e):c(e)?ni(e):"string"===typeof e?e:""}function ti(e){for(var t,n="",r=0,o=e.length;r<o;r++)i(t=ei(e[r]))&&""!==t&&(n&&(n+=" "),n+=t);return n}function ni(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}var ri={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},ii=m("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),oi=m("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),ai=function(e){return ii(e)||oi(e)};function si(e){return oi(e)?"svg":"math"===e?"math":void 0}var ci=Object.create(null);function ui(e){if(!J)return!0;if(ai(e))return!1;if(e=e.toLowerCase(),null!=ci[e])return ci[e];var t=document.createElement(e);return e.indexOf("-")>-1?ci[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:ci[e]=/HTMLUnknownElement/.test(t.toString())}var li=m("text,number,password,search,email,tel,url");function di(e){if("string"===typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}function hi(e,t){var n=document.createElement(e);return"select"!==e||t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n}function fi(e,t){return document.createElementNS(ri[e],t)}function pi(e){return document.createTextNode(e)}function gi(e){return document.createComment(e)}function mi(e,t,n){e.insertBefore(t,n)}function vi(e,t){e.removeChild(t)}function yi(e,t){e.appendChild(t)}function _i(e){return e.parentNode}function bi(e){return e.nextSibling}function Si(e){return e.tagName}function xi(e,t){e.textContent=t}function wi(e,t){e.setAttribute(t,"")}var Ii=Object.freeze({createElement:hi,createElementNS:fi,createTextNode:pi,createComment:gi,insertBefore:mi,removeChild:vi,appendChild:yi,parentNode:_i,nextSibling:bi,tagName:Si,setTextContent:xi,setStyleScope:wi}),Ci={create:function(e,t){Mi(t)},update:function(e,t){e.data.ref!==t.data.ref&&(Mi(e,!0),Mi(t))},destroy:function(e){Mi(e,!0)}};function Mi(e,t){var n=e.data.ref;if(i(n)){var r=e.context,o=e.componentInstance||e.elm,a=r.$refs;t?Array.isArray(a[n])?y(a[n],o):a[n]===o&&(a[n]=void 0):e.data.refInFor?Array.isArray(a[n])?a[n].indexOf(o)<0&&a[n].push(o):a[n]=[o]:a[n]=o}}var Ti=new _e("",{},[]),ki=["create","activate","update","remove","destroy"];function Ei(e,t){return e.key===t.key&&e.asyncFactory===t.asyncFactory&&(e.tag===t.tag&&e.isComment===t.isComment&&i(e.data)===i(t.data)&&Ai(e,t)||o(e.isAsyncPlaceholder)&&r(t.asyncFactory.error))}function Ai(e,t){if("input"!==e.tag)return!0;var n,r=i(n=e.data)&&i(n=n.attrs)&&n.type,o=i(n=t.data)&&i(n=n.attrs)&&n.type;return r===o||li(r)&&li(o)}function Di(e,t,n){var r,o,a={};for(r=t;r<=n;++r)o=e[r].key,i(o)&&(a[o]=r);return a}function Oi(e){var t,n,a={},c=e.modules,u=e.nodeOps;for(t=0;t<ki.length;++t)for(a[ki[t]]=[],n=0;n<c.length;++n)i(c[n][ki[t]])&&a[ki[t]].push(c[n][ki[t]]);function l(e){return new _e(u.tagName(e).toLowerCase(),{},[],void 0,e)}function d(e,t){function n(){0===--n.listeners&&h(e)}return n.listeners=t,n}function h(e){var t=u.parentNode(e);i(t)&&u.removeChild(t,e)}function f(e,t,n,r,a,s,c){if(i(e.elm)&&i(s)&&(e=s[c]=we(e)),e.isRootInsert=!a,!p(e,t,n,r)){var l=e.data,d=e.children,h=e.tag;i(h)?(e.elm=e.ns?u.createElementNS(e.ns,h):u.createElement(h,e),x(e),_(e,d,t),i(l)&&S(e,t),y(n,e.elm,r)):o(e.isComment)?(e.elm=u.createComment(e.text),y(n,e.elm,r)):(e.elm=u.createTextNode(e.text),y(n,e.elm,r))}}function p(e,t,n,r){var a=e.data;if(i(a)){var s=i(e.componentInstance)&&a.keepAlive;if(i(a=a.hook)&&i(a=a.init)&&a(e,!1),i(e.componentInstance))return g(e,t),y(n,e.elm,r),o(s)&&v(e,t,n,r),!0}}function g(e,t){i(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,b(e)?(S(e,t),x(e)):(Mi(e),t.push(e))}function v(e,t,n,r){var o,s=e;while(s.componentInstance)if(s=s.componentInstance._vnode,i(o=s.data)&&i(o=o.transition)){for(o=0;o<a.activate.length;++o)a.activate[o](Ti,s);t.push(s);break}y(n,e.elm,r)}function y(e,t,n){i(e)&&(i(n)?u.parentNode(n)===e&&u.insertBefore(e,t,n):u.appendChild(e,t))}function _(e,t,n){if(Array.isArray(t)){0;for(var r=0;r<t.length;++r)f(t[r],n,e.elm,null,!0,t,r)}else s(e.text)&&u.appendChild(e.elm,u.createTextNode(String(e.text)))}function b(e){while(e.componentInstance)e=e.componentInstance._vnode;return i(e.tag)}function S(e,n){for(var r=0;r<a.create.length;++r)a.create[r](Ti,e);t=e.data.hook,i(t)&&(i(t.create)&&t.create(Ti,e),i(t.insert)&&n.push(e))}function x(e){var t;if(i(t=e.fnScopeId))u.setStyleScope(e.elm,t);else{var n=e;while(n)i(t=n.context)&&i(t=t.$options._scopeId)&&u.setStyleScope(e.elm,t),n=n.parent}i(t=Dn)&&t!==e.context&&t!==e.fnContext&&i(t=t.$options._scopeId)&&u.setStyleScope(e.elm,t)}function w(e,t,n,r,i,o){for(;r<=i;++r)f(n[r],o,e,t,!1,n,r)}function I(e){var t,n,r=e.data;if(i(r))for(i(t=r.hook)&&i(t=t.destroy)&&t(e),t=0;t<a.destroy.length;++t)a.destroy[t](e);if(i(t=e.children))for(n=0;n<e.children.length;++n)I(e.children[n])}function C(e,t,n){for(;t<=n;++t){var r=e[t];i(r)&&(i(r.tag)?(M(r),I(r)):h(r.elm))}}function M(e,t){if(i(t)||i(e.data)){var n,r=a.remove.length+1;for(i(t)?t.listeners+=r:t=d(e.elm,r),i(n=e.componentInstance)&&i(n=n._vnode)&&i(n.data)&&M(n,t),n=0;n<a.remove.length;++n)a.remove[n](e,t);i(n=e.data.hook)&&i(n=n.remove)?n(e,t):t()}else h(e.elm)}function T(e,t,n,o,a){var s,c,l,d,h=0,p=0,g=t.length-1,m=t[0],v=t[g],y=n.length-1,_=n[0],b=n[y],S=!a;while(h<=g&&p<=y)r(m)?m=t[++h]:r(v)?v=t[--g]:Ei(m,_)?(E(m,_,o,n,p),m=t[++h],_=n[++p]):Ei(v,b)?(E(v,b,o,n,y),v=t[--g],b=n[--y]):Ei(m,b)?(E(m,b,o,n,y),S&&u.insertBefore(e,m.elm,u.nextSibling(v.elm)),m=t[++h],b=n[--y]):Ei(v,_)?(E(v,_,o,n,p),S&&u.insertBefore(e,v.elm,m.elm),v=t[--g],_=n[++p]):(r(s)&&(s=Di(t,h,g)),c=i(_.key)?s[_.key]:k(_,t,h,g),r(c)?f(_,o,e,m.elm,!1,n,p):(l=t[c],Ei(l,_)?(E(l,_,o,n,p),t[c]=void 0,S&&u.insertBefore(e,l.elm,m.elm)):f(_,o,e,m.elm,!1,n,p)),_=n[++p]);h>g?(d=r(n[y+1])?null:n[y+1].elm,w(e,d,n,p,y,o)):p>y&&C(t,h,g)}function k(e,t,n,r){for(var o=n;o<r;o++){var a=t[o];if(i(a)&&Ei(e,a))return o}}function E(e,t,n,s,c,l){if(e!==t){i(t.elm)&&i(s)&&(t=s[c]=we(t));var d=t.elm=e.elm;if(o(e.isAsyncPlaceholder))i(t.asyncFactory.resolved)?O(e.elm,t,n):t.isAsyncPlaceholder=!0;else if(o(t.isStatic)&&o(e.isStatic)&&t.key===e.key&&(o(t.isCloned)||o(t.isOnce)))t.componentInstance=e.componentInstance;else{var h,f=t.data;i(f)&&i(h=f.hook)&&i(h=h.prepatch)&&h(e,t);var p=e.children,g=t.children;if(i(f)&&b(t)){for(h=0;h<a.update.length;++h)a.update[h](e,t);i(h=f.hook)&&i(h=h.update)&&h(e,t)}r(t.text)?i(p)&&i(g)?p!==g&&T(d,p,g,n,l):i(g)?(i(e.text)&&u.setTextContent(d,""),w(d,null,g,0,g.length-1,n)):i(p)?C(p,0,p.length-1):i(e.text)&&u.setTextContent(d,""):e.text!==t.text&&u.setTextContent(d,t.text),i(f)&&i(h=f.hook)&&i(h=h.postpatch)&&h(e,t)}}}function A(e,t,n){if(o(n)&&i(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r<t.length;++r)t[r].data.hook.insert(t[r])}var D=m("attrs,class,staticClass,staticStyle,key");function O(e,t,n,r){var a,s=t.tag,c=t.data,u=t.children;if(r=r||c&&c.pre,t.elm=e,o(t.isComment)&&i(t.asyncFactory))return t.isAsyncPlaceholder=!0,!0;if(i(c)&&(i(a=c.hook)&&i(a=a.init)&&a(t,!0),i(a=t.componentInstance)))return g(t,n),!0;if(i(s)){if(i(u))if(e.hasChildNodes())if(i(a=c)&&i(a=a.domProps)&&i(a=a.innerHTML)){if(a!==e.innerHTML)return!1}else{for(var l=!0,d=e.firstChild,h=0;h<u.length;h++){if(!d||!O(d,u[h],n,r)){l=!1;break}d=d.nextSibling}if(!l||d)return!1}else _(t,u,n);if(i(c)){var f=!1;for(var p in c)if(!D(p)){f=!0,S(t,n);break}!f&&c["class"]&&vt(c["class"])}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,t,n,s){if(!r(t)){var c=!1,d=[];if(r(e))c=!0,f(t,d);else{var h=i(e.nodeType);if(!h&&Ei(e,t))E(e,t,d,null,null,s);else{if(h){if(1===e.nodeType&&e.hasAttribute(G)&&(e.removeAttribute(G),n=!0),o(n)&&O(e,t,d))return A(t,d,!0),e;e=l(e)}var p=e.elm,g=u.parentNode(p);if(f(t,d,p._leaveCb?null:g,u.nextSibling(p)),i(t.parent)){var m=t.parent,v=b(t);while(m){for(var y=0;y<a.destroy.length;++y)a.destroy[y](m);if(m.elm=t.elm,v){for(var _=0;_<a.create.length;++_)a.create[_](Ti,m);var S=m.data.hook.insert;if(S.merged)for(var x=1;x<S.fns.length;x++)S.fns[x]()}else Mi(m);m=m.parent}}i(g)?C([e],0,0):i(e.tag)&&I(e)}}return A(t,d,c),t.elm}i(e)&&I(e)}}var Ri={create:Li,update:Li,destroy:function(e){Li(e,Ti)}};function Li(e,t){(e.data.directives||t.data.directives)&&Pi(e,t)}function Pi(e,t){var n,r,i,o=e===Ti,a=t===Ti,s=Ui(e.data.directives,e.context),c=Ui(t.data.directives,t.context),u=[],l=[];for(n in c)r=s[n],i=c[n],r?(i.oldValue=r.value,i.oldArg=r.arg,Gi(i,"update",t,e),i.def&&i.def.componentUpdated&&l.push(i)):(Gi(i,"bind",t,e),i.def&&i.def.inserted&&u.push(i));if(u.length){var d=function(){for(var n=0;n<u.length;n++)Gi(u[n],"inserted",t,e)};o?xt(t,"insert",d):d()}if(l.length&&xt(t,"postpatch",(function(){for(var n=0;n<l.length;n++)Gi(l[n],"componentUpdated",t,e)})),!o)for(n in s)c[n]||Gi(s[n],"unbind",e,e,a)}var Ni=Object.create(null);function Ui(e,t){var n,r,i=Object.create(null);if(!e)return i;for(n=0;n<e.length;n++)r=e[n],r.modifiers||(r.modifiers=Ni),i[Fi(r)]=r,r.def=Ye(t.$options,"directives",r.name,!0);return i}function Fi(e){return e.rawName||e.name+"."+Object.keys(e.modifiers||{}).join(".")}function Gi(e,t,n,r,i){var o=e.def&&e.def[t];if(o)try{o(n.elm,e,n,r,i)}catch(Ia){nt(Ia,n.context,"directive "+e.name+" "+t+" hook")}}var Vi=[Ci,Ri];function ji(e,t){var n=t.componentOptions;if((!i(n)||!1!==n.Ctor.options.inheritAttrs)&&(!r(e.data.attrs)||!r(t.data.attrs))){var o,a,s,c=t.elm,u=e.data.attrs||{},l=t.data.attrs||{};for(o in i(l.__ob__)&&(l=t.data.attrs=D({},l)),l)a=l[o],s=u[o],s!==a&&Bi(c,o,a,t.data.pre);for(o in(ee||ne)&&l.value!==u.value&&Bi(c,"value",l.value),u)r(l[o])&&($r(o)?c.removeAttributeNS(qr,Kr(o)):Br(o)||c.removeAttribute(o))}}function Bi(e,t,n,r){r||e.tagName.indexOf("-")>-1?zi(e,t,n):Wr(t)?Yr(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):Br(t)?e.setAttribute(t,Hr(t,n)):$r(t)?Yr(n)?e.removeAttributeNS(qr,Kr(t)):e.setAttributeNS(qr,t,n):zi(e,t,n)}function zi(e,t,n){if(Yr(n))e.removeAttribute(t);else{if(ee&&!te&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var Hi={create:ji,update:ji};function Wi(e,t){var n=t.elm,o=t.data,a=e.data;if(!(r(o.staticClass)&&r(o.class)&&(r(a)||r(a.staticClass)&&r(a.class)))){var s=Jr(t),c=n._transitionClasses;i(c)&&(s=Qr(s,ei(c))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var qi,$i={create:Wi,update:Wi},Ki="__r",Yi="__c";function Ji(e){if(i(e[Ki])){var t=ee?"change":"input";e[t]=[].concat(e[Ki],e[t]||[]),delete e[Ki]}i(e[Yi])&&(e.change=[].concat(e[Yi],e.change||[]),delete e[Yi])}function Xi(e,t,n){var r=qi;return function i(){var o=t.apply(null,arguments);null!==o&&eo(e,i,n,r)}}var Zi=st&&!(ie&&Number(ie[1])<=53);function Qi(e,t,n,r){if(Zi){var i=Kn,o=t;t=o._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return o.apply(this,arguments)}}qi.addEventListener(e,t,ae?{capture:n,passive:r}:n)}function eo(e,t,n,r){(r||qi).removeEventListener(e,t._wrapper||t,n)}function to(e,t){if(!r(e.data.on)||!r(t.data.on)){var n=t.data.on||{},i=e.data.on||{};qi=t.elm,Ji(n),St(n,i,Qi,eo,Xi,t.context),qi=void 0}}var no,ro={create:to,update:to};function io(e,t){if(!r(e.data.domProps)||!r(t.data.domProps)){var n,o,a=t.elm,s=e.data.domProps||{},c=t.data.domProps||{};for(n in i(c.__ob__)&&(c=t.data.domProps=D({},c)),s)n in c||(a[n]="");for(n in c){if(o=c[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),o===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n&&"PROGRESS"!==a.tagName){a._value=o;var u=r(o)?"":String(o);oo(a,u)&&(a.value=u)}else if("innerHTML"===n&&oi(a.tagName)&&r(a.innerHTML)){no=no||document.createElement("div"),no.innerHTML="<svg>"+o+"</svg>";var l=no.firstChild;while(a.firstChild)a.removeChild(a.firstChild);while(l.firstChild)a.appendChild(l.firstChild)}else if(o!==s[n])try{a[n]=o}catch(Ia){}}}}function oo(e,t){return!e.composing&&("OPTION"===e.tagName||ao(e,t)||so(e,t))}function ao(e,t){var n=!0;try{n=document.activeElement!==e}catch(Ia){}return n&&e.value!==t}function so(e,t){var n=e.value,r=e._vModifiers;if(i(r)){if(r.number)return g(n)!==g(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}var co={create:io,update:io},uo=S((function(e){var t={},n=/;(?![^(]*\))/g,r=/:(.+)/;return e.split(n).forEach((function(e){if(e){var n=e.split(r);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}));function lo(e){var t=ho(e.style);return e.staticStyle?D(e.staticStyle,t):t}function ho(e){return Array.isArray(e)?O(e):"string"===typeof e?uo(e):e}function fo(e,t){var n,r={};if(t){var i=e;while(i.componentInstance)i=i.componentInstance._vnode,i&&i.data&&(n=lo(i.data))&&D(r,n)}(n=lo(e.data))&&D(r,n);var o=e;while(o=o.parent)o.data&&(n=lo(o.data))&&D(r,n);return r}var po,go=/^--/,mo=/\s*!important$/,vo=function(e,t,n){if(go.test(t))e.style.setProperty(t,n);else if(mo.test(n))e.style.setProperty(M(t),n.replace(mo,""),"important");else{var r=_o(t);if(Array.isArray(n))for(var i=0,o=n.length;i<o;i++)e.style[r]=n[i];else e.style[r]=n}},yo=["Webkit","Moz","ms"],_o=S((function(e){if(po=po||document.createElement("div").style,e=w(e),"filter"!==e&&e in po)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<yo.length;n++){var r=yo[n]+t;if(r in po)return r}}));function bo(e,t){var n=t.data,o=e.data;if(!(r(n.staticStyle)&&r(n.style)&&r(o.staticStyle)&&r(o.style))){var a,s,c=t.elm,u=o.staticStyle,l=o.normalizedStyle||o.style||{},d=u||l,h=ho(t.data.style)||{};t.data.normalizedStyle=i(h.__ob__)?D({},h):h;var f=fo(t,!0);for(s in d)r(f[s])&&vo(c,s,"");for(s in f)a=f[s],a!==d[s]&&vo(c,s,null==a?"":a)}}var So={create:bo,update:bo},xo=/\s+/;function wo(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(xo).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function Io(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(xo).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";while(n.indexOf(r)>=0)n=n.replace(r," ");n=n.trim(),n?e.setAttribute("class",n):e.removeAttribute("class")}}function Co(e){if(e){if("object"===typeof e){var t={};return!1!==e.css&&D(t,Mo(e.name||"v")),D(t,e),t}return"string"===typeof e?Mo(e):void 0}}var Mo=S((function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}})),To=J&&!te,ko="transition",Eo="animation",Ao="transition",Do="transitionend",Oo="animation",Ro="animationend";To&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Ao="WebkitTransition",Do="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Oo="WebkitAnimation",Ro="webkitAnimationEnd"));var Lo=J?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Po(e){Lo((function(){Lo(e)}))}function No(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),wo(e,t))}function Uo(e,t){e._transitionClasses&&y(e._transitionClasses,t),Io(e,t)}function Fo(e,t,n){var r=Vo(e,t),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===ko?Do:Ro,c=0,u=function(){e.removeEventListener(s,l),n()},l=function(t){t.target===e&&++c>=a&&u()};setTimeout((function(){c<a&&u()}),o+1),e.addEventListener(s,l)}var Go=/\b(transform|all)(,|$)/;function Vo(e,t){var n,r=window.getComputedStyle(e),i=(r[Ao+"Delay"]||"").split(", "),o=(r[Ao+"Duration"]||"").split(", "),a=jo(i,o),s=(r[Oo+"Delay"]||"").split(", "),c=(r[Oo+"Duration"]||"").split(", "),u=jo(s,c),l=0,d=0;t===ko?a>0&&(n=ko,l=a,d=o.length):t===Eo?u>0&&(n=Eo,l=u,d=c.length):(l=Math.max(a,u),n=l>0?a>u?ko:Eo:null,d=n?n===ko?o.length:c.length:0);var h=n===ko&&Go.test(r[Ao+"Property"]);return{type:n,timeout:l,propCount:d,hasTransform:h}}function jo(e,t){while(e.length<t.length)e=e.concat(e);return Math.max.apply(null,t.map((function(t,n){return Bo(t)+Bo(e[n])})))}function Bo(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function zo(e,t){var n=e.elm;i(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var o=Co(e.data.transition);if(!r(o)&&!i(n._enterCb)&&1===n.nodeType){var a=o.css,s=o.type,u=o.enterClass,l=o.enterToClass,d=o.enterActiveClass,h=o.appearClass,f=o.appearToClass,p=o.appearActiveClass,m=o.beforeEnter,v=o.enter,y=o.afterEnter,_=o.enterCancelled,b=o.beforeAppear,S=o.appear,x=o.afterAppear,w=o.appearCancelled,I=o.duration,C=Dn,M=Dn.$vnode;while(M&&M.parent)C=M.context,M=M.parent;var T=!C._isMounted||!e.isRootInsert;if(!T||S||""===S){var k=T&&h?h:u,E=T&&p?p:d,A=T&&f?f:l,D=T&&b||m,O=T&&"function"===typeof S?S:v,R=T&&x||y,L=T&&w||_,P=g(c(I)?I.enter:I);0;var N=!1!==a&&!te,U=qo(O),G=n._enterCb=F((function(){N&&(Uo(n,A),Uo(n,E)),G.cancelled?(N&&Uo(n,k),L&&L(n)):R&&R(n),n._enterCb=null}));e.data.show||xt(e,"insert",(function(){var t=n.parentNode,r=t&&t._pending&&t._pending[e.key];r&&r.tag===e.tag&&r.elm._leaveCb&&r.elm._leaveCb(),O&&O(n,G)})),D&&D(n),N&&(No(n,k),No(n,E),Po((function(){Uo(n,k),G.cancelled||(No(n,A),U||(Wo(P)?setTimeout(G,P):Fo(n,s,G)))}))),e.data.show&&(t&&t(),O&&O(n,G)),N||U||G()}}}function Ho(e,t){var n=e.elm;i(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var o=Co(e.data.transition);if(r(o)||1!==n.nodeType)return t();if(!i(n._leaveCb)){var a=o.css,s=o.type,u=o.leaveClass,l=o.leaveToClass,d=o.leaveActiveClass,h=o.beforeLeave,f=o.leave,p=o.afterLeave,m=o.leaveCancelled,v=o.delayLeave,y=o.duration,_=!1!==a&&!te,b=qo(f),S=g(c(y)?y.leave:y);0;var x=n._leaveCb=F((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[e.key]=null),_&&(Uo(n,l),Uo(n,d)),x.cancelled?(_&&Uo(n,u),m&&m(n)):(t(),p&&p(n)),n._leaveCb=null}));v?v(w):w()}function w(){x.cancelled||(!e.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[e.key]=e),h&&h(n),_&&(No(n,u),No(n,d),Po((function(){Uo(n,u),x.cancelled||(No(n,l),b||(Wo(S)?setTimeout(x,S):Fo(n,s,x)))}))),f&&f(n,x),_||b||x())}}function Wo(e){return"number"===typeof e&&!isNaN(e)}function qo(e){if(r(e))return!1;var t=e.fns;return i(t)?qo(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function $o(e,t){!0!==t.data.show&&zo(t)}var Ko=J?{create:$o,activate:$o,remove:function(e,t){!0!==e.data.show?Ho(e,t):t()}}:{},Yo=[Hi,$i,ro,co,So,Ko],Jo=Yo.concat(Vi),Xo=Oi({nodeOps:Ii,modules:Jo});te&&document.addEventListener("selectionchange",(function(){var e=document.activeElement;e&&e.vmodel&&oa(e,"input")}));var Zo={inserted:function(e,t,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?xt(n,"postpatch",(function(){Zo.componentUpdated(e,t,n)})):Qo(e,t,n.context),e._vOptions=[].map.call(e.options,na)):("textarea"===n.tag||li(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",ra),e.addEventListener("compositionend",ia),e.addEventListener("change",ia),te&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){Qo(e,t,n.context);var r=e._vOptions,i=e._vOptions=[].map.call(e.options,na);if(i.some((function(e,t){return!N(e,r[t])}))){var o=e.multiple?t.value.some((function(e){return ta(e,i)})):t.value!==t.oldValue&&ta(t.value,i);o&&oa(e,"change")}}}};function Qo(e,t,n){ea(e,t,n),(ee||ne)&&setTimeout((function(){ea(e,t,n)}),0)}function ea(e,t,n){var r=t.value,i=e.multiple;if(!i||Array.isArray(r)){for(var o,a,s=0,c=e.options.length;s<c;s++)if(a=e.options[s],i)o=U(r,na(a))>-1,a.selected!==o&&(a.selected=o);else if(N(na(a),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function ta(e,t){return t.every((function(t){return!N(t,e)}))}function na(e){return"_value"in e?e._value:e.value}function ra(e){e.target.composing=!0}function ia(e){e.target.composing&&(e.target.composing=!1,oa(e.target,"input"))}function oa(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function aa(e){return!e.componentInstance||e.data&&e.data.transition?e:aa(e.componentInstance._vnode)}var sa={bind:function(e,t,n){var r=t.value;n=aa(n);var i=n.data&&n.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,zo(n,(function(){e.style.display=o}))):e.style.display=r?o:"none"},update:function(e,t,n){var r=t.value,i=t.oldValue;if(!r!==!i){n=aa(n);var o=n.data&&n.data.transition;o?(n.data.show=!0,r?zo(n,(function(){e.style.display=e.__vOriginalDisplay})):Ho(n,(function(){e.style.display="none"}))):e.style.display=r?e.__vOriginalDisplay:"none"}},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}},ca={model:Zo,show:sa},ua={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function la(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?la(In(t.children)):e}function da(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var o in i)t[w(o)]=i[o];return t}function ha(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}function fa(e){while(e=e.parent)if(e.data.transition)return!0}function pa(e,t){return t.key===e.key&&t.tag===e.tag}var ga=function(e){return e.tag||Lt(e)},ma=function(e){return"show"===e.name},va={name:"transition",props:ua,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(ga),n.length)){0;var r=this.mode;0;var i=n[0];if(fa(this.$vnode))return i;var o=la(i);if(!o)return i;if(this._leaving)return ha(e,i);var a="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?a+"comment":a+o.tag:s(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var c=(o.data||(o.data={})).transition=da(this),u=this._vnode,l=la(u);if(o.data.directives&&o.data.directives.some(ma)&&(o.data.show=!0),l&&l.data&&!pa(o,l)&&!Lt(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var d=l.data.transition=D({},c);if("out-in"===r)return this._leaving=!0,xt(d,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),ha(e,i);if("in-out"===r){if(Lt(o))return u;var h,f=function(){h()};xt(c,"afterEnter",f),xt(c,"enterCancelled",f),xt(d,"delayLeave",(function(e){h=e}))}}return i}}},ya=D({tag:String,moveClass:String},ua);delete ya.mode;var _a={props:ya,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var i=On(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=da(this),s=0;s<i.length;s++){var c=i[s];if(c.tag)if(null!=c.key&&0!==String(c.key).indexOf("__vlist"))o.push(c),n[c.key]=c,(c.data||(c.data={})).transition=a;else;}if(r){for(var u=[],l=[],d=0;d<r.length;d++){var h=r[d];h.data.transition=a,h.data.pos=h.elm.getBoundingClientRect(),n[h.key]?u.push(h):l.push(h)}this.kept=e(t,null,u),this.removed=l}return e(t,null,o)},updated:function(){var e=this.prevChildren,t=this.moveClass||(this.name||"v")+"-move";e.length&&this.hasMove(e[0].elm,t)&&(e.forEach(ba),e.forEach(Sa),e.forEach(xa),this._reflow=document.body.offsetHeight,e.forEach((function(e){if(e.data.moved){var n=e.elm,r=n.style;No(n,t),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(Do,n._moveCb=function e(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(Do,e),n._moveCb=null,Uo(n,t))})}})))},methods:{hasMove:function(e,t){if(!To)return!1;if(this._hasMove)return this._hasMove;var n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach((function(e){Io(n,e)})),wo(n,t),n.style.display="none",this.$el.appendChild(n);var r=Vo(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}};function ba(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function Sa(e){e.data.newPos=e.elm.getBoundingClientRect()}function xa(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var o=e.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}var wa={Transition:va,TransitionGroup:_a};Ir.config.mustUseProp=jr,Ir.config.isReservedTag=ai,Ir.config.isReservedAttr=Gr,Ir.config.getTagNamespace=si,Ir.config.isUnknownElement=ui,D(Ir.options.directives,ca),D(Ir.options.components,wa),Ir.prototype.__patch__=J?Xo:R,Ir.prototype.$mount=function(e,t){return e=e&&J?di(e):void 0,Pn(this,e,t)},J&&setTimeout((function(){B.devtools&&ue&&ue.emit("init",Ir)}),0),t["default"]=Ir}.call(this,n("c8ba"))},"2b17":function(e,t,n){var r=n("4e08"),i=(r.__DEV__,n("6d8b")),o=(i.isTypedArray,i.extend),a=(i.assert,i.each),s=i.isObject,c=n("e0d3"),u=c.getDataItemValue,l=c.isDataItemOption,d=n("3842"),h=d.parseDate,f=n("ec6f"),p=n("93d0"),g=p.SOURCE_FORMAT_TYPED_ARRAY,m=p.SOURCE_FORMAT_ARRAY_ROWS,v=p.SOURCE_FORMAT_ORIGINAL,y=p.SOURCE_FORMAT_OBJECT_ROWS;function _(e,t){f.isInstance(e)||(e=f.seriesDataToSource(e)),this._source=e;var n=this._data=e.data,r=e.sourceFormat;r===g&&(this._offset=0,this._dimSize=t,this._data=n);var i=S[r===m?r+"_"+e.seriesLayoutBy:r];o(this,i)}var b=_.prototype;b.pure=!1,b.persistent=!0,b.getSource=function(){return this._source};var S={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:I},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,r=0;r<n.length;r++){var i=n[r];t.push(i?i[e]:null)}return t},appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},objectRows:{pure:!0,count:x,getItem:w,appendData:I},keyedColumns:{pure:!0,count:function(){var e=this._source.dimensionsDefine[0].name,t=this._data[e];return t?t.length:0},getItem:function(e){for(var t=[],n=this._source.dimensionsDefine,r=0;r<n.length;r++){var i=this._data[n[r].name];t.push(i?i[e]:null)}return t},appendData:function(e){var t=this._data;a(e,(function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])}))}},original:{count:x,getItem:w,appendData:I},typedArray:{persistent:!1,pure:!0,count:function(){return this._data?this._data.length/this._dimSize:0},getItem:function(e,t){e-=this._offset,t=t||[];for(var n=this._dimSize*e,r=0;r<this._dimSize;r++)t[r]=this._data[n+r];return t},appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}}};function x(){return this._data.length}function w(e){return this._data[e]}function I(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}var C={arrayRows:M,objectRows:function(e,t,n,r){return null!=n?e[r]:e},keyedColumns:M,original:function(e,t,n,r){var i=u(e);return null!=n&&i instanceof Array?i[n]:i},typedArray:M};function M(e,t,n,r){return null!=n?e[n]:e}var T={arrayRows:k,objectRows:function(e,t,n,r){return E(e[t],this._dimensionInfos[t])},keyedColumns:k,original:function(e,t,n,r){var i=e&&(null==e.value?e:e.value);return!this._rawData.pure&&l(e)&&(this.hasItemOption=!0),E(i instanceof Array?i[r]:i,this._dimensionInfos[t])},typedArray:function(e,t,n,r){return e[r]}};function k(e,t,n,r){return E(e[r],this._dimensionInfos[t])}function E(e,t){var n=t&&t.type;if("ordinal"===n){var r=t&&t.ordinalMeta;return r?r.parseAndCollect(e):e}return"time"===n&&"number"!==typeof e&&null!=e&&"-"!==e&&(e=+h(e)),null==e||""===e?NaN:+e}function A(e,t,n){if(e){var r=e.getRawDataItem(t);if(null!=r){var i,o,a=e.getProvider().getSource().sourceFormat,s=e.getDimensionInfo(n);return s&&(i=s.name,o=s.index),C[a](r,t,o,i)}}}function D(e,t,n){if(e){var r=e.getProvider().getSource().sourceFormat;if(r===v||r===y){var i=e.getRawDataItem(t);return r!==v||s(i)||(i=null),i?i[n]:void 0}}}t.DefaultDataProvider=_,t.defaultDimValueGetters=T,t.retrieveRawValue=A,t.retrieveRawAttr=D},"2b61":function(e,t,n){var r=n("7d6d"),i=n("82eb"),o=i.ContextCachedBy,a=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],s=function(e){this.extendFrom(e,!1)};function c(e,t,n){var r=null==t.x?0:t.x,i=null==t.x2?1:t.x2,o=null==t.y?0:t.y,a=null==t.y2?0:t.y2;t.global||(r=r*n.width+n.x,i=i*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),r=isNaN(r)?0:r,i=isNaN(i)?1:i,o=isNaN(o)?0:o,a=isNaN(a)?0:a;var s=e.createLinearGradient(r,o,i,a);return s}function u(e,t,n){var r=n.width,i=n.height,o=Math.min(r,i),a=null==t.x?.5:t.x,s=null==t.y?.5:t.y,c=null==t.r?.5:t.r;t.global||(a=a*r+n.x,s=s*i+n.y,c*=o);var u=e.createRadialGradient(a,s,0,a,s,c);return u}s.prototype={constructor:s,fill:"#000",stroke:null,opacity:1,fillOpacity:null,strokeOpacity:null,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:"#000",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:"inside",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:"transparent",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:"transparent",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(e,t,n){var i=this,s=n&&n.style,c=!s||e.__attrCachedBy!==o.STYLE_BIND;e.__attrCachedBy=o.STYLE_BIND;for(var u=0;u<a.length;u++){var l=a[u],d=l[0];(c||i[d]!==s[d])&&(e[d]=r(e,d,i[d]||l[1]))}if((c||i.fill!==s.fill)&&(e.fillStyle=i.fill),(c||i.stroke!==s.stroke)&&(e.strokeStyle=i.stroke),(c||i.opacity!==s.opacity)&&(e.globalAlpha=null==i.opacity?1:i.opacity),(c||i.blend!==s.blend)&&(e.globalCompositeOperation=i.blend||"source-over"),this.hasStroke()){var h=i.lineWidth;e.lineWidth=h/(this.strokeNoScale&&t&&t.getLineScale?t.getLineScale():1)}},hasFill:function(){var e=this.fill;return null!=e&&"none"!==e},hasStroke:function(){var e=this.stroke;return null!=e&&"none"!==e&&this.lineWidth>0},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 r="radial"===t.type?u:c,i=r(e,t,n),o=t.colorStops,a=0;a<o.length;a++)i.addColorStop(o[a].offset,o[a].color);return i}};for(var l=s.prototype,d=0;d<a.length;d++){var h=a[d];h[0]in l||(l[h[0]]=h[1])}s.getGradient=l.getGradient;var f=s;e.exports=f},"2b8c":function(e,t,n){var r=n("6d8b"),i=n("5f14"),o=r.each;function a(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!0}function s(e,t,n){var a={};return o(t,(function(t){var c=a[t]=s();o(e[t],(function(e,o){if(i.isValidType(o)){var a={type:o,visual:e};n&&n(a,t),c[o]=new i(a),"opacity"===o&&(a=r.clone(a),a.type="colorAlpha",c.__hidden.__alphaForOpacity=new i(a))}}))})),a;function s(){var e=function(){};e.prototype.__hidden=e.prototype;var t=new e;return t}}function c(e,t,n){var i;r.each(n,(function(e){t.hasOwnProperty(e)&&a(t[e])&&(i=!0)})),i&&r.each(n,(function(n){t.hasOwnProperty(n)&&a(t[n])?e[n]=r.clone(t[n]):delete e[n]}))}function u(e,t,n,o,a,s){var c,u={};function l(e){return n.getItemVisual(c,e)}function d(e,t){n.setItemVisual(c,e,t)}function h(e,r){c=null==s?e:r;var i=n.getRawDataItem(c);if(!i||!1!==i.visualMap)for(var h=o.call(a,e),f=t[h],p=u[h],g=0,m=p.length;g<m;g++){var v=p[g];f[v]&&f[v].applyVisual(e,l,d)}}r.each(e,(function(e){var n=i.prepareVisualTypes(t[e]);u[e]=n})),null==s?n.each(h):n.each([s],h)}function l(e,t,n,o){var a={};function s(e,r){function i(e){return r.getItemVisual(c,e)}function s(e,t){r.setItemVisual(c,e,t)}var c;null!=o&&(o=r.getDimension(o));while(null!=(c=e.next())){var u=r.getRawDataItem(c);if(!u||!1!==u.visualMap)for(var l=null!=o?r.get(o,c,!0):c,d=n(l),h=t[d],f=a[d],p=0,g=f.length;p<g;p++){var m=f[p];h[m]&&h[m].applyVisual(l,i,s)}}}return r.each(e,(function(e){var n=i.prepareVisualTypes(t[e]);a[e]=n})),{progress:s}}t.createVisualMappings=s,t.replaceVisualOption=c,t.applyVisual=u,t.incrementalApplyVisual=l},"2ba4":function(e,t,n){var r=n("40d5"),i=Function.prototype,o=i.apply,a=i.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(o):function(){return a.apply(o,arguments)})},"2bb5":function(e,t,n){"use strict";t.__esModule=!0;n("8122");t.default={mounted:function(){},methods:{getMigratingConfig:function(){return{props:{},events:{}}}}}},"2c17":function(e,t,n){var r=n("3eba"),i=n("6d8b"),o=i.createHashMap,a=i.each;r.registerProcessor({getTargetSeries:function(e){var t=o();return e.eachComponent("dataZoom",(function(e){e.eachTargetAxis((function(e,n,r){var i=r.getAxisProxy(e.name,n);a(i.getTargetSeriesModels(),(function(e){t.set(e.uid,e)}))}))})),t},modifyOutputEnd:!0,overallReset:function(e,t){e.eachComponent("dataZoom",(function(e){e.eachTargetAxis((function(e,n,r){r.getAxisProxy(e.name,n).reset(r,t)})),e.eachTargetAxis((function(e,n,r){r.getAxisProxy(e.name,n).filterData(r,t)}))})),e.eachComponent("dataZoom",(function(e){var t=e.findRepresentativeAxisProxy(),n=t.getDataPercentWindow(),r=t.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:r[0],endValue:r[1]})}))}})},"2c3e":function(e,t,n){var r=n("da84"),i=n("83ab"),o=n("9f7f").MISSED_STICKY,a=n("c6b6"),s=n("9bf2").f,c=n("69f3").get,u=RegExp.prototype,l=r.TypeError;i&&o&&s(u,"sticky",{configurable:!0,get:function(){if(this!==u){if("RegExp"===a(this))return!!c(this).sticky;throw l("Incompatible receiver, RegExp required")}}})},"2cf4":function(e,t){var n=1;"undefined"!==typeof window&&(n=Math.max(window.devicePixelRatio||1,1));var r=0,i=n;t.debugMode=r,t.devicePixelRatio=i},"2cf49":function(e,t,n){var r,i,o,a,s=n("da84"),c=n("2ba4"),u=n("0366"),l=n("1626"),d=n("1a2d"),h=n("d039"),f=n("1be4"),p=n("f36a"),g=n("cc12"),m=n("d6d6"),v=n("1cdc"),y=n("605d"),_=s.setImmediate,b=s.clearImmediate,S=s.process,x=s.Dispatch,w=s.Function,I=s.MessageChannel,C=s.String,M=0,T={},k="onreadystatechange";try{r=s.location}catch(R){}var E=function(e){if(d(T,e)){var t=T[e];delete T[e],t()}},A=function(e){return function(){E(e)}},D=function(e){E(e.data)},O=function(e){s.postMessage(C(e),r.protocol+"//"+r.host)};_&&b||(_=function(e){m(arguments.length,1);var t=l(e)?e:w(e),n=p(arguments,1);return T[++M]=function(){c(t,void 0,n)},i(M),M},b=function(e){delete T[e]},y?i=function(e){S.nextTick(A(e))}:x&&x.now?i=function(e){x.now(A(e))}:I&&!v?(o=new I,a=o.port2,o.port1.onmessage=D,i=u(a.postMessage,a)):s.addEventListener&&l(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!h(O)?(i=O,s.addEventListener("message",D,!1)):i=k in g("script")?function(e){f.appendChild(g("script"))[k]=function(){f.removeChild(this),E(e)}}:function(e){setTimeout(A(e),0)}),e.exports={set:_,clear:b}},"2cfc":function(e,t,n){var r=n("3eba");n("4338"),n("bcbe"),n("c62c"),n("cb8f"),n("f138"),r.extendComponentView({type:"single"})},"2d00":function(e,t,n){var r,i,o=n("da84"),a=n("342f"),s=o.process,c=o.Deno,u=s&&s.versions||c&&c.version,l=u&&u.v8;l&&(r=l.split("."),i=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&a&&(r=a.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/),r&&(i=+r[1]))),e.exports=i},"2d83":function(e,t,n){"use strict";var r=n("387f");e.exports=function(e,t,n,i,o){var a=new Error(e);return r(a,t,n,i,o)}},"2db9":function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.bezierCurveToPolyline=_,t.getBezierCurveLength=b,t["default"]=void 0;var i=r(n("278c")),o=r(n("448a")),a=Math.sqrt,s=Math.pow,c=Math.ceil,u=Math.abs,l=50;function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,n=e.length-1,r=e[0],i=e[n][2],a=e.slice(1),s=a.map((function(e,t){var n=0===t?r:a[t-1][2];return h.apply(void 0,[n].concat((0,o["default"])(e)))})),c=new Array(n).fill(l),u=m(s,c),d=y(u,s,a,t);return d.segmentPoints.push(i),d}function h(e,t,n,r){return function(i){var o=1-i,a=s(o,3),c=s(o,2),u=s(i,3),l=s(i,2);return[e[0]*a+3*t[0]*i*c+3*n[0]*l*o+r[0]*u,e[1]*a+3*t[1]*i*c+3*n[1]*l*o+r[1]*u]}}function f(e,t){var n=(0,i["default"])(e,2),r=n[0],o=n[1],c=(0,i["default"])(t,2),u=c[0],l=c[1];return a(s(r-u,2)+s(o-l,2))}function p(e){return e.reduce((function(e,t){return e+t}),0)}function g(e){return e.map((function(e,t){return new Array(e.length-1).fill(0).map((function(t,n){return f(e[n],e[n+1])}))}))}function m(e,t){return e.map((function(e,n){var r=1/t[n];return new Array(t[n]).fill("").map((function(t,n){return e(n*r)}))}))}function v(e,t){return e.map((function(e){return e.map((function(e){return u(e-t)}))})).map((function(e){return p(e)})).reduce((function(e,t){return e+t}),0)}function y(e,t,n,r){var i=4,o=1,a=function(){var a=e.reduce((function(e,t){return e+t.length}),0);e.forEach((function(e,t){return e.push(n[t][2])}));var s=g(e),u=s.reduce((function(e,t){return e+t.length}),0),l=s.map((function(e){return p(e)})),d=p(l),h=d/u,f=v(s,h);if(f<=r)return"break";a=c(h/r*a*1.1);var y=l.map((function(e){return c(e/d*a)}));e=m(t,y),a=e.reduce((function(e,t){return e+t.length}),0);var _=JSON.parse(JSON.stringify(e));_.forEach((function(e,t){return e.push(n[t][2])})),s=g(_),u=s.reduce((function(e,t){return e+t.length}),0),l=s.map((function(e){return p(e)})),d=p(l),h=d/u;var b=1/a/10;t.forEach((function(t,n){for(var r=y[n],o=new Array(r).fill("").map((function(e,t){return t/y[n]})),a=0;a<i;a++)for(var s=g([e[n]])[0],c=s.map((function(e){return e-h})),u=0,l=0;l<r;l++){if(0===l)return;u+=c[l-1],o[l]-=b*u,o[l]>1&&(o[l]=1),o[l]<0&&(o[l]=0),e[n][l]=t(o[l])}})),i*=4,o++};do{var s=a();if("break"===s)break}while(i<=1025);return e=e.reduce((function(e,t){return e.concat(t)}),[]),{segmentPoints:e,cycles:o,rounds:i}}function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;if(!e)return console.error("bezierCurveToPolyline: Missing parameters!"),!1;if(!(e instanceof Array))return console.error("bezierCurveToPolyline: Parameter bezierCurve must be an array!"),!1;if("number"!==typeof t)return console.error("bezierCurveToPolyline: Parameter precision must be a number!"),!1;var n=d(e,t),r=n.segmentPoints;return r}function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;if(!e)return console.error("getBezierCurveLength: Missing parameters!"),!1;if(!(e instanceof Array))return console.error("getBezierCurveLength: Parameter bezierCurve must be an array!"),!1;if("number"!==typeof t)return console.error("getBezierCurveLength: Parameter precision must be a number!"),!1;var n=d(e,t),r=n.segmentPoints,i=g([r])[0],o=p(i);return o}var S=_;t["default"]=S},"2e67":function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},"2f31":function(e,t,n){var r=n("3eba"),i=n("ae75");n("10cc"),n("f31f"),n("c2dd"),n("b8ec"),n("fecb"),r.registerPreprocessor(i)},"2f45":function(e,t,n){var r=n("6d8b"),i=r.each,o=r.createHashMap,a=(r.assert,n("4e08")),s=(a.__DEV__,o(["tooltip","label","itemName","itemId","seriesName"]));function c(e){var t={},n=t.encode={},r=o(),a=[],c=[],l=t.userOutput={dimensionNames:e.dimensions.slice(),encode:{}};i(e.dimensions,(function(t){var i=e.getDimensionInfo(t),o=i.coordDim;if(o){var h=i.coordDimIndex;u(n,o)[h]=t,i.isExtraCoord||(r.set(o,1),d(i.type)&&(a[0]=t),u(l.encode,o)[h]=i.index),i.defaultTooltip&&c.push(t)}s.each((function(e,t){var r=u(n,t),o=i.otherDims[t];null!=o&&!1!==o&&(r[o]=i.name)}))}));var h=[],f={};r.each((function(e,t){var r=n[t];f[t]=r[0],h=h.concat(r)})),t.dataDimsOnCoord=h,t.encodeFirstDimNotExtra=f;var p=n.label;p&&p.length&&(a=p.slice());var g=n.tooltip;return g&&g.length?c=g.slice():c.length||(c=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=c,t}function u(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function l(e){return"category"===e?"ordinal":"time"===e?"time":"float"}function d(e){return!("ordinal"===e||"time"===e)}t.OTHER_DIMENSIONS=s,t.summarizeDimensions=c,t.getDimensionTypeByAxis=l},"2f62":function(e,t,n){"use strict";(function(e){
/*!
 * vuex v3.6.2
 * (c) 2021 Evan You
 * @license MIT
 */
function r(e){var t=Number(e.version.split(".")[0]);if(t>=2)e.mixin({beforeCreate:r});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[r].concat(e.init):r,n.call(this,e)}}function r(){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)}}n.d(t,"b",(function(){return R}));var i="undefined"!==typeof window?window:"undefined"!==typeof e?e:{},o=i.__VUE_DEVTOOLS_GLOBAL_HOOK__;function a(e){o&&(e._devtoolHook=o,o.emit("vuex:init",e),o.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){o.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){o.emit("vuex:action",e,t)}),{prepend:!0}))}function s(e,t){return e.filter(t)[0]}function c(e,t){if(void 0===t&&(t=[]),null===e||"object"!==typeof e)return e;var n=s(t,(function(t){return t.original===e}));if(n)return n.copy;var r=Array.isArray(e)?[]:{};return t.push({original:e,copy:r}),Object.keys(e).forEach((function(n){r[n]=c(e[n],t)})),r}function u(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function l(e){return null!==e&&"object"===typeof e}function d(e){return e&&"function"===typeof e.then}function h(e,t){return function(){return e(t)}}var f=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)||{}},p={namespaced:{configurable:!0}};p.namespaced.get=function(){return!!this._rawModule.namespaced},f.prototype.addChild=function(e,t){this._children[e]=t},f.prototype.removeChild=function(e){delete this._children[e]},f.prototype.getChild=function(e){return this._children[e]},f.prototype.hasChild=function(e){return e in this._children},f.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)},f.prototype.forEachChild=function(e){u(this._children,e)},f.prototype.forEachGetter=function(e){this._rawModule.getters&&u(this._rawModule.getters,e)},f.prototype.forEachAction=function(e){this._rawModule.actions&&u(this._rawModule.actions,e)},f.prototype.forEachMutation=function(e){this._rawModule.mutations&&u(this._rawModule.mutations,e)},Object.defineProperties(f.prototype,p);var g=function(e){this.register([],e,!1)};function m(e,t,n){if(t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r))return void 0;m(e.concat(r),t.getChild(r),n.modules[r])}}g.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},g.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return t=t.getChild(n),e+(t.namespaced?n+"/":"")}),"")},g.prototype.update=function(e){m([],this.root,e)},g.prototype.register=function(e,t,n){var r=this;void 0===n&&(n=!0);var i=new f(t,n);if(0===e.length)this.root=i;else{var o=this.get(e.slice(0,-1));o.addChild(e[e.length-1],i)}t.modules&&u(t.modules,(function(t,i){r.register(e.concat(i),t,n)}))},g.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],r=t.getChild(n);r&&r.runtime&&t.removeChild(n)},g.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var v;var y=function(e){var t=this;void 0===e&&(e={}),!v&&"undefined"!==typeof window&&window.Vue&&O(window.Vue);var n=e.plugins;void 0===n&&(n=[]);var r=e.strict;void 0===r&&(r=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new g(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new v,this._makeLocalGettersCache=Object.create(null);var i=this,o=this,s=o.dispatch,c=o.commit;this.dispatch=function(e,t){return s.call(i,e,t)},this.commit=function(e,t,n){return c.call(i,e,t,n)},this.strict=r;var u=this._modules.root.state;w(this,u,[],this._modules.root),x(this,u),n.forEach((function(e){return e(t)}));var l=void 0!==e.devtools?e.devtools:v.config.devtools;l&&a(this)},_={state:{configurable:!0}};function b(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 S(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;w(e,n,[],e._modules.root,!0),x(e,n,t)}function x(e,t,n){var r=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var i=e._wrappedGetters,o={};u(i,(function(t,n){o[n]=h(t,e),Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})}));var a=v.config.silent;v.config.silent=!0,e._vm=new v({data:{$$state:t},computed:o}),v.config.silent=a,e.strict&&E(e),r&&(n&&e._withCommit((function(){r._data.$$state=null})),v.nextTick((function(){return r.$destroy()})))}function w(e,t,n,r,i){var o=!n.length,a=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[a],e._modulesNamespaceMap[a]=r),!o&&!i){var s=A(t,n.slice(0,-1)),c=n[n.length-1];e._withCommit((function(){v.set(s,c,r.state)}))}var u=r.context=I(e,a,n);r.forEachMutation((function(t,n){var r=a+n;M(e,r,t,u)})),r.forEachAction((function(t,n){var r=t.root?n:a+n,i=t.handler||t;T(e,r,i,u)})),r.forEachGetter((function(t,n){var r=a+n;k(e,r,t,u)})),r.forEachChild((function(r,o){w(e,t,n.concat(o),r,i)}))}function I(e,t,n){var r=""===t,i={dispatch:r?e.dispatch:function(n,r,i){var o=D(n,r,i),a=o.payload,s=o.options,c=o.type;return s&&s.root||(c=t+c),e.dispatch(c,a)},commit:r?e.commit:function(n,r,i){var o=D(n,r,i),a=o.payload,s=o.options,c=o.type;s&&s.root||(c=t+c),e.commit(c,a,s)}};return Object.defineProperties(i,{getters:{get:r?function(){return e.getters}:function(){return C(e,t)}},state:{get:function(){return A(e.state,n)}}}),i}function C(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach((function(i){if(i.slice(0,r)===t){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return e.getters[i]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function M(e,t,n,r){var i=e._mutations[t]||(e._mutations[t]=[]);i.push((function(t){n.call(e,r.state,t)}))}function T(e,t,n,r){var i=e._actions[t]||(e._actions[t]=[]);i.push((function(t){var i=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},t);return d(i)||(i=Promise.resolve(i)),e._devtoolHook?i.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):i}))}function k(e,t,n,r){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return n(r.state,r.getters,e.state,e.getters)})}function E(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function A(e,t){return t.reduce((function(e,t){return e[t]}),e)}function D(e,t,n){return l(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function O(e){v&&e===v||(v=e,r(v))}_.state.get=function(){return this._vm._data.$$state},_.state.set=function(e){0},y.prototype.commit=function(e,t,n){var r=this,i=D(e,t,n),o=i.type,a=i.payload,s=(i.options,{type:o,payload:a}),c=this._mutations[o];c&&(this._withCommit((function(){c.forEach((function(e){e(a)}))})),this._subscribers.slice().forEach((function(e){return e(s,r.state)})))},y.prototype.dispatch=function(e,t){var n=this,r=D(e,t),i=r.type,o=r.payload,a={type:i,payload:o},s=this._actions[i];if(s){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(a,n.state)}))}catch(u){0}var c=s.length>1?Promise.all(s.map((function(e){return e(o)}))):s[0](o);return new Promise((function(e,t){c.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(a,n.state)}))}catch(u){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(u){0}t(e)}))}))}},y.prototype.subscribe=function(e,t){return b(e,this._subscribers,t)},y.prototype.subscribeAction=function(e,t){var n="function"===typeof e?{before:e}:e;return b(n,this._actionSubscribers,t)},y.prototype.watch=function(e,t,n){var r=this;return this._watcherVM.$watch((function(){return e(r.state,r.getters)}),t,n)},y.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},y.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"===typeof e&&(e=[e]),this._modules.register(e,t),w(this,this.state,e,this._modules.get(e),n.preserveState),x(this,this.state)},y.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=A(t.state,e.slice(0,-1));v.delete(n,e[e.length-1])})),S(this)},y.prototype.hasModule=function(e){return"string"===typeof e&&(e=[e]),this._modules.isRegistered(e)},y.prototype.hotUpdate=function(e){this._modules.update(e),S(this,!0)},y.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(y.prototype,_);var R=V((function(e,t){var n={};return F(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var r=j(this.$store,"mapState",e);if(!r)return;t=r.context.state,n=r.context.getters}return"function"===typeof i?i.call(this,t,n):t[i]},n[r].vuex=!0})),n})),L=V((function(e,t){var n={};return F(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.commit;if(e){var o=j(this.$store,"mapMutations",e);if(!o)return;r=o.context.commit}return"function"===typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n})),P=V((function(e,t){var n={};return F(t).forEach((function(t){var r=t.key,i=t.val;i=e+i,n[r]=function(){if(!e||j(this.$store,"mapGetters",e))return this.$store.getters[i]},n[r].vuex=!0})),n})),N=V((function(e,t){var n={};return F(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.dispatch;if(e){var o=j(this.$store,"mapActions",e);if(!o)return;r=o.context.dispatch}return"function"===typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n})),U=function(e){return{mapState:R.bind(null,e),mapGetters:P.bind(null,e),mapMutations:L.bind(null,e),mapActions:N.bind(null,e)}};function F(e){return G(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 G(e){return Array.isArray(e)||l(e)}function V(e){return function(t,n){return"string"!==typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function j(e,t,n){var r=e._modulesNamespaceMap[n];return r}function B(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 r=e.transformer;void 0===r&&(r=function(e){return e});var i=e.mutationTransformer;void 0===i&&(i=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 s=e.logMutations;void 0===s&&(s=!0);var u=e.logActions;void 0===u&&(u=!0);var l=e.logger;return void 0===l&&(l=console),function(e){var d=c(e.state);"undefined"!==typeof l&&(s&&e.subscribe((function(e,o){var a=c(o);if(n(e,d,a)){var s=W(),u=i(e),h="mutation "+e.type+s;z(l,h,t),l.log("%c prev state","color: #9E9E9E; font-weight: bold",r(d)),l.log("%c mutation","color: #03A9F4; font-weight: bold",u),l.log("%c next state","color: #4CAF50; font-weight: bold",r(a)),H(l)}d=a})),u&&e.subscribeAction((function(e,n){if(o(e,n)){var r=W(),i=a(e),s="action "+e.type+r;z(l,s,t),l.log("%c action","color: #03A9F4; font-weight: bold",i),H(l)}})))}}function z(e,t,n){var r=n?e.groupCollapsed:e.group;try{r.call(e,t)}catch(i){e.log(t)}}function H(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function W(){var e=new Date;return" @ "+$(e.getHours(),2)+":"+$(e.getMinutes(),2)+":"+$(e.getSeconds(),2)+"."+$(e.getMilliseconds(),3)}function q(e,t){return new Array(t+1).join(e)}function $(e,t){return q("0",t-e.toString().length)+e}var K={Store:y,install:O,version:"3.6.2",mapState:R,mapMutations:L,mapGetters:P,mapActions:N,createNamespacedHelpers:U,createLogger:B};t["a"]=K}).call(this,n("c8ba"))},"2f73":function(e,t,n){var r=n("3eba"),i=n("6d8b"),o=n("1e32");n("1ccf"),n("f5e6"),n("792e"),n("cb8f"),n("6acf"),r.registerLayout(i.curry(o,"bar")),r.extendComponentView({type:"polar"})},"2f91":function(e,t){var n=["itemStyle","borderColor"];function r(e,t){var r=e.get("color");e.eachRawSeriesByType("boxplot",(function(t){var i=r[t.seriesIndex%r.length],o=t.getData();o.setVisual({legendSymbol:"roundRect",color:t.get(n)||i}),e.isSeriesFiltered(t)||o.each((function(e){var t=o.getItemModel(e);o.setItemVisual(e,{color:t.get(n,!0)})}))}))}e.exports=r},3014:function(e,t,n){var r=n("4f85"),i=n("3301"),o=r.extend({type:"series.__base_bar__",getInitialData:function(e,t){return i(this.getSource(),this,{useEncodeDefaulter:!0})},getMarkerPosition:function(e){var t=this.coordinateSystem;if(t){var n=t.dataToPoint(t.clampData(e)),r=this.getData(),i=r.getLayout("offset"),o=r.getLayout("size"),a=t.getBaseAxis().isHorizontal()?0:1;return n[a]+=i+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},3041:function(e,t,n){var r=n("e1fc"),i=n("0da8"),o=n("76a5"),a=n("d9fc"),s=n("c7a2"),c=n("ae69"),u=n("cb11"),l=n("cbe5"),d=n("87b1"),h=n("d498"),f=n("48a9"),p=n("2b61"),g=n("1687"),m=n("342d"),v=m.createFromString,y=n("6d8b"),_=y.isString,b=y.extend,S=y.defaults,x=y.trim,w=y.each,I=/[\s,]+/;function C(e){if(_(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 M(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}M.prototype.parse=function(e,t){t=t||{};var n=C(e);if(!n)throw new Error("Illegal svg");var i=new r;this._root=i;var o=n.getAttribute("viewBox")||"",a=parseFloat(n.getAttribute("width")||t.width),c=parseFloat(n.getAttribute("height")||t.height);isNaN(a)&&(a=null),isNaN(c)&&(c=null),R(n,i,null,!0);var u,l,d=n.firstChild;while(d)this._parseNode(d,i),d=d.nextSibling;if(o){var h=x(o).split(I);h.length>=4&&(u={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(u&&null!=a&&null!=c&&(l=V(u,a,c),!t.ignoreViewBox)){var f=i;i=new r,i.add(f),f.scale=l.scale.slice(),f.position=l.position.slice()}return t.ignoreRootClip||null==a||null==c||i.setClipPath(new s({shape:{x:0,y:0,width:a,height:c}})),{root:i,width:a,height:c,viewBoxRect:u,viewBoxTransform:l}},M.prototype._parseNode=function(e,t){var n,r=e.nodeName.toLowerCase();if("defs"===r?this._isDefine=!0:"text"===r&&(this._isText=!0),this._isDefine){var i=k[r];if(i){var o=i.call(this,e),a=e.getAttribute("id");a&&(this._defs[a]=o)}}else{i=T[r];i&&(n=i.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"===r?this._isDefine=!1:"text"===r&&(this._isText=!1)},M.prototype._parseText=function(e,t){if(1===e.nodeType){var n=e.getAttribute("dx")||0,r=e.getAttribute("dy")||0;this._textX+=parseFloat(n),this._textY+=parseFloat(r)}var i=new o({style:{text:e.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});A(t,i),R(e,i,this._defs);var a=i.style.fontSize;a&&a<9&&(i.style.fontSize=9,i.scale=i.scale||[1,1],i.scale[0]*=a/9,i.scale[1]*=a/9);var s=i.getBoundingRect();return this._textX+=s.width,t.add(i),i};var T={g:function(e,t){var n=new r;return A(t,n),R(e,n,this._defs),n},rect:function(e,t){var n=new s;return A(t,n),R(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 A(t,n),R(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 u;return A(t,n),R(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 c;return A(t,n),R(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=D(n));var r=new d({shape:{points:n||[]}});return A(t,r),R(e,r,this._defs),r},polyline:function(e,t){var n=new l;A(t,n),R(e,n,this._defs);var r=e.getAttribute("points");r&&(r=D(r));var i=new h({shape:{points:r||[]}});return i},image:function(e,t){var n=new i;return A(t,n),R(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,i=e.getAttribute("y")||0,o=e.getAttribute("dx")||0,a=e.getAttribute("dy")||0;this._textX=parseFloat(n)+parseFloat(o),this._textY=parseFloat(i)+parseFloat(a);var s=new r;return A(t,s),R(e,s,this._defs),s},tspan:function(e,t){var n=e.getAttribute("x"),i=e.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i));var o=e.getAttribute("dx")||0,a=e.getAttribute("dy")||0,s=new r;return A(t,s),R(e,s,this._defs),this._textX+=o,this._textY+=a,s},path:function(e,t){var n=e.getAttribute("d")||"",r=v(n);return A(t,r),R(e,r,this._defs),r}},k={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||0,10),n=parseInt(e.getAttribute("y1")||0,10),r=parseInt(e.getAttribute("x2")||10,10),i=parseInt(e.getAttribute("y2")||0,10),o=new f(t,n,r,i);return E(e,o),o},radialgradient:function(e){}};function E(e,t){var n=e.firstChild;while(n){if(1===n.nodeType){var r=n.getAttribute("offset");r=r.indexOf("%")>0?parseInt(r,10)/100:r?parseFloat(r):0;var i=n.getAttribute("stop-color")||"#000000";t.addColorStop(r,i)}n=n.nextSibling}}function A(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),S(t.__inheritedStyle,e.__inheritedStyle))}function D(e){for(var t=x(e).split(I),n=[],r=0;r<t.length;r+=2){var i=parseFloat(t[r]),o=parseFloat(t[r+1]);n.push([i,o])}return n}var O={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-align":"textAlign","alignment-baseline":"textBaseline"};function R(e,t,n,r){var i=t.__inheritedStyle||{},o="text"===t.type;if(1===e.nodeType&&(U(e,t),b(i,G(e)),!r))for(var a in O)if(O.hasOwnProperty(a)){var s=e.getAttribute(a);null!=s&&(i[O[a]]=s)}var c=o?"textFill":"fill",u=o?"textStroke":"stroke";t.style=t.style||new p;var l=t.style;null!=i.fill&&l.set(c,P(i.fill,n)),null!=i.stroke&&l.set(u,P(i.stroke,n)),w(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(e){var t="lineWidth"===e&&o?"textStrokeWidth":e;null!=i[e]&&l.set(t,parseFloat(i[e]))})),i.textBaseline&&"auto"!==i.textBaseline||(i.textBaseline="alphabetic"),"alphabetic"===i.textBaseline&&(i.textBaseline="bottom"),"start"===i.textAlign&&(i.textAlign="left"),"end"===i.textAlign&&(i.textAlign="right"),w(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign","textBaseline"],(function(e){null!=i[e]&&l.set(e,i[e])})),i.lineDash&&(t.style.lineDash=x(i.lineDash).split(I)),l[u]&&"none"!==l[u]&&(t[u]=!0),t.__inheritedStyle=i}var L=/url\(\s*#(.*?)\)/;function P(e,t){var n=t&&e&&e.match(L);if(n){var r=x(n[1]),i=t[r];return i}return e}var N=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g;function U(e,t){var n=e.getAttribute("transform");if(n){n=n.replace(/,/g," ");var r=null,i=[];n.replace(N,(function(e,t,n){i.push(t,n)}));for(var o=i.length-1;o>0;o-=2){var a=i[o],s=i[o-1];switch(r=r||g.create(),s){case"translate":a=x(a).split(I),g.translate(r,r,[parseFloat(a[0]),parseFloat(a[1]||0)]);break;case"scale":a=x(a).split(I),g.scale(r,r,[parseFloat(a[0]),parseFloat(a[1]||a[0])]);break;case"rotate":a=x(a).split(I),g.rotate(r,r,parseFloat(a[0]));break;case"skew":a=x(a).split(I),console.warn("Skew transform is not supported yet");break;case"matrix":a=x(a).split(I);r[0]=parseFloat(a[0]),r[1]=parseFloat(a[1]),r[2]=parseFloat(a[2]),r[3]=parseFloat(a[3]),r[4]=parseFloat(a[4]),r[5]=parseFloat(a[5]);break}}t.setLocalTransform(r)}}var F=/([^\s:;]+)\s*:\s*([^:;]+)/g;function G(e){var t=e.getAttribute("style"),n={};if(!t)return n;var r,i={};F.lastIndex=0;while(null!=(r=F.exec(t)))i[r[1]]=r[2];for(var o in O)O.hasOwnProperty(o)&&null!=i[o]&&(n[O[o]]=i[o]);return n}function V(e,t,n){var r=t/e.width,i=n/e.height,o=Math.min(r,i),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 j(e,t){var n=new M;return n.parse(e,t)}t.parseXML=C,t.makeViewBoxTransform=V,t.parseSVG=j},"307a":function(e,t,n){var r=n("6d8b"),i=n("eaea"),o=n("3842"),a=[20,140],s=i.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):r.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(){i.prototype.completeVisualOption.apply(this,arguments),r.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]<e[0]&&(t[0]=e[0]),t[1]<e[0]&&(t[1]=e[0]),t},getValueState:function(e){var t=this.option.range,n=this.getExtent();return(t[0]<=n[0]||t[0]<=e)&&(t[1]>=n[1]||e<=t[1])?"inRange":"outOfRange"},findTargetDataIndices:function(e){var t=[];return this.eachTargetSeries((function(n){var r=[],i=n.getData();i.each(this.getDataDimension(i),(function(t,n){e[0]<=t&&t<=e[1]&&r.push(n)}),this),t.push({seriesId:n.id,dataIndex:r})}),this),t},getVisualMeta:function(e){var t=c(this,"outOfRange",this.getExtent()),n=c(this,"inRange",this.option.range.slice()),r=[];function i(t,n){r.push({value:t,color:e(t,n)})}for(var o=0,a=0,s=n.length,u=t.length;a<u&&(!n.length||t[a]<=n[0]);a++)t[a]<n[o]&&i(t[a],"outOfRange");for(var l=1;o<s;o++,l=0)l&&r.length&&i(n[o],"outOfRange"),i(n[o],"inRange");for(l=1;a<u;a++)(!n.length||n[n.length-1]<t[a])&&(l&&(r.length&&i(r[r.length-1].value,"outOfRange"),l=0),i(t[a],"outOfRange"));var d=r.length;return{stops:r,outerColors:[d?r[0].color:"transparent",d?r[d-1].color:"transparent"]}}});function c(e,t,n){if(n[0]===n[1])return n.slice();for(var r=200,i=(n[1]-n[0])/r,o=n[0],a=[],s=0;s<=r&&o<n[1];s++)a.push(o),o+=i;return a.push(n[1]),a}var u=s;e.exports=u},"307b":function(e,t,n){var r=n("6d8b");function i(e,t){var n=this.getAxis(),r=t instanceof Array?t[0]:t,i=(e instanceof Array?e[0]:e)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(r-i)-n.dataToCoord(r+i))}function o(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:r.bind(i,e)}}}e.exports=o},"307d":function(e,t,n){var r=n("6d8b"),i=n("6179"),o=n("3842"),a=n("923d"),s=n("73ca"),c=n("88f0"),u=n("ee1a"),l=u.getStackedDimension,d=function(e,t,n,i){var o=e.getData(),s=i.type;if(!r.isArray(i)&&("min"===s||"max"===s||"average"===s||"median"===s||null!=i.xAxis||null!=i.yAxis)){var c,u;if(null!=i.yAxis||null!=i.xAxis)c=t.getAxis(null!=i.yAxis?"y":"x"),u=r.retrieve(i.yAxis,i.xAxis);else{var d=a.getAxisInfo(i,o,t,e);c=d.valueAxis;var h=l(o,d.valueDataDim);u=a.numCalculate(o,h,s)}var f="x"===c.dim?0:1,p=1-f,g=r.clone(i),m={};g.type=null,g.coord=[],m.coord=[],g.coord[p]=-1/0,m.coord[p]=1/0;var v=n.get("precision");v>=0&&"number"===typeof u&&(u=+u.toFixed(Math.min(v,20))),g.coord[f]=m.coord[f]=u,i=[g,m,{type:s,valueIndex:i.valueIndex,value:u}]}return i=[a.dataTransform(e,i[0]),a.dataTransform(e,i[1]),r.extend({},i[2])],i[2].type=i[2].type||"",r.merge(i[2],i[0]),r.merge(i[2],i[1]),i};function h(e){return!isNaN(e)&&!isFinite(e)}function f(e,t,n,r){var i=1-e,o=r.dimensions[e];return h(t[i])&&h(n[i])&&t[e]===n[e]&&r.getAxis(o).containData(t[e])}function p(e,t){if("cartesian2d"===e.type){var n=t[0].coord,r=t[1].coord;if(n&&r&&(f(1,n,r,e)||f(0,n,r,e)))return!0}return a.dataFilter(e,t[0])&&a.dataFilter(e,t[1])}function g(e,t,n,r,i){var a,s=r.coordinateSystem,c=e.getItemModel(t),u=o.parsePercent(c.get("x"),i.getWidth()),l=o.parsePercent(c.get("y"),i.getHeight());if(isNaN(u)||isNaN(l)){if(r.getMarkerPosition)a=r.getMarkerPosition(e.getValues(e.dimensions,t));else{var d=s.dimensions,f=e.get(d[0],t),p=e.get(d[1],t);a=s.dataToPoint([f,p])}if("cartesian2d"===s.type){var g=s.getAxis("x"),m=s.getAxis("y");d=s.dimensions;h(e.get(d[0],t))?a[0]=g.toGlobalCoord(g.getExtent()[n?0:1]):h(e.get(d[1],t))&&(a[1]=m.toGlobalCoord(m.getExtent()[n?0:1]))}isNaN(u)||(a[0]=u),isNaN(l)||(a[1]=l)}else a=[u,l];e.setItemLayout(t,a)}var m=c.extend({type:"markLine",updateTransform:function(e,t,n){t.eachSeries((function(e){var t=e.markLineModel;if(t){var r=t.getData(),i=t.__from,o=t.__to;i.each((function(t){g(i,t,!0,e,n),g(o,t,!1,e,n)})),r.each((function(e){r.setItemLayout(e,[i.getItemLayout(e),o.getItemLayout(e)])})),this.markerGroupMap.get(e.id).updateLayout()}}),this)},renderSeries:function(e,t,n,i){var o=e.coordinateSystem,a=e.id,c=e.getData(),u=this.markerGroupMap,l=u.get(a)||u.set(a,new s);this.group.add(l.group);var d=v(o,e,t),h=d.from,f=d.to,p=d.line;t.__from=h,t.__to=f,t.setData(p);var m=t.get("symbol"),y=t.get("symbolSize");function _(t,n,r){var o=t.getItemModel(n);g(t,n,r,e,i),t.setItemVisual(n,{symbolRotate:o.get("symbolRotate"),symbolSize:o.get("symbolSize")||y[r?0:1],symbol:o.get("symbol",!0)||m[r?0:1],color:o.get("itemStyle.color")||c.getVisual("color")})}r.isArray(m)||(m=[m,m]),"number"===typeof y&&(y=[y,y]),d.from.each((function(e){_(h,e,!0),_(f,e,!1)})),p.each((function(e){var t=p.getItemModel(e).get("lineStyle.color");p.setItemVisual(e,{color:t||h.getItemVisual(e,"color")}),p.setItemLayout(e,[h.getItemLayout(e),f.getItemLayout(e)]),p.setItemVisual(e,{fromSymbolRotate:h.getItemVisual(e,"symbolRotate"),fromSymbolSize:h.getItemVisual(e,"symbolSize"),fromSymbol:h.getItemVisual(e,"symbol"),toSymbolRotate:f.getItemVisual(e,"symbolRotate"),toSymbolSize:f.getItemVisual(e,"symbolSize"),toSymbol:f.getItemVisual(e,"symbol")})})),l.updateData(p),d.line.eachItemGraphicEl((function(e,n){e.traverse((function(e){e.dataModel=t}))})),l.__keep=!0,l.group.silent=t.get("silent")||e.get("silent")}});function v(e,t,n){var o;o=e?r.map(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return r.defaults({name:e},n)})):[{name:"value",type:"float"}];var s=new i(o,n),c=new i(o,n),u=new i([],n),l=r.map(n.get("data"),r.curry(d,t,e,n));e&&(l=r.filter(l,r.curry(p,e)));var h=e?a.dimValueGetter:function(e){return e.value};return s.initData(r.map(l,(function(e){return e[0]})),null,h),c.initData(r.map(l,(function(e){return e[1]})),null,h),u.initData(r.map(l,(function(e){return e[2]}))),u.hasItemOption=!0,{from:s,to:c,line:u}}e.exports=m},"30a3":function(e,t,n){var r=n("6d8b"),i=n("607d"),o=i.Dispatcher,a=n("98b7"),s=n("06ad"),c=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)};c.prototype={constructor:c,addClip:function(e){this._clips.push(e)},addAnimator:function(e){e.animation=this;for(var t=e.getClips(),n=0;n<t.length;n++)this.addClip(t[n])},removeClip:function(e){var t=r.indexOf(this._clips,e);t>=0&&this._clips.splice(t,1)},removeAnimator:function(e){for(var t=e.getClips(),n=0;n<t.length;n++)this.removeClip(t[n]);e.animation=null},_update:function(){for(var e=(new Date).getTime()-this._pausedTime,t=e-this._time,n=this._clips,r=n.length,i=[],o=[],a=0;a<r;a++){var s=n[a],c=s.step(e,t);c&&(i.push(c),o.push(s))}for(a=0;a<r;)n[a]._needsRemove?(n[a]=n[r-1],n.pop(),r--):a++;r=i.length;for(a=0;a<r;a++)o[a].fire(i[a]);this._time=e,this.onframe(t),this.trigger("frame",t),this.stage.update&&this.stage.update()},_startLoop:function(){var e=this;function t(){e._running&&(a(t),!e._paused&&e._update())}this._running=!0,a(t)},start:function(){this._time=(new Date).getTime(),this._pausedTime=0,this._startLoop()},stop:function(){this._running=!1},pause:function(){this._paused||(this._pauseStart=(new Date).getTime(),this._paused=!0)},resume:function(){this._paused&&(this._pausedTime+=(new Date).getTime()-this._pauseStart,this._paused=!1)},clear:function(){this._clips=[]},isFinished:function(){return!this._clips.length},animate:function(e,t){t=t||{};var n=new s(e,t.loop,t.getter,t.setter);return this.addAnimator(n),n}},r.mixin(c,o);var u=c;e.exports=u},"30b5":function(e,t,n){"use strict";var r=n("c532");function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))})))})),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},"311a":function(e,t,n){var r=n("3eba");n("d01c"),n("5b69"),n("bdc0");var i=n("81ac"),o=n("0e0f");r.registerLayout(i),r.registerVisual(o)},"313e":function(e,t,n){var r=n("3eba");(function(){for(var e in r){if(null==r||!r.hasOwnProperty(e)||"default"===e||"__esModule"===e)return;t[e]=r[e]}})();var i=n("b719");(function(){for(var e in i){if(null==i||!i.hasOwnProperty(e)||"default"===e||"__esModule"===e)return;t[e]=i[e]}})(),n("0352"),n("ef97"),n("94b1"),n("c037"),n("15af"),n("8deb"),n("675c"),n("ef97a"),n("dae1"),n("23ee"),n("07e6"),n("a4b1"),n("0817"),n("311a"),n("fa52"),n("085d"),n("1111"),n("a7e2"),n("5ce2"),n("aadf"),n("6c12f"),n("d716"),n("e057"),n("cd12"),n("2f73"),n("d070"),n("2cfc"),n("f306"),n("9390"),n("7f59"),n("b11c"),n("007d"),n("cb8f"),n("2f31"),n("627c"),n("ee95"),n("db0e"),n("95a8"),n("7e32"),n("0b4b"),n("d28f"),n("0a6d"),n("7f72"),n("e4d1"),n("5450"),n("7419"),n("29a9"),n("f170"),n("8ee0")},"31d9":function(e,t,n){var r=n("6d8b"),i=r.each,o="\0__link_datas",a="\0__link_mainData";function s(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,f(t,n,e),i(n,(function(n){i(t.TRANSFERABLE_METHODS,(function(t){n.wrapMethod(t,r.curry(c,e))}))})),t.wrapMethod("cloneShallow",r.curry(l,e)),i(t.CHANGABLE_METHODS,(function(n){t.wrapMethod(n,r.curry(u,e))})),r.assert(n[t.dataType]===t)}function c(e,t){if(h(this)){var n=r.extend({},this[o]);n[this.dataType]=t,f(t,n,e)}else p(t,this.dataType,this[a],e);return t}function u(e,t){return e.struct&&e.struct.update(this),t}function l(e,t){return i(t[o],(function(n,r){n!==t&&p(n.cloneShallow(),r,t,e)})),t}function d(e){var t=this[a];return null==e||null==t?t:t[o][e]}function h(e){return e[a]===e}function f(e,t,n){e[o]={},i(t,(function(t,r){p(t,r,e,n)}))}function p(e,t,n,r){n[o][t]=e,e[a]=n,e.dataType=t,r.struct&&(e[r.structAttr]=r.struct,r.struct[r.datasAttr[t]]=e),e.getLinkedData=d}var g=s;e.exports=g},"320a":function(e,t,n){for(var r=n("6d8b"),i=n("f279"),o=[126,25],a=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],s=0;s<a.length;s++)for(var c=0;c<a[s].length;c++)a[s][c][0]/=10.5,a[s][c][1]/=-14,a[s][c][0]+=o[0],a[s][c][1]+=o[1];function u(e,t){"china"===e&&t.push(new i("南海诸岛",r.map(a,(function(e){return{type:"polygon",exterior:e}})),o))}e.exports=u},3280:function(e,t,n){"use strict";var r=n("ebb5"),i=n("2ba4"),o=n("e58c"),a=r.aTypedArray,s=r.exportTypedArrayMethod;s("lastIndexOf",(function(e){var t=arguments.length;return i(o,a(this),t>1?[e,arguments[1]]:[e])}))},"32a1":function(e,t,n){var r=n("6d8b"),i=n("7dcf"),o=n("ef6a"),a=n("5576"),s=r.bind,c=i.extend({type:"dataZoom.inside",init:function(e,t){this._range},render:function(e,t,n,i){c.superApply(this,"render",arguments),this._range=e.getPercentRange(),r.each(this.getTargetCoordInfo(),(function(t,i){var o=r.map(t,(function(e){return a.generateCoordId(e.model)}));r.each(t,(function(t){var c=t.model,l={};r.each(["pan","zoom","scrollMove"],(function(e){l[e]=s(u[e],this,t,i)}),this),a.register(n,{coordId:a.generateCoordId(c),allCoordIds:o,containsPoint:function(e,t,n){return c.coordinateSystem.containPoint([t,n])},dataZoomId:e.id,dataZoomModel:e,getRange:l})}),this)}),this)},dispose:function(){a.unregister(this.api,this.dataZoomModel.id),c.superApply(this,"dispose",arguments),this._range=null}}),u={zoom:function(e,t,n,r){var i=this._range,a=i.slice(),s=e.axisModels[0];if(s){var c=d[t](null,[r.originX,r.originY],s,n,e),u=(c.signal>0?c.pixelStart+c.pixelLength-c.pixel:c.pixel-c.pixelStart)/c.pixelLength*(a[1]-a[0])+a[0],l=Math.max(1/r.scale,0);a[0]=(a[0]-u)*l+u,a[1]=(a[1]-u)*l+u;var h=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return o(0,a,[0,100],0,h.minSpan,h.maxSpan),this._range=a,i[0]!==a[0]||i[1]!==a[1]?a:void 0}},pan:l((function(e,t,n,r,i,o){var a=d[r]([o.oldX,o.oldY],[o.newX,o.newY],t,i,n);return a.signal*(e[1]-e[0])*a.pixel/a.pixelLength})),scrollMove:l((function(e,t,n,r,i,o){var a=d[r]([0,0],[o.scrollDelta,o.scrollDelta],t,i,n);return a.signal*(e[1]-e[0])*o.scrollDelta}))};function l(e){return function(t,n,r,i){var a=this._range,s=a.slice(),c=t.axisModels[0];if(c){var u=e(s,c,t,n,r,i);return o(u,s,[0,100],"all"),this._range=s,a[0]!==s[0]||a[1]!==s[1]?s:void 0}}}var d={grid:function(e,t,n,r,i){var o=n.axis,a={},s=i.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,r,i){var o=n.axis,a={},s=i.model.coordinateSystem,c=s.getRadiusAxis().getExtent(),u=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=c[1]-c[0],a.pixelStart=c[0],a.signal=o.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(e,t,n,r,i){var o=n.axis,a=i.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}},h=c;e.exports=h},3301:function(e,t,n){var r=n("6d8b"),i=n("6179"),o=n("b1d4"),a=n("93d0"),s=a.SOURCE_FORMAT_ORIGINAL,c=n("2f45"),u=c.getDimensionTypeByAxis,l=n("e0d3"),d=l.getDataItemValue,h=n("2039"),f=n("8b7f"),p=f.getCoordSysInfoBySeries,g=n("ec6f"),m=n("ee1a"),v=m.enableDataStack,y=n("0f99"),_=y.makeSeriesEncodeForAxisCoordSys;function b(e,t,n){n=n||{},g.isInstance(e)||(e=g.seriesDataToSource(e));var a,s=t.get("coordinateSystem"),c=h.get(s),l=p(t);l&&(a=r.map(l.coordSysDims,(function(e){var t={name:e},n=l.axisMap.get(e);if(n){var r=n.get("type");t.type=u(r)}return t}))),a||(a=c&&(c.getDimensionsInfo?c.getDimensionsInfo():c.dimensions.slice())||["x","y"]);var d,f,m=o(e,{coordDimensions:a,generateCoord:n.generateCoord,encodeDefaulter:n.useEncodeDefaulter?r.curry(_,a,t):null});l&&r.each(m,(function(e,t){var n=e.coordDim,r=l.categoryAxisMap.get(n);r&&(null==d&&(d=t),e.ordinalMeta=r.getOrdinalMeta()),null!=e.otherDims.itemName&&(f=!0)})),f||null==d||(m[d].otherDims.itemName=0);var y=v(t,m),b=new i(m,t);b.setCalculationInfo(y);var x=null!=d&&S(e)?function(e,t,n,r){return r===d?n:this.defaultDimValueGetter(e,t,n,r)}:null;return b.hasItemOption=!1,b.initData(e,null,x),b}function S(e){if(e.sourceFormat===s){var t=x(e.data||[]);return null!=t&&!r.isArray(d(t))}}function x(e){var t=0;while(t<e.length&&null==e[t])t++;return e[t]}var w=b;e.exports=w},3329:function(e,t,n){var r=n("3eba"),i=n("6d8b"),o=n("2306"),a=n("a15a"),s=a.createSymbol,c=n("3842"),u=c.parsePercent,l=c.isNumeric,d=n("e7aa"),h=d.setLabel,f=["itemStyle","borderWidth"],p=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],g=new o.Circle,m=r.extendChartView({type:"pictorialBar",render:function(e,t,n){var r=this.group,i=e.getData(),o=this._data,a=e.coordinateSystem,s=a.getBaseAxis(),c=!!s.isHorizontal(),u=a.grid.getRect(),l={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:a,coordSysExtent:[[u.x,u.x+u.width],[u.y,u.y+u.height]],isHorizontal:c,valueDim:p[+c],categoryDim:p[1-c]};return i.diff(o).add((function(e){if(i.hasValue(e)){var t=k(i,e),n=v(i,e,t,l),o=O(i,l,n);i.setItemGraphicEl(e,o),r.add(o),F(o,l,n)}})).update((function(e,t){var n=o.getItemGraphicEl(t);if(i.hasValue(e)){var a=k(i,e),s=v(i,e,a,l),c=P(i,s);n&&c!==n.__pictorialShapeStr&&(r.remove(n),i.setItemGraphicEl(e,null),n=null),n?R(n,l,s):n=O(i,l,s,!0),i.setItemGraphicEl(e,n),n.__pictorialSymbolMeta=s,r.add(n),F(n,l,s)}else r.remove(n)})).remove((function(e){var t=o.getItemGraphicEl(e);t&&L(o,e,t.__pictorialSymbolMeta.animationModel,t)})).execute(),this._data=i,this.group},dispose:i.noop,remove:function(e,t){var n=this.group,r=this._data;e.get("animation")?r&&r.eachItemGraphicEl((function(t){L(r,t.dataIndex,e,t)})):n.removeAll()}});function v(e,t,n,r){var o=e.getItemLayout(t),a=n.get("symbolRepeat"),s=n.get("symbolClip"),c=n.get("symbolPosition")||"start",l=n.get("symbolRotate"),d=(l||0)*Math.PI/180||0,h=n.get("symbolPatternSize")||2,f=n.isAnimationEnabled(),p={dataIndex:t,layout:o,itemModel:n,symbolType:e.getItemVisual(t,"symbol")||"circle",color:e.getItemVisual(t,"color"),symbolClip:s,symbolRepeat:a,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:h,rotation:d,animationModel:f?n:null,hoverAnimation:f&&n.get("hoverAnimation"),z2:n.getShallow("z",!0)||0};y(n,a,o,r,p),b(e,t,o,a,s,p.boundingLength,p.pxSign,h,r,p),S(n,p.symbolScale,d,r,p);var g=p.symbolSize,m=n.get("symbolOffset");return i.isArray(m)&&(m=[u(m[0],g[0]),u(m[1],g[1])]),x(n,g,o,a,s,m,c,p.valueLineWidth,p.boundingLength,p.repeatCutLength,r,p),p}function y(e,t,n,r,o){var a,s=r.valueDim,c=e.get("symbolBoundingData"),u=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),l=u.toGlobalCoord(u.dataToCoord(0)),d=1-+(n[s.wh]<=0);if(i.isArray(c)){var h=[_(u,c[0])-l,_(u,c[1])-l];h[1]<h[0]&&h.reverse(),a=h[d]}else a=null!=c?_(u,c)-l:t?r.coordSysExtent[s.index][d]-l:n[s.wh];o.boundingLength=a,t&&(o.repeatCutLength=n[s.wh]),o.pxSign=a>0?1:a<0?-1:0}function _(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function b(e,t,n,r,o,a,s,c,l,d){var h=l.valueDim,f=l.categoryDim,p=Math.abs(n[f.wh]),g=e.getItemVisual(t,"symbolSize");i.isArray(g)?g=g.slice():(null==g&&(g="100%"),g=[g,g]),g[f.index]=u(g[f.index],p),g[h.index]=u(g[h.index],r?p:Math.abs(a)),d.symbolSize=g;var m=d.symbolScale=[g[0]/c,g[1]/c];m[h.index]*=(l.isHorizontal?-1:1)*s}function S(e,t,n,r,i){var o=e.get(f)||0;o&&(g.attr({scale:t.slice(),rotation:n}),g.updateTransform(),o/=g.getLineScale(),o*=t[r.valueDim.index]),i.valueLineWidth=o}function x(e,t,n,r,o,a,s,c,d,h,f,p){var g=f.categoryDim,m=f.valueDim,v=p.pxSign,y=Math.max(t[m.index]+c,0),_=y;if(r){var b=Math.abs(d),S=i.retrieve(e.get("symbolMargin"),"15%")+"",x=!1;S.lastIndexOf("!")===S.length-1&&(x=!0,S=S.slice(0,S.length-1)),S=u(S,t[m.index]);var w=Math.max(y+2*S,0),I=x?0:2*S,C=l(r),M=C?r:G((b+I)/w),T=b-M*y;S=T/2/(x?M:M-1),w=y+2*S,I=x?0:2*S,C||"fixed"===r||(M=h?G((Math.abs(h)+I)/w):0),_=M*w-I,p.repeatTimes=M,p.symbolMargin=S}var k=v*(_/2),E=p.pathPosition=[];E[g.index]=n[g.wh]/2,E[m.index]="start"===s?k:"end"===s?d-k:d/2,a&&(E[0]+=a[0],E[1]+=a[1]);var A=p.bundlePosition=[];A[g.index]=n[g.xy],A[m.index]=n[m.xy];var D=p.barRectShape=i.extend({},n);D[m.wh]=v*Math.max(Math.abs(n[m.wh]),Math.abs(E[m.index]+k)),D[g.wh]=n[g.wh];var O=p.clipShape={};O[g.xy]=-n[g.xy],O[g.wh]=f.ecSize[g.wh],O[m.xy]=0,O[m.wh]=n[m.wh]}function w(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 I(e,t,n,r){var i=e.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,c=t.valueDim,u=n.repeatTimes||0,l=0,d=o[t.valueDim.index]+a+2*n.symbolMargin;for(N(e,(function(e){e.__pictorialAnimationIndex=l,e.__pictorialRepeatTimes=u,l<u?U(e,null,p(l),n,r):U(e,null,{scale:[0,0]},n,r,(function(){i.remove(e)})),D(e,n),l++}));l<u;l++){var h=w(n);h.__pictorialAnimationIndex=l,h.__pictorialRepeatTimes=u,i.add(h);var f=p(l);U(h,{position:f.position,scale:[0,0]},{scale:f.scale,rotation:f.rotation},n,r),h.on("mouseover",g).on("mouseout",m),D(h,n)}function p(e){var t=s.slice(),r=n.pxSign,i=e;return("start"===n.symbolRepeatDirection?r>0:r<0)&&(i=u-1-e),t[c.index]=d*(i-u/2+.5)+s[c.index],{position:t,scale:n.symbolScale.slice(),rotation:n.rotation}}function g(){N(e,(function(e){e.trigger("emphasis")}))}function m(){N(e,(function(e){e.trigger("normal")}))}}function C(e,t,n,r){var i=e.__pictorialBundle,o=e.__pictorialMainPath;function a(){this.trigger("emphasis")}function s(){this.trigger("normal")}o?U(o,null,{position:n.pathPosition.slice(),scale:n.symbolScale.slice(),rotation:n.rotation},n,r):(o=e.__pictorialMainPath=w(n),i.add(o),U(o,{position:n.pathPosition.slice(),scale:[0,0],rotation:n.rotation},{scale:n.symbolScale.slice()},n,r),o.on("mouseover",a).on("mouseout",s)),D(o,n)}function M(e,t,n){var r=i.extend({},t.barRectShape),a=e.__pictorialBarRect;a?U(a,null,{shape:r},t,n):(a=e.__pictorialBarRect=new o.Rect({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),e.add(a))}function T(e,t,n,r){if(n.symbolClip){var a=e.__pictorialClipPath,s=i.extend({},n.clipShape),c=t.valueDim,u=n.animationModel,l=n.dataIndex;if(a)o.updateProps(a,{shape:s},u,l);else{s[c.wh]=0,a=new o.Rect({shape:s}),e.__pictorialBundle.setClipPath(a),e.__pictorialClipPath=a;var d={};d[c.wh]=n.clipShape[c.wh],o[r?"updateProps":"initProps"](a,{shape:d},u,l)}}}function k(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=E,n.isAnimationEnabled=A,n}function E(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function A(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function D(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 O(e,t,n,r){var i=new o.Group,a=new o.Group;return i.add(a),i.__pictorialBundle=a,a.attr("position",n.bundlePosition.slice()),n.symbolRepeat?I(i,t,n):C(i,t,n),M(i,n,r),T(i,t,n,r),i.__pictorialShapeStr=P(e,n),i.__pictorialSymbolMeta=n,i}function R(e,t,n){var r=n.animationModel,i=n.dataIndex,a=e.__pictorialBundle;o.updateProps(a,{position:n.bundlePosition.slice()},r,i),n.symbolRepeat?I(e,t,n,!0):C(e,t,n,!0),M(e,n,!0),T(e,t,n,!0)}function L(e,t,n,r){var a=r.__pictorialBarRect;a&&(a.style.text=null);var s=[];N(r,(function(e){s.push(e)})),r.__pictorialMainPath&&s.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),i.each(s,(function(e){o.updateProps(e,{scale:[0,0]},n,t,(function(){r.parent&&r.parent.remove(r)}))})),e.setItemGraphicEl(t,null)}function P(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function N(e,t,n){i.each(e.__pictorialBundle.children(),(function(r){r!==e.__pictorialBarRect&&t.call(n,r)}))}function U(e,t,n,r,i,a){t&&e.attr(t),r.symbolClip&&!i?n&&e.attr(n):n&&o[i?"updateProps":"initProps"](e,n,r.animationModel,r.dataIndex,a)}function F(e,t,n){var r=n.color,a=n.dataIndex,s=n.itemModel,c=s.getModel("itemStyle").getItemStyle(["color"]),u=s.getModel("emphasis.itemStyle").getItemStyle(),l=s.getShallow("cursor");N(e,(function(e){e.setColor(r),e.setStyle(i.defaults({fill:r,opacity:n.opacity},c)),o.setHoverStyle(e,u),l&&(e.cursor=l),e.z2=n.z2}));var d={},f=t.valueDim.posDesc[+(n.boundingLength>0)],p=e.__pictorialBarRect;h(p.style,d,s,r,t.seriesModel,a,f),o.setHoverStyle(p,d)}function G(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var V=m;e.exports=V},"335d":function(e,t,n){},"340d":function(e,t,n){var r=n("6d8b"),i=n("e887"),o=n("4e47"),a=n("80f0"),s=n("eda2"),c=s.windowOpen,u="sunburstRootToNode",l=i.extend({type:"sunburst",init:function(){},render:function(e,t,n,i){var s=this;this.seriesModel=e,this.api=n,this.ecModel=t;var c=e.getData(),u=c.tree.root,l=e.getViewRoot(),d=this.group,h=e.get("renderLabelForZeroData"),f=[];l.eachNode((function(e){f.push(e)}));var p=this._oldChildren||[];if(v(f,p),b(u,l),i&&i.highlight&&i.highlight.piece){var g=e.getShallow("highlightPolicy");i.highlight.piece.onEmphasis(g)}else if(i&&i.unhighlight){var m=this.virtualPiece;!m&&u.children.length&&(m=u.children[0].piece),m&&m.onNormal()}function v(e,t){function n(e){return e.getId()}function i(n,r){var i=null==n?null:e[n],o=null==r?null:t[r];y(i,o)}0===e.length&&0===t.length||new a(t,e,n,n).add(i).update(i).remove(r.curry(i,null)).execute()}function y(n,r){if(h||!n||n.getValue()||(n=null),n!==u&&r!==u)if(r&&r.piece)n?(r.piece.updateData(!1,n,"normal",e,t),c.setItemGraphicEl(n.dataIndex,r.piece)):_(r);else if(n){var i=new o(n,e,t);d.add(i),c.setItemGraphicEl(n.dataIndex,i)}}function _(e){e&&e.piece&&(d.remove(e.piece),e.piece=null)}function b(n,r){if(r.depth>0){s.virtualPiece?s.virtualPiece.updateData(!1,n,"normal",e,t):(s.virtualPiece=new o(n,e,t),d.add(s.virtualPiece)),r.piece._onclickEvent&&r.piece.off("click",r.piece._onclickEvent);var i=function(e){s._rootToNode(r.parentNode)};r.piece._onclickEvent=i,s.virtualPiece.on("click",i)}else s.virtualPiece&&(d.remove(s.virtualPiece),s.virtualPiece=null)}this._initEvents(),this._oldChildren=f},dispose:function(){},_initEvents:function(){var e=this,t=function(t){var n=!1,r=e.seriesModel.getViewRoot();r.eachNode((function(r){if(!n&&r.piece&&r.piece.childAt(0)===t.target){var i=r.getModel().get("nodeClick");if("rootToNode"===i)e._rootToNode(r);else if("link"===i){var o=r.getModel(),a=o.get("link");if(a){var s=o.get("target",!0)||"_blank";c(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:u,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},containPoint:function(e,t){var n=t.getData(),r=n.getItemLayout(0);if(r){var i=e[0]-r.cx,o=e[1]-r.cy,a=Math.sqrt(i*i+o*o);return a<=r.r&&a>=r.r0}}}),d=l;e.exports=d},3410:function(e,t,n){var r=n("23e7"),i=n("d039"),o=n("7b0b"),a=n("e163"),s=n("e177"),c=i((function(){a(1)}));r({target:"Object",stat:!0,forced:c,sham:!s},{getPrototypeOf:function(e){return a(o(e))}})},"342d":function(e,t,n){var r=n("cbe5"),i=n("20c8"),o=n("ee84"),a=Math.sqrt,s=Math.sin,c=Math.cos,u=Math.PI,l=function(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])},d=function(e,t){return(e[0]*t[0]+e[1]*t[1])/(l(e)*l(t))},h=function(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(d(e,t))};function f(e,t,n,r,i,o,l,f,p,g,m){var v=p*(u/180),y=c(v)*(e-n)/2+s(v)*(t-r)/2,_=-1*s(v)*(e-n)/2+c(v)*(t-r)/2,b=y*y/(l*l)+_*_/(f*f);b>1&&(l*=a(b),f*=a(b));var S=(i===o?-1:1)*a((l*l*(f*f)-l*l*(_*_)-f*f*(y*y))/(l*l*(_*_)+f*f*(y*y)))||0,x=S*l*_/f,w=S*-f*y/l,I=(e+n)/2+c(v)*x-s(v)*w,C=(t+r)/2+s(v)*x+c(v)*w,M=h([1,0],[(y-x)/l,(_-w)/f]),T=[(y-x)/l,(_-w)/f],k=[(-1*y-x)/l,(-1*_-w)/f],E=h(T,k);d(T,k)<=-1&&(E=u),d(T,k)>=1&&(E=0),0===o&&E>0&&(E-=2*u),1===o&&E<0&&(E+=2*u),m.addData(g,I,C,l,f,M,E,v,o)}var p=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,g=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function m(e){if(!e)return new i;for(var t,n=0,r=0,o=n,a=r,s=new i,c=i.CMD,u=e.match(p),l=0;l<u.length;l++){for(var d,h=u[l],m=h.charAt(0),v=h.match(g)||[],y=v.length,_=0;_<y;_++)v[_]=parseFloat(v[_]);var b=0;while(b<y){var S,x,w,I,C,M,T,k=n,E=r;switch(m){case"l":n+=v[b++],r+=v[b++],d=c.L,s.addData(d,n,r);break;case"L":n=v[b++],r=v[b++],d=c.L,s.addData(d,n,r);break;case"m":n+=v[b++],r+=v[b++],d=c.M,s.addData(d,n,r),o=n,a=r,m="l";break;case"M":n=v[b++],r=v[b++],d=c.M,s.addData(d,n,r),o=n,a=r,m="L";break;case"h":n+=v[b++],d=c.L,s.addData(d,n,r);break;case"H":n=v[b++],d=c.L,s.addData(d,n,r);break;case"v":r+=v[b++],d=c.L,s.addData(d,n,r);break;case"V":r=v[b++],d=c.L,s.addData(d,n,r);break;case"C":d=c.C,s.addData(d,v[b++],v[b++],v[b++],v[b++],v[b++],v[b++]),n=v[b-2],r=v[b-1];break;case"c":d=c.C,s.addData(d,v[b++]+n,v[b++]+r,v[b++]+n,v[b++]+r,v[b++]+n,v[b++]+r),n+=v[b-2],r+=v[b-1];break;case"S":S=n,x=r;var A=s.len(),D=s.data;t===c.C&&(S+=n-D[A-4],x+=r-D[A-3]),d=c.C,k=v[b++],E=v[b++],n=v[b++],r=v[b++],s.addData(d,S,x,k,E,n,r);break;case"s":S=n,x=r;A=s.len(),D=s.data;t===c.C&&(S+=n-D[A-4],x+=r-D[A-3]),d=c.C,k=n+v[b++],E=r+v[b++],n+=v[b++],r+=v[b++],s.addData(d,S,x,k,E,n,r);break;case"Q":k=v[b++],E=v[b++],n=v[b++],r=v[b++],d=c.Q,s.addData(d,k,E,n,r);break;case"q":k=v[b++]+n,E=v[b++]+r,n+=v[b++],r+=v[b++],d=c.Q,s.addData(d,k,E,n,r);break;case"T":S=n,x=r;A=s.len(),D=s.data;t===c.Q&&(S+=n-D[A-4],x+=r-D[A-3]),n=v[b++],r=v[b++],d=c.Q,s.addData(d,S,x,n,r);break;case"t":S=n,x=r;A=s.len(),D=s.data;t===c.Q&&(S+=n-D[A-4],x+=r-D[A-3]),n+=v[b++],r+=v[b++],d=c.Q,s.addData(d,S,x,n,r);break;case"A":w=v[b++],I=v[b++],C=v[b++],M=v[b++],T=v[b++],k=n,E=r,n=v[b++],r=v[b++],d=c.A,f(k,E,n,r,M,T,w,I,C,d,s);break;case"a":w=v[b++],I=v[b++],C=v[b++],M=v[b++],T=v[b++],k=n,E=r,n+=v[b++],r+=v[b++],d=c.A,f(k,E,n,r,M,T,w,I,C,d,s);break}}"z"!==m&&"Z"!==m||(d=c.Z,s.addData(d),n=o,r=a),t=d}return s.toStatic(),s}function v(e,t){var n=m(e);return t=t||{},t.buildPath=function(e){if(e.setData){e.setData(n.data);var t=e.getContext();t&&e.rebuildPath(t)}else{t=e;n.rebuildPath(t)}},t.applyTransform=function(e){o(n,e),this.dirty(!0)},t}function y(e,t){return new r(v(e,t))}function _(e,t){return r.extend(v(e,t))}function b(e,t){for(var n=[],i=e.length,o=0;o<i;o++){var a=e[o];a.path||a.createPathProxy(),a.__dirtyPath&&a.buildPath(a.path,a.shape,!0),n.push(a.path)}var s=new r(t);return s.createPathProxy(),s.buildPath=function(e){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t)},s}t.createFromString=y,t.extendFromString=_,t.mergePath=b},"342f":function(e,t,n){var r=n("d066");e.exports=r("navigator","userAgent")||""},"347f":function(e,t,n){var r=n("6d8b"),i=n("9850"),o=n("1687"),a=n("2306"),s=n("f934"),c=n("933b"),u=n("08c3"),l=n("a15a"),d=l.createSymbol,h=n("697e"),f=n("3842"),p=n("eda2"),g=p.encodeHTML,m=r.bind,v=r.each,y=Math.PI,_=c.extend({type:"timeline.slider",init:function(e,t){this.api=t,this._axis,this._viewRect,this._timer,this._currentPointer,this._mainGroup,this._labelGroup},render:function(e,t,n,r){if(this.model=e,this.api=n,this.ecModel=t,this.group.removeAll(),e.get("show",!0)){var i=this._layout(e,n),o=this._createGroup("mainGroup"),a=this._createGroup("labelGroup"),s=this._axis=this._createAxis(i,e);e.formatTooltip=function(e){return g(s.scale.getLabel(e))},v(["AxisLine","AxisTick","Control","CurrentPointer"],(function(t){this["_render"+t](i,o,s,e)}),this),this._renderAxisLabel(i,a,s,e),this._position(i,e)}this._doPlayStop()},remove:function(){this._clearTimer(),this.group.removeAll()},dispose:function(){this._clearTimer()},_layout:function(e,t){var n=e.get("label.position"),r=e.get("orient"),i=b(e,t);null==n||"auto"===n?n="horizontal"===r?i.y+i.height/2<t.getHeight()/2?"-":"+":i.x+i.width/2<t.getWidth()/2?"+":"-":isNaN(n)&&(n={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[r][n]);var o,a,s,c,u={horizontal:"center",vertical:n>=0||"+"===n?"left":"right"},l={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},d={horizontal:0,vertical:y/2},h="vertical"===r?i.height:i.width,f=e.getModel("controlStyle"),p=f.get("show",!0),g=p?f.get("itemSize"):0,m=p?f.get("itemGap"):0,v=g+m,_=e.get("label.rotate")||0;_=_*y/180;var S=f.get("position",!0),x=p&&f.get("showPlayBtn",!0),w=p&&f.get("showPrevBtn",!0),I=p&&f.get("showNextBtn",!0),C=0,M=h;return"left"===S||"bottom"===S?(x&&(o=[0,0],C+=v),w&&(a=[C,0],C+=v),I&&(s=[M-g,0],M-=v)):(x&&(o=[M-g,0],M-=v),w&&(a=[0,0],C+=v),I&&(s=[M-g,0],M-=v)),c=[C,M],e.get("inverse")&&c.reverse(),{viewRect:i,mainLength:h,orient:r,rotation:d[r],labelRotation:_,labelPosOpt:n,labelAlign:e.get("label.align")||u[r],labelBaseline:e.get("label.verticalAlign")||e.get("label.baseline")||l[r],playPosition:o,prevBtnPosition:a,nextBtnPosition:s,axisExtent:c,controlSize:g,controlGap:m}},_position:function(e,t){var n=this._mainGroup,r=this._labelGroup,i=e.viewRect;if("vertical"===e.orient){var a=o.create(),s=i.x,c=i.y+i.height;o.translate(a,a,[-s,-c]),o.rotate(a,a,-y/2),o.translate(a,a,[s,c]),i=i.clone(),i.applyTransform(a)}var u=v(i),l=v(n.getBoundingRect()),d=v(r.getBoundingRect()),h=n.position,f=r.position;f[0]=h[0]=u[0][0];var p=e.labelPosOpt;if(isNaN(p)){var g="+"===p?0:1;_(h,l,u,1,g),_(f,d,u,1,1-g)}else{g=p>=0?0:1;_(h,l,u,1,g),f[1]=h[1]+p}function m(e){var t=e.position;e.origin=[u[0][0]-t[0],u[1][0]-t[1]]}function v(e){return[[e.x,e.x+e.width],[e.y,e.y+e.height]]}function _(e,t,n,r,i){e[r]+=n[r][i]-t[r][i]}n.attr("position",h),r.attr("position",f),n.rotation=r.rotation=e.rotation,m(n),m(r)},_createAxis:function(e,t){var n=t.getData(),r=t.get("axisType"),i=h.createScaleByModel(t,r);i.getTicks=function(){return n.mapArray(["value"],(function(e){return e}))};var o=n.getDataExtent("value");i.setExtent(o[0],o[1]),i.niceTicks();var a=new u("value",i,e.axisExtent,r);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,i){var o=n.getExtent();i.get("lineStyle.show")&&t.add(new a.Line({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:r.extend({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(e,t,n,r){var i=r.getData(),o=n.scale.getTicks();v(o,(function(e){var o=n.dataToCoord(e),s=i.getItemModel(e),c=s.getModel("itemStyle"),u=s.getModel("emphasis.itemStyle"),l={position:[o,0],onclick:m(this._changeTimeline,this,e)},d=x(s,c,t,l);a.setHoverStyle(d,u.getItemStyle()),s.get("tooltip")?(d.dataIndex=e,d.dataModel=r):d.dataIndex=d.dataModel=null}),this)},_renderAxisLabel:function(e,t,n,r){var i=n.getLabelModel();if(i.get("show")){var o=r.getData(),s=n.getViewLabels();v(s,(function(r){var i=r.tickValue,s=o.getItemModel(i),c=s.getModel("label"),u=s.getModel("emphasis.label"),l=n.dataToCoord(r.tickValue),d=new a.Text({position:[l,0],rotation:e.labelRotation-e.rotation,onclick:m(this._changeTimeline,this,i),silent:!1});a.setTextStyle(d.style,c,{text:r.formattedLabel,textAlign:e.labelAlign,textVerticalAlign:e.labelBaseline}),t.add(d),a.setHoverStyle(d,a.setTextStyle({},u))}),this)}},_renderControl:function(e,t,n,r){var i=e.controlSize,o=e.rotation,s=r.getModel("controlStyle").getItemStyle(),c=r.getModel("emphasis.controlStyle").getItemStyle(),u=[0,-i/2,i,i],l=r.getPlayState(),d=r.get("inverse",!0);function h(e,n,l,d){if(e){var h={position:e,origin:[i/2,0],rotation:d?-o:0,rectHover:!0,style:s,onclick:l},f=S(r,n,u,h);t.add(f),a.setHoverStyle(f,c)}}h(e.nextBtnPosition,"controlStyle.nextIcon",m(this._changeTimeline,this,d?"-":"+")),h(e.prevBtnPosition,"controlStyle.prevIcon",m(this._changeTimeline,this,d?"+":"-")),h(e.playPosition,"controlStyle."+(l?"stopIcon":"playIcon"),m(this._handlePlayClick,this,!l),!0)},_renderCurrentPointer:function(e,t,n,r){var i=r.getData(),o=r.getCurrentIndex(),a=i.getItemModel(o).getModel("checkpointStyle"),s=this,c={onCreate:function(e){e.draggable=!0,e.drift=m(s._handlePointerDrag,s),e.ondragend=m(s._handlePointerDragend,s),w(e,o,n,r,!0)},onUpdate:function(e){w(e,o,n,r)}};this._currentPointer=x(a,a,this._mainGroup,{},this._currentPointer,c)},_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],r=this._axis,i=f.asc(r.getExtent().slice());n>i[1]&&(n=i[1]),n<i[0]&&(n=i[0]),this._currentPointer.position[0]=n,this._currentPointer.dirty();var o=this._findNearestTick(n),a=this.model;(t||o!==a.getCurrentIndex()&&a.get("realtime"))&&this._changeTimeline(o)},_doPlayStop:function(){function e(){var e=this.model;this._changeTimeline(e.getCurrentIndex()+(e.get("rewind",!0)?-1:1))}this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(m(e,this),this.model.get("playInterval")))},_toAxisCoord:function(e){var t=this._mainGroup.getLocalTransform();return a.applyTransform(e,t,!0)},_findNearestTick:function(e){var t,n=this.model.getData(),r=1/0,i=this._axis;return n.each(["value"],(function(n,o){var a=i.dataToCoord(n),s=Math.abs(a-e);s<r&&(r=s,t=o)})),t},_clearTimer:function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},_changeTimeline:function(e){var t=this.model.getCurrentIndex();"+"===e?e=t+1:"-"===e&&(e=t-1),this.api.dispatchAction({type:"timelineChange",currentIndex:e,from:this.uid})}});function b(e,t){return s.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},e.get("padding"))}function S(e,t,n,r){var o=r.style,s=a.createIcon(e.get(t),r||{},new i(n[0],n[1],n[2],n[3]));return o&&s.setStyle(o),s}function x(e,t,n,i,o,a){var s=t.get("color");if(o)o.setColor(s),n.add(o),a&&a.onUpdate(o);else{var c=e.get("symbol");o=d(c,-1,-1,2,2,s),o.setStyle("strokeNoScale",!0),n.add(o),a&&a.onCreate(o)}var u=t.getItemStyle(["color","symbol","symbolSize"]);o.setStyle(u),i=r.merge({rectHover:!0,z2:100},i,!0);var l=e.get("symbolSize");l=l instanceof Array?l.slice():[+l,+l],l[0]/=2,l[1]/=2,i.scale=l;var h=e.get("symbolOffset");if(h){var p=i.position=i.position||[0,0];p[0]+=f.parsePercent(h[0],l[0]),p[1]+=f.parsePercent(h[1],l[1])}var g=e.get("symbolRotate");return i.rotation=(g||0)*Math.PI/180||0,o.attr(i),o.updateTransform(),o}function w(e,t,n,r,i){if(!e.dragging){var o=r.getModel("checkpointStyle"),a=n.dataToCoord(r.getData().get(["value"],t));i||!o.get("animation",!0)?e.attr({position:[a,0]}):(e.stopAnimation(!0),e.animateTo({position:[a,0]},o.get("animationDuration",!0),o.get("animationEasing",!0)))}}e.exports=_},"357d":function(e,t,n){},3581:function(e,t,n){var r;r=function(){function e(t){return(e="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})(t)}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var c="undefined"!=typeof wx&&"function"==typeof wx.getSystemInfoSync&&Boolean(wx.getSystemInfoSync().fontSizeSetting),u="undefined"!=typeof qq&&"function"==typeof qq.getSystemInfoSync&&Boolean(qq.getSystemInfoSync().fontSizeSetting),l="undefined"!=typeof tt&&"function"==typeof tt.getSystemInfoSync&&Boolean(tt.getSystemInfoSync().fontSizeSetting),d="undefined"!=typeof swan&&"function"==typeof swan.getSystemInfoSync&&Boolean(swan.getSystemInfoSync().fontSizeSetting),h="undefined"!=typeof my&&"function"==typeof my.getSystemInfoSync&&Boolean(my.getSystemInfoSync().fontSizeSetting),f="undefined"!=typeof uni&&"undefined"==typeof window,p=c||u||l||d||h||f,g=u?qq:l?tt:d?swan:h?my:c?wx:f?uni:{},m=function(t){if("object"!==e(t)||null===t)return!1;var n=Object.getPrototypeOf(t);if(null===n)return!0;for(var r=n;null!==Object.getPrototypeOf(r);)r=Object.getPrototypeOf(r);return n===r};function v(e){if(null==e)return!0;if("boolean"==typeof e)return!1;if("number"==typeof e)return 0===e;if("string"==typeof e)return 0===e.length;if("function"==typeof e)return 0===e.length;if(Array.isArray(e))return 0===e.length;if(e instanceof Error)return""===e.message;if(m(e)){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}return!1}var y=function(){function e(){t(this,e)}return r(e,[{key:"request",value:function(e,t){var n=this,r=e.downloadUrl||"",i=(e.method||"PUT").toUpperCase(),o=e.url;if(e.qs){var a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"&",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"=";return v(e)?"":m(e)?Object.keys(e).map((function(r){var i=encodeURIComponent(r)+n;return Array.isArray(e[r])?e[r].map((function(e){return i+encodeURIComponent(e)})).join(t):i+encodeURIComponent(e[r])})).filter(Boolean).join(t):void 0}(e.qs);a&&(o+="".concat(-1===o.indexOf("?")?"?":"&").concat(a))}var s=new XMLHttpRequest;s.open(i,o,!0),s.responseType=e.dataType||"text";var c=e.headers||{};if(!v(c))for(var u in c)c.hasOwnProperty(u)&&"content-length"!==u.toLowerCase()&&"user-agent"!==u.toLowerCase()&&"origin"!==u.toLowerCase()&&"host"!==u.toLowerCase()&&s.setRequestHeader(u,c[u]);return s.onload=function(){t(null,n._xhrRes(s,n._xhrBody(s,r)))},s.onerror=function(e){var r=n._xhrBody(s);if(r)t(e,n._xhrRes(s,r));else{var i=s.statusText;i||0!==s.status||(i="CORS blocked or network error"),t(i,n._xhrRes(s,r))}},e.onProgress&&s.upload&&(s.upload.onprogress=function(t){var n=t.total,r=t.loaded,i=Math.floor(100*r/n);e.onProgress({total:n,loaded:r,percent:(i>=100?100:i)/100})}),s.send(e.resources),s}},{key:"_xhrRes",value:function(e,t){var n={};return e.getAllResponseHeaders().trim().split("\n").forEach((function(e){if(e){var t=e.indexOf(":"),r=e.substr(0,t).trim().toLowerCase(),i=e.substr(t+1).trim();n[r]=i}})),{statusCode:e.status,statusMessage:e.statusText,headers:n,data:t}}},{key:"_xhrBody",value:function(e,t){return 200===e.status&&t?{location:t}:{response:e.responseText}}}]),e}(),_=["unknown","image","video","audio","log"],b=function(){function e(){t(this,e)}return r(e,[{key:"request",value:function(e,t){var n=this,r=e.resources,i=void 0===r?"":r,o=e.headers,c=void 0===o?{}:o,u=e.url,l=e.downloadUrl,d=void 0===l?"":l,f=null,p="",m=d.match(/^(https?:\/\/[^/]+\/)([^/]*\/?)(.*)$/),v={url:u,header:c,name:"file",filePath:i,formData:{key:p=(p=decodeURIComponent(m[3])).indexOf("?")>-1?p.split("?")[0]:p,success_action_status:200,"Content-Type":""},timeout:e.timeout||3e5};if(h){var y=v;y.name,v=a(a({},s(y,["name"])),{},{fileName:"file",fileType:_[e.fileType]})}return(f=g.uploadFile(a(a({},v),{},{success:function(e){n._handleResponse({response:e,downloadUrl:d,callback:t})},fail:function(e){n._handleResponse({response:e,downloadUrl:d,callback:t})}}))).onProgressUpdate((function(t){e.onProgress&&e.onProgress({total:t.totalBytesExpectedToSend,loaded:t.totalBytesSent,percent:Math.floor(t.progress)/100})})),f}},{key:"_handleResponse",value:function(e){var t=e.downloadUrl,n=e.response,r=e.callback,i=n.header,o={};if(i)for(var s in i)i.hasOwnProperty(s)&&(o[s.toLowerCase()]=i[s]);var c=+n.statusCode;200===c?r(null,{statusCode:c,headers:o,data:a(a({},n.data),{},{location:t})}):r(n,{statusCode:c,headers:o,data:void 0})}}]),e}();return function(){function e(){t(this,e),console.log("TIMUploadPlugin.VERSION: ".concat("1.0.4")),this.retry=1,this.tryCount=0,this.systemClockOffset=0,this.httpRequest=p?new b:new y}return r(e,[{key:"uploadFile",value:function(e,t){var n=this;return this.httpRequest.request(e,(function(r,i){r&&n.tryCount<n.retry&&n.allowRetry(r)?(n.tryCount++,n.uploadFile(e,t)):(n.tryCount=0,t(r,i))}))}},{key:"allowRetry",value:function(e){var t=!1,n=!1;if(e){var r=e.headers&&(e.headers.date||e.headers.Date)||e.error&&e.error.ServerTime;try{var i=e.error&&e.error.Code,o=e.error&&e.error.Message;("RequestTimeTooSkewed"===i||"AccessDenied"===i&&"Request has expired"===o)&&(n=!0)}catch(c){}if(n&&r){var a=Date.now(),s=Date.parse(r);Math.abs(a+this.systemClockOffset-s)>=3e4&&(this.systemClockOffset=s-a,t=!0)}else 5===Math.floor(e.statusCode/100)&&(t=!0)}return t}}]),e}()},e.exports=r()},"35a1":function(e,t,n){var r=n("f5df"),i=n("dc4a"),o=n("3f8c"),a=n("b622"),s=a("iterator");e.exports=function(e){if(void 0!=e)return i(e,s)||i(e,"@@iterator")||o[r(e)]}},3648:function(e,t,n){},3790:function(e,t,n){var r=n("3a56"),i=r.extend({type:"dataZoom.slider",layoutMode:"box",defaultOption:{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#2f4554",width:.5,opacity:.3},areaStyle:{color:"rgba(47,69,84,0.3)",opacity:.3}},borderColor:"#ddd",fillerColor:"rgba(167,183,204,0.4)",handleIcon:"M8.2,13.6V3.9H6.3v9.7H3.1v14.9h3.3v9.7h1.8v-9.7h3.3V13.6H8.2z M9.7,24.4H4.8v-1.4h4.9V24.4z M9.7,19.1H4.8v-1.4h4.9V19.1z",handleSize:"100%",handleStyle:{color:"#a7b7cc"},labelPrecision:null,labelFormatter:null,showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#333"}}}),o=i;e.exports=o},"37e8":function(e,t,n){var r=n("83ab"),i=n("aed9"),o=n("9bf2"),a=n("825a"),s=n("fc6a"),c=n("df75");t.f=r&&!i?Object.defineProperties:function(e,t){a(e);var n,r=s(t),i=c(t),u=i.length,l=0;while(u>l)o.f(e,n=i[l++],r[n]);return e}},3842:function(e,t,n){var r=n("6d8b"),i=1e-4;function o(e){return e.replace(/^\s+|\s+$/g,"")}function a(e,t,n,r){var i=t[1]-t[0],o=n[1]-n[0];if(0===i)return 0===o?n[0]:(n[0]+n[1])/2;if(r)if(i>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])/i*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 c(e,t,n){return null==t&&(t=10),t=Math.min(Math.max(0,t),20),e=(+e).toFixed(t),n?e:+e}function u(e){return e.sort((function(e,t){return e-t})),e}function l(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 d(e){var t=e.toString(),n=t.indexOf("e");if(n>0){var r=+t.slice(n+1);return r<0?-r:0}var i=t.indexOf(".");return i<0?0:t.length-1-i}function h(e,t){var n=Math.log,r=Math.LN10,i=Math.floor(n(e[1]-e[0])/r),o=Math.round(n(Math.abs(t[1]-t[0]))/r),a=Math.min(Math.max(-i+o,0),20);return isFinite(a)?a:20}function f(e,t,n){if(!e[t])return 0;var i=r.reduce(e,(function(e,t){return e+(isNaN(t)?0:t)}),0);if(0===i)return 0;var o=Math.pow(10,n),a=r.map(e,(function(e){return(isNaN(e)?0:e)/i*o*100})),s=100*o,c=r.map(a,(function(e){return Math.floor(e)})),u=r.reduce(c,(function(e,t){return e+t}),0),l=r.map(a,(function(e,t){return e-c[t]}));while(u<s){for(var d=Number.NEGATIVE_INFINITY,h=null,f=0,p=l.length;f<p;++f)l[f]>d&&(d=l[f],h=f);++c[h],l[h]=0,++u}return c[t]/o}var p=9007199254740991;function g(e){var t=2*Math.PI;return(e%t+t)%t}function m(e){return e>-i&&e<i}var v=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d\d)(?::(\d\d)(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function y(e){if(e instanceof Date)return e;if("string"===typeof e){var t=v.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return"Z"!==t[8].toUpperCase()&&(n-=t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,+t[7]||0))}return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,+t[7]||0)}return null==e?new Date(NaN):new Date(Math.round(e))}function _(e){return Math.pow(10,b(e))}function b(e){if(0===e)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function S(e,t){var n,r=b(e),i=Math.pow(10,r),o=e/i;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*i,r>=-20?+e.toFixed(r<0?-r:0):e}function x(e,t){var n=(e.length-1)*t+1,r=Math.floor(n),i=+e[r-1],o=n-r;return o?i+o*(e[r]-i):i}function w(e){e.sort((function(e,t){return s(e,t,0)?-1:1}));for(var t=-1/0,n=1,r=0;r<e.length;){for(var i=e[r].interval,o=e[r].close,a=0;a<2;a++)i[a]<=t&&(i[a]=t,o[a]=a?1:1-n),t=i[a],n=o[a];i[0]===i[1]&&o[0]*o[1]!==1?e.splice(r,1):r++}return e;function s(e,t,n){return e.interval[n]<t.interval[n]||e.interval[n]===t.interval[n]&&(e.close[n]-t.close[n]===(n?-1:1)||!n&&s(e,t,1))}}function I(e){return e-parseFloat(e)>=0}t.linearMap=a,t.parsePercent=s,t.round=c,t.asc=u,t.getPrecision=l,t.getPrecisionSafe=d,t.getPixelPrecision=h,t.getPercentWithPrecision=f,t.MAX_SAFE_INTEGER=p,t.remRadian=g,t.isRadianAroundZero=m,t.parseDate=y,t.quantity=_,t.quantityExponent=b,t.nice=S,t.quantile=x,t.reformIntervals=w,t.isNumeric=I},"387f":function(e,t,n){"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,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,status:this.response&&this.response.status?this.response.status:null}},e}},"38a0":function(e,t,n){},"38a2":function(e,t,n){var r=n("2b17"),i=r.retrieveRawValue,o=n("eda2"),a=o.getTooltipMarker,s=o.formatTpl,c=n("e0d3"),u=c.getTooltipRenderMode,l=/\{@(.+?)\}/g,d={getDataParams:function(e,t){var n=this.getData(t),r=this.getRawValue(e,t),i=n.getRawIndex(e),o=n.getName(e),s=n.getRawDataItem(e),c=n.getItemVisual(e,"color"),l=n.getItemVisual(e,"borderColor"),d=this.ecModel.getComponent("tooltip"),h=d&&d.get("renderMode"),f=u(h),p=this.mainType,g="series"===p,m=n.userOutput;return{componentType:p,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:g?this.subType:null,seriesIndex:this.seriesIndex,seriesId:g?this.id:null,seriesName:g?this.name:null,name:o,dataIndex:i,data:s,dataType:t,value:r,color:c,borderColor:l,dimensionNames:m?m.dimensionNames:null,encode:m?m.encode:null,marker:a({color:c,renderMode:f}),$vars:["seriesName","name","value"]}},getFormattedLabel:function(e,t,n,r,o){t=t||"normal";var a=this.getData(n),c=a.getItemModel(e),u=this.getDataParams(e,n);null!=r&&u.value instanceof Array&&(u.value=u.value[r]);var d=c.get("normal"===t?[o||"label","formatter"]:[t,o||"label","formatter"]);if("function"===typeof d)return u.status=t,u.dimensionIndex=r,d(u);if("string"===typeof d){var h=s(d,u);return h.replace(l,(function(t,n){var r=n.length;return"["===n.charAt(0)&&"]"===n.charAt(r-1)&&(n=+n.slice(1,r-1)),i(a,e,n)}))}},getRawValue:function(e,t){return i(this.getData(t),e)},formatTooltip:function(){}};e.exports=d},3901:function(e,t,n){var r=n("282b"),i=r([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),o={getLineStyle:function(e){var t=i(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),r=4*e;return"solid"!==t&&null!=t&&("dashed"===t?[r,r]:[n,n])}};e.exports=o},"392f":function(e,t,n){var r=n("6d8b"),i=r.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;n<e.length;n++)this.addDisplayable(e[n],t)},s.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},s.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var t=this._displayables[e];t.parent=this,t.update(),t.parent=null}for(e=0;e<this._temporaryDisplayables.length;e++){t=this._temporaryDisplayables[e];t.parent=this,t.update(),t.parent=null}},s.prototype.brush=function(e,t){for(var n=this._cursor;n<this._displayables.length;n++){var r=this._displayables[n];r.beforeBrush&&r.beforeBrush(e),r.brush(e,n===this._cursor?null:this._displayables[n-1]),r.afterBrush&&r.afterBrush(e)}this._cursor=n;for(n=0;n<this._temporaryDisplayables.length;n++){r=this._temporaryDisplayables[n];r.beforeBrush&&r.beforeBrush(e),r.brush(e,0===n?null:this._temporaryDisplayables[n-1]),r.afterBrush&&r.afterBrush(e)}this._temporaryDisplayables=[],this.notClear=!0};var c=[];s.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new a(1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var n=this._displayables[t],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform(c)),e.union(r)}this._rect=e}return this._rect},s.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect();if(r.contain(n[0],n[1]))for(var i=0;i<this._displayables.length;i++){var o=this._displayables[i];if(o.contain(e,t))return!0}return!1},i(s,o);var u=s;e.exports=u},3934:function(e,t,n){"use strict";var r=n("c532");e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return function(){return!0}}()},3938:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.radarConfig=void 0;var r={show:!0,name:"",data:[],radarStyle:{lineWidth:1},point:{show:!0,radius:2,style:{fill:"#fff"}},label:{show:!0,offset:[0,0],labelGap:5,formatter:null,style:{fontSize:10}},rLevel:10,animationCurve:"easeOutCubic",animationFrane:50};t.radarConfig=r},3942:function(e,t,n){var r=n("3eba"),i=n("6d8b");r.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(e,t){var n=t.getComponent("timeline");return n&&null!=e.currentIndex&&(n.setCurrentIndex(e.currentIndex),!n.get("loop",!0)&&n.isIndexMax()&&n.setPlayState(!1)),t.resetOption("timeline"),i.defaults({currentIndex:n.option.currentIndex},e)})),r.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(e,t){var n=t.getComponent("timeline");n&&null!=e.playState&&n.setPlayState(e.playState)}))},3970:function(e,t,n){var r=n("4f85"),i=n("3301"),o=n("2039"),a=r.extend({type:"series.heatmap",getInitialData:function(e,t){return i(this.getSource(),this,{generateCoord:"value"})},preventIncremental:function(){var e=o.get(this.get("coordinateSystem"));if(e&&e.dimensions)return"lng"===e.dimensions[0]&&"lat"===e.dimensions[1]},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0}});e.exports=a},"3a56":function(e,t,n){var r=n("4e08"),i=(r.__DEV__,n("3eba")),o=n("6d8b"),a=n("22d1"),s=n("e0d3"),c=n("50e5"),u=n("cc39"),l=o.each,d=c.eachAxisDim,h=i.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 r=f(e);this.settledOption=r,this.mergeDefaultAndTheme(e,n),this.doInit(r)},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),p(this,e);var n=this.settledOption;l([["start","startValue"],["end","endValue"]],(function(e,r){"value"===this._rangePropMode[r]&&(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,r,i){var o=this.dependentModels[t.axis][n],a=o.__dzAxisProxy||(o.__dzAxisProxy=new u(t.name,n,this,i));e[t.name+"_"+n]=a}),this)},_resetTarget:function(){var e=this.option,t=this._judgeAutoMode();d((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;d((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,r=this.dependentModels;if(e){var i="vertical"===t?"y":"x";r[i+"Axis"].length?(n[i+"AxisIndex"]=[0],e=!1):l(r.singleAxis,(function(r){e&&r.get("orient",!0)===t&&(n.singleAxisIndex=[r.componentIndex],e=!1)}))}e&&d((function(t){if(e){var r=[],i=this.dependentModels[t.axis];if(i.length&&!r.length)for(var o=0,a=i.length;o<a;o++)"category"===i[o].get("type")&&r.push(o);n[t.axisIndex]=r,r.length&&(e=!1)}}),this),e&&this.ecModel.eachSeries((function(e){this._isSeriesHasAllAxesTypeOf(e,"value")&&d((function(t){var r=n[t.axisIndex],i=e.get(t.axisIndex),a=e.get(t.axisId),s=e.ecModel.queryComponents({mainType:t.axis,index:i,id:a})[0];i=s.componentIndex,o.indexOf(r,i)<0&&r.push(i)}))}),this)},_autoSetOrient:function(){var e;this.eachTargetAxis((function(t){!e&&(e=t.name)}),this),this.option.orient="y"===e?"vertical":"horizontal"},_isSeriesHasAllAxesTypeOf:function(e,t){var n=!0;return d((function(r){var i=e.get(r.axisIndex),o=this.dependentModels[r.axis][i];o&&o.get("type")===t||(n=!1)}),this),n},_setDefaultThrottle:function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},getFirstTargetAxisModel:function(){var e;return d((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;d((function(r){l(this.get(r.axisIndex),(function(i){e.call(t,r,i,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;l([["start","startValue"],["end","endValue"]],(function(r){null==e[r[0]]&&null==e[r[1]]||(t[r[0]]=n[r[0]]=e[r[0]],t[r[1]]=n[r[1]]=e[r[1]])}),this),p(this,e)},setCalculatedRange:function(e){var t=this.option;l(["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 l(["start","end","startValue","endValue","throttle"],(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}function p(e,t){var n=e._rangePropMode,r=e.get("rangeMode");l([["start","startValue"],["end","endValue"]],(function(e,i){var o=null!=t[e[0]],a=null!=t[e[1]];o&&!a?n[i]="percent":!o&&a?n[i]="value":r?n[i]=r[i]:o&&(n[i]="percent")}))}var g=h;e.exports=g},"3a7b":function(e,t,n){"use strict";var r=n("ebb5"),i=n("b727").findIndex,o=r.aTypedArray,a=r.exportTypedArrayMethod;a("findIndex",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},"3a9b":function(e,t,n){var r=n("e330");e.exports=r({}.isPrototypeOf)},"3bbe":function(e,t,n){var r=n("da84"),i=n("1626"),o=r.String,a=r.TypeError;e.exports=function(e){if("object"==typeof e||i(e))return e;throw a("Can't set "+o(e)+" as a prototype")}},"3c0e":function(e,t,n){},"3c4e":function(e,t,n){"use strict";var r=function(e){return i(e)&&!o(e)};function i(e){return!!e&&"object"===typeof e}function o(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||c(e)}var a="function"===typeof Symbol&&Symbol.for,s=a?Symbol.for("react.element"):60103;function c(e){return e.$$typeof===s}function u(e){return Array.isArray(e)?[]:{}}function l(e,t){var n=t&&!0===t.clone;return n&&r(e)?f(u(e),e,t):e}function d(e,t,n){var i=e.slice();return t.forEach((function(t,o){"undefined"===typeof i[o]?i[o]=l(t,n):r(t)?i[o]=f(e[o],t,n):-1===e.indexOf(t)&&i.push(l(t,n))})),i}function h(e,t,n){var i={};return r(e)&&Object.keys(e).forEach((function(t){i[t]=l(e[t],n)})),Object.keys(t).forEach((function(o){r(t[o])&&e[o]?i[o]=f(e[o],t[o],n):i[o]=l(t[o],n)})),i}function f(e,t,n){var r=Array.isArray(t),i=Array.isArray(e),o=n||{arrayMerge:d},a=r===i;if(a){if(r){var s=o.arrayMerge||d;return s(e,t,n)}return h(e,t,n)}return l(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 p=f;e.exports=p},"3c5d":function(e,t,n){"use strict";var r=n("da84"),i=n("c65b"),o=n("ebb5"),a=n("07fa"),s=n("182d"),c=n("7b0b"),u=n("d039"),l=r.RangeError,d=r.Int8Array,h=d&&d.prototype,f=h&&h.set,p=o.aTypedArray,g=o.exportTypedArrayMethod,m=!u((function(){var e=new Uint8ClampedArray(2);return i(f,e,{length:1,0:3},1),3!==e[1]})),v=m&&o.NATIVE_ARRAY_BUFFER_VIEWS&&u((function(){var e=new d(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));g("set",(function(e){p(this);var t=s(arguments.length>1?arguments[1]:void 0,1),n=c(e);if(m)return i(f,this,n,t);var r=this.length,o=a(n),u=0;if(o+t>r)throw l("Wrong length");while(u<o)this[t+u]=n[u++]}),!m||v)},"3ca3":function(e,t,n){"use strict";var r=n("6547").charAt,i=n("577e"),o=n("69f3"),a=n("7dd0"),s="String Iterator",c=o.set,u=o.getterFor(s);a(String,"String",(function(e){c(this,{type:s,string:i(e),index:0})}),(function(){var e,t=u(this),n=t.string,i=t.index;return i>=n.length?{value:void 0,done:!0}:(e=r(n,i),t.index+=e.length,{value:e,done:!1})}))},"3cd6":function(e,t,n){var r=n("6d8b"),i=n("48a9"),o=n("607d"),a=n("72b6"),s=n("2306"),c=n("3842"),u=n("ef6a"),l=n("cbb0"),d=n("e0d3"),h=c.linearMap,f=r.each,p=Math.min,g=Math.max,m=12,v=6,y=a.extend({type:"visualMap.continuous",init:function(){y.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,r){r&&"selectDataRange"===r.type&&r.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 r=t[1-n];r=null!=r?r+"":"";var i=this.visualMapModel,o=i.get("textGap"),a=i.itemSize,c=this._shapes.barGroup,u=this._applyTransform([a[0]/2,0===n?-o:a[1]+o],c),l=this._applyTransform(0===n?"bottom":"top",c),d=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new s.Text({style:{x:u[0],y:u[1],textVerticalAlign:"horizontal"===d?"middle":l,textAlign:"horizontal"===d?l:"center",text:r,textFont:h.getFont(),textFill:h.getTextColor()}}))}},_renderBar:function(e){var t=this.visualMapModel,n=this._shapes,i=t.itemSize,o=this._orient,a=this._useHandle,s=l.getItemAlign(t,this.api,i),c=n.barGroup=this._createBarGroup(s);c.add(n.outOfRange=_()),c.add(n.inRange=_(null,a?I(this._orient):null,r.bind(this._dragHandle,this,"all",!1),r.bind(this._dragHandle,this,"all",!0)));var u=t.textStyleModel.getTextRect("国"),d=g(u.width,u.height);a&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(c,0,i,d,o,s),this._createHandle(c,1,i,d,o,s)),this._createIndicator(c,i,d,o),e.add(c)},_createHandle:function(e,t,n,i,a){var c=r.bind(this._dragHandle,this,t,!1),u=r.bind(this._dragHandle,this,t,!0),l=_(b(t,i),I(this._orient),c,u);l.position[0]=n[0],e.add(l);var d=this.visualMapModel.textStyleModel,h=new s.Text({draggable:!0,drift:c,onmousemove:function(e){o.stop(e.event)},ondragend:u,style:{x:0,y:0,text:"",textFont:d.getFont(),textFill:d.getTextColor()}});this.group.add(h);var f=["horizontal"===a?i/2:1.5*i,"horizontal"===a?0===t?-1.5*i:1.5*i:0===t?-i/2:i/2],p=this._shapes;p.handleThumbs[t]=l,p.handleLabelPoints[t]=f,p.handleLabels[t]=h},_createIndicator:function(e,t,n,r){var i=_([[0,0]],"move");i.position[0]=t[0],i.attr({invisible:!0,silent:!0}),e.add(i);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 c=["horizontal"===r?n/2:v+3,0],u=this._shapes;u.indicator=i,u.indicatorLabel=a,u.indicatorLabelPoint=c},_dragHandle:function(e,t,n,r){if(this._useHandle){if(this._dragging=!t,!t){var i=this._applyTransform([n,r],this._shapes.barGroup,!0);this._updateInterval(e,i[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():w(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},_resetInterval:function(){var e=this.visualMapModel,t=this._dataInterval=e.getSelected(),n=e.getExtent(),r=[0,e.itemSize[1]];this._handleEnds=[h(t[0],n,r,!0),h(t[1],n,r,!0)]},_updateInterval:function(e,t){t=t||0;var n=this.visualMapModel,r=this._handleEnds,i=[0,n.itemSize[1]];u(t,r,i,e,0);var o=n.getExtent();this._dataInterval=[h(r[0],i,o,!0),h(r[1],i,o,!0)]},_updateView:function(e){var t=this.visualMapModel,n=t.getExtent(),r=this._shapes,i=[0,t.itemSize[1]],o=e?i:this._handleEnds,a=this._createBarVisual(this._dataInterval,n,o,"inRange"),s=this._createBarVisual(n,n,i,"outOfRange");r.inRange.setStyle({fill:a.barColor,opacity:a.opacity}).setShape("points",a.barPoints),r.outOfRange.setStyle({fill:s.barColor,opacity:s.opacity}).setShape("points",s.barPoints),this._updateHandle(o,a)},_createBarVisual:function(e,t,n,r){var o={forceState:r,convertOpacityToAlpha:!0},a=this._makeColorGradient(e,o),s=[this.getControllerVisual(e[0],"symbolSize",o),this.getControllerVisual(e[1],"symbolSize",o)],c=this._createBarPoints(n,s);return{barColor:new i(0,0,0,1,a),barPoints:c,handlesColor:[a[0].color,a[a.length-1].color]}},_makeColorGradient:function(e,t){var n=100,r=[],i=(e[1]-e[0])/n;r.push({color:this.getControllerVisual(e[0],"color",t),offset:0});for(var o=1;o<n;o++){var a=e[0]+i*o;if(a>e[1])break;r.push({color:this.getControllerVisual(a,"color",t),offset:o/n})}return r.push({color:this.getControllerVisual(e[1],"color",t),offset:1}),r},_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,r=this.visualMapModel,i=n.handleThumbs,o=n.handleLabels;f([0,1],(function(a){var c=i[a];c.setStyle("fill",t.handlesColor[a]),c.position[1]=e[a];var u=s.applyTransform(n.handleLabelPoints[a],s.getTransform(c,this.group));o[a].setStyle({x:u[0],y:u[1],text:r.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,r){var i=this.visualMapModel,o=i.getExtent(),a=i.itemSize,c=[0,a[1]],u=h(e,o,c,!0),l=this._shapes,d=l.indicator;if(d){d.position[1]=u,d.attr("invisible",!1),d.setShape("points",S(!!n,r,u,a[1]));var f={convertOpacityToAlpha:!0},p=this.getControllerVisual(e,"color",f);d.setStyle("fill",p);var g=s.applyTransform(l.indicatorLabelPoint,s.getTransform(d,this.group)),m=l.indicatorLabel;m.attr("invisible",!1);var v=this._applyTransform("left",l.barGroup),y=this._orient;m.setStyle({text:(n||"")+i.formatValueText(t),textVerticalAlign:"horizontal"===y?v:"middle",textAlign:"horizontal"===y?"center":v,x:g[0],y:g[1]})}},_enableHoverLinkToSeries:function(){var e=this;this._shapes.barGroup.on("mousemove",(function(t){if(e._hovering=!0,!e._dragging){var n=e.visualMapModel.itemSize,r=e._applyTransform([t.offsetX,t.offsetY],e._shapes.barGroup,!0,!0);r[1]=p(g(0,r[1]),n[1]),e._doHoverLinkToSeries(r[1],0<=r[0]&&r[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,r=n.itemSize;if(n.option.hoverLink){var i=[0,r[1]],o=n.getExtent();e=p(g(i[0],e),i[1]);var a=x(n,o,i),s=[e-a,e+a],c=h(e,i,o,!0),u=[h(s[0],i,o,!0),h(s[1],i,o,!0)];s[0]<i[0]&&(u[0]=-1/0),s[1]>i[1]&&(u[1]=1/0),t&&(u[0]===-1/0?this._showIndicator(c,u[1],"< ",a):u[1]===1/0?this._showIndicator(c,u[0],"> ",a):this._showIndicator(c,c,"≈ ",a));var f=this._hoverLinkDataIndices,m=[];(t||w(n))&&(m=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var v=d.compressBatches(f,m);this._dispatchHighDown("downplay",l.makeHighDownBatch(v[0],n)),this._dispatchHighDown("highlight",l.makeHighDownBatch(v[1],n))}},_hoverLinkFromSeriesMouseOver:function(e){var t=e.target,n=this.visualMapModel;if(t&&null!=t.dataIndex){var r=this.ecModel.getSeriesByIndex(t.seriesIndex);if(n.isTargetSeries(r)){var i=r.getData(t.dataType),o=i.get(n.getDataDimension(i),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",l.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,i){var o=s.getTransform(t,i?null:this.group);return s[r.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 _(e,t,n,r){return new s.Polygon({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(e){o.stop(e.event)},ondragend:r})}function b(e,t){return 0===e?[[0,0],[t,0],[t,-t]]:[[0,0],[t,0],[t,t]]}function S(e,t,n,r){return e?[[0,-p(t,g(n,0))],[v,0],[0,p(t,g(r-n,0))]]:[[0,0],[5,-5],[5,5]]}function x(e,t,n){var r=m/2,i=e.get("hoverLinkDataSize");return i&&(r=h(i,t,n,!0)/2),r}function w(e){var t=e.get("hoverLinkOnHandle");return!!(null==t?e.get("realtime"):t)}function I(e){return"vertical"===e?"ns-resize":"ew-resize"}var C=y;e.exports=C},"3db2":function(e,t,n){},"3e8a":function(e,t,n){},"3eba":function(e,t,n){var r=n("4e08"),i=(r.__DEV__,n("697e7")),o=n("6d8b"),a=n("41ef"),s=n("22d1"),c=n("04f6"),u=n("1fab"),l=n("7e63"),d=n("843e"),h=n("2039"),f=n("ca98"),p=n("fb05"),g=n("d15d"),m=n("6cb7"),v=n("4f85"),y=n("b12f"),_=n("e887"),b=n("2306"),S=n("e0d3"),x=n("88b3"),w=x.throttle,I=n("fd63"),C=n("b809"),M=n("998c"),T=n("69ff"),k=n("c533"),E=n("f219");n("0352");var A=n("ec34"),D=o.assert,O=o.each,R=o.isFunction,L=o.isObject,P=m.parseClassType,N="4.9.0",U={zrender:"4.3.2"},F=1,G=1e3,V=800,j=900,B=5e3,z=1e3,H=1100,W=2e3,q=3e3,$=3500,K=4e3,Y=5e3,J={PROCESSOR:{FILTER:G,SERIES_FILTER:V,STATISTIC:B},VISUAL:{LAYOUT:z,PROGRESSIVE_LAYOUT:H,GLOBAL:W,CHART:q,POST_CHART_LAYOUT:$,COMPONENT:K,BRUSH:Y}},X="__flagInMainProcess",Z="__optionUpdated",Q=/^[a-zA-Z0-9_]+$/;function ee(e,t){return function(n,r,i){t||!this._disposed?(n=n&&n.toLowerCase(),u.prototype[e].call(this,n,r,i)):be(this.id)}}function te(){u.call(this)}function ne(e,t,n){n=n||{},"string"===typeof t&&(t=Oe[t]),this.id,this.group,this._dom=e;var r="canvas",a=this._zr=i.init(e,{renderer:n.renderer||r,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height});this._throttledZrFlush=w(o.bind(a.flush,a),17);t=o.clone(t);t&&p(t,!0),this._theme=t,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new h;var s=this._api=Ie(this);function l(e,t){return e.__prio-t.__prio}c(De,l),c(ke,l),this._scheduler=new T(this,s,ke,De),u.call(this,this._ecEventProcessor=new Ce),this._messageCenter=new te,this._initEvents(),this.resize=o.bind(this.resize,this),this._pendingActions=[],a.animation.on("frame",this._onframe,this),he(a,this),o.setAsPrimitive(this)}te.prototype.on=ee("on",!0),te.prototype.off=ee("off",!0),te.prototype.one=ee("one",!0),o.mixin(te,u);var re=ne.prototype;function ie(e,t,n){if(this._disposed)be(this.id);else{var r,i=this._model,o=this._coordSysMgr.getCoordinateSystems();t=S.parseFinder(i,t);for(var a=0;a<o.length;a++){var s=o[a];if(s[e]&&null!=(r=s[e](i,t,n)))return r}}}re._onframe=function(){if(!this._disposed){var e=this._scheduler;if(this[Z]){var t=this[Z].silent;this[X]=!0,ae(this),oe.update.call(this),this[X]=!1,this[Z]=!1,le.call(this,t),de.call(this,t)}else if(e.unfinished){var n=F,r=this._model,i=this._api;e.unfinished=!1;do{var o=+new Date;e.performSeriesTasks(r),e.performDataProcessorTasks(r),ce(this,r),e.performVisualTasks(r),ve(this,this._model,i,"remain"),n-=+new Date-o}while(n>0&&e.unfinished);e.unfinished||this._zr.flush()}}},re.getDom=function(){return this._dom},re.getZr=function(){return this._zr},re.setOption=function(e,t,n){if(this._disposed)be(this.id);else{var r;if(L(t)&&(n=t.lazyUpdate,r=t.silent,t=t.notMerge),this[X]=!0,!this._model||t){var i=new f(this._api),o=this._theme,a=this._model=new l;a.scheduler=this._scheduler,a.init(null,null,o,i)}this._model.setOption(e,Ee),n?(this[Z]={silent:r},this[X]=!1):(ae(this),oe.update.call(this),this._zr.flush(),this[Z]=!1,this[X]=!1,le.call(this,r),de.call(this,r))}},re.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},re.getModel=function(){return this._model},re.getOption=function(){return this._model&&this._model.getOption()},re.getWidth=function(){return this._zr.getWidth()},re.getHeight=function(){return this._zr.getHeight()},re.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},re.getRenderedCanvas=function(e){if(s.canvasSupported){e=e||{},e.pixelRatio=e.pixelRatio||1,e.backgroundColor=e.backgroundColor||this._model.get("backgroundColor");var t=this._zr;return t.painter.getRenderedCanvas(e)}},re.getSvgDataURL=function(){if(s.svgSupported){var e=this._zr,t=e.storage.getDisplayList();return o.each(t,(function(e){e.stopAnimation(!0)})),e.painter.toDataURL()}},re.getDataURL=function(e){if(!this._disposed){e=e||{};var t=e.excludeComponents,n=this._model,r=[],i=this;O(t,(function(e){n.eachComponent({mainType:e},(function(e){var t=i._componentsMap[e.__viewId];t.group.ignore||(r.push(t),t.group.ignore=!0)}))}));var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.getRenderedCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return O(r,(function(e){e.group.ignore=!1})),o}be(this.id)},re.getConnectedDataURL=function(e){if(this._disposed)be(this.id);else if(s.canvasSupported){var t="svg"===e.type,n=this.group,r=Math.min,a=Math.max,c=1/0;if(Pe[n]){var u=c,l=c,d=-c,h=-c,f=[],p=e&&e.pixelRatio||1;o.each(Le,(function(i,s){if(i.group===n){var c=t?i.getZr().painter.getSvgDom().innerHTML:i.getRenderedCanvas(o.clone(e)),p=i.getDom().getBoundingClientRect();u=r(p.left,u),l=r(p.top,l),d=a(p.right,d),h=a(p.bottom,h),f.push({dom:c,left:p.left,top:p.top})}})),u*=p,l*=p,d*=p,h*=p;var g=d-u,m=h-l,v=o.createCanvas(),y=i.init(v,{renderer:t?"svg":"canvas"});if(y.resize({width:g,height:m}),t){var _="";return O(f,(function(e){var t=e.left-u,n=e.top-l;_+='<g transform="translate('+t+","+n+')">'+e.dom+"</g>"})),y.painter.getSvgRoot().innerHTML=_,e.connectedBackgroundColor&&y.painter.setBackgroundColor(e.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}return e.connectedBackgroundColor&&y.add(new b.Rect({shape:{x:0,y:0,width:g,height:m},style:{fill:e.connectedBackgroundColor}})),O(f,(function(e){var t=new b.Image({style:{x:e.left*p-u,y:e.top*p-l,image:e.dom}});y.add(t)})),y.refreshImmediately(),v.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}},re.convertToPixel=o.curry(ie,"convertToPixel"),re.convertFromPixel=o.curry(ie,"convertFromPixel"),re.containPixel=function(e,t){if(!this._disposed){var n,r=this._model;return e=S.parseFinder(r,e),o.each(e,(function(e,r){r.indexOf("Models")>=0&&o.each(e,(function(e){var i=e.coordinateSystem;if(i&&i.containPoint)n|=!!i.containPoint(t);else if("seriesModels"===r){var o=this._chartsMap[e.__viewId];o&&o.containPoint&&(n|=o.containPoint(t,e))}}),this)}),this),!!n}be(this.id)},re.getVisual=function(e,t){var n=this._model;e=S.parseFinder(n,e,{defaultMainType:"series"});var r=e.seriesModel,i=r.getData(),o=e.hasOwnProperty("dataIndexInside")?e.dataIndexInside:e.hasOwnProperty("dataIndex")?i.indexOfRawIndex(e.dataIndex):null;return null!=o?i.getItemVisual(o,t):i.getVisual(t)},re.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},re.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]};var oe={prepareAndUpdate:function(e){ae(this),oe.update.call(this,e)},update:function(e){var t=this._model,n=this._api,r=this._zr,i=this._coordSysMgr,o=this._scheduler;if(t){o.restoreData(t,e),o.performSeriesTasks(t),i.create(t,n),o.performDataProcessorTasks(t,e),ce(this,t),i.update(t,n),pe(t),o.performVisualTasks(t,e),ge(this,t,n,e);var c=t.get("backgroundColor")||"transparent";if(s.canvasSupported)r.setBackgroundColor(c);else{var u=a.parse(c);c=a.stringify(u,"rgb"),0===u[3]&&(c="transparent")}ye(t,n)}},updateTransform:function(e){var t=this._model,n=this,r=this._api;if(t){var i=[];t.eachComponent((function(o,a){var s=n.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var c=s.updateTransform(a,t,r,e);c&&c.update&&i.push(s)}else i.push(s)}));var a=o.createHashMap();t.eachSeries((function(i){var o=n._chartsMap[i.__viewId];if(o.updateTransform){var s=o.updateTransform(i,t,r,e);s&&s.update&&a.set(i.uid,1)}else a.set(i.uid,1)})),pe(t),this._scheduler.performVisualTasks(t,e,{setDirty:!0,dirtyMap:a}),ve(n,t,r,e,a),ye(t,this._api)}},updateView:function(e){var t=this._model;t&&(_.markUpdateMethod(e,"updateView"),pe(t),this._scheduler.performVisualTasks(t,e,{setDirty:!0}),ge(this,this._model,this._api,e),ye(t,this._api))},updateVisual:function(e){oe.update.call(this,e)},updateLayout:function(e){oe.update.call(this,e)}};function ae(e){var t=e._model,n=e._scheduler;n.restorePipelines(t),n.prepareStageTasks(),fe(e,"component",t,n),fe(e,"chart",t,n),n.plan()}function se(e,t,n,r,i){var a=e._model;if(r){var s={};s[r+"Id"]=n[r+"Id"],s[r+"Index"]=n[r+"Index"],s[r+"Name"]=n[r+"Name"];var c={mainType:r,query:s};i&&(c.subType=i);var u=n.excludeSeriesId;null!=u&&(u=o.createHashMap(S.normalizeToArray(u))),a&&a.eachComponent(c,(function(t){u&&null!=u.get(t.id)||l(e["series"===r?"_chartsMap":"_componentsMap"][t.__viewId])}),e)}else O(e._componentsViews.concat(e._chartsViews),l);function l(r){r&&r.__alive&&r[t]&&r[t](r.__model,a,e._api,n)}}function ce(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries((function(e){r.updateStreamModes(e,n[e.__viewId])}))}function ue(e,t){var n=e.type,r=e.escapeConnect,i=Me[n],a=i.actionInfo,s=(a.update||"update").split(":"),c=s.pop();s=null!=s[0]&&P(s[0]),this[X]=!0;var u=[e],l=!1;e.batch&&(l=!0,u=o.map(e.batch,(function(t){return t=o.defaults(o.extend({},t),e),t.batch=null,t})));var d,h=[],f="highlight"===n||"downplay"===n;O(u,(function(e){d=i.action(e,this._model,this._api),d=d||o.extend({},e),d.type=a.event||d.type,h.push(d),f?se(this,c,e,"series"):s&&se(this,c,e,s.main,s.sub)}),this),"none"===c||f||s||(this[Z]?(ae(this),oe.update.call(this,e),this[Z]=!1):oe[c].call(this,e)),d=l?{type:a.event||n,escapeConnect:r,batch:h}:h[0],this[X]=!1,!t&&this._messageCenter.trigger(d.type,d)}function le(e){var t=this._pendingActions;while(t.length){var n=t.shift();ue.call(this,n,e)}}function de(e){!e&&this.trigger("updated")}function he(e,t){e.on("rendered",(function(){t.trigger("rendered"),!e.animation.isFinished()||t[Z]||t._scheduler.unfinished||t._pendingActions.length||t.trigger("finished")}))}function fe(e,t,n,r){for(var i="component"===t,o=i?e._componentsViews:e._chartsViews,a=i?e._componentsMap:e._chartsMap,s=e._zr,c=e._api,u=0;u<o.length;u++)o[u].__alive=!1;function l(e){var t="_ec_"+e.id+"_"+e.type,u=a[t];if(!u){var l=P(e.type),d=i?y.getClass(l.main,l.sub):_.getClass(l.sub);u=new d,u.init(n,c),a[t]=u,o.push(u),s.add(u.group)}e.__viewId=u.__id=t,u.__alive=!0,u.__model=e,u.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},!i&&r.prepareView(u,e,n,c)}i?n.eachComponent((function(e,t){"series"!==e&&l(t)})):n.eachSeries(l);for(u=0;u<o.length;){var d=o[u];d.__alive?u++:(!i&&d.renderTask.dispose(),s.remove(d.group),d.dispose(n,c),o.splice(u,1),delete a[d.__id],d.__id=d.group.__ecComponentInfo=null)}}function pe(e){e.clearColorPalette(),e.eachSeries((function(e){e.clearColorPalette()}))}function ge(e,t,n,r){me(e,t,n,r),O(e._chartsViews,(function(e){e.__alive=!1})),ve(e,t,n,r),O(e._chartsViews,(function(e){e.__alive||e.remove(t,n)}))}function me(e,t,n,r,i){O(i||e._componentsViews,(function(e){var i=e.__model;e.render(i,t,n,r),we(i,e)}))}function ve(e,t,n,r,i){var o,a=e._scheduler;t.eachSeries((function(t){var n=e._chartsMap[t.__viewId];n.__alive=!0;var s=n.renderTask;a.updatePayload(s,r),i&&i.get(t.uid)&&s.dirty(),o|=s.perform(a.getPerformArgs(s)),n.group.silent=!!t.get("silent"),we(t,n),xe(t,n)})),a.unfinished|=o,Se(e,t),C(e._zr.dom,t)}function ye(e,t){O(Ae,(function(n){n(e,t)}))}re.resize=function(e){if(this._disposed)be(this.id);else{this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption("media"),r=e&&e.silent;this[X]=!0,n&&ae(this),oe.update.call(this),this[X]=!1,le.call(this,r),de.call(this,r)}}},re.showLoading=function(e,t){if(this._disposed)be(this.id);else if(L(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),Re[e]){var n=Re[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}},re.hideLoading=function(){this._disposed?be(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},re.makeActionFromEvent=function(e){var t=o.extend({},e);return t.type=Te[e.type],t},re.dispatchAction=function(e,t){this._disposed?be(this.id):(L(t)||(t={silent:!!t}),Me[e.type]&&this._model&&(this[X]?this._pendingActions.push(e):(ue.call(this,e,t.silent),t.flush?this._zr.flush(!0):!1!==t.flush&&s.browser.weChat&&this._throttledZrFlush(),le.call(this,t.silent),de.call(this,t.silent))))},re.appendData=function(e){if(this._disposed)be(this.id);else{var t=e.seriesIndex,n=this.getModel(),r=n.getSeriesByIndex(t);r.appendData(e),this._scheduler.unfinished=!0}},re.on=ee("on",!1),re.off=ee("off",!1),re.one=ee("one",!1);var _e=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function be(e){}function Se(e,t){var n=e._zr,r=n.storage,i=0;r.traverse((function(e){i++})),i>t.get("hoverLayerThreshold")&&!s.node&&t.eachSeries((function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.group.traverse((function(e){e.useHoverLayer=!0}))}}))}function xe(e,t){var n=e.get("blendMode")||null;t.group.traverse((function(e){e.isGroup||e.style.blend!==n&&e.setStyle("blend",n),e.eachPendingDisplayable&&e.eachPendingDisplayable((function(e){e.setStyle("blend",n)}))}))}function we(e,t){var n=e.get("z"),r=e.get("zlevel");t.group.traverse((function(e){"group"!==e.type&&(null!=n&&(e.z=n),null!=r&&(e.zlevel=r))}))}function Ie(e){var t=e._coordSysMgr;return o.extend(new d(e),{getCoordinateSystems:o.bind(t.getCoordinateSystems,t),getComponentByElement:function(t){while(t){var n=t.__ecComponentInfo;if(null!=n)return e._model.getComponent(n.mainType,n.index);t=t.parent}}})}function Ce(){this.eventInfo}re._initEvents=function(){O(_e,(function(e){var t=function(t){var n,r=this.getModel(),i=t.target,a="globalout"===e;if(a)n={};else if(i&&null!=i.dataIndex){var s=i.dataModel||r.getSeriesByIndex(i.seriesIndex);n=s&&s.getDataParams(i.dataIndex,i.dataType,i)||{}}else i&&i.eventData&&(n=o.extend({},i.eventData));if(n){var c=n.componentType,u=n.componentIndex;"markLine"!==c&&"markPoint"!==c&&"markArea"!==c||(c="series",u=n.seriesIndex);var l=c&&null!=u&&r.getComponent(c,u),d=l&&this["series"===l.mainType?"_chartsMap":"_componentsMap"][l.__viewId];n.event=t,n.type=e,this._ecEventProcessor.eventInfo={targetEl:i,packedEvent:n,model:l,view:d},this.trigger(e,n)}};t.zrEventfulCallAtLast=!0,this._zr.on(e,t,this)}),this),O(Te,(function(e,t){this._messageCenter.on(t,(function(e){this.trigger(t,e)}),this)}),this)},re.isDisposed=function(){return this._disposed},re.clear=function(){this._disposed?be(this.id):this.setOption({series:[]},!0)},re.dispose=function(){if(this._disposed)be(this.id);else{this._disposed=!0,S.setAttribute(this.getDom(),Fe,"");var e=this._api,t=this._model;O(this._componentsViews,(function(n){n.dispose(t,e)})),O(this._chartsViews,(function(n){n.dispose(t,e)})),this._zr.dispose(),delete Le[this.id]}},o.mixin(ne,u),Ce.prototype={constructor:Ce,normalizeQuery:function(e){var t={},n={},r={};if(o.isString(e)){var i=P(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var a=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};o.each(e,(function(e,i){for(var o=!1,c=0;c<a.length;c++){var u=a[c],l=i.lastIndexOf(u);if(l>0&&l===i.length-u.length){var d=i.slice(0,l);"data"!==d&&(t.mainType=d,t[u.toLowerCase()]=e,o=!0)}}s.hasOwnProperty(i)&&(n[i]=e,o=!0),o||(r[i]=e)}))}return{cptQuery:t,dataQuery:n,otherQuery:r}},filter:function(e,t,n){var r=this.eventInfo;if(!r)return!0;var i=r.targetEl,o=r.packedEvent,a=r.model,s=r.view;if(!a||!s)return!0;var c=t.cptQuery,u=t.dataQuery;return l(c,a,"mainType")&&l(c,a,"subType")&&l(c,a,"index","componentIndex")&&l(c,a,"name")&&l(c,a,"id")&&l(u,o,"name")&&l(u,o,"dataIndex")&&l(u,o,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,i,o));function l(e,t,n,r){return null==e[n]||t[r||n]===e[n]}},afterTrigger:function(){this.eventInfo=null}};var Me={},Te={},ke=[],Ee=[],Ae=[],De=[],Oe={},Re={},Le={},Pe={},Ne=new Date-0,Ue=new Date-0,Fe="_echarts_instance_";function Ge(e){var t=0,n=1,r=2,i="__connectUpdateStatus";function o(e,t){for(var n=0;n<e.length;n++){var r=e[n];r[i]=t}}O(Te,(function(a,s){e._messageCenter.on(s,(function(a){if(Pe[e.group]&&e[i]!==t){if(a&&a.escapeConnect)return;var s=e.makeActionFromEvent(a),c=[];O(Le,(function(t){t!==e&&t.group===e.group&&c.push(t)})),o(c,t),O(c,(function(e){e[i]!==n&&e.dispatchAction(s)})),o(c,r)}}))}))}function Ve(e,t,n){var r=We(e);if(r)return r;var i=new ne(e,t,n);return i.id="ec_"+Ne++,Le[i.id]=i,S.setAttribute(e,Fe,i.id),Ge(i),i}function je(e){if(o.isArray(e)){var t=e;e=null,O(t,(function(t){null!=t.group&&(e=t.group)})),e=e||"g_"+Ue++,O(t,(function(t){t.group=e}))}return Pe[e]=!0,e}function Be(e){Pe[e]=!1}var ze=Be;function He(e){"string"===typeof e?e=Le[e]:e instanceof ne||(e=We(e)),e instanceof ne&&!e.isDisposed()&&e.dispose()}function We(e){return Le[S.getAttribute(e,Fe)]}function qe(e){return Le[e]}function $e(e,t){Oe[e]=t}function Ke(e){Ee.push(e)}function Ye(e,t){nt(ke,e,t,G)}function Je(e){Ae.push(e)}function Xe(e,t,n){"function"===typeof t&&(n=t,t="");var r=L(e)?e.type:[e,e={event:t}][0];e.event=(e.event||r).toLowerCase(),t=e.event,D(Q.test(r)&&Q.test(t)),Me[r]||(Me[r]={action:n,actionInfo:e}),Te[t]=r}function Ze(e,t){h.register(e,t)}function Qe(e){var t=h.get(e);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function et(e,t){nt(De,e,t,z,"layout")}function tt(e,t){nt(De,e,t,q,"visual")}function nt(e,t,n,r,i){(R(t)||L(t))&&(n=t,t=r);var o=T.wrapStageHandler(n,i);return o.__prio=t,o.__raw=n,e.push(o),o}function rt(e,t){Re[e]=t}function it(e){return m.extend(e)}function ot(e){return y.extend(e)}function at(e){return v.extend(e)}function st(e){return _.extend(e)}function ct(e){o.$override("createCanvas",e)}function ut(e,t,n){A.registerMap(e,t,n)}function lt(e){var t=A.retrieveMap(e);return t&&t[0]&&{geoJson:t[0].geoJSON,specialAreas:t[0].specialAreas}}tt(W,I),Ke(p),Ye(j,g),rt("default",M),Xe({type:"highlight",event:"highlight",update:"highlight"},o.noop),Xe({type:"downplay",event:"downplay",update:"downplay"},o.noop),$e("light",k),$e("dark",E);var dt={};t.version=N,t.dependencies=U,t.PRIORITY=J,t.init=Ve,t.connect=je,t.disConnect=Be,t.disconnect=ze,t.dispose=He,t.getInstanceByDom=We,t.getInstanceById=qe,t.registerTheme=$e,t.registerPreprocessor=Ke,t.registerProcessor=Ye,t.registerPostUpdate=Je,t.registerAction=Xe,t.registerCoordinateSystem=Ze,t.getCoordinateSystemDimensions=Qe,t.registerLayout=et,t.registerVisual=tt,t.registerLoading=rt,t.extendComponentModel=it,t.extendComponentView=ot,t.extendSeriesModel=at,t.extendChartView=st,t.setCanvasCreator=ct,t.registerMap=ut,t.getMap=lt,t.dataTool=dt;var ht=n("b719");(function(){for(var e in ht)ht.hasOwnProperty(e)&&(t[e]=ht[e])})()},"3f8c":function(e,t){e.exports={}},"3f8e":function(e,t,n){var r=n("8727"),i=r.createElement,o=n("20c8"),a=n("9850"),s=n("1687"),c=n("e86a"),u=n("a73c"),l=n("76a5"),d=o.CMD,h=Array.prototype.join,f="none",p=Math.round,g=Math.sin,m=Math.cos,v=Math.PI,y=2*Math.PI,_=180/v,b=1e-4;function S(e){return p(1e4*e)/1e4}function x(e){return e<b&&e>-b}function w(e,t){var n=t?e.textFill:e.fill;return null!=n&&n!==f}function I(e,t){var n=t?e.textStroke:e.stroke;return null!=n&&n!==f}function C(e,t){t&&M(e,"transform","matrix("+h.call(t,",")+")")}function M(e,t,n){(!n||"linear"!==n.type&&"radial"!==n.type)&&e.setAttribute(t,n)}function T(e,t,n){e.setAttributeNS("http://www.w3.org/1999/xlink",t,n)}function k(e,t,n,r){if(w(t,n)){var i=n?t.textFill:t.fill;i="transparent"===i?f:i,M(e,"fill",i),M(e,"fill-opacity",null!=t.fillOpacity?t.fillOpacity*t.opacity:t.opacity)}else M(e,"fill",f);if(I(t,n)){var o=n?t.textStroke:t.stroke;o="transparent"===o?f:o,M(e,"stroke",o);var a=n?t.textStrokeWidth:t.lineWidth,s=!n&&t.strokeNoScale?r.getLineScale():1;M(e,"stroke-width",a/s),M(e,"paint-order",n?"stroke":"fill"),M(e,"stroke-opacity",null!=t.strokeOpacity?t.strokeOpacity:t.opacity);var c=t.lineDash;c?(M(e,"stroke-dasharray",t.lineDash.join(",")),M(e,"stroke-dashoffset",p(t.lineDashOffset||0))):M(e,"stroke-dasharray",""),t.lineCap&&M(e,"stroke-linecap",t.lineCap),t.lineJoin&&M(e,"stroke-linejoin",t.lineJoin),t.miterLimit&&M(e,"stroke-miterlimit",t.miterLimit)}else M(e,"stroke",f)}function E(e){for(var t=[],n=e.data,r=e.len(),i=0;i<r;){var o=n[i++],a="",s=0;switch(o){case d.M:a="M",s=2;break;case d.L:a="L",s=2;break;case d.Q:a="Q",s=4;break;case d.C:a="C",s=6;break;case d.A:var c=n[i++],u=n[i++],l=n[i++],h=n[i++],f=n[i++],b=n[i++],w=n[i++],I=n[i++],C=Math.abs(b),M=x(C-y)||(I?b>=y:-b>=y),T=b>0?b%y:b%y+y,k=!1;k=!!M||!x(C)&&T>=v===!!I;var E=S(c+l*m(f)),A=S(u+h*g(f));M&&(b=I?y-1e-4:1e-4-y,k=!0,9===i&&t.push("M",E,A));var D=S(c+l*m(f+b)),O=S(u+h*g(f+b));t.push("A",S(l),S(h),p(w*_),+k,+I,D,O);break;case d.Z:a="Z";break;case d.R:D=S(n[i++]),O=S(n[i++]);var R=S(n[i++]),L=S(n[i++]);t.push("M",D,O,"L",D+R,O,"L",D+R,O+L,"L",D,O+L,"L",D,O);break}a&&t.push(a);for(var P=0;P<s;P++)t.push(S(n[i++]))}return t.join(" ")}var A={brush:function(e){var t=e.style,n=e.__svgEl;n||(n=i("path"),e.__svgEl=n),e.path||e.createPathProxy();var r=e.path;if(e.__dirtyPath){r.beginPath(),r.subPixelOptimize=!1,e.buildPath(r,e.shape),e.__dirtyPath=!1;var o=E(r);o.indexOf("NaN")<0&&M(n,"d",o)}k(n,t,!1,e),C(n,e.transform),null!=t.text?U(e,e.getBoundingRect()):j(e)}},D={brush:function(e){var t=e.style,n=t.image;if(n instanceof HTMLImageElement){var r=n.src;n=r}if(n){var o=t.x||0,a=t.y||0,s=t.width,c=t.height,u=e.__svgEl;u||(u=i("image"),e.__svgEl=u),n!==e.__imageSrc&&(T(u,"href",n),e.__imageSrc=n),M(u,"width",s),M(u,"height",c),M(u,"x",o),M(u,"y",a),C(u,e.transform),null!=t.text?U(e,e.getBoundingRect()):j(e)}}},O={},R=new a,L={},P=[],N={left:"start",right:"end",center:"middle",middle:"middle"},U=function(e,t){var n=e.style,r=e.transform,o=e instanceof l||n.transformText;e.__dirty&&u.normalizeTextStyle(n,!0);var a=n.text;if(null!=a&&(a+=""),u.needDrawText(a,n)){null==a&&(a=""),!o&&r&&(R.copy(t),R.applyTransform(r),t=R);var s=e.__textSvgEl;s||(s=i("text"),e.__textSvgEl=s);var d=s.style,h=n.font||c.DEFAULT_FONT,f=s.__computedFont;h!==s.__styleFont&&(d.font=s.__styleFont=h,f=s.__computedFont=d.font);var p=n.textPadding,g=n.textLineHeight,m=e.__textCotentBlock;m&&!e.__dirtyText||(m=e.__textCotentBlock=c.parsePlainText(a,f,p,g,n.truncate));var v=m.outerHeight,y=m.lineHeight;u.getBoxPosition(L,e,n,t);var _=L.baseX,b=L.baseY,S=L.textAlign||"left",x=L.textVerticalAlign;F(s,o,r,n,t,_,b);var w=c.adjustTextY(b,v,x),I=_,C=w;p&&(I=G(_,S,p),C+=p[0]),C+=y/2,k(s,n,!0,e);var M=m.canCacheByTextString,T=e.__tspanList||(e.__tspanList=[]),E=T.length;if(M&&e.__canCacheByTextString&&e.__text===a){if(e.__dirtyText&&E)for(var A=0;A<E;++A)V(T[A],S,I,C+A*y)}else{e.__text=a,e.__canCacheByTextString=M;var D=m.lines,O=D.length;for(A=0;A<O;A++){var P=T[A],N=D[A];P?P.__zrText!==N&&(P.innerHTML="",P.appendChild(document.createTextNode(N))):(P=T[A]=i("tspan"),s.appendChild(P),P.appendChild(document.createTextNode(N))),V(P,S,I,C+A*y)}if(E>O){for(;A<E;A++)s.removeChild(T[A]);T.length=O}}}};function F(e,t,n,r,i,o,a){s.identity(P),t&&n&&s.copy(P,n);var c=r.textRotation;if(i&&c){var u=r.textOrigin;"center"===u?(o=i.width/2+i.x,a=i.height/2+i.y):u&&(o=u[0]+i.x,a=u[1]+i.y),P[4]-=o,P[5]-=a,s.rotate(P,P,c),P[4]+=o,P[5]+=a}C(e,P)}function G(e,t,n){return"right"===t?e-n[1]:"center"===t?e+n[3]/2-n[1]/2:e+n[3]}function V(e,t,n,r){M(e,"dominant-baseline","middle"),M(e,"text-anchor",N[t]),M(e,"x",n),M(e,"y",r)}function j(e){e&&e.__textSvgEl&&(e.__textSvgEl.parentNode&&e.__textSvgEl.parentNode.removeChild(e.__textSvgEl),e.__textSvgEl=null,e.__tspanList=[],e.__text=null)}O.drawRectText=U,O.brush=function(e){var t=e.style;null!=t.text?U(e,!1):j(e)},t.path=A,t.image=D,t.text=O},"3fcc":function(e,t,n){"use strict";var r=n("ebb5"),i=n("b727").map,o=n("b6b7"),a=r.aTypedArray,s=r.exportTypedArrayMethod;s("map",(function(e){return i(a(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(o(e))(t)}))}))},4010:function(e,t,n){"use strict";t.__esModule=!0,t.removeResizeListener=t.addResizeListener=void 0;var r=n("6dd8"),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}var a="undefined"===typeof window,s=function(e){var t=e,n=Array.isArray(t),r=0;for(t=n?t:t[Symbol.iterator]();;){var i;if(n){if(r>=t.length)break;i=t[r++]}else{if(r=t.next(),r.done)break;i=r.value}var o=i,a=o.target.__resizeListeners__||[];a.length&&a.forEach((function(e){e()}))}};t.addResizeListener=function(e,t){a||(e.__resizeListeners__||(e.__resizeListeners__=[],e.__ro__=new i.default(s),e.__ro__.observe(e)),e.__resizeListeners__.push(t))},t.removeResizeListener=function(e,t){e&&e.__resizeListeners__&&(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),e.__resizeListeners__.length||e.__ro__.disconnect())}},"401b":function(e,t){var n="undefined"===typeof Float32Array?Array:Float32Array;function r(e,t){var r=new n(2);return null==e&&(e=0),null==t&&(t=0),r[0]=e,r[1]=t,r}function i(e,t){return e[0]=t[0],e[1]=t[1],e}function o(e){var t=new n(2);return t[0]=e[0],t[1]=e[1],t}function a(e,t,n){return e[0]=t,e[1]=n,e}function s(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function c(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e}function u(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function l(e){return Math.sqrt(h(e))}var d=l;function h(e){return e[0]*e[0]+e[1]*e[1]}var f=h;function p(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e}function g(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e}function m(e,t){return e[0]*t[0]+e[1]*t[1]}function v(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function y(e,t){var n=l(t);return 0===n?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function _(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var b=_;function S(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var x=S;function w(e,t){return e[0]=-t[0],e[1]=-t[1],e}function I(e,t,n,r){return e[0]=t[0]+r*(n[0]-t[0]),e[1]=t[1]+r*(n[1]-t[1]),e}function C(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e}function M(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function T(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}t.create=r,t.copy=i,t.clone=o,t.set=a,t.add=s,t.scaleAndAdd=c,t.sub=u,t.len=l,t.length=d,t.lenSquare=h,t.lengthSquare=f,t.mul=p,t.div=g,t.dot=m,t.scale=v,t.normalize=y,t.distance=_,t.dist=b,t.distanceSquare=S,t.distSquare=x,t.negate=w,t.lerp=I,t.applyTransform=C,t.min=M,t.max=T},"408a":function(e,t,n){var r=n("e330");e.exports=r(1..valueOf)},"40d5":function(e,t,n){var r=n("d039");e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},"414c":function(e,t,n){var r=n("3a56"),i=r.extend({type:"dataZoom.select"});e.exports=i},"417f":function(e,t,n){"use strict";t.__esModule=!0;var r=n("2b0e"),i=a(r),o=n("5924");function a(e){return e&&e.__esModule?e:{default:e}}var s=[],c="@@clickoutsideContext",u=void 0,l=0;function d(e,t,n){return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!(n&&n.context&&r.target&&i.target)||e.contains(r.target)||e.contains(i.target)||e===r.target||n.context.popperElm&&(n.context.popperElm.contains(r.target)||n.context.popperElm.contains(i.target))||(t.expression&&e[c].methodName&&n.context[e[c].methodName]?n.context[e[c].methodName]():e[c].bindingFn&&e[c].bindingFn())}}!i.default.prototype.$isServer&&(0,o.on)(document,"mousedown",(function(e){return u=e})),!i.default.prototype.$isServer&&(0,o.on)(document,"mouseup",(function(e){s.forEach((function(t){return t[c].documentHandler(e,u)}))})),t.default={bind:function(e,t,n){s.push(e);var r=l++;e[c]={id:r,documentHandler:d(e,t,n),methodName:t.expression,bindingFn:t.value}},update:function(e,t,n){e[c].documentHandler=d(e,t,n),e[c].methodName=t.expression,e[c].bindingFn=t.value},unbind:function(e){for(var t=s.length,n=0;n<t;n++)if(s[n][c].id===e[c].id){s.splice(n,1);break}delete e[c]}}},"41ef":function(e,t,n){var r=n("d51b"),i={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function o(e){return e=Math.round(e),e<0?0:e>255?255:e}function a(e){return e=Math.round(e),e<0?0:e>360?360:e}function s(e){return e<0?0:e>1?1:e}function c(e){return e.length&&"%"===e.charAt(e.length-1)?o(parseFloat(e)/100*255):o(parseInt(e,10))}function u(e){return e.length&&"%"===e.charAt(e.length-1)?s(parseFloat(e)/100):s(parseFloat(e))}function l(e,t,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function d(e,t,n){return e+(t-e)*n}function h(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function f(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var p=new r(20),g=null;function m(e,t){g&&f(g,t),g=p.put(e,g||t.slice())}function v(e,t){if(e){t=t||[];var n=p.get(e);if(n)return f(t,n);e+="";var r=e.replace(/ /g,"").toLowerCase();if(r in i)return f(t,i[r]),m(e,t),t;if("#"!==r.charAt(0)){var o=r.indexOf("("),a=r.indexOf(")");if(-1!==o&&a+1===r.length){var s=r.substr(0,o),l=r.substr(o+1,a-(o+1)).split(","),d=1;switch(s){case"rgba":if(4!==l.length)return void h(t,0,0,0,1);d=u(l.pop());case"rgb":return 3!==l.length?void h(t,0,0,0,1):(h(t,c(l[0]),c(l[1]),c(l[2]),d),m(e,t),t);case"hsla":return 4!==l.length?void h(t,0,0,0,1):(l[3]=u(l[3]),y(l,t),m(e,t),t);case"hsl":return 3!==l.length?void h(t,0,0,0,1):(y(l,t),m(e,t),t);default:return}}h(t,0,0,0,1)}else{if(4===r.length){var g=parseInt(r.substr(1),16);return g>=0&&g<=4095?(h(t,(3840&g)>>4|(3840&g)>>8,240&g|(240&g)>>4,15&g|(15&g)<<4,1),m(e,t),t):void h(t,0,0,0,1)}if(7===r.length){g=parseInt(r.substr(1),16);return g>=0&&g<=16777215?(h(t,(16711680&g)>>16,(65280&g)>>8,255&g,1),m(e,t),t):void h(t,0,0,0,1)}}}}function y(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=u(e[1]),i=u(e[2]),a=i<=.5?i*(r+1):i+r-i*r,s=2*i-a;return t=t||[],h(t,o(255*l(s,a,n+1/3)),o(255*l(s,a,n)),o(255*l(s,a,n-1/3)),1),4===e.length&&(t[3]=e[3]),t}function _(e){if(e){var t,n,r=e[0]/255,i=e[1]/255,o=e[2]/255,a=Math.min(r,i,o),s=Math.max(r,i,o),c=s-a,u=(s+a)/2;if(0===c)t=0,n=0;else{n=u<.5?c/(s+a):c/(2-s-a);var l=((s-r)/6+c/2)/c,d=((s-i)/6+c/2)/c,h=((s-o)/6+c/2)/c;r===s?t=h-d:i===s?t=1/3+l-h:o===s&&(t=2/3+d-l),t<0&&(t+=1),t>1&&(t-=1)}var f=[360*t,n,u];return null!=e[3]&&f.push(e[3]),f}}function b(e,t){var n=v(e);if(n){for(var r=0;r<3;r++)n[r]=t<0?n[r]*(1-t)|0:(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:e[r]<0&&(n[r]=0);return k(n,4===n.length?"rgba":"rgb")}}function S(e){var t=v(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function x(e,t,n){if(t&&t.length&&e>=0&&e<=1){n=n||[];var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),c=t[i],u=t[a],l=r-i;return n[0]=o(d(c[0],u[0],l)),n[1]=o(d(c[1],u[1],l)),n[2]=o(d(c[2],u[2],l)),n[3]=s(d(c[3],u[3],l)),n}}var w=x;function I(e,t,n){if(t&&t.length&&e>=0&&e<=1){var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),c=v(t[i]),u=v(t[a]),l=r-i,h=k([o(d(c[0],u[0],l)),o(d(c[1],u[1],l)),o(d(c[2],u[2],l)),s(d(c[3],u[3],l))],"rgba");return n?{color:h,leftIndex:i,rightIndex:a,value:r}:h}}var C=I;function M(e,t,n,r){if(e=v(e),e)return e=_(e),null!=t&&(e[0]=a(t)),null!=n&&(e[1]=u(n)),null!=r&&(e[2]=u(r)),k(y(e),"rgba")}function T(e,t){if(e=v(e),e&&null!=t)return e[3]=s(t),k(e,"rgba")}function k(e,t){if(e&&e.length){var n=e[0]+","+e[1]+","+e[2];return"rgba"!==t&&"hsva"!==t&&"hsla"!==t||(n+=","+e[3]),t+"("+n+")"}}t.parse=v,t.lift=b,t.toHex=S,t.fastLerp=x,t.fastMapToColor=w,t.lerp=I,t.mapToColor=C,t.modifyHSL=M,t.modifyAlpha=T,t.stringify=k},"41f6":function(e,t,n){},"41f8":function(e,t,n){"use strict";t.__esModule=!0;var r="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};t.isVNode=o;var i=n("8122");function o(e){return null!==e&&"object"===("undefined"===typeof e?"undefined":r(e))&&(0,i.hasOwn)(e,"componentOptions")}},"428f":function(e,t,n){var r=n("da84");e.exports=r},"42e5":function(e,t){var n=function(e){this.colorStops=e||[]};n.prototype={constructor:n,addColorStop:function(e,t){this.colorStops.push({offset:e,color:t})}};var r=n;e.exports=r},"42f6":function(e,t,n){var r=n("3eba"),i=n("6d8b"),o=n("22d1"),a=n("07d7"),s=n("82f9"),c=n("eda2"),u=n("3842"),l=n("2306"),d=n("133d"),h=n("f934"),f=n("4319"),p=n("17d6"),g=n("697e"),m=n("ff2e"),v=n("e0d3"),y=v.getTooltipRenderMode,_=i.bind,b=i.each,S=u.parsePercent,x=new l.Rect({shape:{x:-1,y:-1,width:2,height:2}}),w=r.extendComponentView({type:"tooltip",init:function(e,t){if(!o.node){var n,r=e.getComponent("tooltip"),i=r.get("renderMode");this._renderMode=y(i),"html"===this._renderMode?(n=new a(t.getDom(),t,{appendToBody:r.get("appendToBody",!0)}),this._newLine="<br/>"):(n=new s(t),this._newLine="\n"),this._tooltipContent=n}},render:function(e,t,n){if(!o.node){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=n,this._lastDataByCoordSys=null,this._alwaysShowContent=e.get("alwaysShowContent");var r=this._tooltipContent;r.update(e),r.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow()}},_initGlobalListener:function(){var e=this._tooltipModel,t=e.get("triggerOn");p.register("itemTooltip",this._api,_((function(e,n,r){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(n,r):"leave"===e&&this._hide(r))}),this))},_keepShow:function(){var e=this._tooltipModel,t=this._ecModel,n=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==e.get("triggerOn")){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&r.manuallyShowTip(e,t,n,{x:r._lastX,y:r._lastY})}))}},manuallyShowTip:function(e,t,n,r){if(r.from!==this.uid&&!o.node){var i=C(r,n);this._ticket="";var a=r.dataByCoordSys;if(r.tooltip&&null!=r.x&&null!=r.y){var s=x;s.position=[r.x,r.y],s.update(),s.tooltip=r.tooltip,this._tryShow({offsetX:r.x,offsetY:r.y,target:s},i)}else if(a)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:r.dataByCoordSys,tooltipOption:r.tooltipOption},i);else if(null!=r.seriesIndex){if(this._manuallyAxisShowTip(e,t,n,r))return;var c=d(r,t),u=c.point[0],l=c.point[1];null!=u&&null!=l&&this._tryShow({offsetX:u,offsetY:l,position:r.position,target:c.el},i)}else null!=r.x&&null!=r.y&&(n.dispatchAction({type:"updateAxisPointer",x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},manuallyHideTip:function(e,t,n,r){var i=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&i.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,r.from!==this.uid&&this._hide(C(r,n))},_manuallyAxisShowTip:function(e,t,n,r){var i=r.seriesIndex,o=r.dataIndex,a=t.getComponent("axisPointer").coordSysAxesInfo;if(null!=i&&null!=o&&null!=a){var s=t.getSeriesByIndex(i);if(s){var c=s.getData();e=I([c.getItemModel(o),s,(s.coordinateSystem||{}).model,e]);if("axis"===e.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:i,dataIndex:o,position:r.position}),!0}}},_tryShow:function(e,t){var n=e.target,r=this._tooltipModel;if(r){this._lastX=e.offsetX,this._lastY=e.offsetY;var i=e.dataByCoordSys;i&&i.length?this._showAxisTooltip(i,e):n&&null!=n.dataIndex?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(e,n,t)):n&&n.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(e,n,t)):(this._lastDataByCoordSys=null,this._hide(t))}},_showOrMove:function(e,t){var n=e.get("showDelay");t=i.bind(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},_showAxisTooltip:function(e,t){var n=this._ecModel,r=this._tooltipModel,o=[t.offsetX,t.offsetY],a=[],s=[],u=I([t.tooltipOption,r]),l=this._renderMode,d=this._newLine,h={};b(e,(function(e){b(e.dataByAxis,(function(e){var t=n.getComponent(e.axisDim+"Axis",e.axisIndex),r=e.value,o=[];if(t&&null!=r){var u=m.getValueLabel(r,t.axis,n,e.seriesDataIndices,e.valueLabelOpt);i.each(e.seriesDataIndices,(function(a){var c=n.getSeriesByIndex(a.seriesIndex),d=a.dataIndexInside,f=c&&c.getDataParams(d);if(f.axisDim=e.axisDim,f.axisIndex=e.axisIndex,f.axisType=e.axisType,f.axisId=e.axisId,f.axisValue=g.getAxisRawValue(t.axis,r),f.axisValueLabel=u,f){s.push(f);var p,m=c.formatTooltip(d,!0,null,l);if(i.isObject(m)){p=m.html;var v=m.markers;i.merge(h,v)}else p=m;o.push(p)}}));var f=u;"html"!==l?a.push(o.join(d)):a.push((f?c.encodeHTML(f)+d:"")+o.join(d))}}))}),this),a.reverse(),a=a.join(this._newLine+this._newLine);var f=t.position;this._showOrMove(u,(function(){this._updateContentNotChangedOnAxis(e)?this._updatePosition(u,f,o[0],o[1],this._tooltipContent,s):this._showTooltipContent(u,a,s,Math.random(),o[0],o[1],f,void 0,h)}))},_showSeriesItemTooltip:function(e,t,n){var r=this._ecModel,o=t.seriesIndex,a=r.getSeriesByIndex(o),s=t.dataModel||a,c=t.dataIndex,u=t.dataType,l=s.getData(u),d=I([l.getItemModel(c),s,a&&(a.coordinateSystem||{}).model,this._tooltipModel]),h=d.get("trigger");if(null==h||"item"===h){var f,p,g=s.getDataParams(c,u),m=s.formatTooltip(c,!1,u,this._renderMode);i.isObject(m)?(f=m.html,p=m.markers):(f=m,p=null);var v="item_"+s.name+"_"+c;this._showOrMove(d,(function(){this._showTooltipContent(d,f,g,v,e.offsetX,e.offsetY,e.position,e.target,p)})),n({type:"showTip",dataIndexInside:c,dataIndex:l.getRawIndex(c),seriesIndex:o,from:this.uid})}},_showComponentItemTooltip:function(e,t,n){var r=t.tooltip;if("string"===typeof r){var i=r;r={content:i,formatter:i}}var o=new f(r,this._tooltipModel,this._ecModel),a=o.get("content"),s=Math.random();this._showOrMove(o,(function(){this._showTooltipContent(o,a,o.get("formatterParams")||{},s,e.offsetX,e.offsetY,e.position,t)})),n({type:"showTip",from:this.uid})},_showTooltipContent:function(e,t,n,r,i,o,a,s,u){if(this._ticket="",e.get("showContent")&&e.get("show")){var l=this._tooltipContent,d=e.get("formatter");a=a||e.get("position");var h=t;if(d&&"string"===typeof d)h=c.formatTpl(d,n,!0);else if("function"===typeof d){var f=_((function(t,r){t===this._ticket&&(l.setContent(r,u,e),this._updatePosition(e,a,i,o,l,n,s))}),this);this._ticket=r,h=d(n,r,f)}l.setContent(h,u,e),l.show(e),this._updatePosition(e,a,i,o,l,n,s)}},_updatePosition:function(e,t,n,r,o,a,s){var c=this._api.getWidth(),u=this._api.getHeight();t=t||e.get("position");var l=o.getSize(),d=e.get("align"),f=e.get("verticalAlign"),p=s&&s.getBoundingRect().clone();if(s&&p.applyTransform(s.transform),"function"===typeof t&&(t=t([n,r],a,o.el,p,{viewSize:[c,u],contentSize:l.slice()})),i.isArray(t))n=S(t[0],c),r=S(t[1],u);else if(i.isObject(t)){t.width=l[0],t.height=l[1];var g=h.getLayoutRect(t,{width:c,height:u});n=g.x,r=g.y,d=null,f=null}else if("string"===typeof t&&s){var m=k(t,p,l);n=m[0],r=m[1]}else{m=M(n,r,o,c,u,d?null:20,f?null:20);n=m[0],r=m[1]}if(d&&(n-=E(d)?l[0]/2:"right"===d?l[0]:0),f&&(r-=E(f)?l[1]/2:"bottom"===f?l[1]:0),e.get("confine")){m=T(n,r,o,c,u);n=m[0],r=m[1]}o.moveTo(n,r)},_updateContentNotChangedOnAxis:function(e){var t=this._lastDataByCoordSys,n=!!t&&t.length===e.length;return n&&b(t,(function(t,r){var i=t.dataByAxis||{},o=e[r]||{},a=o.dataByAxis||[];n&=i.length===a.length,n&&b(i,(function(e,t){var r=a[t]||{},i=e.seriesDataIndices||[],o=r.seriesDataIndices||[];n&=e.value===r.value&&e.axisType===r.axisType&&e.axisId===r.axisId&&i.length===o.length,n&&b(i,(function(e,t){var r=o[t];n&=e.seriesIndex===r.seriesIndex&&e.dataIndex===r.dataIndex}))}))})),this._lastDataByCoordSys=e,!!n},_hide:function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},dispose:function(e,t){o.node||(this._tooltipContent.dispose(),p.unregister("itemTooltip",t))}});function I(e){var t=e.pop();while(e.length){var n=e.pop();n&&(f.isInstance(n)&&(n=n.get("tooltip",!0)),"string"===typeof n&&(n={formatter:n}),t=new f(n,t,t.ecModel))}return t}function C(e,t){return e.dispatchAction||i.bind(t.dispatchAction,t)}function M(e,t,n,r,i,o,a){var s=n.getOuterSize(),c=s.width,u=s.height;return null!=o&&(e+c+o>r?e-=c+o:e+=o),null!=a&&(t+u+a>i?t-=u+a:t+=a),[e,t]}function T(e,t,n,r,i){var o=n.getOuterSize(),a=o.width,s=o.height;return e=Math.min(e+a,r)-a,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function k(e,t,n){var r=n[0],i=n[1],o=5,a=0,s=0,c=t.width,u=t.height;switch(e){case"inside":a=t.x+c/2-r/2,s=t.y+u/2-i/2;break;case"top":a=t.x+c/2-r/2,s=t.y-i-o;break;case"bottom":a=t.x+c/2-r/2,s=t.y+u+o;break;case"left":a=t.x-r-o,s=t.y+u/2-i/2;break;case"right":a=t.x+c+o,s=t.y+u/2-i/2}return[a,s]}function E(e){return"center"===e||"middle"===e}e.exports=w},4319:function(e,t,n){var r=n("6d8b"),i=n("22d1"),o=n("e0d3"),a=o.makeInner,s=n("625e"),c=s.enableClassExtend,u=s.enableClassCheck,l=n("3901"),d=n("9bdb"),h=n("fe21"),f=n("551f"),p=r.mixin,g=a();function m(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}function v(e,t,n){for(var r=0;r<t.length;r++)if(t[r]&&(e=e&&"object"===typeof e?e[t[r]]:null,null==e))break;return null==e&&n&&(e=n.get(t)),e}function y(e,t){var n=g(e).getParent;return n?n.call(e,t):e.parentModel}m.prototype={constructor:m,init:null,mergeOption:function(e){r.merge(this.option,e,!0)},get:function(e,t){return null==e?this.option:v(this.option,this.parsePath(e),!t&&y(this,e))},getShallow:function(e,t){var n=this.option,r=null==n?n:n[e],i=!t&&y(this,e);return null==r&&i&&(r=i.getShallow(e)),r},getModel:function(e,t){var n,r=null==e?this.option:v(this.option,e=this.parsePath(e));return t=t||(n=y(this,e))&&n.getModel(e),new m(r,t,this.ecModel)},isEmpty:function(){return null==this.option},restoreData:function(){},clone:function(){var e=this.constructor;return new e(r.clone(this.option))},setReadOnly:function(e){},parsePath:function(e){return"string"===typeof e&&(e=e.split(".")),e},customizeGetParent:function(e){g(this).getParent=e},isAnimationEnabled:function(){if(!i.node){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}}},c(m),u(m),p(m,l),p(m,d),p(m,h),p(m,f);var _=m;e.exports=_},4338:function(e,t,n){var r=n("4bf6"),i=n("2039");function o(e,t){var n=[];return e.eachComponent("singleAxis",(function(i,o){var a=new r(i,e,t);a.name="single_"+o,a.resize(i,t),i.coordinateSystem=a,n.push(a)})),e.eachSeries((function(t){if("singleAxis"===t.get("coordinateSystem")){var n=e.queryComponents({mainType:"singleAxis",index:t.get("singleAxisIndex"),id:t.get("singleAxisId")})[0];t.coordinateSystem=n&&n.coordinateSystem}})),n}i.register("single",{create:o,dimensions:r.prototype.dimensions})},4362:function(e,t,n){t.nextTick=function(e){var t=Array.prototype.slice.call(arguments);t.shift(),setTimeout((function(){e.apply(null,t)}),0)},t.platform=t.arch=t.execPath=t.title="browser",t.pid=1,t.browser=!0,t.env={},t.argv=[],t.binding=function(e){throw new Error("No such module. (Possibly not yet loaded)")},function(){var e,r="/";t.cwd=function(){return r},t.chdir=function(t){e||(e=n("df7c")),r=e.resolve(t,r)}}(),t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},"43b8":function(e,t,n){var r=n("2449"),i=r.extend({type:"markArea",defaultOption:{zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}}});e.exports=i},4411:function(e,t,n){for(var r=n("3eba"),i=n("55ac"),o=function(){},a=["treemapZoomToNode","treemapRender","treemapMove"],s=0;s<a.length;s++)r.registerAction({type:a[s],update:"updateView"},o);r.registerAction({type:"treemapRootToNode",update:"updateView"},(function(e,t){function n(t,n){var r=["treemapZoomToNode","treemapRootToNode"],o=i.retrieveTargetInfo(e,r,t);if(o){var a=t.getViewRoot();a&&(e.direction=i.aboveViewRoot(a,o.node)?"rollUp":"drillDown"),t.resetViewRoot(o.node)}}t.eachComponent({mainType:"series",subType:"treemap",query:e},n)}))},4436:function(e,t,n){var r=n("74cb");function i(e){this._target=e.target,this._life=e.life||1e3,this._delay=e.delay||0,this._initialized=!1,this.loop=null!=e.loop&&e.loop,this.gap=e.gap||0,this.easing=e.easing||"Linear",this.onframe=e.onframe,this.ondestroy=e.ondestroy,this.onrestart=e.onrestart,this._pausedTime=0,this._paused=!1}i.prototype={constructor:i,step:function(e,t){if(this._initialized||(this._startTime=e+this._delay,this._initialized=!0),this._paused)this._pausedTime+=t;else{var n=(e-this._startTime-this._pausedTime)/this._life;if(!(n<0)){n=Math.min(n,1);var i=this.easing,o="string"===typeof i?r[i]:i,a="function"===typeof o?o(n):n;return this.fire("frame",a),1===n?this.loop?(this.restart(e),"restart"):(this._needsRemove=!0,"destroy"):null}}},restart:function(e){var t=(e-this._startTime-this._pausedTime)%this._life;this._startTime=e-t+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(e,t){e="on"+e,this[e]&&this[e](this._target,t)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var o=i;e.exports=o},"448a":function(e,t,n){var r=n("2236"),i=n("11b0"),o=n("6613"),a=n("0676");function s(e){return r(e)||i(e)||o(e)||a()}e.exports=s,e.exports.__esModule=!0,e.exports["default"]=e.exports},"44ad":function(e,t,n){var r=n("da84"),i=n("e330"),o=n("d039"),a=n("c6b6"),s=r.Object,c=i("".split);e.exports=o((function(){return!s("z").propertyIsEnumerable(0)}))?function(e){return"String"==a(e)?c(e,""):s(e)}:s},"44d2":function(e,t,n){var r=n("b622"),i=n("7c73"),o=n("9bf2"),a=r("unscopables"),s=Array.prototype;void 0==s[a]&&o.f(s,a,{configurable:!0,value:i(null)}),e.exports=function(e){s[a][e]=!0}},"44de":function(e,t,n){var r=n("da84");e.exports=function(e,t){var n=r.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}},"44e7":function(e,t,n){var r=n("861d"),i=n("c6b6"),o=n("b622"),a=o("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[a])?!!t:"RegExp"==i(e))}},"44fb":function(e,t,n){var r=n("3eba"),i=n("55ac"),o="sunburstRootToNode";r.registerAction({type:o,update:"updateView"},(function(e,t){function n(t,n){var r=i.retrieveTargetInfo(e,[o],t);if(r){var a=t.getViewRoot();a&&(e.direction=i.aboveViewRoot(a,r.node)?"rollUp":"drillDown"),t.resetViewRoot(r.node)}}t.eachComponent({mainType:"series",subType:"sunburst",query:e},n)}));var a="sunburstHighlight";r.registerAction({type:a,update:"updateView"},(function(e,t){function n(t,n){var r=i.retrieveTargetInfo(e,[a],t);r&&(e.highlight=r.node)}t.eachComponent({mainType:"series",subType:"sunburst",query:e},n)}));var s="sunburstUnhighlight";r.registerAction({type:s,update:"updateView"},(function(e,t){function n(t,n){e.unhighlight=!0}t.eachComponent({mainType:"series",subType:"sunburst",query:e},n)}))},"450d":function(e,t,n){},4527:function(e,t,n){var r=n("2306"),i=n("6d8b");function o(e,t,n){r.Group.call(this),this._createPolyline(e,t,n)}var a=o.prototype;a._createPolyline=function(e,t,n){var i=e.getItemLayout(t),o=new r.Polyline({shape:{points:i}});this.add(o),this._updateCommonStl(e,t,n)},a.updateData=function(e,t,n){var i=e.hostModel,o=this.childAt(0),a={shape:{points:e.getItemLayout(t)}};r.updateProps(o,a,i,t),this._updateCommonStl(e,t,n)},a._updateCommonStl=function(e,t,n){var o=this.childAt(0),a=e.getItemModel(t),s=e.getItemVisual(t,"color"),c=n&&n.lineStyle,u=n&&n.hoverLineStyle;n&&!e.hasItemOption||(c=a.getModel("lineStyle").getLineStyle(),u=a.getModel("emphasis.lineStyle").getLineStyle()),o.useStyle(i.defaults({strokeNoScale:!0,fill:"none",stroke:s},c)),o.hoverStyle=u,r.setHoverStyle(this)},a.updateLayout=function(e,t){var n=this.childAt(0);n.setShape("points",e.getItemLayout(t))},i.inherits(o,r.Group);var s=o;e.exports=s},4573:function(e,t,n){var r=n("cbe5"),i=r.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=2*Math.PI;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,i,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,i,!0)}});e.exports=i},4650:function(e,t,n){var r=n("3eba"),i=n("6d8b");function o(e,t,n){var r,o={},a="toggleSelected"===e;return n.eachComponent("legend",(function(n){a&&null!=r?n[r?"select":"unSelect"](t.name):"allSelect"===e||"inverseSelect"===e?n[e]():(n[e](t.name),r=n.isSelected(t.name));var s=n.getData();i.each(s,(function(e){var t=e.get("name");if("\n"!==t&&""!==t){var r=n.isSelected(t);o.hasOwnProperty(t)?o[t]=o[t]&&r:o[t]=r}}))})),"allSelect"===e||"inverseSelect"===e?{selected:o}:{name:t.name,selected:o}}r.registerAction("legendToggleSelect","legendselectchanged",i.curry(o,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",i.curry(o,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",i.curry(o,"inverseSelect")),r.registerAction("legendSelect","legendselected",i.curry(o,"select")),r.registerAction("legendUnSelect","legendunselected",i.curry(o,"unSelect"))},4656:function(e,t,n){},"466d":function(e,t,n){"use strict";var r=n("c65b"),i=n("d784"),o=n("825a"),a=n("50c4"),s=n("577e"),c=n("1d80"),u=n("dc4a"),l=n("8aa5"),d=n("14c3");i("match",(function(e,t,n){return[function(t){var n=c(this),i=void 0==t?void 0:u(t,e);return i?r(i,t,n):new RegExp(t)[e](s(n))},function(e){var r=o(this),i=s(e),c=n(t,r,i);if(c.done)return c.value;if(!r.global)return d(r,i);var u=r.unicode;r.lastIndex=0;var h,f=[],p=0;while(null!==(h=d(r,i))){var g=s(h[0]);f[p]=g,""===g&&(r.lastIndex=l(i,a(r.lastIndex),u)),p++}return 0===p?null:f}]}))},"467f":function(e,t,n){"use strict";var r=n("2d83");e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},"46bb":function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.grid=h;var i=r(n("278c")),o=r(n("9523")),a=n("18ad"),s=n("5557"),c=n("9d85"),u=n("becb");function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){(0,o["default"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.grid;n=(0,u.deepMerge)((0,s.deepClone)(c.gridConfig,!0),n||{}),(0,a.doUpdate)({chart:e,series:[n],key:"grid",getGraphConfig:f})}function f(e,t){var n=e.animationCurve,r=e.animationFrame,i=e.rLevel,o=p(e,t),a=m(e);return t.chart.gridArea=d({},o),[{name:"rect",index:i,animationCurve:n,animationFrame:r,shape:o,style:a}]}function p(e,t){var n=(0,i["default"])(t.chart.render.area,2),r=n[0],o=n[1],a=g(e.left,r),s=g(e.right,r),c=g(e.top,o),u=g(e.bottom,o),l=r-a-s,d=o-c-u;return{x:a,y:c,w:l,h:d}}function g(e,t){return"number"===typeof e?e:"string"!==typeof e?0:t*parseInt(e)/100}function m(e){var t=e.style;return t}},"470c":function(e,t,n){},"471e":function(e,t){function n(e){var t=e.getRect(),n=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(t,n){return e.dataToPoint(t,n)}}}}e.exports=n},4784:function(e,t,n){var r=n("3eba"),i=n("f706"),o=n("c8ef"),a=n("1687"),s=n("87c3"),c=r.extendChartView({type:"effectScatter",init:function(){this._symbolDraw=new i(o)},render:function(e,t,n){var r=e.getData(),i=this._symbolDraw;i.updateData(r),this.group.add(i.group)},updateTransform:function(e,t,n){var r=e.getData();this.group.dirty();var i=s().reset(e);i.progress&&i.progress({start:0,end:r.count()},r),this._symbolDraw.updateLayout(r)},_updateGroupTransform:function(e){var t=e.coordinateSystem;t&&t.getRoamTransform&&(this.group.transform=a.clone(t.getRoamTransform()),this.group.decomposeTransform())},remove:function(e,t){this._symbolDraw&&this._symbolDraw.remove(t)},dispose:function(){}});e.exports=c},"480e":function(e,t,n){var r=n("4e08"),i=(r.__DEV__,n("3eba")),o=n("2306"),a=n("cd84"),s=n("6d8b");function c(e,t,n){var r=e[1]-e[0];t=s.map(t,(function(t){return{interval:[(t.interval[0]-e[0])/r,(t.interval[1]-e[0])/r]}}));var i=t.length,o=0;return function(e){for(var r=o;r<i;r++){var a=t[r].interval;if(a[0]<=e&&e<=a[1]){o=r;break}}if(r===i)for(r=o-1;r>=0;r--){a=t[r].interval;if(a[0]<=e&&e<=a[1]){o=r;break}}return r>=0&&r<i&&n[r]}}function u(e,t){var n=e[1]-e[0];return t=[(t[0]-e[0])/n,(t[1]-e[0])/n],function(e){return e>=t[0]&&e<=t[1]}}function l(e){var t=e.dimensions;return"lng"===t[0]&&"lat"===t[1]}var d=i.extendChartView({type:"heatmap",render:function(e,t,n){var r;t.eachComponent("visualMap",(function(t){t.eachTargetSeries((function(n){n===e&&(r=t)}))})),this.group.removeAll(),this._incrementalDisplayable=null;var i=e.coordinateSystem;"cartesian2d"===i.type||"calendar"===i.type?this._renderOnCartesianAndCalendar(e,n,0,e.getData().count()):l(i)&&this._renderOnGeo(i,e,r,n)},incrementalPrepareRender:function(e,t,n){this.group.removeAll()},incrementalRender:function(e,t,n,r){var i=t.coordinateSystem;i&&this._renderOnCartesianAndCalendar(t,r,e.start,e.end,!0)},_renderOnCartesianAndCalendar:function(e,t,n,r,i){var a,c,u=e.coordinateSystem;if("cartesian2d"===u.type){var l=u.getAxis("x"),d=u.getAxis("y");a=l.getBandWidth(),c=d.getBandWidth()}for(var h=this.group,f=e.getData(),p="itemStyle",g="emphasis.itemStyle",m="label",v="emphasis.label",y=e.getModel(p).getItemStyle(["color"]),_=e.getModel(g).getItemStyle(),b=e.getModel(m),S=e.getModel(v),x=u.type,w="cartesian2d"===x?[f.mapDimension("x"),f.mapDimension("y"),f.mapDimension("value")]:[f.mapDimension("time"),f.mapDimension("value")],I=n;I<r;I++){var C;if("cartesian2d"===x){if(isNaN(f.get(w[2],I)))continue;var M=u.dataToPoint([f.get(w[0],I),f.get(w[1],I)]);C=new o.Rect({shape:{x:Math.floor(Math.round(M[0])-a/2),y:Math.floor(Math.round(M[1])-c/2),width:Math.ceil(a),height:Math.ceil(c)},style:{fill:f.getItemVisual(I,"color"),opacity:f.getItemVisual(I,"opacity")}})}else{if(isNaN(f.get(w[1],I)))continue;C=new o.Rect({z2:1,shape:u.dataToRect([f.get(w[0],I)]).contentShape,style:{fill:f.getItemVisual(I,"color"),opacity:f.getItemVisual(I,"opacity")}})}var T=f.getItemModel(I);f.hasItemOption&&(y=T.getModel(p).getItemStyle(["color"]),_=T.getModel(g).getItemStyle(),b=T.getModel(m),S=T.getModel(v));var k=e.getRawValue(I),E="-";k&&null!=k[2]&&(E=k[2]),o.setLabelStyle(y,_,b,S,{labelFetcher:e,labelDataIndex:I,defaultText:E,isRectText:!0}),C.setStyle(y),o.setHoverStyle(C,f.hasItemOption?_:s.extend({},_)),C.incremental=i,i&&(C.useHoverLayer=!0),h.add(C),f.setItemGraphicEl(I,C)}},_renderOnGeo:function(e,t,n,r){var i=n.targetVisuals.inRange,s=n.targetVisuals.outOfRange,l=t.getData(),d=this._hmLayer||this._hmLayer||new a;d.blurSize=t.get("blurSize"),d.pointSize=t.get("pointSize"),d.minOpacity=t.get("minOpacity"),d.maxOpacity=t.get("maxOpacity");var h=e.getViewRect().clone(),f=e.getRoamTransform();h.applyTransform(f);var p=Math.max(h.x,0),g=Math.max(h.y,0),m=Math.min(h.width+h.x,r.getWidth()),v=Math.min(h.height+h.y,r.getHeight()),y=m-p,_=v-g,b=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],S=l.mapArray(b,(function(t,n,r){var i=e.dataToPoint([t,n]);return i[0]-=p,i[1]-=g,i.push(r),i})),x=n.getExtent(),w="visualMap.continuous"===n.type?u(x,n.option.range):c(x,n.getPieceList(),n.option.selected);d.update(S,y,_,i.color.getNormalizer(),{inRange:i.color.getColorMapper(),outOfRange:s.color.getColorMapper()},w);var I=new o.Image({style:{width:y,height:_,x:p,y:g,image:d.canvas},silent:!0});this.group.add(I)},dispose:function(){}});e.exports=d},"480f":function(e,t,n){var r=n("4a3f"),i=n("401b"),o=n("53f3"),a=o.getSymbolSize,s=[],c=[],u=[],l=r.quadraticAt,d=i.distSquare,h=Math.abs;function f(e,t,n){for(var r,i=e[0],o=e[1],a=e[2],f=1/0,p=n*n,g=.1,m=.1;m<=.9;m+=.1){s[0]=l(i[0],o[0],a[0],m),s[1]=l(i[1],o[1],a[1],m);var v=h(d(s,t)-p);v<f&&(f=v,r=m)}for(var y=0;y<32;y++){var _=r+g;c[0]=l(i[0],o[0],a[0],r),c[1]=l(i[1],o[1],a[1],r),u[0]=l(i[0],o[0],a[0],_),u[1]=l(i[1],o[1],a[1],_);v=d(c,t)-p;if(h(v)<.01)break;var b=d(u,t)-p;g/=2,v<0?b>=0?r+=g:r-=g:b>=0?r-=g:r+=g}return r}function p(e,t){var n=[],o=r.quadraticSubdivide,s=[[],[],[]],c=[[],[]],u=[];t/=2,e.eachEdge((function(e,r){var l=e.getLayout(),d=e.getVisual("fromSymbol"),h=e.getVisual("toSymbol");l.__original||(l.__original=[i.clone(l[0]),i.clone(l[1])],l[2]&&l.__original.push(i.clone(l[2])));var p=l.__original;if(null!=l[2]){if(i.copy(s[0],p[0]),i.copy(s[1],p[2]),i.copy(s[2],p[1]),d&&"none"!==d){var g=a(e.node1),m=f(s,p[0],g*t);o(s[0][0],s[1][0],s[2][0],m,n),s[0][0]=n[3],s[1][0]=n[4],o(s[0][1],s[1][1],s[2][1],m,n),s[0][1]=n[3],s[1][1]=n[4]}if(h&&"none"!==h){g=a(e.node2),m=f(s,p[1],g*t);o(s[0][0],s[1][0],s[2][0],m,n),s[1][0]=n[1],s[2][0]=n[2],o(s[0][1],s[1][1],s[2][1],m,n),s[1][1]=n[1],s[2][1]=n[2]}i.copy(l[0],s[0]),i.copy(l[1],s[2]),i.copy(l[2],s[1])}else{if(i.copy(c[0],p[0]),i.copy(c[1],p[1]),i.sub(u,c[1],c[0]),i.normalize(u,u),d&&"none"!==d){g=a(e.node1);i.scaleAndAdd(c[0],c[0],u,g*t)}if(h&&"none"!==h){g=a(e.node2);i.scaleAndAdd(c[1],c[1],u,-g*t)}i.copy(l[0],c[0]),i.copy(l[1],c[1])}}))}e.exports=p},4840:function(e,t,n){var r=n("825a"),i=n("5087"),o=n("b622"),a=o("species");e.exports=function(e,t){var n,o=r(e).constructor;return void 0===o||void 0==(n=r(o)[a])?t:i(n)}},"485a":function(e,t,n){var r=n("da84"),i=n("c65b"),o=n("1626"),a=n("861d"),s=r.TypeError;e.exports=function(e,t){var n,r;if("string"===t&&o(n=e.toString)&&!a(r=i(n,e)))return r;if(o(n=e.valueOf)&&!a(r=i(n,e)))return r;if("string"!==t&&o(n=e.toString)&&!a(r=i(n,e)))return r;throw s("Can't convert object to primitive value")}},4897:function(e,t,n){"use strict";t.__esModule=!0,t.i18n=t.use=t.t=void 0;var r=n("f0d9"),i=d(r),o=n("2b0e"),a=d(o),s=n("3c4e"),c=d(s),u=n("9d7e"),l=d(u);function d(e){return e&&e.__esModule?e:{default:e}}var h=(0,l.default)(a.default),f=i.default,p=!1,g=function(){var e=Object.getPrototypeOf(this||a.default).$t;if("function"===typeof e&&a.default.locale)return p||(p=!0,a.default.locale(a.default.config.lang,(0,c.default)(f,a.default.locale(a.default.config.lang)||{},{clone:!0}))),e.apply(this,arguments)},m=t.t=function(e,t){var n=g.apply(this,arguments);if(null!==n&&void 0!==n)return n;for(var r=e.split("."),i=f,o=0,a=r.length;o<a;o++){var s=r[o];if(n=i[s],o===a-1)return h(n,t);if(!n)return"";i=n}return""},v=t.use=function(e){f=e||f},y=t.i18n=function(e){g=e||g};t.default={use:v,t:m,i18n:y}},"48a9":function(e,t,n){var r=n("6d8b"),i=n("42e5"),o=function(e,t,n,r,o,a){this.x=null==e?0:e,this.y=null==t?0:t,this.x2=null==n?1:n,this.y2=null==r?0:r,this.type="linear",this.global=a||!1,i.call(this,o)};o.prototype={constructor:o},r.inherits(o,i);var a=o;e.exports=a},"48ac":function(e,t,n){var r=n("3eba"),i=r.extendComponentModel({type:"axisPointer",coordSysAxesInfo:null,defaultOption:{show:"auto",triggerOn:null,zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#aaa",width:1,type:"solid"},shadowStyle:{color:"rgba(150,150,150,0.3)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,shadowBlur:3,shadowColor:"#aaa"},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}}}),o=i;e.exports=o},"48c7":function(e,t,n){var r=n("6d8b"),i=n("6cb7"),o=n("9e47"),a=n("2023"),s=i.extend({type:"cartesian2dAxis",axis:null,init:function(){s.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){s.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){s.superApply(this,"restoreData",arguments),this.resetRange()},getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid",index:this.option.gridIndex,id:this.option.gridId})[0]}});function c(e,t){return t.type||(t.data?"category":"value")}r.merge(s.prototype,a);var u={offset:0};o("x",s,c,u),o("y",s,c,u);var l=s;e.exports=l},4930:function(e,t,n){var r=n("2d00"),i=n("d039");e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},4942:function(e,t,n){var r=n("2cf4"),i=r.debugMode,o=function(){};1===i&&(o=console.error);var a=o;e.exports=a},"498a":function(e,t,n){"use strict";var r=n("23e7"),i=n("58a8").trim,o=n("c8d2");r({target:"String",proto:!0,forced:o("trim")},{trim:function(){return i(this)}})},"49bc":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.gridConfig=void 0;var r={left:"10%",right:"10%",top:60,bottom:60,style:{fill:"rgba(0, 0, 0, 0)"},rLevel:-30,animationCurve:"easeOutCubic",animationFrame:30};t.gridConfig=r},"49e8":function(e,t,n){var r=n("3eba"),i=n("6d8b"),o=n("d81e"),a=o.updateCenterAndZoom;r.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},(function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},(function(t){var r=t.coordinateSystem;if("geo"===r.type){var o=a(r,e,t.get("scaleLimit"));t.setCenter&&t.setCenter(o.center),t.setZoom&&t.setZoom(o.zoom),"series"===n&&i.each(t.seriesGroup,(function(e){e.setCenter(o.center),e.setZoom(o.zoom)}))}}))}))},"4a01":function(e,t,n){var r=n("6d8b"),i=n("1fab"),o=n("607d"),a=n("a4fe");function s(e){this.pointerChecker,this._zr=e,this._opt={};var t=r.bind,n=t(c,this),o=t(u,this),a=t(l,this),s=t(d,this),f=t(h,this);i.call(this),this.setPointerChecker=function(e){this.pointerChecker=e},this.enable=function(t,i){this.disable(),this._opt=r.defaults(r.clone(i)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==t&&(t=!0),!0!==t&&"move"!==t&&"pan"!==t||(e.on("mousedown",n),e.on("mousemove",o),e.on("mouseup",a)),!0!==t&&"scale"!==t&&"zoom"!==t||(e.on("mousewheel",s),e.on("pinch",f))},this.disable=function(){e.off("mousedown",n),e.off("mousemove",o),e.off("mouseup",a),e.off("mousewheel",s),e.off("pinch",f)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}function c(e){if(!(o.isMiddleOrRightButtonOnMouseUpDown(e)||e.target&&e.target.draggable)){var t=e.offsetX,n=e.offsetY;this.pointerChecker&&this.pointerChecker(e,t,n)&&(this._x=t,this._y=n,this._dragging=!0)}}function u(e){if(this._dragging&&g("moveOnMouseMove",e,this._opt)&&"pinch"!==e.gestureEvent&&!a.isTaken(this._zr,"globalPan")){var t=e.offsetX,n=e.offsetY,r=this._x,i=this._y,s=t-r,c=n-i;this._x=t,this._y=n,this._opt.preventDefaultMouseMove&&o.stop(e.event),p(this,"pan","moveOnMouseMove",e,{dx:s,dy:c,oldX:r,oldY:i,newX:t,newY:n})}}function l(e){o.isMiddleOrRightButtonOnMouseUpDown(e)||(this._dragging=!1)}function d(e){var t=g("zoomOnMouseWheel",e,this._opt),n=g("moveOnMouseWheel",e,this._opt),r=e.wheelDelta,i=Math.abs(r),o=e.offsetX,a=e.offsetY;if(0!==r&&(t||n)){if(t){var s=i>3?1.4:i>1?1.2:1.1,c=r>0?s:1/s;f(this,"zoom","zoomOnMouseWheel",e,{scale:c,originX:o,originY:a})}if(n){var u=Math.abs(r),l=(r>0?1:-1)*(u>3?.4:u>1?.15:.05);f(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:l,originX:o,originY:a})}}}function h(e){if(!a.isTaken(this._zr,"globalPan")){var t=e.pinchScale>1?1.1:1/1.1;f(this,"zoom",null,e,{scale:t,originX:e.pinchX,originY:e.pinchY})}}function f(e,t,n,r,i){e.pointerChecker&&e.pointerChecker(r,i.originX,i.originY)&&(o.stop(r.event),p(e,t,n,r,i))}function p(e,t,n,i,o){o.isAvailableBehavior=r.bind(g,null,n,i),e.trigger(t,o)}function g(e,t,n){var i=n[e];return!e||i&&(!r.isString(i)||t.event[i+"Key"])}r.mixin(s,i);var m=s;e.exports=m},"4a3f":function(e,t,n){var r=n("401b"),i=r.create,o=r.distSquare,a=Math.pow,s=Math.sqrt,c=1e-8,u=1e-4,l=s(3),d=1/3,h=i(),f=i(),p=i();function g(e){return e>-c&&e<c}function m(e){return e>c||e<-c}function v(e,t,n,r,i){var o=1-i;return o*o*(o*e+3*i*t)+i*i*(i*r+3*o*n)}function y(e,t,n,r,i){var o=1-i;return 3*(((t-e)*o+2*(n-t)*i)*o+(r-n)*i*i)}function _(e,t,n,r,i,o){var c=r+3*(t-n)-e,u=3*(n-2*t+e),h=3*(t-e),f=e-i,p=u*u-3*c*h,m=u*h-9*c*f,v=h*h-3*u*f,y=0;if(g(p)&&g(m))if(g(u))o[0]=0;else{var _=-h/u;_>=0&&_<=1&&(o[y++]=_)}else{var b=m*m-4*p*v;if(g(b)){var S=m/p,x=(_=-u/c+S,-S/2);_>=0&&_<=1&&(o[y++]=_),x>=0&&x<=1&&(o[y++]=x)}else if(b>0){var w=s(b),I=p*u+1.5*c*(-m+w),C=p*u+1.5*c*(-m-w);I=I<0?-a(-I,d):a(I,d),C=C<0?-a(-C,d):a(C,d);_=(-u-(I+C))/(3*c);_>=0&&_<=1&&(o[y++]=_)}else{var M=(2*p*u-3*c*m)/(2*s(p*p*p)),T=Math.acos(M)/3,k=s(p),E=Math.cos(T),A=(_=(-u-2*k*E)/(3*c),x=(-u+k*(E+l*Math.sin(T)))/(3*c),(-u+k*(E-l*Math.sin(T)))/(3*c));_>=0&&_<=1&&(o[y++]=_),x>=0&&x<=1&&(o[y++]=x),A>=0&&A<=1&&(o[y++]=A)}}return y}function b(e,t,n,r,i){var o=6*n-12*t+6*e,a=9*t+3*r-3*e-9*n,c=3*t-3*e,u=0;if(g(a)){if(m(o)){var l=-c/o;l>=0&&l<=1&&(i[u++]=l)}}else{var d=o*o-4*a*c;if(g(d))i[0]=-o/(2*a);else if(d>0){var h=s(d),f=(l=(-o+h)/(2*a),(-o-h)/(2*a));l>=0&&l<=1&&(i[u++]=l),f>=0&&f<=1&&(i[u++]=f)}}return u}function S(e,t,n,r,i,o){var a=(t-e)*i+e,s=(n-t)*i+t,c=(r-n)*i+n,u=(s-a)*i+a,l=(c-s)*i+s,d=(l-u)*i+u;o[0]=e,o[1]=a,o[2]=u,o[3]=d,o[4]=d,o[5]=l,o[6]=c,o[7]=r}function x(e,t,n,r,i,a,c,l,d,g,m){var y,_,b,S,x,w=.005,I=1/0;h[0]=d,h[1]=g;for(var C=0;C<1;C+=.05)f[0]=v(e,n,i,c,C),f[1]=v(t,r,a,l,C),S=o(h,f),S<I&&(y=C,I=S);I=1/0;for(var M=0;M<32;M++){if(w<u)break;_=y-w,b=y+w,f[0]=v(e,n,i,c,_),f[1]=v(t,r,a,l,_),S=o(f,h),_>=0&&S<I?(y=_,I=S):(p[0]=v(e,n,i,c,b),p[1]=v(t,r,a,l,b),x=o(p,h),b<=1&&x<I?(y=b,I=x):w*=.5)}return m&&(m[0]=v(e,n,i,c,y),m[1]=v(t,r,a,l,y)),s(I)}function w(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function I(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function C(e,t,n,r,i){var o=e-2*t+n,a=2*(t-e),c=e-r,u=0;if(g(o)){if(m(a)){var l=-c/a;l>=0&&l<=1&&(i[u++]=l)}}else{var d=a*a-4*o*c;if(g(d)){l=-a/(2*o);l>=0&&l<=1&&(i[u++]=l)}else if(d>0){var h=s(d),f=(l=(-a+h)/(2*o),(-a-h)/(2*o));l>=0&&l<=1&&(i[u++]=l),f>=0&&f<=1&&(i[u++]=f)}}return u}function M(e,t,n){var r=e+n-2*t;return 0===r?.5:(e-t)/r}function T(e,t,n,r,i){var o=(t-e)*r+e,a=(n-t)*r+t,s=(a-o)*r+o;i[0]=e,i[1]=o,i[2]=s,i[3]=s,i[4]=a,i[5]=n}function k(e,t,n,r,i,a,c,l,d){var g,m=.005,v=1/0;h[0]=c,h[1]=l;for(var y=0;y<1;y+=.05){f[0]=w(e,n,i,y),f[1]=w(t,r,a,y);var _=o(h,f);_<v&&(g=y,v=_)}v=1/0;for(var b=0;b<32;b++){if(m<u)break;var S=g-m,x=g+m;f[0]=w(e,n,i,S),f[1]=w(t,r,a,S);_=o(f,h);if(S>=0&&_<v)g=S,v=_;else{p[0]=w(e,n,i,x),p[1]=w(t,r,a,x);var I=o(p,h);x<=1&&I<v?(g=x,v=I):m*=.5}}return d&&(d[0]=w(e,n,i,g),d[1]=w(t,r,a,g)),s(v)}t.cubicAt=v,t.cubicDerivativeAt=y,t.cubicRootAt=_,t.cubicExtrema=b,t.cubicSubdivide=S,t.cubicProjectPoint=x,t.quadraticAt=w,t.quadraticDerivativeAt=I,t.quadraticRootAt=C,t.quadraticExtremum=M,t.quadraticSubdivide=T,t.quadraticProjectPoint=k},"4a7b":function(e,t,n){"use strict";var r=n("c532");e.exports=function(e,t){t=t||{};var n={};function i(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function o(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:i(void 0,e[n]):i(e[n],t[n])}function a(e){if(!r.isUndefined(t[e]))return i(void 0,t[e])}function s(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:i(void 0,e[n]):i(void 0,t[n])}function c(n){return n in t?i(e[n],t[n]):n in e?i(void 0,e[n]):void 0}var u={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:c};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=u[e]||o,i=t(e);r.isUndefined(i)&&t!==c||(n[e]=i)})),n}},"4a9b":function(e,t,n){var r=n("74e8");r("Float64",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},"4a9d":function(e,t,n){var r=n("dcb3"),i=n("ff2e"),o=n("0156"),a=n("6679"),s=r.extend({makeElOption:function(e,t,n,r,a){var s=n.axis,l=s.grid,d=r.get("type"),h=c(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(t,!0));if(d&&"none"!==d){var p=i.buildElStyle(r),g=u[d](s,f,h);g.style=p,e.graphicKey=g.type,e.pointer=g}var m=o.layout(l.model,n);i.buildCartesianSingleLabelElOption(t,e,m,n,r,a)},getHandleTransform:function(e,t,n){var r=o.layout(t.axis.grid.model,t,{labelInside:!1});return r.labelMargin=n.get("handle.margin"),{position:i.getTransformedPosition(t.axis,e,r),rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(e,t,n,r){var i=n.axis,o=i.grid,a=i.getGlobalExtent(!0),s=c(o,i).getOtherAxis(i).getGlobalExtent(),u="x"===i.dim?0:1,l=e.position;l[u]+=t[u],l[u]=Math.min(a[1],l[u]),l[u]=Math.max(a[0],l[u]);var d=(s[1]+s[0])/2,h=[d,d];h[u]=l[u];var f=[{verticalAlign:"middle"},{align:"center"}];return{position:l,rotation:e.rotation,cursorPoint:h,tooltipOption:f[u]}}});function c(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var u={line:function(e,t,n){var r=i.makeLineShape([t,n[0]],[t,n[1]],l(e));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(e,t,n){var r=Math.max(1,e.getBandWidth()),o=n[1]-n[0];return{type:"Rect",shape:i.makeRectShape([t-r/2,n[0]],[r,o],l(e))}}};function l(e){return"x"===e.dim?0:1}a.registerAxisPointerClass("CartesianAxisPointer",s);var d=s;e.exports=d},"4aa2":function(e,t,n){var r=n("cbe5"),i=n("897a"),o=r.extend({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},brush:i(r.prototype.brush),buildPath:function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r0||0,0),o=Math.max(t.r,0),a=t.startAngle,s=t.endAngle,c=t.clockwise,u=Math.cos(a),l=Math.sin(a);e.moveTo(u*i+n,l*i+r),e.lineTo(u*o+n,l*o+r),e.arc(n,r,o,a,s,!c),e.lineTo(Math.cos(s)*i+n,Math.sin(s)*i+r),0!==i&&e.arc(n,r,i,s,a,c),e.closePath()}});e.exports=o},"4ab1":function(e,t,n){var r=n("8727"),i=r.createElement,o=n("6d8b"),a=n("cbe5"),s=n("0da8"),c=n("76a5"),u=n("3f8e"),l=u.path,d=u.image,h=u.text,f="0",p="1";function g(e,t,n,r,i){this._zrId=e,this._svgRoot=t,this._tagNames="string"===typeof n?[n]:n,this._markLabel=r,this._domName=i||"_dom",this.nextId=0}g.prototype.createElement=i,g.prototype.getDefs=function(e){var t=this._svgRoot,n=this._svgRoot.getElementsByTagName("defs");return 0===n.length?e?(n=t.insertBefore(this.createElement("defs"),t.firstChild),n.contains||(n.contains=function(e){var t=n.children;if(!t)return!1;for(var r=t.length-1;r>=0;--r)if(t[r]===e)return!0;return!1}),n):null:n[0]},g.prototype.update=function(e,t){if(e){var n=this.getDefs(!1);if(e[this._domName]&&n.contains(e[this._domName]))"function"===typeof t&&t(e);else{var r=this.add(e);r&&(e[this._domName]=r)}}},g.prototype.addDom=function(e){var t=this.getDefs(!0);t.appendChild(e)},g.prototype.removeDom=function(e){var t=this.getDefs(!1);t&&e[this._domName]&&(t.removeChild(e[this._domName]),e[this._domName]=null)},g.prototype.getDoms=function(){var e=this.getDefs(!1);if(!e)return[];var t=[];return o.each(this._tagNames,(function(n){var r=e.getElementsByTagName(n);t=t.concat([].slice.call(r))})),t},g.prototype.markAllUnused=function(){var e=this.getDoms(),t=this;o.each(e,(function(e){e[t._markLabel]=f}))},g.prototype.markUsed=function(e){e&&(e[this._markLabel]=p)},g.prototype.removeUnused=function(){var e=this.getDefs(!1);if(e){var t=this.getDoms(),n=this;o.each(t,(function(t){t[n._markLabel]!==p&&e.removeChild(t)}))}},g.prototype.getSvgProxy=function(e){return e instanceof a?l:e instanceof s?d:e instanceof c?h:l},g.prototype.getTextSvgElement=function(e){return e.__textSvgEl},g.prototype.getSvgElement=function(e){return e.__svgEl};var m=g;e.exports=m},"4b08":function(e,t,n){var r=n("7dcf"),i=r.extend({type:"dataZoom.select"});e.exports=i},"4b26":function(e,t,n){"use strict";t.__esModule=!0;var r=n("2b0e"),i=a(r),o=n("5924");function a(e){return e&&e.__esModule?e:{default:e}}var s=!1,c=!1,u=void 0,l=function(){if(!i.default.prototype.$isServer){var e=h.modalDom;return e?s=!0:(s=!1,e=document.createElement("div"),h.modalDom=e,e.addEventListener("touchmove",(function(e){e.preventDefault(),e.stopPropagation()})),e.addEventListener("click",(function(){h.doOnModalClick&&h.doOnModalClick()}))),e}},d={},h={modalFade:!0,getInstance:function(e){return d[e]},register:function(e,t){e&&t&&(d[e]=t)},deregister:function(e){e&&(d[e]=null,delete d[e])},nextZIndex:function(){return h.zIndex++},modalStack:[],doOnModalClick:function(){var e=h.modalStack[h.modalStack.length-1];if(e){var t=h.getInstance(e.id);t&&t.closeOnClickModal&&t.close()}},openModal:function(e,t,n,r,a){if(!i.default.prototype.$isServer&&e&&void 0!==t){this.modalFade=a;for(var c=this.modalStack,u=0,d=c.length;u<d;u++){var h=c[u];if(h.id===e)return}var f=l();if((0,o.addClass)(f,"v-modal"),this.modalFade&&!s&&(0,o.addClass)(f,"v-modal-enter"),r){var p=r.trim().split(/\s+/);p.forEach((function(e){return(0,o.addClass)(f,e)}))}setTimeout((function(){(0,o.removeClass)(f,"v-modal-enter")}),200),n&&n.parentNode&&11!==n.parentNode.nodeType?n.parentNode.appendChild(f):document.body.appendChild(f),t&&(f.style.zIndex=t),f.tabIndex=0,f.style.display="",this.modalStack.push({id:e,zIndex:t,modalClass:r})}},closeModal:function(e){var t=this.modalStack,n=l();if(t.length>0){var r=t[t.length-1];if(r.id===e){if(r.modalClass){var i=r.modalClass.trim().split(/\s+/);i.forEach((function(e){return(0,o.removeClass)(n,e)}))}t.pop(),t.length>0&&(n.style.zIndex=t[t.length-1].zIndex)}else for(var a=t.length-1;a>=0;a--)if(t[a].id===e){t.splice(a,1);break}}0===t.length&&(this.modalFade&&(0,o.addClass)(n,"v-modal-leave"),setTimeout((function(){0===t.length&&(n.parentNode&&n.parentNode.removeChild(n),n.style.display="none",h.modalDom=void 0),(0,o.removeClass)(n,"v-modal-leave")}),200))}};Object.defineProperty(h,"zIndex",{configurable:!0,get:function(){return c||(u=u||(i.default.prototype.$ELEMENT||{}).zIndex||2e3,c=!0),u},set:function(e){u=e}});var f=function(){if(!i.default.prototype.$isServer&&h.modalStack.length>0){var e=h.modalStack[h.modalStack.length-1];if(!e)return;var t=h.getInstance(e.id);return t}};i.default.prototype.$isServer||window.addEventListener("keydown",(function(e){if(27===e.keyCode){var t=f();t&&t.closeOnPressEscape&&(t.handleClose?t.handleClose():t.handleAction?t.handleAction("cancel"):t.close())}})),t.default=h},"4bf6":function(e,t,n){var r=n("66fc"),i=n("697e"),o=n("f934"),a=o.getLayoutRect,s=n("6d8b"),c=s.each;function u(e,t,n){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(e,t,n),this.model=e}u.prototype={type:"singleAxis",axisPointerEnabled:!0,constructor:u,_init:function(e,t,n){var o=this.dimension,a=new r(o,i.createScaleByModel(e),[0,0],e.get("type"),e.get("position")),s="category"===a.type;a.onBand=s&&e.get("boundaryGap"),a.inverse=e.get("inverse"),a.orient=e.get("orient"),e.axis=a,a.model=e,a.coordinateSystem=this,this._axis=a},update:function(e,t){e.eachSeries((function(e){if(e.coordinateSystem===this){var t=e.getData();c(t.mapDimension(this.dimension,!0),(function(e){this._axis.scale.unionExtentFromData(t,e)}),this),i.niceScaleExtent(this._axis.scale,this._axis.model)}}),this)},resize:function(e,t){this._rect=a({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:t.getWidth(),height:t.getHeight()}),this._adjustAxis()},getRect:function(){return this._rect},_adjustAxis:function(){var e=this._rect,t=this._axis,n=t.isHorizontal(),r=n?[0,e.width]:[0,e.height],i=t.reverse?1:0;t.setExtent(r[i],r[1-i]),this._updateAxisTransform(t,n?e.x:e.y)},_updateAxisTransform:function(e,t){var n=e.getExtent(),r=n[0]+n[1],i=e.isHorizontal();e.toGlobalCoord=i?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord=i?function(e){return e-t}:function(e){return r-e+t}},getAxis:function(){return this._axis},getBaseAxis:function(){return this._axis},getAxes:function(){return[this._axis]},getTooltipAxes:function(){return{baseAxes:[this.getAxis()]}},containPoint:function(e){var t=this.getRect(),n=this.getAxis(),r=n.orient;return"horizontal"===r?n.contain(n.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},pointToData:function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e["horizontal"===t.orient?0:1]))]},dataToPoint:function(e){var t=this.getAxis(),n=this.getRect(),r=[],i="horizontal"===t.orient?0:1;return e instanceof Array&&(e=e[0]),r[i]=t.toGlobalCoord(t.dataToCoord(+e)),r[1-i]=0===i?n.y+n.height/2:n.x+n.width/2,r}};var l=u;e.exports=l},"4c86":function(e,t,n){var r=n("6d8b"),i=r.each,o=n("bda7"),a=n("e0d3"),s=a.makeInner,c=n("320a"),u=n("1792"),l=n("6bd4"),d=n("a7f2"),h=s(),f={load:function(e,t,n){var r=h(t).parsed;if(r)return r;var a,s=t.specialAreas||{},f=t.geoJSON;try{a=f?o(f,n):[]}catch(g){throw new Error("Invalid geoJson format\n"+g.message)}return c(e,a),i(a,(function(t){var n=t.name;u(e,t),l(e,t),d(e,t);var r=s[n];r&&t.transformTo(r.left,r.top,r.width,r.height)})),h(t).parsed={regions:a,boundingRect:p(a)}}};function p(e){for(var t,n=0;n<e.length;n++){var r=e[n].getBoundingRect();t=t||r.clone(),t.union(r)}return t}e.exports=f},"4c99":function(e,t,n){var r=n("cccd"),i=["itemStyle","borderColor"],o=["itemStyle","borderColor0"],a=["itemStyle","color"],s=["itemStyle","color0"],c={seriesType:"candlestick",plan:r(),performRawSeries:!0,reset:function(e,t){var n=e.getData();if(n.setVisual({legendSymbol:"roundRect",colorP:u(1,e),colorN:u(-1,e),borderColorP:l(1,e),borderColorN:l(-1,e)}),!t.isSeriesFiltered(e)){var r=e.pipelineContext.large;return!r&&{progress:c}}function c(e,t){var n;while(null!=(n=e.next())){var r=t.getItemModel(n),i=t.getItemLayout(n).sign;t.setItemVisual(n,{color:u(i,r),borderColor:l(i,r)})}}function u(e,t){return t.get(e>0?a:s)}function l(e,t){return t.get(e>0?i:o)}}};e.exports=c},"4d62":function(e,t,n){var r=n("2306"),i=n("6d8b"),o=n("e887");function a(e,t){r.Group.call(this);var n=new r.Polygon,i=new r.Polyline,o=new r.Text;this.add(n),this.add(i),this.add(o),this.highDownOnUpdate=function(e,t){"emphasis"===t?(i.ignore=i.hoverIgnore,o.ignore=o.hoverIgnore):(i.ignore=i.normalIgnore,o.ignore=o.normalIgnore)},this.updateData(e,t,!0)}var s=a.prototype,c=["itemStyle","opacity"];s.updateData=function(e,t,n){var o=this.childAt(0),a=e.hostModel,s=e.getItemModel(t),u=e.getItemLayout(t),l=e.getItemModel(t).get(c);l=null==l?1:l,o.useStyle({}),n?(o.setShape({points:u.points}),o.setStyle({opacity:0}),r.initProps(o,{style:{opacity:l}},a,t)):r.updateProps(o,{style:{opacity:l},shape:{points:u.points}},a,t);var d=s.getModel("itemStyle"),h=e.getItemVisual(t,"color");o.setStyle(i.defaults({lineJoin:"round",fill:h},d.getItemStyle(["opacity"]))),o.hoverStyle=d.getModel("emphasis").getItemStyle(),this._updateLabel(e,t),r.setHoverStyle(this)},s._updateLabel=function(e,t){var n=this.childAt(1),i=this.childAt(2),o=e.hostModel,a=e.getItemModel(t),s=e.getItemLayout(t),c=s.label,u=e.getItemVisual(t,"color");r.updateProps(n,{shape:{points:c.linePoints||c.linePoints}},o,t),r.updateProps(i,{style:{x:c.x,y:c.y}},o,t),i.attr({rotation:c.rotation,origin:[c.x,c.y],z2:10});var l=a.getModel("label"),d=a.getModel("emphasis.label"),h=a.getModel("labelLine"),f=a.getModel("emphasis.labelLine");u=e.getItemVisual(t,"color");r.setLabelStyle(i.style,i.hoverStyle={},l,d,{labelFetcher:e.hostModel,labelDataIndex:t,defaultText:e.getName(t),autoColor:u,useInsideStyle:!!c.inside},{textAlign:c.textAlign,textVerticalAlign:c.verticalAlign}),i.ignore=i.normalIgnore=!l.get("show"),i.hoverIgnore=!d.get("show"),n.ignore=n.normalIgnore=!h.get("show"),n.hoverIgnore=!f.get("show"),n.setStyle({stroke:u}),n.setStyle(h.getModel("lineStyle").getLineStyle()),n.hoverStyle=f.getModel("lineStyle").getLineStyle()},i.inherits(a,r.Group);var u=o.extend({type:"funnel",render:function(e,t,n){var r=e.getData(),i=this._data,o=this.group;r.diff(i).add((function(e){var t=new a(r,e);r.setItemGraphicEl(e,t),o.add(t)})).update((function(e,t){var n=i.getItemGraphicEl(t);n.updateData(r,e),o.add(n),r.setItemGraphicEl(e,n)})).remove((function(e){var t=i.getItemGraphicEl(e);o.remove(t)})).execute(),this._data=r},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}}),l=u;e.exports=l},"4d63":function(e,t,n){var r=n("83ab"),i=n("da84"),o=n("e330"),a=n("94ca"),s=n("7156"),c=n("9112"),u=n("9bf2").f,l=n("241c").f,d=n("3a9b"),h=n("44e7"),f=n("577e"),p=n("ad6d"),g=n("9f7f"),m=n("6eeb"),v=n("d039"),y=n("1a2d"),_=n("69f3").enforce,b=n("2626"),S=n("b622"),x=n("fce3"),w=n("107c"),I=S("match"),C=i.RegExp,M=C.prototype,T=i.SyntaxError,k=o(p),E=o(M.exec),A=o("".charAt),D=o("".replace),O=o("".indexOf),R=o("".slice),L=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,P=/a/g,N=/a/g,U=new C(P)!==P,F=g.MISSED_STICKY,G=g.UNSUPPORTED_Y,V=r&&(!U||F||x||w||v((function(){return N[I]=!1,C(P)!=P||C(N)==N||"/a/i"!=C(P,"i")}))),j=function(e){for(var t,n=e.length,r=0,i="",o=!1;r<=n;r++)t=A(e,r),"\\"!==t?o||"."!==t?("["===t?o=!0:"]"===t&&(o=!1),i+=t):i+="[\\s\\S]":i+=t+A(e,++r);return i},B=function(e){for(var t,n=e.length,r=0,i="",o=[],a={},s=!1,c=!1,u=0,l="";r<=n;r++){if(t=A(e,r),"\\"===t)t+=A(e,++r);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:E(L,R(e,r+1))&&(r+=2,c=!0),i+=t,u++;continue;case">"===t&&c:if(""===l||y(a,l))throw new T("Invalid capture group name");a[l]=!0,o[o.length]=[l,u],c=!1,l="";continue}c?l+=t:i+=t}return[i,o]};if(a("RegExp",V)){for(var z=function(e,t){var n,r,i,o,a,u,l=d(M,this),p=h(e),g=void 0===t,m=[],v=e;if(!l&&p&&g&&e.constructor===z)return e;if((p||d(M,e))&&(e=e.source,g&&(t="flags"in v?v.flags:k(v))),e=void 0===e?"":f(e),t=void 0===t?"":f(t),v=e,x&&"dotAll"in P&&(r=!!t&&O(t,"s")>-1,r&&(t=D(t,/s/g,""))),n=t,F&&"sticky"in P&&(i=!!t&&O(t,"y")>-1,i&&G&&(t=D(t,/y/g,""))),w&&(o=B(e),e=o[0],m=o[1]),a=s(C(e,t),l?this:M,z),(r||i||m.length)&&(u=_(a),r&&(u.dotAll=!0,u.raw=z(j(e),n)),i&&(u.sticky=!0),m.length&&(u.groups=m)),e!==v)try{c(a,"source",""===v?"(?:)":v)}catch(y){}return a},H=function(e){e in z||u(z,e,{configurable:!0,get:function(){return C[e]},set:function(t){C[e]=t}})},W=l(C),q=0;W.length>q;)H(W[q++]);M.constructor=z,z.prototype=M,m(i,"RegExp",z)}b("RegExp")},"4d64":function(e,t,n){var r=n("fc6a"),i=n("23cb"),o=n("07fa"),a=function(e){return function(t,n,a){var s,c=r(t),u=o(c),l=i(a,u);if(e&&n!=n){while(u>l)if(s=c[l++],s!=s)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},"4d85":function(e,t,n){var r=n("e46b"),i=n("4f85"),o=i.extend({type:"series.gauge",getInitialData:function(e,t){return r(this,["value"])},defaultOption:{zlevel:0,z:2,center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,lineStyle:{color:[[.2,"#91c7ae"],[.8,"#63869e"],[1,"#c23531"]],width:30}},splitLine:{show:!0,length:30,lineStyle:{color:"#eee",width:2,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:8,lineStyle:{color:"#eee",width:1,type:"solid"}},axisLabel:{show:!0,distance:5,color:"auto"},pointer:{show:!0,length:"80%",width:8},itemStyle:{color:"auto"},title:{show:!0,offsetCenter:[0,"-40%"],color:"#333",fontSize:15},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"auto",fontSize:30}}}),a=o;e.exports=a},"4dae":function(e,t,n){var r=n("da84"),i=n("23cb"),o=n("07fa"),a=n("8418"),s=r.Array,c=Math.max;e.exports=function(e,t,n){for(var r=o(e),u=i(t,r),l=i(void 0===n?r:n,r),d=s(c(l-u,0)),h=0;u<l;u++,h++)a(d,h,e[u]);return d.length=h,d}},"4de4":function(e,t,n){"use strict";var r=n("23e7"),i=n("b727").filter,o=n("1dde"),a=o("filter");r({target:"Array",proto:!0,forced:!a},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(e,t,n){"use strict";var r=n("da84"),i=n("0366"),o=n("c65b"),a=n("7b0b"),s=n("9bdd"),c=n("e95a"),u=n("68ee"),l=n("07fa"),d=n("8418"),h=n("9a1f"),f=n("35a1"),p=r.Array;e.exports=function(e){var t=a(e),n=u(this),r=arguments.length,g=r>1?arguments[1]:void 0,m=void 0!==g;m&&(g=i(g,r>2?arguments[2]:void 0));var v,y,_,b,S,x,w=f(t),I=0;if(!w||this==p&&c(w))for(v=l(t),y=n?new this(v):p(v);v>I;I++)x=m?g(t[I],I):t[I],d(y,I,x);else for(b=h(t,w),S=b.next,y=n?new this:[];!(_=o(S,b)).done;I++)x=m?s(b,g,[_.value,I],!0):_.value,d(y,I,x);return y.length=I,y}},"4e08":function(e,t,n){(function(e){var n;"undefined"!==typeof window?n=window.__DEV__:"undefined"!==typeof e&&(n=e.__DEV__),"undefined"===typeof n&&(n=!0);var r=n;t.__DEV__=r}).call(this,n("c8ba"))},"4e10":function(e,t,n){var r=n("6d8b"),i=n("e46b"),o=n("4f85"),a=n("eda2"),s=a.encodeHTML,c=a.addCommas,u=n("7023"),l=n("2b17"),d=l.retrieveRawAttr,h=n("5b87"),f=n("0f99"),p=f.makeSeriesEncodeForNameBased,g=o.extend({type:"series.map",dependencies:["geo"],layoutMode:"box",needsDrawMap:!1,seriesGroup:[],getInitialData:function(e){for(var t=i(this,{coordDimensions:["value"],encodeDefaulter:r.curry(p,this)}),n=t.mapDimension("value"),o=r.createHashMap(),a=[],s=[],c=0,u=t.count();c<u;c++){var l=t.getName(c);o.set(l,!0),a.push({name:l,value:t.get(n,c),selected:d(t,c,"selected")})}var f=h.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return r.each(f.regions,(function(e){var t=e.name;o.get(t)||(a.push({name:t}),s.push(t))})),this.updateSelectedMap(a),t.appendValues([],s),t},getHostGeoModel:function(){var e=this.option.geoIndex;return null!=e?this.dependentModels.geo[e]:null},getMapType:function(){return(this.getHostGeoModel()||this).option.map},getRawValue:function(e){var t=this.getData();return t.get(t.mapDimension("value"),e)},getRegionModel:function(e){var t=this.getData();return t.getItemModel(t.indexOfName(e))},formatTooltip:function(e,t,n,r){for(var i=this.getData(),o=c(this.getRawValue(e)),a=i.getName(e),u=this.seriesGroup,l=[],d=0;d<u.length;d++){var h=u[d].originalData.indexOfName(a),f=i.mapDimension("value");isNaN(u[d].originalData.get(f,h))||l.push(s(u[d].name))}var p="html"===r?"<br/>":"\n";return l.join(", ")+p+s(a+" : "+o)},getTooltipPosition:function(e){if(null!=e){var t=this.getData().getName(e),n=this.coordinateSystem,r=n.getRegion(t);return r&&n.dataToPoint(r.center)}},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:.75,showLegendSymbol:!0,dataRangeHoverLink:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},nameProperty:"name"}});r.mixin(g,u);var m=g;e.exports=m},"4e47":function(e,t,n){var r=n("6d8b"),i=n("2306"),o={NONE:"none",DESCENDANT:"descendant",ANCESTOR:"ancestor",SELF:"self"},a=2,s=4;function c(e,t,n){i.Group.call(this);var r=new i.Sector({z2:a});r.seriesIndex=t.seriesIndex;var o=new i.Text({z2:s,silent:e.getModel("label").get("silent")});function c(){o.ignore=o.hoverIgnore}function u(){o.ignore=o.normalIgnore}this.add(r),this.add(o),this.updateData(!0,e,"normal",t,n),this.on("emphasis",c).on("normal",u).on("mouseover",c).on("mouseout",u)}var u=c.prototype;u.updateData=function(e,t,n,o,a){this.node=t,t.piece=this,o=o||this._seriesModel,a=a||this._ecModel;var s=this.childAt(0);s.dataIndex=t.dataIndex;var c=t.getModel(),u=t.getLayout(),l=r.extend({},u);l.label=null;var h=d(t,o,a);p(t,o,h);var f,g=c.getModel("itemStyle").getItemStyle();if("normal"===n)f=g;else{var m=c.getModel(n+".itemStyle").getItemStyle();f=r.merge(m,g)}f=r.defaults({lineJoin:"bevel",fill:f.fill||h},f),e?(s.setShape(l),s.shape.r=u.r0,i.updateProps(s,{shape:{r:u.r}},o,t.dataIndex),s.useStyle(f)):"object"===typeof f.fill&&f.fill.type||"object"===typeof s.style.fill&&s.style.fill.type?(i.updateProps(s,{shape:l},o),s.useStyle(f)):i.updateProps(s,{shape:l,style:f},o),this._updateLabel(o,h,n);var v=c.getShallow("cursor");if(v&&s.attr("cursor",v),e){var y=o.getShallow("highlightPolicy");this._initEvents(s,t,o,y)}this._seriesModel=o||this._seriesModel,this._ecModel=a||this._ecModel,i.setHoverStyle(this)},u.onEmphasis=function(e){var t=this;this.node.hostTree.root.eachNode((function(n){n.piece&&(t.node===n?n.piece.updateData(!1,n,"emphasis"):f(n,t.node,e)?n.piece.childAt(0).trigger("highlight"):e!==o.NONE&&n.piece.childAt(0).trigger("downplay"))}))},u.onNormal=function(){this.node.hostTree.root.eachNode((function(e){e.piece&&e.piece.updateData(!1,e,"normal")}))},u.onHighlight=function(){this.updateData(!1,this.node,"highlight")},u.onDownplay=function(){this.updateData(!1,this.node,"downplay")},u._updateLabel=function(e,t,n){var o=this.node.getModel(),a=o.getModel("label"),s="normal"===n||"emphasis"===n?a:o.getModel(n+".label"),c=o.getModel("emphasis.label"),u=s.get("formatter"),l=u?n:"normal",d=r.retrieve(e.getFormattedLabel(this.node.dataIndex,l,null,null,"label"),this.node.name);!1===T("show")&&(d="");var h=this.node.getLayout(),f=s.get("minAngle");null==f&&(f=a.get("minAngle")),f=f/180*Math.PI;var p=h.endAngle-h.startAngle;null!=f&&Math.abs(p)<f&&(d="");var g=this.childAt(1);i.setLabelStyle(g.style,g.hoverStyle||{},a,c,{defaultText:s.getShallow("show")?d:null,autoColor:t,useInsideStyle:!0});var m,v=(h.startAngle+h.endAngle)/2,y=Math.cos(v),_=Math.sin(v),b=T("position"),S=T("distance")||0,x=T("align");"outside"===b?(m=h.r+S,x=v>Math.PI/2?"right":"left"):x&&"center"!==x?"left"===x?(m=h.r0+S,v>Math.PI/2&&(x="right")):"right"===x&&(m=h.r-S,v>Math.PI/2&&(x="left")):(m=(h.r+h.r0)/2,x="center"),g.attr("style",{text:d,textAlign:x,textVerticalAlign:T("verticalAlign")||"middle",opacity:T("opacity")});var w=m*y+h.cx,I=m*_+h.cy;g.attr("position",[w,I]);var C=T("rotate"),M=0;function T(e){var t=s.get(e);return null==t?a.get(e):t}"radial"===C?(M=-v,M<-Math.PI/2&&(M+=Math.PI)):"tangential"===C?(M=Math.PI/2-v,M>Math.PI/2?M-=Math.PI:M<-Math.PI/2&&(M+=Math.PI)):"number"===typeof C&&(M=C*Math.PI/180),g.attr("rotation",M)},u._initEvents=function(e,t,n,r){e.off("mouseover").off("mouseout").off("emphasis").off("normal");var i=this,o=function(){i.onEmphasis(r)},a=function(){i.onNormal()},s=function(){i.onDownplay()},c=function(){i.onHighlight()};n.isAnimationEnabled()&&e.on("mouseover",o).on("mouseout",a).on("emphasis",o).on("normal",a).on("downplay",s).on("highlight",c)},r.inherits(c,i.Group);var l=c;function d(e,t,n){var r=e.getVisual("color"),i=e.getVisual("visualMeta");i&&0!==i.length||(r=null);var o=e.getModel("itemStyle").get("color");if(o)return o;if(r)return r;if(0===e.depth)return n.option.color[0];var a=n.option.color.length;return o=n.option.color[h(e)%a],o}function h(e){var t=e;while(t.depth>1)t=t.parentNode;var n=e.getAncestors()[0];return r.indexOf(n.children,t)}function f(e,t,n){return n!==o.NONE&&(n===o.SELF?e===t:n===o.ANCESTOR?e===t||e.isAncestorOf(t):e===t||e.isDescendantOf(t))}function p(e,t,n){var r=t.getData();r.setItemVisual(e.dataIndex,"color",n)}e.exports=l},"4e4b":function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=61)}({0:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var c,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(c=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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=c):i&&(c=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(e,t){return c.call(t),l(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},10:function(e,t){e.exports=n("f3ad")},12:function(e,t){e.exports=n("417f")},15:function(e,t){e.exports=n("14e9")},16:function(e,t){e.exports=n("4010")},18:function(e,t){e.exports=n("0e15")},21:function(e,t){e.exports=n("d397")},22:function(e,t){e.exports=n("12f2")},3:function(e,t){e.exports=n("8122")},31:function(e,t){e.exports=n("2a5e")},33:function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-select-dropdown__item",class:{selected:e.itemSelected,"is-disabled":e.disabled||e.groupDisabled||e.limitReached,hover:e.hover},on:{mouseenter:e.hoverItem,click:function(t){return t.stopPropagation(),e.selectOptionClick(t)}}},[e._t("default",[n("span",[e._v(e._s(e.currentLabel))])])],2)},i=[];r._withStripped=!0;var o=n(4),a=n.n(o),s=n(3),c="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},u={mixins:[a.a],name:"ElOption",componentName:"ElOption",inject:["select"],props:{value:{required:!0},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},data:function(){return{index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}},computed:{isObject:function(){return"[object object]"===Object.prototype.toString.call(this.value).toLowerCase()},currentLabel:function(){return this.label||(this.isObject?"":this.value)},currentValue:function(){return this.value||this.label||""},itemSelected:function(){return this.select.multiple?this.contains(this.select.value,this.value):this.isEqual(this.value,this.select.value)},limitReached:function(){return!!this.select.multiple&&(!this.itemSelected&&(this.select.value||[]).length>=this.select.multipleLimit&&this.select.multipleLimit>0)}},watch:{currentLabel:function(){this.created||this.select.remote||this.dispatch("ElSelect","setSelected")},value:function(e,t){var n=this.select,r=n.remote,i=n.valueKey;if(!this.created&&!r){if(i&&"object"===("undefined"===typeof e?"undefined":c(e))&&"object"===("undefined"===typeof t?"undefined":c(t))&&e[i]===t[i])return;this.dispatch("ElSelect","setSelected")}}},methods:{isEqual:function(e,t){if(this.isObject){var n=this.select.valueKey;return Object(s["getValueByPath"])(e,n)===Object(s["getValueByPath"])(t,n)}return e===t},contains:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];if(this.isObject){var n=this.select.valueKey;return e&&e.some((function(e){return Object(s["getValueByPath"])(e,n)===Object(s["getValueByPath"])(t,n)}))}return e&&e.indexOf(t)>-1},handleGroupDisabled:function(e){this.groupDisabled=e},hoverItem:function(){this.disabled||this.groupDisabled||(this.select.hoverIndex=this.select.options.indexOf(this))},selectOptionClick:function(){!0!==this.disabled&&!0!==this.groupDisabled&&this.dispatch("ElSelect","handleOptionClick",[this,!0])},queryChange:function(e){this.visible=new RegExp(Object(s["escapeRegexpString"])(e),"i").test(this.currentLabel)||this.created,this.visible||this.select.filteredOptionsCount--}},created:function(){this.select.options.push(this),this.select.cachedOptions.push(this),this.select.optionsCount++,this.select.filteredOptionsCount++,this.$on("queryChange",this.queryChange),this.$on("handleGroupDisabled",this.handleGroupDisabled)},beforeDestroy:function(){var e=this.select,t=e.selected,n=e.multiple,r=n?t:[t],i=this.select.cachedOptions.indexOf(this),o=r.indexOf(this);i>-1&&o<0&&this.select.cachedOptions.splice(i,1),this.select.onOptionDestroy(this.select.options.indexOf(this))}},l=u,d=n(0),h=Object(d["a"])(l,r,i,!1,null,null,null);h.options.__file="packages/select/src/option.vue";t["a"]=h.exports},37:function(e,t){e.exports=n("8bbc")},4:function(e,t){e.exports=n("d010")},5:function(e,t){e.exports=n("e974")},6:function(e,t){e.exports=n("6b7c")},61:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleClose,expression:"handleClose"}],staticClass:"el-select",class:[e.selectSize?"el-select--"+e.selectSize:""],on:{click:function(t){return t.stopPropagation(),e.toggleMenu(t)}}},[e.multiple?n("div",{ref:"tags",staticClass:"el-select__tags",style:{"max-width":e.inputWidth-32+"px",width:"100%"}},[e.collapseTags&&e.selected.length?n("span",[n("el-tag",{attrs:{closable:!e.selectDisabled,size:e.collapseTagSize,hit:e.selected[0].hitState,type:"info","disable-transitions":""},on:{close:function(t){e.deleteTag(t,e.selected[0])}}},[n("span",{staticClass:"el-select__tags-text"},[e._v(e._s(e.selected[0].currentLabel))])]),e.selected.length>1?n("el-tag",{attrs:{closable:!1,size:e.collapseTagSize,type:"info","disable-transitions":""}},[n("span",{staticClass:"el-select__tags-text"},[e._v("+ "+e._s(e.selected.length-1))])]):e._e()],1):e._e(),e.collapseTags?e._e():n("transition-group",{on:{"after-leave":e.resetInputHeight}},e._l(e.selected,(function(t){return n("el-tag",{key:e.getValueKey(t),attrs:{closable:!e.selectDisabled,size:e.collapseTagSize,hit:t.hitState,type:"info","disable-transitions":""},on:{close:function(n){e.deleteTag(n,t)}}},[n("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.currentLabel))])])})),1),e.filterable?n("input",{directives:[{name:"model",rawName:"v-model",value:e.query,expression:"query"}],ref:"input",staticClass:"el-select__input",class:[e.selectSize?"is-"+e.selectSize:""],style:{"flex-grow":"1",width:e.inputLength/(e.inputWidth-32)+"%","max-width":e.inputWidth-42+"px"},attrs:{type:"text",disabled:e.selectDisabled,autocomplete:e.autoComplete||e.autocomplete},domProps:{value:e.query},on:{focus:e.handleFocus,blur:function(t){e.softFocus=!1},keyup:e.managePlaceholder,keydown:[e.resetInputState,function(t){if(!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"]))return null;t.preventDefault(),e.navigateOptions("next")},function(t){if(!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"]))return null;t.preventDefault(),e.navigateOptions("prev")},function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.selectOption(t))},function(t){if(!("button"in t)&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;t.stopPropagation(),t.preventDefault(),e.visible=!1},function(t){return!("button"in t)&&e._k(t.keyCode,"delete",[8,46],t.key,["Backspace","Delete","Del"])?null:e.deletePrevTag(t)},function(t){if(!("button"in t)&&e._k(t.keyCode,"tab",9,t.key,"Tab"))return null;e.visible=!1}],compositionstart:e.handleComposition,compositionupdate:e.handleComposition,compositionend:e.handleComposition,input:[function(t){t.target.composing||(e.query=t.target.value)},e.debouncedQueryChange]}}):e._e()],1):e._e(),n("el-input",{ref:"reference",class:{"is-focus":e.visible},attrs:{type:"text",placeholder:e.currentPlaceholder,name:e.name,id:e.id,autocomplete:e.autoComplete||e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,tabindex:e.multiple&&e.filterable?"-1":null},on:{focus:e.handleFocus,blur:e.handleBlur,input:e.debouncedOnInputChange},nativeOn:{keydown:[function(t){if(!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"]))return null;t.stopPropagation(),t.preventDefault(),e.navigateOptions("next")},function(t){if(!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"]))return null;t.stopPropagation(),t.preventDefault(),e.navigateOptions("prev")},function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),e.selectOption(t))},function(t){if(!("button"in t)&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;t.stopPropagation(),t.preventDefault(),e.visible=!1},function(t){if(!("button"in t)&&e._k(t.keyCode,"tab",9,t.key,"Tab"))return null;e.visible=!1}],mouseenter:function(t){e.inputHovering=!0},mouseleave:function(t){e.inputHovering=!1}},model:{value:e.selectedLabel,callback:function(t){e.selectedLabel=t},expression:"selectedLabel"}},[e.$slots.prefix?n("template",{slot:"prefix"},[e._t("prefix")],2):e._e(),n("template",{slot:"suffix"},[n("i",{directives:[{name:"show",rawName:"v-show",value:!e.showClose,expression:"!showClose"}],class:["el-select__caret","el-input__icon","el-icon-"+e.iconClass]}),e.showClose?n("i",{staticClass:"el-select__caret el-input__icon el-icon-circle-close",on:{click:e.handleClearClick}}):e._e()])],2),n("transition",{attrs:{name:"el-zoom-in-top"},on:{"before-enter":e.handleMenuEnter,"after-leave":e.doDestroy}},[n("el-select-menu",{directives:[{name:"show",rawName:"v-show",value:e.visible&&!1!==e.emptyText,expression:"visible && emptyText !== false"}],ref:"popper",attrs:{"append-to-body":e.popperAppendToBody}},[n("el-scrollbar",{directives:[{name:"show",rawName:"v-show",value:e.options.length>0&&!e.loading,expression:"options.length > 0 && !loading"}],ref:"scrollbar",class:{"is-empty":!e.allowCreate&&e.query&&0===e.filteredOptionsCount},attrs:{tag:"ul","wrap-class":"el-select-dropdown__wrap","view-class":"el-select-dropdown__list"}},[e.showNewOption?n("el-option",{attrs:{value:e.query,created:""}}):e._e(),e._t("default")],2),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&0===e.options.length)?[e.$slots.empty?e._t("empty"):n("p",{staticClass:"el-select-dropdown__empty"},[e._v("\n          "+e._s(e.emptyText)+"\n        ")])]:e._e()],2)],1)],1)},i=[];r._withStripped=!0;var o=n(4),a=n.n(o),s=n(22),c=n.n(s),u=n(6),l=n.n(u),d=n(10),h=n.n(d),f=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-select-dropdown el-popper",class:[{"is-multiple":e.$parent.multiple},e.popperClass],style:{minWidth:e.minWidth}},[e._t("default")],2)},p=[];f._withStripped=!0;var g=n(5),m=n.n(g),v={name:"ElSelectDropdown",componentName:"ElSelectDropdown",mixins:[m.a],props:{placement:{default:"bottom-start"},boundariesPadding:{default:0},popperOptions:{default:function(){return{gpuAcceleration:!1}}},visibleArrow:{default:!0},appendToBody:{type:Boolean,default:!0}},data:function(){return{minWidth:""}},computed:{popperClass:function(){return this.$parent.popperClass}},watch:{"$parent.inputWidth":function(){this.minWidth=this.$parent.$el.getBoundingClientRect().width+"px"}},mounted:function(){var e=this;this.referenceElm=this.$parent.$refs.reference.$el,this.$parent.popperElm=this.popperElm=this.$el,this.$on("updatePopper",(function(){e.$parent.visible&&e.updatePopper()})),this.$on("destroyPopper",this.destroyPopper)}},y=v,_=n(0),b=Object(_["a"])(y,f,p,!1,null,null,null);b.options.__file="packages/select/src/select-dropdown.vue";var S=b.exports,x=n(33),w=n(37),I=n.n(w),C=n(15),M=n.n(C),T=n(18),k=n.n(T),E=n(12),A=n.n(E),D=n(16),O=n(31),R=n.n(O),L=n(3),P={data:function(){return{hoverOption:-1}},computed:{optionsAllDisabled:function(){return this.options.filter((function(e){return e.visible})).every((function(e){return e.disabled}))}},watch:{hoverIndex:function(e){var t=this;"number"===typeof e&&e>-1&&(this.hoverOption=this.options[e]||{}),this.options.forEach((function(e){e.hover=t.hoverOption===e}))}},methods:{navigateOptions:function(e){var t=this;if(this.visible){if(0!==this.options.length&&0!==this.filteredOptionsCount&&!this.optionsAllDisabled){"next"===e?(this.hoverIndex++,this.hoverIndex===this.options.length&&(this.hoverIndex=0)):"prev"===e&&(this.hoverIndex--,this.hoverIndex<0&&(this.hoverIndex=this.options.length-1));var n=this.options[this.hoverIndex];!0!==n.disabled&&!0!==n.groupDisabled&&n.visible||this.navigateOptions(e),this.$nextTick((function(){return t.scrollToOption(t.hoverOption)}))}}else this.visible=!0}}},N=n(21),U={mixins:[a.a,l.a,c()("reference"),P],name:"ElSelect",componentName:"ElSelect",inject:{elForm:{default:""},elFormItem:{default:""}},provide:function(){return{select:this}},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},readonly:function(){return!this.filterable||this.multiple||!Object(L["isIE"])()&&!Object(L["isEdge"])()&&!this.visible},showClose:function(){var e=this.multiple?Array.isArray(this.value)&&this.value.length>0:void 0!==this.value&&null!==this.value&&""!==this.value,t=this.clearable&&!this.selectDisabled&&this.inputHovering&&e;return t},iconClass:function(){return this.remote&&this.filterable?"":this.visible?"arrow-up is-reverse":"arrow-up"},debounce:function(){return this.remote?300:0},emptyText:function(){return this.loading?this.loadingText||this.t("el.select.loading"):(!this.remote||""!==this.query||0!==this.options.length)&&(this.filterable&&this.query&&this.options.length>0&&0===this.filteredOptionsCount?this.noMatchText||this.t("el.select.noMatch"):0===this.options.length?this.noDataText||this.t("el.select.noData"):null)},showNewOption:function(){var e=this,t=this.options.filter((function(e){return!e.created})).some((function(t){return t.currentLabel===e.query}));return this.filterable&&this.allowCreate&&""!==this.query&&!t},selectSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},selectDisabled:function(){return this.disabled||(this.elForm||{}).disabled},collapseTagSize:function(){return["small","mini"].indexOf(this.selectSize)>-1?"mini":"small"},propPlaceholder:function(){return"undefined"!==typeof this.placeholder?this.placeholder:this.t("el.select.placeholder")}},components:{ElInput:h.a,ElSelectMenu:S,ElOption:x["a"],ElTag:I.a,ElScrollbar:M.a},directives:{Clickoutside:A.a},props:{name:String,id:String,value:{required:!0},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(e){return!0}},automaticDropdown:Boolean,size:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:String,remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String,required:!1},defaultFirstOption:Boolean,reserveKeyword:Boolean,valueKey:{type:String,default:"value"},collapseTags:Boolean,popperAppendToBody:{type:Boolean,default:!0}},data:function(){return{options:[],cachedOptions:[],createdLabel:null,createdSelected:!1,selected:this.multiple?[]:{},inputLength:20,inputWidth:0,initialInputHeight:0,cachedPlaceHolder:"",optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,currentPlaceholder:"",menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1}},watch:{selectDisabled:function(){var e=this;this.$nextTick((function(){e.resetInputHeight()}))},propPlaceholder:function(e){this.cachedPlaceHolder=this.currentPlaceholder=e},value:function(e,t){this.multiple&&(this.resetInputHeight(),e&&e.length>0||this.$refs.input&&""!==this.query?this.currentPlaceholder="":this.currentPlaceholder=this.cachedPlaceHolder,this.filterable&&!this.reserveKeyword&&(this.query="",this.handleQueryChange(this.query))),this.setSelected(),this.filterable&&!this.multiple&&(this.inputLength=20),Object(L["valueEquals"])(e,t)||this.dispatch("ElFormItem","el.form.change",e)},visible:function(e){var t=this;e?(this.broadcast("ElSelectDropdown","updatePopper"),this.filterable&&(this.query=this.remote?"":this.selectedLabel,this.handleQueryChange(this.query),this.multiple?this.$refs.input.focus():(this.remote||(this.broadcast("ElOption","queryChange",""),this.broadcast("ElOptionGroup","queryChange")),this.selectedLabel&&(this.currentPlaceholder=this.selectedLabel,this.selectedLabel="")))):(this.broadcast("ElSelectDropdown","destroyPopper"),this.$refs.input&&this.$refs.input.blur(),this.query="",this.previousQuery=null,this.selectedLabel="",this.inputLength=20,this.menuVisibleOnFocus=!1,this.resetHoverIndex(),this.$nextTick((function(){t.$refs.input&&""===t.$refs.input.value&&0===t.selected.length&&(t.currentPlaceholder=t.cachedPlaceHolder)})),this.multiple||(this.selected&&(this.filterable&&this.allowCreate&&this.createdSelected&&this.createdLabel?this.selectedLabel=this.createdLabel:this.selectedLabel=this.selected.currentLabel,this.filterable&&(this.query=this.selectedLabel)),this.filterable&&(this.currentPlaceholder=this.cachedPlaceHolder))),this.$emit("visible-change",e)},options:function(){var e=this;if(!this.$isServer){this.$nextTick((function(){e.broadcast("ElSelectDropdown","updatePopper")})),this.multiple&&this.resetInputHeight();var t=this.$el.querySelectorAll("input");-1===[].indexOf.call(t,document.activeElement)&&this.setSelected(),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()}}},methods:{handleComposition:function(e){var t=this,n=e.target.value;if("compositionend"===e.type)this.isOnComposition=!1,this.$nextTick((function(e){return t.handleQueryChange(n)}));else{var r=n[n.length-1]||"";this.isOnComposition=!Object(N["isKorean"])(r)}},handleQueryChange:function(e){var t=this;this.previousQuery===e||this.isOnComposition||(null!==this.previousQuery||"function"!==typeof this.filterMethod&&"function"!==typeof this.remoteMethod?(this.previousQuery=e,this.$nextTick((function(){t.visible&&t.broadcast("ElSelectDropdown","updatePopper")})),this.hoverIndex=-1,this.multiple&&this.filterable&&this.$nextTick((function(){var e=15*t.$refs.input.value.length+20;t.inputLength=t.collapseTags?Math.min(50,e):e,t.managePlaceholder(),t.resetInputHeight()})),this.remote&&"function"===typeof this.remoteMethod?(this.hoverIndex=-1,this.remoteMethod(e)):"function"===typeof this.filterMethod?(this.filterMethod(e),this.broadcast("ElOptionGroup","queryChange")):(this.filteredOptionsCount=this.optionsCount,this.broadcast("ElOption","queryChange",e),this.broadcast("ElOptionGroup","queryChange")),this.defaultFirstOption&&(this.filterable||this.remote)&&this.filteredOptionsCount&&this.checkDefaultFirstOption()):this.previousQuery=e)},scrollToOption:function(e){var t=Array.isArray(e)&&e[0]?e[0].$el:e.$el;if(this.$refs.popper&&t){var n=this.$refs.popper.$el.querySelector(".el-select-dropdown__wrap");R()(n,t)}this.$refs.scrollbar&&this.$refs.scrollbar.handleScroll()},handleMenuEnter:function(){var e=this;this.$nextTick((function(){return e.scrollToOption(e.selected)}))},emitChange:function(e){Object(L["valueEquals"])(this.value,e)||this.$emit("change",e)},getOption:function(e){for(var t=void 0,n="[object object]"===Object.prototype.toString.call(e).toLowerCase(),r="[object null]"===Object.prototype.toString.call(e).toLowerCase(),i="[object undefined]"===Object.prototype.toString.call(e).toLowerCase(),o=this.cachedOptions.length-1;o>=0;o--){var a=this.cachedOptions[o],s=n?Object(L["getValueByPath"])(a.value,this.valueKey)===Object(L["getValueByPath"])(e,this.valueKey):a.value===e;if(s){t=a;break}}if(t)return t;var c=n||r||i?"":String(e),u={value:e,currentLabel:c};return this.multiple&&(u.hitState=!1),u},setSelected:function(){var e=this;if(!this.multiple){var t=this.getOption(this.value);return t.created?(this.createdLabel=t.currentLabel,this.createdSelected=!0):this.createdSelected=!1,this.selectedLabel=t.currentLabel,this.selected=t,void(this.filterable&&(this.query=this.selectedLabel))}var n=[];Array.isArray(this.value)&&this.value.forEach((function(t){n.push(e.getOption(t))})),this.selected=n,this.$nextTick((function(){e.resetInputHeight()}))},handleFocus:function(e){this.softFocus?this.softFocus=!1:((this.automaticDropdown||this.filterable)&&(this.visible=!0,this.filterable&&(this.menuVisibleOnFocus=!0)),this.$emit("focus",e))},blur:function(){this.visible=!1,this.$refs.reference.blur()},handleBlur:function(e){var t=this;setTimeout((function(){t.isSilentBlur?t.isSilentBlur=!1:t.$emit("blur",e)}),50),this.softFocus=!1},handleClearClick:function(e){this.deleteSelected(e)},doDestroy:function(){this.$refs.popper&&this.$refs.popper.doDestroy()},handleClose:function(){this.visible=!1},toggleLastOptionHitState:function(e){if(Array.isArray(this.selected)){var t=this.selected[this.selected.length-1];if(t)return!0===e||!1===e?(t.hitState=e,e):(t.hitState=!t.hitState,t.hitState)}},deletePrevTag:function(e){if(e.target.value.length<=0&&!this.toggleLastOptionHitState()){var t=this.value.slice();t.pop(),this.$emit("input",t),this.emitChange(t)}},managePlaceholder:function(){""!==this.currentPlaceholder&&(this.currentPlaceholder=this.$refs.input.value?"":this.cachedPlaceHolder)},resetInputState:function(e){8!==e.keyCode&&this.toggleLastOptionHitState(!1),this.inputLength=15*this.$refs.input.value.length+20,this.resetInputHeight()},resetInputHeight:function(){var e=this;this.collapseTags&&!this.filterable||this.$nextTick((function(){if(e.$refs.reference){var t=e.$refs.reference.$el.childNodes,n=[].filter.call(t,(function(e){return"INPUT"===e.tagName}))[0],r=e.$refs.tags,i=r?Math.round(r.getBoundingClientRect().height):0,o=e.initialInputHeight||40;n.style.height=0===e.selected.length?o+"px":Math.max(r?i+(i>o?6:0):0,o)+"px",e.visible&&!1!==e.emptyText&&e.broadcast("ElSelectDropdown","updatePopper")}}))},resetHoverIndex:function(){var e=this;setTimeout((function(){e.multiple?e.selected.length>0?e.hoverIndex=Math.min.apply(null,e.selected.map((function(t){return e.options.indexOf(t)}))):e.hoverIndex=-1:e.hoverIndex=e.options.indexOf(e.selected)}),300)},handleOptionSelect:function(e,t){var n=this;if(this.multiple){var r=(this.value||[]).slice(),i=this.getValueIndex(r,e.value);i>-1?r.splice(i,1):(this.multipleLimit<=0||r.length<this.multipleLimit)&&r.push(e.value),this.$emit("input",r),this.emitChange(r),e.created&&(this.query="",this.handleQueryChange(""),this.inputLength=20),this.filterable&&this.$refs.input.focus()}else this.$emit("input",e.value),this.emitChange(e.value),this.visible=!1;this.isSilentBlur=t,this.setSoftFocus(),this.visible||this.$nextTick((function(){n.scrollToOption(e)}))},setSoftFocus:function(){this.softFocus=!0;var e=this.$refs.input||this.$refs.reference;e&&e.focus()},getValueIndex:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1],n="[object object]"===Object.prototype.toString.call(t).toLowerCase();if(n){var r=this.valueKey,i=-1;return e.some((function(e,n){return Object(L["getValueByPath"])(e,r)===Object(L["getValueByPath"])(t,r)&&(i=n,!0)})),i}return e.indexOf(t)},toggleMenu:function(){this.selectDisabled||(this.menuVisibleOnFocus?this.menuVisibleOnFocus=!1:this.visible=!this.visible,this.visible&&(this.$refs.input||this.$refs.reference).focus())},selectOption:function(){this.visible?this.options[this.hoverIndex]&&this.handleOptionSelect(this.options[this.hoverIndex]):this.toggleMenu()},deleteSelected:function(e){e.stopPropagation();var t=this.multiple?[]:"";this.$emit("input",t),this.emitChange(t),this.visible=!1,this.$emit("clear")},deleteTag:function(e,t){var n=this.selected.indexOf(t);if(n>-1&&!this.selectDisabled){var r=this.value.slice();r.splice(n,1),this.$emit("input",r),this.emitChange(r),this.$emit("remove-tag",t.value)}e.stopPropagation()},onInputChange:function(){this.filterable&&this.query!==this.selectedLabel&&(this.query=this.selectedLabel,this.handleQueryChange(this.query))},onOptionDestroy:function(e){e>-1&&(this.optionsCount--,this.filteredOptionsCount--,this.options.splice(e,1))},resetInputWidth:function(){this.inputWidth=this.$refs.reference.$el.getBoundingClientRect().width},handleResize:function(){this.resetInputWidth(),this.multiple&&this.resetInputHeight()},checkDefaultFirstOption:function(){this.hoverIndex=-1;for(var e=!1,t=this.options.length-1;t>=0;t--)if(this.options[t].created){e=!0,this.hoverIndex=t;break}if(!e)for(var n=0;n!==this.options.length;++n){var r=this.options[n];if(this.query){if(!r.disabled&&!r.groupDisabled&&r.visible){this.hoverIndex=n;break}}else if(r.itemSelected){this.hoverIndex=n;break}}},getValueKey:function(e){return"[object object]"!==Object.prototype.toString.call(e.value).toLowerCase()?e.value:Object(L["getValueByPath"])(e.value,this.valueKey)}},created:function(){var e=this;this.cachedPlaceHolder=this.currentPlaceholder=this.propPlaceholder,this.multiple&&!Array.isArray(this.value)&&this.$emit("input",[]),!this.multiple&&Array.isArray(this.value)&&this.$emit("input",""),this.debouncedOnInputChange=k()(this.debounce,(function(){e.onInputChange()})),this.debouncedQueryChange=k()(this.debounce,(function(t){e.handleQueryChange(t.target.value)})),this.$on("handleOptionClick",this.handleOptionSelect),this.$on("setSelected",this.setSelected)},mounted:function(){var e=this;this.multiple&&Array.isArray(this.value)&&this.value.length>0&&(this.currentPlaceholder=""),Object(D["addResizeListener"])(this.$el,this.handleResize);var t=this.$refs.reference;if(t&&t.$el){var n={medium:36,small:32,mini:28},r=t.$el.querySelector("input");this.initialInputHeight=r.getBoundingClientRect().height||n[this.selectSize]}this.remote&&this.multiple&&this.resetInputHeight(),this.$nextTick((function(){t&&t.$el&&(e.inputWidth=t.$el.getBoundingClientRect().width)})),this.setSelected()},beforeDestroy:function(){this.$el&&this.handleResize&&Object(D["removeResizeListener"])(this.$el,this.handleResize)}},F=U,G=Object(_["a"])(F,r,i,!1,null,null,null);G.options.__file="packages/select/src/select.vue";var V=G.exports;V.install=function(e){e.component(V.name,V)};t["default"]=V}})},"4e82":function(e,t,n){"use strict";var r=n("23e7"),i=n("e330"),o=n("59ed"),a=n("7b0b"),s=n("07fa"),c=n("577e"),u=n("d039"),l=n("addb"),d=n("a640"),h=n("04d1"),f=n("d998"),p=n("2d00"),g=n("512c"),m=[],v=i(m.sort),y=i(m.push),_=u((function(){m.sort(void 0)})),b=u((function(){m.sort(null)})),S=d("sort"),x=!u((function(){if(p)return p<70;if(!(h&&h>3)){if(f)return!0;if(g)return g<603;var e,t,n,r,i="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)m.push({k:t+r,v:n})}for(m.sort((function(e,t){return t.v-e.v})),r=0;r<m.length;r++)t=m[r].k.charAt(0),i.charAt(i.length-1)!==t&&(i+=t);return"DGBEFHACIJK"!==i}})),w=_||!b||!S||!x,I=function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:c(t)>c(n)?1:-1}};r({target:"Array",proto:!0,forced:w},{sort:function(e){void 0!==e&&o(e);var t=a(this);if(x)return void 0===e?v(t):v(t,e);var n,r,i=[],c=s(t);for(r=0;r<c;r++)r in t&&y(i,t[r]);l(i,I(e)),n=i.length,r=0;while(r<n)t[r]=i[r++];while(r<c)delete t[r++];return t}})},"4e86":function(e,t,n){},"4e9f":function(e,t,n){var r=n("22d1"),i=n("29a8"),o=n("2145"),a=i.toolbox.saveAsImage;function s(e){this.model=e}s.defaultOption={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:a.title,type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:a.lang.slice()},s.prototype.unusable=!r.canvasSupported;var c=s.prototype;c.onclick=function(e,t){var n=this.model,i=n.get("name")||e.get("title.0.text")||"echarts",o="svg"===t.getZr().painter.getType(),a=o?"svg":n.get("type",!0)||"png",s=t.getConnectedDataURL({type:a,backgroundColor:n.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")});if("function"!==typeof MouseEvent||r.browser.ie||r.browser.edge)if(window.navigator.msSaveOrOpenBlob){var c=atob(s.split(",")[1]),u=c.length,l=new Uint8Array(u);while(u--)l[u]=c.charCodeAt(u);var d=new Blob([l]);window.navigator.msSaveOrOpenBlob(d,i+"."+a)}else{var h=n.get("lang"),f='<body style="margin:0;"><img src="'+s+'" style="max-width:100%;" title="'+(h&&h[0]||"")+'" /></body>',p=window.open();p.document.write(f)}else{var g=document.createElement("a");g.download=i+"."+a,g.target="_blank",g.href=s;var m=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});g.dispatchEvent(m)}},o.register("saveAsImage",s);var u=s;e.exports=u},"4ea4":function(e,t){function n(e){return e&&e.__esModule?e:{default:e}}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},"4eb1":function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.radar=g;var i=r(n("9523")),o=r(n("7037")),a=r(n("278c")),s=r(n("448a")),c=n("18ad"),u=n("9d85"),l=n("5557"),d=n("53b8"),h=n("becb");function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){(0,i["default"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.series;n||(n=[]);var r=(0,h.initNeedSeries)(n,u.radarConfig,"radar");r=m(r,e),r=v(r,e),r=y(r,e),(0,c.doUpdate)({chart:e,series:r,key:"radar",getGraphConfig:_,getStartGraphConfig:b,beforeChange:w}),(0,c.doUpdate)({chart:e,series:r,key:"radarPoint",getGraphConfig:I,getStartGraphConfig:C}),(0,c.doUpdate)({chart:e,series:r,key:"radarLabel",getGraphConfig:k})}function m(e,t){var n=t.radarAxis;if(!n)return[];var r=n.indicator,i=n.axisLineAngles,o=n.radius,a=n.centerPos;return e.forEach((function(e){var t=e.data;e.dataRadius=[],e.radarPosition=r.map((function(n,r){var c=n.max,u=n.min,d=t[r];"number"!==typeof c&&(c=d),"number"!==typeof u&&(u=0),"number"!==typeof d&&(d=u);var h=(d-u)/(c-u)*o;return e.dataRadius[r]=h,l.getCircleRadianPoint.apply(void 0,(0,s["default"])(a).concat([h,i[r]]))}))})),e}function v(e,t){var n=t.radarAxis;if(!n)return[];var r=n.centerPos,i=n.axisLineAngles;return e.forEach((function(e){var t=e.dataRadius,n=e.label,o=n.labelGap;e.labelPosition=t.map((function(e,t){return l.getCircleRadianPoint.apply(void 0,(0,s["default"])(r).concat([e+o,i[t]]))}))})),e}function y(e,t){var n=t.radarAxis;if(!n)return[];var r=(0,a["default"])(n.centerPos,2),i=r[0],o=r[1];return e.forEach((function(e){var t=e.labelPosition,n=t.map((function(e){var t=(0,a["default"])(e,2),n=t[0],r=t[1],s=n>i?"left":"right",c=r>o?"top":"bottom";return{textAlign:s,textBaseline:c}}));e.labelAlign=n})),e}function _(e){var t=e.animationCurve,n=e.animationFrame,r=e.rLevel;return[{name:"polyline",index:r,animationCurve:t,animationFrame:n,shape:S(e),style:x(e)}]}function b(e,t){var n=t.chart.radarAxis.centerPos,r=_(e)[0],i=r.shape.points.length,o=new Array(i).fill(0).map((function(e){return(0,s["default"])(n)}));return r.shape.points=o,[r]}function S(e){var t=e.radarPosition;return{points:t,close:!0}}function x(e){var t=e.radarStyle,n=e.color,r=(0,d.getRgbaValue)(n);r[3]=.5;var i={stroke:n,fill:(0,d.getColorFromRgbValue)(r)};return(0,h.deepMerge)(i,t)}function w(e,t){var n=t.shape,r=e.shape.points,i=r.length,o=n.points.length;if(o>i){var a=r.slice(-1)[0],c=new Array(o-i).fill(0).map((function(e){return(0,s["default"])(a)}));r.push.apply(r,(0,s["default"])(c))}else o<i&&r.splice(o)}function I(e){var t=e.radarPosition,n=e.animationCurve,r=e.animationFrame,i=e.rLevel;return t.map((function(t,o){return{name:"circle",index:i,animationCurve:n,animationFrame:r,visible:e.point.show,shape:M(e,o),style:T(e,o)}}))}function C(e){var t=I(e);return t.forEach((function(e){return e.shape.r=.01})),t}function M(e,t){var n=e.radarPosition,r=e.point,i=r.radius,o=n[t];return{rx:o[0],ry:o[1],r:i}}function T(e,t){var n=e.point,r=e.color,i=n.style;return(0,h.deepMerge)({stroke:r},i)}function k(e){var t=e.labelPosition,n=e.animationCurve,r=e.animationFrame,i=e.rLevel;return t.map((function(t,o){return{name:"text",index:i,visible:e.label.show,animationCurve:n,animationFrame:r,shape:E(e,o),style:D(e,o)}}))}function E(e,t){var n=e.labelPosition,r=e.label,i=e.data,a=r.offset,s=r.formatter,c=A(n[t],a),u=i[t]?i[t].toString():"0",l=(0,o["default"])(s);return"string"===l&&(u=s.replace("{value}",u)),"function"===l&&(u=s(u)),{content:u,position:c}}function A(e,t){var n=(0,a["default"])(e,2),r=n[0],i=n[1],o=(0,a["default"])(t,2),s=o[0],c=o[1];return[r+s,i+c]}function D(e,t){var n=e.label,r=e.color,i=e.labelAlign,o=n.style,a=p({fill:r},i[t]);return(0,h.deepMerge)(a,o)}},"4f85":function(e,t,n){var r=n("4e08"),i=(r.__DEV__,n("6d8b")),o=n("22d1"),a=n("eda2"),s=a.formatTime,c=a.encodeHTML,u=a.addCommas,l=a.getTooltipMarker,d=n("e0d3"),h=n("6cb7"),f=n("e47b"),p=n("38a2"),g=n("f934"),m=g.getLayoutParams,v=g.mergeLayoutParam,y=n("f47d"),_=y.createTask,b=n("0f99"),S=b.prepareSource,x=b.getSource,w=n("2b17"),I=w.retrieveRawValue,C=d.makeInner(),M=h.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendVisualProvider:null,visualColorAccessPath:"itemStyle.color",visualBorderColorAccessPath:"itemStyle.borderColor",layoutMode:null,init:function(e,t,n,r){this.seriesIndex=this.componentIndex,this.dataTask=_({count:E,reset:A}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),S(this);var i=this.getInitialData(e,n);O(i,this),this.dataTask.context.data=i,C(this).dataBeforeProcessed=i,T(this)},mergeDefaultAndTheme:function(e,t){var n=this.layoutMode,r=n?m(e):{},o=this.subType;h.hasClass(o)&&(o+="Series"),i.merge(e,t.getTheme().get(this.subType)),i.merge(e,this.getDefaultOption()),d.defaultEmphasis(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&v(e,r,n)},mergeOption:function(e,t){e=i.merge(this.option,e,!0),this.fillDataTextStyle(e.data);var n=this.layoutMode;n&&v(this.option,e,n),S(this);var r=this.getInitialData(e,t);O(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,C(this).dataBeforeProcessed=r,T(this)},fillDataTextStyle:function(e){if(e&&!i.isTypedArray(e))for(var t=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&d.defaultEmphasis(e[n],"label",t)},getInitialData:function(){},appendData:function(e){var t=this.getRawData();t.appendData(e.data)},getData:function(e){var t=L(this);if(t){var n=t.context.data;return null==e?n:n.getLinkedData(e)}return C(this).data},setData:function(e){var t=L(this);if(t){var n=t.context;n.data!==e&&t.modifyOutputEnd&&t.setOutputEnd(e.count()),n.outputData=e,t!==this.dataTask&&(n.data=e)}C(this).data=e},getSource:function(){return x(this)},getRawData:function(){return C(this).dataBeforeProcessed},getBaseAxis:function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},formatTooltip:function(e,t,n,r){var o=this;r=r||"html";var a="html"===r?"<br/>":"\n",h="richText"===r,f={},p=0;function g(n){var a=i.reduce(n,(function(e,t,n){var r=v.getDimensionInfo(n);return e|(r&&!1!==r.tooltip&&null!=r.displayName)}),0),d=[];function g(e,n){var i=v.getDimensionInfo(n);if(i&&!1!==i.otherDims.tooltip){var g=i.type,m="sub"+o.seriesIndex+"at"+p,y=l({color:x,type:"subItem",renderMode:r,markerId:m}),_="string"===typeof y?y:y.content,b=(a?_+c(i.displayName||"-")+": ":"")+c("ordinal"===g?e+"":"time"===g?t?"":s("yyyy/MM/dd hh:mm:ss",e):u(e));b&&d.push(b),h&&(f[m]=x,++p)}}y.length?i.each(y,(function(t){g(I(v,e,t),t)})):i.each(n,g);var m=a?h?"\n":"<br/>":"",_=m+d.join(m||", ");return{renderMode:r,content:_,style:f}}function m(e){return{renderMode:r,content:c(u(e)),style:f}}var v=this.getData(),y=v.mapDimension("defaultedTooltip",!0),_=y.length,b=this.getRawValue(e),S=i.isArray(b),x=v.getItemVisual(e,"color");i.isObject(x)&&x.colorStops&&(x=(x.colorStops[0]||{}).color),x=x||"transparent";var w=_>1||S&&!_?g(b):m(_?I(v,e,y[0]):S?b[0]:b),C=w.content,M=o.seriesIndex+"at"+p,T=l({color:x,type:"item",renderMode:r,markerId:M});f[M]=x,++p;var k=v.getName(e),E=this.name;d.isNameSpecified(this)||(E=""),E=E?c(E)+(t?": ":a):"";var A="string"===typeof T?T:T.content,D=t?A+E+C:E+A+(k?c(k)+": "+C:C);return{html:D,markers:f}},isAnimationEnabled:function(){if(o.node)return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),e},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(e,t,n){var r=this.ecModel,i=f.getColorFromPalette.call(this,e,t,n);return i||(i=r.getColorFromPalette(e,t,n)),i},coordDimToDataDim:function(e){return this.getRawData().mapDimension(e,!0)},getProgressive:function(){return this.get("progressive")},getProgressiveThreshold:function(){return this.get("progressiveThreshold")},getAxisTooltipData:null,getTooltipPosition:null,pipeTask:null,preventIncremental:null,pipelineContext:null});function T(e){var t=e.name;d.isNameSpecified(e)||(e.name=k(e)||t)}function k(e){var t=e.getRawData(),n=t.mapDimension("seriesName",!0),r=[];return i.each(n,(function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)})),r.join(" ")}function E(e){return e.model.getRawData().count()}function A(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),D}function D(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function O(e,t){i.each(e.CHANGABLE_METHODS,(function(n){e.wrapMethod(n,i.curry(R,t))}))}function R(e){var t=L(e);t&&t.setOutputEnd(this.count())}function L(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}i.mixin(M,p),i.mixin(M,f);var P=M;e.exports=P},"4fac":function(e,t,n){var r=n("620b"),i=n("9c2c");function o(e,t,n){var o=t.points,a=t.smooth;if(o&&o.length>=2){if(a&&"spline"!==a){var s=i(o,a,n,t.smoothConstraint);e.moveTo(o[0][0],o[0][1]);for(var c=o.length,u=0;u<(n?c:c-1);u++){var l=s[2*u],d=s[2*u+1],h=o[(u+1)%c];e.bezierCurveTo(l[0],l[1],d[0],d[1],h[0],h[1])}}else{"spline"===a&&(o=r(o,n)),e.moveTo(o[0][0],o[0][1]);u=1;for(var f=o.length;u<f;u++)e.lineTo(o[u][0],o[u][1])}n&&e.closePath()}}t.buildPath=o},"4fad":function(e,t,n){var r=n("d039"),i=n("861d"),o=n("c6b6"),a=n("d86b"),s=Object.isExtensible,c=r((function(){s(1)}));e.exports=c||a?function(e){return!!i(e)&&((!a||"ArrayBuffer"!=o(e))&&(!s||s(e)))}:s},5087:function(e,t,n){var r=n("da84"),i=n("68ee"),o=n("0d51"),a=r.TypeError;e.exports=function(e){if(i(e))return e;throw a(o(e)+" is not a constructor")}},"50c4":function(e,t,n){var r=n("5926"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},"50e5":function(e,t,n){var r=n("6d8b"),i=n("eda2"),o=["x","y","z","radius","angle","single"],a=["cartesian2d","polar","singleAxis"];function s(e){return r.indexOf(a,e)>=0}function c(e,t){e=e.slice();var n=r.map(e,i.capitalFirst);t=(t||[]).slice();var o=r.map(t,i.capitalFirst);return function(i,a){r.each(e,(function(e,r){for(var s={name:e,capital:n[r]},c=0;c<t.length;c++)s[t[c]]=e+o[c];i.call(a,s)}))}}var u=c(o,["axisIndex","axis","index","id"]);function l(e,t,n){return function(n){var r,s={nodes:[],records:{}};if(t((function(e){s.records[e.name]={}})),!n)return s;a(n,s);do{r=!1,e(c)}while(r);function c(e){!i(e,s)&&o(e,s)&&(a(e,s),r=!0)}return s};function i(e,t){return r.indexOf(t.nodes,e)>=0}function o(e,i){var o=!1;return t((function(t){r.each(n(e,t)||[],(function(e){i.records[t.name][e]&&(o=!0)}))})),o}function a(e,i){i.nodes.push(e),t((function(t){r.each(n(e,t)||[],(function(e){i.records[t.name][e]=!0}))}))}}t.isCoordSupported=s,t.createNameEach=c,t.eachAxisDim=u,t.createLinkedNodesFinder=l},5128:function(e,t,n){"use strict";t.__esModule=!0,t.PopupManager=void 0;var r=n("2b0e"),i=h(r),o=n("7f4d"),a=h(o),s=n("4b26"),c=h(s),u=n("e62d"),l=h(u),d=n("5924");function h(e){return e&&e.__esModule?e:{default:e}}var f=1,p=void 0;t.default={props:{visible:{type:Boolean,default:!1},openDelay:{},closeDelay:{},zIndex:{},modal:{type:Boolean,default:!1},modalFade:{type:Boolean,default:!0},modalClass:{},modalAppendToBody:{type:Boolean,default:!1},lockScroll:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!1}},beforeMount:function(){this._popupId="popup-"+f++,c.default.register(this._popupId,this)},beforeDestroy:function(){c.default.deregister(this._popupId),c.default.closeModal(this._popupId),this.restoreBodyStyle()},data:function(){return{opened:!1,bodyPaddingRight:null,computedBodyPaddingRight:0,withoutHiddenClass:!0,rendered:!1}},watch:{visible:function(e){var t=this;if(e){if(this._opening)return;this.rendered?this.open():(this.rendered=!0,i.default.nextTick((function(){t.open()})))}else this.close()}},methods:{open:function(e){var t=this;this.rendered||(this.rendered=!0);var n=(0,a.default)({},this.$props||this,e);this._closeTimer&&(clearTimeout(this._closeTimer),this._closeTimer=null),clearTimeout(this._openTimer);var r=Number(n.openDelay);r>0?this._openTimer=setTimeout((function(){t._openTimer=null,t.doOpen(n)}),r):this.doOpen(n)},doOpen:function(e){if(!this.$isServer&&(!this.willOpen||this.willOpen())&&!this.opened){this._opening=!0;var t=this.$el,n=e.modal,r=e.zIndex;if(r&&(c.default.zIndex=r),n&&(this._closing&&(c.default.closeModal(this._popupId),this._closing=!1),c.default.openModal(this._popupId,c.default.nextZIndex(),this.modalAppendToBody?void 0:t,e.modalClass,e.modalFade),e.lockScroll)){this.withoutHiddenClass=!(0,d.hasClass)(document.body,"el-popup-parent--hidden"),this.withoutHiddenClass&&(this.bodyPaddingRight=document.body.style.paddingRight,this.computedBodyPaddingRight=parseInt((0,d.getStyle)(document.body,"paddingRight"),10)),p=(0,l.default)();var i=document.documentElement.clientHeight<document.body.scrollHeight,o=(0,d.getStyle)(document.body,"overflowY");p>0&&(i||"scroll"===o)&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.computedBodyPaddingRight+p+"px"),(0,d.addClass)(document.body,"el-popup-parent--hidden")}"static"===getComputedStyle(t).position&&(t.style.position="absolute"),t.style.zIndex=c.default.nextZIndex(),this.opened=!0,this.onOpen&&this.onOpen(),this.doAfterOpen()}},doAfterOpen:function(){this._opening=!1},close:function(){var e=this;if(!this.willClose||this.willClose()){null!==this._openTimer&&(clearTimeout(this._openTimer),this._openTimer=null),clearTimeout(this._closeTimer);var t=Number(this.closeDelay);t>0?this._closeTimer=setTimeout((function(){e._closeTimer=null,e.doClose()}),t):this.doClose()}},doClose:function(){this._closing=!0,this.onClose&&this.onClose(),this.lockScroll&&setTimeout(this.restoreBodyStyle,200),this.opened=!1,this.doAfterClose()},doAfterClose:function(){c.default.closeModal(this._popupId),this._closing=!1},restoreBodyStyle:function(){this.modal&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.bodyPaddingRight,(0,d.removeClass)(document.body,"el-popup-parent--hidden")),this.withoutHiddenClass=!0}}},t.PopupManager=c.default},"512c":function(e,t,n){var r=n("342f"),i=r.match(/AppleWebKit\/(\d+)\./);e.exports=!!i&&+i[1]},5270:function(e,t,n){"use strict";var r=n("c532"),i=n("c401"),o=n("2e67"),a=n("2444"),s=n("7a77");function c(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s("canceled")}e.exports=function(e){c(e),e.headers=e.headers||{},e.data=i.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]}));var t=e.adapter||a.adapter;return t(e).then((function(t){return c(e),t.data=i.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(c(e),t&&t.response&&(t.response.data=i.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},"527a":function(e,t,n){var r=n("6d8b"),i=n("3842");function o(e,t){e.eachSeriesByType("themeRiver",(function(e){var t=e.getData(),n=e.coordinateSystem,r={},o=n.getRect();r.rect=o;var s=e.get("boundaryGap"),c=n.getAxis();if(r.boundaryGap=s,"horizontal"===c.orient){s[0]=i.parsePercent(s[0],o.height),s[1]=i.parsePercent(s[1],o.height);var u=o.height-s[0]-s[1];a(t,e,u)}else{s[0]=i.parsePercent(s[0],o.width),s[1]=i.parsePercent(s[1],o.width);var l=o.width-s[0]-s[1];a(t,e,l)}t.setLayout("layoutInfo",r)}))}function a(e,t,n){if(e.count())for(var i,o=t.coordinateSystem,a=t.getLayerSeries(),c=e.mapDimension("single"),u=e.mapDimension("value"),l=r.map(a,(function(t){return r.map(t.indices,(function(t){var n=o.dataToPoint(e.get(c,t));return n[1]=e.get(u,t),n}))})),d=s(l),h=d.y0,f=n/d.max,p=a.length,g=a[0].indices.length,m=0;m<g;++m){i=h[m]*f,e.setItemLayout(a[0].indices[m],{layerIndex:0,x:l[0][m][0],y0:i,y:l[0][m][1]*f});for(var v=1;v<p;++v)i+=l[v-1][m][1]*f,e.setItemLayout(a[v].indices[m],{layerIndex:v,x:l[v][m][0],y0:i,y:l[v][m][1]*f})}}function s(e){for(var t=e.length,n=e[0].length,r=[],i=[],o=0,a={},s=0;s<n;++s){for(var c=0,u=0;c<t;++c)u+=e[c][s][1];u>o&&(o=u),r.push(u)}for(var l=0;l<n;++l)i[l]=(o-r[l])/2;o=0;for(var d=0;d<n;++d){var h=r[d]+i[d];h>o&&(o=h)}return a.y0=i,a.max=o,a}e.exports=o},5319:function(e,t,n){"use strict";var r=n("2ba4"),i=n("c65b"),o=n("e330"),a=n("d784"),s=n("d039"),c=n("825a"),u=n("1626"),l=n("5926"),d=n("50c4"),h=n("577e"),f=n("1d80"),p=n("8aa5"),g=n("dc4a"),m=n("0cb2"),v=n("14c3"),y=n("b622"),_=y("replace"),b=Math.max,S=Math.min,x=o([].concat),w=o([].push),I=o("".indexOf),C=o("".slice),M=function(e){return void 0===e?e:String(e)},T=function(){return"$0"==="a".replace(/./,"$0")}(),k=function(){return!!/./[_]&&""===/./[_]("a","$0")}(),E=!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}));a("replace",(function(e,t,n){var o=k?"$":"$0";return[function(e,n){var r=f(this),o=void 0==e?void 0:g(e,_);return o?i(o,e,r,n):i(t,h(r),e,n)},function(e,i){var a=c(this),s=h(e);if("string"==typeof i&&-1===I(i,o)&&-1===I(i,"$<")){var f=n(t,a,s,i);if(f.done)return f.value}var g=u(i);g||(i=h(i));var y=a.global;if(y){var _=a.unicode;a.lastIndex=0}var T=[];while(1){var k=v(a,s);if(null===k)break;if(w(T,k),!y)break;var E=h(k[0]);""===E&&(a.lastIndex=p(s,d(a.lastIndex),_))}for(var A="",D=0,O=0;O<T.length;O++){k=T[O];for(var R=h(k[0]),L=b(S(l(k.index),s.length),0),P=[],N=1;N<k.length;N++)w(P,M(k[N]));var U=k.groups;if(g){var F=x([R],P,L,s);void 0!==U&&w(F,U);var G=h(r(i,void 0,F))}else G=m(R,s,L,P,U,i);L>=D&&(A+=C(s,D,L)+G,D=L+R.length)}return A+C(s,D)}]}),!E||!T||k)},5377:function(e,t,n){var r=n("83ab"),i=n("9bf2"),o=n("ad6d"),a=n("d039"),s=RegExp.prototype,c=r&&a((function(){return"sy"!==Object.getOwnPropertyDescriptor(s,"flags").get.call({dotAll:!0,sticky:!0})}));c&&i.f(s,"flags",{configurable:!0,get:o})},"53b8":function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.getRgbValue=d,t.getRgbaValue=p,t.getOpacity=g,t.toRgb=m,t.toHex=v,t.getColorFromRgbValue=y,t.darken=_,t.lighten=b,t.fade=S,t["default"]=void 0;var i=r(n("448a")),o=r(n("b7c2")),a=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/,s=/^(rgb|rgba|RGB|RGBA)/,c=/^(rgba|RGBA)/;function u(e){var t=a.test(e),n=s.test(e);return t||n?e:(e=l(e),e||(console.error("Color: Invalid color!"),!1))}function l(e){return e?!!o["default"].has(e)&&o["default"].get(e):(console.error("getColorByKeywords: Missing parameters!"),!1)}function d(e){if(!e)return console.error("getRgbValue: Missing parameters!"),!1;if(e=u(e),!e)return!1;var t=a.test(e),n=s.test(e),r=e.toLowerCase();return t?h(r):n?f(r):void 0}function h(e){return e=e.replace("#",""),3===e.length&&(e=Array.from(e).map((function(e){return e+e})).join("")),e=e.split(""),new Array(3).fill(0).map((function(t,n){return parseInt("0x".concat(e[2*n]).concat(e[2*n+1]))}))}function f(e){return e.replace(/rgb\(|rgba\(|\)/g,"").split(",").slice(0,3).map((function(e){return parseInt(e)}))}function p(e){if(!e)return console.error("getRgbaValue: Missing parameters!"),!1;var t=d(e);return!!t&&(t.push(g(e)),t)}function g(e){if(!e)return console.error("getOpacity: Missing parameters!"),!1;if(e=u(e),!e)return!1;var t=c.test(e);return t?(e=e.toLowerCase(),Number(e.split(",").slice(-1)[0].replace(/[)|\s]/g,""))):1}function m(e,t){if(!e)return console.error("toRgb: Missing parameters!"),!1;var n=d(e);if(!n)return!1;var r="number"===typeof t;return r?"rgba("+n.join(",")+",".concat(t,")"):"rgb("+n.join(",")+")"}function v(e){return e?a.test(e)?e:(e=d(e),!!e&&"#"+e.map((function(e){return Number(e).toString(16)})).map((function(e){return"0"===e?"00":e})).join("")):(console.error("toHex: Missing parameters!"),!1)}function y(e){if(!e)return console.error("getColorFromRgbValue: Missing parameters!"),!1;var t=e.length;if(3!==t&&4!==t)return console.error("getColorFromRgbValue: Value is illegal!"),!1;var n=3===t?"rgb(":"rgba(";return n+=e.join(",")+")",n}function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!e)return console.error("darken: Missing parameters!"),!1;var n=p(e);return!!n&&(n=n.map((function(e,n){return 3===n?e:e-Math.ceil(2.55*t)})).map((function(e){return e<0?0:e})),y(n))}function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!e)return console.error("lighten: Missing parameters!"),!1;var n=p(e);return!!n&&(n=n.map((function(e,n){return 3===n?e:e+Math.ceil(2.55*t)})).map((function(e){return e>255?255:e})),y(n))}function S(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;if(!e)return console.error("fade: Missing parameters!"),!1;var n=d(e);if(!n)return!1;var r=[].concat((0,i["default"])(n),[t/100]);return y(r)}var x={fade:S,toHex:v,toRgb:m,darken:_,lighten:b,getOpacity:g,getRgbValue:d,getRgbaValue:p,getColorFromRgbValue:y};t["default"]=x},"53f3":function(e,t){function n(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=e.option.nodeScaleRatio,r=t.scale,i=r&&r[0]||1,o=t.getZoom(),a=(o-1)*n+1;return a/i}function r(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}t.getNodeGlobalScale=n,t.getSymbolSize=r},5450:function(e,t,n){n("7419"),n("29a9")},5466:function(e,t,n){},"54fb":function(e,t){function n(e){e.eachSeriesByType("map",(function(e){var t=e.get("color"),n=e.getModel("itemStyle"),r=n.get("areaColor"),i=n.get("color")||t[e.seriesIndex%t.length];e.getData().setVisual({areaColor:r,color:i})}))}e.exports=n},"551f":function(e,t,n){var r=n("282b"),i=r([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]),o={getItemStyle:function(e,t){var n=i(this,e,t),r=this.getBorderLineDash();return r&&(n.lineDash=r),n},getBorderLineDash:function(){var e=this.get("borderType");return"solid"===e||null==e?null:"dashed"===e?[5,5]:[1,1]}};e.exports=o},5522:function(e,t,n){n("23e0"),n("1748"),n("6c12")},5530:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));n("b64b"),n("a4d3"),n("4de4"),n("d3b7"),n("e439"),n("159b"),n("dbb4");function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},5557:function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.deepClone=p,t.eliminateBlur=g,t.checkPointIsInCircle=m,t.getTwoPointDistance=v,t.checkPointIsInPolygon=y,t.checkPointIsInSector=_,t.checkPointIsNearPolyline=S,t.checkPointIsInRect=x,t.getRotatePointPos=w,t.getScalePointPos=I,t.getTranslatePointPos=C,t.getDistanceBetweenPointAndLine=M,t.getCircleRadianPoint=T,t.getRegularPolygonPoints=k,t["default"]=void 0;var i=r(n("448a")),o=r(n("278c")),a=r(n("7037")),s=Math.abs,c=Math.sqrt,u=Math.sin,l=Math.cos,d=Math.max,h=Math.min,f=Math.PI;function p(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return e;var n=JSON.parse,r=JSON.stringify;if(!t)return n(r(e));var i=e instanceof Array?[]:{};if(e&&"object"===(0,a["default"])(e))for(var o in e)e.hasOwnProperty(o)&&(e[o]&&"object"===(0,a["default"])(e[o])?i[o]=p(e[o],!0):i[o]=e[o]);return i}function g(e){return e.map((function(e){var t=(0,o["default"])(e,2),n=t[0],r=t[1];return[parseInt(n)+.5,parseInt(r)+.5]}))}function m(e,t,n,r){return v(e,[t,n])<=r}function v(e,t){var n=(0,o["default"])(e,2),r=n[0],i=n[1],a=(0,o["default"])(t,2),u=a[0],l=a[1],d=s(r-u),h=s(i-l);return c(d*d+h*h)}function y(e,t){for(var n=0,r=(0,o["default"])(e,2),i=r[0],a=r[1],s=t.length,c=1,u=t[0];c<=s;c++){var l=t[c%s];if(i>h(u[0],l[0])&&i<=d(u[0],l[0])&&a<=d(u[1],l[1])&&u[0]!==l[0]){var f=(i-u[0])*(l[1]-u[1])/(l[0]-u[0])+u[1];(u[1]===l[1]||a<=f)&&n++}u=l}return n%2===1}function _(e,t,n,r,i,a,s){if(!e)return!1;if(v(e,[t,n])>r)return!1;if(!s){var c=p([a,i]),u=(0,o["default"])(c,2);i=u[0],a=u[1]}var l=i>a;if(l){var d=[a,i];i=d[0],a=d[1]}var h=a-i;if(h>=2*f)return!0;var g=(0,o["default"])(e,2),m=g[0],y=g[1],_=T(t,n,r,i),S=(0,o["default"])(_,2),x=S[0],w=S[1],I=T(t,n,r,a),C=(0,o["default"])(I,2),M=C[0],k=C[1],E=[m-t,y-n],A=[x-t,w-n],D=[M-t,k-n],O=h>f;if(O){var R=p([D,A]),L=(0,o["default"])(R,2);A=L[0],D=L[1]}var P=b(A,E)&&!b(D,E);return O&&(P=!P),l&&(P=!P),P}function b(e,t){var n=(0,o["default"])(e,2),r=n[0],i=n[1],a=(0,o["default"])(t,2),s=a[0],c=a[1];return-i*s+r*c>0}function S(e,t,n){var r=n/2,a=t.map((function(e){var t=(0,o["default"])(e,2),n=t[0],i=t[1];return[n,i-r]})),s=t.map((function(e){var t=(0,o["default"])(e,2),n=t[0],i=t[1];return[n,i+r]})),c=[].concat((0,i["default"])(a),(0,i["default"])(s.reverse()));return y(e,c)}function x(e,t,n,r,i){var a=(0,o["default"])(e,2),s=a[0],c=a[1];return!(s<t)&&(!(c<n)&&(!(s>t+r)&&!(c>n+i)))}function w(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[0,0];if(!t)return!1;if(e%360===0)return t;var r=(0,o["default"])(t,2),i=r[0],a=r[1],s=(0,o["default"])(n,2),c=s[0],d=s[1];return e*=f/180,[(i-c)*l(e)-(a-d)*u(e)+c,(i-c)*u(e)+(a-d)*l(e)+d]}function I(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[1,1],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[0,0];if(!t)return!1;if(1===e)return t;var r=(0,o["default"])(t,2),i=r[0],a=r[1],s=(0,o["default"])(n,2),c=s[0],u=s[1],l=(0,o["default"])(e,2),d=l[0],h=l[1],f=i-c,p=a-u;return[f*d+c,p*h+u]}function C(e,t){if(!e||!t)return!1;var n=(0,o["default"])(t,2),r=n[0],i=n[1],a=(0,o["default"])(e,2),s=a[0],c=a[1];return[r+s,i+c]}function M(e,t,n){if(!e||!t||!n)return!1;var r=(0,o["default"])(e,2),i=r[0],a=r[1],u=(0,o["default"])(t,2),l=u[0],d=u[1],h=(0,o["default"])(n,2),f=h[0],p=h[1],g=p-d,m=l-f,v=d*(f-l)-l*(p-d),y=s(g*i+m*a+v),_=c(g*g+m*m);return y/_}function T(e,t,n,r){return[e+l(r)*n,t+u(r)*n]}function k(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-.5*f,o=2*f/r,a=new Array(r).fill("").map((function(e,t){return t*o+i}));return a.map((function(r){return T(e,t,n,r)}))}var E={deepClone:p,eliminateBlur:g,checkPointIsInCircle:m,checkPointIsInPolygon:y,checkPointIsInSector:_,checkPointIsNearPolyline:S,getTwoPointDistance:v,getRotatePointPos:w,getScalePointPos:I,getTranslatePointPos:C,getCircleRadianPoint:T,getRegularPolygonPoints:k,getDistanceBetweenPointAndLine:M};t["default"]=E},5576:function(e,t,n){var r=n("6d8b"),i=n("4a01"),o=n("88b3"),a="\0_ec_dataZoom_roams";function s(e,t){var n=l(e),i=t.dataZoomId,a=t.coordId;r.each(n,(function(e,n){var o=e.dataZoomInfos;o[i]&&r.indexOf(t.allCoordIds,a)<0&&(delete o[i],e.count--)})),h(n);var s=n[a];s||(s=n[a]={coordId:a,dataZoomInfos:{},count:0},s.controller=d(e,s),s.dispatchAction=r.curry(f,e)),!s.dataZoomInfos[i]&&s.count++,s.dataZoomInfos[i]=t;var c=p(s.dataZoomInfos);s.controller.enable(c.controlType,c.opt),s.controller.setPointerChecker(t.containsPoint),o.createOrUpdate(s,"dispatchAction",t.dataZoomModel.get("throttle",!0),"fixRate")}function c(e,t){var n=l(e);r.each(n,(function(e){e.controller.dispose();var n=e.dataZoomInfos;n[t]&&(delete n[t],e.count--)})),h(n)}function u(e){return e.type+"\0_"+e.id}function l(e){var t=e.getZr();return t[a]||(t[a]={})}function d(e,t){var n=new i(e.getZr());return r.each(["pan","zoom","scrollMove"],(function(e){n.on(e,(function(n){var i=[];r.each(t.dataZoomInfos,(function(r){if(n.isAvailableBehavior(r.dataZoomModel.option)){var o=(r.getRange||{})[e],a=o&&o(t.controller,n);!r.dataZoomModel.get("disabled",!0)&&a&&i.push({dataZoomId:r.dataZoomId,start:a[0],end:a[1]})}})),i.length&&t.dispatchAction(i)}))})),n}function h(e){r.each(e,(function(t,n){t.count||(t.controller.dispose(),delete e[n])}))}function f(e,t){e.dispatchAction({type:"dataZoom",batch:t})}function p(e){var t,n="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0;return r.each(e,(function(e){var r=e.dataZoomModel,a=!r.get("disabled",!0)&&(!r.get("zoomLock",!0)||"move");i[n+a]>i[n+t]&&(t=a),o&=r.get("preventDefaultMouseMove",!0)})),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o}}}t.register=s,t.unregister=c,t.generateCoordId=u},"55ac":function(e,t,n){var r=n("6d8b");function i(e,t,n){if(e&&r.indexOf(t,e.type)>=0){var i=n.getData().tree.root,o=e.targetNode;if("string"===typeof o&&(o=i.getNodeById(o)),o&&i.contains(o))return{node:o};var a=e.targetNodeId;if(null!=a&&(o=i.getNodeById(a)))return{node:o}}}function o(e){var t=[];while(e)e=e.parentNode,e&&t.push(e);return t.reverse()}function a(e,t){var n=o(e);return r.indexOf(n,t)>=0}function s(e,t){var n=[];while(e){var r=e.dataIndex;n.push({name:e.name,dataIndex:r,value:t.getRawValue(r)}),e=e.parentNode}return n.reverse(),n}t.retrieveTargetInfo=i,t.getPathToRoot=o,t.aboveViewRoot=a,t.wrapTreePathInfo=s},"560b":function(e,t,n){},"562e":function(e,t,n){var r=n("6d8b");function i(e){null!=e&&r.extend(this,e),this.otherDims={}}var o=i;e.exports=o},5692:function(e,t,n){var r=n("c430"),i=n("c6cd");(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.21.1",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE",source:"https://github.com/zloirock/core-js"})},5693:function(e,t){function n(e,t){var n,r,i,o,a,s=t.x,c=t.y,u=t.width,l=t.height,d=t.r;u<0&&(s+=u,u=-u),l<0&&(c+=l,l=-l),"number"===typeof d?n=r=i=o=d:d instanceof Array?1===d.length?n=r=i=o=d[0]:2===d.length?(n=i=d[0],r=o=d[1]):3===d.length?(n=d[0],r=o=d[1],i=d[2]):(n=d[0],r=d[1],i=d[2],o=d[3]):n=r=i=o=0,n+r>u&&(a=n+r,n*=u/a,r*=u/a),i+o>u&&(a=i+o,i*=u/a,o*=u/a),r+i>l&&(a=r+i,r*=l/a,i*=l/a),n+o>l&&(a=n+o,n*=l/a,o*=l/a),e.moveTo(s+n,c),e.lineTo(s+u-r,c),0!==r&&e.arc(s+u-r,c+r,r,-Math.PI/2,0),e.lineTo(s+u,c+l-i),0!==i&&e.arc(s+u-i,c+l-i,i,0,Math.PI/2),e.lineTo(s+o,c+l),0!==o&&e.arc(s+o,c+l-o,o,Math.PI/2,Math.PI),e.lineTo(s,c+n),0!==n&&e.arc(s+n,c+n,n,Math.PI,1.5*Math.PI)}t.buildPath=n},"56ef":function(e,t,n){var r=n("d066"),i=n("e330"),o=n("241c"),a=n("7418"),s=n("825a"),c=i([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(s(e)),n=a.f;return n?c(t,n(e)):t}},"577e":function(e,t,n){var r=n("da84"),i=n("f5df"),o=r.String;e.exports=function(e){if("Symbol"===i(e))throw TypeError("Cannot convert a Symbol value to a string");return o(e)}},5781:function(e,t,n){(function(t){!function(t,n){e.exports=n()}(0,(function(){function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function n(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?e(Object(r),!0).forEach((function(e){u(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):e(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void n(l)}s.done?t(c):Promise.resolve(c).then(r,i)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function s(e){i(a,r,o,s,c,"next",e)}function c(e){i(a,r,o,s,c,"throw",e)}s(void 0)}))}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function p(e,t,n){return(p=f()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&h(i,n.prototype),i}).apply(null,arguments)}function g(e){var t="function"==typeof Map?new Map:void 0;return(g=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return p(e,arguments,d(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),h(r,e)})(e)}function m(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function v(e){var t=f();return function(){var n,r=d(e);if(t){var i=d(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return m(this,n)}}function y(e,t,n){return(y="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=d(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||S(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e){return function(e){if(Array.isArray(e))return x(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||S(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e,t){if(e){if("string"==typeof e)return x(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?x(e,t):void 0}}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function w(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=S(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function I(e,t,n,r,i){var o={};return Object.keys(r).forEach((function(e){o[e]=r[e]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(e,t,o),o=null),o}var C="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof t?t:"undefined"!=typeof self?self:{};function M(e,t){return e(t={exports:{}},t.exports),t.exports}var T,k,E=function(e){return e&&e.Math==Math&&e},A=E("object"==typeof globalThis&&globalThis)||E("object"==typeof window&&window)||E("object"==typeof self&&self)||E("object"==typeof C&&C)||function(){return this}()||Function("return this")(),D=function(e){try{return!!e()}catch(n){return!0}},O=!D((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),R={}.propertyIsEnumerable,L=Object.getOwnPropertyDescriptor,P={f:L&&!R.call({1:2},1)?function(e){var t=L(this,e);return!!t&&t.enumerable}:R},N=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},U={}.toString,F=function(e){return U.call(e).slice(8,-1)},G="".split,V=D((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==F(e)?G.call(e,""):Object(e)}:Object,j=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},B=function(e){return V(j(e))},z=function(e){return"function"==typeof e},H=function(e){return"object"==typeof e?null!==e:z(e)},W=function(e){return z(e)?e:void 0},q=function(e,t){return arguments.length<2?W(A[e]):A[e]&&A[e][t]},$=q("navigator","userAgent")||"",K=A.process,Y=A.Deno,J=K&&K.versions||Y&&Y.version,X=J&&J.v8;X?k=(T=X.split("."))[0]<4?1:T[0]+T[1]:$&&(!(T=$.match(/Edge\/(\d+)/))||T[1]>=74)&&(T=$.match(/Chrome\/(\d+)/))&&(k=T[1]);var Z=k&&+k,Q=!!Object.getOwnPropertySymbols&&!D((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Z&&Z<41})),ee=Q&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,te=ee?function(e){return"symbol"==typeof e}:function(e){var t=q("Symbol");return z(t)&&Object(e)instanceof t},ne=function(e){try{return String(e)}catch(n){return"Object"}},re=function(e){if(z(e))return e;throw TypeError(ne(e)+" is not a function")},ie=function(e,t){var n=e[t];return null==n?void 0:re(n)},oe=function(e,t){try{Object.defineProperty(A,e,{value:t,configurable:!0,writable:!0})}catch(r){A[e]=t}return t},ae=A["__core-js_shared__"]||oe("__core-js_shared__",{}),se=M((function(e){(e.exports=function(e,t){return ae[e]||(ae[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.18.2",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),ce=function(e){return Object(j(e))},ue={}.hasOwnProperty,le=Object.hasOwn||function(e,t){return ue.call(ce(e),t)},de=0,he=Math.random(),fe=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++de+he).toString(36)},pe=se("wks"),ge=A.Symbol,me=ee?ge:ge&&ge.withoutSetter||fe,ve=function(e){return le(pe,e)&&(Q||"string"==typeof pe[e])||(Q&&le(ge,e)?pe[e]=ge[e]:pe[e]=me("Symbol."+e)),pe[e]},ye=ve("toPrimitive"),_e=function(e,t){if(!H(e)||te(e))return e;var n,r=ie(e,ye);if(r){if(void 0===t&&(t="default"),n=r.call(e,t),!H(n)||te(n))return n;throw TypeError("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&z(n=e.toString)&&!H(r=n.call(e)))return r;if(z(n=e.valueOf)&&!H(r=n.call(e)))return r;if("string"!==t&&z(n=e.toString)&&!H(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}(e,t)},be=function(e){var t=_e(e,"string");return te(t)?t:String(t)},Se=A.document,xe=H(Se)&&H(Se.createElement),we=function(e){return xe?Se.createElement(e):{}},Ie=!O&&!D((function(){return 7!=Object.defineProperty(we("div"),"a",{get:function(){return 7}}).a})),Ce=Object.getOwnPropertyDescriptor,Me={f:O?Ce:function(e,t){if(e=B(e),t=be(t),Ie)try{return Ce(e,t)}catch(r){}if(le(e,t))return N(!P.f.call(e,t),e[t])}},Te=function(e){if(H(e))return e;throw TypeError(String(e)+" is not an object")},ke=Object.defineProperty,Ee={f:O?ke:function(e,t,n){if(Te(e),t=be(t),Te(n),Ie)try{return ke(e,t,n)}catch(i){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Ae=O?function(e,t,n){return Ee.f(e,t,N(1,n))}:function(e,t,n){return e[t]=n,e},De=Function.toString;z(ae.inspectSource)||(ae.inspectSource=function(e){return De.call(e)});var Oe,Re,Le,Pe=ae.inspectSource,Ne=A.WeakMap,Ue=z(Ne)&&/native code/.test(Pe(Ne)),Fe=se("keys"),Ge=function(e){return Fe[e]||(Fe[e]=fe(e))},Ve={},je=A.WeakMap;if(Ue||ae.state){var Be=ae.state||(ae.state=new je),ze=Be.get,He=Be.has,We=Be.set;Oe=function(e,t){if(He.call(Be,e))throw new TypeError("Object already initialized");return t.facade=e,We.call(Be,e,t),t},Re=function(e){return ze.call(Be,e)||{}},Le=function(e){return He.call(Be,e)}}else{var qe=Ge("state");Ve[qe]=!0,Oe=function(e,t){if(le(e,qe))throw new TypeError("Object already initialized");return t.facade=e,Ae(e,qe,t),t},Re=function(e){return le(e,qe)?e[qe]:{}},Le=function(e){return le(e,qe)}}var $e={set:Oe,get:Re,has:Le,enforce:function(e){return Le(e)?Re(e):Oe(e,{})},getterFor:function(e){return function(t){var n;if(!H(t)||(n=Re(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},Ke=Function.prototype,Ye=O&&Object.getOwnPropertyDescriptor,Je=le(Ke,"name"),Xe={EXISTS:Je,PROPER:Je&&"something"===function(){}.name,CONFIGURABLE:Je&&(!O||O&&Ye(Ke,"name").configurable)},Ze=M((function(e){var t=Xe.CONFIGURABLE,n=$e.get,r=$e.enforce,i=String(String).split("String");(e.exports=function(e,n,o,a){var s,c=!!a&&!!a.unsafe,u=!!a&&!!a.enumerable,l=!!a&&!!a.noTargetGet,d=a&&void 0!==a.name?a.name:n;z(o)&&("Symbol("===String(d).slice(0,7)&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!le(o,"name")||t&&o.name!==d)&&Ae(o,"name",d),(s=r(o)).source||(s.source=i.join("string"==typeof d?d:""))),e!==A?(c?!l&&e[n]&&(u=!0):delete e[n],u?e[n]=o:Ae(e,n,o)):u?e[n]=o:oe(n,o)})(Function.prototype,"toString",(function(){return z(this)&&n(this).source||Pe(this)}))})),Qe=Math.ceil,et=Math.floor,tt=function(e){var t=+e;return t!=t||0===t?0:(t>0?et:Qe)(t)},nt=Math.max,rt=Math.min,it=function(e,t){var n=tt(e);return n<0?nt(n+t,0):rt(n,t)},ot=Math.min,at=function(e){return e>0?ot(tt(e),9007199254740991):0},st=function(e){return at(e.length)},ct=function(e){return function(t,n,r){var i,o=B(t),a=st(o),s=it(r,a);if(e&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},ut={includes:ct(!0),indexOf:ct(!1)},lt=ut.indexOf,dt=function(e,t){var n,r=B(e),i=0,o=[];for(n in r)!le(Ve,n)&&le(r,n)&&o.push(n);for(;t.length>i;)le(r,n=t[i++])&&(~lt(o,n)||o.push(n));return o},ht=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ft=ht.concat("length","prototype"),pt={f:Object.getOwnPropertyNames||function(e){return dt(e,ft)}},gt={f:Object.getOwnPropertySymbols},mt=q("Reflect","ownKeys")||function(e){var t=pt.f(Te(e)),n=gt.f;return n?t.concat(n(e)):t},vt=function(e,t){for(var n=mt(t),r=Ee.f,i=Me.f,o=0;o<n.length;o++){var a=n[o];le(e,a)||r(e,a,i(t,a))}},yt=/#|\.prototype\./,_t=function(e,t){var n=St[bt(e)];return n==wt||n!=xt&&(z(t)?D(t):!!t)},bt=_t.normalize=function(e){return String(e).replace(yt,".").toLowerCase()},St=_t.data={},xt=_t.NATIVE="N",wt=_t.POLYFILL="P",It=_t,Ct=Me.f,Mt=function(e,t){var n,r,i,o,a,s=e.target,c=e.global,u=e.stat;if(n=c?A:u?A[s]||oe(s,{}):(A[s]||{}).prototype)for(r in t){if(o=t[r],i=e.noTargetGet?(a=Ct(n,r))&&a.value:n[r],!It(c?r:s+(u?".":"#")+r,e.forced)&&void 0!==i){if(typeof o==typeof i)continue;vt(o,i)}(e.sham||i&&i.sham)&&Ae(o,"sham",!0),Ze(n,r,o,e)}},Tt=function(e,t,n){if(re(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}},kt=Array.isArray||function(e){return"Array"==F(e)},Et={};Et[ve("toStringTag")]="z";var At="[object z]"===String(Et),Dt=ve("toStringTag"),Ot="Arguments"==F(function(){return arguments}()),Rt=At?F:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=Object(e),Dt))?n:Ot?F(t):"Object"==(r=F(t))&&z(t.callee)?"Arguments":r},Lt=[],Pt=q("Reflect","construct"),Nt=/^\s*(?:class|function)\b/,Ut=Nt.exec,Ft=!Nt.exec((function(){})),Gt=function(e){if(!z(e))return!1;try{return Pt(Object,Lt,e),!0}catch(n){return!1}},Vt=!Pt||D((function(){var e;return Gt(Gt.call)||!Gt(Object)||!Gt((function(){e=!0}))||e}))?function(e){if(!z(e))return!1;switch(Rt(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Ft||!!Ut.call(Nt,Pe(e))}:Gt,jt=ve("species"),Bt=function(e,t){return new(function(e){var t;return kt(e)&&(t=e.constructor,(Vt(t)&&(t===Array||kt(t.prototype))||H(t)&&null===(t=t[jt]))&&(t=void 0)),void 0===t?Array:t}(e))(0===t?0:t)},zt=[].push,Ht=function(e){var t=1==e,n=2==e,r=3==e,i=4==e,o=6==e,a=7==e,s=5==e||o;return function(c,u,l,d){for(var h,f,p=ce(c),g=V(p),m=Tt(u,l,3),v=st(g),y=0,_=d||Bt,b=t?_(c,v):n||a?_(c,0):void 0;v>y;y++)if((s||y in g)&&(f=m(h=g[y],y,p),e))if(t)b[y]=f;else if(f)switch(e){case 3:return!0;case 5:return h;case 6:return y;case 2:zt.call(b,h)}else switch(e){case 4:return!1;case 7:zt.call(b,h)}return o?-1:r||i?i:b}},Wt={forEach:Ht(0),map:Ht(1),filter:Ht(2),some:Ht(3),every:Ht(4),find:Ht(5),findIndex:Ht(6),filterReject:Ht(7)},qt=ve("species"),$t=function(e){return Z>=51||!D((function(){var t=[];return(t.constructor={})[qt]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},Kt=Wt.map,Yt=$t("map");Mt({target:"Array",proto:!0,forced:!Yt},{map:function(e){return Kt(this,e,arguments.length>1?arguments[1]:void 0)}});var Jt=Wt.filter,Xt=$t("filter");Mt({target:"Array",proto:!0,forced:!Xt},{filter:function(e){return Jt(this,e,arguments.length>1?arguments[1]:void 0)}});var Zt=Me.f,Qt=D((function(){Zt(1)}));Mt({target:"Object",stat:!0,forced:!O||Qt,sham:!O},{getOwnPropertyDescriptor:function(e,t){return Zt(B(e),t)}}),M((function(e){var t=function(e){var t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(T){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new w(r||[]);return o._invoke=function(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return C()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=b(a,n);if(s){if(s===l)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=u(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,a),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(T){return{type:"throw",arg:T}}}e.wrap=c;var l={};function d(){}function h(){}function f(){}var p={};s(p,i,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(I([])));m&&m!==t&&n.call(m,i)&&(p=m);var v=f.prototype=d.prototype=Object.create(p);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){var r;this._invoke=function(i,o){function a(){return new t((function(r,a){!function r(i,o,a,s){var c=u(e[i],e,o);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}(i,o,r,a)}))}return r=r?r.then(a,a):a()}}function b(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,b(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=u(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function w(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function I(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return h.prototype=f,s(v,"constructor",f),s(f,"constructor",h),h.displayName=s(f,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(_.prototype),s(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new _(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},y(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=I,w.prototype={constructor:w,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),x(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;x(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:I(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}(e.exports);try{regeneratorRuntime=t}catch(r){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}));let en=!0,tn=!0;function nn(e,t,n){const r=e.match(t);return r&&r.length>=n&&parseInt(r[n],10)}function rn(e,t,n){if(!e.RTCPeerConnection)return;const r=e.RTCPeerConnection.prototype,i=r.addEventListener;r.addEventListener=function(e,r){if(e!==t)return i.apply(this,arguments);const o=e=>{const t=n(e);t&&(r.handleEvent?r.handleEvent(t):r(t))};return this._eventMap=this._eventMap||{},this._eventMap[t]||(this._eventMap[t]=new Map),this._eventMap[t].set(r,o),i.apply(this,[e,o])};const o=r.removeEventListener;r.removeEventListener=function(e,n){if(e!==t||!this._eventMap||!this._eventMap[t])return o.apply(this,arguments);if(!this._eventMap[t].has(n))return o.apply(this,arguments);const r=this._eventMap[t].get(n);return this._eventMap[t].delete(n),0===this._eventMap[t].size&&delete this._eventMap[t],0===Object.keys(this._eventMap).length&&delete this._eventMap,o.apply(this,[e,r])},Object.defineProperty(r,"on"+t,{get(){return this["_on"+t]},set(e){this["_on"+t]&&(this.removeEventListener(t,this["_on"+t]),delete this["_on"+t]),e&&this.addEventListener(t,this["_on"+t]=e)},enumerable:!0,configurable:!0})}function on(e){return"boolean"!=typeof e?new Error("Argument type: "+typeof e+". Please use a boolean."):(en=e,e?"adapter.js logging disabled":"adapter.js logging enabled")}function an(e){return"boolean"!=typeof e?new Error("Argument type: "+typeof e+". Please use a boolean."):(tn=!e,"adapter.js deprecation warnings "+(e?"disabled":"enabled"))}function sn(){if("object"==typeof window){if(en)return;"undefined"!=typeof console&&"function"==typeof console.log&&console.log.apply(console,arguments)}}function cn(e,t){tn&&console.warn(e+" is deprecated, please use "+t+" instead.")}function un(e){return"[object Object]"===Object.prototype.toString.call(e)}function ln(e){return un(e)?Object.keys(e).reduce((function(t,n){const r=un(e[n]),i=r?ln(e[n]):e[n],o=r&&!Object.keys(i).length;return void 0===i||o?t:Object.assign(t,{[n]:i})}),{}):e}function dn(e,t,n){const r=n?"outbound-rtp":"inbound-rtp",i=new Map;if(null===t)return i;const o=[];return e.forEach(e=>{"track"===e.type&&e.trackIdentifier===t.id&&o.push(e)}),o.forEach(t=>{e.forEach(n=>{n.type===r&&n.trackId===t.id&&function e(t,n,r){n&&!r.has(n.id)&&(r.set(n.id,n),Object.keys(n).forEach(i=>{i.endsWith("Id")?e(t,t.get(n[i]),r):i.endsWith("Ids")&&n[i].forEach(n=>{e(t,t.get(n),r)})}))}(e,n,i)})}),i}const hn=sn;function fn(e,t){const n=e&&e.navigator;if(!n.mediaDevices)return;const r=function(e){if("object"!=typeof e||e.mandatory||e.optional)return e;const t={};return Object.keys(e).forEach(n=>{if("require"===n||"advanced"===n||"mediaSource"===n)return;const r="object"==typeof e[n]?e[n]:{ideal:e[n]};void 0!==r.exact&&"number"==typeof r.exact&&(r.min=r.max=r.exact);const i=function(e,t){return e?e+t.charAt(0).toUpperCase()+t.slice(1):"deviceId"===t?"sourceId":t};if(void 0!==r.ideal){t.optional=t.optional||[];let e={};"number"==typeof r.ideal?(e[i("min",n)]=r.ideal,t.optional.push(e),e={},e[i("max",n)]=r.ideal,t.optional.push(e)):(e[i("",n)]=r.ideal,t.optional.push(e))}void 0!==r.exact&&"number"!=typeof r.exact?(t.mandatory=t.mandatory||{},t.mandatory[i("",n)]=r.exact):["min","max"].forEach(e=>{void 0!==r[e]&&(t.mandatory=t.mandatory||{},t.mandatory[i(e,n)]=r[e])})}),e.advanced&&(t.optional=(t.optional||[]).concat(e.advanced)),t},i=function(e,i){if(t.version>=61)return i(e);if((e=JSON.parse(JSON.stringify(e)))&&"object"==typeof e.audio){const t=function(e,t,n){t in e&&!(n in e)&&(e[n]=e[t],delete e[t])};t((e=JSON.parse(JSON.stringify(e))).audio,"autoGainControl","googAutoGainControl"),t(e.audio,"noiseSuppression","googNoiseSuppression"),e.audio=r(e.audio)}if(e&&"object"==typeof e.video){let o=e.video.facingMode;o=o&&("object"==typeof o?o:{ideal:o});const a=t.version<66;if(o&&("user"===o.exact||"environment"===o.exact||"user"===o.ideal||"environment"===o.ideal)&&(!n.mediaDevices.getSupportedConstraints||!n.mediaDevices.getSupportedConstraints().facingMode||a)){let t;if(delete e.video.facingMode,"environment"===o.exact||"environment"===o.ideal?t=["back","rear"]:"user"!==o.exact&&"user"!==o.ideal||(t=["front"]),t)return n.mediaDevices.enumerateDevices().then(n=>{let a=(n=n.filter(e=>"videoinput"===e.kind)).find(e=>t.some(t=>e.label.toLowerCase().includes(t)));return!a&&n.length&&t.includes("back")&&(a=n[n.length-1]),a&&(e.video.deviceId=o.exact?{exact:a.deviceId}:{ideal:a.deviceId}),e.video=r(e.video),hn("chrome: "+JSON.stringify(e)),i(e)})}e.video=r(e.video)}return hn("chrome: "+JSON.stringify(e)),i(e)},o=function(e){return t.version>=64?e:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[e.name]||e.name,message:e.message,constraint:e.constraint||e.constraintName,toString(){return this.name+(this.message&&": ")+this.message}}};if(n.getUserMedia=function(e,t,r){i(e,e=>{n.webkitGetUserMedia(e,t,e=>{r&&r(o(e))})})}.bind(n),n.mediaDevices.getUserMedia){const e=n.mediaDevices.getUserMedia.bind(n.mediaDevices);n.mediaDevices.getUserMedia=function(t){return i(t,t=>e(t).then(e=>{if(t.audio&&!e.getAudioTracks().length||t.video&&!e.getVideoTracks().length)throw e.getTracks().forEach(e=>{e.stop()}),new DOMException("","NotFoundError");return e},e=>Promise.reject(o(e))))}}}function pn(e){e.MediaStream=e.MediaStream||e.webkitMediaStream}function gn(e){if("object"==typeof e&&e.RTCPeerConnection&&!("ontrack"in e.RTCPeerConnection.prototype)){Object.defineProperty(e.RTCPeerConnection.prototype,"ontrack",{get(){return this._ontrack},set(e){this._ontrack&&this.removeEventListener("track",this._ontrack),this.addEventListener("track",this._ontrack=e)},enumerable:!0,configurable:!0});const t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){return this._ontrackpoly||(this._ontrackpoly=t=>{t.stream.addEventListener("addtrack",n=>{let r;r=e.RTCPeerConnection.prototype.getReceivers?this.getReceivers().find(e=>e.track&&e.track.id===n.track.id):{track:n.track};const i=new Event("track");i.track=n.track,i.receiver=r,i.transceiver={receiver:r},i.streams=[t.stream],this.dispatchEvent(i)}),t.stream.getTracks().forEach(n=>{let r;r=e.RTCPeerConnection.prototype.getReceivers?this.getReceivers().find(e=>e.track&&e.track.id===n.id):{track:n};const i=new Event("track");i.track=n,i.receiver=r,i.transceiver={receiver:r},i.streams=[t.stream],this.dispatchEvent(i)})},this.addEventListener("addstream",this._ontrackpoly)),t.apply(this,arguments)}}else rn(e,"track",e=>(e.transceiver||Object.defineProperty(e,"transceiver",{value:{receiver:e.receiver}}),e))}function mn(e){if("object"==typeof e&&e.RTCPeerConnection&&!("getSenders"in e.RTCPeerConnection.prototype)&&"createDTMFSender"in e.RTCPeerConnection.prototype){const t=function(e,t){return{track:t,get dtmf(){return void 0===this._dtmf&&("audio"===t.kind?this._dtmf=e.createDTMFSender(t):this._dtmf=null),this._dtmf},_pc:e}};if(!e.RTCPeerConnection.prototype.getSenders){e.RTCPeerConnection.prototype.getSenders=function(){return this._senders=this._senders||[],this._senders.slice()};const n=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(e,r){let i=n.apply(this,arguments);return i||(i=t(this,e),this._senders.push(i)),i};const r=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(e){r.apply(this,arguments);const t=this._senders.indexOf(e);-1!==t&&this._senders.splice(t,1)}}const n=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(e){this._senders=this._senders||[],n.apply(this,[e]),e.getTracks().forEach(e=>{this._senders.push(t(this,e))})};const r=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){this._senders=this._senders||[],r.apply(this,[e]),e.getTracks().forEach(e=>{const t=this._senders.find(t=>t.track===e);t&&this._senders.splice(this._senders.indexOf(t),1)})}}else if("object"==typeof e&&e.RTCPeerConnection&&"getSenders"in e.RTCPeerConnection.prototype&&"createDTMFSender"in e.RTCPeerConnection.prototype&&e.RTCRtpSender&&!("dtmf"in e.RTCRtpSender.prototype)){const t=e.RTCPeerConnection.prototype.getSenders;e.RTCPeerConnection.prototype.getSenders=function(){const e=t.apply(this,[]);return e.forEach(e=>e._pc=this),e},Object.defineProperty(e.RTCRtpSender.prototype,"dtmf",{get(){return void 0===this._dtmf&&("audio"===this.track.kind?this._dtmf=this._pc.createDTMFSender(this.track):this._dtmf=null),this._dtmf}})}}function vn(e){if(!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){const[e,n,r]=arguments;if(arguments.length>0&&"function"==typeof e)return t.apply(this,arguments);if(0===t.length&&(0===arguments.length||"function"!=typeof e))return t.apply(this,[]);const i=function(e){const t={};return e.result().forEach(e=>{const n={id:e.id,timestamp:e.timestamp,type:{localcandidate:"local-candidate",remotecandidate:"remote-candidate"}[e.type]||e.type};e.names().forEach(t=>{n[t]=e.stat(t)}),t[n.id]=n}),t},o=function(e){return new Map(Object.keys(e).map(t=>[t,e[t]]))};if(arguments.length>=2){const r=function(e){n(o(i(e)))};return t.apply(this,[r,e])}return new Promise((e,n)=>{t.apply(this,[function(t){e(o(i(t)))},n])}).then(n,r)}}function yn(e){if(!("object"==typeof e&&e.RTCPeerConnection&&e.RTCRtpSender&&e.RTCRtpReceiver))return;if(!("getStats"in e.RTCRtpSender.prototype)){const t=e.RTCPeerConnection.prototype.getSenders;t&&(e.RTCPeerConnection.prototype.getSenders=function(){const e=t.apply(this,[]);return e.forEach(e=>e._pc=this),e});const n=e.RTCPeerConnection.prototype.addTrack;n&&(e.RTCPeerConnection.prototype.addTrack=function(){const e=n.apply(this,arguments);return e._pc=this,e}),e.RTCRtpSender.prototype.getStats=function(){const e=this;return this._pc.getStats().then(t=>dn(t,e.track,!0))}}if(!("getStats"in e.RTCRtpReceiver.prototype)){const t=e.RTCPeerConnection.prototype.getReceivers;t&&(e.RTCPeerConnection.prototype.getReceivers=function(){const e=t.apply(this,[]);return e.forEach(e=>e._pc=this),e}),rn(e,"track",e=>(e.receiver._pc=e.srcElement,e)),e.RTCRtpReceiver.prototype.getStats=function(){const e=this;return this._pc.getStats().then(t=>dn(t,e.track,!1))}}if(!("getStats"in e.RTCRtpSender.prototype)||!("getStats"in e.RTCRtpReceiver.prototype))return;const t=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){if(arguments.length>0&&arguments[0]instanceof e.MediaStreamTrack){const e=arguments[0];let t,n,r;return this.getSenders().forEach(n=>{n.track===e&&(t?r=!0:t=n)}),this.getReceivers().forEach(t=>(t.track===e&&(n?r=!0:n=t),t.track===e)),r||t&&n?Promise.reject(new DOMException("There are more than one sender or receiver for the track.","InvalidAccessError")):t?t.getStats():n?n.getStats():Promise.reject(new DOMException("There is no sender or receiver for the track.","InvalidAccessError"))}return t.apply(this,arguments)}}function _n(e){e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Object.keys(this._shimmedLocalStreams).map(e=>this._shimmedLocalStreams[e][0])};const t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(e,n){if(!n)return t.apply(this,arguments);this._shimmedLocalStreams=this._shimmedLocalStreams||{};const r=t.apply(this,arguments);return this._shimmedLocalStreams[n.id]?-1===this._shimmedLocalStreams[n.id].indexOf(r)&&this._shimmedLocalStreams[n.id].push(r):this._shimmedLocalStreams[n.id]=[n,r],r};const n=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(e){this._shimmedLocalStreams=this._shimmedLocalStreams||{},e.getTracks().forEach(e=>{if(this.getSenders().find(t=>t.track===e))throw new DOMException("Track already exists.","InvalidAccessError")});const t=this.getSenders();n.apply(this,arguments);const r=this.getSenders().filter(e=>-1===t.indexOf(e));this._shimmedLocalStreams[e.id]=[e].concat(r)};const r=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},delete this._shimmedLocalStreams[e.id],r.apply(this,arguments)};const i=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(e){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},e&&Object.keys(this._shimmedLocalStreams).forEach(t=>{const n=this._shimmedLocalStreams[t].indexOf(e);-1!==n&&this._shimmedLocalStreams[t].splice(n,1),1===this._shimmedLocalStreams[t].length&&delete this._shimmedLocalStreams[t]}),i.apply(this,arguments)}}function bn(e,t){if(!e.RTCPeerConnection)return;if(e.RTCPeerConnection.prototype.addTrack&&t.version>=65)return _n(e);const n=e.RTCPeerConnection.prototype.getLocalStreams;e.RTCPeerConnection.prototype.getLocalStreams=function(){const e=n.apply(this);return this._reverseStreams=this._reverseStreams||{},e.map(e=>this._reverseStreams[e.id])};const r=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(t){if(this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},t.getTracks().forEach(e=>{if(this.getSenders().find(t=>t.track===e))throw new DOMException("Track already exists.","InvalidAccessError")}),!this._reverseStreams[t.id]){const n=new e.MediaStream(t.getTracks());this._streams[t.id]=n,this._reverseStreams[n.id]=t,t=n}r.apply(this,[t])};const i=e.RTCPeerConnection.prototype.removeStream;function o(e,t){let n=t.sdp;return Object.keys(e._reverseStreams||[]).forEach(t=>{const r=e._reverseStreams[t],i=e._streams[r.id];n=n.replace(new RegExp(i.id,"g"),r.id)}),new RTCSessionDescription({type:t.type,sdp:n})}function a(e,t){let n=t.sdp;return Object.keys(e._reverseStreams||[]).forEach(t=>{const r=e._reverseStreams[t],i=e._streams[r.id];n=n.replace(new RegExp(r.id,"g"),i.id)}),new RTCSessionDescription({type:t.type,sdp:n})}e.RTCPeerConnection.prototype.removeStream=function(e){this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},i.apply(this,[this._streams[e.id]||e]),delete this._reverseStreams[this._streams[e.id]?this._streams[e.id].id:e.id],delete this._streams[e.id]},e.RTCPeerConnection.prototype.addTrack=function(t,n){if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");const r=[].slice.call(arguments,1);if(1!==r.length||!r[0].getTracks().find(e=>e===t))throw new DOMException("The adapter.js addTrack polyfill only supports a single  stream which is associated with the specified track.","NotSupportedError");const i=this.getSenders().find(e=>e.track===t);if(i)throw new DOMException("Track already exists.","InvalidAccessError");this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{};const o=this._streams[n.id];if(o)o.addTrack(t),Promise.resolve().then(()=>{this.dispatchEvent(new Event("negotiationneeded"))});else{const r=new e.MediaStream([t]);this._streams[n.id]=r,this._reverseStreams[r.id]=n,this.addStream(r)}return this.getSenders().find(e=>e.track===t)},["createOffer","createAnswer"].forEach((function(t){const n=e.RTCPeerConnection.prototype[t],r={[t](){const e=arguments;return arguments.length&&"function"==typeof arguments[0]?n.apply(this,[t=>{const n=o(this,t);e[0].apply(null,[n])},t=>{e[1]&&e[1].apply(null,t)},arguments[2]]):n.apply(this,arguments).then(e=>o(this,e))}};e.RTCPeerConnection.prototype[t]=r[t]}));const s=e.RTCPeerConnection.prototype.setLocalDescription;e.RTCPeerConnection.prototype.setLocalDescription=function(){return arguments.length&&arguments[0].type?(arguments[0]=a(this,arguments[0]),s.apply(this,arguments)):s.apply(this,arguments)};const c=Object.getOwnPropertyDescriptor(e.RTCPeerConnection.prototype,"localDescription");Object.defineProperty(e.RTCPeerConnection.prototype,"localDescription",{get(){const e=c.get.apply(this);return""===e.type?e:o(this,e)}}),e.RTCPeerConnection.prototype.removeTrack=function(e){if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");if(!e._pc)throw new DOMException("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.","TypeError");if(e._pc!==this)throw new DOMException("Sender was not created by this connection.","InvalidAccessError");let t;this._streams=this._streams||{},Object.keys(this._streams).forEach(n=>{this._streams[n].getTracks().find(t=>e.track===t)&&(t=this._streams[n])}),t&&(1===t.getTracks().length?this.removeStream(this._reverseStreams[t.id]):t.removeTrack(e.track),this.dispatchEvent(new Event("negotiationneeded")))}}function Sn(e,t){!e.RTCPeerConnection&&e.webkitRTCPeerConnection&&(e.RTCPeerConnection=e.webkitRTCPeerConnection),e.RTCPeerConnection&&t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach((function(t){const n=e.RTCPeerConnection.prototype[t],r={[t](){return arguments[0]=new("addIceCandidate"===t?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),n.apply(this,arguments)}};e.RTCPeerConnection.prototype[t]=r[t]}))}function xn(e,t){rn(e,"negotiationneeded",e=>{const n=e.target;if(!(t.version<72||n.getConfiguration&&"plan-b"===n.getConfiguration().sdpSemantics)||"stable"===n.signalingState)return e})}var wn=Object.freeze({__proto__:null,shimMediaStream:pn,shimOnTrack:gn,shimGetSendersWithDtmf:mn,shimGetStats:vn,shimSenderReceiverGetStats:yn,shimAddTrackRemoveTrackWithNative:_n,shimAddTrackRemoveTrack:bn,shimPeerConnection:Sn,fixNegotiationNeeded:xn,shimGetUserMedia:fn,shimGetDisplayMedia:function(e,t){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||e.navigator.mediaDevices&&("function"==typeof t?e.navigator.mediaDevices.getDisplayMedia=function(n){return t(n).then(t=>{const r=n.video&&n.video.width,i=n.video&&n.video.height,o=n.video&&n.video.frameRate;return n.video={mandatory:{chromeMediaSource:"desktop",chromeMediaSourceId:t,maxFrameRate:o||3}},r&&(n.video.mandatory.maxWidth=r),i&&(n.video.mandatory.maxHeight=i),e.navigator.mediaDevices.getUserMedia(n)})}:console.error("shimGetDisplayMedia: getSourceId argument is not a function"))}}),In=M((function(e){var t={generateIdentifier:function(){return Math.random().toString(36).substr(2,10)}};t.localCName=t.generateIdentifier(),t.splitLines=function(e){return e.trim().split("\n").map((function(e){return e.trim()}))},t.splitSections=function(e){return e.split("\nm=").map((function(e,t){return(t>0?"m="+e:e).trim()+"\r\n"}))},t.getDescription=function(e){var n=t.splitSections(e);return n&&n[0]},t.getMediaSections=function(e){var n=t.splitSections(e);return n.shift(),n},t.matchPrefix=function(e,n){return t.splitLines(e).filter((function(e){return 0===e.indexOf(n)}))},t.parseCandidate=function(e){for(var t,n={foundation:(t=0===e.indexOf("a=candidate:")?e.substring(12).split(" "):e.substring(10).split(" "))[0],component:parseInt(t[1],10),protocol:t[2].toLowerCase(),priority:parseInt(t[3],10),ip:t[4],address:t[4],port:parseInt(t[5],10),type:t[7]},r=8;r<t.length;r+=2)switch(t[r]){case"raddr":n.relatedAddress=t[r+1];break;case"rport":n.relatedPort=parseInt(t[r+1],10);break;case"tcptype":n.tcpType=t[r+1];break;case"ufrag":n.ufrag=t[r+1],n.usernameFragment=t[r+1];break;default:n[t[r]]=t[r+1]}return n},t.writeCandidate=function(e){var t=[];t.push(e.foundation),t.push(e.component),t.push(e.protocol.toUpperCase()),t.push(e.priority),t.push(e.address||e.ip),t.push(e.port);var n=e.type;return t.push("typ"),t.push(n),"host"!==n&&e.relatedAddress&&e.relatedPort&&(t.push("raddr"),t.push(e.relatedAddress),t.push("rport"),t.push(e.relatedPort)),e.tcpType&&"tcp"===e.protocol.toLowerCase()&&(t.push("tcptype"),t.push(e.tcpType)),(e.usernameFragment||e.ufrag)&&(t.push("ufrag"),t.push(e.usernameFragment||e.ufrag)),"candidate:"+t.join(" ")},t.parseIceOptions=function(e){return e.substr(14).split(" ")},t.parseRtpMap=function(e){var t=e.substr(9).split(" "),n={payloadType:parseInt(t.shift(),10)};return t=t[0].split("/"),n.name=t[0],n.clockRate=parseInt(t[1],10),n.channels=3===t.length?parseInt(t[2],10):1,n.numChannels=n.channels,n},t.writeRtpMap=function(e){var t=e.payloadType;void 0!==e.preferredPayloadType&&(t=e.preferredPayloadType);var n=e.channels||e.numChannels||1;return"a=rtpmap:"+t+" "+e.name+"/"+e.clockRate+(1!==n?"/"+n:"")+"\r\n"},t.parseExtmap=function(e){var t=e.substr(9).split(" ");return{id:parseInt(t[0],10),direction:t[0].indexOf("/")>0?t[0].split("/")[1]:"sendrecv",uri:t[1]}},t.writeExtmap=function(e){return"a=extmap:"+(e.id||e.preferredId)+(e.direction&&"sendrecv"!==e.direction?"/"+e.direction:"")+" "+e.uri+"\r\n"},t.parseFmtp=function(e){for(var t,n={},r=e.substr(e.indexOf(" ")+1).split(";"),i=0;i<r.length;i++)n[(t=r[i].trim().split("="))[0].trim()]=t[1];return n},t.writeFmtp=function(e){var t="",n=e.payloadType;if(void 0!==e.preferredPayloadType&&(n=e.preferredPayloadType),e.parameters&&Object.keys(e.parameters).length){var r=[];Object.keys(e.parameters).forEach((function(t){e.parameters[t]?r.push(t+"="+e.parameters[t]):r.push(t)})),t+="a=fmtp:"+n+" "+r.join(";")+"\r\n"}return t},t.parseRtcpFb=function(e){var t=e.substr(e.indexOf(" ")+1).split(" ");return{type:t.shift(),parameter:t.join(" ")}},t.writeRtcpFb=function(e){var t="",n=e.payloadType;return void 0!==e.preferredPayloadType&&(n=e.preferredPayloadType),e.rtcpFeedback&&e.rtcpFeedback.length&&e.rtcpFeedback.forEach((function(e){t+="a=rtcp-fb:"+n+" "+e.type+(e.parameter&&e.parameter.length?" "+e.parameter:"")+"\r\n"})),t},t.parseSsrcMedia=function(e){var t=e.indexOf(" "),n={ssrc:parseInt(e.substr(7,t-7),10)},r=e.indexOf(":",t);return r>-1?(n.attribute=e.substr(t+1,r-t-1),n.value=e.substr(r+1)):n.attribute=e.substr(t+1),n},t.parseSsrcGroup=function(e){var t=e.substr(13).split(" ");return{semantics:t.shift(),ssrcs:t.map((function(e){return parseInt(e,10)}))}},t.getMid=function(e){var n=t.matchPrefix(e,"a=mid:")[0];if(n)return n.substr(6)},t.parseFingerprint=function(e){var t=e.substr(14).split(" ");return{algorithm:t[0].toLowerCase(),value:t[1]}},t.getDtlsParameters=function(e,n){return{role:"auto",fingerprints:t.matchPrefix(e+n,"a=fingerprint:").map(t.parseFingerprint)}},t.writeDtlsParameters=function(e,t){var n="a=setup:"+t+"\r\n";return e.fingerprints.forEach((function(e){n+="a=fingerprint:"+e.algorithm+" "+e.value+"\r\n"})),n},t.parseCryptoLine=function(e){var t=e.substr(9).split(" ");return{tag:parseInt(t[0],10),cryptoSuite:t[1],keyParams:t[2],sessionParams:t.slice(3)}},t.writeCryptoLine=function(e){return"a=crypto:"+e.tag+" "+e.cryptoSuite+" "+("object"==typeof e.keyParams?t.writeCryptoKeyParams(e.keyParams):e.keyParams)+(e.sessionParams?" "+e.sessionParams.join(" "):"")+"\r\n"},t.parseCryptoKeyParams=function(e){if(0!==e.indexOf("inline:"))return null;var t=e.substr(7).split("|");return{keyMethod:"inline",keySalt:t[0],lifeTime:t[1],mkiValue:t[2]?t[2].split(":")[0]:void 0,mkiLength:t[2]?t[2].split(":")[1]:void 0}},t.writeCryptoKeyParams=function(e){return e.keyMethod+":"+e.keySalt+(e.lifeTime?"|"+e.lifeTime:"")+(e.mkiValue&&e.mkiLength?"|"+e.mkiValue+":"+e.mkiLength:"")},t.getCryptoParameters=function(e,n){return t.matchPrefix(e+n,"a=crypto:").map(t.parseCryptoLine)},t.getIceParameters=function(e,n){var r=t.matchPrefix(e+n,"a=ice-ufrag:")[0],i=t.matchPrefix(e+n,"a=ice-pwd:")[0];return r&&i?{usernameFragment:r.substr(12),password:i.substr(10)}:null},t.writeIceParameters=function(e){return"a=ice-ufrag:"+e.usernameFragment+"\r\na=ice-pwd:"+e.password+"\r\n"},t.parseRtpParameters=function(e){for(var n={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},r=t.splitLines(e)[0].split(" "),i=3;i<r.length;i++){var o=r[i],a=t.matchPrefix(e,"a=rtpmap:"+o+" ")[0];if(a){var s=t.parseRtpMap(a),c=t.matchPrefix(e,"a=fmtp:"+o+" ");switch(s.parameters=c.length?t.parseFmtp(c[0]):{},s.rtcpFeedback=t.matchPrefix(e,"a=rtcp-fb:"+o+" ").map(t.parseRtcpFb),n.codecs.push(s),s.name.toUpperCase()){case"RED":case"ULPFEC":n.fecMechanisms.push(s.name.toUpperCase())}}}return t.matchPrefix(e,"a=extmap:").forEach((function(e){n.headerExtensions.push(t.parseExtmap(e))})),n},t.writeRtpDescription=function(e,n){var r="";r+="m="+e+" ",r+=n.codecs.length>0?"9":"0",r+=" UDP/TLS/RTP/SAVPF ",r+=n.codecs.map((function(e){return void 0!==e.preferredPayloadType?e.preferredPayloadType:e.payloadType})).join(" ")+"\r\n",r+="c=IN IP4 0.0.0.0\r\n",r+="a=rtcp:9 IN IP4 0.0.0.0\r\n",n.codecs.forEach((function(e){r+=t.writeRtpMap(e),r+=t.writeFmtp(e),r+=t.writeRtcpFb(e)}));var i=0;return n.codecs.forEach((function(e){e.maxptime>i&&(i=e.maxptime)})),i>0&&(r+="a=maxptime:"+i+"\r\n"),r+="a=rtcp-mux\r\n",n.headerExtensions&&n.headerExtensions.forEach((function(e){r+=t.writeExtmap(e)})),r},t.parseRtpEncodingParameters=function(e){var n,r=[],i=t.parseRtpParameters(e),o=-1!==i.fecMechanisms.indexOf("RED"),a=-1!==i.fecMechanisms.indexOf("ULPFEC"),s=t.matchPrefix(e,"a=ssrc:").map((function(e){return t.parseSsrcMedia(e)})).filter((function(e){return"cname"===e.attribute})),c=s.length>0&&s[0].ssrc,u=t.matchPrefix(e,"a=ssrc-group:FID").map((function(e){return e.substr(17).split(" ").map((function(e){return parseInt(e,10)}))}));u.length>0&&u[0].length>1&&u[0][0]===c&&(n=u[0][1]),i.codecs.forEach((function(e){if("RTX"===e.name.toUpperCase()&&e.parameters.apt){var t={ssrc:c,codecPayloadType:parseInt(e.parameters.apt,10)};c&&n&&(t.rtx={ssrc:n}),r.push(t),o&&((t=JSON.parse(JSON.stringify(t))).fec={ssrc:c,mechanism:a?"red+ulpfec":"red"},r.push(t))}})),0===r.length&&c&&r.push({ssrc:c});var l=t.matchPrefix(e,"b=");return l.length&&(l=0===l[0].indexOf("b=TIAS:")?parseInt(l[0].substr(7),10):0===l[0].indexOf("b=AS:")?1e3*parseInt(l[0].substr(5),10)*.95-16e3:void 0,r.forEach((function(e){e.maxBitrate=l}))),r},t.parseRtcpParameters=function(e){var n={},r=t.matchPrefix(e,"a=ssrc:").map((function(e){return t.parseSsrcMedia(e)})).filter((function(e){return"cname"===e.attribute}))[0];r&&(n.cname=r.value,n.ssrc=r.ssrc);var i=t.matchPrefix(e,"a=rtcp-rsize");n.reducedSize=i.length>0,n.compound=0===i.length;var o=t.matchPrefix(e,"a=rtcp-mux");return n.mux=o.length>0,n},t.parseMsid=function(e){var n,r=t.matchPrefix(e,"a=msid:");if(1===r.length)return{stream:(n=r[0].substr(7).split(" "))[0],track:n[1]};var i=t.matchPrefix(e,"a=ssrc:").map((function(e){return t.parseSsrcMedia(e)})).filter((function(e){return"msid"===e.attribute}));return i.length>0?{stream:(n=i[0].value.split(" "))[0],track:n[1]}:void 0},t.parseSctpDescription=function(e){var n,r=t.parseMLine(e),i=t.matchPrefix(e,"a=max-message-size:");i.length>0&&(n=parseInt(i[0].substr(19),10)),isNaN(n)&&(n=65536);var o=t.matchPrefix(e,"a=sctp-port:");if(o.length>0)return{port:parseInt(o[0].substr(12),10),protocol:r.fmt,maxMessageSize:n};if(t.matchPrefix(e,"a=sctpmap:").length>0){var a=t.matchPrefix(e,"a=sctpmap:")[0].substr(10).split(" ");return{port:parseInt(a[0],10),protocol:a[1],maxMessageSize:n}}},t.writeSctpDescription=function(e,t){var n=[];return n="DTLS/SCTP"!==e.protocol?["m="+e.kind+" 9 "+e.protocol+" "+t.protocol+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctp-port:"+t.port+"\r\n"]:["m="+e.kind+" 9 "+e.protocol+" "+t.port+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctpmap:"+t.port+" "+t.protocol+" 65535\r\n"],void 0!==t.maxMessageSize&&n.push("a=max-message-size:"+t.maxMessageSize+"\r\n"),n.join("")},t.generateSessionId=function(){return Math.random().toString().substr(2,21)},t.writeSessionBoilerplate=function(e,n,r){var i=void 0!==n?n:2;return"v=0\r\no="+(r||"thisisadapterortc")+" "+(e||t.generateSessionId())+" "+i+" IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\n"},t.writeMediaSection=function(e,n,r,i){var o=t.writeRtpDescription(e.kind,n);if(o+=t.writeIceParameters(e.iceGatherer.getLocalParameters()),o+=t.writeDtlsParameters(e.dtlsTransport.getLocalParameters(),"offer"===r?"actpass":"active"),o+="a=mid:"+e.mid+"\r\n",e.direction?o+="a="+e.direction+"\r\n":e.rtpSender&&e.rtpReceiver?o+="a=sendrecv\r\n":e.rtpSender?o+="a=sendonly\r\n":e.rtpReceiver?o+="a=recvonly\r\n":o+="a=inactive\r\n",e.rtpSender){var a="msid:"+i.id+" "+e.rtpSender.track.id+"\r\n";o+="a="+a,o+="a=ssrc:"+e.sendEncodingParameters[0].ssrc+" "+a,e.sendEncodingParameters[0].rtx&&(o+="a=ssrc:"+e.sendEncodingParameters[0].rtx.ssrc+" "+a,o+="a=ssrc-group:FID "+e.sendEncodingParameters[0].ssrc+" "+e.sendEncodingParameters[0].rtx.ssrc+"\r\n")}return o+="a=ssrc:"+e.sendEncodingParameters[0].ssrc+" cname:"+t.localCName+"\r\n",e.rtpSender&&e.sendEncodingParameters[0].rtx&&(o+="a=ssrc:"+e.sendEncodingParameters[0].rtx.ssrc+" cname:"+t.localCName+"\r\n"),o},t.getDirection=function(e,n){for(var r=t.splitLines(e),i=0;i<r.length;i++)switch(r[i]){case"a=sendrecv":case"a=sendonly":case"a=recvonly":case"a=inactive":return r[i].substr(2)}return n?t.getDirection(n):"sendrecv"},t.getKind=function(e){return t.splitLines(e)[0].split(" ")[0].substr(2)},t.isRejected=function(e){return"0"===e.split(" ",2)[1]},t.parseMLine=function(e){var n=t.splitLines(e)[0].substr(2).split(" ");return{kind:n[0],port:parseInt(n[1],10),protocol:n[2],fmt:n.slice(3).join(" ")}},t.parseOLine=function(e){var n=t.matchPrefix(e,"o=")[0].substr(2).split(" ");return{username:n[0],sessionId:n[1],sessionVersion:parseInt(n[2],10),netType:n[3],addressType:n[4],address:n[5]}},t.isValidSDP=function(e){if("string"!=typeof e||0===e.length)return!1;for(var n=t.splitLines(e),r=0;r<n.length;r++)if(n[r].length<2||"="!==n[r].charAt(1))return!1;return!0},e.exports=t}));function Cn(e,t,n,r,i){var o=In.writeRtpDescription(e.kind,t);if(o+=In.writeIceParameters(e.iceGatherer.getLocalParameters()),o+=In.writeDtlsParameters(e.dtlsTransport.getLocalParameters(),"offer"===n?"actpass":i||"active"),o+="a=mid:"+e.mid+"\r\n",e.rtpSender&&e.rtpReceiver?o+="a=sendrecv\r\n":e.rtpSender?o+="a=sendonly\r\n":e.rtpReceiver?o+="a=recvonly\r\n":o+="a=inactive\r\n",e.rtpSender){var a=e.rtpSender._initialTrackId||e.rtpSender.track.id;e.rtpSender._initialTrackId=a;var s="msid:"+(r?r.id:"-")+" "+a+"\r\n";o+="a="+s,o+="a=ssrc:"+e.sendEncodingParameters[0].ssrc+" "+s,e.sendEncodingParameters[0].rtx&&(o+="a=ssrc:"+e.sendEncodingParameters[0].rtx.ssrc+" "+s,o+="a=ssrc-group:FID "+e.sendEncodingParameters[0].ssrc+" "+e.sendEncodingParameters[0].rtx.ssrc+"\r\n")}return o+="a=ssrc:"+e.sendEncodingParameters[0].ssrc+" cname:"+In.localCName+"\r\n",e.rtpSender&&e.sendEncodingParameters[0].rtx&&(o+="a=ssrc:"+e.sendEncodingParameters[0].rtx.ssrc+" cname:"+In.localCName+"\r\n"),o}function Mn(e,t){var n={codecs:[],headerExtensions:[],fecMechanisms:[]},r=function(e,t){e=parseInt(e,10);for(var n=0;n<t.length;n++)if(t[n].payloadType===e||t[n].preferredPayloadType===e)return t[n]},i=function(e,t,n,i){var o=r(e.parameters.apt,n),a=r(t.parameters.apt,i);return o&&a&&o.name.toLowerCase()===a.name.toLowerCase()};return e.codecs.forEach((function(r){for(var o=0;o<t.codecs.length;o++){var a=t.codecs[o];if(r.name.toLowerCase()===a.name.toLowerCase()&&r.clockRate===a.clockRate){if("rtx"===r.name.toLowerCase()&&r.parameters&&a.parameters.apt&&!i(r,a,e.codecs,t.codecs))continue;(a=JSON.parse(JSON.stringify(a))).numChannels=Math.min(r.numChannels,a.numChannels),n.codecs.push(a),a.rtcpFeedback=a.rtcpFeedback.filter((function(e){for(var t=0;t<r.rtcpFeedback.length;t++)if(r.rtcpFeedback[t].type===e.type&&r.rtcpFeedback[t].parameter===e.parameter)return!0;return!1}));break}}})),e.headerExtensions.forEach((function(e){for(var r=0;r<t.headerExtensions.length;r++){var i=t.headerExtensions[r];if(e.uri===i.uri){n.headerExtensions.push(i);break}}})),n}function Tn(e,t,n){return-1!=={offer:{setLocalDescription:["stable","have-local-offer"],setRemoteDescription:["stable","have-remote-offer"]},answer:{setLocalDescription:["have-remote-offer","have-local-pranswer"],setRemoteDescription:["have-local-offer","have-remote-pranswer"]}}[t][e].indexOf(n)}function kn(e,t){var n=e.getRemoteCandidates().find((function(e){return t.foundation===e.foundation&&t.ip===e.ip&&t.port===e.port&&t.priority===e.priority&&t.protocol===e.protocol&&t.type===e.type}));return n||e.addRemoteCandidate(t),!n}function En(e,t){var n=new Error(t);return n.name=e,n.code={NotSupportedError:9,InvalidStateError:11,InvalidAccessError:15,TypeError:void 0,OperationError:void 0}[e],n}var An=function(e,t){function n(t,n){n.addTrack(t),n.dispatchEvent(new e.MediaStreamTrackEvent("addtrack",{track:t}))}function r(t,n,r,i){var o=new Event("track");o.track=n,o.receiver=r,o.transceiver={receiver:r},o.streams=i,e.setTimeout((function(){t._dispatchEvent("track",o)}))}var i=function(n){var r=this,i=document.createDocumentFragment();if(["addEventListener","removeEventListener","dispatchEvent"].forEach((function(e){r[e]=i[e].bind(i)})),this.canTrickleIceCandidates=null,this.needNegotiation=!1,this.localStreams=[],this.remoteStreams=[],this._localDescription=null,this._remoteDescription=null,this.signalingState="stable",this.iceConnectionState="new",this.connectionState="new",this.iceGatheringState="new",n=JSON.parse(JSON.stringify(n||{})),this.usingBundle="max-bundle"===n.bundlePolicy,"negotiate"===n.rtcpMuxPolicy)throw En("NotSupportedError","rtcpMuxPolicy 'negotiate' is not supported");switch(n.rtcpMuxPolicy||(n.rtcpMuxPolicy="require"),n.iceTransportPolicy){case"all":case"relay":break;default:n.iceTransportPolicy="all"}switch(n.bundlePolicy){case"balanced":case"max-compat":case"max-bundle":break;default:n.bundlePolicy="balanced"}if(n.iceServers=function(e,t){var n=!1;return(e=JSON.parse(JSON.stringify(e))).filter((function(e){if(e&&(e.urls||e.url)){var r=e.urls||e.url;e.url&&!e.urls&&console.warn("RTCIceServer.url is deprecated! Use urls instead.");var i="string"==typeof r;return i&&(r=[r]),r=r.filter((function(e){return 0!==e.indexOf("turn:")||-1===e.indexOf("transport=udp")||-1!==e.indexOf("turn:[")||n?0===e.indexOf("stun:")&&t>=14393&&-1===e.indexOf("?transport=udp"):(n=!0,!0)})),delete e.url,e.urls=i?r[0]:r,!!r.length}}))}(n.iceServers||[],t),this._iceGatherers=[],n.iceCandidatePoolSize)for(var o=n.iceCandidatePoolSize;o>0;o--)this._iceGatherers.push(new e.RTCIceGatherer({iceServers:n.iceServers,gatherPolicy:n.iceTransportPolicy}));else n.iceCandidatePoolSize=0;this._config=n,this.transceivers=[],this._sdpSessionId=In.generateSessionId(),this._sdpSessionVersion=0,this._dtlsRole=void 0,this._isClosed=!1};Object.defineProperty(i.prototype,"localDescription",{configurable:!0,get:function(){return this._localDescription}}),Object.defineProperty(i.prototype,"remoteDescription",{configurable:!0,get:function(){return this._remoteDescription}}),i.prototype.onicecandidate=null,i.prototype.onaddstream=null,i.prototype.ontrack=null,i.prototype.onremovestream=null,i.prototype.onsignalingstatechange=null,i.prototype.oniceconnectionstatechange=null,i.prototype.onconnectionstatechange=null,i.prototype.onicegatheringstatechange=null,i.prototype.onnegotiationneeded=null,i.prototype.ondatachannel=null,i.prototype._dispatchEvent=function(e,t){this._isClosed||(this.dispatchEvent(t),"function"==typeof this["on"+e]&&this["on"+e](t))},i.prototype._emitGatheringStateChange=function(){var e=new Event("icegatheringstatechange");this._dispatchEvent("icegatheringstatechange",e)},i.prototype.getConfiguration=function(){return this._config},i.prototype.getLocalStreams=function(){return this.localStreams},i.prototype.getRemoteStreams=function(){return this.remoteStreams},i.prototype._createTransceiver=function(e,t){var n=this.transceivers.length>0,r={track:null,iceGatherer:null,iceTransport:null,dtlsTransport:null,localCapabilities:null,remoteCapabilities:null,rtpSender:null,rtpReceiver:null,kind:e,mid:null,sendEncodingParameters:null,recvEncodingParameters:null,stream:null,associatedRemoteMediaStreams:[],wantReceive:!0};if(this.usingBundle&&n)r.iceTransport=this.transceivers[0].iceTransport,r.dtlsTransport=this.transceivers[0].dtlsTransport;else{var i=this._createIceAndDtlsTransports();r.iceTransport=i.iceTransport,r.dtlsTransport=i.dtlsTransport}return t||this.transceivers.push(r),r},i.prototype.addTrack=function(t,n){if(this._isClosed)throw En("InvalidStateError","Attempted to call addTrack on a closed peerconnection.");var r;if(this.transceivers.find((function(e){return e.track===t})))throw En("InvalidAccessError","Track already exists.");for(var i=0;i<this.transceivers.length;i++)this.transceivers[i].track||this.transceivers[i].kind!==t.kind||(r=this.transceivers[i]);return r||(r=this._createTransceiver(t.kind)),this._maybeFireNegotiationNeeded(),-1===this.localStreams.indexOf(n)&&this.localStreams.push(n),r.track=t,r.stream=n,r.rtpSender=new e.RTCRtpSender(t,r.dtlsTransport),r.rtpSender},i.prototype.addStream=function(e){var n=this;if(t>=15025)e.getTracks().forEach((function(t){n.addTrack(t,e)}));else{var r=e.clone();e.getTracks().forEach((function(e,t){var n=r.getTracks()[t];e.addEventListener("enabled",(function(e){n.enabled=e.enabled}))})),r.getTracks().forEach((function(e){n.addTrack(e,r)}))}},i.prototype.removeTrack=function(t){if(this._isClosed)throw En("InvalidStateError","Attempted to call removeTrack on a closed peerconnection.");if(!(t instanceof e.RTCRtpSender))throw new TypeError("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.");var n=this.transceivers.find((function(e){return e.rtpSender===t}));if(!n)throw En("InvalidAccessError","Sender was not created by this connection.");var r=n.stream;n.rtpSender.stop(),n.rtpSender=null,n.track=null,n.stream=null,-1===this.transceivers.map((function(e){return e.stream})).indexOf(r)&&this.localStreams.indexOf(r)>-1&&this.localStreams.splice(this.localStreams.indexOf(r),1),this._maybeFireNegotiationNeeded()},i.prototype.removeStream=function(e){var t=this;e.getTracks().forEach((function(e){var n=t.getSenders().find((function(t){return t.track===e}));n&&t.removeTrack(n)}))},i.prototype.getSenders=function(){return this.transceivers.filter((function(e){return!!e.rtpSender})).map((function(e){return e.rtpSender}))},i.prototype.getReceivers=function(){return this.transceivers.filter((function(e){return!!e.rtpReceiver})).map((function(e){return e.rtpReceiver}))},i.prototype._createIceGatherer=function(t,n){var r=this;if(n&&t>0)return this.transceivers[0].iceGatherer;if(this._iceGatherers.length)return this._iceGatherers.shift();var i=new e.RTCIceGatherer({iceServers:this._config.iceServers,gatherPolicy:this._config.iceTransportPolicy});return Object.defineProperty(i,"state",{value:"new",writable:!0}),this.transceivers[t].bufferedCandidateEvents=[],this.transceivers[t].bufferCandidates=function(e){var n=!e.candidate||0===Object.keys(e.candidate).length;i.state=n?"completed":"gathering",null!==r.transceivers[t].bufferedCandidateEvents&&r.transceivers[t].bufferedCandidateEvents.push(e)},i.addEventListener("localcandidate",this.transceivers[t].bufferCandidates),i},i.prototype._gather=function(t,n){var r=this,i=this.transceivers[n].iceGatherer;if(!i.onlocalcandidate){var o=this.transceivers[n].bufferedCandidateEvents;this.transceivers[n].bufferedCandidateEvents=null,i.removeEventListener("localcandidate",this.transceivers[n].bufferCandidates),i.onlocalcandidate=function(e){if(!(r.usingBundle&&n>0)){var o=new Event("icecandidate");o.candidate={sdpMid:t,sdpMLineIndex:n};var a=e.candidate,s=!a||0===Object.keys(a).length;if(s)"new"!==i.state&&"gathering"!==i.state||(i.state="completed");else{"new"===i.state&&(i.state="gathering"),a.component=1,a.ufrag=i.getLocalParameters().usernameFragment;var c=In.writeCandidate(a);o.candidate=Object.assign(o.candidate,In.parseCandidate(c)),o.candidate.candidate=c,o.candidate.toJSON=function(){return{candidate:o.candidate.candidate,sdpMid:o.candidate.sdpMid,sdpMLineIndex:o.candidate.sdpMLineIndex,usernameFragment:o.candidate.usernameFragment}}}var u=In.getMediaSections(r._localDescription.sdp);u[o.candidate.sdpMLineIndex]+=s?"a=end-of-candidates\r\n":"a="+o.candidate.candidate+"\r\n",r._localDescription.sdp=In.getDescription(r._localDescription.sdp)+u.join("");var l=r.transceivers.every((function(e){return e.iceGatherer&&"completed"===e.iceGatherer.state}));"gathering"!==r.iceGatheringState&&(r.iceGatheringState="gathering",r._emitGatheringStateChange()),s||r._dispatchEvent("icecandidate",o),l&&(r._dispatchEvent("icecandidate",new Event("icecandidate")),r.iceGatheringState="complete",r._emitGatheringStateChange())}},e.setTimeout((function(){o.forEach((function(e){i.onlocalcandidate(e)}))}),0)}},i.prototype._createIceAndDtlsTransports=function(){var t=this,n=new e.RTCIceTransport(null);n.onicestatechange=function(){t._updateIceConnectionState(),t._updateConnectionState()};var r=new e.RTCDtlsTransport(n);return r.ondtlsstatechange=function(){t._updateConnectionState()},r.onerror=function(){Object.defineProperty(r,"state",{value:"failed",writable:!0}),t._updateConnectionState()},{iceTransport:n,dtlsTransport:r}},i.prototype._disposeIceAndDtlsTransports=function(e){var t=this.transceivers[e].iceGatherer;t&&(delete t.onlocalcandidate,delete this.transceivers[e].iceGatherer);var n=this.transceivers[e].iceTransport;n&&(delete n.onicestatechange,delete this.transceivers[e].iceTransport);var r=this.transceivers[e].dtlsTransport;r&&(delete r.ondtlsstatechange,delete r.onerror,delete this.transceivers[e].dtlsTransport)},i.prototype._transceive=function(e,n,r){var i=Mn(e.localCapabilities,e.remoteCapabilities);n&&e.rtpSender&&(i.encodings=e.sendEncodingParameters,i.rtcp={cname:In.localCName,compound:e.rtcpParameters.compound},e.recvEncodingParameters.length&&(i.rtcp.ssrc=e.recvEncodingParameters[0].ssrc),e.rtpSender.send(i)),r&&e.rtpReceiver&&i.codecs.length>0&&("video"===e.kind&&e.recvEncodingParameters&&t<15019&&e.recvEncodingParameters.forEach((function(e){delete e.rtx})),e.recvEncodingParameters.length?i.encodings=e.recvEncodingParameters:i.encodings=[{}],i.rtcp={compound:e.rtcpParameters.compound},e.rtcpParameters.cname&&(i.rtcp.cname=e.rtcpParameters.cname),e.sendEncodingParameters.length&&(i.rtcp.ssrc=e.sendEncodingParameters[0].ssrc),e.rtpReceiver.receive(i))},i.prototype.setLocalDescription=function(e){var t,n,r=this;if(-1===["offer","answer"].indexOf(e.type))return Promise.reject(En("TypeError",'Unsupported type "'+e.type+'"'));if(!Tn("setLocalDescription",e.type,r.signalingState)||r._isClosed)return Promise.reject(En("InvalidStateError","Can not set local "+e.type+" in state "+r.signalingState));if("offer"===e.type)t=In.splitSections(e.sdp),n=t.shift(),t.forEach((function(e,t){var n=In.parseRtpParameters(e);r.transceivers[t].localCapabilities=n})),r.transceivers.forEach((function(e,t){r._gather(e.mid,t)}));else if("answer"===e.type){t=In.splitSections(r._remoteDescription.sdp),n=t.shift();var i=In.matchPrefix(n,"a=ice-lite").length>0;t.forEach((function(e,t){var o=r.transceivers[t],a=o.iceGatherer,s=o.iceTransport,c=o.dtlsTransport,u=o.localCapabilities,l=o.remoteCapabilities;if((!In.isRejected(e)||0!==In.matchPrefix(e,"a=bundle-only").length)&&!o.rejected){var d=In.getIceParameters(e,n),h=In.getDtlsParameters(e,n);i&&(h.role="server"),r.usingBundle&&0!==t||(r._gather(o.mid,t),"new"===s.state&&s.start(a,d,i?"controlling":"controlled"),"new"===c.state&&c.start(h));var f=Mn(u,l);r._transceive(o,f.codecs.length>0,!1)}}))}return r._localDescription={type:e.type,sdp:e.sdp},"offer"===e.type?r._updateSignalingState("have-local-offer"):r._updateSignalingState("stable"),Promise.resolve()},i.prototype.setRemoteDescription=function(i){var o=this;if(-1===["offer","answer"].indexOf(i.type))return Promise.reject(En("TypeError",'Unsupported type "'+i.type+'"'));if(!Tn("setRemoteDescription",i.type,o.signalingState)||o._isClosed)return Promise.reject(En("InvalidStateError","Can not set remote "+i.type+" in state "+o.signalingState));var a={};o.remoteStreams.forEach((function(e){a[e.id]=e}));var s=[],c=In.splitSections(i.sdp),u=c.shift(),l=In.matchPrefix(u,"a=ice-lite").length>0,d=In.matchPrefix(u,"a=group:BUNDLE ").length>0;o.usingBundle=d;var h=In.matchPrefix(u,"a=ice-options:")[0];return o.canTrickleIceCandidates=!!h&&h.substr(14).split(" ").indexOf("trickle")>=0,c.forEach((function(r,c){var h=In.splitLines(r),f=In.getKind(r),p=In.isRejected(r)&&0===In.matchPrefix(r,"a=bundle-only").length,g=h[0].substr(2).split(" ")[2],m=In.getDirection(r,u),v=In.parseMsid(r),y=In.getMid(r)||In.generateIdentifier();if(p||"application"===f&&("DTLS/SCTP"===g||"UDP/DTLS/SCTP"===g))o.transceivers[c]={mid:y,kind:f,protocol:g,rejected:!0};else{var _,b,S,x,w,I,C,M,T;!p&&o.transceivers[c]&&o.transceivers[c].rejected&&(o.transceivers[c]=o._createTransceiver(f,!0));var k,E,A=In.parseRtpParameters(r);p||(k=In.getIceParameters(r,u),(E=In.getDtlsParameters(r,u)).role="client"),C=In.parseRtpEncodingParameters(r);var D=In.parseRtcpParameters(r),O=In.matchPrefix(r,"a=end-of-candidates",u).length>0,R=In.matchPrefix(r,"a=candidate:").map((function(e){return In.parseCandidate(e)})).filter((function(e){return 1===e.component}));if(("offer"===i.type||"answer"===i.type)&&!p&&d&&c>0&&o.transceivers[c]&&(o._disposeIceAndDtlsTransports(c),o.transceivers[c].iceGatherer=o.transceivers[0].iceGatherer,o.transceivers[c].iceTransport=o.transceivers[0].iceTransport,o.transceivers[c].dtlsTransport=o.transceivers[0].dtlsTransport,o.transceivers[c].rtpSender&&o.transceivers[c].rtpSender.setTransport(o.transceivers[0].dtlsTransport),o.transceivers[c].rtpReceiver&&o.transceivers[c].rtpReceiver.setTransport(o.transceivers[0].dtlsTransport)),"offer"!==i.type||p)"answer"!==i.type||p||(b=(_=o.transceivers[c]).iceGatherer,S=_.iceTransport,x=_.dtlsTransport,w=_.rtpReceiver,I=_.sendEncodingParameters,M=_.localCapabilities,o.transceivers[c].recvEncodingParameters=C,o.transceivers[c].remoteCapabilities=A,o.transceivers[c].rtcpParameters=D,R.length&&"new"===S.state&&(!l&&!O||d&&0!==c?R.forEach((function(e){kn(_.iceTransport,e)})):S.setRemoteCandidates(R)),d&&0!==c||("new"===S.state&&S.start(b,k,"controlling"),"new"===x.state&&x.start(E)),!Mn(_.localCapabilities,_.remoteCapabilities).codecs.filter((function(e){return"rtx"===e.name.toLowerCase()})).length&&_.sendEncodingParameters[0].rtx&&delete _.sendEncodingParameters[0].rtx,o._transceive(_,"sendrecv"===m||"recvonly"===m,"sendrecv"===m||"sendonly"===m),!w||"sendrecv"!==m&&"sendonly"!==m?delete _.rtpReceiver:(T=w.track,v?(a[v.stream]||(a[v.stream]=new e.MediaStream),n(T,a[v.stream]),s.push([T,w,a[v.stream]])):(a.default||(a.default=new e.MediaStream),n(T,a.default),s.push([T,w,a.default]))));else{(_=o.transceivers[c]||o._createTransceiver(f)).mid=y,_.iceGatherer||(_.iceGatherer=o._createIceGatherer(c,d)),R.length&&"new"===_.iceTransport.state&&(!O||d&&0!==c?R.forEach((function(e){kn(_.iceTransport,e)})):_.iceTransport.setRemoteCandidates(R)),M=e.RTCRtpReceiver.getCapabilities(f),t<15019&&(M.codecs=M.codecs.filter((function(e){return"rtx"!==e.name}))),I=_.sendEncodingParameters||[{ssrc:1001*(2*c+2)}];var L,P=!1;"sendrecv"===m||"sendonly"===m?(P=!_.rtpReceiver,w=_.rtpReceiver||new e.RTCRtpReceiver(_.dtlsTransport,f),P&&(T=w.track,v&&"-"===v.stream||(v?(a[v.stream]||(a[v.stream]=new e.MediaStream,Object.defineProperty(a[v.stream],"id",{get:function(){return v.stream}})),Object.defineProperty(T,"id",{get:function(){return v.track}}),L=a[v.stream]):(a.default||(a.default=new e.MediaStream),L=a.default)),L&&(n(T,L),_.associatedRemoteMediaStreams.push(L)),s.push([T,w,L]))):_.rtpReceiver&&_.rtpReceiver.track&&(_.associatedRemoteMediaStreams.forEach((function(t){var n=t.getTracks().find((function(e){return e.id===_.rtpReceiver.track.id}));n&&function(t,n){n.removeTrack(t),n.dispatchEvent(new e.MediaStreamTrackEvent("removetrack",{track:t}))}(n,t)})),_.associatedRemoteMediaStreams=[]),_.localCapabilities=M,_.remoteCapabilities=A,_.rtpReceiver=w,_.rtcpParameters=D,_.sendEncodingParameters=I,_.recvEncodingParameters=C,o._transceive(o.transceivers[c],!1,P)}}})),void 0===o._dtlsRole&&(o._dtlsRole="offer"===i.type?"active":"passive"),o._remoteDescription={type:i.type,sdp:i.sdp},"offer"===i.type?o._updateSignalingState("have-remote-offer"):o._updateSignalingState("stable"),Object.keys(a).forEach((function(t){var n=a[t];if(n.getTracks().length){if(-1===o.remoteStreams.indexOf(n)){o.remoteStreams.push(n);var i=new Event("addstream");i.stream=n,e.setTimeout((function(){o._dispatchEvent("addstream",i)}))}s.forEach((function(e){var t=e[0],i=e[1];n.id===e[2].id&&r(o,t,i,[n])}))}})),s.forEach((function(e){e[2]||r(o,e[0],e[1],[])})),e.setTimeout((function(){o&&o.transceivers&&o.transceivers.forEach((function(e){e.iceTransport&&"new"===e.iceTransport.state&&e.iceTransport.getRemoteCandidates().length>0&&(console.warn("Timeout for addRemoteCandidate. Consider sending an end-of-candidates notification"),e.iceTransport.addRemoteCandidate({}))}))}),4e3),Promise.resolve()},i.prototype.close=function(){this.transceivers.forEach((function(e){e.iceTransport&&e.iceTransport.stop(),e.dtlsTransport&&e.dtlsTransport.stop(),e.rtpSender&&e.rtpSender.stop(),e.rtpReceiver&&e.rtpReceiver.stop()})),this._isClosed=!0,this._updateSignalingState("closed")},i.prototype._updateSignalingState=function(e){this.signalingState=e;var t=new Event("signalingstatechange");this._dispatchEvent("signalingstatechange",t)},i.prototype._maybeFireNegotiationNeeded=function(){var t=this;"stable"===this.signalingState&&!0!==this.needNegotiation&&(this.needNegotiation=!0,e.setTimeout((function(){if(t.needNegotiation){t.needNegotiation=!1;var e=new Event("negotiationneeded");t._dispatchEvent("negotiationneeded",e)}}),0))},i.prototype._updateIceConnectionState=function(){var e,t={new:0,closed:0,checking:0,connected:0,completed:0,disconnected:0,failed:0};if(this.transceivers.forEach((function(e){e.iceTransport&&!e.rejected&&t[e.iceTransport.state]++})),e="new",t.failed>0?e="failed":t.checking>0?e="checking":t.disconnected>0?e="disconnected":t.new>0?e="new":t.connected>0?e="connected":t.completed>0&&(e="completed"),e!==this.iceConnectionState){this.iceConnectionState=e;var n=new Event("iceconnectionstatechange");this._dispatchEvent("iceconnectionstatechange",n)}},i.prototype._updateConnectionState=function(){var e,t={new:0,closed:0,connecting:0,connected:0,completed:0,disconnected:0,failed:0};if(this.transceivers.forEach((function(e){e.iceTransport&&e.dtlsTransport&&!e.rejected&&(t[e.iceTransport.state]++,t[e.dtlsTransport.state]++)})),t.connected+=t.completed,e="new",t.failed>0?e="failed":t.connecting>0?e="connecting":t.disconnected>0?e="disconnected":t.new>0?e="new":t.connected>0&&(e="connected"),e!==this.connectionState){this.connectionState=e;var n=new Event("connectionstatechange");this._dispatchEvent("connectionstatechange",n)}},i.prototype.createOffer=function(){var n=this;if(n._isClosed)return Promise.reject(En("InvalidStateError","Can not call createOffer after close"));var r=n.transceivers.filter((function(e){return"audio"===e.kind})).length,i=n.transceivers.filter((function(e){return"video"===e.kind})).length,o=arguments[0];if(o){if(o.mandatory||o.optional)throw new TypeError("Legacy mandatory/optional constraints not supported.");void 0!==o.offerToReceiveAudio&&(r=!0===o.offerToReceiveAudio?1:!1===o.offerToReceiveAudio?0:o.offerToReceiveAudio),void 0!==o.offerToReceiveVideo&&(i=!0===o.offerToReceiveVideo?1:!1===o.offerToReceiveVideo?0:o.offerToReceiveVideo)}for(n.transceivers.forEach((function(e){"audio"===e.kind?--r<0&&(e.wantReceive=!1):"video"===e.kind&&--i<0&&(e.wantReceive=!1)}));r>0||i>0;)r>0&&(n._createTransceiver("audio"),r--),i>0&&(n._createTransceiver("video"),i--);var a=In.writeSessionBoilerplate(n._sdpSessionId,n._sdpSessionVersion++);n.transceivers.forEach((function(r,i){var o=r.track,a=r.kind,s=r.mid||In.generateIdentifier();r.mid=s,r.iceGatherer||(r.iceGatherer=n._createIceGatherer(i,n.usingBundle));var c=e.RTCRtpSender.getCapabilities(a);t<15019&&(c.codecs=c.codecs.filter((function(e){return"rtx"!==e.name}))),c.codecs.forEach((function(e){"H264"===e.name&&void 0===e.parameters["level-asymmetry-allowed"]&&(e.parameters["level-asymmetry-allowed"]="1"),r.remoteCapabilities&&r.remoteCapabilities.codecs&&r.remoteCapabilities.codecs.forEach((function(t){e.name.toLowerCase()===t.name.toLowerCase()&&e.clockRate===t.clockRate&&(e.preferredPayloadType=t.payloadType)}))})),c.headerExtensions.forEach((function(e){(r.remoteCapabilities&&r.remoteCapabilities.headerExtensions||[]).forEach((function(t){e.uri===t.uri&&(e.id=t.id)}))}));var u=r.sendEncodingParameters||[{ssrc:1001*(2*i+1)}];o&&t>=15019&&"video"===a&&!u[0].rtx&&(u[0].rtx={ssrc:u[0].ssrc+1}),r.wantReceive&&(r.rtpReceiver=new e.RTCRtpReceiver(r.dtlsTransport,a)),r.localCapabilities=c,r.sendEncodingParameters=u})),"max-compat"!==n._config.bundlePolicy&&(a+="a=group:BUNDLE "+n.transceivers.map((function(e){return e.mid})).join(" ")+"\r\n"),a+="a=ice-options:trickle\r\n",n.transceivers.forEach((function(e,t){a+=Cn(e,e.localCapabilities,"offer",e.stream,n._dtlsRole),a+="a=rtcp-rsize\r\n",!e.iceGatherer||"new"===n.iceGatheringState||0!==t&&n.usingBundle||(e.iceGatherer.getLocalCandidates().forEach((function(e){e.component=1,a+="a="+In.writeCandidate(e)+"\r\n"})),"completed"===e.iceGatherer.state&&(a+="a=end-of-candidates\r\n"))}));var s=new e.RTCSessionDescription({type:"offer",sdp:a});return Promise.resolve(s)},i.prototype.createAnswer=function(){var n=this;if(n._isClosed)return Promise.reject(En("InvalidStateError","Can not call createAnswer after close"));if("have-remote-offer"!==n.signalingState&&"have-local-pranswer"!==n.signalingState)return Promise.reject(En("InvalidStateError","Can not call createAnswer in signalingState "+n.signalingState));var r=In.writeSessionBoilerplate(n._sdpSessionId,n._sdpSessionVersion++);n.usingBundle&&(r+="a=group:BUNDLE "+n.transceivers.map((function(e){return e.mid})).join(" ")+"\r\n"),r+="a=ice-options:trickle\r\n";var i=In.getMediaSections(n._remoteDescription.sdp).length;n.transceivers.forEach((function(e,o){if(!(o+1>i)){if(e.rejected)return"application"===e.kind?"DTLS/SCTP"===e.protocol?r+="m=application 0 DTLS/SCTP 5000\r\n":r+="m=application 0 "+e.protocol+" webrtc-datachannel\r\n":"audio"===e.kind?r+="m=audio 0 UDP/TLS/RTP/SAVPF 0\r\na=rtpmap:0 PCMU/8000\r\n":"video"===e.kind&&(r+="m=video 0 UDP/TLS/RTP/SAVPF 120\r\na=rtpmap:120 VP8/90000\r\n"),void(r+="c=IN IP4 0.0.0.0\r\na=inactive\r\na=mid:"+e.mid+"\r\n");var a;e.stream&&("audio"===e.kind?a=e.stream.getAudioTracks()[0]:"video"===e.kind&&(a=e.stream.getVideoTracks()[0]),a&&t>=15019&&"video"===e.kind&&!e.sendEncodingParameters[0].rtx&&(e.sendEncodingParameters[0].rtx={ssrc:e.sendEncodingParameters[0].ssrc+1}));var s=Mn(e.localCapabilities,e.remoteCapabilities);!s.codecs.filter((function(e){return"rtx"===e.name.toLowerCase()})).length&&e.sendEncodingParameters[0].rtx&&delete e.sendEncodingParameters[0].rtx,r+=Cn(e,s,"answer",e.stream,n._dtlsRole),e.rtcpParameters&&e.rtcpParameters.reducedSize&&(r+="a=rtcp-rsize\r\n")}}));var o=new e.RTCSessionDescription({type:"answer",sdp:r});return Promise.resolve(o)},i.prototype.addIceCandidate=function(e){var t,n=this;return e&&void 0===e.sdpMLineIndex&&!e.sdpMid?Promise.reject(new TypeError("sdpMLineIndex or sdpMid required")):new Promise((function(r,i){if(!n._remoteDescription)return i(En("InvalidStateError","Can not add ICE candidate without a remote description"));if(e&&""!==e.candidate){var o=e.sdpMLineIndex;if(e.sdpMid)for(var a=0;a<n.transceivers.length;a++)if(n.transceivers[a].mid===e.sdpMid){o=a;break}var s=n.transceivers[o];if(!s)return i(En("OperationError","Can not add ICE candidate"));if(s.rejected)return r();var c=Object.keys(e.candidate).length>0?In.parseCandidate(e.candidate):{};if("tcp"===c.protocol&&(0===c.port||9===c.port))return r();if(c.component&&1!==c.component)return r();if((0===o||o>0&&s.iceTransport!==n.transceivers[0].iceTransport)&&!kn(s.iceTransport,c))return i(En("OperationError","Can not add ICE candidate"));var u=e.candidate.trim();0===u.indexOf("a=")&&(u=u.substr(2)),(t=In.getMediaSections(n._remoteDescription.sdp))[o]+="a="+(c.type?u:"end-of-candidates")+"\r\n",n._remoteDescription.sdp=In.getDescription(n._remoteDescription.sdp)+t.join("")}else for(var l=0;l<n.transceivers.length&&(n.transceivers[l].rejected||(n.transceivers[l].iceTransport.addRemoteCandidate({}),(t=In.getMediaSections(n._remoteDescription.sdp))[l]+="a=end-of-candidates\r\n",n._remoteDescription.sdp=In.getDescription(n._remoteDescription.sdp)+t.join(""),!n.usingBundle));l++);r()}))},i.prototype.getStats=function(t){if(t&&t instanceof e.MediaStreamTrack){var n=null;if(this.transceivers.forEach((function(e){e.rtpSender&&e.rtpSender.track===t?n=e.rtpSender:e.rtpReceiver&&e.rtpReceiver.track===t&&(n=e.rtpReceiver)})),!n)throw En("InvalidAccessError","Invalid selector.");return n.getStats()}var r=[];return this.transceivers.forEach((function(e){["rtpSender","rtpReceiver","iceGatherer","iceTransport","dtlsTransport"].forEach((function(t){e[t]&&r.push(e[t].getStats())}))})),Promise.all(r).then((function(e){var t=new Map;return e.forEach((function(e){e.forEach((function(e){t.set(e.id,e)}))})),t}))},["RTCRtpSender","RTCRtpReceiver","RTCIceGatherer","RTCIceTransport","RTCDtlsTransport"].forEach((function(t){var n=e[t];if(n&&n.prototype&&n.prototype.getStats){var r=n.prototype.getStats;n.prototype.getStats=function(){return r.apply(this).then((function(e){var t=new Map;return Object.keys(e).forEach((function(n){var r;e[n].type={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"}[(r=e[n]).type]||r.type,t.set(n,e[n])})),t}))}}}));var o=["createOffer","createAnswer"];return o.forEach((function(e){var t=i.prototype[e];i.prototype[e]=function(){var e=arguments;return"function"==typeof e[0]||"function"==typeof e[1]?t.apply(this,[arguments[2]]).then((function(t){"function"==typeof e[0]&&e[0].apply(null,[t])}),(function(t){"function"==typeof e[1]&&e[1].apply(null,[t])})):t.apply(this,arguments)}})),(o=["setLocalDescription","setRemoteDescription","addIceCandidate"]).forEach((function(e){var t=i.prototype[e];i.prototype[e]=function(){var e=arguments;return"function"==typeof e[1]||"function"==typeof e[2]?t.apply(this,arguments).then((function(){"function"==typeof e[1]&&e[1].apply(null)}),(function(t){"function"==typeof e[2]&&e[2].apply(null,[t])})):t.apply(this,arguments)}})),["getStats"].forEach((function(e){var t=i.prototype[e];i.prototype[e]=function(){var e=arguments;return"function"==typeof e[1]?t.apply(this,arguments).then((function(){"function"==typeof e[1]&&e[1].apply(null)})):t.apply(this,arguments)}})),i};function Dn(e){const t=e&&e.navigator,n=t.mediaDevices.getUserMedia.bind(t.mediaDevices);t.mediaDevices.getUserMedia=function(e){return n(e).catch(e=>Promise.reject(function(e){return{name:{PermissionDeniedError:"NotAllowedError"}[e.name]||e.name,message:e.message,constraint:e.constraint,toString(){return this.name}}}(e)))}}function On(e){"getDisplayMedia"in e.navigator&&e.navigator.mediaDevices&&(e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||(e.navigator.mediaDevices.getDisplayMedia=e.navigator.getDisplayMedia.bind(e.navigator)))}function Rn(e,t){if(e.RTCIceGatherer&&(e.RTCIceCandidate||(e.RTCIceCandidate=function(e){return e}),e.RTCSessionDescription||(e.RTCSessionDescription=function(e){return e}),t.version<15025)){const t=Object.getOwnPropertyDescriptor(e.MediaStreamTrack.prototype,"enabled");Object.defineProperty(e.MediaStreamTrack.prototype,"enabled",{set(e){t.set.call(this,e);const n=new Event("enabled");n.enabled=e,this.dispatchEvent(n)}})}e.RTCRtpSender&&!("dtmf"in e.RTCRtpSender.prototype)&&Object.defineProperty(e.RTCRtpSender.prototype,"dtmf",{get(){return void 0===this._dtmf&&("audio"===this.track.kind?this._dtmf=new e.RTCDtmfSender(this):"video"===this.track.kind&&(this._dtmf=null)),this._dtmf}}),e.RTCDtmfSender&&!e.RTCDTMFSender&&(e.RTCDTMFSender=e.RTCDtmfSender);const n=An(e,t.version);e.RTCPeerConnection=function(e){return e&&e.iceServers&&(e.iceServers=function(e,t){let n=!1;return(e=JSON.parse(JSON.stringify(e))).filter(e=>{if(e&&(e.urls||e.url)){let t=e.urls||e.url;e.url&&!e.urls&&cn("RTCIceServer.url","RTCIceServer.urls");const r="string"==typeof t;return r&&(t=[t]),t=t.filter(e=>{if(0===e.indexOf("stun:"))return!1;const t=e.startsWith("turn")&&!e.startsWith("turn:[")&&e.includes("transport=udp");return t&&!n?(n=!0,!0):t&&!n}),delete e.url,e.urls=r?t[0]:t,!!t.length}})}(e.iceServers,t.version),sn("ICE servers after filtering:",e.iceServers)),new n(e)},e.RTCPeerConnection.prototype=n.prototype}function Ln(e){e.RTCRtpSender&&!("replaceTrack"in e.RTCRtpSender.prototype)&&(e.RTCRtpSender.prototype.replaceTrack=e.RTCRtpSender.prototype.setTrack)}var Pn=Object.freeze({__proto__:null,shimPeerConnection:Rn,shimReplaceTrack:Ln,shimGetUserMedia:Dn,shimGetDisplayMedia:On});function Nn(e,t){const n=e&&e.navigator,r=e&&e.MediaStreamTrack;if(n.getUserMedia=function(e,t,r){cn("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),n.mediaDevices.getUserMedia(e).then(t,r)},!(t.version>55&&"autoGainControl"in n.mediaDevices.getSupportedConstraints())){const e=function(e,t,n){t in e&&!(n in e)&&(e[n]=e[t],delete e[t])},t=n.mediaDevices.getUserMedia.bind(n.mediaDevices);if(n.mediaDevices.getUserMedia=function(n){return"object"==typeof n&&"object"==typeof n.audio&&(n=JSON.parse(JSON.stringify(n)),e(n.audio,"autoGainControl","mozAutoGainControl"),e(n.audio,"noiseSuppression","mozNoiseSuppression")),t(n)},r&&r.prototype.getSettings){const t=r.prototype.getSettings;r.prototype.getSettings=function(){const n=t.apply(this,arguments);return e(n,"mozAutoGainControl","autoGainControl"),e(n,"mozNoiseSuppression","noiseSuppression"),n}}if(r&&r.prototype.applyConstraints){const t=r.prototype.applyConstraints;r.prototype.applyConstraints=function(n){return"audio"===this.kind&&"object"==typeof n&&(n=JSON.parse(JSON.stringify(n)),e(n,"autoGainControl","mozAutoGainControl"),e(n,"noiseSuppression","mozNoiseSuppression")),t.apply(this,[n])}}}}function Un(e){"object"==typeof e&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function Fn(e,t){if("object"!=typeof e||!e.RTCPeerConnection&&!e.mozRTCPeerConnection)return;!e.RTCPeerConnection&&e.mozRTCPeerConnection&&(e.RTCPeerConnection=e.mozRTCPeerConnection),t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach((function(t){const n=e.RTCPeerConnection.prototype[t],r={[t](){return arguments[0]=new("addIceCandidate"===t?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),n.apply(this,arguments)}};e.RTCPeerConnection.prototype[t]=r[t]}));const n={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},r=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){const[e,i,o]=arguments;return r.apply(this,[e||null]).then(e=>{if(t.version<53&&!i)try{e.forEach(e=>{e.type=n[e.type]||e.type})}catch(r){if("TypeError"!==r.name)throw r;e.forEach((t,r)=>{e.set(r,Object.assign({},t,{type:n[t.type]||t.type}))})}return e}).then(i,o)}}function Gn(e){if("object"!=typeof e||!e.RTCPeerConnection||!e.RTCRtpSender)return;if(e.RTCRtpSender&&"getStats"in e.RTCRtpSender.prototype)return;const t=e.RTCPeerConnection.prototype.getSenders;t&&(e.RTCPeerConnection.prototype.getSenders=function(){const e=t.apply(this,[]);return e.forEach(e=>e._pc=this),e});const n=e.RTCPeerConnection.prototype.addTrack;n&&(e.RTCPeerConnection.prototype.addTrack=function(){const e=n.apply(this,arguments);return e._pc=this,e}),e.RTCRtpSender.prototype.getStats=function(){return this.track?this._pc.getStats(this.track):Promise.resolve(new Map)}}function Vn(e){if("object"!=typeof e||!e.RTCPeerConnection||!e.RTCRtpSender)return;if(e.RTCRtpSender&&"getStats"in e.RTCRtpReceiver.prototype)return;const t=e.RTCPeerConnection.prototype.getReceivers;t&&(e.RTCPeerConnection.prototype.getReceivers=function(){const e=t.apply(this,[]);return e.forEach(e=>e._pc=this),e}),rn(e,"track",e=>(e.receiver._pc=e.srcElement,e)),e.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}}function jn(e){e.RTCPeerConnection&&!("removeStream"in e.RTCPeerConnection.prototype)&&(e.RTCPeerConnection.prototype.removeStream=function(e){cn("removeStream","removeTrack"),this.getSenders().forEach(t=>{t.track&&e.getTracks().includes(t.track)&&this.removeTrack(t)})})}function Bn(e){e.DataChannel&&!e.RTCDataChannel&&(e.RTCDataChannel=e.DataChannel)}function zn(e){if("object"!=typeof e||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype.addTransceiver;t&&(e.RTCPeerConnection.prototype.addTransceiver=function(){this.setParametersPromises=[];const e=arguments[1],n=e&&"sendEncodings"in e;n&&e.sendEncodings.forEach(e=>{if("rid"in e&&!/^[a-z0-9]{0,16}$/i.test(e.rid))throw new TypeError("Invalid RID value provided.");if("scaleResolutionDownBy"in e&&!(parseFloat(e.scaleResolutionDownBy)>=1))throw new RangeError("scale_resolution_down_by must be >= 1.0");if("maxFramerate"in e&&!(parseFloat(e.maxFramerate)>=0))throw new RangeError("max_framerate must be >= 0.0")});const r=t.apply(this,arguments);if(n){const{sender:t}=r,n=t.getParameters();(!("encodings"in n)||1===n.encodings.length&&0===Object.keys(n.encodings[0]).length)&&(n.encodings=e.sendEncodings,t.sendEncodings=e.sendEncodings,this.setParametersPromises.push(t.setParameters(n).then(()=>{delete t.sendEncodings}).catch(()=>{delete t.sendEncodings})))}return r})}function Hn(e){if("object"!=typeof e||!e.RTCRtpSender)return;const t=e.RTCRtpSender.prototype.getParameters;t&&(e.RTCRtpSender.prototype.getParameters=function(){const e=t.apply(this,arguments);return"encodings"in e||(e.encodings=[].concat(this.sendEncodings||[{}])),e})}function Wn(e){if("object"!=typeof e||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>t.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):t.apply(this,arguments)}}function qn(e){if("object"!=typeof e||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype.createAnswer;e.RTCPeerConnection.prototype.createAnswer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>t.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):t.apply(this,arguments)}}var $n=Object.freeze({__proto__:null,shimOnTrack:Un,shimPeerConnection:Fn,shimSenderGetStats:Gn,shimReceiverGetStats:Vn,shimRemoveStream:jn,shimRTCDataChannel:Bn,shimAddTransceiver:zn,shimGetParameters:Hn,shimCreateOffer:Wn,shimCreateAnswer:qn,shimGetUserMedia:Nn,shimGetDisplayMedia:function(e,t){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||e.navigator.mediaDevices&&(e.navigator.mediaDevices.getDisplayMedia=function(n){if(!n||!n.video){const e=new DOMException("getDisplayMedia without video constraints is undefined");return e.name="NotFoundError",e.code=8,Promise.reject(e)}return!0===n.video?n.video={mediaSource:t}:n.video.mediaSource=t,e.navigator.mediaDevices.getUserMedia(n)})}});function Kn(e){if("object"==typeof e&&e.RTCPeerConnection){if("getLocalStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||(this._localStreams=[]),this._localStreams}),!("addStream"in e.RTCPeerConnection.prototype)){const t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addStream=function(e){this._localStreams||(this._localStreams=[]),this._localStreams.includes(e)||this._localStreams.push(e),e.getAudioTracks().forEach(n=>t.call(this,n,e)),e.getVideoTracks().forEach(n=>t.call(this,n,e))},e.RTCPeerConnection.prototype.addTrack=function(e,...n){return n&&n.forEach(e=>{this._localStreams?this._localStreams.includes(e)||this._localStreams.push(e):this._localStreams=[e]}),t.apply(this,arguments)}}"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(e){this._localStreams||(this._localStreams=[]);const t=this._localStreams.indexOf(e);if(-1===t)return;this._localStreams.splice(t,1);const n=e.getTracks();this.getSenders().forEach(e=>{n.includes(e.track)&&this.removeTrack(e)})})}}function Yn(e){if("object"==typeof e&&e.RTCPeerConnection&&("getRemoteStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getRemoteStreams=function(){return this._remoteStreams?this._remoteStreams:[]}),!("onaddstream"in e.RTCPeerConnection.prototype))){Object.defineProperty(e.RTCPeerConnection.prototype,"onaddstream",{get(){return this._onaddstream},set(e){this._onaddstream&&(this.removeEventListener("addstream",this._onaddstream),this.removeEventListener("track",this._onaddstreampoly)),this.addEventListener("addstream",this._onaddstream=e),this.addEventListener("track",this._onaddstreampoly=e=>{e.streams.forEach(e=>{if(this._remoteStreams||(this._remoteStreams=[]),this._remoteStreams.includes(e))return;this._remoteStreams.push(e);const t=new Event("addstream");t.stream=e,this.dispatchEvent(t)})})}});const t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){const e=this;return this._onaddstreampoly||this.addEventListener("track",this._onaddstreampoly=function(t){t.streams.forEach(t=>{if(e._remoteStreams||(e._remoteStreams=[]),e._remoteStreams.indexOf(t)>=0)return;e._remoteStreams.push(t);const n=new Event("addstream");n.stream=t,e.dispatchEvent(n)})}),t.apply(e,arguments)}}}function Jn(e){if("object"!=typeof e||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype,n=t.createOffer,r=t.createAnswer,i=t.setLocalDescription,o=t.setRemoteDescription,a=t.addIceCandidate;t.createOffer=function(e,t){const r=arguments.length>=2?arguments[2]:arguments[0],i=n.apply(this,[r]);return t?(i.then(e,t),Promise.resolve()):i},t.createAnswer=function(e,t){const n=arguments.length>=2?arguments[2]:arguments[0],i=r.apply(this,[n]);return t?(i.then(e,t),Promise.resolve()):i};let s=function(e,t,n){const r=i.apply(this,[e]);return n?(r.then(t,n),Promise.resolve()):r};t.setLocalDescription=s,s=function(e,t,n){const r=o.apply(this,[e]);return n?(r.then(t,n),Promise.resolve()):r},t.setRemoteDescription=s,s=function(e,t,n){const r=a.apply(this,[e]);return n?(r.then(t,n),Promise.resolve()):r},t.addIceCandidate=s}function Xn(e){const t=e&&e.navigator;if(t.mediaDevices&&t.mediaDevices.getUserMedia){const e=t.mediaDevices,n=e.getUserMedia.bind(e);t.mediaDevices.getUserMedia=e=>n(Zn(e))}!t.getUserMedia&&t.mediaDevices&&t.mediaDevices.getUserMedia&&(t.getUserMedia=function(e,n,r){t.mediaDevices.getUserMedia(e).then(n,r)}.bind(t))}function Zn(e){return e&&void 0!==e.video?Object.assign({},e,{video:ln(e.video)}):e}function Qn(e){if(!e.RTCPeerConnection)return;const t=e.RTCPeerConnection;e.RTCPeerConnection=function(e,n){if(e&&e.iceServers){const t=[];for(let n=0;n<e.iceServers.length;n++){let r=e.iceServers[n];!r.hasOwnProperty("urls")&&r.hasOwnProperty("url")?(cn("RTCIceServer.url","RTCIceServer.urls"),r=JSON.parse(JSON.stringify(r)),r.urls=r.url,delete r.url,t.push(r)):t.push(e.iceServers[n])}e.iceServers=t}return new t(e,n)},e.RTCPeerConnection.prototype=t.prototype,"generateCertificate"in t&&Object.defineProperty(e.RTCPeerConnection,"generateCertificate",{get:()=>t.generateCertificate})}function er(e){"object"==typeof e&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function tr(e){const t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(e){if(e){void 0!==e.offerToReceiveAudio&&(e.offerToReceiveAudio=!!e.offerToReceiveAudio);const t=this.getTransceivers().find(e=>"audio"===e.receiver.track.kind);!1===e.offerToReceiveAudio&&t?"sendrecv"===t.direction?t.setDirection?t.setDirection("sendonly"):t.direction="sendonly":"recvonly"===t.direction&&(t.setDirection?t.setDirection("inactive"):t.direction="inactive"):!0!==e.offerToReceiveAudio||t||this.addTransceiver("audio"),void 0!==e.offerToReceiveVideo&&(e.offerToReceiveVideo=!!e.offerToReceiveVideo);const n=this.getTransceivers().find(e=>"video"===e.receiver.track.kind);!1===e.offerToReceiveVideo&&n?"sendrecv"===n.direction?n.setDirection?n.setDirection("sendonly"):n.direction="sendonly":"recvonly"===n.direction&&(n.setDirection?n.setDirection("inactive"):n.direction="inactive"):!0!==e.offerToReceiveVideo||n||this.addTransceiver("video")}return t.apply(this,arguments)}}function nr(e){"object"!=typeof e||e.AudioContext||(e.AudioContext=e.webkitAudioContext)}var rr=Object.freeze({__proto__:null,shimLocalStreamsAPI:Kn,shimRemoteStreamsAPI:Yn,shimCallbacksAPI:Jn,shimGetUserMedia:Xn,shimConstraints:Zn,shimRTCIceServerUrls:Qn,shimTrackEventTransceiver:er,shimCreateOfferLegacy:tr,shimAudioContext:nr});function ir(e){if(!e.RTCIceCandidate||e.RTCIceCandidate&&"foundation"in e.RTCIceCandidate.prototype)return;const t=e.RTCIceCandidate;e.RTCIceCandidate=function(e){if("object"==typeof e&&e.candidate&&0===e.candidate.indexOf("a=")&&((e=JSON.parse(JSON.stringify(e))).candidate=e.candidate.substr(2)),e.candidate&&e.candidate.length){const n=new t(e),r=In.parseCandidate(e.candidate),i=Object.assign(n,r);return i.toJSON=function(){return{candidate:i.candidate,sdpMid:i.sdpMid,sdpMLineIndex:i.sdpMLineIndex,usernameFragment:i.usernameFragment}},i}return new t(e)},e.RTCIceCandidate.prototype=t.prototype,rn(e,"icecandidate",t=>(t.candidate&&Object.defineProperty(t,"candidate",{value:new e.RTCIceCandidate(t.candidate),writable:"false"}),t))}function or(e,t){if(!e.RTCPeerConnection)return;"sctp"in e.RTCPeerConnection.prototype||Object.defineProperty(e.RTCPeerConnection.prototype,"sctp",{get(){return void 0===this._sctp?null:this._sctp}});const n=function(e){if(!e||!e.sdp)return!1;const t=In.splitSections(e.sdp);return t.shift(),t.some(e=>{const t=In.parseMLine(e);return t&&"application"===t.kind&&-1!==t.protocol.indexOf("SCTP")})},r=function(e){const t=e.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);if(null===t||t.length<2)return-1;const n=parseInt(t[1],10);return n!=n?-1:n},i=function(e){let n=65536;return"firefox"===t.browser&&(n=t.version<57?-1===e?16384:2147483637:t.version<60?57===t.version?65535:65536:2147483637),n},o=function(e,n){let r=65536;"firefox"===t.browser&&57===t.version&&(r=65535);const i=In.matchPrefix(e.sdp,"a=max-message-size:");return i.length>0?r=parseInt(i[0].substr(19),10):"firefox"===t.browser&&-1!==n&&(r=2147483637),r},a=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){if(this._sctp=null,"chrome"===t.browser&&t.version>=76){const{sdpSemantics:e}=this.getConfiguration();"plan-b"===e&&Object.defineProperty(this,"sctp",{get(){return void 0===this._sctp?null:this._sctp},enumerable:!0,configurable:!0})}if(n(arguments[0])){const e=r(arguments[0]),t=i(e),n=o(arguments[0],e);let a;a=0===t&&0===n?Number.POSITIVE_INFINITY:0===t||0===n?Math.max(t,n):Math.min(t,n);const s={};Object.defineProperty(s,"maxMessageSize",{get:()=>a}),this._sctp=s}return a.apply(this,arguments)}}function ar(e){if(!e.RTCPeerConnection||!("createDataChannel"in e.RTCPeerConnection.prototype))return;function t(e,t){const n=e.send;e.send=function(){const r=arguments[0],i=r.length||r.size||r.byteLength;if("open"===e.readyState&&t.sctp&&i>t.sctp.maxMessageSize)throw new TypeError("Message too large (can send a maximum of "+t.sctp.maxMessageSize+" bytes)");return n.apply(e,arguments)}}const n=e.RTCPeerConnection.prototype.createDataChannel;e.RTCPeerConnection.prototype.createDataChannel=function(){const e=n.apply(this,arguments);return t(e,this),e},rn(e,"datachannel",e=>(t(e.channel,e.target),e))}function sr(e){if(!e.RTCPeerConnection||"connectionState"in e.RTCPeerConnection.prototype)return;const t=e.RTCPeerConnection.prototype;Object.defineProperty(t,"connectionState",{get(){return{completed:"connected",checking:"connecting"}[this.iceConnectionState]||this.iceConnectionState},enumerable:!0,configurable:!0}),Object.defineProperty(t,"onconnectionstatechange",{get(){return this._onconnectionstatechange||null},set(e){this._onconnectionstatechange&&(this.removeEventListener("connectionstatechange",this._onconnectionstatechange),delete this._onconnectionstatechange),e&&this.addEventListener("connectionstatechange",this._onconnectionstatechange=e)},enumerable:!0,configurable:!0}),["setLocalDescription","setRemoteDescription"].forEach(e=>{const n=t[e];t[e]=function(){return this._connectionstatechangepoly||(this._connectionstatechangepoly=e=>{const t=e.target;if(t._lastConnectionState!==t.connectionState){t._lastConnectionState=t.connectionState;const n=new Event("connectionstatechange",e);t.dispatchEvent(n)}return e},this.addEventListener("iceconnectionstatechange",this._connectionstatechangepoly)),n.apply(this,arguments)}})}function cr(e,t){if(!e.RTCPeerConnection)return;if("chrome"===t.browser&&t.version>=71)return;if("safari"===t.browser&&t.version>=605)return;const n=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(t){if(t&&t.sdp&&-1!==t.sdp.indexOf("\na=extmap-allow-mixed")){const n=t.sdp.split("\n").filter(e=>"a=extmap-allow-mixed"!==e.trim()).join("\n");e.RTCSessionDescription&&t instanceof e.RTCSessionDescription?arguments[0]=new e.RTCSessionDescription({type:t.type,sdp:n}):t.sdp=n}return n.apply(this,arguments)}}function ur(e,t){if(!e.RTCPeerConnection||!e.RTCPeerConnection.prototype)return;const n=e.RTCPeerConnection.prototype.addIceCandidate;n&&0!==n.length&&(e.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?("chrome"===t.browser&&t.version<78||"firefox"===t.browser&&t.version<68||"safari"===t.browser)&&arguments[0]&&""===arguments[0].candidate?Promise.resolve():n.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())})}var lr=Object.freeze({__proto__:null,shimRTCIceCandidate:ir,shimMaxMessageSize:or,shimSendThrowTypeError:ar,shimConnectionState:sr,removeExtmapAllowMixed:cr,shimAddIceCandidateNullOrEmpty:ur});!function({window:e}={},t={shimChrome:!0,shimFirefox:!0,shimEdge:!0,shimSafari:!0}){const n=sn,r=function(e){const t={browser:null,version:null};if(void 0===e||!e.navigator)return t.browser="Not a browser.",t;const{navigator:n}=e;if(n.mozGetUserMedia)t.browser="firefox",t.version=nn(n.userAgent,/Firefox\/(\d+)\./,1);else if(n.webkitGetUserMedia||!1===e.isSecureContext&&e.webkitRTCPeerConnection&&!e.RTCIceGatherer)t.browser="chrome",t.version=nn(n.userAgent,/Chrom(e|ium)\/(\d+)\./,2);else if(n.mediaDevices&&n.userAgent.match(/Edge\/(\d+).(\d+)$/))t.browser="edge",t.version=nn(n.userAgent,/Edge\/(\d+).(\d+)$/,2);else{if(!e.RTCPeerConnection||!n.userAgent.match(/AppleWebKit\/(\d+)\./))return t.browser="Not a supported browser.",t;t.browser="safari",t.version=nn(n.userAgent,/AppleWebKit\/(\d+)\./,1),t.supportsUnifiedPlan=e.RTCRtpTransceiver&&"currentDirection"in e.RTCRtpTransceiver.prototype}return t}(e),i={browserDetails:r,commonShim:lr,extractVersion:nn,disableLog:on,disableWarnings:an};switch(r.browser){case"chrome":if(!wn||!Sn||!t.shimChrome)return n("Chrome shim is not included in this adapter release."),i;if(null===r.version)return n("Chrome shim can not determine version, not shimming."),i;n("adapter.js shimming chrome."),i.browserShim=wn,ur(e,r),fn(e,r),pn(e),Sn(e,r),gn(e),bn(e,r),mn(e),vn(e),yn(e),xn(e,r),ir(e),sr(e),or(e,r),ar(e),cr(e,r);break;case"firefox":if(!$n||!Fn||!t.shimFirefox)return n("Firefox shim is not included in this adapter release."),i;n("adapter.js shimming firefox."),i.browserShim=$n,ur(e,r),Nn(e,r),Fn(e,r),Un(e),jn(e),Gn(e),Vn(e),Bn(e),zn(e),Hn(e),Wn(e),qn(e),ir(e),sr(e),or(e,r),ar(e);break;case"edge":if(!Pn||!Rn||!t.shimEdge)return n("MS edge shim is not included in this adapter release."),i;n("adapter.js shimming edge."),i.browserShim=Pn,Dn(e),On(e),Rn(e,r),Ln(e),or(e,r),ar(e);break;case"safari":if(!rr||!t.shimSafari)return n("Safari shim is not included in this adapter release."),i;n("adapter.js shimming safari."),i.browserShim=rr,ur(e,r),Qn(e),tr(e),Jn(e),Kn(e),Yn(e),er(e),Xn(e),nr(e),ir(e),or(e,r),ar(e),cr(e,r);break;default:n("Unsupported browser!")}}({window:"undefined"==typeof window?void 0:window});var dr=[].slice,hr=/MSIE .\./.test($),fr=function(e){return function(t,n){var r=arguments.length>2,i=r?dr.call(arguments,2):void 0;return e(r?function(){(z(t)?t:Function(t)).apply(this,i)}:t,n)}};Mt({global:!0,bind:!0,forced:hr},{setTimeout:fr(A.setTimeout),setInterval:fr(A.setInterval)});var pr,gr=Object.keys||function(e){return dt(e,ht)},mr=O?Object.defineProperties:function(e,t){Te(e);for(var n,r=gr(t),i=r.length,o=0;i>o;)Ee.f(e,n=r[o++],t[n]);return e},vr=q("document","documentElement"),yr=Ge("IE_PROTO"),_r=function(){},br=function(e){return"<script>"+e+"<\/script>"},Sr=function(e){e.write(br("")),e.close();var t=e.parentWindow.Object;return e=null,t},xr=function(){try{pr=new ActiveXObject("htmlfile")}catch(i){}var e,t;xr="undefined"!=typeof document?document.domain&&pr?Sr(pr):((t=we("iframe")).style.display="none",vr.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(br("document.F=Object")),e.close(),e.F):Sr(pr);for(var n=ht.length;n--;)delete xr.prototype[ht[n]];return xr()};Ve[yr]=!0;var wr=Object.create||function(e,t){var n;return null!==e?(_r.prototype=Te(e),n=new _r,_r.prototype=null,n[yr]=e):n=xr(),void 0===t?n:mr(n,t)},Ir=ve("unscopables"),Cr=Array.prototype;null==Cr[Ir]&&Ee.f(Cr,Ir,{configurable:!0,value:wr(null)});var Mr,Tr,kr,Er=function(e){Cr[Ir][e]=!0},Ar={},Dr=!D((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Or=Ge("IE_PROTO"),Rr=Object.prototype,Lr=Dr?Object.getPrototypeOf:function(e){var t=ce(e);if(le(t,Or))return t[Or];var n=t.constructor;return z(n)&&t instanceof n?n.prototype:t instanceof Object?Rr:null},Pr=ve("iterator"),Nr=!1;[].keys&&("next"in(kr=[].keys())?(Tr=Lr(Lr(kr)))!==Object.prototype&&(Mr=Tr):Nr=!0),(null==Mr||D((function(){var e={};return Mr[Pr].call(e)!==e})))&&(Mr={}),z(Mr[Pr])||Ze(Mr,Pr,(function(){return this}));var Ur={IteratorPrototype:Mr,BUGGY_SAFARI_ITERATORS:Nr},Fr=Ee.f,Gr=ve("toStringTag"),Vr=function(e,t,n){e&&!le(e=n?e:e.prototype,Gr)&&Fr(e,Gr,{configurable:!0,value:t})},jr=Ur.IteratorPrototype,Br=function(){return this},zr=function(e,t,n){var r=t+" Iterator";return e.prototype=wr(jr,{next:N(1,n)}),Vr(e,r,!1),Ar[r]=Br,e},Hr=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(i){}return function(n,r){return Te(n),function(e){if("object"==typeof e||z(e))return e;throw TypeError("Can't set "+String(e)+" as a prototype")}(r),t?e.call(n,r):n.__proto__=r,n}}():void 0),Wr=Xe.PROPER,qr=Xe.CONFIGURABLE,$r=Ur.IteratorPrototype,Kr=Ur.BUGGY_SAFARI_ITERATORS,Yr=ve("iterator"),Jr=function(){return this},Xr=function(e,t,n,r,i,o,a){zr(n,t,r);var s,c,u,l=function(e){if(e===i&&g)return g;if(!Kr&&e in f)return f[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},d=t+" Iterator",h=!1,f=e.prototype,p=f[Yr]||f["@@iterator"]||i&&f[i],g=!Kr&&p||l(i),m="Array"==t&&f.entries||p;if(m&&(s=Lr(m.call(new e)))!==Object.prototype&&s.next&&(Lr(s)!==$r&&(Hr?Hr(s,$r):z(s[Yr])||Ze(s,Yr,Jr)),Vr(s,d,!0)),Wr&&"values"==i&&p&&"values"!==p.name&&(qr?Ae(f,"name","values"):(h=!0,g=function(){return p.call(this)})),i)if(c={values:l("values"),keys:o?g:l("keys"),entries:l("entries")},a)for(u in c)(Kr||h||!(u in f))&&Ze(f,u,c[u]);else Mt({target:t,proto:!0,forced:Kr||h},c);return f[Yr]!==g&&Ze(f,Yr,g,{name:i}),Ar[t]=g,c},Zr=$e.set,Qr=$e.getterFor("Array Iterator"),ei=Xr(Array,"Array",(function(e,t){Zr(this,{type:"Array Iterator",target:B(e),index:0,kind:t})}),(function(){var e=Qr(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");Ar.Arguments=Ar.Array,Er("keys"),Er("values"),Er("entries");var ti=pt.f,ni={}.toString,ri="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],ii={f:function(e){return ri&&"[object Window]"==ni.call(e)?function(e){try{return ti(e)}catch(n){return ri.slice()}}(e):ti(B(e))}},oi=!D((function(){return Object.isExtensible(Object.preventExtensions({}))})),ai=M((function(e){var t=Ee.f,n=!1,r=fe("meta"),i=0,o=Object.isExtensible||function(){return!0},a=function(e){t(e,r,{value:{objectID:"O"+i++,weakData:{}}})},s=e.exports={enable:function(){s.enable=function(){},n=!0;var e=pt.f,t=[].splice,i={};i[r]=1,e(i).length&&(pt.f=function(n){for(var i=e(n),o=0,a=i.length;o<a;o++)if(i[o]===r){t.call(i,o,1);break}return i},Mt({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:ii.f}))},fastKey:function(e,t){if(!H(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!le(e,r)){if(!o(e))return"F";if(!t)return"E";a(e)}return e[r].objectID},getWeakData:function(e,t){if(!le(e,r)){if(!o(e))return!0;if(!t)return!1;a(e)}return e[r].weakData},onFreeze:function(e){return oi&&n&&o(e)&&!le(e,r)&&a(e),e}};Ve[r]=!0})),si=(ai.enable,ai.fastKey,ai.getWeakData,ai.onFreeze,ve("iterator")),ci=Array.prototype,ui=ve("iterator"),li=function(e){if(null!=e)return ie(e,ui)||ie(e,"@@iterator")||Ar[Rt(e)]},di=function(e,t){var n=arguments.length<2?li(e):t;if(re(n))return Te(n.call(e));throw TypeError(String(e)+" is not iterable")},hi=function(e,t,n){var r,i;Te(e);try{if(!(r=ie(e,"return"))){if("throw"===t)throw n;return n}r=r.call(e)}catch(a){i=!0,r=a}if("throw"===t)throw n;if(i)throw r;return Te(r),n},fi=function(e,t){this.stopped=e,this.result=t},pi=function(e,t,n){var r,i,o,a,s,c,u,l,d=n&&n.that,h=!(!n||!n.AS_ENTRIES),f=!(!n||!n.IS_ITERATOR),p=!(!n||!n.INTERRUPTED),g=Tt(t,d,1+h+p),m=function(e){return r&&hi(r,"normal",e),new fi(!0,e)},v=function(e){return h?(Te(e),p?g(e[0],e[1],m):g(e[0],e[1])):p?g(e,m):g(e)};if(f)r=e;else{if(!(i=li(e)))throw TypeError(String(e)+" is not iterable");if(void 0!==(l=i)&&(Ar.Array===l||ci[si]===l)){for(o=0,a=st(e);a>o;o++)if((s=v(e[o]))&&s instanceof fi)return s;return new fi(!1)}r=di(e,i)}for(c=r.next;!(u=c.call(r)).done;){try{s=v(u.value)}catch(_){hi(r,"throw",_)}if("object"==typeof s&&s&&s instanceof fi)return s}return new fi(!1)},gi=function(e,t,n){if(e instanceof t)return e;throw TypeError("Incorrect "+(n?n+" ":"")+"invocation")},mi=ve("iterator"),vi=!1;try{var yi=0,_i={next:function(){return{done:!!yi++}},return:function(){vi=!0}};_i[mi]=function(){return this},Array.from(_i,(function(){throw 2}))}catch(zS){}var bi=function(e,t){if(!t&&!vi)return!1;var n=!1;try{var r={};r[mi]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(zS){}return n},Si=function(e,t,n){var r,i;return Hr&&z(r=t.constructor)&&r!==n&&H(i=r.prototype)&&i!==n.prototype&&Hr(e,i),e},xi=function(e,t,n){var r=-1!==e.indexOf("Map"),i=-1!==e.indexOf("Weak"),o=r?"set":"add",a=A[e],s=a&&a.prototype,c=a,u={},l=function(e){var t=s[e];Ze(s,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(i&&!H(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return i&&!H(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(i&&!H(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(It(e,!z(a)||!(i||s.forEach&&!D((function(){(new a).entries().next()})))))c=n.getConstructor(t,e,r,o),ai.enable();else if(It(e,!0)){var d=new c,h=d[o](i?{}:-0,1)!=d,f=D((function(){d.has(1)})),p=bi((function(e){new a(e)})),g=!i&&D((function(){for(var e=new a,t=5;t--;)e[o](t,t);return!e.has(-0)}));p||((c=t((function(t,n){gi(t,c,e);var i=Si(new a,t,c);return null!=n&&pi(n,i[o],{that:i,AS_ENTRIES:r}),i}))).prototype=s,s.constructor=c),(f||g)&&(l("delete"),l("has"),r&&l("get")),(g||h)&&l(o),i&&s.clear&&delete s.clear}return u[e]=c,Mt({global:!0,forced:c!=a},u),Vr(c,e),i||n.setStrong(c,e,r),c},wi=function(e,t,n){for(var r in t)Ze(e,r,t[r],n);return e},Ii=ve("species"),Ci=function(e){var t=q(e),n=Ee.f;O&&t&&!t[Ii]&&n(t,Ii,{configurable:!0,get:function(){return this}})},Mi=Ee.f,Ti=ai.fastKey,ki=$e.set,Ei=$e.getterFor,Ai={getConstructor:function(e,t,n,r){var i=e((function(e,o){gi(e,i,t),ki(e,{type:t,index:wr(null),first:void 0,last:void 0,size:0}),O||(e.size=0),null!=o&&pi(o,e[r],{that:e,AS_ENTRIES:n})})),o=Ei(t),a=function(e,t,n){var r,i,a=o(e),c=s(e,t);return c?c.value=n:(a.last=c={index:i=Ti(t,!0),key:t,value:n,previous:r=a.last,next:void 0,removed:!1},a.first||(a.first=c),r&&(r.next=c),O?a.size++:e.size++,"F"!==i&&(a.index[i]=c)),e},s=function(e,t){var n,r=o(e),i=Ti(t);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==t)return n};return wi(i.prototype,{clear:function(){for(var e=o(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,O?e.size=0:this.size=0},delete:function(e){var t=o(this),n=s(this,e);if(n){var r=n.next,i=n.previous;delete t.index[n.index],n.removed=!0,i&&(i.next=r),r&&(r.previous=i),t.first==n&&(t.first=r),t.last==n&&(t.last=i),O?t.size--:this.size--}return!!n},forEach:function(e){for(var t,n=o(this),r=Tt(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!s(this,e)}}),wi(i.prototype,n?{get:function(e){var t=s(this,e);return t&&t.value},set:function(e,t){return a(this,0===e?0:e,t)}}:{add:function(e){return a(this,e=0===e?0:e,e)}}),O&&Mi(i.prototype,"size",{get:function(){return o(this).size}}),i},setStrong:function(e,t,n){var r=t+" Iterator",i=Ei(t),o=Ei(r);Xr(e,t,(function(e,t){ki(this,{type:r,target:e,state:i(e),kind:t,last:void 0})}),(function(){for(var e=o(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),Ci(t)}},Di=(xi("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),Ai),At?{}.toString:function(){return"[object "+Rt(this)+"]"});At||Ze(Object.prototype,"toString",Di,{unsafe:!0});var Oi=function(e){if("Symbol"===Rt(e))throw TypeError("Cannot convert a Symbol value to a string");return String(e)},Ri=function(e){return function(t,n){var r,i,o=Oi(j(t)),a=tt(n),s=o.length;return a<0||a>=s?e?"":void 0:(r=o.charCodeAt(a))<55296||r>56319||a+1===s||(i=o.charCodeAt(a+1))<56320||i>57343?e?o.charAt(a):r:e?o.slice(a,a+2):i-56320+(r-55296<<10)+65536}},Li={codeAt:Ri(!1),charAt:Ri(!0)},Pi=Li.charAt,Ni=$e.set,Ui=$e.getterFor("String Iterator");Xr(String,"String",(function(e){Ni(this,{type:"String Iterator",string:Oi(e),index:0})}),(function(){var e,t=Ui(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Pi(n,r),t.index+=e.length,{value:e,done:!1})}));var Fi={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Gi=we("span").classList,Vi=Gi&&Gi.constructor&&Gi.constructor.prototype,ji=Vi===Object.prototype?void 0:Vi,Bi=ve("iterator"),zi=ve("toStringTag"),Hi=ei.values,Wi=function(e,t){if(e){if(e[Bi]!==Hi)try{Ae(e,Bi,Hi)}catch(zS){e[Bi]=Hi}if(e[zi]||Ae(e,zi,t),Fi[t])for(var n in ei)if(e[n]!==ei[n])try{Ae(e,n,ei[n])}catch(zS){e[n]=ei[n]}}};for(var qi in Fi)Wi(A[qi]&&A[qi].prototype,qi);Wi(ji,"DOMTokenList");var $i=function(e,t,n){var r=be(t);r in e?Ee.f(e,r,N(0,n)):e[r]=n},Ki=$t("splice"),Yi=Math.max,Ji=Math.min;Mt({target:"Array",proto:!0,forced:!Ki},{splice:function(e,t){var n,r,i,o,a,s,c=ce(this),u=st(c),l=it(e,u),d=arguments.length;if(0===d?n=r=0:1===d?(n=0,r=u-l):(n=d-2,r=Ji(Yi(tt(t),0),u-l)),u+n-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(i=Bt(c,r),o=0;o<r;o++)(a=l+o)in c&&$i(i,o,c[a]);if(i.length=r,n<r){for(o=l;o<u-r;o++)s=o+n,(a=o+r)in c?c[s]=c[a]:delete c[s];for(o=u;o>u-r+n;o--)delete c[o-1]}else if(n>r)for(o=u-r;o>l;o--)s=o+n-1,(a=o+r-1)in c?c[s]=c[a]:delete c[s];for(o=0;o<n;o++)c[o+l]=arguments[o+2];return c.length=u-r+n,i}});var Xi=function(e,t){var n=[][e];return!!n&&D((function(){n.call(null,t||function(){throw 1},1)}))},Zi=Wt.forEach,Qi=Xi("forEach")?[].forEach:function(e){return Zi(this,e,arguments.length>1?arguments[1]:void 0)};Mt({target:"Array",proto:!0,forced:[].forEach!=Qi},{forEach:Qi});var eo=function(e){if(e&&e.forEach!==Qi)try{Ae(e,"forEach",Qi)}catch(zS){e.forEach=Qi}};for(var to in Fi)Fi[to]&&eo(A[to]&&A[to].prototype);eo(ji);var no=[].join,ro=V!=Object,io=Xi("join",",");Mt({target:"Array",proto:!0,forced:ro||!io},{join:function(e){return no.call(B(this),void 0===e?",":e)}});var oo=ve("isConcatSpreadable"),ao=Z>=51||!D((function(){var e=[];return e[oo]=!1,e.concat()[0]!==e})),so=$t("concat"),co=function(e){if(!H(e))return!1;var t=e[oo];return void 0!==t?!!t:kt(e)};Mt({target:"Array",proto:!0,forced:!ao||!so},{concat:function(e){var t,n,r,i,o,a=ce(this),s=Bt(a,0),c=0;for(t=-1,r=arguments.length;t<r;t++)if(co(o=-1===t?a:arguments[t])){if(c+(i=st(o))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<i;n++,c++)n in o&&$i(s,c,o[n])}else{if(c>=9007199254740991)throw TypeError("Maximum allowed index exceeded");$i(s,c++,o)}return s.length=c,s}});var uo=Date.prototype,lo=uo.toString,ho=uo.getTime;"Invalid Date"!=String(new Date(NaN))&&Ze(uo,"toString",(function(){var e=ho.call(this);return e==e?lo.call(this):"Invalid Date"}));var fo=function(){var e=Te(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},po=A.RegExp,go={UNSUPPORTED_Y:D((function(){var e=po("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),BROKEN_CARET:D((function(){var e=po("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},mo=A.RegExp,vo=D((function(){var e=mo(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),yo=A.RegExp,_o=D((function(){var e=yo("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),bo=$e.get,So=RegExp.prototype.exec,xo=se("native-string-replace",String.prototype.replace),wo=So,Io=function(){var e=/a/,t=/b*/g;return So.call(e,"a"),So.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),Co=go.UNSUPPORTED_Y||go.BROKEN_CARET,Mo=void 0!==/()??/.exec("")[1];(Io||Mo||Co||vo||_o)&&(wo=function(e){var t,n,r,i,o,a,s,c=this,u=bo(c),l=Oi(e),d=u.raw;if(d)return d.lastIndex=c.lastIndex,t=wo.call(d,l),c.lastIndex=d.lastIndex,t;var h=u.groups,f=Co&&c.sticky,p=fo.call(c),g=c.source,m=0,v=l;if(f&&(-1===(p=p.replace("y","")).indexOf("g")&&(p+="g"),v=l.slice(c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==l.charAt(c.lastIndex-1))&&(g="(?: "+g+")",v=" "+v,m++),n=new RegExp("^(?:"+g+")",p)),Mo&&(n=new RegExp("^"+g+"$(?!\\s)",p)),Io&&(r=c.lastIndex),i=So.call(f?n:c,v),f?i?(i.input=i.input.slice(m),i[0]=i[0].slice(m),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:Io&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),Mo&&i&&i.length>1&&xo.call(i[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(i[o]=void 0)})),i&&h)for(i.groups=a=wr(null),o=0;o<h.length;o++)a[(s=h[o])[0]]=i[s[1]];return i});var To=wo;Mt({target:"RegExp",proto:!0,forced:/./.exec!==To},{exec:To});var ko=ve("species"),Eo=RegExp.prototype,Ao=function(e,t,n,r){var i=ve(e),o=!D((function(){var t={};return t[i]=function(){return 7},7!=""[e](t)})),a=o&&!D((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[ko]=function(){return n},n.flags="",n[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](""),!t}));if(!o||!a||n){var s=/./[i],c=t(i,""[e],(function(e,t,n,r,i){var a=t.exec;return a===To||a===Eo.exec?o&&!i?{done:!0,value:s.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}));Ze(String.prototype,e,c[0]),Ze(Eo,i,c[1])}r&&Ae(Eo[i],"sham",!0)},Do=Li.charAt,Oo=function(e,t,n){return t+(n?Do(e,t).length:1)},Ro=Math.floor,Lo="".replace,Po=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,No=/\$([$&'`]|\d{1,2})/g,Uo=function(e,t,n,r,i,o){var a=n+e.length,s=r.length,c=No;return void 0!==i&&(i=ce(i),c=Po),Lo.call(o,c,(function(o,c){var u;switch(c.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(a);case"<":u=i[c.slice(1,-1)];break;default:var l=+c;if(0===l)return o;if(l>s){var d=Ro(l/10);return 0===d?o:d<=s?void 0===r[d-1]?c.charAt(1):r[d-1]+c.charAt(1):o}u=r[l-1]}return void 0===u?"":u}))},Fo=function(e,t){var n=e.exec;if(z(n)){var r=n.call(e,t);return null!==r&&Te(r),r}if("RegExp"===F(e))return To.call(e,t);throw TypeError("RegExp#exec called on incompatible receiver")},Go=ve("replace"),Vo=Math.max,jo=Math.min,Bo="$0"==="a".replace(/./,"$0"),zo=!!/./[Go]&&""===/./[Go]("a","$0");Ao("replace",(function(e,t,n){var r=zo?"$":"$0";return[function(e,n){var r=j(this),i=null==e?void 0:ie(e,Go);return i?i.call(e,r,n):t.call(Oi(r),e,n)},function(e,i){var o=Te(this),a=Oi(e);if("string"==typeof i&&-1===i.indexOf(r)&&-1===i.indexOf("$<")){var s=n(t,o,a,i);if(s.done)return s.value}var c=z(i);c||(i=Oi(i));var u=o.global;if(u){var l=o.unicode;o.lastIndex=0}for(var d=[];;){var h=Fo(o,a);if(null===h)break;if(d.push(h),!u)break;""===Oi(h[0])&&(o.lastIndex=Oo(a,at(o.lastIndex),l))}for(var f,p="",g=0,m=0;m<d.length;m++){h=d[m];for(var v=Oi(h[0]),y=Vo(jo(tt(h.index),a.length),0),_=[],b=1;b<h.length;b++)_.push(void 0===(f=h[b])?f:String(f));var S=h.groups;if(c){var x=[v].concat(_,y,a);void 0!==S&&x.push(S);var w=Oi(i.apply(void 0,x))}else w=Uo(v,a,y,_,S,i);y>=g&&(p+=a.slice(g,y)+w,g=y+v.length)}return p+a.slice(g)}]}),!!D((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!Bo||zo);var Ho=ve("iterator"),Wo=!D((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,r){t.delete("b"),n+=r+e})),!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[Ho]||"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})),qo=q("fetch"),$o=q("Request"),Ko=$o&&$o.prototype,Yo=q("Headers"),Jo=ve("iterator"),Xo=$e.set,Zo=$e.getterFor("URLSearchParams"),Qo=$e.getterFor("URLSearchParamsIterator"),ea=/\+/g,ta=Array(4),na=function(e){return ta[e-1]||(ta[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},ra=function(e){try{return decodeURIComponent(e)}catch(zS){return e}},ia=function(e){var t=e.replace(ea," "),n=4;try{return decodeURIComponent(t)}catch(zS){for(;n;)t=t.replace(na(n--),ra);return t}},oa=/[!'()~]|%20/g,aa={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},sa=function(e){return aa[e]},ca=function(e){return encodeURIComponent(e).replace(oa,sa)},ua=function(e,t){if(t)for(var n,r,i=t.split("&"),o=0;o<i.length;)(n=i[o++]).length&&(r=n.split("="),e.push({key:ia(r.shift()),value:ia(r.join("="))}))},la=function(e){this.entries.length=0,ua(this.entries,e)},da=function(e,t){if(e<t)throw TypeError("Not enough arguments")},ha=zr((function(e,t){Xo(this,{type:"URLSearchParamsIterator",iterator:di(Zo(e).entries),kind:t})}),"Iterator",(function(){var e=Qo(this),t=e.kind,n=e.iterator.next(),r=n.value;return n.done||(n.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),n})),fa=function(){gi(this,fa,"URLSearchParams");var e,t,n,r,i,o,a,s,c,u=arguments.length>0?arguments[0]:void 0,l=this,d=[];if(Xo(l,{type:"URLSearchParams",entries:d,updateURL:function(){},updateSearchParams:la}),void 0!==u)if(H(u))if(e=li(u))for(n=(t=di(u,e)).next;!(r=n.call(t)).done;){if((a=(o=(i=di(Te(r.value))).next).call(i)).done||(s=o.call(i)).done||!o.call(i).done)throw TypeError("Expected sequence with length 2");d.push({key:Oi(a.value),value:Oi(s.value)})}else for(c in u)le(u,c)&&d.push({key:c,value:Oi(u[c])});else ua(d,"string"==typeof u?"?"===u.charAt(0)?u.slice(1):u:Oi(u))},pa=fa.prototype;if(wi(pa,{append:function(e,t){da(arguments.length,2);var n=Zo(this);n.entries.push({key:Oi(e),value:Oi(t)}),n.updateURL()},delete:function(e){da(arguments.length,1);for(var t=Zo(this),n=t.entries,r=Oi(e),i=0;i<n.length;)n[i].key===r?n.splice(i,1):i++;t.updateURL()},get:function(e){da(arguments.length,1);for(var t=Zo(this).entries,n=Oi(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){da(arguments.length,1);for(var t=Zo(this).entries,n=Oi(e),r=[],i=0;i<t.length;i++)t[i].key===n&&r.push(t[i].value);return r},has:function(e){da(arguments.length,1);for(var t=Zo(this).entries,n=Oi(e),r=0;r<t.length;)if(t[r++].key===n)return!0;return!1},set:function(e,t){da(arguments.length,1);for(var n,r=Zo(this),i=r.entries,o=!1,a=Oi(e),s=Oi(t),c=0;c<i.length;c++)(n=i[c]).key===a&&(o?i.splice(c--,1):(o=!0,n.value=s));o||i.push({key:a,value:s}),r.updateURL()},sort:function(){var e,t,n,r=Zo(this),i=r.entries,o=i.slice();for(i.length=0,n=0;n<o.length;n++){for(e=o[n],t=0;t<n;t++)if(i[t].key>e.key){i.splice(t,0,e);break}t===n&&i.push(e)}r.updateURL()},forEach:function(e){for(var t,n=Zo(this).entries,r=Tt(e,arguments.length>1?arguments[1]:void 0,3),i=0;i<n.length;)r((t=n[i++]).value,t.key,this)},keys:function(){return new ha(this,"keys")},values:function(){return new ha(this,"values")},entries:function(){return new ha(this,"entries")}},{enumerable:!0}),Ze(pa,Jo,pa.entries,{name:"entries"}),Ze(pa,"toString",(function(){for(var e,t=Zo(this).entries,n=[],r=0;r<t.length;)e=t[r++],n.push(ca(e.key)+"="+ca(e.value));return n.join("&")}),{enumerable:!0}),Vr(fa,"URLSearchParams"),Mt({global:!0,forced:!Wo},{URLSearchParams:fa}),!Wo&&z(Yo)){var ga=function(e){if(H(e)){var t,n=e.body;if("URLSearchParams"===Rt(n))return(t=e.headers?new Yo(e.headers):new Yo).has("content-type")||t.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),wr(e,{body:N(0,String(n)),headers:N(0,t)})}return e};if(z(qo)&&Mt({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return qo(e,arguments.length>1?ga(arguments[1]):{})}}),z($o)){var ma=function(e){return gi(this,ma,"Request"),new $o(e,arguments.length>1?ga(arguments[1]):{})};Ko.constructor=ma,ma.prototype=Ko,Mt({global:!0,forced:!0},{Request:ma})}}var va=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};Ao("search",(function(e,t,n){return[function(t){var n=j(this),r=null==t?void 0:ie(t,e);return r?r.call(t,n):new RegExp(t)[e](Oi(n))},function(e){var r=Te(this),i=Oi(e),o=n(t,r,i);if(o.done)return o.value;var a=r.lastIndex;va(a,0)||(r.lastIndex=0);var s=Fo(r,i);return va(r.lastIndex,a)||(r.lastIndex=a),null===s?-1:s.index}]})),(new Date).getTime();var ya=0,_a=function(){return(new Date).getTime()+ya},ba=function(){var e=new Date;return e.setTime(_a()),e.toLocaleString()};Ao("match",(function(e,t,n){return[function(t){var n=j(this),r=null==t?void 0:ie(t,e);return r?r.call(t,n):new RegExp(t)[e](Oi(n))},function(e){var r=Te(this),i=Oi(e),o=n(t,r,i);if(o.done)return o.value;if(!r.global)return Fo(r,i);var a=r.unicode;r.lastIndex=0;for(var s,c=[],u=0;null!==(s=Fo(r,i));){var l=Oi(s[0]);c[u]=l,""===l&&(r.lastIndex=Oo(i,at(r.lastIndex),a)),u++}return 0===u?null:c}]}));var Sa=ve("match"),xa=function(e){var t;return H(e)&&(void 0!==(t=e[Sa])?!!t:"RegExp"==F(e))},wa=Ee.f,Ia=pt.f,Ca=$e.enforce,Ma=ve("match"),Ta=A.RegExp,ka=Ta.prototype,Ea=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Aa=/a/g,Da=/a/g,Oa=new Ta(Aa)!==Aa,Ra=go.UNSUPPORTED_Y,La=O&&(!Oa||Ra||vo||_o||D((function(){return Da[Ma]=!1,Ta(Aa)!=Aa||Ta(Da)==Da||"/a/i"!=Ta(Aa,"i")})));if(It("RegExp",La)){for(var Pa=function(e,t){var n,r,i,o,a,s,c=this instanceof Pa,u=xa(e),l=void 0===t,d=[],h=e;if(!c&&u&&l&&e.constructor===Pa)return e;if((u||e instanceof Pa)&&(e=e.source,l&&(t="flags"in h?h.flags:fo.call(h))),e=void 0===e?"":Oi(e),t=void 0===t?"":Oi(t),h=e,vo&&"dotAll"in Aa&&(r=!!t&&t.indexOf("s")>-1)&&(t=t.replace(/s/g,"")),n=t,Ra&&"sticky"in Aa&&(i=!!t&&t.indexOf("y")>-1)&&(t=t.replace(/y/g,"")),_o&&(e=(o=function(e){for(var t,n=e.length,r=0,i="",o=[],a={},s=!1,c=!1,u=0,l="";r<=n;r++){if("\\"===(t=e.charAt(r)))t+=e.charAt(++r);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:Ea.test(e.slice(r+1))&&(r+=2,c=!0),i+=t,u++;continue;case">"===t&&c:if(""===l||le(a,l))throw new SyntaxError("Invalid capture group name");a[l]=!0,o.push([l,u]),c=!1,l="";continue}c?l+=t:i+=t}return[i,o]}(e))[0],d=o[1]),a=Si(Ta(e,t),c?this:ka,Pa),(r||i||d.length)&&(s=Ca(a),r&&(s.dotAll=!0,s.raw=Pa(function(e){for(var t,n=e.length,r=0,i="",o=!1;r<=n;r++)"\\"!==(t=e.charAt(r))?o||"."!==t?("["===t?o=!0:"]"===t&&(o=!1),i+=t):i+="[\\s\\S]":i+=t+e.charAt(++r);return i}(e),n)),i&&(s.sticky=!0),d.length&&(s.groups=d)),e!==h)try{Ae(a,"source",""===h?"(?:)":h)}catch(zS){}return a},Na=function(e){e in Pa||wa(Pa,e,{configurable:!0,get:function(){return Ta[e]},set:function(t){Ta[e]=t}})},Ua=Ia(Ta),Fa=0;Ua.length>Fa;)Na(Ua[Fa++]);ka.constructor=Pa,Pa.prototype=ka,Ze(A,"RegExp",Pa)}Ci("RegExp");var Ga=Xe.PROPER,Va=RegExp.prototype,ja=Va.toString,Ba=D((function(){return"/a/b"!=ja.call({source:"a",flags:"b"})})),za=Ga&&"toString"!=ja.name;(Ba||za)&&Ze(RegExp.prototype,"toString",(function(){var e=Te(this),t=Oi(e.source),n=e.flags;return"/"+t+"/"+Oi(void 0===n&&e instanceof RegExp&&!("flags"in Va)?fo.call(e):n)}),{unsafe:!0});var Ha=ut.indexOf,Wa=[].indexOf,qa=!!Wa&&1/[1].indexOf(1,-0)<0,$a=Xi("indexOf");Mt({target:"Array",proto:!0,forced:qa||!$a},{indexOf:function(e){return qa?Wa.apply(this,arguments)||0:Ha(this,e,arguments.length>1?arguments[1]:void 0)}});var Ka=D((function(){Lr(1)}));Mt({target:"Object",stat:!0,forced:Ka,sham:!Dr},{getPrototypeOf:function(e){return Lr(ce(e))}});var Ya=q("Reflect","apply"),Ja=Function.apply,Xa=!D((function(){Ya((function(){}))}));Mt({target:"Reflect",stat:!0,forced:Xa},{apply:function(e,t,n){return re(e),Te(n),Ya?Ya(e,t,n):Ja.call(e,t,n)}});var Za=Xe.EXISTS,Qa=Ee.f,es=Function.prototype,ts=es.toString,ns=/^\s*function ([^ (]*)/;O&&!Za&&Qa(es,"name",{configurable:!0,get:function(){try{return ts.call(this).match(ns)[1]}catch(zS){return""}}}),Mt({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}});var rs=ve("species"),is=function(e,t){var n,r=Te(e).constructor;return void 0===r||null==(n=Te(r)[rs])?t:function(e){if(Vt(e))return e;throw TypeError(ne(e)+" is not a constructor")}(n)},os=go.UNSUPPORTED_Y,as=[].push,ss=Math.min;Ao("split",(function(e,t,n){var r;return r="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 r=Oi(j(this)),i=void 0===n?4294967295:n>>>0;if(0===i)return[];if(void 0===e)return[r];if(!xa(e))return t.call(r,e,i);for(var o,a,s,c=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),l=0,d=new RegExp(e.source,u+"g");(o=To.call(d,r))&&!((a=d.lastIndex)>l&&(c.push(r.slice(l,o.index)),o.length>1&&o.index<r.length&&as.apply(c,o.slice(1)),s=o[0].length,l=a,c.length>=i));)d.lastIndex===o.index&&d.lastIndex++;return l===r.length?!s&&d.test("")||c.push(""):c.push(r.slice(l)),c.length>i?c.slice(0,i):c}:"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 i=j(this),o=null==t?void 0:ie(t,e);return o?o.call(t,i,n):r.call(Oi(i),t,n)},function(e,i){var o=Te(this),a=Oi(e),s=n(r,o,a,i,r!==t);if(s.done)return s.value;var c=is(o,RegExp),u=o.unicode,l=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(os?"g":"y"),d=new c(os?"^(?:"+o.source+")":o,l),h=void 0===i?4294967295:i>>>0;if(0===h)return[];if(0===a.length)return null===Fo(d,a)?[a]:[];for(var f=0,p=0,g=[];p<a.length;){d.lastIndex=os?0:p;var m,v=Fo(d,os?a.slice(p):a);if(null===v||(m=ss(at(d.lastIndex+(os?p:0)),a.length))===f)p=Oo(a,p,u);else{if(g.push(a.slice(f,p)),g.length===h)return g;for(var y=1;y<=v.length-1;y++)if(g.push(v[y]),g.length===h)return g;p=f=m}}return g.push(a.slice(f)),g}]}),!!D((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]})),os);var cs=1..valueOf,us=function(e){return cs.call(e)},ls="\t\n\v\f\r                 \u2028\u2029\ufeff",ds="["+ls+"]",hs=RegExp("^"+ds+ds+"*"),fs=RegExp(ds+ds+"*$"),ps=function(e){return function(t){var n=Oi(j(t));return 1&e&&(n=n.replace(hs,"")),2&e&&(n=n.replace(fs,"")),n}},gs={start:ps(1),end:ps(2),trim:ps(3)},ms=pt.f,vs=Me.f,ys=Ee.f,_s=gs.trim,bs=A.Number,Ss=bs.prototype,xs=function(e){var t=_e(e,"number");return"bigint"==typeof t?t:ws(t)},ws=function(e){var t,n,r,i,o,a,s,c,u=_e(e,"number");if(te(u))throw TypeError("Cannot convert a Symbol value to a number");if("string"==typeof u&&u.length>2)if(43===(t=(u=_s(u)).charCodeAt(0))||45===t){if(88===(n=u.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(u.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+u}for(a=(o=u.slice(2)).length,s=0;s<a;s++)if((c=o.charCodeAt(s))<48||c>i)return NaN;return parseInt(o,r)}return+u};if(It("Number",!bs(" 0o1")||!bs("0b1")||bs("+0x1"))){for(var Is,Cs=function(e){var t=arguments.length<1?0:bs(xs(e)),n=this;return n instanceof Cs&&D((function(){us(n)}))?Si(Object(t),n,Cs):t},Ms=O?ms(bs):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),Ts=0;Ms.length>Ts;Ts++)le(bs,Is=Ms[Ts])&&!le(Cs,Is)&&ys(Cs,Is,vs(bs,Is));Cs.prototype=Ss,Ss.constructor=Cs,Ze(A,"Number",Cs)}var ks,Es,As,Ds,Os=A.Promise,Rs=/(?:ipad|iphone|ipod).*applewebkit/i.test($),Ls="process"==F(A.process),Ps=A.setImmediate,Ns=A.clearImmediate,Us=A.process,Fs=A.MessageChannel,Gs=A.Dispatch,Vs=0,js={};try{ks=A.location}catch(zS){}var Bs=function(e){if(js.hasOwnProperty(e)){var t=js[e];delete js[e],t()}},zs=function(e){return function(){Bs(e)}},Hs=function(e){Bs(e.data)},Ws=function(e){A.postMessage(String(e),ks.protocol+"//"+ks.host)};Ps&&Ns||(Ps=function(e){for(var t=[],n=arguments.length,r=1;n>r;)t.push(arguments[r++]);return js[++Vs]=function(){(z(e)?e:Function(e)).apply(void 0,t)},Es(Vs),Vs},Ns=function(e){delete js[e]},Ls?Es=function(e){Us.nextTick(zs(e))}:Gs&&Gs.now?Es=function(e){Gs.now(zs(e))}:Fs&&!Rs?(Ds=(As=new Fs).port2,As.port1.onmessage=Hs,Es=Tt(Ds.postMessage,Ds,1)):A.addEventListener&&z(A.postMessage)&&!A.importScripts&&ks&&"file:"!==ks.protocol&&!D(Ws)?(Es=Ws,A.addEventListener("message",Hs,!1)):Es="onreadystatechange"in we("script")?function(e){vr.appendChild(we("script")).onreadystatechange=function(){vr.removeChild(this),Bs(e)}}:function(e){setTimeout(zs(e),0)});var qs,$s,Ks,Ys,Js,Xs,Zs,Qs,ec={set:Ps,clear:Ns},tc=/ipad|iphone|ipod/i.test($)&&void 0!==A.Pebble,nc=/web0s(?!.*chrome)/i.test($),rc=Me.f,ic=ec.set,oc=A.MutationObserver||A.WebKitMutationObserver,ac=A.document,sc=A.process,cc=A.Promise,uc=rc(A,"queueMicrotask"),lc=uc&&uc.value;lc||(qs=function(){var e,t;for(Ls&&(e=sc.domain)&&e.exit();$s;){t=$s.fn,$s=$s.next;try{t()}catch(zS){throw $s?Ys():Ks=void 0,zS}}Ks=void 0,e&&e.enter()},Rs||Ls||nc||!oc||!ac?!tc&&cc&&cc.resolve?((Zs=cc.resolve(void 0)).constructor=cc,Qs=Zs.then,Ys=function(){Qs.call(Zs,qs)}):Ys=Ls?function(){sc.nextTick(qs)}:function(){ic.call(A,qs)}:(Js=!0,Xs=ac.createTextNode(""),new oc(qs).observe(Xs,{characterData:!0}),Ys=function(){Xs.data=Js=!Js}));var dc,hc,fc,pc,gc=lc||function(e){var t={fn:e,next:void 0};Ks&&(Ks.next=t),$s||($s=t,Ys()),Ks=t},mc=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=re(t),this.reject=re(n)},vc={f:function(e){return new mc(e)}},yc=function(e){try{return{error:!1,value:e()}}catch(zS){return{error:!0,value:zS}}},_c="object"==typeof window,bc=ec.set,Sc=ve("species"),xc="Promise",wc=$e.get,Ic=$e.set,Cc=$e.getterFor(xc),Mc=Os&&Os.prototype,Tc=Os,kc=Mc,Ec=A.TypeError,Ac=A.document,Dc=A.process,Oc=vc.f,Rc=Oc,Lc=!!(Ac&&Ac.createEvent&&A.dispatchEvent),Pc=z(A.PromiseRejectionEvent),Nc=!1,Uc=It(xc,(function(){var e=Pe(Tc),t=e!==String(Tc);if(!t&&66===Z)return!0;if(Z>=51&&/native code/.test(e))return!1;var n=new Tc((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[Sc]=r,!(Nc=n.then((function(){}))instanceof r)||!t&&_c&&!Pc})),Fc=Uc||!bi((function(e){Tc.all(e).catch((function(){}))})),Gc=function(e){var t;return!(!H(e)||!z(t=e.then))&&t},Vc=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;gc((function(){for(var r=e.value,i=1==e.state,o=0;n.length>o;){var a,s,c,u=n[o++],l=i?u.ok:u.fail,d=u.resolve,h=u.reject,f=u.domain;try{l?(i||(2===e.rejection&&Hc(e),e.rejection=1),!0===l?a=r:(f&&f.enter(),a=l(r),f&&(f.exit(),c=!0)),a===u.promise?h(Ec("Promise-chain cycle")):(s=Gc(a))?s.call(a,d,h):d(a)):h(r)}catch(zS){f&&!c&&f.exit(),h(zS)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Bc(e)}))}},jc=function(e,t,n){var r,i;Lc?((r=Ac.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),A.dispatchEvent(r)):r={promise:t,reason:n},!Pc&&(i=A["on"+e])?i(r):"unhandledrejection"===e&&function(e,t){var n=A.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},Bc=function(e){bc.call(A,(function(){var t,n=e.facade,r=e.value;if(zc(e)&&(t=yc((function(){Ls?Dc.emit("unhandledRejection",r,n):jc("unhandledrejection",n,r)})),e.rejection=Ls||zc(e)?2:1,t.error))throw t.value}))},zc=function(e){return 1!==e.rejection&&!e.parent},Hc=function(e){bc.call(A,(function(){var t=e.facade;Ls?Dc.emit("rejectionHandled",t):jc("rejectionhandled",t,e.value)}))},Wc=function(e,t,n){return function(r){e(t,r,n)}},qc=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Vc(e,!0))},$c=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw Ec("Promise can't be resolved itself");var r=Gc(t);r?gc((function(){var n={done:!1};try{r.call(t,Wc($c,n,e),Wc(qc,n,e))}catch(zS){qc(n,zS,e)}})):(e.value=t,e.state=1,Vc(e,!1))}catch(zS){qc({done:!1},zS,e)}}};if(Uc&&(kc=(Tc=function(e){gi(this,Tc,xc),re(e),dc.call(this);var t=wc(this);try{e(Wc($c,t),Wc(qc,t))}catch(zS){qc(t,zS)}}).prototype,(dc=function(e){Ic(this,{type:xc,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=wi(kc,{then:function(e,t){var n=Cc(this),r=Oc(is(this,Tc));return r.ok=!z(e)||e,r.fail=z(t)&&t,r.domain=Ls?Dc.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&Vc(n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),hc=function(){var e=new dc,t=wc(e);this.promise=e,this.resolve=Wc($c,t),this.reject=Wc(qc,t)},vc.f=Oc=function(e){return e===Tc||e===fc?new hc(e):Rc(e)},z(Os)&&Mc!==Object.prototype)){pc=Mc.then,Nc||(Ze(Mc,"then",(function(e,t){var n=this;return new Tc((function(e,t){pc.call(n,e,t)})).then(e,t)}),{unsafe:!0}),Ze(Mc,"catch",kc.catch,{unsafe:!0}));try{delete Mc.constructor}catch(zS){}Hr&&Hr(Mc,kc)}Mt({global:!0,wrap:!0,forced:Uc},{Promise:Tc}),Vr(Tc,xc,!1),Ci(xc),fc=q(xc),Mt({target:xc,stat:!0,forced:Uc},{reject:function(e){var t=Oc(this);return t.reject.call(void 0,e),t.promise}}),Mt({target:xc,stat:!0,forced:Uc},{resolve:function(e){return function(e,t){if(Te(e),H(t)&&t.constructor===e)return t;var n=vc.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),Mt({target:xc,stat:!0,forced:Fc},{all:function(e){var t=this,n=Oc(t),r=n.resolve,i=n.reject,o=yc((function(){var n=re(t.resolve),o=[],a=0,s=1;pi(e,(function(e){var c=a++,u=!1;o.push(void 0),s++,n.call(t,e).then((function(e){u||(u=!0,o[c]=e,--s||r(o))}),i)})),--s||r(o)}));return o.error&&i(o.value),n.promise},race:function(e){var t=this,n=Oc(t),r=n.reject,i=yc((function(){var i=re(t.resolve);pi(e,(function(e){i.call(t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});var Kc=gs.trim,Yc=A.parseFloat,Jc=A.Symbol,Xc=Jc&&Jc.iterator,Zc=1/Yc(ls+"-0")!=-1/0||Xc&&!D((function(){Yc(Object(Xc))}))?function(e){var t=Kc(Oi(e)),n=Yc(t);return 0===n&&"-"==t.charAt(0)?-0:n}:Yc;Mt({global:!0,forced:parseFloat!=Zc},{parseFloat:Zc});var Qc,eu=window.navigator&&window.navigator.userAgent||"",tu=/AppleWebKit\/([\d.]+)/i.exec(eu),nu=(tu&&parseFloat(tu.pop()),/iPad/i.test(eu)),ru=navigator.maxTouchPoints&&navigator.maxTouchPoints>2&&/Macintosh/.test(eu),iu=/iPhone/i.test(eu)&&!nu,ou=/iPod/i.test(eu),au=iu||nu||ou||ru,su=/Android/i.test(eu),cu=(su&&function(){var e=eu.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;var t=e[1]&&parseFloat(e[1]),n=e[2]&&parseFloat(e[2]);t&&n&&parseFloat(e[1]+"."+e[2])}(),su&&/webkit/i.test(eu),/Firefox/i.test(eu)),uu=cu&&function(){var e=eu.match(/Firefox\/(\d+)/);return e&&e[1]?parseFloat(e[1]):null}(),lu=/Edge\//i.test(eu),du=lu&&function(){var e=eu.match(/Edge\/(\d+)/i);if(e&&e[1])return e[1]}(),hu=/Edg\//i.test(eu),fu=hu&&function(){var e=eu.match(/Edg\/(\d+)/);return e&&e[1]?parseFloat(e[1]):null}(),pu=/SogouMobileBrowser\//i.test(eu),gu=pu&&function(){var e=eu.match(/SogouMobileBrowser\/(\d+)/);return e&&e[1]?parseFloat(e[1]):null}(),mu=/MetaSr\s/i.test(eu),vu=mu&&function(){var e=eu.match(/MetaSr(\s\d+(\.\d+)+)/);return e&&e[1]?parseFloat(e[1]):null}(),yu=/TBS\/\d+/i.test(eu),_u=yu&&function(){var e=eu.match(/TBS\/(\d+)/i);if(e&&e[1])return e[1]}(),bu=/XWEB\/\d+/i.test(eu),Su=bu&&function(){var e=eu.match(/XWEB\/(\d+)/i);if(e&&e[1])return e[1]}(),xu=(/MSIE\s8\.0/.test(eu),/MSIE\/\d+/i.test(eu)&&function(){var e=/MSIE\s(\d+)\.\d/.exec(eu),t=e&&parseFloat(e[1]);!t&&/Trident\/7.0/i.test(eu)&&/rv:11.0/.test(eu)&&(t=11)}(),/(micromessenger|webbrowser)/i.test(eu)),wu=xu&&function(){var e=eu.match(/MicroMessenger\/(\d+)/i);if(e&&e[1])return e[1]}(),Iu=!yu&&/MQQBrowser\/\d+/i.test(eu)&&/COVC\/\d+/i.test(eu),Cu=!yu&&/MQQBrowser\/\d+/i.test(eu)&&!/COVC\/\d+/i.test(eu),Mu=(Cu||Iu)&&function(){var e=eu.match(/ MQQBrowser\/([\d.]+)/);return e&&e[1]?e[1]:null}(),Tu=!yu&&/ QQBrowser\/\d+/i.test(eu),ku=Tu&&function(){var e=eu.match(/ QQBrowser\/([\d.]+)/);return e&&e[1]?e[1]:null}(),Eu=!yu&&/QQBrowserLite\/\d+/i.test(eu),Au=Eu&&function(){var e=eu.match(/QQBrowserLite\/([\d.]+)/);return e&&e[1]?e[1]:null}(),Du=!yu&&/MQBHD\/\d+/i.test(eu),Ou=Du&&function(){var e=eu.match(/MQBHD\/([\d.]+)/);return e&&e[1]?e[1]:null}(),Ru=/Windows/i.test(eu),Lu=!au&&/MAC OS X/i.test(eu),Pu=!su&&/Linux/i.test(eu),Nu=(/MicroMessenger/i.test(eu),/UCBrowser/i.test(eu)),Uu=(/Electron/i.test(eu),/MiuiBrowser/i.test(eu)),Fu=Uu&&function(){var e=eu.match(/MiuiBrowser\/([\d.]+)/);return e&&e[1]?e[1]:null}(),Gu=/HuaweiBrowser/i.test(eu),Vu=/Huawei/i.test(eu),ju=Gu&&function(){var e=eu.match(/HuaweiBrowser\/([\d.]+)/);return e&&e[1]?e[1]:null}(),Bu=/SamsungBrowser/i.test(eu),zu=Bu&&function(){var e=eu.match(/SamsungBrowser\/([\d.]+)/);return e&&e[1]?e[1]:null}(),Hu=/HeyTapBrowser/i.test(eu),Wu=Hu&&function(){var e=eu.match(/HeyTapBrowser\/([\d.]+)/);return e&&e[1]?e[1]:null}(),qu=/VivoBrowser/i.test(eu),$u=qu&&function(){var e=eu.match(/VivoBrowser\/([\d.]+)/);return e&&e[1]?e[1]:null}(),Ku=function(){var e=eu.match(/Chrome\/(\d+)/);return e&&e[1]?Number(e[1]):null},Yu=/Chrome/i.test(eu),Ju=!lu&&!mu&&!pu&&!yu&&!bu&&!hu&&!Tu&&!Uu&&!Gu&&!Bu&&!Hu&&!qu&&/Chrome/i.test(eu),Xu=Ju&&Ku(),Zu=Ju&&function(){var e=eu.match(/Chrome\/([\d.]+)/);return e&&e[1]?e[1]:null}(),Qu=!Yu&&!Cu&&!Iu&&!Eu&&!Du&&/Safari/i.test(eu),el=Qu&&function(){var e=eu.match(/Version\/([\d.]+)/);return e&&e[1]?e[1]:null}(),tl=/Android.*(wv|.0.0.0)/.test(eu),nl="15.1"===function(){if(ru)return el;if(au){var e=eu.match(/OS (\d+)_(\d+)/i);if(e&&e[1]){var t=e[1];return e[2]&&(t+=".".concat(e[2])),t}}return null}(),rl="file:"===location.protocol||"localhost"===location.hostname||"127.0.0.1"===location.hostname,il=function(){if(sh(Qc))try{Qc=window.localStorage}catch(zS){Ip.warn(zS),Qc=!1}return Qc},ol=new Map([[cu,["Firefox",uu]],[hu,["Edg",fu]],[Ju,["Chrome",Zu]],[Qu,["Safari",el]],[yu,["TBS",_u]],[bu,["XWEB",Su]],[xu&&iu,["WeChat",wu]],[Tu,["QQ(Win)",ku]],[Cu,["QQ(Mobile)",Mu]],[Iu,["QQ(Mobile X5)",Mu]],[Eu,["QQ(Mac)",Au]],[Du,["QQ(iPad)",Ou]],[Uu,["MI",Fu]],[Gu,["HW",ju]],[Bu,["Samsung",zu]],[Hu,["OPPO",Wu]],[qu,["VIVO",$u]],[lu,["EDGE",du]],[pu,["SogouMobile",gu]],[mu,["Sogou",vu]]]);function al(){var e="unknown",t="unknown";return ol.get(!0)&&(e=ol.get(!0)[0],t=ol.get(!0)[1]),{name:e,version:t}}var sl=D((function(){gr(1)}));Mt({target:"Object",stat:!0,forced:sl},{keys:function(e){return gr(ce(e))}});var cl="canvas",ul="audio",ll="video",dl="auxiliary",hl="user",fl="environment",pl="mute",gl="unmute",ml="ended",vl="playing",yl="pause",_l="error",bl="loadeddata",Sl="audioinput",xl="videoinput",wl="detail",Il="text",Cl="main",Ml="backup",Tl="banned",kl="kick",El="user_time_out",Al="wss://trtc.rtc.qq.com",Dl="wss://webrtc.qq.com",Ol="qcloud",Rl="trtc",Ll="webrtc",Pl="",Nl=function(e){return Pl=e},Ul=1,Fl=2,Gl=20,Vl=21,jl="5Y2wZK8nANNAoVw6dSAHVjNxrD1ObBM2kBPV",Bl="224d130c-7b5c-415b-aaa2-79c2eb5a6df2",zl=2,Hl=Cl,Wl=dl,ql="DISCONNECTED",$l="CONNECTING",Kl="RECONNECTING",Yl="CONNECTED",Jl="new",Xl="connecting",Zl="failed",Ql="closed",ed="disconnected",td="connected",nd="completed",rd="join",id="delta-join",od="rejoin",ad="leave",sd="delta-leave",cd="publish",ud="delta-publish",ld="unpublish",dd="subscribe",hd="unsubscribe",fd="uplink-connection",pd="uplink-reconnection",gd="downlink-connection",md="downlink-reconnection",vd="setLocalDescription",yd="setRemoteDescription",_d="iceConnectionState",bd="stream-initialize",Sd="websocketConnectionState",xd="websocketReconnectionState",wd="update-stream",Id="recover-subscription",Cd="start-mix-transcode",Md="stop-mix-transcode",Td="player-error",kd="schedule",Ed="unsubscribe",Ad="subscribe_change",Dd={MANUAL:"manual",PRESET_LAYOUT:"preset-layout"},Od={REMOTE:"$PLACE_HOLDER_REMOTE$"},Rd={IT_AUDIO_VIDEO:0,IT_PICTURE:2,IT_CANVAS:3,IT_PURE_AUDIO:4,IT_PURE_VIDEO:5},Ld="string",Pd="number",Nd="boolean",Ud="array",Fd="object",Gd="add",Vd="remove",jd={unknown:0,wifi:1,"4g":2,"3g":3,"2g":4,wired:5},Bd=-1,zd=0,Hd=1,Wd="TRTC",qd="Client",$d="LocalStream",Kd="RemoteStream",Yd="Stream",Jd="https://web.sdk.qcloud.com/trtc/webrtc/doc",Xd="".concat(Jd,"/zh-cn/"),Zd={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,NONE:5},Qd=Object.keys(Zd),eh=["normal leave","timeout leave","kick","role change"],th=function(){return function(e){var t=window.location.search.match(new RegExp("(\\?|&)"+e+"=([^&]*)(&|$)"));return t?decodeURIComponent(t[2]):""}("trtc_env")},nh=function(){return"".concat(Pl||"https://yun.tim.qq.com","/v5/AVQualityReportSvc/C2S?sdkappid=1&cmdtype=jssdk_log")};function rh(){var e=navigator.userAgent,t=navigator.connection,n=e.match(/NetType\/\w+/)?e.match(/NetType\/\w+/)[0]:"";"3gnet"===(n=n.toLowerCase().replace("nettype/",""))&&(n="3g");var r=t&&t.type&&t.type.toLowerCase(),i=t&&t.effectiveType&&t.effectiveType.toLowerCase();"slow-2"===i&&(i="2g");var o=n||"unknown";if(r)switch(r){case"cellular":case"wimax":o=i||"unknown";break;case"wifi":o="wifi";break;case"ethernet":o="wired";break;case"none":case"other":case"unknown":o="unknown"}return o}var ih=function(e){if(!e||"object"!==r(e)||"[object Object]"!=Object.prototype.toString.call(e))return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Function.prototype.toString.call(n)===Function.prototype.toString.call(Object)};function oh(e){var t=Math.round(e/2)+1;return t>6?13e3:1e3*function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return t<=1?r:e(t-1,r,n+r)}(t)}var ah=function(e){return"function"==typeof e},sh=function(e){return void 0===e},ch=function(e){return"string"==typeof e},uh=function(e){return"number"==typeof e},lh=function(e){return"boolean"==typeof e},dh=function(e){return"array"===fh(e)},hh=function(e){return fh(e)==="MediaStreamTrack".toLowerCase()};function fh(e){return Reflect.apply(Object.prototype.toString,e,[]).replace(/^\[object\s(\w+)\]$/,"$1").toLowerCase()}function ph(e){var t={};return t.urls="turn:".concat(e.url),sh(e.username)||sh(e.credential)||(t.username=e.username,t.credential=e.credential,t.credentialType="password",sh(e.credentialType)||(t.credentialType=e.credentialType)),t}function gh(){return performance&&performance.now?Math.floor(performance.now()):Date.now()}function mh(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"big";if(!ch(e))return 0;var n=e.split(".");return"big"===t?(Number(n[0])<<24|Number(n[1])<<16|Number(n[2])<<8|Number(n[3]))>>>0:(Number(n[3])<<24|Number(n[2])<<16|Number(n[1])<<8|Number(n[0]))>>>0}var vh,yh,_h=function(){var e=navigator.language||navigator.userLanguage;return"zh"===e.substr(0,2)},bh=(vh=!1,yh=document.visibilityState,function(){document.visibilityState!==yh&&Ip.info("visibility change: ".concat(document.visibilityState)),vh||(document.addEventListener("visibilitychange",(function(){Ip.info("visibility change: "+document.visibilityState),yh=document.visibilityState})),vh=!0)}),Sh=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}},xh=Object.prototype.toString;function wh(e){return"[object Array]"===xh.call(e)}function Ih(e){return void 0===e}function Ch(e){return null!==e&&"object"==typeof e}function Mh(e){return"[object Function]"===xh.call(e)}function Th(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),wh(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}var kh={isArray:wh,isArrayBuffer:function(e){return"[object ArrayBuffer]"===xh.call(e)},isBuffer:function(e){return null!==e&&!Ih(e)&&null!==e.constructor&&!Ih(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:Ch,isUndefined:Ih,isDate:function(e){return"[object Date]"===xh.call(e)},isFile:function(e){return"[object File]"===xh.call(e)},isBlob:function(e){return"[object Blob]"===xh.call(e)},isFunction:Mh,isStream:function(e){return Ch(e)&&Mh(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:Th,merge:function e(){var t={};function n(n,r){"object"==typeof t[r]&&"object"==typeof n?t[r]=e(t[r],n):t[r]=n}for(var r=0,i=arguments.length;r<i;r++)Th(arguments[r],n);return t},deepMerge:function e(){var t={};function n(n,r){"object"==typeof t[r]&&"object"==typeof n?t[r]=e(t[r],n):t[r]="object"==typeof n?e({},n):n}for(var r=0,i=arguments.length;r<i;r++)Th(arguments[r],n);return t},extend:function(e,t,n){return Th(t,(function(t,r){e[r]=n&&"function"==typeof t?Sh(t,n):t})),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}};function Eh(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Ah=function(e,t,n){if(!t)return e;var r;if(n)r=n(t);else if(kh.isURLSearchParams(t))r=t.toString();else{var i=[];kh.forEach(t,(function(e,t){null!=e&&(kh.isArray(e)?t+="[]":e=[e],kh.forEach(e,(function(e){kh.isDate(e)?e=e.toISOString():kh.isObject(e)&&(e=JSON.stringify(e)),i.push(Eh(t)+"="+Eh(e))})))})),r=i.join("&")}if(r){var o=e.indexOf("#");-1!==o&&(e=e.slice(0,o)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e};function Dh(){this.handlers=[]}Dh.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},Dh.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},Dh.prototype.forEach=function(e){kh.forEach(this.handlers,(function(t){null!==t&&e(t)}))};var Oh=Dh,Rh=function(e,t,n){return kh.forEach(n,(function(n){e=n(e,t)})),e},Lh=function(e){return!(!e||!e.__CANCEL__)},Ph="undefined"!=typeof t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function Nh(){throw new Error("setTimeout has not been defined")}function Uh(){throw new Error("clearTimeout has not been defined")}var Fh=Nh,Gh=Uh;function Vh(e){if(Fh===setTimeout)return setTimeout(e,0);if((Fh===Nh||!Fh)&&setTimeout)return Fh=setTimeout,setTimeout(e,0);try{return Fh(e,0)}catch(n){try{return Fh.call(null,e,0)}catch(n){return Fh.call(this,e,0)}}}"function"==typeof Ph.setTimeout&&(Fh=setTimeout),"function"==typeof Ph.clearTimeout&&(Gh=clearTimeout);var jh,Bh=[],zh=!1,Hh=-1;function Wh(){zh&&jh&&(zh=!1,jh.length?Bh=jh.concat(Bh):Hh=-1,Bh.length&&qh())}function qh(){if(!zh){var e=Vh(Wh);zh=!0;for(var t=Bh.length;t;){for(jh=Bh,Bh=[];++Hh<t;)jh&&jh[Hh].run();Hh=-1,t=Bh.length}jh=null,zh=!1,function(e){if(Gh===clearTimeout)return clearTimeout(e);if((Gh===Uh||!Gh)&&clearTimeout)return Gh=clearTimeout,clearTimeout(e);try{Gh(e)}catch(t){try{return Gh.call(null,e)}catch(t){return Gh.call(this,e)}}}(e)}}function $h(e,t){this.fun=e,this.array=t}function Kh(){}$h.prototype.run=function(){this.fun.apply(null,this.array)};var Yh=Kh,Jh=Kh,Xh=Kh,Zh=Kh,Qh=Kh,ef=Kh,tf=Kh,nf=Ph.performance||{},rf=nf.now||nf.mozNow||nf.msNow||nf.oNow||nf.webkitNow||function(){return(new Date).getTime()},of=new Date,af={nextTick:function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];Bh.push(new $h(e,t)),1!==Bh.length||zh||Vh(qh)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:Yh,addListener:Jh,once:Xh,off:Zh,removeListener:Qh,removeAllListeners:ef,emit:tf,binding:function(e){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(e){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(e){var t=.001*rf.call(nf),n=Math.floor(t),r=Math.floor(t%1*1e9);return e&&(n-=e[0],(r-=e[1])<0&&(n--,r+=1e9)),[n,r]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-of)/1e3}},sf=function(e,t){kh.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))},cf=function(e,t,n,r,i){return function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,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}(new Error(e),t,n,r,i)},uf=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],lf=kh.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=r(window.location.href),function(t){var n=kh.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0},df=kh.isStandardBrowserEnv()?{write:function(e,t,n,r,i,o){var a=[];a.push(e+"="+encodeURIComponent(t)),kh.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),kh.isString(r)&&a.push("path="+r),kh.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},hf=function(e){return new Promise((function(t,n){var r=e.data,i=e.headers;kh.isFormData(r)&&delete i["Content-Type"];var o=new XMLHttpRequest;if(e.auth){var a=e.auth.username||"",s=e.auth.password||"";i.Authorization="Basic "+btoa(a+":"+s)}var c,u,l=(c=e.baseURL,u=e.url,c&&!/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(u)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(c,u):u);if(o.open(e.method.toUpperCase(),Ah(l,e.params,e.paramsSerializer),!0),o.timeout=e.timeout,o.onreadystatechange=function(){if(o&&4===o.readyState&&(0!==o.status||o.responseURL&&0===o.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in o?function(e){var t,n,r,i={};return e?(kh.forEach(e.split("\n"),(function(e){if(r=e.indexOf(":"),t=kh.trim(e.substr(0,r)).toLowerCase(),n=kh.trim(e.substr(r+1)),t){if(i[t]&&uf.indexOf(t)>=0)return;i[t]="set-cookie"===t?(i[t]?i[t]:[]).concat([n]):i[t]?i[t]+", "+n:n}})),i):i}(o.getAllResponseHeaders()):null,i={data:e.responseType&&"text"!==e.responseType?o.response:o.responseText,status:o.status,statusText:o.statusText,headers:r,config:e,request:o};!function(e,t,n){var r=n.config.validateStatus;!r||r(n.status)?e(n):t(cf("Request failed with status code "+n.status,n.config,null,n.request,n))}(t,n,i),o=null}},o.onabort=function(){o&&(n(cf("Request aborted",e,"ECONNABORTED",o)),o=null)},o.onerror=function(){n(cf("Network Error",e,null,o)),o=null},o.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(cf(t,e,"ECONNABORTED",o)),o=null},kh.isStandardBrowserEnv()){var d=df,h=(e.withCredentials||lf(l))&&e.xsrfCookieName?d.read(e.xsrfCookieName):void 0;h&&(i[e.xsrfHeaderName]=h)}if("setRequestHeader"in o&&kh.forEach(i,(function(e,t){void 0===r&&"content-type"===t.toLowerCase()?delete i[t]:o.setRequestHeader(t,e)})),kh.isUndefined(e.withCredentials)||(o.withCredentials=!!e.withCredentials),e.responseType)try{o.responseType=e.responseType}catch(p){if("json"!==e.responseType)throw p}"function"==typeof e.onDownloadProgress&&o.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&o.upload&&o.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){o&&(o.abort(),n(e),o=null)})),void 0===r&&(r=null),o.send(r)}))},ff={"Content-Type":"application/x-www-form-urlencoded"};function pf(e,t){!kh.isUndefined(e)&&kh.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var gf={adapter:function(){var e;return("undefined"!=typeof XMLHttpRequest||void 0!==af&&"[object process]"===Object.prototype.toString.call(af))&&(e=hf),e}(),transformRequest:[function(e,t){return sf(t,"Accept"),sf(t,"Content-Type"),kh.isFormData(e)||kh.isArrayBuffer(e)||kh.isBuffer(e)||kh.isStream(e)||kh.isFile(e)||kh.isBlob(e)?e:kh.isArrayBufferView(e)?e.buffer:kh.isURLSearchParams(e)?(pf(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):kh.isObject(e)?(pf(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(n){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};kh.forEach(["delete","get","head"],(function(e){gf.headers[e]={}})),kh.forEach(["post","put","patch"],(function(e){gf.headers[e]=kh.merge(ff)}));var mf=gf;function vf(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var yf=function(e){return vf(e),e.headers=e.headers||{},e.data=Rh(e.data,e.headers,e.transformRequest),e.headers=kh.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),kh.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||mf.adapter)(e).then((function(t){return vf(e),t.data=Rh(t.data,t.headers,e.transformResponse),t}),(function(t){return Lh(t)||(vf(e),t&&t.response&&(t.response.data=Rh(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))},_f=function(e,t){t=t||{};var n={},r=["url","method","params","data"],i=["headers","auth","proxy"],o=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];kh.forEach(r,(function(e){void 0!==t[e]&&(n[e]=t[e])})),kh.forEach(i,(function(r){kh.isObject(t[r])?n[r]=kh.deepMerge(e[r],t[r]):void 0!==t[r]?n[r]=t[r]:kh.isObject(e[r])?n[r]=kh.deepMerge(e[r]):void 0!==e[r]&&(n[r]=e[r])})),kh.forEach(o,(function(r){void 0!==t[r]?n[r]=t[r]:void 0!==e[r]&&(n[r]=e[r])}));var a=r.concat(i).concat(o),s=Object.keys(t).filter((function(e){return-1===a.indexOf(e)}));return kh.forEach(s,(function(r){void 0!==t[r]?n[r]=t[r]:void 0!==e[r]&&(n[r]=e[r])})),n};function bf(e){this.defaults=e,this.interceptors={request:new Oh,response:new Oh}}bf.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=_f(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[yf,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},bf.prototype.getUri=function(e){return e=_f(this.defaults,e),Ah(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},kh.forEach(["delete","get","head","options"],(function(e){bf.prototype[e]=function(t,n){return this.request(kh.merge(n||{},{method:e,url:t}))}})),kh.forEach(["post","put","patch"],(function(e){bf.prototype[e]=function(t,n,r){return this.request(kh.merge(r||{},{method:e,url:t,data:n}))}}));var Sf=bf;function xf(e){this.message=e}xf.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},xf.prototype.__CANCEL__=!0;var wf=xf;function If(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new wf(e),t(n.reason))}))}If.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},If.source=function(){var e;return{token:new If((function(t){e=t})),cancel:e}};var Cf=If;function Mf(e){var t=new Sf(e),n=Sh(Sf.prototype.request,t);return kh.extend(n,Sf.prototype,t),kh.extend(n,t),n}var Tf=Mf(mf);Tf.Axios=Sf,Tf.create=function(e){return Mf(_f(Tf.defaults,e))},Tf.Cancel=wf,Tf.CancelToken=Cf,Tf.isCancel=Lh,Tf.all=function(e){return Promise.all(e)},Tf.spread=function(e){return function(t){return e.apply(null,t)}};var kf=Tf,Ef=Tf;kf.default=Ef;var Af=kf,Df=M((function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,r,o,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new i(r,o||e,a),c=n?n+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,i=[];if(0===this._eventsCount)return i;for(r in e=this._events)t.call(e,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,o=r.length,a=new Array(o);i<o;i++)a[i]=r[i].fn;return a},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,i,o,a){var s=n?n+e:e;if(!this._events[s])return!1;var c,u,l=this._events[s],d=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),d){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,r),!0;case 4:return l.fn.call(l.context,t,r,i),!0;case 5:return l.fn.call(l.context,t,r,i,o),!0;case 6:return l.fn.call(l.context,t,r,i,o,a),!0}for(u=1,c=new Array(d-1);u<d;u++)c[u-1]=arguments[u];l.fn.apply(l.context,c)}else{var h,f=l.length;for(u=0;u<f;u++)switch(l[u].once&&this.removeListener(e,l[u].fn,void 0,!0),d){case 1:l[u].fn.call(l[u].context);break;case 2:l[u].fn.call(l[u].context,t);break;case 3:l[u].fn.call(l[u].context,t,r);break;case 4:l[u].fn.call(l[u].context,t,r,i);break;default:if(!c)for(h=1,c=new Array(d-1);h<d;h++)c[h-1]=arguments[h];l[u].fn.apply(l[u].context,c)}}return!0},s.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,i){var o=n?n+e:e;if(!this._events[o])return this;if(!t)return a(this,o),this;var s=this._events[o];if(s.fn)s.fn!==t||i&&!s.once||r&&s.context!==r||a(this,o);else{for(var c=0,u=[],l=s.length;c<l;c++)(s[c].fn!==t||i&&!s[c].once||r&&s[c].context!==r)&&u.push(s[c]);u.length?this._events[o]=1===u.length?u[0]:u:a(this,o)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&a(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s})),Of=new Df,Rf=1,Lf=2,Pf=3,Nf=4,Uf=5,Ff=20,Gf=21,Vf=22,jf=23,Bf=24,zf=27,Hf=28,Wf=29,qf=30,$f=31,Kf=100,Yf=101,Jf=102,Xf=103,Zf=110,Qf=111,ep=112,tp=113,np=114,rp=115,ip=116,op=120,ap=121,sp=122,cp=123,up=130,lp=131,dp=132,hp=133,fp=134,pp=135,gp=136,mp=137,vp=200,yp=201,_p=300,bp=301;function Sp(e){var t=e.retryFunction,n=e.settings,r=e.onError,i=e.onRetrying,a=e.context;return function(){for(var e=this,s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];var l=n.retries||5,d=0,h=-1,f=0,p=function(){var s=o(regeneratorRuntime.mark((function o(s,u){var g,m,v,y;return regeneratorRuntime.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.prev=0,g=a||e,o.next=4,t.apply(g,c);case 4:m=o.sent,d=0,s(m),o.next=14;break;case 9:o.prev=9,o.t0=o.catch(0),v=function(){clearTimeout(h),d=0,f=2,u(o.t0)},y=function(){2!==f&&d<l?(d++,f=1,ah(i)&&i(d,v),h=setTimeout((function(){h=-1,p(s,u)}),sh(n.timeout)?1e3:n.timeout)):v()},r(o.t0,y,u);case 14:case"end":return o.stop()}}),o,null,[[0,9]])})));return function(e,t){return s.apply(this,arguments)}}();return new Promise(p)}}var xp=function e(t){a(this,e),this.log=t.log,this.level=t.level,this.userId=t.userId,this.sdkAppId=t.sdkAppId,this.forAllJoinedClients=t.forAllJoinedClients,this.uploaded=!1},wp=function(){function e(t){a(this,e),this.id_=t.id,this.userId_=t.userId,this.sdkAppId_=t.sdkAppId,this.type_=t.type,this.isLocal_=!lh(t.isLocal)||t.isLocal}return c(e,[{key:"setUserId",value:function(e){this.userId_=e}},{key:"setSdkAppId",value:function(e){this.sdkAppId_=e}},{key:"log",value:function(e,t){Ip.log({log:"[".concat(this.isLocal_?"":"*").concat(this.id_,"] ").concat(this.type_?this.type_+" ":"").concat(t),level:e,forAllJoinedClients:sh(this.userId_),userId:this.userId_,sdkAppId:this.sdkAppId_})}},{key:"info",value:function(e){this.log(Zd.INFO,e)}},{key:"debug",value:function(e){this.log(Zd.DEBUG,e)}},{key:"warn",value:function(e){this.log(Zd.WARN,e)}},{key:"error",value:function(e){this.log(Zd.ERROR,e)}}]),e}(),Ip=new(function(){function e(){var t=this;a(this,e),this.clients_=[],this.queue_=[],this.timeoutId_=-1,this.logLevel_=Zd.DEBUG,this.logLevelToUpload_=Zd.INFO,this.enableUploadLog_=!0,this.isAbleToUpload_=!1,this.startUpload(),this.checkURLParam(),Of.on(qf,(function(e){var n=e.client;return t.clients_.push(n)})),Of.on($f,(function(e){e&&ih(e.config)&&Qd[e.config.logLevelToUpload]&&(t.logLevelToUpload_=e.config.logLevelToUpload)})),Of.on(Nf,this.setIsAbleToUpload,this),Of.on(Uf,this.setIsAbleToUpload,this)}var t,n;return c(e,[{key:"getIsAbleToUpload",value:function(){return this.isAbleToUpload_}},{key:"setIsAbleToUpload",value:function(){this.isAbleToUpload_=!0,Of.off(Nf,this.setIsAbleToUpload,this),Of.off(Uf,this.setIsAbleToUpload,this)}},{key:"startUpload",value:(n=o(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.upload();case 3:e.next=7;break;case 5:e.prev=5,e.t0=e.catch(0);case 7:this.timeoutId_=setTimeout((function(){return t.startUpload()}),2e3);case 8:case"end":return e.stop()}}),e,this,[[0,5]])}))),function(){return n.apply(this,arguments)})},{key:"stopUpload",value:function(){-1!==this.timeoutId_&&(clearTimeout(this.timeoutId_),this.timeoutId_=-1)}},{key:"getLogsToUpload",value:function(){var e=this,t={map:new Map,splicedQueue:[]};if(this.queue_[0].forAllJoinedClients&&0===this.clients_.length)return t;for(var n=0,r=function(){if(50===n)return"break";var r=e.queue_[n];r.forAllJoinedClients?e.clients_.forEach((function(e){if(e.getIsJoined()){var n=e.getUserId(),i=e.getSDKAppId();t.map.has(n)?t.map.get(n).logs.push(r):t.map.set(n,{userId:n,sdkAppId:i,logs:[r]})}})):t.map.has(r.userId)?t.map.get(r.userId).logs.push(r):t.map.set(r.userId,{userId:r.userId,sdkAppId:r.sdkAppId,logs:[r]})};n<this.queue_.length;n++)if("break"===r())break;return t.map.size>0&&(t.splicedQueue=this.queue_.splice(0,n)),t}},{key:"upload",value:(t=o(regeneratorRuntime.mark((function e(){var t,n,r,i,o,a,s,c,u,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==this.queue_.length&&this.isAbleToUpload_){e.next=2;break}return e.abrupt("return");case 2:if(t=this.getLogsToUpload(),n=t.map,r=t.splicedQueue,0!==n.size){e.next=5;break}return e.abrupt("return");case 5:e.prev=5,i=b(n.values()),o=0;case 8:if(!(o<i.length)){e.next=16;break}return a=i[o],s=a.userId,c=a.sdkAppId,u=a.logs,e.next=12,this.uploadLogWithRetry(JSON.stringify({timestamp:ba(),sdkAppId:String(c),userId:s,version:"4.12.0",log:u.map((function(e){return e.log})).join("\n")}));case 12:u.forEach((function(e){return e.uploaded=!0}));case 13:o++,e.next=8;break;case 16:e.next=20;break;case 18:e.prev=18,e.t0=e.catch(5);case 20:(l=r.filter((function(e){return!e.uploaded}))).length>0&&(this.queue_=l.concat(this.queue_));case 22:case"end":return e.stop()}}),e,this,[[5,18]])}))),function(){return t.apply(this,arguments)})},{key:"uploadLogWithRetry",value:function(e){return Sp({retryFunction:function(){return Af.post(nh(),e,{timeout:5e3})},settings:{retries:3,timeout:1e3},onError:function(e,t){t()}})()}},{key:"getPrefix",value:function(e){var t=new Date;return t.setTime(_a()),"[".concat(t.toTimeString().replace(/.*(\d{2}:\d{2}:\d{2}).*/,"$1"),":").concat(t.getMilliseconds(),"] <").concat(Qd[e],">")}},{key:"getLogLevel",value:function(){return this.logLevel_}},{key:"setLogLevel",value:function(e){sh(Qd[e])||(this.logLevel_=e)}},{key:"enableUploadLog",value:function(){this.enableUploadLog_=!0}},{key:"disableUploadLog",value:function(){this.enableUploadLog_=!1}},{key:"log",value:function(e){var t=e.log,n=e.level,r=e.forAllJoinedClients,i=void 0===r||r,o=e.userId,a=e.sdkAppId;if(t="".concat(this.getPrefix(n)," ").concat(t),this.enableUploadLog_&&n>=this.logLevelToUpload_&&this.queue_.push(new xp({log:t,level:n,userId:o,sdkAppId:a,forAllJoinedClients:i})),!(n<this.logLevel_))switch(n){case Zd.ERROR:console.error(t);break;case Zd.WARN:console.warn(t);break;case Zd.INFO:console.log(t);break;case Zd.DEBUG:console.debug(t)}}},{key:"debug",value:function(e){this.log({log:e,level:Zd.DEBUG})}},{key:"info",value:function(e){this.log({log:e,level:Zd.INFO})}},{key:"warn",value:function(e){this.log({log:e,level:Zd.WARN})}},{key:"error",value:function(e){this.log({log:e,level:Zd.ERROR})}},{key:"createLogger",value:function(e){return new wp(e)}},{key:"checkURLParam",value:function(){var e=new URLSearchParams(location.search).get("logLevelToUpload");Qd[e]&&(this.logLevelToUpload_=e)}}]),e}()),Cp=!0,Mp=Math.floor,Tp=Number.isInteger||function(e){return!H(e)&&isFinite(e)&&Mp(e)===e};Mt({target:"Number",stat:!0},{isInteger:Tp});var kp,Ep=function(e){if(xa(e))throw TypeError("The method doesn't accept regular expressions");return e},Ap=ve("match"),Dp=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[Ap]=!1,"/./"[e](t)}catch(i){}}return!1},Op=Me.f,Rp="".startsWith,Lp=Math.min,Pp=Dp("startsWith"),Np=!(Pp||(kp=Op(String.prototype,"startsWith"),!kp||kp.writable));Mt({target:"String",proto:!0,forced:!Np&&!Pp},{startsWith:function(e){var t=Oi(j(this));Ep(e);var n=at(Lp(arguments.length>1?arguments[1]:void 0,t.length)),r=Oi(e);return Rp?Rp.call(t,r,n):t.slice(n,n+r.length)===r}}),Mt({target:"Array",stat:!0},{isArray:kt});var Up=gs.trim,Fp=A.parseInt,Gp=A.Symbol,Vp=Gp&&Gp.iterator,jp=/^[+-]?0[Xx]/,Bp=8!==Fp(ls+"08")||22!==Fp(ls+"0x16")||Vp&&!D((function(){Fp(Object(Vp))}))?function(e,t){var n=Up(Oi(e));return Fp(n,t>>>0||(jp.test(n)?16:10))}:Fp;Mt({global:!0,forced:parseInt!=Bp},{parseInt:Bp});var zp=[].slice,Hp={},Wp=function(e,t,n){if(!(t in Hp)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";Hp[t]=Function("C,a","return new C("+r.join(",")+")")}return Hp[t](e,n)},qp=Function.bind||function(e){var t=re(this),n=zp.call(arguments,1),r=function(){var i=n.concat(zp.call(arguments));return this instanceof r?Wp(t,i.length,i):t.apply(e,i)};return H(t.prototype)&&(r.prototype=t.prototype),r};Mt({target:"Function",proto:!0},{bind:qp});var $p=Wt.findIndex,Kp=!0;"findIndex"in[]&&Array(1).findIndex((function(){Kp=!1})),Mt({target:"Array",proto:!0,forced:Kp},{findIndex:function(e){return $p(this,e,arguments.length>1?arguments[1]:void 0)}}),Er("findIndex");var Yp=P.f,Jp=function(e){return function(t){for(var n,r=B(t),i=gr(r),o=i.length,a=0,s=[];o>a;)n=i[a++],O&&!Yp.call(r,n)||s.push(e?[n,r[n]]:r[n]);return s}},Xp={entries:Jp(!0),values:Jp(!1)}.values;Mt({target:"Object",stat:!0},{values:function(e){return Xp(e)}});var Zp=ut.includes;Mt({target:"Array",proto:!0},{includes:function(e){return Zp(this,e,arguments.length>1?arguments[1]:void 0)}}),Er("includes"),Mt({target:"String",proto:!0,forced:!Dp("includes")},{includes:function(e){return!!~Oi(j(this)).indexOf(Oi(Ep(e)),arguments.length>1?arguments[1]:void 0)}});var Qp=1,eg=2,tg=3,ng=4,rg="DISCONNECTED",ig="CONNECTING",og="RECONNECTING",ag="CONNECTED",sg={CLINET_BANNED:9,CHANNEL_SETUP_RESULT:19,CHANNEL_RECONNECT_RESULT:514,JOIN_ROOM_RESULT:20,PEER_JOIN:4134,PEER_LEAVE:4135,STREAM_ADDED:16,STREAM_REMOVED:18,UPLINK_NETWORK_STATS:22,UPDATE_REMOTE_MUTE_STAT:23,PUBLISH_RESULT:4098,UNPUBLISH_RESULT:4100,SUBSCRIBE_RESULT:4102,UNSUBSCRIBE_RESULT:4104,SUBSCRIBE_CHANGE_RESULT:4106,MUTE_RESULT:4108,UPDATE_OFFER_RESULT:4128,START_PUBLISH_TENCENT_CDN_RES:1286,STOP_PUBLISH_TENCENT_CDN_RES:1288,START_PUBLISH_GIVEN_CDN_RES:777,STOP_PUBLISH_GIVEN_CDN_RES:779,START_MIX_TRANSCODE_RES:781,STOP_MIX_TRANSCODE_RES:783,USER_LIST_RES:4137,SWITCH_ROLE_RES:4110},cg=[sg.UPDATE_REMOTE_MUTE_STAT,sg.UPLINK_NETWORK_STATS,sg.USER_LIST_RES,sg.MUTE_RESULT],ug={CLINET_BANNED:"client-banned",CHANNEL_SETUP_RESULT:"channel-setup-result",CHANNEL_RECONNECT_RESULT:"channel-reconnect-result",JOIN_ROOM_RESULT:"join-room-result",PEER_JOIN:"peer-join",PEER_LEAVE:"peer-leave",STREAM_ADDED:"stream-added",STREAM_REMOVED:"stream-removed",UPLINK_NETWORK_STATS:"uplink-network-stats",UPDATE_REMOTE_MUTE_STAT:"update-remote-mute-stat",PUBLISH_RESULT:"publish-result",UNPUBLISH_RESULT:"unpublish-result",SUBSCRIBE_RESULT:"subscribe-result",SUBSCRIBE_CHANGE_RESULT:"subscribe-change-result",UNSUBSCRIBE_RESULT:"unsubscribe-result",UPDATE_OFFER_RESULT:"update-offer-result",START_PUBLISH_TENCENT_CDN_RES:"start-publish-tencent-cdn-res",STOP_PUBLISH_TENCENT_CDN_RES:"stop-publish-tencent-cdn-res",START_PUBLISH_GIVEN_CDN_RES:"start-publish-given-cdn-res",STOP_PUBLISH_GIVEN_CDN_RES:"stop-publish-given-cdn-res",START_MIX_TRANSCODE_RES:"start-mix-transcode-res",STOP_MIX_TRANSCODE_RES:"stop-mix-transcode-res",USER_LIST_RES:"user-list-res",SWITCH_ROLE_RES:"switch_role_res",MUTE_RESULT:"mute-result"},lg="publish_change",dg="join",hg="leave",fg="quality_report",pg="mute_uplink",gg="publish",mg="unpublish",vg="subscribe",yg="unsubscribe",_g="subscribe_change",bg="start_publishing",Sg="stop_publishing",xg="start_push_user_cdn",wg="stop_push_user_cdn",Ig="start_mcu_mix",Cg="stop_mcu_mix",Mg="get_user_list",Tg="change_role",kg={INVALID_PARAMETER:4096,INVALID_OPERATION:4097,NOT_SUPPORTED:4098,DEVICE_NOT_FOUND:4099,INITIALIZE_FAILED:4100,SIGNAL_CHANNEL_SETUP_FAILED:16385,SIGNAL_CHANNEL_ERROR:16386,ICE_TRANSPORT_ERROR:16387,JOIN_ROOM_FAILED:16388,CREATE_OFFER_FAILED:16389,SIGNAL_CHANNEL_RECONNECTION_FAILED:16390,UPLINK_RECONNECTION_FAILED:16391,DOWNLINK_RECONNECTION_FAILED:16392,REMOTE_STREAM_NOT_EXIST:16400,CLIENT_BANNED:16448,SERVER_TIMEOUT:16449,SUBSCRIPTION_TIMEOUT:16450,PLAY_NOT_ALLOWED:16451,DEVICE_AUTO_RECOVER_FAILED:16452,START_PUBLISH_CDN_FAILED:16453,STOP_PUBLISH_CDN_FAILED:16454,START_MIX_TRANSCODE_FAILED:16455,STOP_MIX_TRANSCODE_FAILED:16456,NOT_SUPPORTED_H264:16457,SWITCH_ROLE_FAILED:16458,API_CALL_TIMEOUT:16459,SCHEDULE_FAILED:16460,UNKNOWN:65535},Eg=function(e){l(n,e);var t=v(n);function n(e){var r,i=e.name,o=void 0===i?"RtcError":i,s=e.message,c=e.code,u=void 0===c?kg.UNKNOWN:c,l=e.extraCode,d=void 0===l?0:l,h=e.constraint;return a(this,n),(r=t.call(this,s+"".concat(h?" constraint: ".concat(h):"")+" <".concat(function(e){for(var t in kg)if(kg[t]===e)return t;return"UNKNOWN"}(u)," 0x").concat(u.toString(16),">"))).code_=u,r.extraCode_=d,r.name=o,r.message_=s,h&&(r.constraint=h),r}return c(n,[{key:"getCode",value:function(){return this.code_}},{key:"getExtraCode",value:function(){return this.extraCode_}}]),n}(g(Error)),Ag=32768,Dg=32769,Og=32770,Rg=32771,Lg=32772,Pg=32773,Ng=32774,Ug=32775,Fg=32777,Gg=32778,Vg=32779,jg=32780,Bg=32781,zg=32782,Hg=32783,Wg=32784,qg=32785,$g=32786,Kg=32787,Yg=32788,Jg=32789,Xg=32790,Zg=32791,Qg=32792,em=32793,tm=32794,nm=32795,rm=32796,im=32797,om=32798,am=32799,sm=32800,cm=32801,um=32802,lm=32803,dm=32804,hm=new Map,fm=function(e,t){var n=hm.get(e);n||(hm.set(e,[]),n=hm.get(e)),n.push(t)},pm=function(e){var t=hm.get(e),n=[];return t?(hm.delete(e),n=t.map((function(e){return{uint32_event_id:e.eventId,uint64_date:e.timestamp,str_userid:e.remoteUserId,str_event_json:e.eventDesc}}))):n=[],n},gm=Object.prototype.hasOwnProperty;function mm(e){if(null==e)return!0;if("boolean"==typeof e)return!1;if("number"==typeof e)return 0===e;if("string"==typeof e)return 0===e.length;if("function"==typeof e)return 0===e.length;if(Array.isArray(e))return 0===e.length;if(e instanceof Error)return""===e.message;if(ih(e))switch(Object.prototype.toString.call(e)){case"[object File]":case"[object Map]":case"[object Set]":return 0===e.size;case"[object Object]":for(var t in e)if(gm.call(e,t))return!1;return!0}return!1}var vm=/"/g,ym=function(e,t,n,r){var i=Oi(j(e)),o="<"+t;return""!==n&&(o+=" "+n+'="'+Oi(r).replace(vm,"&quot;")+'"'),o+">"+i+"</"+t+">"},_m=function(e){return D((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))};Mt({target:"String",proto:!0,forced:_m("link")},{link:function(e){return ym(this,"a","href",e)}});var bm="AVOID_REPEATED_CALL",Sm="INVALID_PARAMETER_REQUIRED",xm="INVALID_PARAMETER_TYPE",wm="INVALID_PARAMETER_EMPTY",Im="INVALID_PARAMETER_INSTANCE",Cm="INVALID_PARAMETER_RANGE",Mm="API_CALL_TIMEOUT",Tm="SIGNAL_CHANNEL_RECONNECTION_FAILED",km="SIGNAL_CHANNEL_SETUP_FAILED",Em="ERROR_MESSAGE",Am="SUBSCRIPTION_TIMEOUT",Dm="EXCHANGE_SDP_TIMEOUT",Om="DOWNLINK_RECONNECTION_FAILED",Rm="EXCHANGE_SDP_FAILED",Lm="UPLINK_RECONNECTION_FAILED",Pm="AUDIO",Nm="VIDEO",Um="INVALID_RECORDID",Fm="INVALID_PURE_AUDIO",Gm="INVALID_STREAMID",Vm="INVALID_USER_DEFINE_RECORDID",jm="INVALID_USER_DEFINE_PUSH_ARGS",Bm="INVALID_PROXY",zm="INVALID_JOIN",Hm="INVALID_ROOMID_STRING",Wm="INVALID_ROOMID_INTEGER",qm="INVALID_SIGNAL_CHANNEL",$m="JOIN_ROOM_TIMEOUT",Km="JOIN_ROOM_FAILED",Ym="REJOIN_ROOM_FAILED",Jm="INVALID_LEAVE",Xm="INVALID_PUBLISH",Zm="INVALID_UNPUBLISH",Qm="INVALID_AUDIENCE",ev="INVALID_INITIALIZE",tv="INVALID_DUPLICATE_PUBLISHING",nv="INVALID_REMOTE_STREAM",rv="SUBSCRIBE_FAILED",iv="INVALID_ROLE",ov="INVALID_OPERATION_SWITCH_ROLE",av="SWITCH_ROLE_TIMEOUT",sv="SWITCH_ROLE_FAILED",cv="CLIENT_BANNED",uv="INVALID_OPERATION_START_PUBLISH_CDN",lv="INVALID_OPERATION_STOP_PUBLISH_CDN",dv="INVALID_STREAM_ID",hv="START_PUBLISH_CDN_FAILED",fv="STOP_PUBLISH_CDN_FAILED",pv="START_MIX_TRANSCODE",gv="STOP_MIX_TRANSCODE",mv="INVALID_AUDIO_VOLUME",vv="ENABLE_SMALL_STREAM_PUBLISHED",yv="DISABLE_SMALL_STREAM_PUBLISHED",_v="NOT_SUPPORTED_SMALL_STREAM",bv="INVALID_SMALL_STREAM_PROFILE",Sv="INVALID_PARAMETER_REMOTE_STREAM",xv="INVALID_OPERATION_CHANGE_SMALL",wv="REMOTE_NOT_PUBLISH_SMALL_STREAM",Iv="INVALID_SWITCH_DEVICE",Cv="INVALID_SWITCH_DEVICE_PUBLISHING",Mv="INVALID_REPLACE_TRACK",Tv="INVALID_INITIALIZE_LOCAL_STREAM",kv="INVALID_ADD_TRACK_REPETITIVE",Ev="INVALID_ADD_TRACK_REMOVING",Av="INVALID_ADD_TRACK_PUBLISHING",Dv="INVALID_STREAM_INITIALIZED",Ov="INVALID_ADD_TRACK_NUMBER",Rv="INVALID_REMOVE_AUDIO_TRACK",Lv="INVALID_REMOVE_AUDIO_ADDING",Pv="INVALID_REMOVE_AUDIO_ON",Nv="INVALID_REMOVE_TRACK_PUBLISHING",Uv="INVALID_REMOVE_TRACK_NOT_PUBLISHING",Fv="INVALID_REMOVE_TRACK_NUMBER",Gv="INVALID_REMOVE_TRACK_NOT_PUBLISHED",Vv="START_MIX_TRANSCODE_FAILED",jv="STOP_MIX_TRANSCODE_FAILED",Bv="MIX_TRANSCODE_NOT_STARTED",zv="CANNOT_LESS_THAN_ZERO",Hv="MIX_PARAMS_VIDEO_FRAMERATE",Wv="MIX_PARAMS_VIDEO_GOP",qv="MIX_PARAMS_AUDIO_BITRATE",$v="MIX_PARAMS_USER_Z_ORDER",Kv="MIX_PARAMS_NOT_SELF",Yv="MIX_PARAMS_USER_STREAM",Jv="INVALID_PLAY",Xv="INVALID_ELEMENT_ID",Zv="INVALID_ELEMENT_ID_TYPE",Qv="INVALID_CREATE_STREAM_SOURCE",ey="INVALID_CREATE_STREAM_SCREEN",ty="INVALID_CREATE_STREAM_AUDIO",ny="INVALID_CREATE_STREAM_SCREEN_AUDIO",ry="NOT_SUPPORTED_HTTP",iy="NOT_SUPPORTED_WEBRTC",oy="NOT_SUPPORTED_PROFILE",ay="NOT_SUPPORTED_H264ENCODE",sy="NOT_SUPPORTED_H264DECODE",cy="NOT_SUPPORTED_REPLACE_TRACK",uy="NOT_SUPPORTED_CAPTURE",ly="MICROPHONE_NOT_FOUND",dy="CAMERA_NOT_FOUND",hy="SIGNAL_RESPONSE_FAILED",fy={AVOID_REPEATED_CALL:function(e){return"previous ".concat(e.name,"() is ongoing, please avoid repeated calls.")},INVALID_PARAMETER_REQUIRED:function(e){var t=e.key,n=e.rule,r=e.fnName,i=e.value;return"'".concat(t||n.name,"' is a required param when calling ").concat(r,"(), received: ").concat(i,".")},INVALID_PARAMETER_TYPE:function(e){var t=e.key,n=e.rule,r=e.fnName,i=e.value,o="".concat(t||n.name),a="";return a=Array.isArray(n.type)?n.type.join("|"):n.type,"'".concat(o,"' must be type of ").concat(a," when calling ").concat(r,"(), received type: ").concat(fh(i),".")},INVALID_PARAMETER_EMPTY:function(e){var t=e.key,n=e.rule,r=e.fnName,i=e.value;return"'".concat(t||n.name,"' cannot be '").concat(i,"' when calling ").concat(r,"().")},INVALID_PARAMETER_INSTANCE:function(e){var t=e.key,n=e.rule,r=e.fnName,i=e.value,o="".concat(t||n.name),a="".concat(n.instanceOf.name||n.instanceOf);return"'".concat(o,"' must be instanceof ").concat(a," when calling ").concat(r,"(), received type: ").concat(fh(i),".")},INVALID_PARAMETER_RANGE:function(e){var t=e.key,n=e.rule,r=e.fnName,i=e.value;return"'".concat(t||n.name,"' must be one of ").concat(n.values.join("|")," when calling ").concat(r,"(), received: ").concat(i,".")},API_CALL_TIMEOUT:function(e){return"".concat(e.commandDesc||e.command," timeout observed.")},SIGNAL_CHANNEL_RECONNECTION_FAILED:"signal channel reconnection failed, please check your network.",SIGNAL_CHANNEL_SETUP_FAILED:function(e){return"SignalChannel setup failure: (errorCode: ".concat(e.errorCode,", errorMsg: ").concat(e.errorMsg," }).")},ERROR_MESSAGE:function(e){var t="".concat(e.type," failed");return e.message&&(t="".concat(t,": ").concat(e.message,".")),t},SUBSCRIPTION_TIMEOUT:"remote server does not respond to the subscription.",EXCHANGE_SDP_TIMEOUT:"exchange sdp timeout.",DOWNLINK_RECONNECTION_FAILED:"downlink reconnection failed, please check your network and re-join room.",EXCHANGE_SDP_FAILED:function(e){return"exchange sdp failed ".concat(e.errMsg,".")},UPDATE_OFFER_TIMEOUT:"update offer timeout observed.",UPLINK_RECONNECTION_FAILED:"uplink reconnection failed, please check your network and publish again.",AUDIO:function(e){return e.error.toString()+" <audio>"},VIDEO:function(e){return e.error.toString()+" <video>"},INVALID_RECORDID:"recordId must be an integer number.",INVALID_PURE_AUDIO:"pureAudioPushMode must be 1 or 2.",INVALID_STREAMID:"streamId must be a sting literal within 64 bytes, and not be empty.",INVALID_USER_DEFINE_RECORDID:"userDefineRecordId must be a sting literal contains (a-zA-Z),(0-9), underline and hyphen, within 64 bytes, and not be empty.",INVALID_USER_DEFINE_PUSH_ARGS:"userDefinePushArgs must be a sting literal within 256 bytes, and not be empty.",INVALID_PROXY:'proxy server url must start with "wss://".',INVALID_JOIN:"duplicate join() called.",INVALID_ROOMID_STRING:function(e){return"'".concat(e,"' must be validate string when useStringRoomId is true.")},INVALID_ROOMID_INTEGER:function(e){return"'".concat(e,"' must be an integer between [1, 4294967294] when useStringRoomId is false.")},INVALID_SIGNAL_CHANNEL:"SignalChannel is not ready yet.",JOIN_ROOM_TIMEOUT:"join room timeout.",JOIN_ROOM_FAILED:function(e){var t=e.error,n=e.code;return"Failed to join room - ".concat(t," code: ").concat(n)},REJOIN_ROOM_FAILED:function(e){return"reJoin room: ".concat(e.roomId," failed, please check your network.")},INVALID_LEAVE:"please call leave() before destroy().",INVALID_PUBLISH:"please call join() before publish().",INVALID_UNPUBLISH:"stream has not been published yet.",INVALID_AUDIENCE:"no permission to publish() under live/".concat("audience",', please call switchRole("').concat("anchor",'") firstly before publish().'),INVALID_INITIALIZE:"cannot publish stream because stream is not initialized or is switching device.",INVALID_DUPLICATE_PUBLISHING:"duplicate publishing, please unpublish and then re-publish.",INVALID_SUBSCRIBE_UNDEFINED:"stream is undefined or null.",INVALID_SUBSCRIBE_LOCAL:"stream cannot be LocalStream.",INVALID_REMOTE_STREAM:"remoteStream does not exist because it has been unpublished by remote peer.",SUBSCRIBE_FAILED:function(e){return"failed to subscribe stream, reason: ".concat(e.message,".")},INVALID_ROLE:"switchRole can only be called in live mode.",INVALID_PARAMETER_SWITCH_ROLE:"role could only be set to a value as ".concat("anchor"," or ").concat("audience","."),INVALID_OPERATION_SWITCH_ROLE:"please call join() before switchRole().",SWITCH_ROLE_TIMEOUT:"switchRole timeout.",SWITCH_ROLE_FAILED:function(e){return"switchRole failed, errCode: ".concat(e.errCode," errMsg: ").concat(e.errMsg,".")},CLIENT_BANNED:function(e){return"client was banned because of "+e.reason+"."},INVALID_OPERATION_START_PUBLISH_CDN:"please call publish() before startPublishCDNStream().",INVALID_OPERATION_STOP_PUBLISH_CDN:"please call startPublishCDNStream() before stopPublishCDNStream().",START_PUBLISH_CDN_FAILED:function(e){return"startPublishCDNStream failed, errMsg: ".concat(e.message,".")},STOP_PUBLISH_CDN_FAILED:function(e){return"stopPublishCDNStream failed, errMsg: ".concat(e.message,".")},INVALID_STREAM_ID:function(e){return"'".concat(e,"' can only consist of uppercase and lowercase english letters (a-zA-Z), numbers (0-9), hyphens and underscores.")},START_MIX_TRANSCODE:"please call startMixTranscode() after join().",STOP_MIX_TRANSCODE:"please call stopMixTranscode() after startMixTranscode().",INVALID_AUDIO_VOLUME:"interval must be a number.",ENABLE_SMALL_STREAM_PUBLISHED:"Cannot enable small stream after localStream published.",DISABLE_SMALL_STREAM_PUBLISHED:"Cannot disable small stream after localStream published.",NOT_SUPPORTED_SMALL_STREAM:"your browser does not support opening small stream.",INVALID_SMALL_STREAM_PROFILE:"small stream profile is invalid.",INVALID_PARAMETER_REMOTE_STREAM:"remoteStream is invalid.",INVALID_OPERATION_CHANGE_SMALL:"cannot switch to the small stream without subscribing to the video of remoteStream.",REMOTE_NOT_PUBLISH_SMALL_STREAM:"remote peer does not publish small stream.",INVALID_SWITCH_DEVICE:"cannot switch device on current stream.",INVALID_SWITCH_DEVICE_PUBLISHING:"cannot switch device when publishing localStream.",INVALID_REPLACE_TRACK:"cannot replace track when publishing localStream.",INVALID_INITIALIZE_LOCAL_STREAM:"local stream has not initialized yet.",INVALID_ADD_TRACK_REPETITIVE:"previous addTrack is ongoing, please avoid repetitive execution.",INVALID_ADD_TRACK_REMOVING:"cannot add track when a track is removing.",INVALID_ADD_TRACK_PUBLISHING:"cannot add track when publishing localStream.",INVALID_STREAM_INITIALIZED:"your local stream haven't been initialized yet.",INVALID_ADD_TRACK_NUMBER:"a Stream has at most one audio track and one video track.",INVALID_REMOVE_AUDIO_TRACK:"remove audio track is not supported.",INVALID_REMOVE_AUDIO_ADDING:"cannot remove track when a track is adding.",INVALID_REMOVE_AUDIO_ON:"previous removeTrack is ongoing, please avoid repetitive execution.",INVALID_REMOVE_TRACK_PUBLISHING:"cannot remove track when publishing localStream.",INVALID_REMOVE_TRACK_NOT_PUBLISHING:"the track to be removed is not being publishing.",INVALID_REMOVE_TRACK_NUMBER:"remove the only video track is not supported, please use replaceTrack or muteVideo.",INVALID_REMOVE_TRACK_NOT_PUBLISHED:function(e){return"try to replace ".concat(e.kind," track but there's no previous ").concat(e.kind," being published.")},START_MIX_TRANSCODE_FAILED:function(e){return"startMixTranscode failed, errMsg: ".concat(e.message,".")},STOP_MIX_TRANSCODE_FAILED:function(e){return"stopMixTranscode failed, errMsg: ".concat(e.message,".")},MIX_TRANSCODE_NOT_STARTED:"mixTranscode has not been started.",CANNOT_LESS_THAN_ZERO:function(e){var t=e.key,n=e.rule,r=e.fnName;return e.value,"'".concat(t||n.name,"' cannot be less than 0 when calling ").concat(r,"().")},MIX_PARAMS_VIDEO_FRAMERATE:"'config.videoFramerate' should be an integer between 0 and 30, excluding 0.",MIX_PARAMS_VIDEO_GOP:"'config.videoGOP' should be an integer between 1 and 8.",MIX_PARAMS_AUDIO_BITRATE:"'config.audioBitrate' should be an integer between 32 and 192.",MIX_PARAMS_USER_Z_ORDER:function(e){return"'".concat(e,"' is required and must be between 1 and 15.")},MIX_PARAMS_NOT_SELF:"'config.mixUsers' must contain self.",MIX_PARAMS_USER_STREAM:"'config.videoWidth' and 'config.videoHeight' of output stream should be contain all mix stream.",INVALID_PLAY:"duplicate play() call observed, please stop() firstly.",INVALID_ELEMENT_ID:function(e){var t=e.key,n=e.fnName;return"'".concat(t,"' is not found in the document object when calling ").concat(n,"().")},INVALID_ELEMENT_ID_TYPE:function(e){var t=e.key,n=e.fnName,r=e.type;return"the element corresponding to '".concat(t,"' must be instanceof HTMLDivElement when calling ").concat(n,"(), received: ").concat(r,".")},INVALID_USERID:"userId cannot be all spaces.",INVALID_CREATE_STREAM_SOURCE:"LocalStream must be created by createStream() with either audio/video or audioSource/videoSource, but can not be mixed with audio/video and audioSource/videoSource.",INVALID_CREATE_STREAM_SCREEN:"screen/video cannot be both true.",INVALID_CREATE_STREAM_AUDIO:"audio/screenAudio cannot be both true.",INVALID_CREATE_STREAM_SCREEN_AUDIO:"when screen is true, screenAudio can be configured.",NOT_SUPPORTED_HTTP:"not supported in http protocol, please use https protocol.",NOT_SUPPORTED_WEBRTC:"your browser does NOT support WebRTC!",NOT_SUPPORTED_PROFILE:"your browser does not support setVideoProfile.",NOT_SUPPORTED_MEDIA:"your browser does not support navigator.mediaDevices.",NOT_SUPPORTED_H264ENCODE:"your device does not support H.264 encoding.",NOT_SUPPORTED_H264DECODE:"your device does not support H.264 decoding.",NOT_SUPPORTED_REPLACE_TRACK:"replaceTrack is not supported in this browser, please use switchDevice or addTrack instead.",NOT_SUPPORTED_CAPTURE:"captureScreen is not supported, please use chrome.",MICROPHONE_NOT_FOUND:"no microphone detected, please check your microphone and the configuration on TRTC.createStream.",CAMERA_NOT_FOUND:"no camera detected, please check your camera and the configuration on TRTC.createStream.",SIGNAL_RESPONSE_FAILED:function(e){return"".concat(e.signalResponse," failed, response code is ").concat(e.code," , errMsg: ").concat(e.message,".")}},py=Xd+"module-ErrorCode.html",gy=function(){if(!il())return!1;var e=localStorage.getItem("trtc_error_assistance");e&&!function(e){var t=e.saveTime&&(new Date).getTime()-e.saveTime>=6048e5,n=!e.saveVersion||"4.12.0"!==e.saveVersion;return t||n}(JSON.parse(e))||(Ip.log("request error info"),function(){var e=new XMLHttpRequest;if(e.open("GET","https://web.sdk.qcloud.com/trtc/webrtc/download/error-message/0.0.1/script.js",!1),e.send(null),4===e.readyState&&200===e.status){var t=document.createElement("script");t.type="text/javascript",t.text=e.responseText,document.body.appendChild(t),localStorage.setItem("trtc_error_assistance",JSON.stringify({message:e.responseText,saveTime:(new Date).getTime(),saveVersion:"4.12.0"})),document.body.removeChild(t)}}())};function my(e){var t=e.key,n=e.data,r=e.link,i="",o="",a="";ah(fy[t])?i=fy[t](n):ch(fy[t])&&(i=fy[t]);var s=function(){if(window.TRTC_ERROR_INFO&&window.TRTC_ERROR_LINK)return{TRTC_ERROR_INFO:window.TRTC_ERROR_INFO,TRTC_ERROR_LINK:window.TRTC_ERROR_LINK};var e=localStorage.getItem("trtc_error_assistance");if(e){e=JSON.parse(e);var t=document.createElement("script");t.type="text/javascript",t.text=e.message,document.body.appendChild(t);var n=window.TRTC_ERROR_INFO,r=window.TRTC_ERROR_LINK;return document.body.removeChild(t),{TRTC_ERROR_INFO:n,TRTC_ERROR_LINK:r}}return{}}(),c=s.TRTC_ERROR_INFO,u=s.TRTC_ERROR_LINK;c&&c[t]&&(ah(c[t])?o=c[t](n):ch(c[t])&&(o=c[t])),r?a=Xd+"".concat(r.className,".html#").concat(r.className===Wd?".":"").concat(r.fnName):u&&u[t]&&(a=Xd+u[t]);var l=i;return l+=" "+o,l+(o?a?"查看文档:"+a:"查看文档:"+py:a?"Refer to:"+a:"Refer to:"+py)}var vy=new(function(){function e(){a(this,e);var t=al(),n=t.name,r=t.version;this.roomIdMap_=new Map,this.configs_={sdkAppId:"",userId:"",version:"4.12.0",env:Ol,browserVersion:n+r,ua:navigator.userAgent}}return c(e,[{key:"setConfig",value:function(e){var t=e.sdkAppId,n=e.env,r=e.userId,i=e.roomId;t!==this.configs_.sdkAppId&&(this.configs_.sdkAppId=String(t)),this.configs_.env=n,this.configs_.userId=r,this.roomIdMap_.set(r,String(i))}},{key:"logEvent",value:function(e){if(!rl){var t=n(n(n({},e),this.configs_),{},{userId:e.userId||this.configs_.userId});sh(t.code)&&(t.code="failed"===t.result?kg.UNKNOWN:0),this.sendRequest("".concat(Pl||"https://yun.tim.qq.com","/v5/AVQualityReportSvc/C2S?sdkappid=1&cmdtype=jssdk_event"),t)}}},{key:"logSuccessEvent",value:function(e){rl||(this.logEvent(n(n({},e),{},{result:"success",roomId:this.roomIdMap_.get(e.userId)})),this.configs_.env===Ol&&this.uploadEventToKibana(n(n({},e),{},{result:"success"})))}},{key:"logFailedEvent",value:function(e){if(!rl){var t=e.eventType,r=e.code,i=e.error,o=e.userId,a={roomId:this.roomIdMap_.get(o),userId:o,eventType:t,result:"failed",code:r||(i instanceof Eg?i.getExtraCode()||i.getCode():kg.UNKNOWN)};this.logEvent(a),this.configs_.env===Ol&&this.uploadEventToKibana(n(n({},a),{},{error:i}))}}},{key:"uploadEventToKibana",value:function(e){var t="stat-".concat(e.eventType,"-").concat(e.result);"delta-join"!==e.eventType&&"delta-leave"!==e.eventType&&"delta-publish"!==e.eventType||(t="".concat(e.eventType,":").concat(e.delta)),this.uploadEvent({log:t,userId:e.userId}),"failed"===e.result&&(t="stat-".concat(e.eventType,"-").concat(e.result,"-").concat(e.code),this.uploadEvent({log:t,userId:e.userId,error:e.error}))}},{key:"uploadEvent",value:function(e){var t=e.log,n=e.userId,r=e.error,i={timestamp:ba(),sdkAppId:this.configs_.sdkAppId,userId:n||this.configs_.userId,version:this.configs_.version,log:t};r&&(i.errorInfo=r.message),this.sendRequest(nh(),i)}},{key:"sendRequest",value:function(e,t){var n=this;Ip.getIsAbleToUpload()?Af.post(e,JSON.stringify(t)).catch((function(){})):setTimeout((function(){n.sendRequest(e,t)}),1e3)}}]),e}()),yy=function(){function e(t){a(this,e),this.client_=t.client,this.sdkAppId_=t.sdkAppId,this.userId_=t.userId,this.userSig_=t.userSig,this.url_=t.url,this.backupUrl_=t.backupUrl,this.version_=t.version;var n="?sdkAppId=".concat(encodeURIComponent(this.sdkAppId_),"&userId=").concat(encodeURIComponent(this.userId_),"&userSig=").concat(encodeURIComponent(this.userSig_));this.urlWithParam_="".concat(this.url_).concat(n),this.backupUrlWithParam_="".concat(this.backupUrl_).concat(n),this.isConnected_=!1,this.isConnecting_=!1,this.socketInUse_=null,this.socket_=null,this.backupSocket_=null,this.backupTimer_=-1,this.signalInfo_={},this.currentState_=rg,this.reconnectionCount_=0,this.reconnectionTimer_=-1,this.seq_=0,this.log_=Ip.createLogger({id:"ws|"+this.userId_,userId:this.userId_,sdkAppId:this.sdkAppId_}),this.emitter_=new Df}return c(e,[{key:"connect",value:function(){var e=this;this.log_.info("connect to url: ".concat(this.urlWithParam_)),this.emitter_.emit(eg,{prevState:this.currentState_,state:ig}),this.currentState_=ig,this.socket_=new WebSocket(this.urlWithParam_),this.bindSocket(this.socket_),this.backupTimer_=setTimeout((function(){e.isConnected_||(e.log_.info("trying to connect to backupUrl"),e.tryConnectBackup())}),5e3)}},{key:"tryConnectBackup",value:function(){this.backupSocket_||(this.unbindAndCloseSocket(Cl),this.log_.debug("try to connect to url: ".concat(this.backupUrlWithParam_)),this.backupSocket_=new WebSocket(this.backupUrlWithParam_),this.bindSocket(this.backupSocket_))}},{key:"bindSocket",value:function(e){e.onopen=this.onopen.bind(this),e.onclose=this.onclose.bind(this),e.onerror=this.onerror.bind(this),e.onmessage=this.onmessage.bind(this)}},{key:"unbindSocket",value:function(e){e.onopen=function(){},e.onclose=function(){},e.onerror=function(){},e.onmessage=function(){}}},{key:"unbindAndCloseSocket",value:function(e){if(e===Cl){if(this.socket_){this.unbindSocket(this.socket_);try{this.socket_.close(1e3)}catch(zS){}this.socket_=null}}else if(this.backupSocket_){this.unbindSocket(this.backupSocket_);try{this.backupSocket_.close(1e3)}catch(zS){}this.backupSocket_=null}}},{key:"clearBackupTimer",value:function(){-1!==this.backupTimer_&&(clearTimeout(this.backupTimer_),this.backupTimer_=-1)}},{key:"clearReconnectionTimer",value:function(){-1!==this.reconnectionTimer_&&(clearTimeout(this.reconnectionTimer_),this.reconnectionTimer_=-1)}},{key:"onopen",value:function(e){if(!this.isConnected_){this.isConnected_=!0,this.isConnecting_=!1,this.clearBackupTimer(),e.target===this.socket_?(this.unbindAndCloseSocket(Ml),this.socketInUse_=this.socket_):(this.unbindAndCloseSocket(Cl),this.socketInUse_=this.backupSocket_);var t=e.target.url;this.log_.info("websocket[".concat(t,"] is connected")),this.emitter_.emit(eg,{prevState:this.currentState_,state:ag}),this.currentState_===ig?this.addSignalEvent(Zg,"signal channel is connected"):this.currentState_===og&&this.addSignalEvent(nm,"signal channel reconnect success"),this.currentState_=ag,this.emitter_.emit(tg)}}},{key:"onclose",value:function(e){var t=e.target.url,n=e.target===this.socketInUse_;this.log_.info("websocket[".concat(t," InUse: ").concat(n,"] is closed with code: ").concat(e.code)),e.target===this.socketInUse_&&(this.isConnected_=!1,e.wasClean&&1e3===e.code?(this.emitter_.emit(eg,{prevState:this.currentState_,state:rg}),this.currentState_=rg,this.addSignalEvent(Xg,"signal channel is disconnected")):(this.log_.warn("onclose code:".concat(e.code," reason:").concat(e.reason)),this.log_.warn("close current websocket and schedule a reconnect timeout"),this.socketInUse_.onclose=function(){},this.socketInUse_.close(4011),this.socket_=this.backupSocket_=this.socketInUse_=null,this.reconnect(Cl)))}},{key:"onerror",value:function(e){var t=e.target.url;this.log_.error("websocket[".concat(t,"] error observed")),this.isConnected_?e.target===this.socketInUse_&&(this.isConnected_=!1,this.unbindAndCloseSocket(Cl),this.unbindAndCloseSocket(Ml),this.socketInUse_=null,this.reconnect(Cl)):(this.isReconnecting_||vy.logFailedEvent({userId:this.client_.getUserId(),eventType:Sd,code:kg.UNKNOWN}),e.target==this.socket_?(this.unbindAndCloseSocket(Cl),this.reconnect(Ml)):(this.unbindAndCloseSocket(Ml),this.reconnect(Cl))),this.isConnecting_=!1,this.isConnected_=!1}},{key:"onmessage",value:function(e){if(this.isConnected_){var t=JSON.parse(e.data),n=t.cmd,r=t.data,i=Object.values(sg),o=Object.keys(sg)[i.indexOf(n)],a=ug[o];if(!cg.includes(n)){var s=e.target==this.socket_?this.url_:this.backupUrl_;this.log_.debug("websocket[".concat(s,"] received message: ").concat(e.data)),this.log_.info("Received event: [ ".concat(a||"unknown cmd: "+n," ]"))}switch(n){case sg.CHANNEL_SETUP_RESULT:if(0===t.code)this.signalInfo_.clientIp=r.clientIp,this.signalInfo_.signalIp=r.signalInnerIp,this.signalInfo_.tinyId=t.tinyId,r.svrTime&&function(e){ya=e-(new Date).getTime();var t=new Date;t.setTime(e),Ip.info("baseTime from server: "+t+" offset: "+ya)}(r.svrTime),this.log_.info("ChannelSetup Success"),vy.logSuccessEvent({userId:this.userId_,eventType:Sd}),this.emitter_.emit(Qp,{signalInfo:this.signalInfo_});else{var c=new Eg({code:kg.SIGNAL_CHANNEL_SETUP_FAILED,extraCode:t.code,message:my({key:km,data:{errorCode:t.code,errorMsg:t.message}})});this.close(),vy.logFailedEvent({userId:this.userId_,eventType:Sd,error:c}),this.emitter_.emit(ng,c)}break;case sg.JOIN_ROOM_RESULT:0===t.code&&(this.signalInfo_.relayIp=r.relayOuterIp,this.signalInfo_.relayInnerIp=r.relayInnerIp,this.signalInfo_.relayPort=r.relayPort,this.log_.info("signalIp:".concat(this.signalInfo_.signalIp," clientIp:").concat(this.signalInfo_.clientIp," relayIp: ").concat(this.signalInfo_.relayIp))),this.emitter_.emit(a,{data:t});break;case sg.CHANNEL_RECONNECT_RESULT:0===t.code?(this.log_.warn("reconnect success"),this.stopReconnection(),vy.logSuccessEvent({userId:this.userId_,eventType:xd}),this.client_.syncUserList(),this.client_.checkConnectionsToReconnect()):(this.log_.warn("reconnect failed, ".concat(t.code," ").concat(t.message)),this.client_.reJoin());break;default:this.emitter_.emit(a,{data:t})}}}},{key:"addSignalEvent",value:function(e,t){fm(this.userId_,{eventId:e,eventDesc:t,timestamp:_a(),userId:this.userId_,tinyId:this.signalInfo_.tinyId})}},{key:"reconnect",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Cl;if(this.isConnecting_||-1!==this.reconnectionTimer_)this.log_.info("signal channel is reconnecting, ignoring current reconnection");else{if(this.reconnectionCount_>=30){this.log_.warn("SDK has tried reconnect signal channel for ".concat(30," times, but all failed. please check your network"));var n=new Eg({code:kg.SIGNAL_CHANNEL_RECONNECTION_FAILED,message:my({key:Tm})});return vy.logFailedEvent({userId:this.client_.getUserId(),eventType:xd,error:n}),this.addSignalEvent(rm,"signal channel reconnect fail"),void this.emitter_.emit(ng,n)}this.isConnecting_=!0,this.reconnectionCount_++,this.currentState_!==og&&(this.emitter_.emit(eg,{prevState:this.currentState_,state:og}),this.currentState_=og,this.addSignalEvent(tm,"signal channel is reconnecting")),this.log_.warn("reconnecting to ".concat(t," signal channel [").concat(this.reconnectionCount_,"/").concat(30,"]"));var r=this.getReconnectionUrl(t);t===Cl?(this.socket_=new WebSocket(r),this.bindSocket(this.socket_)):(this.backupSocket_=new WebSocket(r),this.bindSocket(this.backupSocket_));var i=oh(this.reconnectionCount_);this.reconnectionTimer_=setTimeout((function(){e.log_.warn("reconnect ".concat(t," signal channel timeout(").concat(i/1e3,"s), close and try again")),e.isConnecting_=!1,e.clearReconnectionTimer(),e.unbindAndCloseSocket(t),e.reconnect(t===Cl?Ml:Cl)}),i)}}},{key:"isConnected",value:function(){return this.isConnected_}},{key:"isReconnecting_",get:function(){return-1!==this.reconnectionTimer_}},{key:"getReconnectionUrl",value:function(e){var t=e===Cl?this.urlWithParam_:this.backupUrlWithParam_;if(!mm(this.signalInfo_)&&-1===t.indexOf("&rc=1")){var n=this.client_.getRoomId(),r=this.client_.getUseStringRoomId();t+="&rc=1&relayInnerIp=".concat(this.signalInfo_.relayInnerIp,"&relayOuterIp=").concat(this.signalInfo_.relayIp,"&relayPort=").concat(this.signalInfo_.relayPort,"&roomId=").concat(n,"&useStringRoomId=").concat(r)}return t}},{key:"send",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.isConnected_){var n={cmd:e,data:t,userId:this.userId_,tinyId:this.signalInfo_.tinyId,seq:++this.seq_};return this.socketInUse_.send(JSON.stringify(n)),n.seq}}},{key:"sendWaitForResponse",value:function(e){var t=this,n=e.command,r=e.data,i=e.timeout,o=void 0===i?5e3:i,a=e.responseCommand,s=e.commandDesc,c=e.retry,u=void 0===c?0:c,l=0;return new Promise((function(e,i){var c,d,h=function(){if(l<u)return l++,t.log_.warn("".concat(s," timeout observed, retrying [").concat(l,"/").concat(u,"]")),void p();t.off(a,f);var e=new Eg({code:kg.API_CALL_TIMEOUT,message:my({key:Mm,data:{commandDesc:s,command:n}})});t.log_.warn(e),i(e)},f=function n(r){r.data.seq===d&&(clearTimeout(c),t.off(a,n),e(r))},p=function(){c=setTimeout(h,o),d=t.send(n,r)};t.on(a,f),p()}))}},{key:"getCurrentState",value:function(){return this.currentState_}},{key:"getSignalInfo",value:function(){return this.signalInfo_}},{key:"stopReconnection",value:function(){this.isReconnecting_&&(this.reconnectionCount_=0,this.clearReconnectionTimer())}},{key:"close",value:function(){this.log_.info("close SignalChannel"),this.clearBackupTimer(),this.stopReconnection(),this.isConnecting_=!1,this.isConnected_=!1,this.socketInUse_=null,this.unbindAndCloseSocket(Cl),this.unbindAndCloseSocket(Ml)}},{key:"on",value:function(e,t,n){this.emitter_.on(e,t,n)}},{key:"removeListener",value:function(e,t,n){this.emitter_.removeListener(e,t,n)}},{key:"once",value:function(e,t,n){this.emitter_.once(e,t,n)}},{key:"off",value:function(e,t,n){this.emitter_.off(e,t,n)}}]),e}(),_y=Wt.find,by=!0;"find"in[]&&Array(1).find((function(){by=!1})),Mt({target:"Array",proto:!0,forced:by},{find:function(e){return _y(this,e,arguments.length>1?arguments[1]:void 0)}}),Er("find"),xi("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),Ai);var Sy=M((function(e){var t=e.exports={v:[{name:"version",reg:/^(\d*)$/}],o:[{name:"origin",reg:/^(\S*) (\d*) (\d*) (\S*) IP(\d) (\S*)/,names:["username","sessionId","sessionVersion","netType","ipVer","address"],format:"%s %s %d %s IP%d %s"}],s:[{name:"name"}],i:[{name:"description"}],u:[{name:"uri"}],e:[{name:"email"}],p:[{name:"phone"}],z:[{name:"timezones"}],r:[{name:"repeats"}],t:[{name:"timing",reg:/^(\d*) (\d*)/,names:["start","stop"],format:"%d %d"}],c:[{name:"connection",reg:/^IN IP(\d) (\S*)/,names:["version","ip"],format:"IN IP%d %s"}],b:[{push:"bandwidth",reg:/^(TIAS|AS|CT|RR|RS):(\d*)/,names:["type","limit"],format:"%s:%s"}],m:[{reg:/^(\w*) (\d*) ([\w/]*)(?: (.*))?/,names:["type","port","protocol","payloads"],format:"%s %d %s %s"}],a:[{push:"rtp",reg:/^rtpmap:(\d*) ([\w\-.]*)(?:\s*\/(\d*)(?:\s*\/(\S*))?)?/,names:["payload","codec","rate","encoding"],format:function(e){return e.encoding?"rtpmap:%d %s/%s/%s":e.rate?"rtpmap:%d %s/%s":"rtpmap:%d %s"}},{push:"fmtp",reg:/^fmtp:(\d*) ([\S| ]*)/,names:["payload","config"],format:"fmtp:%d %s"},{name:"control",reg:/^control:(.*)/,format:"control:%s"},{name:"rtcp",reg:/^rtcp:(\d*)(?: (\S*) IP(\d) (\S*))?/,names:["port","netType","ipVer","address"],format:function(e){return null!=e.address?"rtcp:%d %s IP%d %s":"rtcp:%d"}},{push:"rtcpFbTrrInt",reg:/^rtcp-fb:(\*|\d*) trr-int (\d*)/,names:["payload","value"],format:"rtcp-fb:%s trr-int %d"},{push:"rtcpFb",reg:/^rtcp-fb:(\*|\d*) ([\w-_]*)(?: ([\w-_]*))?/,names:["payload","type","subtype"],format:function(e){return null!=e.subtype?"rtcp-fb:%s %s %s":"rtcp-fb:%s %s"}},{push:"ext",reg:/^extmap:(\d+)(?:\/(\w+))?(?: (urn:ietf:params:rtp-hdrext:encrypt))? (\S*)(?: (\S*))?/,names:["value","direction","encrypt-uri","uri","config"],format:function(e){return"extmap:%d"+(e.direction?"/%s":"%v")+(e["encrypt-uri"]?" %s":"%v")+" %s"+(e.config?" %s":"")}},{name:"extmapAllowMixed",reg:/^(extmap-allow-mixed)/},{push:"crypto",reg:/^crypto:(\d*) ([\w_]*) (\S*)(?: (\S*))?/,names:["id","suite","config","sessionConfig"],format:function(e){return null!=e.sessionConfig?"crypto:%d %s %s %s":"crypto:%d %s %s"}},{name:"setup",reg:/^setup:(\w*)/,format:"setup:%s"},{name:"connectionType",reg:/^connection:(new|existing)/,format:"connection:%s"},{name:"mid",reg:/^mid:([^\s]*)/,format:"mid:%s"},{name:"msid",reg:/^msid:(.*)/,format:"msid:%s"},{name:"ptime",reg:/^ptime:(\d*(?:\.\d*)*)/,format:"ptime:%d"},{name:"maxptime",reg:/^maxptime:(\d*(?:\.\d*)*)/,format:"maxptime:%d"},{name:"direction",reg:/^(sendrecv|recvonly|sendonly|inactive)/},{name:"icelite",reg:/^(ice-lite)/},{name:"iceUfrag",reg:/^ice-ufrag:(\S*)/,format:"ice-ufrag:%s"},{name:"icePwd",reg:/^ice-pwd:(\S*)/,format:"ice-pwd:%s"},{name:"fingerprint",reg:/^fingerprint:(\S*) (\S*)/,names:["type","hash"],format:"fingerprint:%s %s"},{push:"candidates",reg:/^candidate:(\S*) (\d*) (\S*) (\d*) (\S*) (\d*) typ (\S*)(?: raddr (\S*) rport (\d*))?(?: tcptype (\S*))?(?: generation (\d*))?(?: network-id (\d*))?(?: network-cost (\d*))?/,names:["foundation","component","transport","priority","ip","port","type","raddr","rport","tcptype","generation","network-id","network-cost"],format:function(e){var t="candidate:%s %d %s %d %s %d typ %s";return t+=null!=e.raddr?" raddr %s rport %d":"%v%v",t+=null!=e.tcptype?" tcptype %s":"%v",null!=e.generation&&(t+=" generation %d"),t+=null!=e["network-id"]?" network-id %d":"%v",t+(null!=e["network-cost"]?" network-cost %d":"%v")}},{name:"endOfCandidates",reg:/^(end-of-candidates)/},{name:"remoteCandidates",reg:/^remote-candidates:(.*)/,format:"remote-candidates:%s"},{name:"iceOptions",reg:/^ice-options:(\S*)/,format:"ice-options:%s"},{push:"ssrcs",reg:/^ssrc:(\d*) ([\w_-]*)(?::(.*))?/,names:["id","attribute","value"],format:function(e){var t="ssrc:%d";return null!=e.attribute&&(t+=" %s",null!=e.value&&(t+=":%s")),t}},{push:"ssrcGroups",reg:/^ssrc-group:([\x21\x23\x24\x25\x26\x27\x2A\x2B\x2D\x2E\w]*) (.*)/,names:["semantics","ssrcs"],format:"ssrc-group:%s %s"},{name:"msidSemantic",reg:/^msid-semantic:\s?(\w*) (\S*)/,names:["semantic","token"],format:"msid-semantic: %s %s"},{push:"groups",reg:/^group:(\w*) (.*)/,names:["type","mids"],format:"group:%s %s"},{name:"rtcpMux",reg:/^(rtcp-mux)/},{name:"rtcpRsize",reg:/^(rtcp-rsize)/},{name:"sctpmap",reg:/^sctpmap:([\w_/]*) (\S*)(?: (\S*))?/,names:["sctpmapNumber","app","maxMessageSize"],format:function(e){return null!=e.maxMessageSize?"sctpmap:%s %s %s":"sctpmap:%s %s"}},{name:"xGoogleFlag",reg:/^x-google-flag:([^\s]*)/,format:"x-google-flag:%s"},{push:"rids",reg:/^rid:([\d\w]+) (\w+)(?: ([\S| ]*))?/,names:["id","direction","params"],format:function(e){return e.params?"rid:%s %s %s":"rid:%s %s"}},{push:"imageattrs",reg:new RegExp("^imageattr:(\\d+|\\*)[\\s\\t]+(send|recv)[\\s\\t]+(\\*|\\[\\S+\\](?:[\\s\\t]+\\[\\S+\\])*)(?:[\\s\\t]+(recv|send)[\\s\\t]+(\\*|\\[\\S+\\](?:[\\s\\t]+\\[\\S+\\])*))?"),names:["pt","dir1","attrs1","dir2","attrs2"],format:function(e){return"imageattr:%s %s %s"+(e.dir2?" %s %s":"")}},{name:"simulcast",reg:new RegExp("^simulcast:(send|recv) ([a-zA-Z0-9\\-_~;,]+)(?:\\s?(send|recv) ([a-zA-Z0-9\\-_~;,]+))?$"),names:["dir1","list1","dir2","list2"],format:function(e){return"simulcast:%s %s"+(e.dir2?" %s %s":"")}},{name:"simulcast_03",reg:/^simulcast:[\s\t]+([\S+\s\t]+)$/,names:["value"],format:"simulcast: %s"},{name:"framerate",reg:/^framerate:(\d+(?:$|\.\d+))/,format:"framerate:%s"},{name:"sourceFilter",reg:/^source-filter: *(excl|incl) (\S*) (IP4|IP6|\*) (\S*) (.*)/,names:["filterMode","netType","addressTypes","destAddress","srcList"],format:"source-filter: %s %s %s %s %s"},{name:"bundleOnly",reg:/^(bundle-only)/},{name:"label",reg:/^label:(.+)/,format:"label:%s"},{name:"sctpPort",reg:/^sctp-port:(\d+)$/,format:"sctp-port:%s"},{name:"maxMessageSize",reg:/^max-message-size:(\d+)$/,format:"max-message-size:%s"},{push:"tsRefClocks",reg:/^ts-refclk:([^\s=]*)(?:=(\S*))?/,names:["clksrc","clksrcExt"],format:function(e){return"ts-refclk:%s"+(null!=e.clksrcExt?"=%s":"")}},{name:"mediaClk",reg:/^mediaclk:(?:id=(\S*))? *([^\s=]*)(?:=(\S*))?(?: *rate=(\d+)\/(\d+))?/,names:["id","mediaClockName","mediaClockValue","rateNumerator","rateDenominator"],format:function(e){var t="mediaclk:";return t+=null!=e.id?"id=%s %s":"%v%s",t+=null!=e.mediaClockValue?"=%s":"",t+=null!=e.rateNumerator?" rate=%s":"",t+(null!=e.rateDenominator?"/%s":"")}},{name:"keywords",reg:/^keywds:(.+)$/,format:"keywds:%s"},{name:"content",reg:/^content:(.+)/,format:"content:%s"},{name:"bfcpFloorCtrl",reg:/^floorctrl:(c-only|s-only|c-s)/,format:"floorctrl:%s"},{name:"bfcpConfId",reg:/^confid:(\d+)/,format:"confid:%s"},{name:"bfcpUserId",reg:/^userid:(\d+)/,format:"userid:%s"},{name:"bfcpFloorId",reg:/^floorid:(.+) (?:m-stream|mstrm):(.+)/,names:["id","mStream"],format:"floorid:%s mstrm:%s"},{push:"invalid",names:["value"]}]};Object.keys(t).forEach((function(e){t[e].forEach((function(e){e.reg||(e.reg=/(.*)/),e.format||(e.format="%s")}))}))})),xy=(Sy.v,Sy.o,Sy.s,Sy.i,Sy.u,Sy.e,Sy.p,Sy.z,Sy.r,Sy.t,Sy.c,Sy.b,Sy.m,Sy.a,M((function(e,t){var n=function(e){return String(Number(e))===e?Number(e):e},r=function(e,t,r){var i=e.name&&e.names;e.push&&!t[e.push]?t[e.push]=[]:i&&!t[e.name]&&(t[e.name]={});var o=e.push?{}:i?t[e.name]:t;!function(e,t,r,i){if(i&&!r)t[i]=n(e[1]);else for(var o=0;o<r.length;o+=1)null!=e[o+1]&&(t[r[o]]=n(e[o+1]))}(r.match(e.reg),o,e.names,e.name),e.push&&t[e.push].push(o)},i=RegExp.prototype.test.bind(/^([a-z])=(.*)/);t.parse=function(e){var t={},n=[],o=t;return e.split(/(\r\n|\r|\n)/).filter(i).forEach((function(e){var t=e[0],i=e.slice(2);"m"===t&&(n.push({rtp:[],fmtp:[]}),o=n[n.length-1]);for(var a=0;a<(Sy[t]||[]).length;a+=1){var s=Sy[t][a];if(s.reg.test(i))return r(s,o,i)}})),t.media=n,t};var o=function(e,t){var r=t.split(/=(.+)/,2);return 2===r.length?e[r[0]]=n(r[1]):1===r.length&&t.length>1&&(e[r[0]]=void 0),e};t.parseParams=function(e){return e.split(/;\s?/).reduce(o,{})},t.parseFmtpConfig=t.parseParams,t.parsePayloads=function(e){return e.toString().split(" ").map(Number)},t.parseRemoteCandidates=function(e){for(var t=[],r=e.split(" ").map(n),i=0;i<r.length;i+=3)t.push({component:r[i],ip:r[i+1],port:r[i+2]});return t},t.parseImageAttributes=function(e){return e.split(" ").map((function(e){return e.substring(1,e.length-1).split(",").reduce(o,{})}))},t.parseSimulcastStreamList=function(e){return e.split(";").map((function(e){return e.split(",").map((function(e){var t,r=!1;return"~"!==e[0]?t=n(e):(t=n(e.substring(1,e.length)),r=!0),{scid:t,paused:r}}))}))}}))),wy=(xy.parse,xy.parseParams,xy.parseFmtpConfig,xy.parsePayloads,xy.parseRemoteCandidates,xy.parseImageAttributes,xy.parseSimulcastStreamList,/%[sdv%]/g),Iy=function(e){var t=1,n=arguments,r=n.length;return e.replace(wy,(function(e){if(t>=r)return e;var i=n[t];switch(t+=1,e){case"%%":return"%";case"%s":return String(i);case"%d":return Number(i);case"%v":return""}}))},Cy=function(e,t,n){var r=[e+"="+(t.format instanceof Function?t.format(t.push?n:n[t.name]):t.format)];if(t.names)for(var i=0;i<t.names.length;i+=1){var o=t.names[i];t.name?r.push(n[t.name][o]):r.push(n[t.names[i]])}else r.push(n[t.name]);return Iy.apply(null,r)},My=["v","o","s","i","u","e","p","c","b","t","r","z","a"],Ty=["i","c","b","a"],ky={write:function(e,t){t=t||{},null==e.version&&(e.version=0),null==e.name&&(e.name=" "),e.media.forEach((function(e){null==e.payloads&&(e.payloads="")}));var n=t.outerOrder||My,r=t.innerOrder||Ty,i=[];return n.forEach((function(t){Sy[t].forEach((function(n){n.name in e&&null!=e[n.name]?i.push(Cy(t,n,e)):n.push in e&&null!=e[n.push]&&e[n.push].forEach((function(e){i.push(Cy(t,n,e))}))}))})),e.media.forEach((function(e){i.push(Cy("m",Sy.m[0],e)),r.forEach((function(t){Sy[t].forEach((function(n){n.name in e&&null!=e[n.name]?i.push(Cy(t,n,e)):n.push in e&&null!=e[n.push]&&e[n.push].forEach((function(e){i.push(Cy(t,n,e))}))}))}))})),i.join("\r\n")+"\r\n"},parse:xy.parse,parseParams:xy.parseParams,parseFmtpConfig:xy.parseFmtpConfig,parsePayloads:xy.parsePayloads,parseRemoteCandidates:xy.parseRemoteCandidates,parseImageAttributes:xy.parseImageAttributes,parseSimulcastStreamList:xy.parseSimulcastStreamList},Ey=function(e){return ky.parse(e)},Ay=function(e){return ky.write(e)},Dy=function(e){var t=Ey(e);return t.media.forEach((function(e){e.type===ul&&e.fmtp.forEach((function(e){e.config+=";sprop-stereo=1;stereo=1"}))})),Ay(t)};function Oy(e){var t=Ey(e);return t.media.forEach((function(e){if(e.type===ll){var t=new Set;e.rtp.forEach((function(e){var n=e.payload;return"H264"===e.codec&&t.add(n)})),e.fmtp.forEach((function(e){var n=e.payload,r=e.config.match(/apt=(\d+)/);r&&r[1]&&t.has(Number(r[1]))&&t.add(n)}));var n=function(e){var n=e.payload;return!t.has(n)};e.rtp=e.rtp.filter(n),e.rtcpFb=e.rtcpFb.filter(n),e.fmtp=e.fmtp.filter(n),e.payloads=e.payloads.split(" ").filter((function(e){return!t.has(Number(e))})).join(" ")}})),Ay(t)}var Ry,Ly=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))},Py=new(function(){function e(){a(this,e),this.intervalMap_=new Map}return c(e,[{key:"setInterval",value:function(e){function t(t,n){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e,t){var n=this,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!window||!window.requestAnimationFrame)return setInterval(e,t);var i=Ly(),o=gh(),a=o;this.intervalMap_.set(i,{rafId:null,timeoutId:null,onVisibilityChange:null});var s=function s(){if(r&&document.hidden){if(e(),!n.intervalMap_.has(i))return;var c=setTimeout(s,t);n.setTimeoutId(i,c),o=gh(),a=o}else{if((a=gh())-o>=t&&(o=a,e(),!n.intervalMap_.has(i)))return;var u=requestAnimationFrame(s);n.setRafId(i,u)}},c=requestAnimationFrame(s);if(this.setRafId(i,c),r){var u=function(){if(document.hidden){var e=gh()-o;if(e>=t)s();else{var r=setTimeout(s,t-e);n.setTimeoutId(i,r)}}};document.addEventListener("visibilitychange",u),this.setOnVisibilityChange(i,u),document.hidden&&u()}return i}))},{key:"clearInterval",value:function(e){if(this.intervalMap_.has(e)){var t=this.intervalMap_.get(e),n=t.rafId,r=t.timeoutId,i=t.onVisibilityChange;cancelAnimationFrame(n),clearTimeout(r),document.removeEventListener("visibilitychange",i),this.intervalMap_.delete(e)}}},{key:"setTimeoutId",value:function(e,t){if(this.intervalMap_.has(e)){var n=this.intervalMap_.get(e);n.timeoutId&&clearTimeout(n.timeoutId),n.timeoutId=t}}},{key:"setRafId",value:function(e,t){if(this.intervalMap_.has(e)){var n=this.intervalMap_.get(e);n.rafId&&cancelAnimationFrame(n.rafId),n.rafId=t}}},{key:"setOnVisibilityChange",value:function(e,t){this.intervalMap_.has(e)&&(this.intervalMap_.get(e).onVisibilityChange=t)}}]),e}()),Ny=new(function(){function e(){a(this,e),this.prefix_="TRTC",this.queue_=new Map,this.intervalId_=Py.setInterval(this.doFlush.bind(this),2e4),this.checkStorage()}return c(e,[{key:"getRealKey",value:function(e){return"".concat(this.prefix_,"_").concat(e)}},{key:"checkStorage",value:function(){var e=this;il()&&Object.keys(localStorage).filter((function(t){if(t.startsWith(e.prefix_)){var n=JSON.parse(localStorage.getItem(t));if(n&&n.expiresIn<Date.now())return!0}return!1})).forEach((function(e){return localStorage.removeItem(e)}))}},{key:"doFlush",value:function(){if(il())try{var e,t=w(this.queue_);try{for(t.s();!(e=t.n()).done;){var n=_(e.value,2),r=n[0],i=n[1];localStorage.setItem(r,JSON.stringify(i))}}catch(a){t.e(a)}finally{t.f()}}catch(zS){Ip.warn(zS)}}},{key:"getItem",value:function(e){if(!il())return null;try{var t=JSON.parse(localStorage.getItem(this.getRealKey(e)));return t&&t.expiresIn>=Date.now()?t.value:null}catch(zS){Ip.warn(zS)}}},{key:"setItem",value:function(e,t){if(il())try{var n={expiresIn:Date.now()+6048e5,value:t};this.queue_.set(this.getRealKey(e),n)}catch(zS){Ip.warn(zS)}}},{key:"deleteItem",value:function(e){if(!il())return!1;try{return e=this.getRealKey(e),this.queue_.delete(e),localStorage.removeItem(e),!0}catch(zS){return Ip.warn(zS),!1}}},{key:"clear",value:function(){if(il())try{localStorage.clear()}catch(zS){Ip.warn(zS)}}}]),e}()),Uy={result:!1,detail:{isBrowserSupported:!1,isWebRTCSupported:!1,isMediaDevicesSupported:!1,isH264EncodeSupported:!1,isVp8EncodeSupported:!1,isH264DecodeSupported:!1,isVp8DecodeSupported:!1}};(Ry=Ny.getItem("checkResult"))&&Ry.ua===navigator.userAgent&&(Uy=Ry.checkResult,qy());var Fy=function(){return!Nu&&!lu&&!(hu&&fu<80)&&!(cu&&uu<56)},Gy=function(){return["RTCPeerConnection","webkitRTCPeerConnection","RTCIceGatherer"].filter((function(e){return e in window})).length>0},Vy=function(){if(!navigator.mediaDevices)return!1;var e=["getUserMedia","enumerateDevices"];return e.filter((function(e){return e in navigator.mediaDevices})).length===e.length},jy=function(){var e=o(regeneratorRuntime.mark((function e(){var t,n,r,i,o,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Uy.detail.isH264EncodeSupported&&!Uy.detail.isVp8EncodeSupported){e.next=2;break}return e.abrupt("return",{isH264EncodeSupported:Uy.detail.isH264EncodeSupported,isVp8EncodeSupported:Uy.detail.isVp8EncodeSupported});case 2:return t="",n=!1,r=!1,e.prev=5,i=new RTCPeerConnection,(o=document.createElement("canvas")).getContext("2d"),a=o.captureStream(0),i.addTrack(a.getVideoTracks()[0],a),e.next=13,i.createOffer();case 13:return-1!==(t=e.sent).sdp.toLowerCase().indexOf("h264")&&(n=!0),-1!==t.sdp.toLowerCase().indexOf("vp8")&&(r=!0),i.close(),Uy.detail.isH264EncodeSupported=n,Uy.detail.isVp8EncodeSupported=r,e.abrupt("return",{isH264EncodeSupported:Uy.detail.isH264EncodeSupported,isVp8EncodeSupported:Uy.detail.isVp8EncodeSupported});case 22:return e.prev=22,e.t0=e.catch(5),e.abrupt("return",{isH264EncodeSupported:!1,isVp8EncodeSupported:!1});case 25:case"end":return e.stop()}}),e,null,[[5,22]])})));return function(){return e.apply(this,arguments)}}();function By(){return zy.apply(this,arguments)}function zy(){return(zy=o(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=o(regeneratorRuntime.mark((function e(t){var n,r,i,a,s,c,u,l,d,h,f,p,g,m;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={encode:!1,decode:!1},r=null,e.prev=2,i=document.createElement("canvas"),a=i.getContext("2d"),i.width=640,i.height=480,s=setInterval((function(){a.fillText("test",Math.floor(640*Math.random()),Math.floor(480*Math.random()))}),33),c=-1,u=-1,r=function(){clearInterval(c),clearInterval(s),clearTimeout(u),d.close(),h.close(),l.getTracks().forEach((function(e){return e.stop()}))},u=setTimeout((function(){r(),t(n)}),3e3),l=i.captureStream(),d=new RTCPeerConnection({}),h=new RTCPeerConnection({offerToReceiveAudio:!0,offerToReceiveVideo:!0}),d.addEventListener("icecandidate",(function(e){return h.addIceCandidate(e.candidate)})),h.addEventListener("icecandidate",(function(e){return d.addIceCandidate(e.candidate)})),d.addTrack(l.getVideoTracks()[0],l),e.next=20,d.createOffer();case 20:return f=e.sent,e.next=23,d.setLocalDescription(f);case 23:return e.next=25,h.setRemoteDescription(f);case 25:return e.next=27,h.createAnswer();case 27:return p=e.sent,g=Ey(p.sdp),m=g.media[0].rtp.findIndex((function(e){return"H264"===e.codec})),g.media[0].rtp=[g.media[0].rtp[m]],g.media[0].fmtp=g.media[0].fmtp.filter((function(e){return e.payload===g.media[0].rtp[0].payload})),g.media[0].rtcpFb=g.media[0].rtcpFb.filter((function(e){return e.payload===g.media[0].rtp[0].payload})),p.sdp=Ay(g),e.next=36,h.setLocalDescription(p);case 36:return e.next=38,d.setRemoteDescription(p);case 38:c=setInterval(o(regeneratorRuntime.mark((function e(){var i,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n.encode&&n.decode&&(r(),t(n)),e.next=3,d.getStats();case 3:return i=e.sent,e.next=6,h.getStats();case 6:o=e.sent,n.encode||i.forEach((function(e){"outbound-rtp"===e.type&&e.mediaType===ll&&e.framesEncoded>0&&(n.encode=!0)})),n.decode||o.forEach((function(e){"inbound-rtp"===e.type&&e.mediaType===ll&&e.framesDecoded>0&&(n.decode=!0)}));case 9:case"end":return e.stop()}}),e)}))),500),e.next=46;break;case 41:e.prev=41,e.t0=e.catch(2),r(),Ip.warn(e.t0),t(n);case 46:case"end":return e.stop()}}),e,null,[[2,41]])})));return function(t){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Hy=function(){var e=o(regeneratorRuntime.mark((function e(){var t,n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Uy.detail.isH264DecodeSupported&&!Uy.detail.isVp8DecodeSupported){e.next=2;break}return e.abrupt("return",{isH264DecodeSupported:Uy.detail.isH264DecodeSupported,isVp8DecodeSupported:Uy.detail.isVp8DecodeSupported});case 2:return t="",n=!1,r=!1,e.prev=5,i=new RTCPeerConnection,e.next=9,i.createOffer({offerToReceiveAudio:1,offerToReceiveVideo:1});case 9:return-1!==(t=e.sent).sdp.toLowerCase().indexOf("h264")&&(n=!0),-1!==t.sdp.toLowerCase().indexOf("vp8")&&(r=!0),i.close(),e.abrupt("return",{isH264DecodeSupported:n,isVp8DecodeSupported:r});case 16:return e.prev=16,e.t0=e.catch(5),e.abrupt("return",{isH264DecodeSupported:!1,isVp8DecodeSupported:!1});case 19:case"end":return e.stop()}}),e,null,[[5,16]])})));return function(){return e.apply(this,arguments)}}(),Wy=function(e,t){var n=null;return function(){if(n)return n;for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return(n=e.apply(t||this,i)).then((function(e){return n=null,e})).catch((function(e){throw n=null,e})),n}}(function(){var e=o(regeneratorRuntime.mark((function e(){var t,n,r,i,o,a,s,c,u,l,d,h;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Uy.result){e.next=2;break}return e.abrupt("return",Uy);case 2:return t=Fy(),n=Gy(),r=Vy(),e.next=7,jy();case 7:return i=e.sent,o=i.isH264EncodeSupported,a=i.isVp8EncodeSupported,e.next=12,Hy();case 12:if(s=e.sent,c=s.isH264DecodeSupported,u=s.isVp8DecodeSupported,!(o&&c&&(Hu||qu||tl)&&!yu&&Ku()<79)){e.next=23;break}return e.next=18,By();case 18:l=e.sent,d=l.encode,h=l.decode,o=d,c=h;case 23:return Uy.result=t&&n&&r&&(o||a)&&(c||u),Uy.detail.isBrowserSupported=t,Uy.detail.isWebRTCSupported=n,Uy.detail.isMediaDevicesSupported=r,Uy.detail.isH264EncodeSupported=o,Uy.detail.isVp8EncodeSupported=a,Uy.detail.isH264DecodeSupported=c,Uy.detail.isVp8DecodeSupported=u,qy(),Ny.setItem("checkResult",{ua:navigator.userAgent,checkResult:Uy}),e.abrupt("return",Uy);case 34:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}());function qy(){Object.keys(Uy.detail).findIndex((function(e){return!Uy.detail[e]}))>=0&&Ip.error("".concat(navigator.userAgent," ").concat(JSON.stringify(Uy.detail)))}var $y=function(){return!(!navigator.mediaDevices||!navigator.mediaDevices.getDisplayMedia)},Ky=function(){return"RTCPeerConnection"in window&&"getReceivers"in window.RTCPeerConnection.prototype},Yy=function(){return"RTCPeerConnection"in window&&"getSenders"in window.RTCPeerConnection.prototype},Jy=function(){return"RTCPeerConnection"in window&&"getTransceivers"in window.RTCPeerConnection.prototype},Xy=function(){return"RTCRtpTransceiver"in window&&"stop"in window.RTCRtpTransceiver.prototype},Zy=function(){return"RTCRtpSender"in window&&"setParameters"in window.RTCRtpSender.prototype&&Yy()},Qy=function(){return!!sh(navigator.mediaDevices)&&(Ip.error(fy.NOT_SUPPORTED_MEDIA),!0)},e_=function(){return"http:"===location.protocol&&!rl&&(Ip.error(fy.NOT_SUPPORTED_HTTP),!0)},t_=function(e){return!("candidate-pair"!==e.type||!e.nominated||"in-progress"!==e.state&&"succeeded"!==e.state)&&!(lh(e.selected)&&!e.selected)},n_=new Map([[su,"Android"],[au,"iOS"],[Ru,"Windows"],[Lu,"MacOS"],[Pu,"Linux"]]),r_=function(){var e="unknown";return n_.get(!0)&&(e=n_.get(!0)),e};function i_(){var e="";return screen.width&&(e+=(screen.width?screen.width*window.devicePixelRatio:"")+" * "+(screen.height?screen.height*window.devicePixelRatio:"")),e}function o_(){var e=!1;return(navigator.getUserMedia||navigator.mediaDevices&&navigator.mediaDevices.getUserMedia)&&(e=!0),e}function a_(){for(var e={isSupported:!1},t=["AudioContext","webkitAudioContext","mozAudioContext","msAudioContext"],n=0;n<t.length;n++)if(t[n]in window){e.isSupported=!0;break}return e.isSupported}function s_(){return!xu&&!au&&!(!Fy()||!("captureStream"in HTMLCanvasElement.prototype))}var c_="getSettings"in MediaStreamTrack.prototype,u_="getCapabilities"in MediaStreamTrack.prototype;Wy();var l_="stream-added",d_="stream-removed",h_="stream-updated",f_="stream-subscribed",p_="error",g_="connection-state-changed",m_="stream-added",v_="stream-removed",y_="stream-updated",__="stream-subscribed",b_="connection-state-changed",S_="peer-join",x_="peer-leave",w_="mute-audio",I_="mute-video",C_="unmute-audio",M_="unmute-video",T_="client-banned",k_="network-quality",E_="audio-volume",A_="error",D_="player-state-changed",O_="screen-sharing-stopped",R_="connection-state-changed",L_="error",P_="player-state-changed",N_=function(){function e(t){a(this,e);var n=t.getUserId();this.log_=Ip.createLogger({id:n,userId:n,sdkAppId:t.getSDKAppId()}),this.prevReport_={},this.prevEncoderImplementation_="",this.prevQualityLimitationReason_="",this.prevDecoderImplementationMap_=new Map}var t,n,r,i;return c(e,[{key:"getSenderStats",value:(i=o(regeneratorRuntime.mark((function e(t){var n,r,i,o=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n={audio:{bytesSent:0,packetsSent:0,audioLevel:0,totalAudioEnergy:0},video:{bytesSent:0,packetsSent:0,framesEncoded:0,frameWidth:0,frameHeight:0,framesSent:0,fpsCapture:0,smallFramesEncoded:0,smallFPSCapture:0,smallFramesSent:0},rtt:0},r=t.getPeerConnection(),i=t.getSSRC(),!r){e.next=14;break}return e.prev=4,e.next=7,r.getStats();case 7:e.sent.forEach((function(e){if("outbound-rtp"===e.type)if(e.mediaType===ll){if(!cu&&sh(e.trackId))return;e.ssrc!==i.video||sh(e.encoderImplementation)||o.prevEncoderImplementation_===e.encoderImplementation||(o.log_.info("encoderImplementation change to ".concat(e.encoderImplementation)),o.prevEncoderImplementation_=e.encoderImplementation),e.ssrc!==i.video||sh(e.qualityLimitationReason)||o.prevQualityLimitationReason_===e.qualityLimitationReason||(o.log_.info("qualityLimitationReason change to ".concat(e.qualityLimitationReason)),o.prevQualityLimitationReason_=e.qualityLimitationReason);var r=t.getSSRC();e.ssrc===r.video?(n.video.bytesSent=e.bytesSent,n.video.packetsSent=e.packetsSent,n.video.framesEncoded=e.framesEncoded):(n.video.smallBytesSent=e.bytesSent,n.video.smallFramesEncoded=e.framesEncoded)}else e.mediaType===ul&&(n.audio.bytesSent=e.bytesSent,n.audio.packetsSent=e.packetsSent);else"candidate-pair"===e.type?t_(e)&&uh(e.currentRoundTripTime)&&(n.rtt=Math.floor(1e3*e.currentRoundTripTime)):"track"===e.type?(sh(e.frameWidth)||(e.trackIdentifier===t.getLocalStreamVideoTrackId()?(n.video.frameWidth=e.frameWidth,n.video.frameHeight=e.frameHeight,n.video.framesSent=e.framesSent):(n.video.smallFrameWidth=e.frameWidth,n.video.smallFrameHeight=e.frameHeight,n.video.smallFramesSent=e.framesSent)),sh(e.audioLevel)||(n.audio.audioLevel=e.audioLevel||0)):"media-source"===e.type&&(e.kind===ul?(n.audio.audioLevel=e.audioLevel||0,n.audio.totalAudioEnergy=e.totalAudioEnergy||0):e.kind===ll&&(e.trackIdentifier===t.getLocalStreamVideoTrackId()?n.video.fpsCapture=e.framesPerSecond:n.video.smallFPSCapture=e.framesPerSecond))})),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(4),this.log_.warn("failed to getStats on sender connection");case 14:return e.abrupt("return",n);case 15:case"end":return e.stop()}}),e,this,[[4,11]])}))),function(e){return i.apply(this,arguments)})},{key:"getReceiverStats",value:(r=o(regeneratorRuntime.mark((function e(t){var n,r,i=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n={tinyId:t.getTinyId(),userId:t.getUserId(),rtt:0,hasAudio:!1,hasVideo:!1,hasAuxiliary:!1,audio:{bytesReceived:0,packetsReceived:0,packetsLost:0,jitter:0,audioLevel:0,totalAudioEnergy:0},video:{bytesReceived:0,packetsReceived:0,packetsLost:0,framesReceived:0,framesDecoded:0,frameWidth:0,frameHeight:0},auxiliary:{bytesReceived:0,packetsReceived:0,packetsLost:0,framesReceived:0,framesDecoded:0,frameWidth:0,frameHeight:0}},!(r=t.getPeerConnection())){e.next=13;break}return e.prev=3,e.next=6,r.getStats();case 6:e.sent.forEach((function(e){if("inbound-rtp"===e.type){if(e.mediaType===ul)n.audio.packetsReceived=e.packetsReceived,n.audio.bytesReceived=e.bytesReceived,n.audio.packetsLost=e.packetsLost,n.audio.jitter=e.jitter,n.hasAudio=!0;else if(e.mediaType===ll){if(cu&&0===e.bytesReceived)return;var r=t.getSSRC();e.ssrc===r.video&&(n.video.packetsReceived=e.packetsReceived,n.video.bytesReceived=e.bytesReceived,n.video.packetsLost=e.packetsLost,n.video.framesReceived=e.framesReceived,n.video.framesDecoded=e.framesDecoded,n.video.fpsDecoded=e.framesPerSecond,n.hasVideo=!0,!e.decoderImplementation||i.prevDecoderImplementationMap_.has(n.userId)&&i.prevDecoderImplementationMap_.get(n.userId)===e.decoderImplementation||(Ip.info("[".concat(n.userId,"] decoderImplementation change to ").concat(e.decoderImplementation)),i.prevDecoderImplementationMap_.set(n.userId,e.decoderImplementation))),e.ssrc===r.auxiliary&&(n.auxiliary.packetsReceived=e.packetsReceived,n.auxiliary.bytesReceived=e.bytesReceived,n.auxiliary.packetsLost=e.packetsLost,n.auxiliary.framesReceived=e.framesReceived,n.auxiliary.framesDecoded=e.framesDecoded,n.auxiliary.fpsDecoded=e.framesPerSecond,n.hasAuxiliary=!0)}}else"track"===e.type?(sh(e.frameWidth)||(e.trackIdentifier===t.getMainStreamVideoTrackId()&&(n.video.frameWidth=e.frameWidth,n.video.frameHeight=e.frameHeight),e.trackIdentifier===t.getAuxStreamVideoTrackId()&&(n.auxiliary.frameWidth=e.frameWidth,n.auxiliary.frameHeight=e.frameHeight)),e.kind===ul&&(n.audio.audioLevel=e.audioLevel||0,n.audio.totalAudioEnergy=e.totalAudioEnergy||0)):"candidate-pair"===e.type&&t_(e)&&uh(e.currentRoundTripTime)&&(n.rtt=Math.floor(1e3*e.currentRoundTripTime))})),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(3),this.log_.warn("failed to getStats on receiver connection");case 13:return e.abrupt("return",n);case 14:case"end":return e.stop()}}),e,this,[[3,10]])}))),function(e){return r.apply(this,arguments)})},{key:"getStats",value:(n=o(regeneratorRuntime.mark((function e(t,n){var r,i,o,a,s,c,u;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r={},!t){e.next=5;break}return e.next=4,this.getSenderStats(t);case 4:r=e.sent;case 5:i=[],o=w(n),e.prev=7,o.s();case 9:if((a=o.n()).done){e.next=17;break}return(s=_(a.value,2))[0],c=s[1],e.next=13,this.getReceiverStats(c);case 13:u=e.sent,i.push(u);case 15:e.next=9;break;case 17:e.next=22;break;case 19:e.prev=19,e.t0=e.catch(7),o.e(e.t0);case 22:return e.prev=22,o.f(),e.finish(22);case 25:return e.abrupt("return",{senderStats:r,receiverStats:i});case 26:case"end":return e.stop()}}),e,this,[[7,19,22,25]])}))),function(e,t){return n.apply(this,arguments)})},{key:"getDifferenceValue",value:function(e,t){if(mm(e))return t;var n=t-e;return n<0?0:n}},{key:"prepareReport",value:function(e){var t=this,n=e.stats,r=e.report,i=e.freezeMap;if(!mm(n.senderStats)){var o={uint32_audio_level:1e8*n.senderStats.audio.audioLevel,uint32_audio_energy:1e6*n.senderStats.audio.totalAudioEnergy,uint32_audio_codec_bitrate:n.senderStats.audio.bytesSent,audioLevel:n.senderStats.audio.audioLevel},a=[],s={uint32_video_stream_type:2,uint32_video_codec_fps:n.senderStats.video.framesSent,uint32_video_capture_fps:n.senderStats.video.fpsCapture,uint32_video_width:n.senderStats.video.frameWidth,uint32_video_height:n.senderStats.video.frameHeight,uint32_video_codec_bitrate:n.senderStats.video.bytesSent,uint32_video_enc_fps:n.senderStats.video.framesEncoded};if(a.push(s),n.senderStats.video.smallBytesSent){var c={uint32_video_stream_type:3,uint32_video_codec_fps:n.senderStats.video.smallFramesSent||0,uint32_video_capture_fps:n.senderStats.video.smallFPSCapture||0,uint32_video_width:n.senderStats.video.smallFrameWidth||0,uint32_video_height:n.senderStats.video.smallFrameHeight||0,uint32_video_codec_bitrate:n.senderStats.video.smallBytesSent,uint32_video_enc_fps:n.senderStats.video.smallFramesEncoded||0};a.push(c)}var u={uint32_bitrate:"",uint32_rtt:n.senderStats.rtt};r.msg_up_stream_info={msg_audio_status:o,msg_video_status:a,msg_network_status:u}}r.msg_down_stream_info=[],n.receiverStats.forEach((function(e){var t={};if(t.msg_user_info={str_identifier:e.userId,uint64_tinyid:e.tinyId},t.msg_network_status={uint32_rtt:e.rtt},t.msg_video_status={},e.hasAudio){var n={uint32_audio_codec_bitrate:e.audio.bytesReceived,uint32_audio_total_bitrate:e.audio.bytesReceived,uint32_audio_level:1e8*e.audio.audioLevel,uint32_audio_energy:1e6*e.audio.totalAudioEnergy,uint32_audio_receive:e.audio.packetsReceived,uint32_audio_origin_lost:e.audio.packetsLost,audioLevel:e.audio.audioLevel};t.msg_audio_status=n}if(t.msg_video_status=[],e.hasVideo){var o=i.get(e.userId+"_"+Hl),a=o?o.duration:0,s={uint32_video_stream_type:2,uint32_video_receive_fps:e.video.framesReceived,uint32_video_width:e.video.frameWidth,uint32_video_height:e.video.frameHeight,uint32_video_codec_bitrate:e.video.bytesReceived,uint32_video_receive:e.video.packetsReceived,uint32_video_origin_lost:e.video.packetsLost,uint32_video_block_time:a,uint32_video_dec_fps:e.video.fpsDecoded};t.msg_video_status.push(s)}if(e.hasAuxiliary){var c=i.get(e.userId+"_"+Wl),u=c?c.duration:0,l={uint32_video_stream_type:7,uint32_video_receive_fps:e.auxiliary.framesReceived,uint32_video_width:e.auxiliary.frameWidth,uint32_video_height:e.auxiliary.frameHeight,uint32_video_codec_bitrate:e.auxiliary.bytesReceived,uint32_video_receive:e.auxiliary.packetsReceived+e.auxiliary.packetsLost,uint32_video_origin_lost:e.auxiliary.packetsLost,uint32_video_block_time:u,uint32_video_dec_fps:e.auxiliary.fpsDecoded};t.msg_video_status.push(l)}r.msg_down_stream_info.push(t)}));var l=this.prevReport_;this.prevReport_=JSON.parse(JSON.stringify(r));var d=l.msg_up_stream_info.msg_audio_status,h=r.msg_up_stream_info.msg_audio_status,f=this.getDifferenceValue(d.uint32_audio_codec_bitrate,h.uint32_audio_codec_bitrate);h.uint32_audio_codec_bitrate=8*f/2;var p=l.msg_up_stream_info.msg_video_status;r.msg_up_stream_info.msg_video_status.forEach((function(e,n){var r=p[n],i=0,o=0,a=0;r&&(i=r.uint32_video_codec_bitrate,o=r.uint32_video_enc_fps,a=r.uint32_video_codec_fps);var s=t.getDifferenceValue(i,e.uint32_video_codec_bitrate);e.uint32_video_codec_bitrate=8*s/2,e.uint32_video_enc_fps=t.getDifferenceValue(o,e.uint32_video_enc_fps)/2,e.uint32_video_codec_fps=t.getDifferenceValue(a,e.uint32_video_codec_fps)/2}));var g=r.msg_down_stream_info,m=l.msg_down_stream_info;return g.forEach((function(e){var n=m.find((function(t){return t.msg_user_info.uint64_tinyid===e.msg_user_info.uint64_tinyid}));if(n){if(e.msg_audio_status&&n.msg_audio_status){var r=e.msg_audio_status,i=n.msg_audio_status;r.uint32_audio_origin_lost=t.getDifferenceValue(i.uint32_audio_origin_lost,r.uint32_audio_origin_lost),r.uint32_audio_receive=t.getDifferenceValue(i.uint32_audio_receive,r.uint32_audio_receive),r.uint32_audio_receive+=r.uint32_audio_origin_lost;var o=t.getDifferenceValue(i.uint32_audio_codec_bitrate,r.uint32_audio_codec_bitrate);r.uint32_audio_codec_bitrate=8*o/2,r.uint32_audio_total_bitrate=8*o/2}if(e.msg_video_status&&n.msg_video_status){var a=e.msg_video_status,s=n.msg_video_status;a.forEach((function(e,n){var r=s[n],i=0,o=0,a=0,c=0;r&&(i=r.uint32_video_receive,o=r.uint32_video_origin_lost,a=r.uint32_video_codec_bitrate,c=r.uint32_video_receive_fps),e.uint32_video_origin_lost=t.getDifferenceValue(o,e.uint32_video_origin_lost),e.uint32_video_receive=t.getDifferenceValue(i,e.uint32_video_receive)+e.uint32_video_origin_lost;var u=t.getDifferenceValue(a,e.uint32_video_codec_bitrate);e.uint32_video_codec_bitrate=8*u/2;var l=t.getDifferenceValue(c,e.uint32_video_receive_fps);e.uint32_video_receive_fps=l/2}))}}})),r.msg_up_stream_info.msg_network_status.uint32_bitrate=r.msg_up_stream_info.msg_audio_status.uint32_audio_codec_bitrate+r.msg_up_stream_info.msg_video_status[0].uint32_video_codec_bitrate,r}},{key:"getStatsReport",value:(t=o(regeneratorRuntime.mark((function e(t){var n,r,i,o,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.uplinkConnection,r=t.downlinkConnections,i=t.freezeMap,o={msg_up_stream_info:{msg_audio_status:{uint32_audio_format:0,uint32_audio_sample_rate:0,uint32_audio_codec_bitrate:0,uint32_audio_receive:0,uint32_audio_origin_lost:0,uint32_audio_level:0,uint32_audio_energy:0,audioLevel:0},msg_video_status:[{uint32_video_stream_type:0,uint32_video_codec_fps:0,uint32_video_capture_fps:0,uint32_video_width:0,uint32_video_height:0,uint32_video_codec_bitrate:0,uint32_video_receive:0,uint32_video_origin_lost:0,uint32_video_final_lost:0,uint32_video_enc_fps:0}],msg_network_status:{uint32_bitrate:0,uint32_rtt:0,uint32_lost:0},msg_qos:[{uint32_video_fps:0,uint32_video_width:0,uint32_video_height:0,uint32_video_bitrate:0,uint32_audio_bitrate:0,uint32_video_stream_type:0}]},msg_down_stream_info:[{msg_user_info:{str_identifier:"",uint64_tinyid:""},msg_audio_status:{uint32_audio_format:0,uint32_audio_sample_rate:0,uint32_audio_codec_bitrate:0,uint32_audio_total_bitrate:0,uint32_audio_level:0,uint32_audio_energy:0,uint32_audio_receive:0,uint32_audio_origin_lost:0,uint32_audio_final_lost:0,audioLevel:0},msg_video_status:[{uint32_video_stream_type:0,uint32_video_receive_fps:0,uint32_video_width:0,uint32_video_height:0,uint32_video_codec_bitrate:0,uint32_video_receive:0,uint32_video_origin_lost:0,uint32_video_block_time:0,uint32_video_dec_fps:0}],msg_network_status:{uint32_bitrate:0,uint32_rtt:0,uint32_lost:0,uint32_jitter:0},msg_qos:[{uint32_video_fps:0,uint32_video_width:0,uint32_video_height:0,uint32_video_bitrate:0,uint32_audio_bitrate:0,uint32_video_stream_type:0}]}]},"{}"===JSON.stringify(this.prevReport_)&&(this.prevReport_=JSON.parse(JSON.stringify(o))),e.next=5,this.getStats(n,r);case 5:return a=e.sent,this.prepareReport({stats:a,report:o,freezeMap:i}),e.abrupt("return",o);case 8:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e}(),U_=function(){function e(t){var n=t.signalChannel,r=t.connections,i=t.client;a(this,e),this.client_=i,this.signalChannel_=n,this.connections_=r,this.client_=i,this.log_=Ip.createLogger({id:"q|"+this.client_.getUserId(),userId:this.client_.getUserId(),sdkAppId:this.client_.getSDKAppId()}),this.uplinkConnection_=null,this.uplinkNetworkQuality_=0,this.uplinkRTT_=0,this.uplinkLoss_=0,this.downlinkNetworkQuality_=0,this.downlinkRTT_=0,this.downlinkLoss_=0,this.downlinkPrevStatMap_=new Map,this.downlinkLossAndRTTMap_=new Map,this.interval_=-1,this.emitter_=new Df,this.initialize()}var t,n;return c(e,[{key:"uplinkNetworkQuality",get:function(){return this.uplinkNetworkQuality_},set:function(e){e!==this.uplinkNetworkQuality_&&this.log_.info("uplink network quality change ".concat(this.uplinkNetworkQuality," -> ").concat(e,", rtt: ").concat(this.uplinkRTT_,", loss: ").concat(this.uplinkLoss_)),this.uplinkNetworkQuality_=e}},{key:"downlinkNetworkQuality",get:function(){return this.downlinkNetworkQuality_},set:function(e){if(e!==this.downlinkNetworkQuality_){var t=this.getAverageLossAndRTT(b(this.downlinkLossAndRTTMap_.values())),n=t.rtt,r=t.loss;this.log_.info("downlink network quality change ".concat(this.downlinkNetworkQuality," -> ").concat(e,", rtt: ").concat(n,", loss: ").concat(r))}this.downlinkNetworkQuality_=e}},{key:"initialize",value:function(){var e=this;this.signalChannel_.on(ug.UPLINK_NETWORK_STATS,(function(t){e.handleUplinkNetworkQuality(t)})),this.signalChannel_.on(eg,this.handleSignalConnectionStateChange.bind(this)),this.start()}},{key:"handleUplinkNetworkQuality",value:function(e){if(!this.uplinkConnection_)return this.uplinkNetworkQuality=0,this.uplinkLoss_=0,void(this.uplinkRTT_=0);var t=this.uplinkConnection_.getPeerConnection();if(t&&this.isPeerConnectionDisconnected(t))return this.uplinkNetworkQuality=6,this.uplinkLoss_=0,void(this.uplinkRTT_=0);if(0===e.data.code){var n=e.data.data,r=n.expectAudPkg+n.expectVidPkg,i=n.recvAudPkg+n.recvVidPkg,o=r-i;if(0===r&&0===i)return;this.uplinkLoss_=o<=0?0:Math.round(o/r*100),this.uplinkRTT_=n.rtt,this.uplinkNetworkQuality=this.getNetworkQuality(this.uplinkLoss_,this.uplinkRTT_)}}},{key:"handleDownlinkNetworkQuality",value:(n=o(regeneratorRuntime.mark((function e(){var t,n,r,i,o,a,s,c,u,l,d,h,f,p,g,m=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.connections_&&0!==this.connections_.size){e.next=3;break}return this.downlinkNetworkQuality=0,e.abrupt("return");case 3:if(t=b(this.connections_.values()),n=t.filter((function(e){return e.getPeerConnection()&&e.getPeerConnection().connectionState===td})),t.filter((function(e){return e.getPeerConnection()&&m.isPeerConnectionDisconnected(e.getPeerConnection())})).length!==t.length){e.next=9;break}return this.downlinkNetworkQuality=6,e.abrupt("return");case 9:r=0;case 10:if(!(r<n.length)){e.next=31;break}return i=n[r].getPeerConnection(),e.next=14,this.getStat(i);case 14:if(o=e.sent,a=o.rtt,s=o.totalPacketsLost,c=o.totalPacketsReceived,this.downlinkPrevStatMap_.has(i)){e.next=21;break}return this.downlinkPrevStatMap_.set(i,{totalPacketsLost:s,totalPacketsReceived:c}),e.abrupt("continue",28);case 21:u=0,l=this.downlinkPrevStatMap_.get(i),d=s-l.totalPacketsLost,h=c-l.totalPacketsReceived,u=d<=0||h<0?0:Math.round(d/(d+h)*100),this.downlinkPrevStatMap_.set(i,{totalPacketsLost:s,totalPacketsReceived:c}),this.downlinkLossAndRTTMap_.set(i,{rtt:a,loss:u,userId:n[r].getUserId()});case 28:r++,e.next=10;break;case 31:if(b(this.downlinkPrevStatMap_.keys()).forEach((function(e){m.isPeerConnectionDisconnected(e)&&(m.downlinkPrevStatMap_.delete(e),m.downlinkLossAndRTTMap_.delete(e))})),0!==this.downlinkLossAndRTTMap_.size){e.next=34;break}return e.abrupt("return");case 34:f=this.getAverageLossAndRTT(b(this.downlinkLossAndRTTMap_.values())),p=f.rtt,g=f.loss,this.downlinkRTT_=p,this.downlinkLoss_=g,this.downlinkNetworkQuality=this.getNetworkQuality(g,p);case 38:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"getStat",value:(t=o(regeneratorRuntime.mark((function e(t){var n,r,i,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n={rtt:0,totalPacketsLost:0,totalPacketsReceived:0},t&&Ky()){e.next=3;break}return e.abrupt("return",n);case 3:r=t.getReceivers(),e.prev=4,i=0;case 6:if(!(i<r.length)){e.next=15;break}return o=r[i],e.next=10,o.getStats();case 10:e.sent.forEach((function(e){"candidate-pair"===e.type&&uh(e.currentRoundTripTime)&&(n.rtt=Math.round(1e3*e.currentRoundTripTime)),"inbound-rtp"!==e.type||e.mediaType!==ul&&e.mediaType!==ll||(n.totalPacketsLost+=e.packetsLost,n.totalPacketsReceived+=e.packetsReceived)}));case 12:i++,e.next=6;break;case 15:return e.abrupt("return",n);case 18:return e.prev=18,e.t0=e.catch(4),e.abrupt("return",n);case 21:case"end":return e.stop()}}),e,null,[[4,18]])}))),function(e){return t.apply(this,arguments)})},{key:"getAverageLossAndRTT",value:function(e){var t={rtt:0,loss:0};return Array.isArray(e)&&e.length>0&&(e.forEach((function(e){t.rtt+=e.rtt,t.loss+=e.loss})),Object.keys(t).forEach((function(n){t[n]=Math.round(t[n]/e.length)}))),t}},{key:"getNetworkQuality",value:function(e,t){return e>50||t>500?5:e>30||t>350?4:e>20||t>200?3:e>10||t>100?2:e>=0||t>=0?1:0}},{key:"handleSignalConnectionStateChange",value:function(e){e.state===rg?(this.uplinkRTT_=0,this.uplinkLoss_=0,this.uplinkNetworkQuality=6):e.state===ag&&6===this.uplinkNetworkQuality&&(this.uplinkNetworkQuality=5)}},{key:"handleUplinkConnectionStateChange",value:function(e){var t=e.state;t===ql?(this.uplinkLoss_=0,this.uplinkRTT_=0,this.uplinkNetworkQuality=6):t===Yl&&6===this.uplinkNetworkQuality&&(this.uplinkNetworkQuality=5)}},{key:"isPeerConnectionDisconnected",value:function(e){return!(!e||e.connectionState!==ed&&e.connectionState!==Zl&&e.connectionState!==Ql)}},{key:"setUplinkConnection",value:function(e){this.uplinkConnection_=e,this.uplinkConnection_?this.uplinkConnection_.on(g_,this.handleUplinkConnectionStateChange.bind(this)):(this.uplinkNetworkQuality=0,this.uplinkRTT_=0,this.uplinkLoss_=0)}},{key:"start",value:function(){var e=this;-1===this.interval_?(this.log_.info("start network quality calculating"),this.interval_=Py.setInterval((function(){e.handleDownlinkNetworkQuality(),Of.emit(_p,{client:e.client_,uplinkNetworkQuality:e.uplinkNetworkQuality,downlinkNetworkQuality:e.downlinkNetworkQuality,uplinkRTT:e.uplinkRTT_,uplinkLoss:e.uplinkLoss_,downlinkRTT:e.downlinkRTT_,downlinkLoss:e.downlinkLoss_,downlinkLossAndRTTMap:e.downlinkLossAndRTTMap_}),e.emitter_.emit(k_,{uplinkNetworkQuality:e.uplinkNetworkQuality,downlinkNetworkQuality:e.downlinkNetworkQuality,uplinkRTT:e.uplinkRTT_,uplinkLoss:e.uplinkLoss_,downlinkRTT:e.downlinkRTT_,downlinkLoss:e.downlinkLoss_})}),2e3)):this.log_.info("network quality calculating is already started")}},{key:"stop",value:function(){this.log_.info("stop network quality calculating"),-1!==this.interval_&&(Py.clearInterval(this.interval_),this.interval_=-1)}},{key:"on",value:function(e,t){this.emitter_.on(e,t)}}]),e}(),F_=function(){function e(t){a(this,e),this.log_=Ip.createLogger({id:t.client.getUserId(),userId:t.client.getUserId(),sdkAppId:t.client.getSDKAppId()}),this.localStream_=null,this.prevDevices_=[],this.initialize()}var t,n,r;return c(e,[{key:"initialize",value:(r=o(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:navigator.mediaDevices&&navigator.mediaDevices.addEventListener("devicechange",this.onDeviceChange.bind(this));case 1:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"onDeviceChange",value:(n=o(regeneratorRuntime.mark((function e(){var t,n,r,i=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.localStream_&&this.localStream_.getMediaStream()&&!this.localStream_.getScreen()){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,BS.getDevices();case 4:t=e.sent,n=t.filter((function(e){return i.prevDevices_.findIndex((function(t){var n=t.deviceId;return e.deviceId===n}))<0})),r=this.prevDevices_.filter((function(e){return t.findIndex((function(t){var n=t.deviceId;return e.deviceId===n}))<0})),n.length>0&&this.handleDeviceAdded(this.prevDevices_,n),r.length>0&&this.handleDeviceRemoved(t,r),this.prevDevices_=t;case 10:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"setLocalStream",value:(t=o(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=4;break}return e.next=3,BS.getDevices();case 3:this.prevDevices_=e.sent;case 4:this.localStream_=t;case 5:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"handleDeviceAdded",value:function(e,t){this.log_.warn("devicesAdded: ".concat(JSON.stringify(t))),this.localStream_.updateDeviceIdInUse();var n=t.filter((function(e){return e.kind===xl})),r=t.filter((function(e){return e.kind===Sl})),i=e.filter((function(e){return e.kind===xl})),o=e.filter((function(e){return e.kind===Sl})),a=n.length>0&&0===i.length&&this.localStream_.getVideo(),s=r.length>0&&0===o.length&&this.localStream_.getAudio();if(s&&a)return this.log_.info("new microphone and camera detected, but there was no device before."),void this.localStream_.updateStream({audio:!0,video:!0,cameraId:n[0].deviceId,microphoneId:r[0].deviceId});a&&(this.log_.info("new camera detected, but there was no camera before."),this.localStream_.updateStream({audio:!1,video:!0,cameraId:n[0].deviceId})),s&&(this.log_.info("new microphone detected, but there was no microphone before."),this.localStream_.updateStream({audio:!0,video:!1,microphoneId:r[0].deviceId}))}},{key:"handleDeviceRemoved",value:function(e,t){this.log_.warn("devicesRemoved: ".concat(JSON.stringify(t))),this.localStream_.updateDeviceIdInUse();var n=!1,r=!1,i=this.localStream_.getCameraId(),o=this.localStream_.getMicrophoneId();if("default"===o){var a=this.localStream_.getMicrophoneGroupId(),s=e.filter((function(e){return"default"===e.deviceId&&e.kind===Sl}))[0];s&&s.groupId!==a&&(r=!0)}if(t.forEach((function(e){var t=e.deviceId;i.length>0&&t===i?n=!0:o.length>0&&t===o&&(r=!0)})),n&&r)return this.log_.warn("current camera and microphone in use is lost, cameraId: ".concat(i,", microphoneId: ").concat(o)),void((this.localStream_.getAudio()||this.localStream_.getVideo())&&this.localStream_.updateStream({video:!0,audio:!0}));n&&(this.log_.warn("current camera in use is lost, deviceId: ".concat(i)),this.localStream_.getVideo()&&this.localStream_.updateStream({video:!0,audio:!1})),r&&(this.log_.warn("current microphone in use is lost, deviceId: ".concat(o)),this.localStream_.getAudio()&&this.localStream_.updateStream({video:!1,audio:!0}))}}]),e}(),G_=function(e){var t=Oi(j(this)),n="",r=tt(e);if(r<0||1/0==r)throw RangeError("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n},V_=1..toFixed,j_=Math.floor,B_=function(e,t,n){return 0===t?n:t%2==1?B_(e,t-1,n*e):B_(e*e,t/2,n)},z_=function(e,t,n){for(var r=-1,i=n;++r<6;)i+=t*e[r],e[r]=i%1e7,i=j_(i/1e7)},H_=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=j_(r/t),r=r%t*1e7},W_=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=String(e[t]);n=""===n?r:n+G_.call("0",7-r.length)+r}return n},q_=V_&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!D((function(){V_.call({})}));Mt({target:"Number",proto:!0,forced:q_},{toFixed:function(e){var t,n,r,i,o=us(this),a=tt(e),s=[0,0,0,0,0,0],c="",u="0";if(a<0||a>20)throw RangeError("Incorrect fraction digits");if(o!=o)return"NaN";if(o<=-1e21||o>=1e21)return String(o);if(o<0&&(c="-",o=-o),o>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(o*B_(2,69,1))-69)<0?o*B_(2,-t,1):o/B_(2,t,1),n*=4503599627370496,(t=52-t)>0){for(z_(s,0,n),r=a;r>=7;)z_(s,1e7,0),r-=7;for(z_(s,B_(10,r,1),0),r=t-1;r>=23;)H_(s,1<<23),r-=23;H_(s,1<<r),z_(s,1,1),H_(s,2),u=W_(s)}else z_(s,0,n),z_(s,1<<-t,0),u=W_(s)+G_.call("0",a);return a>0?c+((i=u.length)<=a?"0."+G_.call("0",a-i)+u:u.slice(0,i-a)+"."+u.slice(i-a)):c+u}});var $_,K_=window.AudioContext||window.webkitAudioContext,Y_=null,J_=function(){function e(){var t=this;a(this,e),Y_||(Y_=new K_),this.context_=Y_,this.instant_=0,this.slow_=0,this.clip_=0,this.script_=this.context_.createScriptProcessor(2048,1,1),this.script_.onaudioprocess=function(e){var n,r=e.inputBuffer.getChannelData(0),i=0,o=0;for(n=0;n<r.length;++n)i+=r[n]*r[n],Math.abs(r[n])>.99&&(o+=1);t.instant_=Math.sqrt(i/r.length),t.slow_=.95*t.slow_+.05*t.instant_,t.clip_=o/r.length},Of.on(bp,this.resume,this)}return c(e,[{key:"connectToSource",value:function(e,t){try{var n=new MediaStream;n.addTrack(e),this.mic_=this.context_.createMediaStreamSource(n),this.mic_.connect(this.script_),this.script_.connect(this.context_.destination),sh(t)||t(null)}catch(zS){Ip.error("soundMeter connectToSource error: "+zS),sh(t)||t(zS)}}},{key:"stop",value:function(){this.mic_.disconnect(),this.script_.disconnect(),Of.off(bp,this.resume,this)}},{key:"resume",value:function(){this.context_&&this.context_.resume()}},{key:"getVolume",value:function(){return this.instant_.toFixed(2)}}]),e}(),X_=function(){function e(t){a(this,e),this.stream_=t.stream,this.userId_=t.stream.getUserId(),this.log_=this.stream_.getLogger(),this.track_=t.track,this.div_=t.div,this.muted_=t.muted,this.outputDeviceId_=t.outputDeviceId,this.volume_=t.volume,this.emitter_=new Df,this.initializeElement(),this.state_="NONE",this.soundMeter_=null}var t,n,r,i;return c(e,[{key:"isPlaying",get:function(){return"PLAYING"===this.state_}},{key:"initializeElement",value:function(){var e=new MediaStream;e.addTrack(this.track_);var t=document.createElement(ul);t.srcObject=e,t.muted=this.muted_,t.setAttribute("id","audio_".concat(this.stream_.getId())),t.setAttribute("autoplay","autoplay"),t.setAttribute("playsinline","playsinline"),this.div_.appendChild(t),this.element_=t,this.handleEvents()}},{key:"play",value:(i=o(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.outputDeviceId_){e.next=3;break}return e.next=3,this.element_.setSinkId(this.outputDeviceId_);case 3:return this.setVolume(this.volume_),e.prev=4,e.next=7,this.element_.play();case 7:e.next=15;break;case 9:if(e.prev=9,e.t0=e.catch(4),this.log_.warn("<audio> play() error: "+e.t0),!(t=e.t0.toString()+" <audio>").startsWith("NotAllowedError")){e.next=15;break}throw new Eg({code:kg.PLAY_NOT_ALLOWED,message:t});case 15:case"end":return e.stop()}}),e,this,[[4,9]])}))),function(){return i.apply(this,arguments)})},{key:"handleEvents",value:function(){this.handleElementEvent=this.handleElementEvent.bind(this),this.handleTrackEvent=this.handleTrackEvent.bind(this),this.element_.addEventListener(vl,this.handleElementEvent),this.element_.addEventListener(ml,this.handleElementEvent),this.element_.addEventListener(yl,this.handleElementEvent),this.element_.addEventListener(_l,this.handleElementEvent),this.track_.addEventListener(ml,this.handleTrackEvent),this.track_.addEventListener(pl,this.handleTrackEvent),this.track_.addEventListener(gl,this.handleTrackEvent),this.track_.readyState===ml&&this.handleTrackEvent({type:ml}),this.track_.muted&&this.handleTrackEvent({type:pl})}},{key:"handleElementEvent",value:(r=o(regeneratorRuntime.mark((function e(t){var n,r,i,o,a,s=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.type,e.t0=n,e.next=e.t0===vl?4:e.t0===ml?9:e.t0===yl?12:e.t0===_l?16:27;break;case 4:return this.log_.info("stream - audio player is starting playing"),this.state_="PLAYING",Of.emit(Xf,{stream:this.stream_}),this.emitter_.emit(P_,{state:this.state_,reason:vl}),e.abrupt("break",27);case 9:return this.log_.info("stream - audio player is ended"),"STOPPED"!==this.state_&&(this.state_="STOPPED",this.emitter_.emit(P_,{state:this.state_,reason:ml})),e.abrupt("break",27);case 12:return this.log_.info("stream - audio player is paused"),this.state_="PAUSED",this.emitter_.emit(P_,{state:this.state_,reason:yl}),e.abrupt("break",27);case 16:if(!this.element_||!this.element_.error){e.next=26;break}return r="".concat(r_(),"/").concat(al().name,"/").concat(al().version),e.next=20,BS.getSpeakers();case 20:i=e.sent,o=i[0].label,(a=i.find((function(e){return e.deviceId===s.outputDeviceId_})))&&(o=a.label),this.log_.error("stream - audio player error observed. code: ".concat(this.element_.error.code," message: ").concat(this.element_.error.message," deviceInfo: ").concat(r," speaker: ").concat(o)),vy.uploadEvent("stat-".concat(this.stream_.getType(),"-audio-").concat(Td,"-").concat(this.element_.error.code,"-").concat(r,"-").concat(o),this.element_.error);case 26:return e.abrupt("break",27);case 27:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"handleTrackEvent",value:function(e){var t=e.type;switch(t){case ml:this.log_.info("stream - audio player track is ended"),"STOPPED"!==this.state_&&(this.state_="STOPPED",this.emitter_.emit(P_,{state:this.state_,reason:ml})),Of.emit(mp,{stream:this.stream_,type:t});break;case pl:this.log_.info("stream - audio track is unable to provide media output"),this.stream_.isRemote()||bh(),"PAUSED"!==this.state_&&(this.state_="PAUSED",this.emitter_.emit(P_,{state:this.state_,reason:pl})),Of.emit(gp,{stream:this.stream_,type:t});break;case gl:this.log_.info("stream - audio track is able to provide media output"),"PAUSED"===this.state_&&(this.state_="PLAYING",this.emitter_.emit(P_,{state:this.state_,reason:gl}))}}},{key:"unbindEvents",value:function(){this.element_&&(this.element_.removeEventListener(vl,this.handleElementEvent),this.element_.removeEventListener(ml,this.handleElementEvent),this.element_.removeEventListener(yl,this.handleElementEvent),this.element_.removeEventListener(_l,this.handleElementEvent)),this.track_&&(this.track_.removeEventListener(ml,this.handleTrackEvent),this.track_.removeEventListener(pl,this.handleTrackEvent),this.track_.removeEventListener(gl,this.handleTrackEvent))}},{key:"setSinkId",value:(n=o(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.outputDeviceId_===t){e.next=4;break}return e.next=3,this.element_.setSinkId(t);case 3:this.outputDeviceId_=t;case 4:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"setVolume",value:function(e){this.log_.info("stream - audioElement setVolume to : ".concat(e)),this.element_.volume=e}},{key:"getAudioLevel",value:function(){return this.soundMeter_||(this.soundMeter_=new J_,this.soundMeter_.connectToSource(this.track_)),this.soundMeter_.getVolume()}},{key:"stop",value:function(){this.unbindEvents(),this.div_.removeChild(this.element_),this.element_.srcObject=null,this.soundMeter_&&(this.soundMeter_.stop(),this.soundMeter_=null),this.element_=null}},{key:"resume",value:(t=o(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,this.soundMeter_&&this.soundMeter_.resume(),e.next=4,this.element_.play();case 4:e.next=12;break;case 6:if(e.prev=6,e.t0=e.catch(0),this.log_.warn("<audio> play() error: "+e.t0),!(t=my({key:Pm,data:{error:e.t0}})).startsWith("NotAllowedError")){e.next=12;break}throw new Eg({code:kg.PLAY_NOT_ALLOWED,message:t});case 12:case"end":return e.stop()}}),e,this,[[0,6]])}))),function(){return t.apply(this,arguments)})},{key:"on",value:function(e,t){this.emitter_.on(e,t)}}]),e}(),Z_=Xe.PROPER,Q_=gs.trim;Mt({target:"String",proto:!0,forced:($_="trim",D((function(){return!!ls[$_]()||"​…᠎"!=="​…᠎"[$_]()||Z_&&ls[$_].name!==$_})))},{trim:function(){return Q_(this)}});var eb="".concat("trtc_autoplay","_mask"),tb="".concat("trtc_autoplay","_wrapper"),nb="".concat("trtc_autoplay","_header"),rb="".concat("trtc_autoplay","_content"),ib="".concat("trtc_autoplay","_action_wrapper"),ob="".concat("trtc_autoplay","_question"),ab="".concat("trtc_autoplay","_collapse"),sb="".concat("trtc_autoplay","_action_confirm"),cb="".concat("trtc_autoplay","_detail"),ub="".concat("dialog","-show"),lb="".concat("dialog","-1"),db="".concat("dialog","-2"),hb=!1,fb=function(){return!!document.querySelector(".".concat(tb))},pb="".concat(Jd,"/").concat(_h()?"zh-cn":"en","/tutorial-21-advanced-auto-play-policy.html"),gb="<br><a href='".concat(pb,"' target='_blank'>").concat(_h()?"其他方案?":"Any other solution?","</a>"),mb="".concat(_h()?"浏览器自动播放策略:在用户与页面产生交互(点击、触摸)之前,浏览器禁止播放有声媒体。该弹窗用于帮助用户恢复音视频播放。".concat(gb):"Autoplay Policy: Before user interacts with the web page (clicking, touching), page will not be allowed to play media with sound. This Dialog is used to help users resume playback. ".concat(gb)),vb=function(){function e(){if(a(this,e),this.dialogNode_=null,this.bodyPosition_="",this.content="音视频播放被浏览器拦截,请点击“恢复播放”。",_h()||(this.content='Media playback failed. Click the "Resume" to resume playback.'),!hb){var t=document.createElement("style");t.innerHTML=".".concat(eb,"{position:fixed;top:0;left:0;right:0;bottom:0;width:100vw;height:100vh;display:flex;justify-content:center;align-items:center;background:rgba(0,0,0,0.5);z-index:1500;}.").concat(eb," div:not(.").concat(ib,"){display:block !important;}.").concat(tb,"{padding:14px;background:#fff;border-radius:3px;box-shadow:0px 3px 15px #434343;border:1px solid #d1cfcf;max-width:500px;}.").concat(tb," a{color:").concat("#2473E8",";}.").concat(nb,"{overflow:hidden;text-overflow:ellipsis;font-size:16px;font-weight:600;}.").concat(rb,"{margin:8px 0;}.").concat(ib,"{width:100%;display:flex !important;align-items:center;justify-content:right;float:right;}.").concat(ab,"{margin-right:auto;cursor:pointer}.").concat(ob,"{height:100%;line-height:16px;cursor:pointer;}.").concat(sb,"{margin-left:8px;color:#fff;background:").concat("#2473E8",";padding:4px 12px;outline:none;border:1px solid;border-radius:3px;font-weight:bold;}.").concat(sb,":hover{opacity:0.9;}.").concat(ab,",.").concat(sb,",.").concat(rb,",.").concat(ob,"{font-size:14px;}@media screen and (max-width:750px){.").concat(tb,"{width:80vw;}}"),document.head.appendChild(t),hb=!0}this.showDetail_=!1,this.isCollapseClicked_=!1,this.isQuestionClicked_=!1,this.addDiaLog()}return c(e,[{key:"createDiaLog",value:function(){var e=document.createElement("template");e.innerHTML='<div class="'.concat(eb,"\"><div class='").concat(tb,"'><div class='").concat(nb,"'>").concat(location.host,"</div><div class='").concat(rb,"'>").concat(this.content,"</div><div class='").concat(cb,'\' style="visibility:hidden;width:100%;height:0;font-size:12px;color:gray;">').concat(mb,"</div><div class='").concat(ib,"'></div></div></div>").trim();var t=document.createElement("button");t.className=sb,t.innerText=_h()?"恢复播放":"Resume",t.onclick=this.onConfirm.bind(this);var n=document.createElement("div");n.className=ob,n.innerHTML='<?xml version="1.0" encoding="UTF-8"?>\n    <svg class="icon" width="18" height="18" p-id="2030" t="1639646523624" version="1.1" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg">\n    <path d="m464 784.35c0 26.51 21.49 48 48 48s48-21.49 48-48-21.49-48-48-48-48 21.49-48 48z" p-id="2031"/>\n    <path d="m512 960c-247.04 0-448-200.96-448-448s200.96-448 448-448 448 200.96 448 448-200.96 448-448 448zm0-831.71c-211.58 0-383.71 172.13-383.71 383.71 0 211.55 172.13 383.71 383.71 383.71 211.55 0 383.71-172.16 383.71-383.71 0-211.58-172.16-383.71-383.71-383.71z" p-id="2032"/>\n    <path d="m512 673.7c-17.665 0-32.001-14.336-32.001-31.999v-54.112c0-52.353 40-92.352 75.328-127.65 25.887-25.92 52.672-52.672 52.672-74.017 0-53.343-43.072-96.735-95.999-96.735-53.823 0-95.999 41.536-95.999 94.559 0 17.665-14.336 31.999-32.001 31.999s-32.001-14.336-32.001-31.999c0-87.424 71.775-158.56 160-158.56s160 72.095 160 160.74c0 47.904-36.32 84.192-71.424 119.3-27.84 27.776-56.576 56.512-56.576 82.336v54.112c0 17.665-14.336 32.032-32.001 32.032z" p-id="2033"/>\n    </svg>\n    ',n.onclick=this.onQuestionClick.bind(this);var r=document.createElement("div");r.className=ab,r.innerText="".concat(_h()?"详情 >":"Detail >"),r.onclick=this.onCollapseClick.bind(this);var i=e.content.firstChild,o=i.querySelector(".".concat(ib));return o.appendChild(r),o.appendChild(n),o.appendChild(t),i}},{key:"addDiaLog",value:function(){fb()||(this.dialogNode_=this.createDiaLog(),document.body.appendChild(this.dialogNode_),this.dialogNode_.onclick=this.onConfirm.bind(this),this.dialogNode_.querySelector(".".concat(tb)).onclick=function(e){return e.stopPropagation()},this.bodyPosition_=document.body.style.position,document.body.style.position="fixed",Ip.warn("show autoplay dialog"),vy.uploadEvent({log:ub}))}},{key:"deleteDiaLog",value:function(){this.dialogNode_&&(document.body.removeChild(this.dialogNode_),document.body.style.position=this.bodyPosition_,this.dialogNode_=null)}},{key:"onConfirm",value:function(){Ip.warn("confirm clicked, try resume stream"),Of.emit(bp),this.deleteDiaLog()}},{key:"onCollapseClick",value:function(){var e=this.dialogNode_.querySelector(".".concat(cb));e.style.visibility="".concat(this.showDetail_?"hidden":"visible"),e.style.height="".concat(this.showDetail_?0:"fit-content"),this.showDetail_=!this.showDetail_,this.isCollapseClicked_||vy.uploadEvent({log:lb}),this.isCollapseClicked_=!0}},{key:"onQuestionClick",value:function(){window.open(pb,"_blank"),this.isQuestionClicked_||vy.uploadEvent({log:db}),this.isQuestionClicked_=!0}}]),e}(),yb=function(){function e(t){a(this,e),this.stream_=t.stream,this.userId_=t.stream.getUserId(),this.log_=this.stream_.getLogger(),this.track_=t.track,this.div_=t.div,this.muted_=t.muted,this.objectFit_=t.objectFit,this.mirror_=t.mirror,this.emitter_=new Df,this.initializeElement(),this.state_="NONE",this.pausedRetryCount_=5}var t,n;return c(e,[{key:"isPlaying",get:function(){return"PLAYING"===this.state_}},{key:"initializeElement",value:function(){var e=new MediaStream;e.addTrack(this.track_);var t=document.createElement(ll);t.srcObject=e,t.muted=!0;var n="width: 100%; height: 100%; object-fit: ".concat(this.objectFit_,";");this.mirror_&&(n+="transform: rotateY(180deg);"),t.setAttribute("id","video_".concat(this.stream_.getId())),t.setAttribute("style",n),t.setAttribute("autoplay","autoplay"),t.setAttribute("playsinline","playsinline"),this.div_&&this.div_.appendChild(t),this.element_=t,this.handleEvents()}},{key:"setRect",value:function(e){var t=e.width,n=e.height;this.element_&&(this.element_.style.width=t+"px",this.element_.style.height=n+"px")}},{key:"play",value:(n=o(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.element_.play();case 3:e.next=11;break;case 5:if(e.prev=5,e.t0=e.catch(0),this.log_.warn("<video> play() error: "+e.t0),!(t=e.t0.toString()+" <video>").startsWith("NotAllowedError")){e.next=11;break}throw new Eg({code:kg.PLAY_NOT_ALLOWED,message:t});case 11:case"end":return e.stop()}}),e,this,[[0,5]])}))),function(){return n.apply(this,arguments)})},{key:"handleEvents",value:function(){this.handleElementEvent=this.handleElementEvent.bind(this),this.handleTrackEvent=this.handleTrackEvent.bind(this),this.element_.addEventListener(vl,this.handleElementEvent),this.element_.addEventListener(ml,this.handleElementEvent),this.element_.addEventListener(yl,this.handleElementEvent),this.element_.addEventListener(_l,this.handleElementEvent),this.element_.addEventListener(bl,this.handleElementEvent),this.track_.addEventListener(ml,this.handleTrackEvent),this.track_.addEventListener(pl,this.handleTrackEvent),this.track_.addEventListener(gl,this.handleTrackEvent),this.track_.readyState===ml&&this.handleTrackEvent({type:ml}),this.track_.muted&&this.handleTrackEvent({type:pl})}},{key:"handleElementEvent",value:function(e){switch(e.type){case vl:this.log_.info("stream - video player is starting playing"),this.state_="PLAYING",Of.emit(Jf,{stream:this.stream_}),this.emitter_.emit(P_,{state:this.state_,reason:vl});break;case ml:this.log_.info("stream - video player is ended"),"STOPPED"!==this.state_&&(this.state_="STOPPED",this.emitter_.emit(P_,{state:this.state_,reason:ml}));break;case yl:this.log_.info("stream - video player is paused"),this.div_&&!document.getElementById(this.div_.id)&&this.log_.warn("video container is not in DOM"),this.state_="PAUSED",this.emitter_.emit(P_,{state:this.state_,reason:yl}),this.pausedRetryCount_>0&&!fb()&&(this.log_.info("auto resume when video paused"),this.resume(),this.pausedRetryCount_--);break;case _l:if(this.element_&&this.element_.error){var t="".concat(r_(),"/").concat(al().name,"/").concat(al().version);this.log_.error("stream - video player error observed. code: ".concat(this.element_.error.code," message: ").concat(this.element_.error.message," deviceInfo: ").concat(t)),vy.uploadEvent("stat-".concat(this.stream_.getType(),"-video-").concat(Td,"-").concat(this.element_.error.code,"-").concat(t),this.element_.error)}break;case bl:Of.emit(hp,{stream:this.stream_})}}},{key:"handleTrackEvent",value:function(e){var t=e.type;switch(t){case ml:this.log_.info("stream - video player track is ended"),"STOPPED"!==this.state_&&(this.state_="STOPPED",this.emitter_.emit(P_,{state:this.state_,reason:ml})),Of.emit(pp,{stream:this.stream_,type:t});break;case pl:this.log_.info("stream - video track is unable to provide media output"),this.stream_.isRemote()||bh(),"PAUSED"!==this.state_&&(this.state_="PAUSED",this.emitter_.emit(P_,{state:this.state_,reason:pl})),Of.emit(up,{stream:this.stream_,type:t});break;case gl:this.log_.info("stream - video track is able to provide media output"),"PAUSED"===this.state_&&(this.state_="PLAYING",this.emitter_.emit(P_,{state:this.state_,reason:gl}),Of.emit(lp,{stream:this.stream_}))}}},{key:"unbindEvents",value:function(){this.element_&&(this.element_.removeEventListener(vl,this.handleElementEvent),this.element_.removeEventListener(ml,this.handleElementEvent),this.element_.removeEventListener(yl,this.handleElementEvent),this.element_.removeEventListener(_l,this.handleElementEvent),this.element_.removeEventListener(bl,this.handleElementEvent)),this.track_&&(this.track_.removeEventListener(ml,this.handleTrackEvent),this.track_.removeEventListener(pl,this.handleTrackEvent),this.track_.removeEventListener(gl,this.handleTrackEvent))}},{key:"stop",value:function(){this.unbindEvents(),this.div_&&this.div_.removeChild(this.element_),this.element_.srcObject=null,this.element_=null}},{key:"resume",value:(t=o(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.element_.play();case 3:e.next=11;break;case 5:if(e.prev=5,e.t0=e.catch(0),this.log_.warn("<video> play() error: "+e.t0),!(t=my({key:Nm,data:{error:e.t0}})).startsWith("NotAllowedError")){e.next=11;break}throw new Eg({code:kg.PLAY_NOT_ALLOWED,message:t});case 11:case"end":return e.stop()}}),e,this,[[0,5]])}))),function(){return t.apply(this,arguments)})},{key:"getVideoFrame",value:function(){var e=document.createElement("canvas");return e.width=this.element_.videoWidth,e.height=this.element_.videoHeight,e.getContext("2d").drawImage(this.element_,0,0),e.toDataURL("image/png")}},{key:"on",value:function(e,t){this.emitter_.on(e,t)}},{key:"getElement",value:function(){return this.element_?this.element_:null}}]),e}(),_b=function(){function e(t){a(this,e),this.userId_=t.userId,this.tinyId_=t.tinyId,this.client_=t.client,this.sdpSemantics_=t.client.getSdpSemantics(),this.isUplink_=t.isUplink,this.log_=Ip.createLogger({id:"n|"+this.userId_,userId:this.client_.getUserId(),sdkAppId:this.client_.getSDKAppId(),isLocal:this.isUplink_}),this.signalChannel_=t.signalChannel,this.peerConnection_=null,this.connectTimer_=-1,this.isErrorObserved_=!1,this.emitter_=new Df,this.currentState_=ql,this.waitForPeerConnectionConnectedPromise_=null,this.isReconnecting_=!1,this.reconnectionCount_=0,this.reconnectionTimer_=-1,this.isFirstConnection_=!0}var t;return c(e,[{key:"initialize",value:function(){var e={iceServers:this.client_.getIceServers(),iceTransportPolicy:this.client_.getIceTransportPolicy(),sdpSemantics:this.sdpSemantics_,bundlePolicy:"max-bundle",rtcpMuxPolicy:"require",tcpCandidatePolicy:"disable",IceTransportsType:"nohost"};this.peerConnection_=new RTCPeerConnection(e),this.peerConnection_.onconnectionstatechange=this.onConnectionStateChange.bind(this)}},{key:"close",value:function(){this.log_.info("closing connection"),this.closePeerConnection()}},{key:"closePeerConnection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.peerConnection_&&(this.peerConnection_.onconnectionstatechange=function(){},this.peerConnection_.close(),this.peerConnection_=null,e&&this.emitConnectionStateChangedEvent(ql))}},{key:"getDTLSTransportState",value:function(){if(!this.peerConnection_)return"unknown";var e=null;if(this.isUplink_){if(!Yy()||0===this.peerConnection_.getSenders().length)return"unknown";e=this.peerConnection_.getSenders()[0].transport}else{if(!Ky()||0===this.peerConnection_.getReceivers().length)return"unknown";e=this.peerConnection_.getReceivers()[0].transport}return e?e.state:"unknown"}},{key:"onConnectionStateChange",value:function(e){var t=this.peerConnection_.iceConnectionState,n=this.getDTLSTransportState();if(this.log_.info("onConnectionStateChange() connectionState: "+e.target.connectionState),this.log_.info("ICE Transport state: ".concat(t,", DTLS Transport state: ").concat(n)),e.target.connectionState===Xl&&this.emitConnectionStateChangedEvent($l),e.target.connectionState===Zl||e.target.connectionState===Ql){var r="".concat(this.isUplink_?"uplink":"downlink"," ICE/DTLS Transport connection ").concat(e.target.connectionState,". ICE Transport state: ").concat(t,", DTLS Transport state: ").concat(n),i=new Eg({message:r,code:kg.ICE_TRANSPORT_ERROR});vy.logFailedEvent({userId:this.client_.getUserId(),eventType:_d,error:i}),this.emitConnectionStateChangedEvent(ql),this.isErrorObserved_||this.emitter_.emit(p_,i)}e.target.connectionState!==td&&e.target.connectionState!==nd||(this.logSelectedCandidate(),vy.logSuccessEvent({userId:this.client_.getUserId(),eventType:_d}),this.emitConnectionStateChangedEvent(Yl))}},{key:"emitConnectionStateChangedEvent",value:function(e){e!==this.currentState_&&(this.currentState_===Kl&&e===$l||(Of.emit(vp,{client:this.client_,connection:this,prevState:this.currentState_,state:e}),this.emitter_.emit(g_,{prevState:this.currentState_,state:e}),this.currentState_=e))}},{key:"hitTest",value:function(e){return(0===e||"0"===e)&&this.isUplink_||e===this.tinyId_}},{key:"addEventInternal",value:function(e,t){var n=this.client_.getUserId(),r={eventId:e,eventDesc:t,timestamp:_a(),userId:n,tinyId:this.client_.getTinyId()};this.isUplink_||(r.remoteUserId=this.userId_,r.remoteTinyId=this.tinyId_),fm(n,r)}},{key:"getPeerConnection",value:function(){return this.peerConnection_}},{key:"getClient",value:function(){return this.client_}},{key:"getUserId",value:function(){return this.userId_}},{key:"getTinyId",value:function(){return this.tinyId_}},{key:"logSelectedCandidate",value:(t=o(regeneratorRuntime.mark((function e(){var t,n,r,i,o,a,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.peerConnection_){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,this.peerConnection_.getStats();case 4:t=e.sent,n=w(t),e.prev=6,n.s();case 8:if((r=n.n()).done){e.next=18;break}if((i=_(r.value,2))[0],o=i[1],!t_(o)){e.next=16;break}return a=t.get(o.localCandidateId),s=t.get(o.remoteCandidateId),a&&this.log_.info("local candidate: ".concat(a.candidateType," ").concat(a.protocol,":").concat(a.ip||a.address,":").concat(a.port," ").concat(a.networkType||""," ").concat("relay"===a.candidateType?"relayProtocol:"+a.relayProtocol:"")),s&&this.log_.info("remote candidate: ".concat(s.candidateType," ").concat(s.protocol,":").concat(s.ip||s.address,":").concat(s.port)),e.abrupt("break",18);case 16:e.next=8;break;case 18:e.next=23;break;case 20:e.prev=20,e.t0=e.catch(6),n.e(e.t0);case 23:return e.prev=23,n.f(),e.finish(23);case 26:case"end":return e.stop()}}),e,this,[[6,20,23,26]])}))),function(){return t.apply(this,arguments)})},{key:"getCurrentState",value:function(){return this.currentState_}},{key:"waitForPeerConnectionConnected",value:function(){var e=this;return this.waitForPeerConnectionConnectedPromise_||(this.waitForPeerConnectionConnectedPromise_=new Promise((function(t,n){if(e.currentState_===Yl)return t();var r=-1,i=function n(i){i.state===Yl&&(clearTimeout(r),e.emitter_.off(g_,n,e),t())};r=setTimeout((function(){e.emitter_.off(g_,i,e);var t=new Eg({code:kg.API_CALL_TIMEOUT,message:"connection timeout"});e.peerConnection_||e.isUplink_||(t=e.genRemoteStreamNotExistError()),n(t)}),1e4),e.emitter_.on(g_,i,e)})),this.waitForPeerConnectionConnectedPromise_=this.waitForPeerConnectionConnectedPromise_.then((function(t){return e.waitForPeerConnectionConnectedPromise_=null,t})).catch((function(t){throw e.waitForPeerConnectionConnectedPromise_=null,t}))),this.waitForPeerConnectionConnectedPromise_}},{key:"getReconnectionCount",value:function(){return this.reconnectionCount_}},{key:"startReconnection",value:function(){this.isReconnecting_=!0,this.emitConnectionStateChangedEvent(Kl),this.reconnect(),this.addEventInternal(this.isUplink_?im:sm,"".concat(this.isUplink_?"uplink":"downlink","-connection is reconnecting"))}},{key:"stopReconnection",value:function(){this.log_.info("stop reconnection"),this.isReconnecting_=!1,this.reconnectionCount_=0,this.clearReconnectionTimer(),this.signalChannel_.off(tg,this.reconnect,this)}},{key:"on",value:function(e,t,n){this.emitter_.on(e,t,n)}},{key:"off",value:function(e,t,n){this.emitter_.off(e,t,n)}},{key:"genRemoteStreamNotExistError",value:function(){return new Eg({code:kg.REMOTE_STREAM_NOT_EXIST,message:"because the remote user ".concat(this.userId_," unpublished stream")})}}]),e}();function bb(e,t,n,r){if(this.useStringRoomId_){if(!ch(e)||!/^[A-Za-z\d\s!#$%&()+\-:;<=.>?@[\]^_{}|~,]{1,64}$/.test(e))throw new Eg({code:kg.INVALID_PARAMETER,message:my({key:Hm,data:t,link:{className:r,fnName:n}})})}else if(!(uh(e)&&/^[1-9]\d*$/.test(String(e))&&e<4294967295))throw new Eg({code:kg.INVALID_PARAMETER,message:my({key:Wm,data:t,link:{className:r,fnName:n}})})}function Sb(e,t,n,r){if(!/^[A-Za-z\d_-]*$/.test(e))throw new Eg({code:kg.INVALID_PARAMETER,message:my({key:dv,data:t,link:{className:r,fnName:n}})})}var xb,wb,Ib={TRTC:{createClient:{name:"clientConfig",required:!0,type:Fd,properties:{sdkAppId:{required:!0,type:Pd,allowEmpty:!1},userId:{required:!0,type:Ld,allowEmpty:!1},userSig:{required:!0,type:Ld,allowEmpty:!1},mode:{required:!0,type:Ld,values:["rtc","live"]},useStringRoomId:{type:Nd},autoSubscribe:{type:Nd},enableAutoPlayDialog:{type:Nd},streamId:{type:Ld},userDefineRecordId:{type:Ld},pureAudioPushMode:{type:Pd,values:[1,2]}}},createStream:{name:"streamConfig",required:!0,type:Fd,properties:{userId:{type:Ld},audio:{type:Nd},video:{type:Nd},screen:{type:Nd},screenAudio:{type:Nd},microphoneId:{type:Ld},cameraId:{type:Ld},facingMode:{type:Ld,values:[hl,fl]},audioSource:{instanceOf:MediaStreamTrack},videoSource:{instanceOf:MediaStreamTrack},mirror:{type:Nd}},validate:function(e){if(!sh(e.screen)&&e.screen&&sh(e.audio)&&(e.audio=!1),!(sh(e.audio)&&sh(e.video)||sh(e.audioSource)&&sh(e.videoSource)))throw new Eg({code:kg.INVALID_PARAMETER,message:my({key:Qv})});if(!sh(e.screen)&&!0===e.screen&&!0===e.video)throw new Eg({code:kg.INVALID_PARAMETER,message:my({key:ey})});if(e.audio&&e.screenAudio)throw new Eg({code:kg.INVALID_PARAMETER,message:my({key:ty})});if(!0!==e.screen&&!0===e.screenAudio)throw new Eg({code:kg.INVALID_PARAMETER,message:my({key:ny})});if(!sh(e.screen)&&!0===e.screen&&!this.isScreenShareSupported())throw new Eg({code:kg.INVALID_OPERATION,message:my({key:uy})})}}},CLIENT:{join:{name:"options",required:!0,properties:{roomId:{required:!0,type:[Pd,Ld],allowEmpty:!1,validate:bb},role:{type:[Ld],values:["anchor","audience"]}}},publish:{name:"stream",required:!0,instanceOf:$d,validate:function(e){if(!this.isJoined_)throw new Eg({code:kg.INVALID_OPERATION,message:my({key:Xm})});if("live"===this.mode_&&"audience"===this.role_)throw new Eg({code:kg.INVALID_OPERATION,message:my({key:Qm})});if(this.localStream_)throw new Eg({code:kg.INVALID_OPERATION,message:my({key:tv})});if(!e.getIsReadyToPublish())throw new Eg({code:kg.INVALID_OPERATION,message:my({key:ev})});if(this.notPublishWithoutH264Supported_)throw new Eg({code:kg.NOT_SUPPORTED_H264,message:my({key:ay})})}},unpublish:{name:"stream",required:!0,instanceOf:$d,validate:function(e){if(e!==this.localStream_)throw new Eg({code:kg.INVALID_PARAMETER,message:my({key:Zm})})}},subscribe:[{name:"stream",required:!0,instanceOf:Kd,validate:function(e){if(!e.getConnection())throw new Eg({code:kg.INVALID_OPERATION,message:my({key:nv})});if(this.notSubscribeWithoutH264Supported_)throw new Eg({code:kg.NOT_SUPPORTED_H264,message:my({key:sy})})}},{name:"options",type:Fd,properties:{audio:{type:Nd},video:{type:Nd}}}],unsubscribe:{name:"stream",required:!0,instanceOf:Kd,validate:function(e){if(!e.getConnection())throw new Eg({code:kg.INVALID_OPERATION,message:my({key:nv})})}},switchRole:{name:"role",required:!0,values:["anchor","audience"],validate:function(){if("live"!==this.mode_)throw new Eg({code:kg.INVALID_PARAMETER,message:my({key:iv})});if(!this.isJoined_)throw new Eg({code:kg.INVALID_OPERATION,message:my({key:ov})})}},startPublishCDNStream:{name:"options",required:!1,properties:{streamId:{type:Ld,validate:Sb},appId:{type:Pd,allowEmpty:!1},bizId:{type:Pd,allowEmpty:!1},url:{type:Ld,allowEmpty:!1}}},startMixTranscode:{name:"config",required:!0,type:Fd,properties:{mode:{type:Ld,values:["preset-layout","manual"]},streamId:{type:Ld,validate:Sb},videoWidth:{type:Pd,notLessThanZero:!0},videoHeight:{type:Pd,notLessThanZero:!0},videoBitrate:{type:Pd,notLessThanZero:!0,allowEmpty:!1},videoFramerate:{type:Pd,validate:function(e,t,n,r){if(e<=0||e>30)throw new Eg({code:kg.INVALID_PARAMETER,message:my({key:Hv,link:{className:r,fnName:n}})})}},videoGop:{type:Pd,validate:function(e,t,n,r){if(e<1||e>8)throw new Eg({code:kg.INVALID_PARAMETER,message:my({key:Wv,link:{className:r,fnName:n}})})}},audioSampleRate:{type:Pd,notLessThanZero:!0},audioBitrate:{type:Pd,validate:function(e,t,n,r){if(e<32||e>192)throw new Eg({code:kg.INVALID_PARAMETER,message:my({key:qv,link:{className:r,fnName:n}})})}},audioChannels:{type:Pd,values:[1,2]},backgroundColor:{type:Pd},backgroundImage:{type:Ld},mixUsers:{required:!0,type:Ud,arrayItem:{require:!0,type:Fd,properties:{userId:{required:!0,type:Ld},roomId:{type:[Ld,Pd],validate:bb},pureAudio:{type:Nd},width:{type:Pd,notLessThanZero:!0},height:{type:Pd,notLessThanZero:!0},locationX:{type:Pd,notLessThanZero:!0},locationY:{type:Pd,notLessThanZero:!0},zOrder:{type:Pd},streamType:{type:Ld,values:["main","auxiliary"]}}}}},validate:function(e,t,n,r,i){var o=0,a=0,s=e.mixUsers,c=[];if(s.forEach((function(e,t){if(c.push(e.userId),!e.pureAudio){if(!e.zOrder||e.zOrder<1||e>15)throw new Eg({code:kg.INVALID_PARAMETER,message:my({key:$v,data:"config.mixUsers[".concat(t,"].zOrder"),link:{className:r,fnName:n}})});e.width+e.locationX>o&&(o=e.width+e.locationX),e.height+e.locationY>a&&(a=e.height+e.locationY)}})),c.indexOf(this.getUserId())<0)throw new Eg({code:kg.INVALID_PARAMETER,message:my({key:Kv,link:{className:r,fnName:n}})});if(e.videoWidth<o||e.videoHeight<a)throw new Eg({code:kg.INVALID_PARAMETER,message:my({key:Yv,link:{className:r,fnName:n}})})}}},LOCAL_STREAM:{switchDevice:[{name:"type",required:!0,type:Ld,values:[ul,ll]},{name:"deviceId",required:!0,type:Ld,validate:function(){if(this.screen_&&!this.audio_||this.audioSource_||this.videoSource_)throw new Eg({code:kg.INVALID_OPERATION,message:my({key:Iv})});if(this.publishState_===zd)throw new Eg({code:kg.INVALID_OPERATION,message:my({key:Cv})})}}]},STREAM:{play:[{name:"elementId",required:!0,type:[Ld,"HTMLDivElement"],validate:function(e,t,n){if(this.isPlaying_)throw new Eg({code:kg.INVALID_OPERATION,message:my({key:Jv})});if(ch(e)){var r=document.getElementById(e);if(!r)throw new Eg({code:kg.INVALID_PARAMETER,message:my({key:Xv,data:{key:t,fnName:n}})});if(!(r instanceof HTMLDivElement))throw new Eg({code:kg.INVALID_PARAMETER,message:my({key:Zv,data:{key:t,fnName:n,type:fh(r)}})})}}},{name:"options",type:Fd,properties:{objectFit:{type:Ld,values:["contain","cover"]},muted:{type:Nd}}}]}};function Cb(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,n,r){var i=r.value;return r.value=function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return Tb.call(this,t,r,n,this.name_),i.apply(this,r)},r}}function Mb(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,n,r){var i=r.value;return r.value=o(regeneratorRuntime.mark((function e(){var r,o,a,s=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(r=s.length,o=new Array(r),a=0;a<r;a++)o[a]=s[a];return Tb.call(this,t,o,n,this.name_),e.abrupt("return",i.apply(this,o));case 3:case"end":return e.stop()}}),e,this)}))),r}}function Tb(e,t,n,r){try{for(var i=0;i<e.length;i++)kb.call(this,{rule:e[i],value:t[i],key:e[i].name,fnName:n,className:r})}catch(zS){throw Ip.error(zS),zS}}function kb(e){var t=this,n=e.rule,r=e.value,i=e.key,o=e.fnName,a=e.className;if(sh(r)){if(n.required)throw new Eg({code:kg.INVALID_PARAMETER,message:my({key:Sm,data:{key:i,rule:n,fnName:o,value:r},link:{className:a,fnName:o}})})}else{if(Array.isArray(n.type)){if(!n.type.map((function(e){return e.toLowerCase()})).includes(fh(r)))throw new Eg({code:kg.INVALID_PARAMETER,message:my({key:xm,data:{key:i,rule:n,fnName:o,value:r},link:{className:a,fnName:o}})})}else if(!sh(n.type)&&fh(r)!==n.type)throw new Eg({code:kg.INVALID_PARAMETER,message:my({key:xm,data:{key:i,rule:n,fnName:o,value:r},link:{className:a,fnName:o}})});if(!1===n.allowEmpty){var s=uh(r)&&(0===r||Number.isNaN(r)),c=ch(r)&&""===r.trim();if(s||c)throw new Eg({code:kg.INVALID_PARAMETER,message:my({key:wm,data:{key:i,rule:n,fnName:o,value:r},link:{className:a,fnName:o}})})}if(n.notLessThanZero&&uh(r)&&r<0)throw new Eg({code:kg.INVALID_PARAMETER,message:my({key:zv,data:{key:i,rule:n,fnName:o,value:r},link:{className:a,fnName:o}})});if(ch(n.instanceOf)){if(!r||r.name_!==n.instanceOf)throw new Eg({code:kg.INVALID_PARAMETER,message:my({key:Im,data:{key:i,rule:n,fnName:o,value:r},link:{className:a,fnName:o}})})}else if(ah(n.instanceOf)&&!(r instanceof n.instanceOf))throw new Eg({code:kg.INVALID_PARAMETER,message:my({key:Im,data:{key:i,rule:n,fnName:o,value:r},link:{className:a,fnName:o}})});if(n.values&&!n.values.includes(r))throw new Eg({code:kg.INVALID_PARAMETER,message:my({key:Cm,data:{key:i,rule:n,fnName:o,value:r},link:{className:a,fnName:o}})});var u=n.properties;ih(u)&&"object"===fh(r)&&Object.keys(u).forEach((function(e){kb.call(t,{rule:u[e],value:r&&r[e],key:"".concat(i,".").concat(e),fnName:o,className:a})}));var l=n.arrayItem;ih(l)&&dh(r)&&r.forEach((function(e,n){kb.call(t,{rule:l,value:e,key:"".concat(i,"[").concat(n,"]"),fnName:o,className:a})})),ah(n.validate)&&n.validate.call(this,r,i,o,a,this)}}Mt({target:"Number",stat:!0},{isNaN:function(e){return e!=e}});var Eb=(xb=Mb.apply(void 0,b(Ib.STREAM.play)),I((wb=function(){function e(t){a(this,e),this.name_=Yd,this.userId_=t.userId,this.isRemote_=t.isRemote,this.type_=t.type,this.log_=Ip.createLogger({id:"s".concat(t.seq?t.seq:"","|").concat(this.userId_),userId:sh(t.client)?void 0:t.client.getUserId(),sdkAppId:sh(t.client)?void 0:t.client.getSDKAppId(),isLocal:!this.isRemote_,type:this.isRemote_?this.type_:""}),this.mirror_=!1,this.isRemote_||(this.mirror_=!0),sh(t.mirror)||(this.mirror_=t.mirror),this.client_=null,sh(t.client)||(this.client_=t.client),this.mediaStream_=null,this.div_=null,this.isPlaying_=!1,this.connection_=null,this.audioPlayer_=null,this.videoPlayer_=null,this.muted_=!1,this.objectFit_="cover",this.id_=Ly(),this.audioOutputDeviceId_=0,this.audioVolume_=1,this.emitter_=new Df,this.connectionState_=ql,this.installEvents()}var t,i,s,u,l;return c(e,[{key:"installEvents",value:function(){Of.on(bp,this.restartPlayback,this)}},{key:"uninstallEvents",value:function(){Of.off(bp,this.restartPlayback,this)}},{key:"getType",value:function(){return this.type_}},{key:"getLogger",value:function(){return this.log_}},{key:"isSubscribed",get:function(){return this.type_===Hl&&this.connection_.isMainStreamSubscribed||this.type_===Wl&&this.connection_.isAuxStreamSubscribed}},{key:"isMainVideoSubscribed",get:function(){var e=this.getSubscribedState();return this.type_===Hl&&e&&e.video}},{key:"isMainAudioSubscribed",get:function(){var e=this.getSubscribedState();return this.type_===Hl&&e&&e.audio}},{key:"isAuxVideoSubscribed",get:function(){var e=this.getSubscribedState();return this.type_===Wl&&e&&e.auxiliary}},{key:"emitConnectionStateChanged",value:function(e){e.state!==this.connectionState_&&(e.state!==ql&&this.isRemote_&&!this.isSubscribed||(this.emitter_.emit(R_,e),this.connectionState_=e.state))}},{key:"setConnection",value:function(e){this.connection_!==e&&(e instanceof _b?(null!==this.connection_&&this.connection_.off(g_,this.emitConnectionStateChanged,this),e.on(g_,this.emitConnectionStateChanged,this)):null===e&&this.connection_.off(g_,this.emitConnectionStateChanged,this),this.connection_=e)}},{key:"getConnection",value:function(){return this.connection_}},{key:"play",value:(l=o(regeneratorRuntime.mark((function e(t,n){var i,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.isPlaying_=!0,this.log_.info("stream start to play with options: ".concat(JSON.stringify(n))),(i=document.createElement("div")).setAttribute("id","player_".concat(this.id_)),i.setAttribute("style","width: 100%; height: 100%; position: relative; background-color: black; overflow: hidden;"),o=t,"object"!==r(t)&&(o=document.getElementById(t)),o.appendChild(i),this.div_=i,this.isRemote_||(this.muted_=!0),n&&!sh(n.muted)&&(this.muted_=n.muted),this.isRemote_&&"auxiliary"===this.getType()&&(this.objectFit_="contain"),n&&!sh(n.objectFit)&&(this.objectFit_=n.objectFit),Of.emit(dp,{stream:this}),e.next=16,Promise.all([this.playAudio(),this.playVideo()]);case 16:Of.emit(Kf,{stream:this});case 17:case"end":return e.stop()}}),e,this)}))),function(e,t){return l.apply(this,arguments)})},{key:"playAudio",value:(u=o(regeneratorRuntime.mark((function e(){var t,r=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.hasAudio()&&(!this.isRemote_||this.isMainAudioSubscribed)){e.next=2;break}return e.abrupt("return");case 2:if(t=this.getAudioTrack(),this.audioPlayer_||!t){e.next=17;break}return this.log_.info("stream - create AudioPlayer and play"),this.audioPlayer_=new X_({stream:this,track:t,div:this.div_,muted:this.muted_,outputDeviceId:this.audioOutputDeviceId_,volume:this.audioVolume_}),this.audioPlayer_.on(P_,(function(e){var t={type:ul,state:e.state,reason:e.reason};Of.emit(Yf,n({stream:r},t)),r.emitter_.emit(D_,t)})),e.prev=7,e.next=10,this.audioPlayer_.play();case 10:e.next=17;break;case 12:throw e.prev=12,e.t0=e.catch(7),this.client_&&this.client_.getEnableAutoPlayDialog()&&new vb,this.emitter_.emit(L_,e.t0),e.t0;case 17:case"end":return e.stop()}}),e,this,[[7,12]])}))),function(){return u.apply(this,arguments)})},{key:"playVideo",value:(s=o(regeneratorRuntime.mark((function e(){var t,r=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.hasVideo()&&(!this.isRemote_||this.isMainVideoSubscribed||this.isAuxVideoSubscribed)){e.next=2;break}return e.abrupt("return");case 2:if(t=this.getVideoTrack(),this.videoPlayer_||!t){e.next=18;break}return Of.emit(fp,{stream:this}),this.log_.info("stream - create VideoPlayer and play"),this.videoPlayer_=new yb({stream:this,track:t,div:this.div_,muted:this.muted_,objectFit:this.objectFit_,mirror:this.mirror_}),this.videoPlayer_.on(P_,(function(e){var t={type:ll,state:e.state,reason:e.reason};Of.emit(Yf,n({stream:r},t)),r.emitter_.emit(D_,t)})),e.prev=8,e.next=11,this.videoPlayer_.play();case 11:e.next=18;break;case 13:throw e.prev=13,e.t0=e.catch(8),this.client_&&this.client_.getEnableAutoPlayDialog()&&new vb,this.emitter_.emit(L_,e.t0),e.t0;case 18:case"end":return e.stop()}}),e,this,[[8,13]])}))),function(){return s.apply(this,arguments)})},{key:"stopAudio",value:function(){this.audioPlayer_&&(this.log_.info("stream - stop AudioPlayer"),this.audioPlayer_.stop(),this.audioPlayer_=null)}},{key:"stopVideo",value:function(){this.videoPlayer_&&(this.log_.info("stream - stop VideoPlayer"),this.videoPlayer_.stop(),this.videoPlayer_=null)}},{key:"restartPlayback",value:function(){this.audioPlayer_&&!this.audioPlayer_.isPlaying&&this.restartAudio(),this.videoPlayer_&&!this.videoPlayer_.isPlaying&&this.restartVideo()}},{key:"restartAudio",value:function(){this.isPlaying_&&(this.stopAudio(),this.playAudio().catch((function(e){})))}},{key:"restartVideo",value:function(){this.isPlaying_&&(this.stopVideo(),this.playVideo().catch((function(e){})))}},{key:"stop",value:function(){this.isPlaying_&&(this.isPlaying_=!1,this.stopAudio(),this.stopVideo(),this.div_.parentNode.removeChild(this.div_))}},{key:"resume",value:(i=o(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isPlaying_){e.next=2;break}return e.abrupt("return");case 2:if(this.log_.info("stream - resume"),!this.audioPlayer_){e.next=6;break}return e.next=6,this.audioPlayer_.resume();case 6:if(!this.videoPlayer_){e.next=9;break}return e.next=9,this.videoPlayer_.resume();case 9:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"close",value:function(){this.isPlaying_&&this.stop(),this.isRemote_||(this.mediaStream_&&(this.mediaStream_.preventEvent=1,this.mediaStream_.getTracks().forEach((function(e){e.stop()})),this.mediaStream_=null),this.uninstallEvents())}},{key:"muteAudio",value:function(){return this.addRemoteEvent(!0,ul),this.doEnableTrack(ul,!1)}},{key:"muteVideo",value:function(){return this.addRemoteEvent(!0,ll),this.doEnableTrack(ll,!1)}},{key:"unmuteAudio",value:function(){return this.addRemoteEvent(!1,ul),this.doEnableTrack(ul,!0)}},{key:"unmuteVideo",value:function(){return this.addRemoteEvent(!1,ll),this.doEnableTrack(ll,!0)}},{key:"addRemoteEvent",value:function(e,t){if(this.isRemote_&&this.client_){var n=this.client_.getUserId(),r="".concat(e?pl:gl," remote ").concat(t);fm(n,{eventId:t===ul?e?qg:Kg:e?Wg:$g,eventDesc:r,timestamp:(new Date).getTime(),userId:n,tinyId:this.client_.getTinyId(),remoteUserId:this.userId_,remoteTinyId:this.connection_.getTinyId()})}}},{key:"doEnableTrack",value:function(e,t){var n=!1;return e===ul?this.mediaStream_.getAudioTracks().forEach((function(e){n=!0,e.enabled=t})):this.mediaStream_.getVideoTracks().forEach((function(e){n=!0,e.enabled=t})),n}},{key:"getId",value:function(){return this.id_}},{key:"getUserId",value:function(){return this.userId_}},{key:"getTinyId",value:function(){return this.connection_?this.connection_.getTinyId():""}},{key:"isPlaying",value:function(){return this.isPlaying_}},{key:"setAudioOutput",value:(t=o(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.audioOutputDeviceId_=t,!this.audioPlayer_){e.next=4;break}return e.next=4,this.audioPlayer_.setSinkId(t);case 4:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"setAudioVolume",value:function(e){this.audioVolume_=e,this.log_.info("setAudioVolume to ".concat(e)),this.audioPlayer_&&this.audioPlayer_.setVolume(e)}},{key:"getAudioLevel",value:function(){var e=0;return this.audioPlayer_&&(e=this.audioPlayer_.getAudioLevel()),e}},{key:"hasAudio",value:function(){if(this.isRemote_){if(!this.connection_)return!1;var e=this.connection_.getTrackState();return this.type_===Hl&&e.audio}return!!this.getAudioTrack()}},{key:"hasVideo",value:function(){if(this.isRemote_){if(!this.connection_)return!1;var e=this.connection_.getTrackState();return this.type_===Wl?e.auxiliary:e.video}return!!this.getVideoTrack()}},{key:"getSubscribedState",value:function(){return this.isRemote_&&this.connection_?this.connection_.getSubscribeState():null}},{key:"getAudioTrack",value:function(){var e=null;if(this.mediaStream_){var t=this.mediaStream_.getAudioTracks();t.length>0&&(e=t[0])}return e}},{key:"getVideoTrack",value:function(){var e=null;if(this.mediaStream_){var t=this.mediaStream_.getVideoTracks();t.length>0&&(e=t[0])}return e}},{key:"getVideoFrame",value:function(){return this.videoPlayer_?this.videoPlayer_.getVideoFrame():null}},{key:"getMediaStream",value:function(){return this.mediaStream_}},{key:"setMediaStream",value:function(e){e!==this.mediaStream_&&(this.mediaStream_&&this.mediaStream_.getTracks().forEach((function(e){return e.stop()})),this.mediaStream_=e)}},{key:"updateVideoPlayingState",value:function(e){this.isPlaying_&&(e?(this.log_.info("playing state updated, play video"),this.playVideo().catch((function(e){}))):(this.log_.info("playing state updated, stop video"),this.stopVideo()))}},{key:"updateAudioPlayingState",value:function(e){this.isPlaying_&&(e?(this.log_.info("playing state updated, play audio"),this.playAudio().catch((function(e){}))):(this.log_.info("playing state updated, stop audio"),this.stopAudio()))}},{key:"on",value:function(e,t,n){this.emitter_.on(e,t,n)}},{key:"off",value:function(e,t,n){"*"===e?this.emitter_.removeAllListeners():this.emitter_.off(e,t,n)}},{key:"isRemote",value:function(){return this.isRemote_}},{key:"getDiv",value:function(){return this.div_}},{key:"getObjectFit",value:function(){return this.objectFit_}},{key:"getMuted",value:function(){return this.muted_}},{key:"getClient",value:function(){return this.client_}}]),e}()).prototype,"play",[xb],Object.getOwnPropertyDescriptor(wb.prototype,"play"),wb.prototype),wb),Ab=function(e){l(r,e);var t=v(r);function r(e){var i;a(this,r);var o={isRemote:!0,type:e.type},s=n(n({},e),o);return(i=t.call(this,s)).name_=Kd,i.isInSubscriptionCycle_=!1,i.isStreamAddedEventEmitted_=!1,i.isAbleToCallSubscription_=!0,i}return c(r,[{key:"installEvents",value:function(){y(d(r.prototype),"installEvents",this).call(this),Of.on(tp,this.handleStreamSubscribed,this),Of.on(np,this.handleStreamUnsubscribed,this)}},{key:"uninstallEvents",value:function(){y(d(r.prototype),"uninstallEvents",this).call(this),Of.off(tp,this.handleStreamSubscribed,this),Of.off(np,this.handleStreamUnsubscribed,this)}},{key:"handleStreamSubscribed",value:function(e){e.client===this.client_&&e.stream===this&&this.connection_.getCurrentState()===Yl&&this.emitConnectionStateChanged({prevState:ql,state:Yl})}},{key:"handleStreamUnsubscribed",value:function(e){e.client===this.client_&&e.stream===this&&this.emitConnectionStateChanged({prevState:Yl,state:ql})}},{key:"getType",value:function(){return y(d(r.prototype),"getType",this).call(this)}},{key:"getIsAbleToCallSubscription",value:function(){return this.isAbleToCallSubscription_}},{key:"setIsAbleToCallSubscription",value:function(e){this.isAbleToCallSubscription_=e}},{key:"setInSubscriptionCycle",value:function(e){this.isInSubscriptionCycle_=e}},{key:"isInSubscriptionCycle",value:function(){return this.isInSubscriptionCycle_}},{key:"setIsStreamAddedEventEmitted",value:function(e){this.isStreamAddedEventEmitted_=e}},{key:"getIsStreamAddedEventEmitted",value:function(){return this.isStreamAddedEventEmitted_}},{key:"getAudioTrack",value:function(){return this.connection_&&this.connection_.getTrackState().audio?y(d(r.prototype),"getAudioTrack",this).call(this):null}},{key:"getVideoTrack",value:function(){if(!this.connection_)return null;var e=this.connection_.getTrackState();return this.type_===Hl&&!e.video||this.type_===Wl&&!e.auxiliary?null:y(d(r.prototype),"getVideoTrack",this).call(this)}},{key:"close",value:function(){y(d(r.prototype),"close",this).call(this)}}]),r}(Eb),Db=function(){function e(t){a(this,e),this.client_=t.client,this.subscribedStreams_=new Map,this.unsubscribedStreams_=new Map,this.subscriptedOptions_=new Map,this.autoRecoveryFlags_=new Map}var t,n,r;return c(e,[{key:"isEnabled",get:function(){return"webrtc"!==this.client_.getEnv()}},{key:"recover",value:(r=o(regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.getUserId(),r=t.getType(),this.hasAutoRecoveryFlag(n,r)){e.next=5;break}return e.abrupt("return");case 5:if(i=this.getUnsubscribedStream(n,r)?"unsubscribe":"subscribe",e.prev=6,Ip.warn("recover() try to recover subscription [".concat(i,"][").concat(n,"][").concat(r,"]")),"subscribe"!==i){e.next=13;break}return e.next=11,this.recoverSubscription(n,t);case 11:e.next=15;break;case 13:return e.next=15,this.recoverUnsubscription(n,t);case 15:vy.logSuccessEvent({userId:this.client_.getUserId(),eventType:Id}),Ip.warn("recover() recover successfully [".concat(i,"][").concat(n,"][").concat(r,"]")),e.next=23;break;case 19:e.prev=19,e.t0=e.catch(6),Ip.error("recover() recover failed [".concat(i,"][").concat(n,"][").concat(r,"]"),e.t0),vy.logFailedEvent({userId:this.client_.getUserId(),eventType:Id,error:e.t0});case 23:this.deleteAutoRecoveryFlag(n,r);case 24:case"end":return e.stop()}}),e,this,[[6,19]])}))),function(e){return r.apply(this,arguments)})},{key:"recoverSubscription",value:(n=o(regeneratorRuntime.mark((function e(t,n){var r,i,o,a,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this.getOptions(t,n.getType()),i=this.getSubscribedStream(t,n.getType()),r&&i){e.next=4;break}return e.abrupt("return");case 4:o=this.getStreamMuteState(i),a=o.isAudioMuted,s=o.isVideoMuted,this.mergeStream(i,n),this.recoverPlayingState(i),a&&i.doEnableTrack(ul,!1),s&&i.doEnableTrack(ll,!1);case 9:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"recoverUnsubscription",value:(t=o(regeneratorRuntime.mark((function e(t,n){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this.getUnsubscribedStream(t,n.getType())){e.next=3;break}return e.abrupt("return");case 3:this.mergeStream(r,n);case 4:case"end":return e.stop()}}),e,this)}))),function(e,n){return t.apply(this,arguments)})},{key:"getStreamMuteState",value:function(e){var t={isAudioMuted:!1,isVideoMuted:!1},n=e.getMediaStream();return n&&(t.isAudioMuted=n.getAudioTracks().map((function(e){return e.enabled})).includes(!1),t.isVideoMuted=n.getVideoTracks().map((function(e){return e.enabled})).includes(!1)),t}},{key:"recoverPlayingState",value:function(e){var t=e.isPlaying(),n=e.getDiv();if(t&&n){var r=n.parentNode;e.stop(),e.play(r,{objectFit:e.getObjectFit(),muted:e.getMuted()})}}},{key:"mergeStream",value:function(e,t){var n=t.getConnection(),r=t.getMediaStream();e.setConnection(n),n.setRemoteStream(r.id,e),e.setMediaStream(r),e.updateAudioPlayingState(t.hasAudio()),e.updateVideoPlayingState(t.hasVideo())}},{key:"addSubscriptionRecord",value:function(e,t,n){var r=t.getType();if(this.subscribedStreams_.has(e))this.subscribedStreams_.get(e).set(r,t);else{var i=new Map;i.set(t.getType(),t),this.subscribedStreams_.set(e,i)}if(this.subscriptedOptions_.has(e))this.subscriptedOptions_.get(e).set(r,n);else{var o=new Map;o.set(t.getType(),n),this.subscriptedOptions_.set(e,o)}this.deleteUnsubscriptionRecord(e,r)}},{key:"addUnsubscriptionRecord",value:function(e,t){if(this.unsubscribedStreams_.has(e))this.unsubscribedStreams_.get(e).set(t.getType(),t);else{var n=new Map;n.set(t.getType(),t),this.unsubscribedStreams_.set(e,n)}this.deleteSubscriptionRecord(e,t.getType())}},{key:"getSubscribedStream",value:function(e,t){return this.subscribedStreams_.has(e)&&this.subscribedStreams_.get(e).has(t)?this.subscribedStreams_.get(e).get(t):null}},{key:"getOptions",value:function(e,t){return this.subscriptedOptions_.has(e)&&this.subscriptedOptions_.get(e).has(t)?this.subscriptedOptions_.get(e).get(t):null}},{key:"getUnsubscribedStream",value:function(e,t){return this.unsubscribedStreams_.has(e)&&this.unsubscribedStreams_.get(e).has(t)?this.unsubscribedStreams_.get(e).get(t):null}},{key:"deleteSubscriptionRecord",value:function(e,t){this.subscribedStreams_.has(e)&&this.subscribedStreams_.get(e).delete(t),this.subscriptedOptions_.has(e)&&this.subscriptedOptions_.get(e).delete(t)}},{key:"deleteUnsubscriptionRecord",value:function(e,t){this.unsubscribedStreams_.has(e)&&this.unsubscribedStreams_.get(e).delete(t)}},{key:"markAllStream",value:function(){for(var e=0,t=b(this.subscribedStreams_.entries());e<t.length;e++)for(var n=_(t[e],2),r=n[0],i=0,o=b(n[1].entries());i<o.length;i++){var a=_(o[i],1)[0];this.setAutoRecoveryFlag(r,a)}for(var s=0,c=b(this.unsubscribedStreams_.entries());s<c.length;s++)for(var u=_(c[s],2),l=u[0],d=0,h=b(u[1].entries());d<h.length;d++){var f=_(h[d],1)[0];this.setAutoRecoveryFlag(l,f)}}},{key:"setAutoRecoveryFlag",value:function(e,t){if(Ip.info("setAutoRecoveryFlag() mark [".concat(e,"][").concat(t,"]")),this.autoRecoveryFlags_.has(e))this.autoRecoveryFlags_.get(e).set(t);else{var n=new Map;n.set(t),this.autoRecoveryFlags_.set(e,n)}}},{key:"hasAutoRecoveryFlag",value:function(e,t){return!!this.isEnabled&&this.autoRecoveryFlags_.has(e)&&this.autoRecoveryFlags_.get(e).has(t)}},{key:"deleteAutoRecoveryFlag",value:function(e,t){this.autoRecoveryFlags_.has(e)&&this.autoRecoveryFlags_.get(e).delete(t)}},{key:"delete",value:function(e){this.unsubscribedStreams_.delete(e),this.subscribedStreams_.delete(e),this.subscriptedOptions_.delete(e),this.autoRecoveryFlags_.delete(e)}}]),e}(),Ob=$t("slice"),Rb=ve("species"),Lb=[].slice,Pb=Math.max;Mt({target:"Array",proto:!0,forced:!Ob},{slice:function(e,t){var n,r,i,o=B(this),a=st(o),s=it(e,a),c=it(void 0===t?a:t,a);if(kt(o)&&(n=o.constructor,(Vt(n)&&(n===Array||kt(n.prototype))||H(n)&&null===(n=n[Rb]))&&(n=void 0),n===Array||void 0===n))return Lb.call(o,s,c);for(r=new(void 0===n?Array:n)(Pb(c-s,0)),i=0;s<c;s++,i++)s in o&&$i(r,i,o[s]);return r.length=i,r}}),Mt({target:"String",proto:!0,forced:_m("small")},{small:function(){return ym(this,"small","","")}});var Nb=function(){function e(t){a(this,e),this.player_=t,this.canvas_=document.createElement(cl),this.canvasCtx_=this.canvas_.getContext("2d")}return c(e,[{key:"setCanvasRect",value:function(e,t){this.canvas_.width=e,this.canvas_.height=t}},{key:"drawVideoToCanvas",value:function(){var e=this.player_.getElement();this.canvasCtx_.drawImage(e,0,0,this.canvas_.width,this.canvas_.height)}},{key:"generateVideoTrackFromCanvasCapture",value:function(e){return this.canvas_.captureStream(e).getVideoTracks()[0]}},{key:"generateStreamFromTrack",value:function(e){var t=new MediaStream;return t.addTrack(e),t}},{key:"destroy",value:function(){this.player_.stop(),this.canvas_=null,this.canvasCtx_=null}},{key:"canvas",get:function(){return this.canvas_}},{key:"canvasCtx",get:function(){return this.canvasCtx_}},{key:"canDrawVideoToCanvas",get:function(){if(this.player_){var e=this.player_.getElement();if(e)return e.readyState===e.HAVE_ENOUGH_DATA}return!1}}]),e}(),Ub=function(){function e(t){a(this,e),this.localStream_=t,this.player_=new yb({stream:t,track:t.getVideoTrack(),muted:!0,objectFit:"cover",mirror:!1}),this.player_.play().then((function(){Ip.info("VideoGenerator: play local video success")})).catch((function(){Ip.error("VideoGenerator: Failed to play local video")})),this.processor_=new Nb(this.player_)}return c(e,[{key:"generateSmallVideoTrack",value:function(e){var t=this.getSmallVideoProfile(e);this.processor_.setCanvasRect(t.width,t.height),this.player_.setRect({width:t.width,height:t.height});var n=this.processor_.generateVideoTrackFromCanvasCapture(t.frameRate);return this.interval_=Py.setInterval(this.render.bind(this),Math.ceil(1e3/t.frameRate)),n}},{key:"render",value:function(){this.processor_.canDrawVideoToCanvas&&this.processor_.drawVideoToCanvas()}},{key:"destroy",value:function(){Py.clearInterval(this.interval_),this.processor_&&this.processor_.destroy()}},{key:"getSmallVideoProfile",value:function(e){var t,n=this.localStream_.getVideoTrack(),r=this.localStream_.getVideoProfile(),i=n.getSettings(),o=i&&i.width&&i.height?{width:i.width,height:i.height}:r,a=o.width*o.height,s=e.width*e.height;return Ip.log("big stream resolution: ".concat(o.height,"*").concat(o.width," small stream resolution: ").concat(e.height,"*").concat(e.width," ")),a>s?t=a/s:(Ip.warn("Small stream resolution is larger than big stream, which is invalid. big: ".concat(o.width," * ").concat(o.height," small: ").concat(e.width," * ").concat(e.height)),t=a/19200),{width:parseInt(o.width/Math.sqrt(t)),height:parseInt(o.height/Math.sqrt(t)),frameRate:e.frameRate}}}]),e}(),Fb={voiceActivityDetection:!1},Gb=function(e){l(x,e);var t,n,r,i,s,u,h,f,p,g,m,_,b,S=v(x);function x(e){var t;return a(this,x),(t=S.call(this,e)).localStream_=null,t.exchangeSDPTimeout_=-1,t.smallGenerator_=null,t.isSDPExchanging_=!1,t.ssrc_={audio:0,video:0,small:0},t.canvasTrack_=null,t}return c(x,[{key:"initialize",value:function(){y(d(x.prototype),"initialize",this).call(this),this.installEvents()}},{key:"reset",value:function(){y(d(x.prototype),"close",this).call(this),this.uninstallEvents(),this.clearExchangeSDPTimeout(),this.canvasTrack_=null,this.localStream_&&this.localStream_.clearCanvas()}},{key:"close",value:function(){this.reset(),this.emitConnectionStateChangedEvent(ql),this.smallGenerator_&&(this.smallGenerator_.destroy(),this.smallGenerator_=null)}},{key:"installEvents",value:function(){this.emitter_.on(p_,this.handleError,this),this.emitter_.on(g_,this.handleConnectionStateChange,this)}},{key:"uninstallEvents",value:function(){this.emitter_.off(p_,this.handleError,this),this.emitter_.off(g_,this.handleConnectionStateChange,this)}},{key:"publish",value:(b=o(regeneratorRuntime.mark((function e(t){var n,r,i,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.localStream_=t,n=t.getMediaStream(),this.log_.info("is publishing stream: ".concat(t.getId())),r=this.localStream_.getAudioTrack(),i=this.localStream_.getVideoTrack(),r&&this.peerConnection_.addTrack(r,n),i&&(nl&&hh(i)?(this.canvasTrack_=this.localStream_.genCanvasTrack(i),this.peerConnection_.addTrack(this.canvasTrack_,n)):this.peerConnection_.addTrack(i,n),this.client_.getIsEnableSmallStream()&&(this.smallGenerator_=new Ub(this.localStream_),o=this.smallGenerator_.generateSmallVideoTrack(this.client_.smallStreamConfig_),this.peerConnection_.addTrack(o,n))),e.next=9,this.connect();case 9:return e.abrupt("return",t);case 10:case"end":return e.stop()}}),e,this)}))),function(e){return b.apply(this,arguments)})},{key:"updateMediaSettings",value:function(e){var t=this,n=this.client_.getSystemResult().detail,r=n.isH264EncodeSupported,i=n.isVp8EncodeSupported,o="";r?o="H264":i&&(o="VP8");var a={videoCodec:o,videoWidth:0,videoHeight:0,videoBps:0,videoFps:0,audioCodec:"opus",audioFs:0,audioChannel:0,audioBps:0};return c_?e.getTracks().forEach((function(e){var n=e.getSettings();if(e.kind===ul){var r=1;n.channelCount&&(r=n.channelCount),a.audioChannel=r,a.audioBps=1e3*t.localStream_.getAudioBitrate(),a.audioFs=n.sampleRate}else e.kind===ll&&(t.client_.getIsEnableSmallStream()&&(a.smallVideoWidth=t.client_.smallStreamConfig.width,a.smallVideoHeight=t.client_.smallStreamConfig.height,a.smallVideoFps=t.client_.smallStreamConfig.framerate,a.smallVideoBps=1e3*t.client_.smallStreamConfig.bitrate),a.videoWidth=n.width,a.videoHeight=n.height,a.videoFps=n.frameRate,a.videoBps=1e3*t.localStream_.getVideoBitrate())})):a=this.getMediaSettingsFromProfile(a),this.log_.info("updateMediaSettings: "+JSON.stringify(a)),a}},{key:"getMediaSettingsFromProfile",value:function(e){var t=this.localStream_;if(t){if(t.getAudioTrack()){var n=t.getAudioProfile();e.audioChannel=n.channelCount,e.audioBps=1e3*n.bitrate,e.audioFs=n.sampleRate}if(t.getVideoTrack()){var r=t.getVideoProfile();e.videoWidth=r.width,e.videoHeight=r.height,e.videoFps=r.frameRate,e.videoBps=1e3*r.bitrate}}return e}},{key:"addTrack",value:(_=o(regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.peerConnection_){e.next=19;break}if(t.kind===ll&&nl&&hh(t)&&(t=this.canvasTrack_=this.localStream_.genCanvasTrack(t)),this.log_.info("is adding ".concat(t.kind," track to current published local stream")),!(Jy()&&this.peerConnection_.getTransceivers().findIndex((function(e){return"stopped"===e.direction}))>=0)){e.next=7;break}return this.log_.warn("transceiver is stopping, negotiate sdp first"),e.next=7,this.updateOffer(Vd,t);case 7:if(!(n=this.peerConnection_.getSenders().find((function(e){return e.track&&e.track.kind===t.kind})))){e.next=14;break}return this.log_.warn("sender already exists, remove sender first"),r=n.track,this.removeSender(n),e.next=14,this.updateOffer(Vd,r);case 14:return i=this.localStream_.getMediaStream(),this.peerConnection_.addTrack(t,i),e.next=18,this.updateOffer(Gd,t);case 18:fm(this.userId_,{eventId:t.kind===ul?Dg:Ag,eventDesc:"add ".concat(t.kind," track to current published stream"),timestamp:_a(),userId:this.userId_,tinyId:this.tinyId_});case 19:case"end":return e.stop()}}),e,this)}))),function(e){return _.apply(this,arguments)})},{key:"isNeedToResetOfferOrder",value:function(){if("plan-b"===this.sdpSemantics_||!this.peerConnection_||!this.peerConnection_.localDescription)return!1;for(var e=this.peerConnection_.localDescription.sdp,t=Ey(e),n=0;n<t.media.length;n++)if(0===t.media[n].mid&&t.media[n].type===ll)return!0;return!1}},{key:"removeSender",value:function(e){var t=null;Jy()&&(t=this.peerConnection_.getTransceivers().find((function(t){return t.sender&&t.sender.track===e.track}))),this.peerConnection_.removeTrack(e),t&&ah(t.stop)&&(this.log_.info("stop transceiver"),t.stop())}},{key:"removeTrack",value:(m=o(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.peerConnection_||!Yy()){e.next=14;break}if(t.kind===ll&&nl&&this.canvasTrack_&&(t=this.canvasTrack_,this.localStream_.clearCanvas()),this.log_.info("is removing ".concat(t.kind," track from current published local stream")),t.kind!==ll||!this.isNeedToResetOfferOrder()){e.next=9;break}return this.reset(),this.initialize(),e.next=8,this.publish(this.localStream_);case 8:return e.abrupt("return");case 9:return(n=this.peerConnection_.getSenders().find((function(e){return e.track===t})))&&this.removeSender(n),e.next=13,this.updateOffer(Vd,t);case 13:fm(this.userId_,{eventId:t.kind===ul?Rg:Og,eventDesc:"remove ".concat(t.kind," track from current published stream"),timestamp:_a(),userId:this.userId_,tinyId:this.tinyId_});case 14:case"end":return e.stop()}}),e,this)}))),function(e){return m.apply(this,arguments)})},{key:"isReplaceTrackAvailable",value:function(){return"RTCRtpSender"in window&&"replaceTrack"in window.RTCRtpSender.prototype}},{key:"replaceTrack",value:(g=o(regeneratorRuntime.mark((function e(t){var n,r=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.kind!==ll||!nl||!this.canvasTrack_){e.next=2;break}return e.abrupt("return");case 2:if(this.isReplaceTrackAvailable()&&Yy()){e.next=4;break}throw new Eg({code:kg.INVALID_OPERATION,message:my({key:cy})});case 4:if(this.peerConnection_){e.next=6;break}throw new Eg({code:kg.INVALID_OPERATION,message:my({key:Mv})});case 6:if(0!==(n=this.peerConnection_.getSenders()).length){e.next=9;break}throw new Eg({code:kg.INVALID_OPERATION,message:my({key:Mv})});case 9:n.forEach((function(e){e.track&&e.track.kind===t.kind&&(r.log_.info("is replacing ".concat(t.kind," track to current published local stream")),e.replaceTrack(t))})),fm(this.userId_,{eventId:t.kind===ul?Hg:zg,eventDesc:"replace ".concat(t.kind," track from current published stream"),timestamp:_a(),userId:this.userId_,tinyId:this.tinyId_});case 11:case"end":return e.stop()}}),e,this)}))),function(e){return g.apply(this,arguments)})},{key:"setBandwidth",value:(p=o(regeneratorRuntime.mark((function e(t,n,r){var i,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isUplink_){e.next=2;break}return e.abrupt("return",r);case 2:if(Zy()){e.next=4;break}return e.abrupt("return",n===ll?this.updateVideoBandwidthRestriction(r,t):this.updateAudioBandwidthRestriction(r,t));case 4:if(!(i=this.peerConnection_.getSenders().find((function(e){return e.track&&e.track.kind===n})))){e.next=20;break}return(o=i.getParameters()).encodings&&0!==o.encodings.length||(o.encodings=[{}]),"unlimited"===t?delete o.encodings[0].maxBitrate:o.encodings[0].maxBitrate=1e3*t,e.prev=9,e.next=12,i.setParameters(o);case 12:return this.log_.info(n+" bandwidth was set to "+t+" kbps"),e.abrupt("return",r);case 16:return e.prev=16,e.t0=e.catch(9),this.log_.info("failed to set bandwidth by setting maxBitrate: "+e.t0),e.abrupt("return",n===ll?this.updateVideoBandwidthRestriction(r,t):this.updateAudioBandwidthRestriction(r,t));case 20:return e.abrupt("return",r);case 21:case"end":return e.stop()}}),e,this,[[9,16]])}))),function(e,t,n){return p.apply(this,arguments)})},{key:"setSmallStreamBandwidth",value:(f=o(regeneratorRuntime.mark((function e(t,n){var r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isUplink_){e.next=2;break}return e.abrupt("return",n);case 2:if(Zy()){e.next=4;break}return e.abrupt("return",this.updateSmallVideoBandwidthRestriction(n,t));case 4:if(!(r=this.peerConnection_.getSenders().filter((function(e){return e.track&&e.track.kind===ll}))[1])){e.next=20;break}return(i=r.getParameters()).encodings&&0!==i.encodings.length||(i.encodings=[{}]),"unlimited"===t?delete i.encodings[0].maxBitrate:i.encodings[0].maxBitrate=1e3*t,e.prev=9,e.next=12,r.setParameters(i);case 12:return this.log_.info("small stream bandwidth was set to "+t+" kbps"),e.abrupt("return",n);case 16:return e.prev=16,e.t0=e.catch(9),this.log_.info("failed to set small stream bandwidth by setting maxBitrate: "+e.t0),e.abrupt("return",this.updateSmallVideoBandwidthRestriction(n,t));case 20:return e.abrupt("return",n);case 21:case"end":return e.stop()}}),e,this,[[9,16]])}))),function(e,t){return f.apply(this,arguments)})},{key:"updateVideoBandwidthRestriction",value:function(e,t){var n="AS";return cu&&(n="TIAS",t*=1e3),-1===e.indexOf("b="+n+":")?e.replace(/m=video (.*)\r\nc=IN (.*)\r\n/,"m=video $1\r\nc=IN $2\r\nb="+n+":"+t+"\r\n"):e.replace(new RegExp("b="+n+":.*\r\n"),"b="+n+":"+t+"\r\n")}},{key:"updateAudioBandwidthRestriction",value:function(e,t){var n="AS";return cu&&(n="TIAS",t*=1e3),e.replace(/m=audio (.*)\r\nc=IN (.*)\r\n/,"m=audio $1\r\nc=IN $2\r\nb="+n+":"+t+"\r\n")}},{key:"updateSmallVideoBandwidthRestriction",value:function(e,t){var n="AS";cu&&(n="TIAS",t*=1e3);var r=/m=video (.*)\r\nc=IN (.*)\r\n/g,i=[],o=r.exec(e);for(i.push(o);null!==o;)o=r.exec(e),i.push(o);var a=i[i.length-2],s=e.slice(0,a.index),c=e.slice(a.index);return-1===e.indexOf("b="+n+":")?s+(c=c.replace(/m=video (.*)\r\nc=IN (.*)\r\n/,"m=video $1\r\nc=IN $2\r\nb="+n+":"+t+"\r\n")):s+(c=c.replace(new RegExp("b="+n+":.*\r\n"),"b="+n+":"+t+"\r\n"))}},{key:"removeBandwidthRestriction",value:function(e){return e.replace(/b=AS:.*\r\n/,"").replace(/b=TIAS:.*\r\n/,"")}},{key:"removeVideoOrientation",value:function(e){return e.replace(/urn:3gpp:video-orientation/,"")}},{key:"connect",value:(h=o(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.exchangeSDP();case 3:return e.next=5,this.waitForPeerConnectionConnected();case 5:e.next=11;break;case 7:throw e.prev=7,e.t0=e.catch(0),this.closePeerConnection(!0),e.t0;case 11:case"end":return e.stop()}}),e,this,[[0,7]])}))),function(){return h.apply(this,arguments)})},{key:"exchangeSDP",value:(u=o(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,this.isSDPExchanging_=!0,e.next=4,this.createOffer();case 4:return this.log_.info("createOffer success, sending offer to remote server"),e.next=7,this.doExchangeSDP();case 7:this.isSDPExchanging_=!1,e.next=14;break;case 10:throw e.prev=10,e.t0=e.catch(0),this.isSDPExchanging_=!1,e.t0;case 14:case"end":return e.stop()}}),e,this,[[0,10]])}))),function(){return u.apply(this,arguments)})},{key:"createOffer",value:(s=o(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.peerConnection_.createOffer(Fb);case 3:return t=e.sent,e.next=6,this.peerConnection_.setLocalDescription(t);case 6:this.updateSSRC(t.sdp),vy.logSuccessEvent({userId:this.client_.getUserId(),eventType:vd,kind:"offer"}),e.next=14;break;case 10:throw e.prev=10,e.t0=e.catch(0),vy.logFailedEvent({userId:this.client_.getUserId(),eventType:vd,kind:"offer",error:e.t0}),e.t0;case 14:case"end":return e.stop()}}),e,this,[[0,10]])}))),function(){return s.apply(this,arguments)})},{key:"doExchangeSDP",value:function(){var e=this;return new Promise((function(t,n){e.exchangeSDPTimeout_=setTimeout((function(){e.signalChannel_.off(ug.PUBLISH_RESULT,r),e.clearExchangeSDPTimeout();var t=new Eg({code:kg.API_CALL_TIMEOUT,message:my({key:Dm})});n(t)}),5e3);var r=function(){var r=o(regeneratorRuntime.mark((function r(i){var o,a,s;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(r.prev=0,e.clearExchangeSDPTimeout(),o=i.data,a=o.code,s=o.message,0!==a){r.next=9;break}return r.next=6,e.acceptAnswer(i.data.data);case 6:t(),r.next=10;break;case 9:e.publishResultCodeManager(a,s);case 10:r.next=15;break;case 12:r.prev=12,r.t0=r.catch(0),n(r.t0);case 15:case"end":return r.stop()}}),r,null,[[0,12]])})));return function(e){return r.apply(this,arguments)}}(),i=e.updateMediaSettings(e.localStream_.getMediaStream()),a={type:e.peerConnection_.localDescription.type,sdp:e.removeVideoOrientation(e.peerConnection_.localDescription.sdp),screen:e.localStream_.hasScreenTrack(),constraintConfig:i};e.signalChannel_.once(ug.PUBLISH_RESULT,r),e.log_.debug("sending sdp offer: "+a.sdp),e.signalChannel_.send(gg,a)}))}},{key:"setSDPDirection",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"all",r=Ey(e);return r.media.forEach((function(e){"all"!==n&&e.type!==n||(e.direction=t)})),Ay(r)}},{key:"updateOffer",value:(i=o(regeneratorRuntime.mark((function e(t,n){var r,i,o,a,s,c,u;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.peerConnection_.createOffer(Fb);case 3:return r=e.sent,cu&&(r.sdp=this.setSDPDirection(r.sdp,"sendrecv")),e.next=7,this.peerConnection_.setLocalDescription(r);case 7:return i=this.updateMediaSettings(this.localStream_.getMediaStream()),o={action:t,trackId:n.id,kind:n.kind===ll?"bigVideo":n.kind,type:"offer",sdp:this.peerConnection_.localDescription.sdp,constraintConfig:i},this.log_.info("createOffer success, sending updated offer to remote server"),this.log_.debug("updatedOffer: "+o.sdp),e.next=13,this.signalChannel_.sendWaitForResponse({command:lg,data:o,responseCommand:ug.UPDATE_OFFER_RESULT,timeout:1e4,commandDesc:"update offer"});case 13:return a=e.sent,s=a.data,c=s.code,u=s.message,0!==c&&this.publishResultCodeManager(c,u),e.next=18,this.acceptAnswer(a.data.data);case 18:this.updateSSRC(r.sdp),vy.logSuccessEvent({userId:this.client_.getUserId(),eventType:vd,kind:"offer"}),e.next=27;break;case 22:throw e.prev=22,e.t0=e.catch(0),this.log_.error(e.t0),vy.logFailedEvent({userId:this.client_.getUserId(),eventType:vd,kind:"offer",error:e.t0}),e.t0;case 27:case"end":return e.stop()}}),e,this,[[0,22]])}))),function(e,t){return i.apply(this,arguments)})},{key:"acceptAnswer",value:(r=o(regeneratorRuntime.mark((function e(t){var n,r,i,o,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.localStream_.getVideoBitrate(),r=this.localStream_.getAudioBitrate(),e.prev=2,i=this.removeVideoOrientation(t.sdp),e.next=6,this.setBandwidth(n,ll,i);case 6:return i=e.sent,e.next=9,this.setBandwidth(r,ul,i);case 9:if(i=e.sent,!this.client_.getIsEnableSmallStream()){e.next=15;break}return o=this.client_.smallStreamConfig,e.next=14,this.setSmallStreamBandwidth(o.bitrate,i);case 14:i=e.sent;case 15:return a={type:t.type,sdp:i},e.next=18,this.peerConnection_.setRemoteDescription(a);case 18:this.log_.debug("accepted answer: "+i),vy.logSuccessEvent({userId:this.client_.getUserId(),eventType:yd,kind:"answer"}),e.next=27;break;case 22:throw e.prev=22,e.t0=e.catch(2),vy.logFailedEvent({userId:this.client_.getUserId(),eventType:yd,kind:"answer",error:e.t0}),this.log_.error("failed to accept remote answer "+e.t0),e.t0;case 27:case"end":return e.stop()}}),e,this,[[2,22]])}))),function(e){return r.apply(this,arguments)})},{key:"sendMutedFlag",value:function(e){var t={audio:e.audio,bigVideo:e.video,auxVideo:e.auxVideo};this.log_.info("send muted state: ".concat(JSON.stringify(t))),this.signalChannel_.send(pg,t)}},{key:"getIsReconnecting",value:function(){return this.isReconnecting_}},{key:"reconnect",value:(n=o(regeneratorRuntime.mark((function e(){var t,n,r=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(-1===this.reconnectionTimer_){e.next=3;break}return this.log_.warn("reconnect() uplink is reconnecting, ignore current reconnection"),e.abrupt("return");case 3:if(!(this.reconnectionCount_>=30)){e.next=12;break}return this.log_.warn("SDK has tried reconnect uplink for ".concat(30," times, but all failed, please check your network")),this.stopReconnection(),t=new Eg({code:kg.UPLINK_RECONNECTION_FAILED,message:my({key:Lm})}),vy.logFailedEvent({userId:this.client_.getUserId(),eventType:pd,error:t}),this.addEventInternal(am,"uplink-connection reconnect fail"),this.emitConnectionStateChangedEvent(ql),this.emitter_.emit(p_,t),e.abrupt("return");case 12:if(this.signalChannel_.getCurrentState()===ag){e.next=16;break}return this.log_.warn("reconnect() signal channel is not connected, suspend reconnection until signal is connected"),this.signalChannel_.once(tg,this.reconnect,this),e.abrupt("return");case 16:if(this.reconnectionCount_++,e.prev=17,this.log_.warn("reconnect() try to reconnect uplink [".concat(this.reconnectionCount_,"/").concat(30,"]")),n=oh(this.reconnectionCount_),this.reconnectionTimer_=setTimeout((function(){r.log_.warn("reconnect() uplink reconnect timeout(".concat(n/1e3,"s), try again")),r.signalChannel_.off(ug.UNPUBLISH_RESULT,r.onUnpublishResult,r),r.clearReconnectionTimer(),r.reconnect()}),n),!(this.isSDPExchanging_||this.peerConnection_&&this.peerConnection_.connectionState===Xl)){e.next=23;break}return e.abrupt("return");case 23:this.signalChannel_.send(mg),this.signalChannel_.once(ug.UNPUBLISH_RESULT,this.onUnpublishResult,this),e.next=29;break;case 27:e.prev=27,e.t0=e.catch(17);case 29:case"end":return e.stop()}}),e,this,[[17,27]])}))),function(){return n.apply(this,arguments)})},{key:"onUnpublishResult",value:(t=o(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,this.reset(),this.initialize(),e.next=5,this.publish(this.localStream_);case 5:e.next=9;break;case 7:e.prev=7,e.t0=e.catch(0);case 9:case"end":return e.stop()}}),e,this,[[0,7]])}))),function(){return t.apply(this,arguments)})},{key:"clearExchangeSDPTimeout",value:function(){-1!==this.exchangeSDPTimeout_&&(clearTimeout(this.exchangeSDPTimeout_),this.exchangeSDPTimeout_=-1)}},{key:"clearReconnectionTimer",value:function(){-1!==this.reconnectionTimer_&&(clearTimeout(this.reconnectionTimer_),this.reconnectionTimer_=-1)}},{key:"handleError",value:function(e){e.getCode()===kg.ICE_TRANSPORT_ERROR&&(this.isFirstConnection_&&(this.isFirstConnection_=!1,vy.logFailedEvent({userId:this.client_.getUserId(),eventType:fd,error:e})),this.isReconnecting_||this.startReconnection())}},{key:"handleConnectionStateChange",value:function(e){e.state===Yl&&(this.isFirstConnection_&&(this.isFirstConnection_=!1,vy.logSuccessEvent({userId:this.client_.getUserId(),eventType:fd}),this.addEventInternal(Qg,"uplink-connection is connected")),this.isReconnecting_&&(vy.logSuccessEvent({userId:this.client_.getUserId(),eventType:pd}),this.log_.warn("reconnect() uplink reconnect successfully"),this.addEventInternal(om,"uplink-connection reconnect success"),this.stopReconnection()))}},{key:"updateSSRC",value:function(e){var t=this;try{var n=0;Ey(e).media.forEach((function(e){if(e.type===ul){var r=e.ssrcs[0];r&&(t.ssrc_.audio=r.id)}else{var i=e.ssrcs[0];switch(n+=1){case 1:i&&(t.ssrc_.video=i.id);break;case 2:i&&(t.ssrc_.small=i.id)}}}))}catch(zS){}}},{key:"getLocalStreamVideoTrackId",value:function(){if(this.peerConnection_){var e=this.peerConnection_.getSenders().filter((function(e){return e.track&&e.track.kind===ll}));if(e[0])return e[0].track.id}if(this.localStream_){var t=this.localStream_.getVideoTrack();if(t)return t.id}return""}},{key:"getSSRC",value:function(){return this.ssrc_}},{key:"checkPublishResultCode",value:function(e,t){if(0!==e)throw 1028===e?(this.log_.error(fy.NOT_SUPPORTED_H264ENCODE),new Eg({code:kg.NOT_SUPPORTED_H264,message:my({key:ay})})):new Eg({code:kg.UNKNOWN,message:my({key:hy,data:{signalResponse:ug.PUBLISH_RESULT,code:e,message:t}})})}}]),x}(_b),Vb=function(e){l(p,e);var t,n,r,i,s,u,h,f=v(p);function p(e){var t;return a(this,p),(t=f.call(this,e)).remoteStreams_=new Map,t.autoSubscribe=e.autoSubscribe,t.trackState_={audio:e.trackState.audio,video:e.trackState.video,auxiliary:e.trackState.auxiliary,smallVideo:e.trackState.smallVideo},t.ssrc_={audio:0,video:0,auxiliary:0},t.subscribeState_={audio:e.autoSubscribe,video:e.autoSubscribe,auxiliary:e.autoSubscribe,smallVideo:!1},t.pendingSubscription_=[],t.pendingStreams_=[],t.subscriptionTimeout_=-1,t.subscriptionRetryCount_=0,t.isSubscriptionPending_=!1,t.isSDPExchanging_=!1,t.installEvents(),t}return c(p,[{key:"isMainStreamSubscribed",get:function(){return(this.subscribeState_.audio||this.subscribeState_.video||this.subscribeState_.smallVideo)&&(this.trackState_.audio||this.trackState_.video||this.trackState_.smallVideo)}},{key:"isAuxStreamSubscribed",get:function(){return this.subscribeState_.auxiliary&&this.trackState_.auxiliary}},{key:"initialize",value:function(){y(d(p.prototype),"initialize",this).call(this),this.peerConnection_.ontrack=this.onTrack.bind(this)}},{key:"close",value:function(){var e=this;y(d(p.prototype),"close",this).call(this),this.trackState_.audio=!1,this.trackState_.video=!1,this.trackState_.auxiliary=!1,this.emitConnectionStateChangedEvent(ql),-1!==this.subscriptionTimeout_&&(clearTimeout(this.subscriptionTimeout_),this.subscriptionTimeout_=-1),this.remoteStreams_.forEach((function(t){var n=t;n.setConnection(null),n.getIsStreamAddedEventEmitted()&&e.emitter_.emit(d_,{stream:n})})),this.remoteStreams_.clear(),this.uninstallEvents()}},{key:"installEvents",value:function(){var e=this;Of.on(Zf,this.onRemoteStreamUpdate,this),this.signalChannel_.on(ug.SUBSCRIBE_CHANGE_RESULT,this.onSubscribeChangeResult,this),this.signalChannel_.on(ug.UNSUBSCRIBE_RESULT,this.onUnsubscribeResult,this),this.emitter_.on(p_,(function(t){t.getCode()===kg.ICE_TRANSPORT_ERROR&&(e.isFirstConnection_&&(e.isFirstConnection_=!1,vy.logFailedEvent({userId:e.client_.getUserId(),eventType:gd,error:t})),e.isReconnecting_||e.startReconnection())})),this.emitter_.on(g_,(function(t){t.state===Yl&&e.isFirstConnection_&&(e.isFirstConnection_=!1,vy.logSuccessEvent({userId:e.client_.getUserId(),eventType:gd}),e.addEventInternal(em,"downlink-connection is connected"))}))}},{key:"uninstallEvents",value:function(){Of.removeListener(Zf,this.onRemoteStreamUpdate,this),this.signalChannel_.removeListener(ug.SUBSCRIBE_CHANGE_RESULT,this.onSubscribeChangeResult,this),this.signalChannel_.removeListener(ug.UNSUBSCRIBE_RESULT,this.onUnsubscribeResult,this)}},{key:"onRemoteStreamUpdate",value:function(e){if(this.hitTest(e.tinyId)&&e.client===this.client_){this.updateTrackState(e.action,e.kind);var t=e.kind===dl?Bl:jl,n=this.remoteStreams_.get(t);if(!n)return;e.action===Gd?this.handleRemoteAddTrack(e.kind,n):this.handleRemoteRemoveTrack(e.kind,n)}}},{key:"handleRemoteAddTrack",value:function(e,t){this.log_.info("remote add ".concat(e," track")),e===ul?t.updateAudioPlayingState(this.subscribeState_.audio):t.updateVideoPlayingState(e===dl?this.subscribeState_.auxiliary:this.subscribeState_.video),t.getIsStreamAddedEventEmitted()?this.emitter_.emit(h_,{stream:t}):(this.emitter_.emit(l_,{stream:t}),this.currentState_===Yl&&t.emitConnectionStateChanged({prevState:ql,state:Yl}))}},{key:"handleRemoteRemoveTrack",value:function(e,t){t.getIsStreamAddedEventEmitted()&&(this.log_.info("remote remove ".concat(e," track")),e!==dl&&(this.trackState_.audio||this.trackState_.video)||t.isInSubscriptionCycle()?(e===ul?t.updateAudioPlayingState(!1):t.updateVideoPlayingState(!1),this.emitter_.emit(h_,{stream:t})):(this.log_.info("remote stream ".concat(t.getType()," removed")),this.currentState_===Yl&&t.emitConnectionStateChanged({prevState:Yl,state:ql}),this.emitter_.emit(d_,{stream:t})))}},{key:"updateTrackState",value:function(e,t){var n=e===Gd;switch(t){case ul:this.trackState_.audio=n;break;case ll:this.trackState_.video=n;break;case dl:this.trackState_.auxiliary=n}this.log_.info("trackState updated: ".concat(JSON.stringify(this.trackState_)))}},{key:"onTrack",value:function(e){var t=e.streams[0],n=e.track;if(this.log_.info("ontrack() kind: ".concat(n.kind," id: ").concat(n.id," streamId: ").concat(t.id)),"unified-plan"===this.sdpSemantics_){var r=function(e){var t=ky.parse(e),n={audio:[],video:[]};return t.media.forEach((function(e){if(e.ssrcs){var t=e.ssrcs[0].id>>16&255;if(e.type===ul)n.audio.push(jl);else if(e.type==ll){var r=t===zl?jl:Bl;n.video.push(r)}}})),n}(this.peerConnection_.remoteDescription.sdp);if(n.kind===ul){if(0===r.audio.length||t.id!==jl)return void this.log_.debug("skip this invalid audio track")}else if(-1===r.video.indexOf(t.id))return void this.log_.debug("skip this invalid video track: ".concat(n.id,"  msid: ").concat(t.id))}vy.logEvent({eventType:"ontrack",kind:n.kind});var i=!1,o=this.remoteStreams_.get(t.id),a=t.id===jl?Hl:Wl;if(sh(o)&&((o=new Ab({type:a,userId:this.userId_,client:this.client_})).setConnection(this),this.remoteStreams_.set(t.id,o),i=!0),o.setMediaStream(t),n.kind===ul?o.updateAudioPlayingState(this.subscribeState_.audio):a===Hl?o.updateVideoPlayingState(this.subscribeState_.video||this.subscribeState_.smallVideo):o.updateVideoPlayingState(this.subscribeState_.auxiliary),(a!==Wl||this.trackState_.auxiliary)&&(a!==Hl||this.trackState_.audio||this.trackState_.video)){var s=this.client_.getSubscriptionManager();s&&s.hasAutoRecoveryFlag(this.userId_,a)||(i?this.emitter_.emit(l_,{stream:o}):this.emitter_.emit(h_,{stream:o}))}}},{key:"addRRTRLine",value:function(e){var t=e.split("\r\n"),n=new Map;t.forEach((function(e,r){/^a=rtcp-fb:/.test(e)&&t[r+1]&&!/^a=rtcp-fb:/.test(t[r+1])&&n.set(r+1,e.match(/^a=rtcp-fb:\d+/)[0]+" rrtr")}));for(var r=b(n),i=0;i<r.length;i++){var o=_(r[i],2),a=o[0],s=o[1];t.splice(a+i,0,s)}return t.join("\r\n")}},{key:"addSPSDescription",value:function(e){var t=Ey(e);return t.media.forEach((function(e){e.type===ll&&e.fmtp.forEach((function(e){e.config+=";sps-pps-idr-in-keyframe=1"}))})),Ay(t)}},{key:"removeSDESDescription",value:function(e){var t=["urn:ietf:params:rtp-hdrext:sdes:mid","urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id","urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id"],n=Ey(e);return n.media.forEach((function(e){e.ext=e.ext.filter((function(e){return!t.includes(e.uri)}))})),Ay(n)}},{key:"isSubscriptionStateNotChanged",value:function(e,t){return e.getType()===Hl?!sh(t.audio)&&!sh(t.video)&&t.audio===this.subscribeState_.audio&&t.video===this.subscribeState_.video:e.getType()===Wl?!sh(t.video)&&this.subscribeState_.auxiliary===t.video:void 0}},{key:"subscribe",value:(h=o(regeneratorRuntime.mark((function e(t,n){var r,i,o,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=n.emitEvent,i=void 0===r||r,o=t.getType(),!this.peerConnection_||this.peerConnection_.connectionState!==Jl&&this.peerConnection_.connectionState!==Xl){e.next=5;break}return e.next=5,this.waitForPeerConnectionConnected();case 5:if(!this.isSubscriptionStateNotChanged(t,n)){e.next=12;break}if(this.peerConnection_){e.next=10;break}return this.initialize(),e.next=10,this.connect();case 10:return i&&this.emitter_.emit(f_,{stream:t,result:!0}),e.abrupt("return",t);case 12:if(o===Cl?(sh(n.audio)||(this.subscribeState_.audio=n.audio),sh(n.video)||(this.subscribeState_.video=n.video),sh(n.smallVideo)||(this.subscribeState_.smallVideo=n.smallVideo),this.addEventInternal(this.subscribeState_.audio?Fg:Vg,this.subscribeState_.audio?"subscribe audio":"unsubscribe audio"),this.addEventInternal(this.subscribeState_.video?Fg:Vg,this.subscribeState_.video?"subscribe video":"unsubscribe video"),this.addEventInternal(this.subscribeState_.smallVideo?lm:dm,this.subscribeState_.smallVideo?"subscribe smallVideo":"unsubscribe smallVideo")):sh(n.video)||(this.subscribeState_.auxiliary=n.video),this.log_.info("subscribe ".concat(o," stream with options ").concat(JSON.stringify(n)," current state: ").concat(JSON.stringify(this.subscribeState_))),!this.peerConnection_&&!this.isSDPExchanging_){e.next=22;break}return a=Ad,this.isMainStreamSubscribed||this.isAuxStreamSubscribed||(a=Ed),e.next=19,this.sendSubscription(t,a);case 19:o===Cl?(t.updateAudioPlayingState(this.subscribeState_.audio),t.updateVideoPlayingState(this.subscribeState_.video||this.subscribeState_.smallVideo)):t.updateVideoPlayingState(this.subscribeState_.auxiliary),e.next=25;break;case 22:return this.initialize(),e.next=25,this.connect();case 25:return i&&this.emitter_.emit(f_,{stream:t,result:!0}),e.abrupt("return",t);case 27:case"end":return e.stop()}}),e,this)}))),function(e,t){return h.apply(this,arguments)})},{key:"unsubscribe",value:(u=o(regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((n=t.getType())!==Cl){e.next=10;break}if(this.isMainStreamSubscribed){e.next=5;break}return this.log_.info("main stream already unsubscribed"),e.abrupt("return",t);case 5:this.subscribeState_.audio=!1,this.subscribeState_.video=!1,this.subscribeState_.smallVideo=!1,e.next=14;break;case 10:if(this.isAuxStreamSubscribed){e.next=13;break}return this.log_.info("auxiliary stream already unsubscribed"),e.abrupt("return",t);case 13:this.subscribeState_.auxiliary=!1;case 14:return r=Ed,(n===Hl&&this.isAuxStreamSubscribed||n===Wl&&this.isMainStreamSubscribed)&&(r=Ad),this.log_.info("unsubscribe ".concat(n," stream with ").concat(JSON.stringify(this.subscribeState_))),e.next=19,this.sendSubscription(t,r);case 19:return t.updateVideoPlayingState(!1),t.updateAudioPlayingState(!1),r===Ed&&((i=t.getMediaStream())&&i.getTracks().forEach((function(e){return i.removeTrack(e)})),this.closePeerConnection(),this.emitConnectionStateChangedEvent(ql)),this.addEventInternal(Vg,"unsubscribe audio"),this.addEventInternal(Gg,"unsubscribe video"),e.abrupt("return",t);case 25:case"end":return e.stop()}}),e,this)}))),function(e){return u.apply(this,arguments)})},{key:"sendSubscription",value:function(e,t){var n=this;return new Promise((function(r,i){var o={srcTinyId:n.tinyId_,srcUserId:n.userId_};t===Ad&&(o={audio:n.subscribeState_.audio,bigVideo:n.subscribeState_.video,auxVideo:n.subscribeState_.auxiliary,smallVideo:n.subscribeState_.smallVideo,srcTinyId:n.tinyId_}),n.pendingSubscription_.length>0?n.log_.debug("queue the subscription for later handling"):n.doSendSubscription(o,e,t),n.pendingSubscription_.push({stream:e,type:t,data:o,callback:function(e){var o=e.code,a=e.message;if(0===o)r();else{var s=new Eg({code:o,message:my({key:Em,data:{type:t,message:a}})});n.log_.error(s),i(s)}}}),e.setInSubscriptionCycle(!0)}))}},{key:"doSendSubscription",value:function(e,t,n){var r=this;t&&this.pendingStreams_.push(t),this.log_.debug("doSendSubscription() send SUBSCRIBE command with data: ".concat(JSON.stringify(e))),n===Ad?this.signalChannel_.send(_g,e):n===Ed&&this.signalChannel_.send(yg,e),this.isSubscriptionPending_=!0,this.subscriptionTimeout_=setTimeout((function(){if(r.isSubscriptionPending_)if(r.log_.debug("subscription timeout"),r.subscriptionRetryCount_+=1,r.subscriptionRetryCount_<=3){r.log_.debug("resend subscription");var e=r.pendingSubscription_[0].data;r.doSendSubscription(e,t,n)}else r.log_.error(fy.SUBSCRIPTION_TIMEOUT),r.pendingSubscription_.shift(),r.pendingStreams_.shift(),r.isSubscriptionPending_=!1,r.subscriptionRetryCount_=0,r.emitter_.emit(p_,new Eg({code:kg.SUBSCRIPTION_TIMEOUT,message:my({key:Am})}))}),5e3)}},{key:"onSubscribeChangeResult",value:function(e){var t=e&&e.data||{},n=t.code,r=t.message,i=t.data.srcTinyId;if(this.hitTest(i)){var o=this.pendingSubscription_[0];o&&o.type===Ad&&o.callback({code:n,message:r}),this.sendNextSubscription()}}},{key:"onUnsubscribeResult",value:function(e){var t=e&&e.data||{},n=t.code,r=t.message,i=t.data.srcTinyId;if(this.hitTest(i)){var o=this.pendingSubscription_[0];o&&o.type===Ed&&o.callback({code:n,message:r}),this.sendNextSubscription()}}},{key:"connect",value:(s=o(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.exchangeSDP();case 3:return e.next=5,this.waitForPeerConnectionConnected();case 5:e.next=11;break;case 7:throw e.prev=7,e.t0=e.catch(0),this.closePeerConnection(!0),e.t0;case 11:case"end":return e.stop()}}),e,this,[[0,7]])}))),function(){return s.apply(this,arguments)})},{key:"exchangeSDP",value:(i=o(regeneratorRuntime.mark((function e(){var t,n,r,i,o,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,this.isSDPExchanging_=!0,e.next=4,this.createOffer();case 4:return this.log_.info("createOffer success, sending offer to remote server"),t=this.peerConnection_.localDescription,n=t.type,r=t.sdp,i={type:n,sdp:r,srcUserId:this.userId_,srcTinyId:this.tinyId_,audio:this.subscribeState_.audio,bigVideo:this.subscribeState_.video,auxVideo:this.subscribeState_.auxiliary,smallVideo:this.subscribeState_.smallVideo},Of.emit(yp,{client:this.client_,connection:this,userId:this.userId_,tinyId:this.tinyId_,role:Gl,subscribeState:this.subscribeState_,trackState:this.trackState_}),e.next=10,this.signalChannel_.sendWaitForResponse({command:vg,commandDesc:"exchange sdp",data:i,responseCommand:ug.SUBSCRIBE_RESULT});case 10:if(o=e.sent,this.peerConnection_){e.next=15;break}throw a=this.genRemoteStreamNotExistError(),this.log_.warn(a),a;case 15:return e.next=17,this.onSubscribeResult(o);case 17:this.isSDPExchanging_=!1,e.next=24;break;case 20:throw e.prev=20,e.t0=e.catch(0),this.isSDPExchanging_=!1,e.t0;case 24:case"end":return e.stop()}}),e,this,[[0,20]])}))),function(){return i.apply(this,arguments)})},{key:"createOffer",value:(r=o(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={voiceActivityDetection:!1},"RTCPeerConnection"in window&&"addTransceiver"in window.RTCPeerConnection.prototype&&"unified-plan"===this.sdpSemantics_?(this.peerConnection_.addTransceiver(ul,{direction:"recvonly"}),this.peerConnection_.addTransceiver(ll,{direction:"recvonly"}),this.peerConnection_.addTransceiver(ll,{direction:"recvonly"})):(t.offerToReceiveAudio=!0,t.offerToReceiveVideo=!0),e.next=4,this.peerConnection_.createOffer(t);case 4:return n=e.sent,e.next=7,Hy();case 7:return e.sent.isH264DecodeSupported||(this.log_.warn("remove h264 desc from sdp"),n.sdp=Oy(n.sdp)),n.sdp=this.addRRTRLine(n.sdp),n.sdp=this.addSPSDescription(n.sdp),n.sdp=Dy(n.sdp),"unified-plan"===this.sdpSemantics_&&(n.sdp=this.removeSDESDescription(n.sdp)),e.next=16,this.peerConnection_.setLocalDescription(n);case 16:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"onSubscribeResult",value:(n=o(regeneratorRuntime.mark((function e(t){var n,r,i,o,a,s,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t&&t.data||{},r=n.code,i=n.message,o=void 0===i?"":i,a=t&&t.data&&t.data.data||{},s=a.type,c=a.sdp,77393!==r){e.next=5;break}throw this.log_.error(fy.NOT_SUPPORTED_H264DECODE),new Eg({code:kg.NOT_SUPPORTED_H264,message:my({key:sy})});case 5:if(e.prev=5,0===r){e.next=8;break}throw new Eg({code:r,message:my({key:Rm,data:{message:o}})});case 8:return this.log_.debug("accept remote answer: "+c),e.next=11,this.peerConnection_.setRemoteDescription({type:s,sdp:c});case 11:this.updateSSRC(c),e.next=18;break;case 14:throw e.prev=14,e.t0=e.catch(5),this.log_.error(e.t0),e.t0;case 18:case"end":return e.stop()}}),e,this,[[5,14]])}))),function(e){return n.apply(this,arguments)})},{key:"updateSSRC",value:function(e){var t=this;try{Ey(e).media.forEach((function(e){if(e.type===ul){var n=e.ssrcs.find((function(e){return e.value.includes(jl)}));n&&(t.ssrc_.audio=n.id)}else{var r=e.ssrcs.find((function(e){return e.value.includes(jl)})),i=e.ssrcs.find((function(e){return e.value.includes(Bl)}));r&&(t.ssrc_.video=r.id),i&&(t.ssrc_.auxiliary=i.id)}}))}catch(zS){}}},{key:"sendNextSubscription",value:function(){void 0!==this.pendingSubscription_.shift()&&(this.subscriptionRetryCount_=0,this.isSubscriptionPending_=!1,-1!==this.subscriptionTimeout_&&(clearTimeout(this.subscriptionTimeout_),this.subscriptionTimeout_=-1));var e=this.pendingStreams_.shift();if(e&&(this.log_.debug("mark ".concat(e.getType()," stream exit subscription cycle")),e.setInSubscriptionCycle(!1)),this.pendingSubscription_.length>0){var t=this.pendingSubscription_[0];this.log_.info("schedule a pending subscription"),this.doSendSubscription(t.data,t.stream,t.type)}}},{key:"setRemoteStream",value:function(e,t){this.remoteStreams_.set(e,t)}},{key:"getSubscribeState",value:function(){return this.subscribeState_}},{key:"getTrackState",value:function(){return this.trackState_}},{key:"getSSRC",value:function(){return this.ssrc_}},{key:"getMainStream",value:function(){return this.remoteStreams_.get(jl)}},{key:"getAuxStream",value:function(){return this.remoteStreams_.get(Bl)}},{key:"getMainStreamVideoTrackId",value:function(){var e=this.getMainStream();if(e){var t=e.getVideoTrack();if(t)return t.id}return""}},{key:"getAuxStreamVideoTrackId",value:function(){var e=this.getAuxStream();if(e){var t=e.getVideoTrack();if(t)return t.id}return""}},{key:"reconnect",value:(t=o(regeneratorRuntime.mark((function e(){var t,n,r=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(-1===this.reconnectionTimer_){e.next=3;break}return this.log_.warn("reconnect() downlink is reconnecting, ignore current reconnection"),e.abrupt("return");case 3:if(!(this.reconnectionCount_>=30)){e.next=12;break}return this.log_.warn("SDK has tried reconnect downlink [".concat(this.userId_,"] for ").concat(30," times, but all failed, please check your network")),this.stopReconnection(),t=new Eg({code:kg.DOWNLINK_RECONNECTION_FAILED,message:my({key:Om})}),vy.logFailedEvent({userId:this.client_.getUserId(),eventType:md,error:t}),this.addEventInternal(um,"downlink-connection reconnect fail"),this.emitConnectionStateChangedEvent(ql),this.emitter_.emit(p_,t),e.abrupt("return");case 12:if(this.signalChannel_.getCurrentState()===ag){e.next=16;break}return this.log_.warn("reconnect() signal channel is not connected, suspend reconnection until signal is connected"),this.signalChannel_.once(tg,this.reconnect,this),e.abrupt("return");case 16:if(this.reconnectionCount_++,this.log_.warn("reconnect() try to reconnect downlink [".concat(this.reconnectionCount_,"/").concat(30,"]")),n=oh(this.reconnectionCount_),this.reconnectionTimer_=setTimeout((function(){r.log_.warn("reconnect() downlink [".concat(r.userId_,"] reconnect timeout(").concat(n/1e3,"s), try again")),r.clearReconnectionTimer(),r.reconnect()}),n),!(this.isSDPExchanging_||this.peerConnection_&&this.peerConnection_.connectionState===Xl)){e.next=22;break}return e.abrupt("return");case 22:return e.prev=22,this.closePeerConnection(),this.initialize(),e.next=27,this.connect();case 27:this.stopReconnection(),this.log_.warn("reconnect() downlink reconnect successfully"),vy.logSuccessEvent({userId:this.client_.getUserId(),eventType:md}),this.addEventInternal(cm,"downlink-connection reconnect success"),this.recoverSubscription(),e.next=36;break;case 34:e.prev=34,e.t0=e.catch(22);case 36:case"end":return e.stop()}}),e,this,[[22,34]])}))),function(){return t.apply(this,arguments)})},{key:"recoverSubscription",value:function(){var e=this,t=this.client_.getSubscriptionManager();t&&b(this.remoteStreams_.values()).forEach((function(n){t.hasAutoRecoveryFlag(e.userId_,n.getType())&&t.recover(n)}))}},{key:"getIsReconnecting",value:function(){return this.isReconnecting_}},{key:"getSubscribedMainStream",value:function(){var e=null;return this.isMainStreamSubscribed&&(e=this.remoteStreams_.get(jl)),e}},{key:"clearReconnectionTimer",value:function(){-1!==this.reconnectionTimer_&&(clearTimeout(this.reconnectionTimer_),this.reconnectionTimer_=-1)}},{key:"startReconnection",value:function(){var e=this.client_.getSubscriptionManager();if(e){var t,n=w(this.remoteStreams_.values());try{for(n.s();!(t=n.n()).done;){var r=t.value,i=r.getType();(i===Hl&&(this.trackState_.audio||this.trackState_.video)||i===Wl&&this.trackState_.auxiliary)&&e.setAutoRecoveryFlag(this.userId_,r.getType())}}catch(a){n.e(a)}finally{n.f()}}y(d(p.prototype),"startReconnection",this).call(this)}},{key:"getCurrentState",value:function(){return this.currentState_}}]),p}(_b),jb=function(e){return function(t,n,r,i){re(n);var o=ce(t),a=V(o),s=st(o),c=e?s-1:0,u=e?-1:1;if(r<2)for(;;){if(c in a){i=a[c],c+=u;break}if(c+=u,e?c<0:s<=c)throw TypeError("Reduce of empty array with no initial value")}for(;e?c>=0:s>c;c+=u)c in a&&(i=n(i,a[c],c,o));return i}},Bb={left:jb(!1),right:jb(!0)}.left,zb=Xi("reduce");Mt({target:"Array",proto:!0,forced:!zb||!Ls&&Z>79&&Z<83},{reduce:function(e){return Bb(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}});var Hb=function(){function e(){a(this,e),this.startTime=0,this.endTime=0,this.start()}return c(e,[{key:"start",value:function(){0===this.startTime&&(this.startTime=gh())}},{key:"stop",value:function(){0===this.endTime&&(this.endTime=gh())}},{key:"getDuration",value:function(){return 0===this.endTime?gh()-this.startTime:this.endTime-this.startTime}}]),e}(),Wb=function(){function e(t){a(this,e),this.client_=t.client,this.intervalId_=-1,this.statsCalculator_=t.stats,this.prevStats_=null,this.renderFreezeMap_=new Map,this.remoteStreamMap_=new Map,this.dataFreezeMap_=new Map,this.monitorFreezeData_=new Map}var t,n,r;return c(e,[{key:"installEvents",value:function(){Of.on(fp,this.handlePlayVideoStart,this),Of.on(up,this.onVideoTrackMuted,this),Of.on(lp,this.onVideoTrackUnmuted,this),Of.on(ip,this.handleStreamStopped,this),Of.on(np,this.handleStreamStopped,this),Of.on(Jf,this.handleVideoPlaying,this)}},{key:"uninstallEvents",value:function(){Of.off(fp,this.handlePlayVideoStart,this),Of.off(up,this.onVideoTrackMuted,this),Of.off(lp,this.onVideoTrackUnmuted,this),Of.off(ip,this.handleStreamStopped,this),Of.off(np,this.handleStreamStopped,this),Of.off(Jf,this.handleVideoPlaying,this)}},{key:"start",value:function(){var e=this;-1===this.intervalId_&&(this.installEvents(),this.intervalId_=Py.setInterval(o(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.detectFPS();case 3:t.next=7;break;case 5:t.prev=5,t.t0=t.catch(0);case 7:case"end":return t.stop()}}),t,null,[[0,5]])}))),1e3))}},{key:"stop",value:function(){-1!==this.intervalId_&&(this.uninstallEvents(),Py.clearInterval(this.intervalId_),this.intervalId_=-1,this.renderFreezeMap_.clear(),this.dataFreezeMap_.clear(),this.remoteStreamMap_.clear())}},{key:"onVideoTrackMuted",value:function(e){var t=e.stream;if(t.getClient()===this.client_&&t.isRemote()){var n=t.userId_,r=t.type_,i="".concat(n,"_").concat(r),o=this.dataFreezeMap_.get(i),a=new Hb;o?o.durationItemList.push(a):this.dataFreezeMap_.set(i,{userId:n,type:r,durationItemList:[a],isFreezing:function(){var e=this.durationItemList[this.durationItemList.length-1];return e&&0===e.endTime}})}}},{key:"onVideoTrackUnmuted",value:function(e){var t=e.stream;if(t.getClient()===this.client_&&t.isRemote()){var n=t.userId_,r=t.type_,i="".concat(n,"_").concat(r);this.stopDataFreeze({key:i,userId:n,type:r})}}},{key:"handleStreamStopped",value:function(e){var t=e.client,n=e.stream;if(t===this.client_){var r=n.getUserId(),i=n.getType(),o="".concat(r,"_").concat(i);this.stopDataFreeze({key:o,userId:r,type:i})}}},{key:"stopDataFreeze",value:function(e){var t=e.key,n=e.userId,r=e.type,i=this.dataFreezeMap_.get(t);if(i&&i.isFreezing()){var o=i.durationItemList[i.durationItemList.length-1];o.stop();var a=o.getDuration();a>500?(vy.logEvent({eventType:"videoFrozenCount",delta:a}),this.monitorFreezeData_.set(t,{userId:n,type:r,duration:a})):i.durationItemList.pop()}}},{key:"getTotalDuration",value:function(e){return e.reduce((function(e,t){var n=t.getDuration();return e+Math.min(n,5e3)}),0)}},{key:"getStats",value:(r=o(regeneratorRuntime.mark((function e(){var t,n,r,i,o,a,s,c,u,l,d;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=this.client_.getConnections(),n={},r=w(t),e.prev=3,r.s();case 5:if((i=r.n()).done){e.next=20;break}if(o=_(i.value,2),a=o[0],(s=o[1]).getPeerConnection()){e.next=9;break}return e.abrupt("continue",18);case 9:return c=s.getSubscribeState(),u=s.getTrackState(),e.next=13,this.statsCalculator_.getReceiverStats(s);case 13:l=e.sent,(d={userId:l.userId,tinyId:a,hasVideo:u.video&&c.video,hasAuxiliary:u.auxiliary&&c.auxiliary,video:{framesDecoded:0},auxiliary:{framesDecoded:0}}).hasVideo&&(d.video.framesDecoded=l.video.framesDecoded),d.hasAuxiliary&&(d.auxiliary.framesDecoded=l.auxiliary.framesDecoded),n[l.userId]=d;case 18:e.next=5;break;case 20:e.next=25;break;case 22:e.prev=22,e.t0=e.catch(3),r.e(e.t0);case 25:return e.prev=25,r.f(),e.finish(25);case 28:return e.abrupt("return",n);case 29:case"end":return e.stop()}}),e,this,[[3,22,25,28]])}))),function(){return r.apply(this,arguments)})},{key:"detectFPS",value:(n=o(regeneratorRuntime.mark((function e(){var t,n,r,i,o,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getStats();case 2:if(t=e.sent,this.prevStats_){e.next=6;break}return this.prevStats_=t,e.abrupt("return");case 6:e.t0=regeneratorRuntime.keys(t);case 7:if((e.t1=e.t0()).done){e.next=17;break}if(n=e.t1.value,this.prevStats_[n]){e.next=11;break}return e.abrupt("continue",7);case 11:r=t[n].tinyId,i=this.client_.getMutedStates(),t[n].hasVideo&&this.prevStats_[n].hasVideo&&i.has(r)&&!i.get(r).videoMuted&&(o=t[n].video.framesDecoded-this.prevStats_[n].video.framesDecoded,this.handleRenderFreeze({userId:n,type:Hl,fps:o})),t[n].hasAuxiliary&&this.prevStats_[n].hasAuxiliary&&(a=t[n].auxiliary.framesDecoded-this.prevStats_[n].auxiliary.framesDecoded,this.handleRenderFreeze({userId:n,type:Wl,fps:a})),e.next=7;break;case 17:this.prevStats_=t;case 18:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"handleRenderFreeze",value:(t=o(regeneratorRuntime.mark((function e(t){var n,r,i,o,a,s,c,u;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.userId,r=t.fps,i=t.type,o="".concat(n,"_").concat(i),a=this.renderFreezeMap_.get(o),r<=2?(s=gh(),a&&!a.isFreeze&&(a.freezeTimeline.push({startTime:s,endTime:void 0}),a.isFreeze=!0),a||this.renderFreezeMap_.set(o,{userId:n,type:i,isFreeze:!0,freezeTimeline:[{startTime:s,endTime:void 0}],renderFreezeTotal:0})):a&&a.isFreeze&&(a.isFreeze=!1,(c=a.freezeTimeline.pop()).endTime=gh(),u=c.endTime-c.startTime,a.freezeTimeline.push(c),a.renderFreezeTotal+=Math.min(5e3,u));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"handlePlayVideoStart",value:function(e){var t=e.stream;if(t.getClient()===this.client_&&t.isRemote()&&t.hasVideo()){var n="".concat(t.getUserId(),"_").concat(t.getType());this.remoteStreamMap_.has(n)?this.remoteStreamMap_.get(n).remoteStream=t:this.remoteStreamMap_.set(n,{isPlayingFired:!1,remoteStream:t})}}},{key:"handleVideoPlaying",value:function(e){var t=e.stream;if(t.isRemote()&&t.getClient()===this.client_){var n="".concat(t.getUserId(),"_").concat(t.getType());this.remoteStreamMap_.has(n)&&(this.remoteStreamMap_.get(n).isPlayingFired=!0)}}},{key:"getDataFreezeDuration",value:function(e){var t={dataFreeze:0,count:0},n=this.dataFreezeMap_.get(e);if(n){if(n.isFreezing()){var r=n.durationItemList[n.durationItemList.length-1];r.stop(),r.getDuration()<500&&n.durationItemList.pop()}t.dataFreeze=this.getTotalDuration(n.durationItemList),t.count=n.durationItemList.length}return t}},{key:"getRenderFreezeDuration",value:function(e){var t=this.renderFreezeMap_.get(e),n=0,r=0;if(t)if(t.isFreeze){var i=gh()-t.freezeTimeline[t.freezeTimeline.length-1].startTime;n=t.renderFreezeTotal+Math.min(i,5e3),r=t.freezeTimeline.length}else n=t.renderFreezeTotal;return{renderFreeze:n,count:r}}},{key:"getMonitorFreeze",value:function(){return this.monitorFreezeData_}},{key:"isBlackStream",value:function(e){return!!this.remoteStreamMap_.has(e)&&!this.remoteStreamMap_.get(e).isPlayingFired}},{key:"resetMonitor",value:function(){this.monitorFreezeData_.clear()}}]),e}(),qb=function e(t){a(this,e),this.userId=t.userId,this.tinyId=t.tinyId,this.role=t.role===Gl?"anchor":"audience"},$b=M((function(e){!function(t){function n(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function r(e,t,r,i,o,a){return n((s=n(n(t,e),n(i,a)))<<(c=o)|s>>>32-c,r);var s,c}function i(e,t,n,i,o,a,s){return r(t&n|~t&i,e,t,o,a,s)}function o(e,t,n,i,o,a,s){return r(t&i|n&~i,e,t,o,a,s)}function a(e,t,n,i,o,a,s){return r(t^n^i,e,t,o,a,s)}function s(e,t,n,i,o,a,s){return r(n^(t|~i),e,t,o,a,s)}function c(e,t){var r,c,u,l,d;e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;var h=1732584193,f=-271733879,p=-1732584194,g=271733878;for(r=0;r<e.length;r+=16)c=h,u=f,l=p,d=g,h=i(h,f,p,g,e[r],7,-680876936),g=i(g,h,f,p,e[r+1],12,-389564586),p=i(p,g,h,f,e[r+2],17,606105819),f=i(f,p,g,h,e[r+3],22,-1044525330),h=i(h,f,p,g,e[r+4],7,-176418897),g=i(g,h,f,p,e[r+5],12,1200080426),p=i(p,g,h,f,e[r+6],17,-1473231341),f=i(f,p,g,h,e[r+7],22,-45705983),h=i(h,f,p,g,e[r+8],7,1770035416),g=i(g,h,f,p,e[r+9],12,-1958414417),p=i(p,g,h,f,e[r+10],17,-42063),f=i(f,p,g,h,e[r+11],22,-1990404162),h=i(h,f,p,g,e[r+12],7,1804603682),g=i(g,h,f,p,e[r+13],12,-40341101),p=i(p,g,h,f,e[r+14],17,-1502002290),h=o(h,f=i(f,p,g,h,e[r+15],22,1236535329),p,g,e[r+1],5,-165796510),g=o(g,h,f,p,e[r+6],9,-1069501632),p=o(p,g,h,f,e[r+11],14,643717713),f=o(f,p,g,h,e[r],20,-373897302),h=o(h,f,p,g,e[r+5],5,-701558691),g=o(g,h,f,p,e[r+10],9,38016083),p=o(p,g,h,f,e[r+15],14,-660478335),f=o(f,p,g,h,e[r+4],20,-405537848),h=o(h,f,p,g,e[r+9],5,568446438),g=o(g,h,f,p,e[r+14],9,-1019803690),p=o(p,g,h,f,e[r+3],14,-187363961),f=o(f,p,g,h,e[r+8],20,1163531501),h=o(h,f,p,g,e[r+13],5,-1444681467),g=o(g,h,f,p,e[r+2],9,-51403784),p=o(p,g,h,f,e[r+7],14,1735328473),h=a(h,f=o(f,p,g,h,e[r+12],20,-1926607734),p,g,e[r+5],4,-378558),g=a(g,h,f,p,e[r+8],11,-2022574463),p=a(p,g,h,f,e[r+11],16,1839030562),f=a(f,p,g,h,e[r+14],23,-35309556),h=a(h,f,p,g,e[r+1],4,-1530992060),g=a(g,h,f,p,e[r+4],11,1272893353),p=a(p,g,h,f,e[r+7],16,-155497632),f=a(f,p,g,h,e[r+10],23,-1094730640),h=a(h,f,p,g,e[r+13],4,681279174),g=a(g,h,f,p,e[r],11,-358537222),p=a(p,g,h,f,e[r+3],16,-722521979),f=a(f,p,g,h,e[r+6],23,76029189),h=a(h,f,p,g,e[r+9],4,-640364487),g=a(g,h,f,p,e[r+12],11,-421815835),p=a(p,g,h,f,e[r+15],16,530742520),h=s(h,f=a(f,p,g,h,e[r+2],23,-995338651),p,g,e[r],6,-198630844),g=s(g,h,f,p,e[r+7],10,1126891415),p=s(p,g,h,f,e[r+14],15,-1416354905),f=s(f,p,g,h,e[r+5],21,-57434055),h=s(h,f,p,g,e[r+12],6,1700485571),g=s(g,h,f,p,e[r+3],10,-1894986606),p=s(p,g,h,f,e[r+10],15,-1051523),f=s(f,p,g,h,e[r+1],21,-2054922799),h=s(h,f,p,g,e[r+8],6,1873313359),g=s(g,h,f,p,e[r+15],10,-30611744),p=s(p,g,h,f,e[r+6],15,-1560198380),f=s(f,p,g,h,e[r+13],21,1309151649),h=s(h,f,p,g,e[r+4],6,-145523070),g=s(g,h,f,p,e[r+11],10,-1120210379),p=s(p,g,h,f,e[r+2],15,718787259),f=s(f,p,g,h,e[r+9],21,-343485551),h=n(h,c),f=n(f,u),p=n(p,l),g=n(g,d);return[h,f,p,g]}function u(e){var t,n="",r=32*e.length;for(t=0;t<r;t+=8)n+=String.fromCharCode(e[t>>5]>>>t%32&255);return n}function l(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t<n.length;t+=1)n[t]=0;var r=8*e.length;for(t=0;t<r;t+=8)n[t>>5]|=(255&e.charCodeAt(t/8))<<t%32;return n}function d(e){var t,n,r="";for(n=0;n<e.length;n+=1)t=e.charCodeAt(n),r+="0123456789abcdef".charAt(t>>>4&15)+"0123456789abcdef".charAt(15&t);return r}function h(e){return unescape(encodeURIComponent(e))}function f(e){return function(e){return u(c(l(e),8*e.length))}(h(e))}function p(e,t){return function(e,t){var n,r,i=l(e),o=[],a=[];for(o[15]=a[15]=void 0,i.length>16&&(i=c(i,8*e.length)),n=0;n<16;n+=1)o[n]=909522486^i[n],a[n]=1549556828^i[n];return r=c(o.concat(l(t)),512+8*t.length),u(c(a.concat(r),640))}(h(e),h(t))}function g(e,t,n){return t?n?p(t,e):d(p(t,e)):n?f(e):d(f(e))}e.exports?e.exports=g:t.md5=g}(C)})),Kb=function(){function e(t){a(this,e),this.client_=t.client,this.signalChannel_=t.signalChannel,this.log_=Ip.createLogger({id:"mix|"+this.client_.getUserId(),userId:t.client.getUserId(),sdkAppId:t.client.getSDKAppId()}),this.isMixing_=!1,this.config_=null,this.data_=null,this.remoteStreamMap_=new Map,this.installEvents()}var t,n,r,i;return c(e,[{key:"isPresetLayoutMode",get:function(){return this.config_&&this.config_.mode===Dd.PRESET_LAYOUT}},{key:"installEvents",value:function(){Of.on(tp,this.onStreamSubscribed,this),Of.on(np,this.onStreamUnsubscribed,this),this.client_.on("stream-removed",this.onStreamRemoved,this)}},{key:"uninstallEvents",value:function(){Of.off(tp,this.onStreamSubscribed,this),Of.off(np,this.onStreamUnsubscribed,this),this.client_.off("stream-removed",this.onStreamRemoved,this)}},{key:"stop",value:function(){this.uninstallEvents()}},{key:"onStreamSubscribed",value:function(e){var t=e.client,n=e.stream;t===this.client_&&(this.remoteStreamMap_.set(n.getId(),{remoteStream:n,isUsed:!1}),this.isMixing_&&this.hasAvailablePlaceHolder()&&this.startMixTranscode(this.config_))}},{key:"onStreamUnsubscribed",value:function(e){var t=e.client,n=e.stream;t===this.client_&&this.onStreamRemoved({stream:n})}},{key:"onStreamRemoved",value:function(e){var t=e.stream;if(this.remoteStreamMap_.has(t.getId())){var n=this.remoteStreamMap_.get(t.getId()).isUsed;this.remoteStreamMap_.delete(t.getId()),this.isMixing_&&this.isPresetLayoutMode&&n&&this.startMixTranscode(this.config_)}}},{key:"startMixTranscode",value:(i=o(regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,this.resetIsUsedFlag(),this.config_=t,n=this.getInputParam(t,this.remoteStreamMap_),r=this.getOutputParam(t),i=this.getOutputSessionId({config:t,roomId:this.client_.getRoomId(),userId:this.client_.getUserId()}),!this.isMixing_||!this.data_||i===this.data_.outputSessionId){e.next=10;break}return this.log_.info("startMixTranscode() streamId changed, stop mixing before start"),e.next=10,this.doStopMixTranscode();case 10:return e.next=12,this.doStartMixTranscode({outputSessionId:i,inputParam:n,outputParam:r});case 12:e.next=18;break;case 14:throw e.prev=14,e.t0=e.catch(0),this.resetIsUsedFlag(),e.t0;case 18:case"end":return e.stop()}}),e,this,[[0,14]])}))),function(e){return i.apply(this,arguments)})},{key:"doStartMixTranscode",value:(r=o(regeneratorRuntime.mark((function e(t){var n,r,i,o,a,s,c,u;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.outputSessionId,r=t.inputParam,i=t.outputParam,o={roomId:String(this.client_.getRoomId()),mcuRequestTime:Date.now(),outputSessionId:n,inputParam:r,outputParam:i},this.data_=o,this.log_.info("startMixTranscode: ".concat(JSON.stringify(o))),this.isMixing_=!0,e.prev=5,e.next=8,this.signalChannel_.sendWaitForResponse({command:Ig,data:o,timeout:5e3,responseCommand:ug.START_MIX_TRANSCODE_RES,commandDesc:"startMixTranscode"});case 8:if(a=e.sent,s=a.data,c=s.code,u=s.message,0===c){e.next=15;break}throw-102083===c&&(u="Please enable relayed-push in ".concat("https://console.cloud.tencent.com/trtc"," and try later, refer to ").concat(Xd,"tutorial-26-advanced-publish-cdn-stream.html")),this.log_.error("startMixTranscode failed, errCode: ".concat(c," errMsg: ").concat(u)),this.isMixing_=!1,new Eg({code:kg.START_MIX_TRANSCODE_FAILED,message:my({key:Vv,data:{message:u},link:{className:"Client",fnName:"startMixTranscode"}})});case 15:e.next=21;break;case 17:throw e.prev=17,e.t0=e.catch(5),this.isMixing_=!1,e.t0;case 21:case"end":return e.stop()}}),e,this,[[5,17]])}))),function(e){return r.apply(this,arguments)})},{key:"stopMixTranscode",value:(n=o(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isMixing_){e.next=2;break}throw new Eg({code:kg.INVALID_OPERATION,message:my({key:Bv})});case 2:return e.next=4,this.doStopMixTranscode();case 4:this.resetIsUsedFlag();case 5:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"doStopMixTranscode",value:(t=o(regeneratorRuntime.mark((function e(){var t,n,r,i,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={mcuRequestTime:Date.now(),outputSessionId:this.data_.outputSessionId,streamType:this.data_.outputParam.streamType},this.log_.info("stopMixTranscode: ".concat(JSON.stringify(t))),e.next=4,this.signalChannel_.sendWaitForResponse({command:Cg,data:t,timeout:5e3,responseCommand:ug.STOP_MIX_TRANSCODE_RES,commandDesc:"stopMixTranscode"});case 4:if(n=e.sent,r=n.data,i=r.code,o=r.message,0!==i){e.next=10;break}this.isMixing_=!1,e.next=12;break;case 10:throw this.log_.error("stopMixTranscode failed, errCode: ".concat(i," errMsg: ").concat(o)),new Eg({code:kg.STOP_MIX_TRANSCODE_FAILED,message:my({key:jv,data:{message:o},link:{className:"Client",fnName:"stopMixTranscode"}})});case 12:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"getOutputSessionId",value:function(e){var t=e.config,n=e.userId,r=e.roomId;return ch(t.streamId)&&t.streamId.length>0?t.streamId:$b("".concat(r,"_").concat(n,"_main"))}},{key:"getInputParam",value:function(e,t){var n=this,r=e.mixUsers.map((function(e){return{userId:e.userId,roomId:String(e.roomId||n.client_.getRoomId()),width:e.width||0,height:e.height||0,locationX:e.locationX||0,locationY:e.locationY||0,zOrder:e.zOrder,streamType:sh(e.streamType)||e.streamType!==Wl?0:1,inputType:e.pureAudio?Rd.IT_PURE_AUDIO:Rd.IT_AUDIO_VIDEO}}));return e.mode===Dd.PRESET_LAYOUT&&(r.forEach((function(e){if(e.userId===Od.REMOTE){var n=b(t.values()).find((function(e){return!e.isUsed}));n&&(e.userId=n.remoteStream.getUserId(),e.streamType=n.remoteStream.getType()===Wl?1:0,n.isUsed=!0)}})),r=r.filter((function(e){return e.userId!==Od.REMOTE}))),r}},{key:"getOutputParam",value:function(e){var t=e.streamId||"";return{streamId:t,streamType:t.length>0?1:0,width:sh(e.videoWidth)?640:e.videoWidth,height:sh(e.videoHeight)?480:e.videoHeight,videoBps:e.videoBitrate||0,fps:e.videoFramerate||15,gop:e.videoGOP||2,audioSampleRate:e.audioSampleRate||48e3,audioBps:e.audioBitrate||64,audioChannels:e.audioChannels||1,backgroundColor:e.backgroundColor||0,backgroundImg:e.backgroundImage||"",extraInfo:"",videoCodec:2,audioCodec:0}}},{key:"hasAvailablePlaceHolder",value:function(){return!!this.isPresetLayoutMode&&this.data_.inputParam.length!==this.config_.mixUsers.length}},{key:"resetIsUsedFlag",value:function(){this.remoteStreamMap_.forEach((function(e){return e.isUsed=!1}))}}]),e}(),Yb=function(){function e(t){a(this,e),this.client_=t.client,this.signalChannel_=t.signalChannel,this.isPublishingTencentCDN_=!1,this.publishTencentStreamRetryCount_=0,this.publishGivenCDNData_=null,this.isPublishingGivenCDN_=!1}var t,n,r,i,s;return c(e,[{key:"getIsPublishingTencentCDN",value:function(){return this.isPublishingTencentCDN_}},{key:"getIsPublishingGivenCDN",value:function(){return this.isPublishingGivenCDN_}},{key:"startPublishTencentCDN",value:(s=o(regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=t.streamId)||(r="".concat(this.client_.getRoomId(),"_").concat(this.client_.getUserId(),"_main"),/^[A-Za-z\d_-]*$/.test(r)||(r=$b(r)),n="".concat(this.client_.getSDKAppId(),"_").concat(r)),i={requestTime:Date.now(),sessionId:$b("".concat(this.client_.getRoomId(),"_").concat(this.client_.getUserId(),"_main")),streamId:n,streamType:0},this.isPublishingTencentCDN_=!0,this.publishTencentStreamRetryCount_=0,e.next=7,this.doStartPublishTencentCDN(i);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return s.apply(this,arguments)})},{key:"doStartPublishTencentCDN",value:(i=o(regeneratorRuntime.mark((function e(t){var n,r,i,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,Ip.info("startPublishTencentCDN: "+JSON.stringify(t)),e.next=4,this.signalChannel_.sendWaitForResponse({command:bg,data:t,timeout:2e3,responseCommand:ug.START_PUBLISH_TENCENT_CDN_RES,commandDesc:"startPublishCDNStream",retry:2});case 4:if(n=e.sent,r=n.data,i=r.code,o=r.message,0===i){e.next=11;break}throw this.isPublishingTencentCDN_=!1,-102083===i&&(o="Please enable relayed-push in ".concat("https://console.cloud.tencent.com/trtc"," and try later, refer to ").concat(Xd,"tutorial-26-advanced-publish-cdn-stream.html")),Ip.error("startPublishTencentCDN failed, errCode: ".concat(i,", errMsg: ").concat(o)),new Eg({code:kg.START_PUBLISH_CDN_FAILED,message:my({key:hv,data:{message:o},link:{className:"Client",fnName:"startPublishCDNStream"}})});case 11:e.next=17;break;case 13:throw e.prev=13,e.t0=e.catch(0),this.isPublishingTencentCDN_=!1,e.t0;case 17:case"end":return e.stop()}}),e,this,[[0,13]])}))),function(e){return i.apply(this,arguments)})},{key:"stopPublishTencentCDN",value:(r=o(regeneratorRuntime.mark((function e(){var t,n,r,i,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={requestTime:Date.now(),sessionId:$b("".concat(this.client_.getRoomId(),"_").concat(this.client_.getUserId(),"_main"))},Ip.info("stopPublishTencentCDN: "+JSON.stringify(t)),e.next=4,this.signalChannel_.sendWaitForResponse({command:Sg,data:t,timeout:5e3,responseCommand:ug.STOP_PUBLISH_TENCENT_CDN_RES,commandDesc:"stopPublishCDNStream"});case 4:if(n=e.sent,r=n.data,i=r.code,o=r.message,0!==i){e.next=10;break}this.isPublishingTencentCDN_=!1,e.next=17;break;case 10:if(-102069!==i){e.next=15;break}Ip.warn("stopPublishTencentCDN failed, can not stopPublishTencentCDN in auto relayed-push mode"),this.isPublishingTencentCDN_=!1,e.next=17;break;case 15:throw Ip.error("stopPublishTencentCDN failed, errCode: ".concat(i," errMsg: ").concat(o)),new Eg({code:kg.STOP_PUBLISH_CDN_FAILED,message:my({key:fv,data:{message:o},link:{className:"Client",fnName:"stopPublishCDNStream"}})});case 17:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"startPublishGivenCDN",value:(n=o(regeneratorRuntime.mark((function e(t){var n,r,i,o,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={pushRequestTime:Date.now(),pushAppId:t.appId,pushBizId:t.bizId,pushCdnUrl:t.url,pushStreamType:"main"},Ip.info("startPublishGivenCDN: "+JSON.stringify(n)),this.publishGivenCDNData_=n,this.isPublishingGivenCDN_=!0,e.prev=4,e.next=7,this.signalChannel_.sendWaitForResponse({command:xg,data:n,timeout:5e3,responseCommand:ug.START_PUBLISH_GIVEN_CDN_RES,commandDesc:"startPublishCDNStream"});case 7:if(r=e.sent,i=r.data,o=i.code,a=i.message,0===o){e.next=13;break}throw Ip.error("startPublishGivenCDN failed, errCode: ".concat(o,", errMsg: ").concat(a)),this.isPublishingGivenCDN_=!1,new Eg({code:kg.START_PUBLISH_CDN_FAILED,message:my({key:hv,data:{message:a},link:{className:"Client",fnName:"startPublishCDNStream"}})});case 13:e.next=19;break;case 15:throw e.prev=15,e.t0=e.catch(4),this.isPublishingGivenCDN_=!1,e.t0;case 19:case"end":return e.stop()}}),e,this,[[4,15]])}))),function(e){return n.apply(this,arguments)})},{key:"stopPublishGivenCDN",value:(t=o(regeneratorRuntime.mark((function e(){var t,n,r,i,o,a,s,c,u,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.publishGivenCDNData_,n=t.pushAppId,r=t.pushBizId,i=t.pushCdnUrl,o=t.pushStreamType,a={pushRequestTime:Date.now(),pushAppId:n,pushBizId:r,pushCdnUrl:i,pushStreamType:o},Ip.info("stopPublishGivenCDN: "+JSON.stringify(a)),e.next=5,this.signalChannel_.sendWaitForResponse({command:wg,data:a,timeout:5e3,responseCommand:ug.STOP_PUBLISH_GIVEN_CDN_RES,commandDesc:"stopPublishCDNStream"});case 5:if(s=e.sent,c=s.data,u=c.code,l=c.message,0!==u){e.next=11;break}this.isPublishingGivenCDN_=!1,e.next=13;break;case 11:throw Ip.error("stopPublishGivenCDN failed, errCode: ".concat(u," errMsg: ").concat(l)),new Eg({code:kg.STOP_PUBLISH_CDN_FAILED,message:my({key:fv,data:{message:l},link:{className:"Client",fnName:"stopPublishCDNStream"}})});case 13:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),e}(),Jb=function(){function e(t){a(this,e),this.client_=t.client,this.durationMap_=new Map,this.installEvents()}return c(e,[{key:"installEvents",value:function(){Of.on(tp,this.handleSubscribed,this),Of.on(Zf,this.handleStreamTrackUpdated,this),Of.on(np,this.handleStreamStopped,this),Of.on(ip,this.handleStreamStopped,this)}},{key:"uninstallEvents",value:function(){Of.off(tp,this.handleSubscribed,this),Of.off(rp,this.handleStreamTrackUpdated,this),Of.off(np,this.handleStreamStopped,this),Of.off(ip,this.handleStreamStopped,this)}},{key:"handleSubscribed",value:function(e){var t=e.client,n=e.stream;if(t===this.client_){var r=n.getUserId(),i=n.getType(),o="".concat(r,"_").concat(i);if(n.hasAudio())if(n.isMainAudioSubscribed){var a=new Hb,s=this.durationMap_.get(o);s?this.isRecording(s.audio)||s.audio.push(a):this.durationMap_.set(o,{userId:r,type:i,audio:[a],video:[]})}else this.stopDurationItem(o,ul);if(n.hasVideo())if(i===Hl&&n.isMainVideoSubscribed||i===Wl&&n.isAuxVideoSubscribed){var c=new Hb,u=this.durationMap_.get(o);u?this.isRecording(u.video)||u.video.push(c):this.durationMap_.set(o,{userId:r,type:i,audio:[],video:[c]})}else this.stopDurationItem(o,ll)}}},{key:"handleStreamStopped",value:function(e){var t=e.client,n=e.stream;if(this.clientHitTest(t)){var r=n.getUserId(),i=n.getType(),o="".concat(r,"_").concat(i);this.stopDurationItem(o,ul),this.stopDurationItem(o,ll)}}},{key:"handleStreamTrackUpdated",value:function(e){var t=e.client,n=e.userId,r=e.tinyId,i=e.kind,o=e.action;if(this.clientHitTest(t)&&this.client_.getConnections().has(r)){var a=i===dl?i:Hl,s="".concat(n,"_").concat(a);if(o===Gd){var c=this.client_.getConnections().get(r).getSubscribeState();if(i===ul&&!c.audio||i===ll&&!c.video||i===dl&&!c.auxiliary)return;var u=new Hb,l=this.durationMap_.get(s);l?(i!==ul||this.isRecording(l.audio)||l.audio.push(u),i===ul||this.isRecording(l.video)||l.video.push(u)):this.durationMap_.set(s,{userId:n,type:a,audio:i===ul?[u]:[],video:i===ul?[]:[u]})}else this.stopDurationItem(s,i===ul?ul:ll)}}},{key:"isRecording",value:function(e){return e.findIndex((function(e){return 0===e.endTime}))>=0}},{key:"stopDurationItem",value:function(e,t){if(this.durationMap_.has(e)){var n=this.durationMap_.get(e)[t].find((function(e){return 0===e.endTime}));n&&n.stop()}}},{key:"clientHitTest",value:function(e){return this.client_===e}},{key:"getDuration",value:function(e,t){return this.durationMap_.has(e)?this.durationMap_.get(e)[t].reduce((function(e,t){return e+t.getDuration()}),0):0}},{key:"getDurationMap",value:function(){return this.durationMap_}},{key:"reset",value:function(){this.durationMap_.clear()}}]),e}(),Xb=ii.f,Zb=D((function(){return!Object.getOwnPropertyNames(1)}));Mt({target:"Object",stat:!0,forced:Zb},{getOwnPropertyNames:Xb});var Qb={msg_user_info:0,uint32_video_avg_fps:0,uint32_video_width:0,uint32_video_height:0,uint32_video_avg_bitrate:0,uint32_video_block_time:0,uint32_video_play_time:0,uint32_audio_block_time:0,uint32_audio_play_time:0,uint32_audio_play_db:0,uint32_avg_down_loss:0,uint32_stream_type:0,uint32_video_render_first:0,uint32_video_block_count:0,uint32_audio_block_count:0,uint32_audio_bitrate:0,uint32_video_black_screen_subjective:0,uint32_audio_recv_bitrate:0,uint32_video_external_block_time:0},eS=function e(t){a(this,e),this.str_identifier=String(t.userId),this.uint64_tinyid=Number(t.tinyId),this.uint32_role=t.role},tS=function(){function e(t){var n=this;a(this,e),this.frameWorkType_=t.frameWorkType||30,this.client_=t.client,this.keyPrefix_="key_point",this.storageKey_="".concat(this.keyPrefix_,"_").concat(this.client_.getUserId()),this.log_=Ip.createLogger({id:"kpm|"+this.client_.getUserId(),userId:this.client_.getUserId(),sdkAppId:this.client_.getSDKAppId()}),this.upload=Sp({retryFunction:this.upload,settings:{timeout:500,retries:3},onError:function(e,t){return t()}}),Object.getOwnPropertyNames(this.__proto__).forEach((function(e){e.startsWith("handle")&&ah(n[e])&&(n[e]=function(e){var t=e.fn,n=e.context;return o(regeneratorRuntime.mark((function e(){var r,i,o,a=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(e.prev=0,r=a.length,i=new Array(r),o=0;o<r;o++)i[o]=a[o];return e.next=4,t.apply(n||this,i);case 4:return e.abrupt("return",e.sent);case 7:e.prev=7,e.t0=e.catch(0),Ip.error("".concat(t.name,"() error observed ")+e.t0);case 10:case"end":return e.stop()}}),e,this,[[0,7]])})))}({fn:n[e],context:n}))})),this.initData(),this.installEvents(),this.intervalId_=Py.setInterval(this.setStorage.bind(this),2e4)}var t,r,i;return c(e,[{key:"initData",value:function(){this.firstPublishedUserList_=[],this.networkQuality_={totalUplinkRTT:0,totalUplinkLoss:0,count:0,totalDownlinkRTTAndLossMap:new Map},this.basicInfo={string_sdk_version:"4.12.0",uint32_os_type:15,string_device_name:"",string_http_user_agent:navigator.userAgent,string_os_version:"",uint32_avg_rtt:0,uint32_avg_up_loss:0,uint32_scene:"live"===this.client_.getMode()?1:0,uint32_joining_duration:0,uint32_networkType:jd[rh()],uint32_framework:this.frameWorkType_},this.pathJoinRoom_={uint64_start_time:0,uint64_init_audio_start_time:0,uint64_init_audio_end_time:0,uint64_init_camera_start_time:0,uint64_init_camera_end_time:0,uint64_send_request_acc_ip_cmd_start_time:0,uint64_send_request_acc_ip_cmd_end_time:0,uint64_send_request_enter_room_cmd_start_time:0,uint64_send_request_enter_room_cmd_end_time:0,uint64_send_first_video_frame_time:0,uint64_recv_userlist_time:0,uint64_end_time:0,int32_init_audio_ret:0,int32_init_camera_ret:0,int32_send_request_acc_ip_cmd_ret:0,int32_send_request_enter_room_cmd_ret:0,int32_end_ret:0},this.pathLeaveRoom_={uint64_start_time:0,uint64_send_request_exit_room_cmd_start_time:0,uint64_send_request_exit_room_cmd_end_time:0,uint64_end_time:0,int32_send_request_exit_room_cmd_ret:0,int32_end_ret:0},this.pathMainVideoMap_=new Map,this.pathMainAudioMap_=new Map,this.pathAuxiliaryMap_=new Map,this.localStreamStats_={totalVideoBitrate:0,totalVideoFPS:0,totalVideoHeight:0,totalVideoWidth:0,totalAudioLevel:0,videoCount:0,audioLevelCount:0,publishStartTime:0,statsToReport:{uint32_audio_capture_db:0,uint32_video_big_capture_fps:0,uint32_video_big_bitrate:0,uint32_video_big_resolution:0}},this.remoteStreamStatsMap_=new Map}},{key:"installEvents",value:function(){Of.on(Rf,this.handleJoinStart,this),Of.on(Hf,this.handleWSStart,this),Of.on(Wf,this.handleWSEnd,this),Of.on(Lf,this.handleJoinSendCMD,this),Of.on(Pf,this.handleJoinReceivedCMDResponce,this),Of.on(Nf,this.handleJoinSuccess,this),Of.on(Uf,this.handleJoinFailed,this),Of.on(Bf,this.handleReceivedPublishUserList,this),Of.on(vp,this.handleConnectionStateChanged,this),Of.on(Ff,this.handleLeaveStart,this),Of.on(Vf,this.handleLeaveSuccess,this),Of.on(Gf,this.handleLeaveSendCMD,this),Of.on(yp,this.handleSendSubscribeCMD,this),Of.on(Jf,this.handleVideoPlaying,this),Of.on(Xf,this.handleAudioPlaying,this),Of.on(_p,this.handleNetworkQuality,this),Of.on(jf,this.handleHeartbeatStats,this),Of.on(Qf,this.handleRemoteStreamAdded,this),Of.on(ep,this.handleRemoteStreamSubscribeStart,this),Of.on(tp,this.handleRemoteStreamSubscribed,this),Of.on(hp,this.handleVideoLoadedData,this),Of.on(dp,this.handlePlayStream,this),Of.on(zf,this.handlePublishStart,this),Of.on(ap,this.handleLocalStreamInitStart,this),Of.on(sp,this.handleLocalStreamInitEnd,this),Of.on(cp,this.handleLocalStreamInitFailed,this)}},{key:"uninstallEvents",value:function(){Of.off(Rf,this.handleJoinStart,this),Of.off(Hf,this.handleWSStart,this),Of.off(Wf,this.handleWSEnd,this),Of.off(Lf,this.handleJoinSendCMD,this),Of.off(Pf,this.handleJoinReceivedCMDResponce,this),Of.off(Bf,this.handleReceivedPublishUserList,this),Of.off(vp,this.handleConnectionStateChanged,this),Of.off(Ff,this.handleLeaveStart,this),Of.off(Vf,this.handleLeaveSuccess,this),Of.off(Nf,this.handleJoinSuccess,this),Of.off(Uf,this.handleJoinFailed,this),Of.off(Gf,this.handleLeaveSendCMD,this),Of.off(yp,this.handleSendSubscribeCMD,this),Of.off(Jf,this.handleVideoPlaying,this),Of.off(Xf,this.handleAudioPlaying,this),Of.off(_p,this.handleNetworkQuality,this),Of.off(jf,this.handleHeartbeatStats,this),Of.off(Qf,this.handleRemoteStreamAdded,this),Of.off(ep,this.handleRemoteStreamSubscribeStart,this),Of.off(tp,this.handleRemoteStreamSubscribed,this),Of.off(hp,this.handleVideoLoadedData,this),Of.off(dp,this.handlePlayStream,this),Of.off(zf,this.handlePublishStart,this),Of.off(ap,this.handleLocalStreamInitStart,this),Of.off(sp,this.handleLocalStreamInitEnd,this),Of.off(cp,this.handleLocalStreamInitFailed,this)}},{key:"handleJoinStart",value:function(e){this.hitTest(e.client)&&0===this.pathJoinRoom_.uint64_start_time&&(this.pathJoinRoom_.uint64_start_time=Date.now(),this.checkStorage())}},{key:"handleWSStart",value:function(e){var t=e.client;this.hitTest(t)&&0===this.pathJoinRoom_.uint64_send_request_acc_ip_cmd_start_time&&(this.pathJoinRoom_.uint64_send_request_acc_ip_cmd_start_time=Date.now())}},{key:"handleWSEnd",value:function(e){var t=e.client,n=e.error;this.hitTest(t)&&0===this.pathJoinRoom_.uint64_send_request_acc_ip_cmd_end_time&&(this.pathJoinRoom_.uint64_send_request_acc_ip_cmd_end_time=Date.now(),n&&(this.pathJoinRoom_.int32_send_request_acc_ip_cmd_ret=n instanceof Eg?Number(n.getExtraCode()||n.getCode()):kg.UNKNOWN,this.pathJoinRoom_.int32_end_ret=2))}},{key:"handleJoinSendCMD",value:function(e){this.hitTest(e.client)&&0===this.pathJoinRoom_.uint64_send_request_enter_room_cmd_start_time&&(this.pathJoinRoom_.uint64_send_request_enter_room_cmd_start_time=Date.now())}},{key:"handleJoinReceivedCMDResponce",value:function(e){this.hitTest(e.client)&&0===this.pathJoinRoom_.uint64_send_request_enter_room_cmd_end_time&&(this.pathJoinRoom_.uint64_send_request_enter_room_cmd_end_time=Date.now(),this.pathJoinRoom_.int32_send_request_enter_room_cmd_ret=e.code,0!==e.code&&(this.pathJoinRoom_.int32_end_ret=3))}},{key:"handleJoinSuccess",value:function(e){this.hitTest(e.client)&&0===this.pathJoinRoom_.uint64_end_time&&(this.pathJoinRoom_.uint64_end_time=Date.now(),this.pathJoinRoom_.int32_end_ret=0)}},{key:"handleJoinFailed",value:function(e){var t=e.client;this.hitTest(t)&&(this.pathJoinRoom_.uint64_end_time=Date.now(),0===this.pathJoinRoom_.int32_end_ret&&(this.pathJoinRoom_.int32_end_ret=3),this.prepareReport(),this.report())}},{key:"handleReceivedPublishUserList",value:function(e){this.hitTest(e.client)&&0===this.pathJoinRoom_.uint64_recv_userlist_time&&(this.pathJoinRoom_.uint64_recv_userlist_time=Date.now(),this.firstPublishedUserList_=e.data.data&&e.data.data.userList||[])}},{key:"handleConnectionStateChanged",value:function(e){var t=e.client,n=e.state,r=e.connection;if(this.hitTest(t)&&n===Yl){this.client_.getUplinkConnection()===r&&0===this.pathJoinRoom_.uint64_send_first_video_frame_time&&this.localStreamStats_.publishStartTime>this.pathJoinRoom_.uint64_end_time&&this.localStreamStats_.publishStartTime-this.pathJoinRoom_.uint64_end_time<=100&&(this.pathJoinRoom_.uint64_send_first_video_frame_time=Date.now());var i=this.pathMainVideoMap_.get("".concat(r.getUserId(),"_").concat(Hl));i&&0===i.statsToReport.uint64_pc_connected_time&&(i.statsToReport.uint64_pc_connected_time=Date.now())}}},{key:"handleLeaveStart",value:function(e){this.hitTest(e.client)&&(this.pathLeaveRoom_.uint64_start_time=Date.now())}},{key:"handleLeaveSuccess",value:function(e){this.hitTest(e.client)&&0===this.pathLeaveRoom_.uint64_end_time&&(this.pathLeaveRoom_.uint64_end_time=Date.now(),0!==this.pathJoinRoom_.uint64_end_time?this.basicInfo.uint32_joining_duration=this.pathLeaveRoom_.uint64_end_time-this.pathJoinRoom_.uint64_end_time:this.log_.warn("pathJoinRoom endTime is 0"),this.report())}},{key:"handleLeaveSendCMD",value:function(e){this.hitTest(e.client)&&(this.pathLeaveRoom_.uint64_send_request_exit_room_cmd_start_time=Date.now(),this.pathLeaveRoom_.uint64_send_request_exit_room_cmd_end_time=Date.now())}},{key:"handleRemoteStreamAdded",value:function(e){var t=e.client,r=e.stream;if(this.hitTest(t)){var i=r.getUserId(),o=r.getType(),a="".concat(i,"_").concat(o),s=this.remoteStreamStatsMap_.get(a);if(s)s.stream=r;else{var c={userId:i,totalVideoFPS:0,totalVideoBitrate:0,totalAudioLevel:0,totalAudioBitrate:0,totalLoss:0,audioCount:0,audioLevelCount:0,videoCount:0,networkQualityCount:0,streamAddedTime:Date.now(),subscribeStartTime:0,subscribedTime:0,playStreamTime:0,statsToReport:n({},Qb),stream:r};c.statsToReport.msg_user_info=new eS({userId:i,tinyId:r.getTinyId(),role:Gl}),c.statsToReport.uint32_stream_type=o===Hl?2:7,this.remoteStreamStatsMap_.set(a,c)}}}},{key:"handleRemoteStreamSubscribeStart",value:function(e){var t=e.client,n=e.stream;if(this.hitTest(t)){var r=n.getUserId(),i=n.getType(),o="".concat(r,"_").concat(i),a=this.remoteStreamStatsMap_.get(o);a&&0===a.subscribeStartTime&&(a.subscribeStartTime=Date.now())}}},{key:"handleSendSubscribeCMD",value:function(e){if(this.hitTest(e.client)){var t=new eS(e),n=Date.now(),r="".concat(e.userId,"_").concat(Hl);e.trackState.video&&e.subscribeState.video&&!this.pathMainVideoMap_.has(r)&&this.pathMainVideoMap_.set(r,{statsToReport:{msg_user_info:t,uint64_start_enter_time:this.pathJoinRoom_.uint64_start_time,uint64_render_first_frame_time:0,uint64_combine_first_frame_time:0,uint64_pc_connected_time:0},userId:e.userId,sendSubscribeCMDTime:n}),e.trackState.audio&&e.subscribeState.audio&&!this.pathMainAudioMap_.has(r)&&this.pathMainAudioMap_.set(r,{statsToReport:{msg_user_info:t,uint64_start_enter_time:this.pathJoinRoom_.uint64_start_time,uint64_play_first_frame_time:0},userId:e.userId,sendSubscribeCMDTime:n});var i="".concat(e.userId,"_").concat(Wl);e.trackState.auxiliary&&e.subscribeState.auxiliary&&!this.pathAuxiliaryMap_.has(i)&&this.pathAuxiliaryMap_.set(i,{sendSubscribeCMDTime:n})}}},{key:"handleRemoteStreamSubscribed",value:function(e){var t=e.client,n=e.stream;if(this.hitTest(t)){var r=n.getUserId(),i=n.getType(),o="".concat(r,"_").concat(i),a=this.remoteStreamStatsMap_.get(o);a&&0===a.subscribedTime&&(a.subscribedTime=Date.now(),a.stream=n)}}},{key:"handlePlayStream",value:function(e){var t=e.stream;if(t.isRemote()&&t.getConnection()&&this.hitTest(t.getConnection().getClient())){var n=t.getConnection().getUserId(),r="".concat(n,"_").concat(t.getType());if(this.remoteStreamStatsMap_.has(r)){var i=this.remoteStreamStatsMap_.get(r);0===i.playStreamTime&&(i.playStreamTime=Date.now())}}}},{key:"handleVideoLoadedData",value:function(e){var t=e.stream;if(t.isRemote()&&t.getConnection()&&this.hitTest(t.getConnection().getClient())){var n=t.getConnection().getUserId(),r="".concat(n,"_").concat(t.getType());if(this.pathMainVideoMap_.has(r)){var i=this.pathMainVideoMap_.get(r);0===i.statsToReport.uint64_combine_first_frame_time&&(i.statsToReport.uint64_combine_first_frame_time=Date.now())}}}},{key:"handleVideoPlaying",value:function(e){var t=e.stream;if(t.isRemote()&&t.getConnection()&&this.hitTest(t.getConnection().getClient())){var n=t.getConnection().getUserId(),r="".concat(n,"_").concat(t.getType()),i=Date.now();if(this.pathMainVideoMap_.has(r)){var o=this.pathMainVideoMap_.get(r);if(0===o.statsToReport.uint64_render_first_frame_time&&(o.statsToReport.uint64_render_first_frame_time=i),this.remoteStreamStatsMap_.has(r)){var a=this.remoteStreamStatsMap_.get(r),s=a.statsToReport,c=a.playStreamTime,u=a.subscribedTime;0===s.uint32_video_render_first&&c-u<=100&&(s.uint32_video_render_first=i-o.sendSubscribeCMDTime)}}if(t.getType()===Wl&&this.pathAuxiliaryMap_.has(r)&&this.remoteStreamStatsMap_.has(r)){var l=this.remoteStreamStatsMap_.get(r),d=l.statsToReport,h=l.playStreamTime,f=l.subscribedTime;0===d.uint32_video_render_first&&h-f<=100&&(d.uint32_video_render_first=i-this.pathAuxiliaryMap_.get(r).sendSubscribeCMDTime)}}}},{key:"handleAudioPlaying",value:function(e){if(e.stream.isRemote()&&e.stream.getConnection()&&this.hitTest(e.stream.getConnection().getClient())){var t=e.stream.getConnection().getUserId(),n="".concat(t,"_").concat(e.stream.getType());if(this.pathMainAudioMap_.has(n)){var r=this.pathMainAudioMap_.get(n);0===r.statsToReport.uint64_play_first_frame_time&&(r.statsToReport.uint64_play_first_frame_time=Date.now())}}}},{key:"handleNetworkQuality",value:function(e){var t=this;this.hitTest(e.client)&&(this.networkQuality_.totalUplinkLoss+=e.uplinkLoss,this.networkQuality_.totalUplinkRTT+=e.uplinkRTT,this.networkQuality_.count++,e.downlinkLossAndRTTMap.forEach((function(e){var n=e.rtt,r=e.loss,i=e.userId,o=t.networkQuality_.totalDownlinkRTTAndLossMap.get(i);o?(o.totalRTT+=n,o.totalLoss+=r,o.count++):t.networkQuality_.totalDownlinkRTTAndLossMap.set(i,{totalRTT:n,totalLoss:r,count:1})})))}},{key:"handleHeartbeatStats",value:function(e){var t=this;if(this.hitTest(e.client)){var n=e.stats,r=n.msg_up_stream_info,i=n.msg_down_stream_info;if(r.msg_video_status[0]){var o=r.msg_video_status[0],a=o.uint32_video_codec_bitrate,s=o.uint32_video_enc_fps,c=o.uint32_video_width,u=o.uint32_video_height;this.localStreamStats_.totalVideoBitrate+=a,this.localStreamStats_.totalVideoFPS+=s,this.localStreamStats_.totalVideoWidth+=c,this.localStreamStats_.totalVideoHeight+=u,this.localStreamStats_.videoCount++}var l=r.msg_audio_status.audioLevel;Math.floor(100*l)>0&&(this.localStreamStats_.totalAudioLevel+=l,this.localStreamStats_.audioLevelCount++),i.forEach((function(e){var n=e.msg_user_info,r=e.msg_audio_status,i=e.msg_video_status,o=n.str_identifier;if(i.forEach((function(e){var n=2===e.uint32_video_stream_type,r=7===e.uint32_video_stream_type,i="".concat(o,"_").concat(n?Hl:Wl);if(t.remoteStreamStatsMap_.has(i)){var a=t.remoteStreamStatsMap_.get(i);(n&&a.stream.isMainVideoSubscribed||r&&a.stream.isAuxVideoSubscribed)&&(a.totalVideoFPS+=e.uint32_video_receive_fps,a.totalVideoBitrate+=e.uint32_video_codec_bitrate,a.videoCount++,0===a.statsToReport.uint32_video_width&&(a.statsToReport.uint32_video_width=e.uint32_video_width),0===a.statsToReport.uint32_video_height&&(a.statsToReport.uint32_video_height=e.uint32_video_height))}})),r){var a="".concat(o,"_").concat(Hl);if(t.remoteStreamStatsMap_.has(a)){var s=t.remoteStreamStatsMap_.get(a);s.stream.isMainAudioSubscribed&&(s.totalAudioBitrate+=r.uint32_audio_codec_bitrate,s.audioCount++,Math.floor(100*r.audioLevel)>0&&(s.totalAudioLevel+=r.audioLevel,s.audioLevelCount++))}}}))}}},{key:"handlePublishStart",value:function(e){var t=e.client;this.hitTest(t)&&0===this.localStreamStats_.publishStartTime&&(this.localStreamStats_.publishStartTime=Date.now())}},{key:"handleLocalStreamInitStart",value:function(e){var t=e.audio,n=e.video;t&&0===this.pathJoinRoom_.uint64_init_audio_start_time&&(this.pathJoinRoom_.uint64_init_audio_start_time=Date.now()),n&&0===this.pathJoinRoom_.uint64_init_camera_start_time&&(this.pathJoinRoom_.uint64_init_camera_start_time=Date.now())}},{key:"handleLocalStreamInitEnd",value:function(e){var t=e.audio,n=e.video;t&&0===this.pathJoinRoom_.uint64_init_audio_end_time&&(this.pathJoinRoom_.uint64_init_audio_end_time=Date.now()),n&&0===this.pathJoinRoom_.uint64_init_camera_end_time&&(this.pathJoinRoom_.uint64_init_camera_end_time=Date.now())}},{key:"handleLocalStreamInitFailed",value:function(e){var t=e.audio,n=e.video,r=e.error,i=r instanceof Eg?r.getExtraCode()||r.getCode():{NotFoundError:1,NotAllowedError:2,NotReadableError:3,OverConstrainedError:4,AbortError:5}[r.name]||kg.UNKNOWN;t&&0===this.pathJoinRoom_.uint64_init_audio_end_time&&(this.pathJoinRoom_.int32_init_audio_ret=i,this.pathJoinRoom_.uint64_init_audio_end_time=Date.now()),n&&0===this.pathJoinRoom_.uint64_init_camera_end_time&&(this.pathJoinRoom_.int32_init_camera_ret=i,this.pathJoinRoom_.uint64_init_camera_end_time=Date.now())}},{key:"hasVideoFlag",value:function(e){return this.firstPublishedUserList_.findIndex((function(t){return t.userId===e&&1&t.flag}))>=0}},{key:"hasAudioFlag",value:function(e){return this.firstPublishedUserList_.findIndex((function(t){return t.userId===e&&8&t.flag}))>=0}},{key:"hasAuxFlag",value:function(e){return this.firstPublishedUserList_.findIndex((function(t){return t.userId===e&&4&t.flag}))>=0}},{key:"hitTest",value:function(e){return e===this.client_}},{key:"checkStorage",value:(i=o(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!(t=Ny.getItem(this.storageKey_))){e.next=6;break}return e.next=5,this.upload(t);case 5:Ny.deleteItem(this.storageKey_);case 6:e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),this.log_.warn(e.t0);case 11:case"end":return e.stop()}}),e,this,[[0,8]])}))),function(){return i.apply(this,arguments)})},{key:"setStorage",value:function(){this.prepareReport();var e=this.getReportData();0!==e.msg_path_enter_room.uint64_start_time&&Ny.setItem(this.storageKey_,e)}},{key:"prepareReport",value:function(){var e=this;if(this.networkQuality_.count>0&&(this.basicInfo.uint32_avg_rtt=Math.floor(this.networkQuality_.totalUplinkRTT/this.networkQuality_.count),this.basicInfo.uint32_avg_up_loss=Math.floor(this.networkQuality_.totalUplinkLoss/this.networkQuality_.count)),this.localStreamStats_.videoCount>0){this.localStreamStats_.statsToReport.uint32_video_big_capture_fps=Math.floor(this.localStreamStats_.totalVideoFPS/this.localStreamStats_.videoCount),this.localStreamStats_.statsToReport.uint32_video_big_bitrate=Math.floor(this.localStreamStats_.totalVideoBitrate/this.localStreamStats_.videoCount);var t=Math.floor(this.localStreamStats_.totalVideoWidth/this.localStreamStats_.videoCount),n=Math.floor(this.localStreamStats_.totalVideoHeight/this.localStreamStats_.videoCount);this.localStreamStats_.statsToReport.uint32_video_big_resolution=t<<16|n}this.localStreamStats_.audioLevelCount>0&&(this.localStreamStats_.statsToReport.uint32_audio_capture_db=Math.floor(this.localStreamStats_.totalAudioLevel/this.localStreamStats_.audioLevelCount*100)),this.remoteStreamStatsMap_.forEach((function(t,n){var r=t.userId;if(e.networkQuality_.totalDownlinkRTTAndLossMap.has(r)){var i=e.networkQuality_.totalDownlinkRTTAndLossMap.get(r),o=i.totalLoss,a=i.count;t.statsToReport.uint32_avg_down_loss=Math.floor(o/a)}t.videoCount>0&&(t.statsToReport.uint32_video_avg_fps=Math.floor(t.totalVideoFPS/t.videoCount),t.statsToReport.uint32_video_avg_bitrate=Math.floor(t.totalVideoBitrate/t.videoCount)),t.audioCount>0&&(t.statsToReport.uint32_audio_recv_bitrate=t.statsToReport.uint32_audio_bitrate=Math.floor(t.totalAudioBitrate/t.audioCount)),t.audioLevelCount>0&&(t.statsToReport.uint32_audio_play_db=Math.floor(t.totalAudioLevel/t.audioLevelCount*100));var s=e.client_.getCallDurationCalculator();s&&(t.statsToReport.uint32_audio_play_time=s.getDuration(n,ul),t.statsToReport.uint32_video_play_time=s.getDuration(n,ll)),t.statsToReport.uint32_video_render_first=Math.min(t.statsToReport.uint32_video_render_first,5e3);var c=e.client_.getBadCaseDetector();if(c){var u=c.getDataFreezeDuration(n),l=u.dataFreeze,d=u.count,h=c.getRenderFreezeDuration(n).renderFreeze;t.statsToReport.uint32_video_block_count=d,t.statsToReport.uint32_video_block_time=Math.min(l,t.statsToReport.uint32_video_play_time),t.statsToReport.uint32_video_external_block_time=Math.min(h,t.statsToReport.uint32_video_play_time),c.isBlackStream(n)&&0===t.statsToReport.uint32_video_avg_fps?t.statsToReport.uint32_video_black_screen_subjective=1:t.statsToReport.uint32_video_black_screen_subjective=0}(0===t.subscribeStartTime||t.subscribeStartTime-t.streamAddedTime>100||0===t.playStreamTime)&&(e.pathMainAudioMap_.delete(n),e.pathMainVideoMap_.delete(n),t.statsToReport.uint32_video_render_first=0)})),this.pathMainAudioMap_.forEach((function(t,n){e.hasAudioFlag(t.userId)?t.statsToReport.uint64_play_first_frame_time-t.statsToReport.uint64_start_enter_time>5e3&&(t.statsToReport.uint64_play_first_frame_time=t.statsToReport.uint64_start_enter_time+5e3):e.pathMainAudioMap_.delete(n)})),this.pathMainVideoMap_.forEach((function(t,n){e.hasVideoFlag(t.userId)?t.statsToReport.uint64_render_first_frame_time-t.statsToReport.uint64_start_enter_time>5e3&&(t.statsToReport.uint64_render_first_frame_time=t.statsToReport.uint64_start_enter_time+5e3):e.pathMainVideoMap_.delete(n)})),this.pathJoinRoom_.uint64_end_time-this.pathJoinRoom_.uint64_start_time>5e3&&(this.pathJoinRoom_.uint64_end_time=this.pathJoinRoom_.uint64_start_time+5e3)}},{key:"getReportData",value:function(){var e=this.client_.getSignalInfo();return{uint32_sdk_app_id:Number(this.client_.getSDKAppId()),msg_user_info:new eS({userId:this.client_.getUserId(),tinyId:this.client_.getTinyId(),role:"anchor"===this.client_.getRole()?Gl:Vl}),msg_basic_info:this.basicInfo,uint32_acc_ip:mh(e.relayIp),uint32_client_ip:mh(e.clientIp,"small"),uint32_acc_port:0,uint64_timestamp:Date.now(),uint32_seq:Math.floor(Math.random()*Math.pow(2,31)),msg_path_enter_room:this.pathJoinRoom_,msg_path_exit_room:this.pathLeaveRoom_,msg_path_recv_video:b(this.pathMainVideoMap_.values()).map((function(e){return e.statsToReport})),msg_quality_statistics:b(this.remoteStreamStatsMap_.values()).map((function(e){return e.statsToReport})),str_room_name:String(this.client_.getRoomId()),msg_path_recv_audio:b(this.pathMainAudioMap_.values()).map((function(e){return e.statsToReport})),uint32_info_client_ip:mh(e.clientIp,"small"),error_code:[],msg_local_statistics:this.localStreamStats_.statsToReport}}},{key:"report",value:(r=o(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t=this.getReportData(),e.next=4,this.upload(t);case 4:Ny.deleteItem(this.storageKey_),this.initData(),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),this.log_.warn(e.t0);case 11:case"end":return e.stop()}}),e,this,[[0,8]])}))),function(){return r.apply(this,arguments)})},{key:"upload",value:(t=o(regeneratorRuntime.mark((function e(t){var n,r,i,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!rl&&0!==t.msg_path_enter_room.uint64_start_time){e.next=2;break}return e.abrupt("return");case 2:return n=Math.floor(Math.random()*Math.pow(2,31)),r=Number(this.client_.getSDKAppId()),i="".concat("https://yun.tim.qq.com","/v5/AVQualityReportSvc/C2S?random=").concat(n,"&sdkappid=").concat(r,"&cmdtype=jssdk_new_endreport"),e.next=7,Af.post(i,JSON.stringify(t));case 7:if("ok"===(o=e.sent).data){e.next=10;break}throw"key point upload failed: ".concat(o.data);case 10:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e}();function nS(){return function(e,t,n){var r=n.value,i=new Map;return n.value=o(regeneratorRuntime.mark((function e(){var n,o,a,s,c=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!i.get(this)){e.next=2;break}throw new Eg({code:kg.INVALID_OPERATION,message:my({key:bm,data:{name:t}})});case 2:for(e.prev=2,i.set(this,!0),n=c.length,o=new Array(n),a=0;a<n;a++)o[a]=c[a];return e.next=7,r.apply(this,o);case 7:return s=e.sent,i.set(this,!1),e.abrupt("return",s);case 12:throw e.prev=12,e.t0=e.catch(2),i.set(this,!1),e.t0;case 16:case"end":return e.stop()}}),e,this,[[2,12]])}))),n}}function rS(e){return iS.apply(this,arguments)}function iS(){return(iS=o(regeneratorRuntime.mark((function e(t){var n,r,i,o,a,s,c,u,l,d,h,f,p;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.userId,r=t.sdkAppId,i=t.useStringRoomId,o=t.roomId,a=t.userSig,s={delta:0,count:[1,1],msg:[]},e.prev=2,(c=new FormData).append("userId",String(n)),c.append("sdkAppId",String(r)),c.append("isStrGroupId",i),c.append("groupId",String(o)),c.append("sdkVersion","4.12.0"),c.append("userSig",String(a)),u=gh(),e.next=13,xS(c,s);case 13:return l=e.sent,s.delta=gh()-u,oS({stat:s,userId:n}),e.abrupt("return",l);case 19:throw e.prev=19,e.t0=e.catch(2),d=dh(e.t0)?e.t0[0]:e.t0,h=uh(d.code)?d.code:0,f="get websocket url failed: ".concat(d.message.includes("timeout")?"timeout":d.message),p=new Eg({code:kg.SCHEDULE_FAILED,extraCode:h,message:my({key:Km,data:{error:f,code:h}})}),Ip.error(p),oS({stat:s,userId:n,roomId:o,error:p}),p;case 28:case"end":return e.stop()}}),e,null,[[2,19]])})))).apply(this,arguments)}function oS(e){var t=e.stat,n=e.userId,r=e.error;r?vy.logFailedEvent({eventType:kd,error:r,userId:n}):vy.logSuccessEvent({eventType:kd,delta:t.delta,userId:n}),vy.uploadEvent({log:"stat-schedule:"+JSON.stringify(t),userId:n})}function aS(e,t,n){return new Promise((function(r,i){Af.post(e,t,n).then((function(e){0===e.data.code?r(e.data.data):i({code:e.data.code,message:e.data.msg})})).catch(i)}))}var sS,cS,uS,lS,dS,hS,fS,pS,gS,mS,vS,yS,_S,bS,SS=function(e,t){return Sp({retryFunction:aS,settings:{retries:3,timeout:0},onError:t,onRetrying:e})};function xS(e,t){return new Promise((function(n,r){var i,o=null;(i=[SS((function(e){return t.count[0]=e+1}),(function(e,n){t.msg[0]=e.message,o||n()}))("https://schedule.rtc.qq.com/api/v1/config",e,{timeout:2e3}),SS((function(e){return t.count[1]=e+1}),(function(e,n){t.msg[1]=e.message,o||n()}))("https://schedule.rtc.qcloud.com/api/v1/config",e,{timeout:2e3})],new Promise((function(e,t){var n=[];i.forEach((function(r){r.then(e).catch((function(e){n.push(e),n.length===i.length&&t(n)}))}))}))).then((function(e){n(o=e)})).catch(r)}))}var wS=(sS=nS(),cS=Mb(Ib.CLIENT.join),uS=nS(),lS=nS(),dS=Mb(Ib.CLIENT.publish),hS=nS(),fS=Mb(Ib.CLIENT.unpublish),pS=Mb.apply(void 0,b(Ib.CLIENT.subscribe)),gS=Mb(Ib.CLIENT.unsubscribe),mS=nS(),vS=Mb(Ib.CLIENT.switchRole),yS=Mb(Ib.CLIENT.startPublishCDNStream),_S=Mb(Ib.CLIENT.startMixTranscode),I((bS=function(){function e(t){if(a(this,e),this.name_=qd,this.mode_=t.mode,this.sdpSemantics_="plan-b",sh(t.sdpSemantics)?function(){if(!Xy())return!1;if(sh(window.RTCRtpTransceiver))return!1;if(!("currentDirection"in RTCRtpTransceiver.prototype))return!1;var e=new RTCPeerConnection,t=!1;try{e.addTransceiver(ul),t=!0}catch(zS){}return e.close(),t}()&&(this.sdpSemantics_="unified-plan"):this.sdpSemantics_=t.sdpSemantics,this.sdkAppId_=t.sdkAppId,this.userId_=t.userId,this.log_=Ip.createLogger({id:"c".concat(t.seq,"|").concat(this.userId_),userId:this.userId_,sdkAppId:this.sdkAppId_}),this.userSig_=t.userSig,this.roomId_=0,this.useStringRoomId_=t.useStringRoomId||!1,this.recordId_=null,this.pureAudioPushMode_=null,this.version_=t.version,this.log_.info("using sdpSemantics: "+this.sdpSemantics_),!sh(t.recordId)){if(!Number.isInteger(Number(t.recordId)))throw new Eg({code:kg.INVALID_PARAMETER,message:my({key:Um})});this.recordId_=t.recordId}var n;this.signalChannel_=null,this.isScreenShareOnly_=0,sh(t.isScreenShareOnly)||(this.isScreenShareOnly_=t.isScreenShareOnly?1:0),this.role_="anchor",this.privateMapKey_="",this.tinyId_=0,this.env_="",this.proxy_=null,this.connections_=new Map,this.mutedStates_=new Map,this.userMap_=new Map,this.syncUserListInterval_=-1,this.localStream_=null,this.uplinkConnection_=null,this.emitter_=new Df,this.isSignalReady_=!1,this.isJoined_=!1,this.heartbeat_=-1,this.lastHeartBeatTime_=-1,this.stats_=new N_(this),this.joinTimeout_=-1,this.networkQuality_=null,this.badCaseDetector_=null,this.networkType_=rh(),this.autoSubscribe_=!!sh(t.autoSubscribe)||t.autoSubscribe,this.startJoinTimestamp_=0,this.joinedTimestamp_=0,this.joinOptions_={},this.basis_={browser:al().name+"/"+al().version,os:r_(),displayResolution:i_(),isScreenShareSupported:$y(),isWebRTCSupported:Gy(),isGetUserMediaSupported:o_(),isWebAudioSupported:a_(),isWebSocketsSupported:"WebSocket"in window&&2===window.WebSocket.CLOSING,isWebCodecSupported:(n={AudioDecoder:!1,AudioEncoder:!1,VideoDecoder:!1,VideoEncoder:!1,ImageDecoder:!1},sh(window.AudioDecoder)||(n.AudioDecoder=!0),sh(window.AudioEncoder)||(n.AudioEncoder=!0),sh(window.VideoDecoder)||(n.VideoDecoder=!0),sh(window.VideoEncoder)||(n.VideoEncoder=!0),sh(window.ImageDecoder)||(n.ImageDecoder=!0),n),isMediaSessionSupported:"mediaSession"in navigator&&!sh(navigator.mediaSession.setActionHandler),isWebTransportSupported:!sh(window.WebTransport)},this.initBussinessInfo_(t),this.publishedCDN_=!1,this.publishCDNData_=null,this.mixedMCU_=!1,this.mixTranscodeData_=null,this.checkSystemResult_=null,this.enableAudioVolumeEvaluation_=!1,this.audioVolumeIntervalId_=null,this.mixTranscodeManager_=null,this.publishCDNManager_=null,this.keyPointManager_=new tS({client:this,frameWorkType:t.frameWorkType}),this.getUserList=Sp({retryFunction:this.getUserList,settings:{retries:3},onError:function(e,t){return t()}}),this.isPublishing_=!1,this.isEnableSmallStream_=!1,this.smallStreamConfig_={bitrate:100,frameRate:15,height:120,width:160},this.turnServers_=[],this.iceTransportPolicy_=t.iceTransportPolicy,this.schedule_={domains:null,iceServers:null,iceTransportPolicy:null},this.enableAutoPlayDialog_=!!sh(t.enableAutoPlayDialog)||t.enableAutoPlayDialog,this.signalInfo_={}}var t,r,i,s,u,l,d,h,f,p,g,m,v,y,S,x,I,C,M,T,k,E,A,D,O,R;return c(e,[{key:"initBussinessInfo_",value:function(e){this.bussinessInfo_=e.bussinessInfo;var t={};if(ch(e.bussinessInfo)&&(t=JSON.parse(e.bussinessInfo)),!sh(e.pureAudioPushMode)){if(!Number.isInteger(Number(e.pureAudioPushMode)))throw new Eg({code:kg.INVALID_PARAMETER,message:my({key:Fm})});this.pureAudioPushMode_=e.pureAudioPushMode,t.Str_uc_params||(t.Str_uc_params={}),t.Str_uc_params.pure_audio_push_mod=this.pureAudioPushMode_}if(!sh(e.streamId)){if(!(ch(e.streamId)&&String(e.streamId)&&String(e.streamId).length<=64))throw new Eg({code:kg.INVALID_PARAMETER,message:my({key:Gm})});t.Str_uc_params||(t.Str_uc_params={}),t.Str_uc_params.userdefine_streamid_main=e.streamId}if(!sh(e.userDefineRecordId)){if(null===e.userDefineRecordId.match(/^[A-Za-z0-9_-]{1,64}$/gi))throw new Eg({code:kg.INVALID_PARAMETER,message:my({key:Vm})});t.Str_uc_params||(t.Str_uc_params={}),t.Str_uc_params.userdefine_record_id=e.userDefineRecordId}if(!sh(e.userDefinePushArgs)){if(!(ch(e.userDefinePushArgs)&&String(e.userDefinePushArgs)&&String(e.userDefinePushArgs).length<=256))throw new Eg({code:kg.INVALID_PARAMETER,message:my({key:jm})});t.Str_uc_params||(t.Str_uc_params={}),t.Str_uc_params.userdefine_push_args=e.userDefinePushArgs}mm(t)||(this.bussinessInfo_=JSON.stringify(t))}},{key:"setProxyServer",value:function(e){if(this.log_.info("set proxy server: ".concat(JSON.stringify(e))),ch(e)){if(!e.startsWith("wss://"))throw new Eg({code:kg.INVALID_PARAMETER,message:my({key:Bm})});this.proxy_=e}else if(ih(e)){var t=e.websocketProxy,n=e.loggerProxy;t&&(this.proxy_=t),n&&Nl(n)}}},{key:"schedule",value:(R=o(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,rS({userId:this.userId_,sdkAppId:this.sdkAppId_,roomId:t,useStringRoomId:this.useStringRoomId_,version:this.version_,userSig:this.userSig_});case 2:(r=e.sent)&&(this.log_.info("schedule: ".concat(JSON.stringify(r))),this.schedule_=n(n({},this.schedule_),r),Of.emit($f,this.schedule_));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return R.apply(this,arguments)})},{key:"getSignalChannelUrl",value:function(){var e={mainUrl:"",backupUrl:""},t=th();return t?e.mainUrl=e.backupUrl="wss://".concat(t,".rtc.qq.com"):this.proxy_?e.mainUrl=e.backupUrl=this.proxy_:Array.isArray(this.schedule_.domains)&&this.schedule_.domains.length>0&&(e.mainUrl=e.backupUrl="wss://".concat(this.schedule_.domains[0]),this.schedule_.domains[1]&&(e.backupUrl="wss://".concat(this.schedule_.domains[1]))),e}},{key:"getUserId",value:function(){return this.userId_}},{key:"getUserSig",value:function(){return this.userSig_}},{key:"getRole",value:function(){return this.role_}},{key:"getSignalInfo",value:function(){return this.signalInfo_}},{key:"getRoomId",value:function(){return this.roomId_}},{key:"getSDKAppId",value:function(){return this.sdkAppId_}},{key:"getTinyId",value:function(){return this.tinyId_}},{key:"setTurnServer",value:function(e){this.log_.info("set turn server: "+JSON.stringify(e));var t=[];Array.isArray(e)?e.forEach((function(e){return t.push(ph(e))})):ih(e)&&t.push(ph(e)),this.turnServers_=t}},{key:"getIceTransportPolicy",value:function(){return this.iceTransportPolicy_||this.schedule_.iceTransportPolicy||"all"}},{key:"initialize",value:function(){var e=this;return new Promise((function(t,n){e.log_.info("setup signal channel");var r=e.getSignalChannelUrl(),i=r.mainUrl,o=r.backupUrl;e.signalChannel_=new yy({sdkAppId:e.sdkAppId_,userId:e.userId_,userSig:e.userSig_,url:i,backupUrl:o,version:e.version_,client:e}),e.networkQuality_||(e.networkQuality_=new U_({connections:e.connections_,signalChannel:e.signalChannel_,userId:e.userId_,client:e}),e.networkQuality_.on(k_,(function(t){e.emitter_.emit(k_,t)}))),e.deviceDetector_||(e.deviceDetector_=new F_({client:e})),e.subscriptionManager_||(e.subscriptionManager_=new Db({client:e})),e.badCaseDetector_||(e.badCaseDetector_=new Wb({client:e,stats:e.stats_})),e.callDurationCalculator_||(e.callDurationCalculator_=new Jb({client:e})),e.mixTranscodeManager_||(e.mixTranscodeManager_=new Kb({client:e,signalChannel:e.signalChannel_})),e.publishCDNManager_||(e.publishCDNManager_=new Yb({client:e,signalChannel:e.signalChannel_})),e.signalChannel_.on(eg,(function(t){e.log_.info("SignalChannel state changed from ".concat(t.prevState," to ").concat(t.state)),e.emitter_.emit(b_,t)})),e.signalChannel_.on(ng,(function(t){e.isSignalReady_?(e.closeUplink(),e.closeConnections(),e.emitter_.emit(A_,t)):(Of.emit(Wf,{client:e,error:t}),n(t))})),e.signalChannel_.on(Qp,(function(n){e.tinyId_=n.signalInfo.tinyId,e.isSignalReady_||(e.isSignalReady_=!0,Of.emit(Wf,{client:e}),t())})),e.signalChannel_.on(ug.PEER_JOIN,e.onPeerJoin,e),e.signalChannel_.on(ug.PEER_LEAVE,e.onPeerLeave,e),e.signalChannel_.on(ug.UPDATE_REMOTE_MUTE_STAT,(function(t){Of.emit(Bf,{client:e,data:t.data}),e.onPublishedUserList(t.data),e.onUpdateRemoteMuteStat(t.data)})),e.signalChannel_.on(ug.CLINET_BANNED,(function(t){var n=t.data.data,r=n.reason;r===Tl?r="you got banned by account admin":r===kl?r="duplicated userId joining the room":r===El&&e.log_.warn("last heart beat time: ".concat(e.lastHeartBeatTime_," interval: ").concat(Date.now()-e.lastHeartBeatTime_)),vy.uploadEvent({log:"stat-banned:".concat(n.reason),userId:e.userId_}),e.log_.error("user was banned because of [".concat(n.reason,"]")),e.reset(),e.onClientBanned(r)})),Of.emit(Hf,{client:e}),e.signalChannel_.connect()}))}},{key:"join",value:(O=o(regeneratorRuntime.mark((function e(t){var n,r,i,o,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.isJoined_){e.next=2;break}throw new Eg({code:kg.INVALID_OPERATION,message:my({key:zm})});case 2:return e.next=4,Wy();case 4:if(this.checkSystemResult_=e.sent,(n=th())||(n=Ol,this.proxy_&&(this.proxy_.startsWith(Al)?n=Rl:this.proxy_.startsWith(Dl)&&(n=Ll))),this.env_=n,vy.setConfig({env:n,sdkAppId:this.sdkAppId_,userId:this.userId_,roomId:t.roomId}),this.uploadTrtcStats(),r=this.checkSystemResult_.detail,i=r.isH264EncodeSupported,o=r.isVp8EncodeSupported,Gy()&&(i||o)){e.next=13;break}throw new Eg({code:kg.NOT_SUPPORTED,message:my({key:iy})});case 13:if(this.joinOptions_=t,this.startJoinTimestamp_=gh(),Of.emit(Rf,{client:this}),fm(this.userId_,{eventId:Yg,eventDesc:"joining room",timestamp:_a(),userId:this.userId_,tinyId:this.tinyId_}),e.prev=17,this.proxy_||this.schedule_.domains){e.next=21;break}return e.next=21,this.schedule(t.roomId);case 21:return e.next=23,this.initialize(t);case 23:return e.next=25,this.doJoin(t);case 25:this.signalInfo_=this.signalChannel_.getSignalInfo(),Of.emit(Nf,{client:this}),this.joinedTimestamp_=gh(),a=this.joinedTimestamp_-this.startJoinTimestamp_,vy.logSuccessEvent({userId:this.userId_,eventType:id,delta:a}),vy.logSuccessEvent({userId:this.userId_,eventType:rd}),vy.uploadEvent({log:"stat-autoplay-dialog:".concat(this.enableAutoPlayDialog_),userId:this.userId_}),e.next=40;break;case 34:throw e.prev=34,e.t0=e.catch(17),Of.emit(Uf,{client:this,error:e.t0}),vy.logFailedEvent({userId:this.userId_,eventType:rd,error:e.t0}),this.reset(),e.t0;case 40:case"end":return e.stop()}}),e,this,[[17,34]])}))),function(e){return O.apply(this,arguments)})},{key:"uploadTrtcStats",value:(D=o(regeneratorRuntime.mark((function e(){var t,n,r,i,o,a,s,c,u,l,d,h,f;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,BS.getMicrophones();case 3:r=e.sent,t=r&&r.length,e.next=9;break;case 7:e.prev=7,e.t0=e.catch(0);case 9:return e.prev=9,e.next=12,BS.getCameras();case 12:i=e.sent,n=i&&i.length,e.next=18;break;case 16:e.prev=16,e.t1=e.catch(9);case 18:o={microphone:t,camera:n},a=this.checkSystemResult_.detail,s=a.isH264EncodeSupported,c=a.isVp8EncodeSupported,u=a.isH264DecodeSupported,l=a.isVp8DecodeSupported,d={webRTC:this.basis_.isWebRTCSupported,getUserMedia:this.basis_.isGetUserMediaSupported,webSocket:this.basis_.isWebSocketsSupported,screenShare:this.basis_.isScreenShareSupported,webAudio:this.basis_.isWebAudioSupported,h264Encode:s,h264Decode:u,vp8Encode:c,vp8Decode:l},h={browser:this.basis_.browser,os:this.basis_.os,trtc:d,devices:o},f={isWebCodecSupported:this.basis_.isWebCodecSupported,isMediaSessionSupported:this.basis_.isMediaSessionSupported,isWebTransportSupported:this.basis_.isWebTransportSupported},vy.uploadEvent({log:"trtcstats-"+JSON.stringify(h),userId:this.userId_}),this.log_.info("TrtcStats-"+JSON.stringify(h)),vy.uploadEvent({log:"trtcadvancedstats-"+JSON.stringify(f),userId:this.userId_});case 26:case"end":return e.stop()}}),e,this,[[0,7],[9,16]])}))),function(){return D.apply(this,arguments)})},{key:"getVersion",value:function(){var e=this.version_.split(".");return 1e3*parseInt(e[0])+100*parseInt(e[1])+parseInt(e[2])}},{key:"doJoin",value:function(e){var t=this;return new Promise((function(n,r){if(!t.isSignalReady_)throw new Eg({code:kg.INVALID_OPERATION,message:my({key:qm})});t.roomId_=e.roomId,sh(e.role)||(t.role_=e.role);var i="";sh(e.privateMapKey)||(i=e.privateMapKey),t.privateMapKey_=i,t.log_.info("Join() => joining room: ".concat(e.roomId," useStringRoomId: ").concat(t.useStringRoomId_," mode: ").concat(t.mode_," role: ").concat(t.role_));var o={roomId:String(e.roomId),useStringRoomId:t.useStringRoomId_,privateMapKey:i,trtcRole:"anchor"===t.role_?Gl:Vl,trtcScene:"live"===t.mode_?Fl:Ul,sdpSemantics:t.sdpSemantics_,version:t.version_,ua:navigator&&navigator.userAgent||"",autoSubscribe:t.autoSubscribe_,terminalType:su?4:iu?2:nu?3:Lu?12:Ru?5:Pu?13:1,netType:jd[rh()],bussinessInfo:t.bussinessInfo_};t.joinTimeout_=setTimeout((function(){t.log_.error("join room timeout observed"),r(new Eg({code:kg.JOIN_ROOM_FAILED,message:my({key:$m})}))}),5e3),Of.emit(Lf,{client:t}),t.signalChannel_.send(dg,o),t.signalChannel_.once(ug.JOIN_ROOM_RESULT,(function(e){clearTimeout(t.joinTimeout_),t.joinTimeout_=-1;var i=e.data,o=i.code,a=i.message;Of.emit(Pf,{client:t,code:o}),0===o?(t.isJoined_=!0,t.log_.info("Join room success, start heartbeat"),t.startHeartbeat(),t.badCaseDetector_&&t.badCaseDetector_.start(),t.syncUserList(),t.startSyncUserListInterval(),n()):(t.log_.error("Join room failed result: "+o+" error: "+a),r(new Eg({code:kg.JOIN_ROOM_FAILED,extraCode:o,message:my({key:Km,data:{error:a,code:o}})})))}))}))}},{key:"connectSignalBeforeReJoin",value:function(){var e=this;return new Promise((function(t,n){e.log_.warn("connectSignalBeforeReJoin() try to connect signal before reJoin"),e.isSignalReady_=!1,e.signalChannel_.close(),e.signalChannel_.once(Qp,(function(n){e.log_.warn("connectSignalBeforeReJoin() signal setup successfully"),t()})),e.signalChannel_.once(ng,(function(t){e.log_.warn("connectSignalBeforeReJoin() signal setup failed"),n(t)})),e.signalChannel_.connect()}))}},{key:"reJoin",value:(A=o(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isJoined_){e.next=3;break}return this.log_.warn("reJoin() you haven't join room yet, abort reJoin"),e.abrupt("return");case 3:return this.isJoined_=!1,e.prev=4,this.log_.warn("reJoin() try to reJoin room: ".concat(this.joinOptions_.roomId)),this.subscriptionManager_&&this.subscriptionManager_.markAllStream(),e.next=9,this.connectSignalBeforeReJoin();case 9:return e.next=11,this.doJoin(this.joinOptions_);case 11:if(this.log_.warn("reJoin() reJoin successfully"),vy.logSuccessEvent({userId:this.userId_,eventType:od}),this.checkConnectionsToReconnect(),e.prev=14,!this.uplinkConnection_||!this.localStream_||this.uplinkConnection_.getIsReconnecting()){e.next=18;break}return e.next=18,this.republish();case 18:e.next=22;break;case 20:e.prev=20,e.t0=e.catch(14);case 22:e.next=29;break;case 24:e.prev=24,e.t1=e.catch(4),this.log_.warn("reJoin() reJoin failed"+e.t1),vy.logFailedEvent({userId:this.userId_,eventType:od,error:e.t1}),this.emitter_.emit(A_,new Eg({code:kg.JOIN_ROOM_FAILED,message:my({key:Ym,data:{roomId:this.joinOptions_.roomId}})}));case 29:case"end":return e.stop()}}),e,this,[[4,24],[14,20]])}))),function(){return A.apply(this,arguments)})},{key:"republish",value:(E=o(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,this.log_.warn("republish() try to re-publish localStream"),t=this.localStream_,e.next=5,this.doUnpublish(t);case 5:return e.next=7,this.publish(t);case 7:this.log_.warn("republish() re-publish localStream successfully"),e.next=14;break;case 10:throw e.prev=10,e.t0=e.catch(0),this.log_.warn("republish() re-publish localStream failed "+e.t0),e.t0;case 14:case"end":return e.stop()}}),e,this,[[0,10]])}))),function(){return E.apply(this,arguments)})},{key:"leave",value:(k=o(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Of.emit(Ff,{client:this}),fm(this.userId_,{eventId:Jg,eventDesc:"leaving room",timestamp:_a(),userId:this.userId_,tinyId:this.tinyId_}),e.prev=2,e.next=5,this.doHeartbeat();case 5:e.next=9;break;case 7:e.prev=7,e.t0=e.catch(2);case 9:this.doLeave(),Of.emit(Vf,{client:this}),vy.logSuccessEvent({userId:this.userId_,eventType:ad}),t=Math.floor((gh()-this.joinedTimestamp_)/1e3),vy.logSuccessEvent({userId:this.userId_,eventType:sd,delta:t});case 14:case"end":return e.stop()}}),e,this,[[2,7]])}))),function(){return k.apply(this,arguments)})},{key:"doLeave",value:function(){this.isJoined_&&(Of.emit(Gf,{client:this}),this.log_.info("leave() => leaving room"),this.signalChannel_.send(hg),this.reset())}},{key:"clearNetworkQuality",value:function(){this.networkQuality_&&(this.networkQuality_.stop(),this.networkQuality_=null)}},{key:"closeConnections",value:function(){var e=this;this.connections_.forEach((function(t){e.closeDownLink(t.getTinyId())}))}},{key:"destroy",value:function(){if(this.isJoined_)throw this.log_.warn("please call leave() before destroy() client"),new Eg({code:kg.INVALID_OPERATION,message:my({key:Jm})});this.log_.info("destroying SignalChannel"),this.signalChannel_&&(this.signalChannel_.close(),this.signalChannel_=null)}},{key:"reset",value:function(){this.keyPointManager_&&this.keyPointManager_.prepareReport(),this.mixTranscodeManager_&&(this.mixTranscodeManager_.stop(),this.mixTranscodeManager_=null),this.publishCDNManager_&&(this.publishCDNManager_=null),this.userMap_.clear(),this.stopSyncUserListInterval(),this.stopHeartbeat(),this.closeConnections(),this.mutedStates_.clear(),this.clearNetworkQuality(),this.badCaseDetector_&&this.callDurationCalculator_&&this.uploadAllCallStats(),this.closeUplink(),this.isJoined_=!1,this.isSignalReady_=!1,this.destroy()}},{key:"startSyncUserListInterval",value:function(){-1===this.syncUserListInterval_&&(this.syncUserListInterval_=Py.setInterval(this.syncUserList.bind(this),1e4))}},{key:"stopSyncUserListInterval",value:function(){Py.clearInterval(this.syncUserListInterval_),this.syncUserListInterval_=-1}},{key:"syncUserList",value:(T=o(regeneratorRuntime.mark((function e(){var t,n=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.getUserList();case 3:t=e.sent,0!==this.userMap_.size&&this.userMap_.forEach((function(e){t.findIndex((function(t){return t.userId===e.userId}))<0&&(n.log_.info("peer leave detected: ".concat(e.userId)),n.cleanUser({userId:e.userId,tinyId:e.tinyId}))})),t.forEach((function(e){var t=e.userId;n.userMap_.has(t)||t===n.userId_||(n.userMap_.set(t,e),n.emitter_.emit(S_,{userId:t}))})),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),this.log_.warn("sync user list failed: "+e.t0);case 11:case"end":return e.stop()}}),e,this,[[0,8]])}))),function(){return T.apply(this,arguments)})},{key:"getUserList",value:function(){var e=this;return new Promise((function(t,n){e.signalChannel_.send(Mg),e.signalChannel_.once(ug.USER_LIST_RES,(function(e){var r=e.data,i=r.code,o=r.message;if(0!==i){var a=my({key:hy,data:{signalResponse:ug.USER_LIST_RES,code:i,message:o}});n(a)}else{var s=(e.data.data&&e.data.data.userList||[]).map((function(e){var t=e.userId,n=e.srcTinyId,r=e.role;return new qb({userId:t,tinyId:n,role:r})}));t(s)}})),setTimeout(n,2e3)}))}},{key:"publish",value:(M=o(regeneratorRuntime.mark((function e(t){var n,r,i,o,a=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.setPublishState(zd),this.isPublishing_=!0,n=gh(),Of.emit(zf,{client:this,stream:t}),this.log_.info("publish() => publishing local stream"),r=new Gb({userId:this.userId_,tinyId:this.tinyId_,client:this,isUplink:!0,signalChannel:this.signalChannel_}),t.setConnection(r),r.initialize(),r.on(p_,(function(e){var t=e.getCode();t!==kg.ICE_TRANSPORT_ERROR&&(t===kg.UPLINK_RECONNECTION_FAILED&&a.closeUplink(),a.emitter_.emit(A_,e))})),e.prev=9,e.next=12,r.publish(t);case 12:this.localStream_=e.sent,this.localStream_.getBeautyStatus()&&this.log_.info("beauty stream is published successfully"),this.log_.info("local stream is published successfully"),this.isPublishing_=!1,t.setPublishState(Hd),this.uplinkConnection_=r,i=gh(),o=i-n,vy.logSuccessEvent({userId:this.userId_,eventType:cd}),vy.logSuccessEvent({userId:this.userId_,eventType:ud,delta:o}),t.hasAudio()&&fm(this.userId_,{eventId:Dg,eventDesc:"publish audio track",timestamp:_a(),userId:this.userId_,tinyId:this.tinyId_}),t.hasVideo()&&fm(this.userId_,{eventId:Ag,eventDesc:"publish video track",timestamp:_a(),userId:this.userId_,tinyId:this.tinyId_}),this.networkQuality_&&this.networkQuality_.setUplinkConnection(this.uplinkConnection_),this.deviceDetector_&&this.deviceDetector_.setLocalStream(this.localStream_),Of.emit(op,{localStream:this.localStream_,client:this}),this.notPublishWithoutH264Supported_=!1,e.next=39;break;case 30:throw e.prev=30,e.t0=e.catch(9),e.t0 instanceof Eg&&e.t0.getCode()===kg.NOT_SUPPORTED_H264&&(this.notPublishWithoutH264Supported_=!0),t.setPublishState(Bd),r.close(),this.log_.error("failed to publish stream "+e.t0),this.isPublishing_=!1,vy.logFailedEvent({userId:this.userId_,eventType:cd,error:e.t0}),e.t0;case 39:case"end":return e.stop()}}),e,this,[[9,30]])}))),function(e){return M.apply(this,arguments)})},{key:"unpublish",value:(C=o(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.log_.info("unpublish() => unpublishing local stream"),e.prev=1,e.next=4,this.doUnpublish();case 4:vy.logSuccessEvent({userId:this.userId_,eventType:ld}),e.next=11;break;case 7:throw e.prev=7,e.t0=e.catch(1),vy.logFailedEvent({userId:this.userId_,eventType:ld,error:e.t0}),e.t0;case 11:case"end":return e.stop()}}),e,this,[[1,7]])}))),function(){return C.apply(this,arguments)})},{key:"doUnpublish",value:function(){var e=this;return this.signalChannel_.sendWaitForResponse({command:mg,commandDesc:"unpublish",responseCommand:ug.UNPUBLISH_RESULT}).then((function(){e.closeUplink()})).catch((function(){e.closeUplink()}))}},{key:"closeUplink",value:function(){this.uplinkConnection_&&(this.uplinkConnection_.getIsReconnecting()&&this.uplinkConnection_.stopReconnection(),this.uplinkConnection_.close(),this.uplinkConnection_=null,this.networkQuality_&&this.networkQuality_.setUplinkConnection(null),this.localStream_.hasAudio()&&fm(this.userId_,{eventId:Rg,eventDesc:"unpublish audio track",timestamp:_a(),userId:this.userId_,tinyId:this.tinyId_}),this.localStream_.hasVideo()&&fm(this.userId_,{eventId:Og,eventDesc:"unpublish video track",timestamp:_a(),userId:this.userId_,tinyId:this.tinyId_}),this.localStream_.setConnection(null),this.localStream_=null,this.deviceDetector_&&this.deviceDetector_.setLocalStream(null))}},{key:"closeDownLink",value:function(e){var t=this.connections_.get(e);t&&(t.getIsReconnecting()&&t.stopReconnection(),this.subscriptionManager_&&this.subscriptionManager_.delete(t.getUserId()),t.close(),this.connections_.delete(e),this.mutedStates_.delete(e))}},{key:"subscribe",value:(I=o(regeneratorRuntime.mark((function e(t,n){var r,i,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.log_.info("subscribe() => subscribe to [".concat(t.getUserId(),"] ").concat(t.getType()," stream with options: ").concat(JSON.stringify(n))),sh(n)&&(n={audio:!0,video:!0}),sh(n.video)&&(n.video=!0),sh(n.audio)&&(n.audio=!0),e.prev=4,r=t.getConnection(),Of.emit(ep,{client:this,stream:t}),e.next=9,r.subscribe(t,n);case 9:this.subscriptionManager_&&this.subscriptionManager_.addSubscriptionRecord(t.getUserId(),t,n),this.notSubscribeWithoutH264Supported_=!1,vy.logSuccessEvent({userId:this.userId_,eventType:dd}),e.next=22;break;case 14:throw e.prev=14,e.t0=e.catch(4),(i=e.t0 instanceof Eg?e.t0.getCode():kg.UNKNOWN)===kg.NOT_SUPPORTED_H264&&(this.notSubscribeWithoutH264Supported_=!0),o=new Eg({code:i,message:my({key:rv,data:{message:e.t0.message}})}),vy.logFailedEvent({userId:this.userId_,eventType:dd,error:o}),this.log_.error(o),o;case 22:case"end":return e.stop()}}),e,this,[[4,14]])}))),function(e,t){return I.apply(this,arguments)})},{key:"unsubscribe",value:(x=o(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.log_.info("unsubscribe() => unsubscribe to [".concat(t.getUserId(),"] ").concat(t.getType()," stream")),e.prev=1,n=t.getConnection(),e.next=5,n.unsubscribe(t);case 5:this.subscriptionManager_&&this.subscriptionManager_.addUnsubscriptionRecord(t.getUserId(),t),Of.emit(np,{client:this,stream:t}),vy.logSuccessEvent({userId:this.userId_,eventType:hd}),e.next=14;break;case 10:throw e.prev=10,e.t0=e.catch(1),vy.logFailedEvent({userId:this.userId_,eventType:hd,error:e.t0}),e.t0;case 14:case"end":return e.stop()}}),e,this,[[1,10]])}))),function(e){return x.apply(this,arguments)})},{key:"switchRole",value:(S=o(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.role_!==t){e.next=2;break}return e.abrupt("return");case 2:if("audience"!==t||!this.localStream_){e.next=5;break}return e.next=5,this.unpublish(this.localStream_);case 5:return this.log_.info("switchRole() => switch role to: "+t),e.next=8,this.doSwitchRole(t);case 8:case"end":return e.stop()}}),e,this)}))),function(e){return S.apply(this,arguments)})},{key:"doSwitchRole",value:function(e){var t=this;return new Promise((function(n,r){var i={role:"anchor"===e?Gl:Vl};t.log_.info("switchRole signal data: "+JSON.stringify(i));var o=setTimeout((function(){t.log_.error("switchRole timeout observed"),t.signalChannel_.off(ug.SWITCH_ROLE_RES,a),r(new Eg({code:kg.SWITCH_ROLE_FAILED,message:my({key:av})}))}),5e3),a=function(i){clearTimeout(o);var a=i.data,s=a.code,c=a.message;0===s?(t.role_=e,n()):(t.log_.error("switchRole failed, errCode: ".concat(s,", errMsg: ").concat(c)),r(new Eg({code:kg.SWITCH_ROLE_FAILED,message:my({key:sv,data:{errMsg:c,errCode:s}})})))};t.signalChannel_.once(ug.SWITCH_ROLE_RES,a),t.signalChannel_.send(Tg,i)}))}},{key:"on",value:function(e,t,n){this.emitter_.on(e,t,n)}},{key:"off",value:function(e,t,n){"*"===e?this.emitter_.removeAllListeners():this.emitter_.off(e,t,n)}},{key:"getRemoteMutedState",value:function(){var e=this,t=[];return this.mutedStates_.forEach((function(r,i,o){var a=e.connections_.get(i);a&&t.push(n({userId:a.getUserId()},r))})),t}},{key:"getTransportStats",value:(y=o(regeneratorRuntime.mark((function e(){var t,n,r,i,o,a,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t={rtt:0,downlinksRTT:{}},!this.uplinkConnection_){e.next=6;break}return e.next=4,this.stats_.getSenderStats(this.uplinkConnection_);case 4:n=e.sent,t.rtt=n.rtt;case 6:r=w(this.connections_),e.prev=7,r.s();case 9:if((i=r.n()).done){e.next=17;break}return(o=_(i.value,2))[0],a=o[1],e.next=13,this.stats_.getReceiverStats(a);case 13:s=e.sent,t.downlinksRTT[s.userId]=s.rtt;case 15:e.next=9;break;case 17:e.next=22;break;case 19:e.prev=19,e.t0=e.catch(7),r.e(e.t0);case 22:return e.prev=22,r.f(),e.finish(22);case 25:return e.abrupt("return",t);case 26:case"end":return e.stop()}}),e,this,[[7,19,22,25]])}))),function(){return y.apply(this,arguments)})},{key:"getLocalAudioStats",value:(v=o(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((t={})[this.userId_]={bytesSent:0,packetsSent:0},!this.uplinkConnection_){e.next=7;break}return e.next=5,this.stats_.getSenderStats(this.uplinkConnection_);case 5:n=e.sent,t[this.userId_]={bytesSent:n.audio.bytesSent,packetsSent:n.audio.packetsSent};case 7:return e.abrupt("return",t);case 8:case"end":return e.stop()}}),e,this)}))),function(){return v.apply(this,arguments)})},{key:"getLocalVideoStats",value:(m=o(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((t={})[this.userId_]={bytesSent:0,packetsSent:0,framesEncoded:0,framesSent:0,frameWidth:0,frameHeight:0},!this.uplinkConnection_){e.next=7;break}return e.next=5,this.stats_.getSenderStats(this.uplinkConnection_);case 5:n=e.sent,t[this.userId_]={bytesSent:n.video.bytesSent,packetsSent:n.video.packetsSent,framesEncoded:n.video.framesEncoded,framesSent:n.video.framesSent,frameWidth:n.video.frameWidth,frameHeight:n.video.frameHeight};case 7:return e.abrupt("return",t);case 8:case"end":return e.stop()}}),e,this)}))),function(){return m.apply(this,arguments)})},{key:"getRemoteAudioStats",value:(g=o(regeneratorRuntime.mark((function e(){var t,n,r,i,o,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t={},n=w(this.connections_),e.prev=2,n.s();case 4:if((r=n.n()).done){e.next=12;break}return(i=_(r.value,2))[0],o=i[1],e.next=8,this.stats_.getReceiverStats(o);case 8:(a=e.sent).hasAudio&&(t[a.userId]={bytesReceived:a.audio.bytesReceived,packetsReceived:a.audio.packetsReceived,packetsLost:a.audio.packetsLost});case 10:e.next=4;break;case 12:e.next=17;break;case 14:e.prev=14,e.t0=e.catch(2),n.e(e.t0);case 17:return e.prev=17,n.f(),e.finish(17);case 20:return e.abrupt("return",t);case 21:case"end":return e.stop()}}),e,this,[[2,14,17,20]])}))),function(){return g.apply(this,arguments)})},{key:"getRemoteVideoStats",value:(p=o(regeneratorRuntime.mark((function e(){var t,n,r,i,o,a,s,c=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=c.length>0&&void 0!==c[0]?c[0]:Hl,n={},r=w(this.connections_),e.prev=3,r.s();case 5:if((i=r.n()).done){e.next=14;break}return(o=_(i.value,2))[0],a=o[1],e.next=9,this.stats_.getReceiverStats(a);case 9:s=e.sent,t===Hl&&s.hasVideo&&(n[s.userId]={bytesReceived:s.video.bytesReceived,packetsReceived:s.video.packetsReceived,packetsLost:s.video.packetsLost,framesDecoded:s.video.framesDecoded,frameWidth:s.video.frameWidth,frameHeight:s.video.frameHeight}),t===Wl&&s.hasAuxiliary&&(n[s.userId]={bytesReceived:s.auxiliary.bytesReceived,packetsReceived:s.auxiliary.packetsReceived,packetsLost:s.auxiliary.packetsLost,framesDecoded:s.auxiliary.framesDecoded,frameWidth:s.auxiliary.frameWidth,frameHeight:s.auxiliary.frameHeight});case 12:e.next=5;break;case 14:e.next=19;break;case 16:e.prev=16,e.t0=e.catch(3),r.e(e.t0);case 19:return e.prev=19,r.f(),e.finish(19);case 22:return e.abrupt("return",n);case 23:case"end":return e.stop()}}),e,this,[[3,16,19,22]])}))),function(){return p.apply(this,arguments)})},{key:"getSdpSemantics",value:function(){return this.sdpSemantics_}},{key:"getIceServers",value:function(){return 0===this.turnServers_.length&&this.schedule_.iceServers?this.schedule_.iceServers:this.turnServers_}},{key:"getConnections",value:function(){return this.connections_}},{key:"getMutedStates",value:function(){return this.mutedStates_}},{key:"startHeartbeat",value:function(){-1===this.heartbeat_&&(this.log_.info("startHeartbeat..."),this.heartbeat_=Py.setInterval(this.doHeartbeat.bind(this),2e3))}},{key:"stopHeartbeat",value:function(){-1!==this.heartbeat_&&(this.log_.info("stopHeartbeat"),Py.clearInterval(this.heartbeat_),this.heartbeat_=-1,this.lastHeartBeatTime_=-1)}},{key:"doHeartbeat",value:(f=o(regeneratorRuntime.mark((function e(){var t,r,i,o,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.badCaseDetector_.getMonitorFreeze(),e.next=3,this.stats_.getStatsReport({uplinkConnection:this.uplinkConnection_,downlinkConnections:this.connections_,freezeMap:t});case 3:if(r=e.sent,Of.emit(jf,{client:this,stats:r}),this.badCaseDetector_.resetMonitor(),this.signalChannel_){e.next=8;break}return e.abrupt("return");case 8:i=this.signalChannel_.isConnected()?pm(this.userId_):[],o=n(n({str_sdk_version:"4.12.0",uint64_datetime:(new Date).getTime(),msg_user_info:{str_identifier:this.userId_,uint64_tinyid:this.tinyId_},msg_device_info:{uint32_terminal_type:15,str_device_name:navigator.platform,str_os_version:"",uint32_net_type:jd[this.networkType_]}},r),{},{msg_event_msg:i}),this.signalChannel_.send(fg,o),a=Date.now(),this.lastHeartBeatTime_>0&&a-this.lastHeartBeatTime_>1e4&&this.log_.warn("heartbeat took ".concat(a-this.lastHeartBeatTime_)),this.lastHeartBeatTime_=a,this.isRelayMaybeFailed()&&this.reJoin();case 15:case"end":return e.stop()}}),e,this)}))),function(){return f.apply(this,arguments)})},{key:"onRemoteStreamAdded",value:function(e){var t=e.content,n=t.userId,r=t.tinyId,i=t.audio,o=t.bigVideo,a=t.auxVideo,s=t.smallVideo;if(null!==n){this.userMap_.has(n)||(this.userMap_.set(n,new qb({userId:n,tinyId:r,role:"anchor"})),this.emitter_.emit(S_,{userId:n}));var c=this.connections_.get(r);if(c){if(c.getIsReconnecting())return;this.log_.warn("duplicated stream-added observed, rebuild the connection"),c.close(),this.connections_.delete(r)}var u={audio:i,video:o,auxiliary:a,smallVideo:s};this.log_.info("remote peer [".concat(n,"] published stream. trackState: ").concat(JSON.stringify(u))),this.createDownlinkConnection({userId:n,tinyId:r,trackState:u})}else this.log_.warn("received null userId on stream added")}},{key:"createDownlinkConnection",value:function(e){var t=this,n=e.userId,r=e.tinyId,i=e.trackState,o=new Vb({userId:n,tinyId:r,client:this,isUplink:!1,signalChannel:this.signalChannel_,autoSubscribe:this.autoSubscribe_,trackState:i});this.connections_.set(r,o),this.installDownlinkEvents(o,n,r),this.autoSubscribe_?(o.initialize(),o.connect().catch((function(){var e=o.getTrackState();o.getMainStream()||!e.audio&&!e.video||t.initRemoteStream({type:Hl,userId:n,downlinkConnection:o}),!o.getAuxStream()&&e.auxiliary&&t.initRemoteStream({type:Wl,userId:n,downlinkConnection:o})}))):((i.audio||i.video)&&this.initRemoteStream({type:Hl,userId:n,downlinkConnection:o}),i.auxiliary&&this.initRemoteStream({type:Wl,userId:n,downlinkConnection:o}))}},{key:"initRemoteStream",value:function(e){var t=e.type,n=e.userId,r=e.downlinkConnection,i=new Ab({type:t,userId:n,client:this});i.setConnection(r),r.setRemoteStream(t===Hl?jl:Bl,i),i.setIsStreamAddedEventEmitted(!0),Of.emit(Qf,{client:this,stream:i}),this.emitter_.emit(m_,{stream:i})}},{key:"installDownlinkEvents",value:function(e,t,n){var r=this;e.on(l_,(function(e){e.stream.setIsStreamAddedEventEmitted(!0),Of.emit(Qf,{client:r,stream:e.stream}),r.emitter_.emit(m_,{stream:e.stream})})),e.on(d_,(function(e){e.stream.stop(),e.stream.setIsStreamAddedEventEmitted(!1),r.subscriptionManager_&&r.subscriptionManager_.deleteAutoRecoveryFlag(e.stream.getUserId(),e.stream.getType()),Of.emit(ip,{client:r,stream:e.stream}),r.emitter_.emit(v_,{stream:e.stream})})),e.on(h_,(function(e){Of.emit(rp,{client:r,stream:e.stream}),r.emitter_.emit(y_,{stream:e.stream})})),e.on(f_,(function(e){Of.emit(tp,{client:r,stream:e.stream}),r.emitter_.emit(__,{stream:e.stream})})),e.on(p_,(function(e){var t=e.getCode();t!==kg.ICE_TRANSPORT_ERROR&&(t===kg.DOWNLINK_RECONNECTION_FAILED&&r.closeDownLink(n),r.emitter_.emit(A_,e))}))}},{key:"onPeerJoin",value:function(e){var t=e.data.data,n=t.srcTinyId,r=t.userId,i=t.role;this.userMap_.has(r)||(this.userMap_.set(r,new qb({userId:r,tinyId:n,role:i})),this.emitter_.emit(S_,{userId:r}))}},{key:"onPeerLeave",value:function(e){var t=e.data.data,n=t.srcTinyId,r=t.userId,i=t.reason,o=void 0===i?0:i;this.log_.info("peer leave [".concat(r,"]: ").concat(eh[o])),this.cleanUser({userId:r,tinyId:n})}},{key:"cleanUser",value:function(e){var t=e.userId,n=e.tinyId;this.userMap_.delete(t),this.closeDownLink(n),this.emitter_.emit(x_,{userId:t})}},{key:"onPublishedUserList",value:function(e){var t=this;try{var n=e.data.userList.map((function(e){return e.userId}));this.connections_.forEach((function(e){var r=e.getUserId(),i=e.getTinyId();n.findIndex((function(e){return e===r}))<0&&(t.log_.info("peer unpublished detected [".concat(r,"]")),t.closeDownLink(i))})),e.data.userList.forEach((function(e){var n=e.userId,r=e.srcTinyId,i=e.flag;if(n!==t.userId_){var o=!!(1&i),a=!!(8&i),s=!!(4&i),c=!!(2&i);if(t.connections_.has(r)){var u=t.connections_.get(r).getTrackState(),l=u.audio,d=u.video,h=u.auxiliary;!d&&o&&Of.emit(Zf,{client:t,tinyId:r,userId:n,action:Gd,kind:ll}),!l&&a&&Of.emit(Zf,{client:t,tinyId:r,userId:n,action:Gd,kind:ul}),!h&&s&&Of.emit(Zf,{client:t,tinyId:r,userId:n,action:Gd,kind:dl}),d&&!o&&Of.emit(Zf,{client:t,tinyId:r,userId:n,action:Vd,kind:ll}),l&&!a&&Of.emit(Zf,{client:t,tinyId:r,userId:n,action:Vd,kind:ul}),h&&!s&&Of.emit(Zf,{client:t,tinyId:r,userId:n,action:Vd,kind:dl})}else t.log_.info("peer published detected [".concat(n,"]")),t.onRemoteStreamAdded({content:{audio:a,bigVideo:o,auxVideo:s,smallVideo:c,userId:n,tinyId:r}})}}))}catch(zS){}}},{key:"onUpdateRemoteMuteStat",value:function(e){var t=this,n=e.data;(n&&n.userList||[]).forEach((function(e){var n=e.srcTinyId,r=e.userId;if(0!==n&&n!==t.tinyId_){var i=t.connections_.get(n);if(i){var o=i.getMainStream();if(o&&o.getIsStreamAddedEventEmitted()){var a=!!(1&e.flag),s=!!(8&e.flag),c=!!(2&e.flag),u=!!(64&e.flag),l=!!(16&e.flag),d=t.mutedStates_.get(n);if(void 0===d)return t.mutedStates_.set(n,{hasAudio:s,hasVideo:a,hasSmall:c,audioMuted:u,videoMuted:l}),a?l?t.emitter_.emit(I_,{userId:r}):t.emitter_.emit(M_,{userId:r}):t.emitter_.emit(I_,{userId:r}),void(s?u?t.emitter_.emit(w_,{userId:r}):t.emitter_.emit(C_,{userId:r}):t.emitter_.emit(w_,{userId:r}));var h=!u&&s;(!d.audioMuted&&d.hasAudio)!==h&&(h?t.emitter_.emit(C_,{userId:r}):t.emitter_.emit(w_,{userId:r}));var f=!l&&a;(!d.videoMuted&&d.hasVideo)!==f&&(f?t.emitter_.emit(M_,{userId:r}):t.emitter_.emit(I_,{userId:r})),t.mutedStates_.set(n,{hasAudio:s,hasVideo:a,hasSmall:c,audioMuted:u,videoMuted:l})}}else t.mutedStates_.delete(n)}}))}},{key:"onClientBanned",value:function(e){this.emitter_.emit(T_,new Eg({code:kg.CLIENT_BANNED,message:my({key:cv,data:{reason:e}})}))}},{key:"getEnv",value:function(){return this.env_}},{key:"getSubscriptionManager",value:function(){return this.subscriptionManager_}},{key:"startPublishCDNStream",value:(h=o(regeneratorRuntime.mark((function e(){var t,n=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.length>0&&void 0!==n[0]?n[0]:{},this.localStream_){e.next=3;break}throw new Eg({code:kg.INVALID_OPERATION,message:my({key:uv})});case 3:return this.log_.info("startPublishCDNStream params: ".concat(JSON.stringify(t))),e.next=6,this.publishCDNManager_.startPublishTencentCDN(t);case 6:if(!(t.appId&&t.bizId&&t.url)){e.next=9;break}return e.next=9,this.publishCDNManager_.startPublishGivenCDN(t);case 9:case"end":return e.stop()}}),e,this)}))),function(){return h.apply(this,arguments)})},{key:"stopPublishCDNStream",value:(d=o(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.publishCDNManager_.getIsPublishingTencentCDN()){e.next=2;break}throw new Eg({code:kg.INVALID_OPERATION,message:my({key:lv})});case 2:return this.log_.info("stopPublishCDNStream"),e.next=5,this.publishCDNManager_.stopPublishTencentCDN();case 5:if(!this.publishCDNManager_.getIsPublishingGivenCDN()){e.next=8;break}return e.next=8,this.publishCDNManager_.stopPublishGivenCDN();case 8:case"end":return e.stop()}}),e,this)}))),function(){return d.apply(this,arguments)})},{key:"startMixTranscode",value:(l=o(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isJoined_&&this.mixTranscodeManager_){e.next=2;break}throw new Eg({code:kg.INVALID_OPERATION,message:my({key:pv})});case 2:return sh(t.mode)&&(t.mode=Dd.MANUAL),e.prev=3,this.log_.info("startMixTranscode with config ".concat(JSON.stringify(t))),vy.uploadEvent({log:"mix-transcode-mode:".concat(t.mode),userId:this.userId_}),e.next=8,this.mixTranscodeManager_.startMixTranscode(t);case 8:vy.logSuccessEvent({userId:this.userId_,eventType:Cd}),e.next=15;break;case 11:throw e.prev=11,e.t0=e.catch(3),vy.logFailedEvent({userId:this.userId_,eventType:Cd,error:e.t0}),e.t0;case 15:case"end":return e.stop()}}),e,this,[[3,11]])}))),function(e){return l.apply(this,arguments)})},{key:"stopMixTranscode",value:(u=o(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isJoined_&&this.mixTranscodeManager_){e.next=2;break}throw new Eg({code:kg.INVALID_OPERATION,message:my({key:gv})});case 2:return e.prev=2,e.next=5,this.mixTranscodeManager_.stopMixTranscode();case 5:vy.logSuccessEvent({userId:this.userId_,eventType:Md}),e.next=12;break;case 8:throw e.prev=8,e.t0=e.catch(2),vy.logFailedEvent({userId:this.userId_,eventType:Md,error:e.t0}),e.t0;case 12:case"end":return e.stop()}}),e,this,[[2,8]])}))),function(){return u.apply(this,arguments)})},{key:"getSystemResult",value:function(){return this.checkSystemResult_}},{key:"enableAudioVolumeEvaluation",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2e3,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!uh(t))throw new Eg({code:kg.INVALID_PARAMETER,message:my({key:mv})});if(this.log_.info("enableAudioVolumeEvaluation with interval: "+t),t<=0)return this.enableAudioVolumeEvaluation_=!1,Py.clearInterval(this.audioVolumeIntervalId_),void(this.audioVolumeIntervalId_=null);t=Math.floor(Math.max(t,16)),this.audioVolumeIntervalId_&&(Py.clearInterval(this.audioVolumeIntervalId_),this.audioVolumeIntervalId_=null),this.enableAudioVolumeEvaluation_=!0,this.audioVolumeIntervalId_=Py.setInterval((function(){var t=[];if(e.localStream_){var n=Math.floor(100*e.localStream_.getAudioLevel());t.push({userId:e.userId_,audioVolume:n,stream:e.localStream_})}e.connections_.forEach((function(e){var n=e.getSubscribedMainStream();if(n){var r=Math.floor(100*n.getAudioLevel());t.push({userId:e.getUserId(),audioVolume:r,stream:n})}})),e.emitter_.emit(E_,{result:t})}),t,n)}},{key:"uploadAllCallStats",value:function(){var e=this;this.callDurationCalculator_.getDurationMap().forEach((function(t,n){var r={userId:t.userId,type:t.type,duration:e.callDurationCalculator_.getDuration(n,ll),dataFreeze:e.badCaseDetector_.getDataFreezeDuration(n).dataFreeze,renderFreeze:e.badCaseDetector_.getRenderFreezeDuration(n).renderFreeze};vy.uploadEvent({log:"callStats-"+JSON.stringify(r),userId:e.userId_})})),this.badCaseDetector_.stop(),this.callDurationCalculator_.reset()}},{key:"enableSmallStream",value:(s=o(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.isPublished()&&!this.isPublishing_){e.next=2;break}throw new Eg({code:kg.INVALID_OPERATION,message:my({key:vv})});case 2:if(!s_()){e.next=7;break}this.setIsEnableSmallStream(!0),this.log_.info("SmallStream successfully enabled"),e.next=8;break;case 7:throw new Eg({code:kg.INVALID_OPERATION,message:my({key:_v})});case 8:case"end":return e.stop()}}),e,this)}))),function(){return s.apply(this,arguments)})},{key:"disableSmallStream",value:(i=o(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.isPublished()&&!this.isPublishing_){e.next=2;break}throw new Eg({code:kg.INVALID_OPERATION,message:my({key:yv})});case 2:this.setIsEnableSmallStream(!1),this.log_.info("SmallStream successfully disabled");case 4:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"setSmallStreamProfile",value:function(e){var t=this;e&&e.framerate&&(e.frameRate=e.framerate),Object.keys(this.smallStreamConfig_).forEach((function(n){e[n]&&(t.smallStreamConfig_[n]=e[n])})),this.log_.info("setSmallStreamProfile: bitrate=".concat(this.smallStreamConfig_.bitrate,", frameRate=").concat(this.smallStreamConfig_.frameRate,", height=").concat(this.smallStreamConfig_.height,", width=").concat(this.smallStreamConfig_.width));var n=this.smallStreamConfig_,r=n.width,i=n.height,o=n.bitrate,a=n.frameRate;if(r<0||i<0||o<0||a<0)throw new Eg({code:kg.INVALID_PARAMETER,message:my({key:bv})})}},{key:"setRemoteVideoStreamType",value:(r=o(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=n,e.next="big"===e.t0||"small"===e.t0?3:6;break;case 3:return e.next=5,this.changeVideoType(t,n);case 5:case 6:return e.abrupt("break",7);case 7:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"changeVideoType",value:(t=o(regeneratorRuntime.mark((function e(t,n){var r,i,o,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t instanceof Ab){e.next=2;break}throw new Eg({code:kg.INVALID_PARAMETER,message:my({key:Sv})});case 2:if(t.getConnection()){e.next=4;break}throw new Eg({code:kg.INVALID_OPERATION,message:my({key:nv})});case 4:if((r=t.getConnection().getSubscribeState()).video){e.next=8;break}if(r.smallVideo){e.next=8;break}throw new Eg({code:kg.INVALID_OPERATION,message:my({key:xv})});case 8:if(i=this.getRemoteMutedState().filter((function(e){return e.userId===t.getUserId()}))[0],"small"!==n||i&&i.hasSmall){e.next=11;break}throw new Eg({code:kg.INVALID_OPERATION,message:my({key:wv})});case 11:return this.log_.info("change video type: streamType=".concat(t.getType(),", set ").concat(n)),o=t.getConnection(),a={video:"big"===n,smallVideo:"small"===n},e.next=18,o.subscribe(t,a);case 18:case"end":return e.stop()}}),e,this)}))),function(e,n){return t.apply(this,arguments)})},{key:"setIsEnableSmallStream",value:function(e){this.isEnableSmallStream_=e}},{key:"getIsEnableSmallStream",value:function(){return this.isEnableSmallStream_}},{key:"smallStreamConfig",get:function(){return this.smallStreamConfig_}},{key:"isPublished",value:function(){return!!this.localStream_}},{key:"getUplinkConnection",value:function(){return this.uplinkConnection_}},{key:"getLocalStream",value:function(){return this.localStream_}},{key:"getMode",value:function(){return this.mode_}},{key:"getBadCaseDetector",value:function(){return this.badCaseDetector_}},{key:"getCallDurationCalculator",value:function(){return this.callDurationCalculator_}},{key:"getIsJoined",value:function(){return this.isJoined_}},{key:"getAllConnections",value:function(){var e=b(this.connections_.values());return this.uplinkConnection_&&e.push(this.uplinkConnection_),e}},{key:"isRelayMaybeFailed",value:function(){var e=this.getAllConnections();if(0===e.length)return!1;for(var t=0;t<e.length;t++)if(e[t].getReconnectionCount()<6)return!1;return!0}},{key:"getUseStringRoomId",value:function(){return this.useStringRoomId_}},{key:"checkConnectionsToReconnect",value:function(){var e=this;this.getAllConnections().forEach((function(t){if(!t.getIsReconnecting()){var n=t.getPeerConnection();n&&n.connectionState===Ql&&(e.log_.warn("[".concat(t.getUserId(),"] pc is closed but not reconnect")),t.startReconnection())}}))}},{key:"getEnableAutoPlayDialog",value:function(){return this.enableAutoPlayDialog_}}]),e}()).prototype,"join",[sS,cS],Object.getOwnPropertyDescriptor(bS.prototype,"join"),bS.prototype),I(bS.prototype,"leave",[uS],Object.getOwnPropertyDescriptor(bS.prototype,"leave"),bS.prototype),I(bS.prototype,"publish",[lS,dS],Object.getOwnPropertyDescriptor(bS.prototype,"publish"),bS.prototype),I(bS.prototype,"unpublish",[hS,fS],Object.getOwnPropertyDescriptor(bS.prototype,"unpublish"),bS.prototype),I(bS.prototype,"subscribe",[pS],Object.getOwnPropertyDescriptor(bS.prototype,"subscribe"),bS.prototype),I(bS.prototype,"unsubscribe",[gS],Object.getOwnPropertyDescriptor(bS.prototype,"unsubscribe"),bS.prototype),I(bS.prototype,"switchRole",[mS,vS],Object.getOwnPropertyDescriptor(bS.prototype,"switchRole"),bS.prototype),I(bS.prototype,"startPublishCDNStream",[yS],Object.getOwnPropertyDescriptor(bS.prototype,"startPublishCDNStream"),bS.prototype),I(bS.prototype,"startMixTranscode",[_S],Object.getOwnPropertyDescriptor(bS.prototype,"startMixTranscode"),bS.prototype),bS),IS=Sp({retryFunction:function(){var e=o(regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Qy()){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,CS(t);case 4:if(n=e.sent,Ip.info("getUserMedia with constraints: "+JSON.stringify(n)),!n.audio){e.next=11;break}return e.next=9,BS.getMicrophones();case 9:r=e.sent,Ip.info("microphones: ".concat(JSON.stringify(r)));case 11:if(!n.video){e.next=16;break}return e.next=14,BS.getCameras();case 14:i=e.sent,Ip.info("cameras: ".concat(JSON.stringify(i)));case 16:return e.prev=16,e.next=19,navigator.mediaDevices.getUserMedia(n);case 19:return e.abrupt("return",e.sent);case 22:if(e.prev=22,e.t0=e.catch(16),"NotFoundError"!==e.t0.name){e.next=29;break}if(!i||0!==i.length){e.next=27;break}throw new Eg({code:kg.DEVICE_NOT_FOUND,message:my({key:dy})});case 27:if(!r||0!==r.length){e.next=29;break}throw new Eg({code:kg.DEVICE_NOT_FOUND,message:my({key:ly})});case 29:throw new Eg({code:kg.INITIALIZE_FAILED,name:e.t0.name,message:e.t0.message,constraint:e.t0.constraint});case 30:case"end":return e.stop()}}),e,null,[[16,22]])})));return function(t){return e.apply(this,arguments)}}(),settings:{retries:3,timeout:500},onError:function(e,t,n){"NotReadableError"===e.name?t():n(e)},onRetrying:function(e){Ip.warn("getUserMedia NotReadableError observed, retrying [".concat(e,"/3]"))}});function CS(e){return MS.apply(this,arguments)}function MS(){return(MS=o(regeneratorRuntime.mark((function e(t){var r,i,o,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r={echoCancellation:t.echoCancellation,autoGainControl:t.autoGainControl,noiseSuppression:t.noiseSuppression},t.audio){e.next=5;break}r=!1,e.next=15;break;case 5:if(mm(t.microphoneId)){e.next=9;break}r=n({deviceId:{exact:t.microphoneId},sampleRate:t.sampleRate,channelCount:t.channelCount},r),e.next=15;break;case 9:return r=n({sampleRate:t.sampleRate,channelCount:t.channelCount},r),e.next=12,BS.getMicrophones();case 12:i=e.sent,(o=i.filter((function(e){return e.deviceId.length>0}))).length>0&&(r.deviceId={exact:o[0].deviceId});case 15:return a={},a=!sh(t.facingMode)&&t.video?{facingMode:t.facingMode,width:t.width,height:t.height,frameRate:t.frameRate}:!mm(t.cameraId)&&t.video?{deviceId:{exact:t.cameraId},width:t.width,height:t.height,frameRate:t.frameRate}:!!t.video&&(!!sh(t.width)||{width:t.width,height:t.height,frameRate:t.frameRate}),e.abrupt("return",{audio:r,video:a});case 18:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var TS=function(){var e=o(regeneratorRuntime.mark((function e(t){var n,r,i,o,a,s,c,u,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Qy()){e.next=2;break}return e.abrupt("return");case 2:if(n=null,!(Ju&&Xu<74||Qu)){e.next=27;break}return r=ES(t),Ip.info("getDisplayMedia with constraints: "+JSON.stringify(r)),e.next=8,navigator.mediaDevices.getDisplayMedia(r);case 8:if(i=e.sent,!t.screenAudio){e.next=14;break}return Ip.warn("Your browser not support capture system audio"),e.abrupt("return",i);case 14:if(!t.audio){e.next=24;break}return o=kS(t),Ip.info("getUserMedia with constraints: "+JSON.stringify(o)),e.next=19,navigator.mediaDevices.getUserMedia(o);case 19:return n=e.sent,i.addTrack(n.getAudioTracks()[0]),e.abrupt("return",i);case 24:return e.abrupt("return",i);case 25:e.next=53;break;case 27:if(!t.screenAudio){e.next=37;break}return t.audioConstraints={echoCancellation:!0,noiseSuppression:!0,sampleRate:44100},a=ES(t),Ip.info("getDisplayMedia with constraints: "+JSON.stringify(a)),e.next=33,navigator.mediaDevices.getDisplayMedia(a);case 33:return s=e.sent,e.abrupt("return",s);case 37:return c=ES(t),Ip.info("getDisplayMedia with constraints: "+JSON.stringify(c)),e.next=41,navigator.mediaDevices.getDisplayMedia(c);case 41:if(u=e.sent,!t.audio){e.next=52;break}return l=kS(t),Ip.info("getUserMedia with constraints: "+JSON.stringify(l)),e.next=47,navigator.mediaDevices.getUserMedia(l);case 47:return n=e.sent,u.addTrack(n.getAudioTracks()[0]),e.abrupt("return",u);case 52:return e.abrupt("return",u);case 53:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function kS(e){var t={echoCancellation:e.echoCancellation,autoGainControl:e.autoGainControl,noiseSuppression:e.noiseSuppression,sampleRate:e.sampleRate,channelCount:e.channelCount};return sh(e.microphoneId)||(t.deviceId={exact:e.microphoneId}),{audio:t,video:!1}}function ES(e){var t={},n={width:e.width,height:e.height,frameRate:e.frameRate};return sh(e.screenSource)||(n.displaySurface=e.screenSource),t.video=n,sh(e.audioConstraints)||(t.audio=e.audioConstraints),t}var AS=new Map;AS.set("120p",{width:160,height:120,frameRate:15,bitrate:200}),AS.set("180p",{width:320,height:180,frameRate:15,bitrate:350}),AS.set("240p",{width:320,height:240,frameRate:15,bitrate:400}),AS.set("360p",{width:640,height:360,frameRate:15,bitrate:800}),AS.set("480p",{width:640,height:480,frameRate:15,bitrate:900}),AS.set("720p",{width:1280,height:720,frameRate:15,bitrate:1500}),AS.set("1080p",{width:1920,height:1080,frameRate:15,bitrate:2e3}),AS.set("1440p",{width:2560,height:1440,frameRate:30,bitrate:4860}),AS.set("4K",{width:3840,height:2160,frameRate:30,bitrate:9e3});var DS=new Map;DS.set("480p",{width:640,height:480,frameRate:5,bitrate:900}),DS.set("480p_2",{width:640,height:480,frameRate:30,bitrate:1e3}),DS.set("720p",{width:1280,height:720,frameRate:5,bitrate:1200}),DS.set("720p_2",{width:1280,height:720,frameRate:30,bitrate:3e3}),DS.set("1080p",{width:1920,height:1080,frameRate:5,bitrate:1600}),DS.set("1080p_2",{width:1920,height:1080,frameRate:30,bitrate:4e3});var OS,RS,LS=new Map;LS.set("standard",{sampleRate:48e3,channelCount:1,bitrate:40}),LS.set("standard-stereo",{sampleRate:48e3,channelCount:2,bitrate:64}),LS.set("high",{sampleRate:48e3,channelCount:1,bitrate:128}),LS.set("high-stereo",{sampleRate:48e3,channelCount:2,bitrate:192});var PS,NS,US,FS=(OS=Mb.apply(void 0,b(Ib.LOCAL_STREAM.switchDevice)),I((RS=function(e){l(_,e);var t,i,s,u,h,f,p,g,m=v(_);function _(e){var t;a(this,_);var r=n(n({},e),{isRemote:!1,type:"local"});return e.screen&&(r.mirror=!1),(t=m.call(this,r)).name_=$d,t.client_=null,t.video_=e.video,t.audio_=e.audio,t.cameraId_=e.cameraId,t.cameraGroupId_="",t.facingMode_=e.facingMode,t.microphoneId_=e.microphoneId,t.microphoneGroupId_="",t.videoSource_=e.videoSource,t.audioSource_=e.audioSource,t.screen_=e.screen,t.screenSource_=e.screenSource,t.screenAudio_=e.screenAudio,t.audioProfile_={echoCancellation:!!sh(e.echoCancellation)||e.echoCancellation,autoGainControl:!!sh(e.autoGainControl)||e.autoGainControl,noiseSuppression:!!sh(e.noiseSuppression)||e.noiseSuppression,sampleRate:48e3,channelCount:1,bitrate:40},t.videoProfile_={width:640,height:480,frameRate:15,bitrate:900},t.screenProfile_={width:1920,height:1080,frameRate:5,bitrate:1600},t.videoBitrate_=t.screen_?1600:900,t.videoSetting_=null,t.muteState_={video:!1,audio:!1,auxVideo:!1},t.beautyStatus_=!1,t.recoverCaptureCount_=0,t.initState(),t.canvas_=null,t.canvasInterval_=-1,t.log_.info("stream created: "+t.id_),t}return c(_,[{key:"initState",value:function(){this.isAddingTrack_=!1,this.isRemovingTrack_=!1,this.setIsReadyToPublish(!1),this.setPublishState(Bd)}},{key:"installEvents",value:function(){y(d(_.prototype),"installEvents",this).call(this),Of.on(op,this.onStreamPublished,this),Of.on(pp,this.onVideoTrackStopped,this),Of.on(up,this.onVideoTrackStopped,this),Of.on(mp,this.onAudioTrackStopped,this),Of.on(gp,this.onAudioTrackStopped,this)}},{key:"uninstallEvents",value:function(){y(d(_.prototype),"uninstallEvents",this).call(this),Of.off(op,this.onStreamPublished,this),Of.off(pp,this.onVideoTrackStopped,this),Of.off(up,this.onVideoTrackStopped,this),Of.off(mp,this.onAudioTrackStopped,this),Of.off(gp,this.onAudioTrackStopped,this)}},{key:"initialize",value:function(){var e=this;return new Promise((function(t,n){if(e_())n(new Eg({code:kg.INVALID_OPERATION,message:my({key:ry})}));else{if(sh(e.audio_)){var r=new MediaStream;return sh(e.audioSource_)||(r.addTrack(e.audioSource_),e.updateAudioPlayingState(!0)),sh(e.videoSource_)||(r.addTrack(e.videoSource_),e.updateVideoPlayingState(!0)),e.setMediaStream(r),vy.logSuccessEvent({userId:e.client_?e.client_.getUserId():e.userId_,eventType:bd,kind:"custom"}),e.setIsReadyToPublish(!0),t()}e.screen_?(e.log_.info("initialize stream audio: "+e.audio_+" screenAudio: "+e.screenAudio_+" screen: "+e.screen_),TS({audio:e.audio_,screenAudio:e.screenAudio_,microphoneId:e.microphoneId_,screenSource:e.screenSource_,width:e.screenProfile_.width,height:e.screenProfile_.height,frameRate:e.screenProfile_.frameRate,sampleRate:e.audioProfile_.sampleRate,channelCount:e.audioProfile_.channelCount,autoGainControl:e.audioProfile_.autoGainControl,noiseSuppression:e.audioProfile_.noiseSuppression,echoCancellation:e.audioProfile_.echoCancellation}).then((function(n){e.setMediaStream(n),e.updateAudioPlayingState(e.audio_||e.screenAudio_),e.updateVideoPlayingState(!0);var r=e.getVideoTrack();return e.listenForScreenSharingStopped(r),e.setVideoContentHint(wl),e.updateDeviceIdInUse(),e.setIsReadyToPublish(!0),e.log_.info(JSON.stringify(r.getSettings())),vy.logSuccessEvent({userId:e.client_?e.client_.getUserId():e.userId_,eventType:bd,kind:"getDisplayMedia"}),t()})).catch((function(t){vy.logFailedEvent({userId:e.client_?e.client_.getUserId():e.userId_,eventType:bd,kind:"getDisplayMedia",error:t}),e.log_.error("getDisplayMedia error observed "+t),n(t instanceof Eg?t:new Eg({code:kg.INITIALIZE_FAILED,name:t.name,message:t.message}))}))):(Of.emit(ap,{stream:e,audio:e.audio_,video:e.video_}),e.log_.info("initialize stream audio: "+e.audio_+" video: "+e.video_),IS({audio:e.audio_,video:e.video_,facingMode:e.facingMode_,cameraId:e.cameraId_,microphoneId:e.microphoneId_,width:e.videoProfile_.width,height:e.videoProfile_.height,frameRate:e.videoProfile_.frameRate,sampleRate:e.audioProfile_.sampleRate,channelCount:e.audioProfile_.channelCount,autoGainControl:e.audioProfile_.autoGainControl,noiseSuppression:e.audioProfile_.noiseSuppression,echoCancellation:e.audioProfile_.echoCancellation}).then((function(n){Of.emit(sp,{stream:e,audio:e.audio_,video:e.video_}),e.setMediaStream(n);var r=e.getVideoTrack();return r&&(c_&&(e.videoSetting_=r.getSettings()),u_&&e.log_.info("video capabilities: "+JSON.stringify(r.getCapabilities()))),e.updateAudioPlayingState(e.audio_),e.updateVideoPlayingState(e.video_),e.updateDeviceIdInUse(),e.log_.info("gotStream hasAudio: "+e.hasAudio()+" hasVideo: "+e.hasVideo()),e.setIsReadyToPublish(!0),vy.logSuccessEvent({userId:e.client_?e.client_.getUserId():e.userId_,eventType:bd,kind:"getUserMedia"}),t()})).catch((function(t){Of.emit(cp,{stream:e,audio:e.audio_,video:e.video_,error:t}),vy.logFailedEvent({userId:e.client_?e.client_.getUserId():e.userId_,eventType:bd,kind:"getUserMedia",error:t}),e.log_.error("getUserMedia error observed "+t),n(t)})))}}))}},{key:"listenForScreenSharingStopped",value:function(e){var t=this;e.addEventListener("ended",(function(e){t.log_.info("screen sharing was stopped because the video track is ended"),t.emitter_.emit(O_)}))}},{key:"muteAudio",value:function(){var e=y(d(_.prototype),"muteAudio",this).call(this);return e&&(this.log_.info("localStream mute audio"),this.sendMutedFlag(ul,!0)),e}},{key:"muteVideo",value:function(){var e=y(d(_.prototype),"muteVideo",this).call(this);return e&&(this.log_.info("localStream mute video"),this.sendMutedFlag(ll,!0)),e}},{key:"unmuteAudio",value:function(){var e=y(d(_.prototype),"unmuteAudio",this).call(this);return e&&(this.log_.info("localStream unmute audio"),this.sendMutedFlag(ul,!1)),e}},{key:"unmuteVideo",value:function(){var e=y(d(_.prototype),"unmuteVideo",this).call(this);return e&&(this.log_.info("localStream unmute video"),this.sendMutedFlag(ll,!1)),e}},{key:"sendMutedFlag",value:function(e,t){this.setMuteState(e,t);var n=this.getConnection();if(n){n.sendMutedFlag(this.muteState_);var r=n.getUserId(),i=n.getTinyId(),o="".concat(t?pl:gl," local ").concat(e," track");fm(r,{eventId:e===ul?t?Lg:Ng:t?Pg:Ug,eventDesc:o,timestamp:_a(),userId:r,tinyId:i})}}},{key:"setMuteState",value:function(e,t){this.muteState_[e]=t,this.log_.info("set ".concat(e," muted state: [").concat(t?"mute":"unmute","]"))}},{key:"setAudioProfile",value:function(e){var t;"object"===r(e)?t=e:void 0===(t=LS.get(e))&&(t=LS.get("standard")),this.log_.info("setAudioProfile: "+JSON.stringify(t)),this.audioProfile_=n(n({},this.audioProfile_),t)}},{key:"setVideoProfile",value:(g=o(regeneratorRuntime.mark((function e(t){var r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.connection_||Zy()){e.next=2;break}throw new Eg({code:kg.NOT_SUPPORTED,message:my({key:oy})});case 2:if(ih(t)?r=n(n({},this.videoProfile_),t):ch(t)&&(r=AS.get(t),sh(r)&&(r=AS.get("480p"))),this.log_.info("setVideoProfile "+JSON.stringify(r)),!(i=this.getVideoTrack())){e.next=8;break}return e.next=8,i.applyConstraints(r);case 8:if(this.videoBitrate_===r.bitrate){e.next=13;break}if(!this.connection_){e.next=12;break}return e.next=12,this.connection_.setBandwidth(r.bitrate,ll);case 12:this.videoBitrate_=r.bitrate;case 13:this.videoProfile_=r;case 14:case"end":return e.stop()}}),e,this)}))),function(e){return g.apply(this,arguments)})},{key:"getVideoBitrate",value:function(){return this.videoBitrate_}},{key:"getAudioBitrate",value:function(){return this.audioProfile_.bitrate}},{key:"setScreenProfile",value:function(e){var t=e;"object"!==r(e)&&void 0===(t=DS.get(e))&&(t=DS.get("1080p")),this.log_.info("setScreenProfile "+JSON.stringify(e)),this.screenProfile_=t,this.videoBitrate_=t.bitrate}},{key:"getVideoProfile",value:function(){return this.screen_?this.screenProfile_:this.videoProfile_}},{key:"getAudioProfile",value:function(){return this.audioProfile_}},{key:"setVideoContentHint",value:function(e){var t=this.getVideoTrack();t&&"contentHint"in t&&(this.log_.info("set video track contentHint to: "+e),t.contentHint=e,t.contentHint!==e&&this.log_.warn("Invalid video track contentHint: "+e))}},{key:"switchDevice",value:(p=o(regeneratorRuntime.mark((function e(t,n){var r,i,o,a,s,c,u,l,d,h,f,p,g,m,v,y,_;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r=t===ul)){e.next=8;break}if(this.microphoneId_!==n){e.next=4;break}return e.abrupt("return");case 4:this.microphoneId_=n,this.audio_=!0,e.next=12;break;case 8:if(this.cameraId_!==n){e.next=10;break}return e.abrupt("return");case 10:n===hl||n===fl?this.facingMode_=n:this.cameraId_=n,this.video_=!0;case 12:if(this.getMediaStream()){e.next=14;break}return e.abrupt("return");case 14:return this.setIsReadyToPublish(!1),this.log_.info("switchDevice "+t+" to: "+n),r||((i=this.getVideoTrack())&&i.stop(),Vu&&(o=this.getAudioTrack())&&(this.log_.info("stop audio track first in huawei env"),o.stop())),r&&(a=this.getAudioTrack(),s=this.getMicrophoneTrackMixed(),a&&a.stop(),s&&s.stop()),e.next=20,IS({audio:this.audio_&&t===ul||Vu,video:this.video_&&t===ll,facingMode:n===hl||n===fl?n:void 0,cameraId:this.cameraId_,microphoneId:this.microphoneId_,width:this.videoProfile_.width,height:this.videoProfile_.height,frameRate:this.videoProfile_.frameRate,sampleRate:this.audioProfile_.sampleRate,channelCount:this.audioProfile_.channelCount});case 20:if(c=e.sent,u=null,!r){e.next=27;break}(l=c.getAudioTracks()[0])&&this.isAudioTrackMixed()?(d=this.getAudioTrack(),h=BS.AudioMixerPlugin.getAudioTrackMap(),f=BS.AudioMixerPlugin.mix({targetTrack:l,sourceList:h.get(d.id).sourceList,trackList:h.get(d.id).trackList}),u=f):u=l,e.next=36;break;case 27:if(!(u=c.getVideoTracks()[0])||!this.isVideoTrackBeautified()){e.next=32;break}return e.next=31,this.generateBeautyTrack(u);case 31:u=e.sent;case 32:if(!(p=c.getAudioTracks()[0])||!Vu){e.next=36;break}return e.next=36,this.replaceTrack_(p);case 36:return e.next=38,this.replaceTrack_(u);case 38:this.updateDeviceIdInUse(),(g=this.getConnection())&&(m=g.getUserId(),v=g.getTinyId(),y=jg,_="switch camera",r&&(y=Bg,_="switch microphone"),fm(m,{eventId:y,eventDesc:_,timestamp:_a(),userId:m,tinyId:v})),this.log_.info("switch ".concat(r?"microphone":"camera"," success ")),this.setIsReadyToPublish(!0);case 43:case"end":return e.stop()}}),e,this)}))),function(e,t){return p.apply(this,arguments)})},{key:"addTrack",value:(f=o(regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.isAddingTrack_){e.next=2;break}throw new Eg({code:kg.INVALID_OPERATION,message:my({key:kv})});case 2:if(!this.isRemovingTrack_){e.next=4;break}throw new Eg({code:kg.INVALID_OPERATION,message:my({key:Ev})});case 4:if(this.publishState_!==zd){e.next=6;break}throw new Eg({code:kg.INVALID_OPERATION,message:my({key:Av})});case 6:if(n=this.getMediaStream()){e.next=9;break}throw new Eg({code:kg.INVALID_OPERATION,message:my({key:Dv})});case 9:if(!(t.kind===ul&&n.getAudioTracks().length>0||t.kind===ll&&n.getVideoTracks().length>0)){e.next=11;break}throw new Eg({code:kg.INVALID_OPERATION,message:my({key:Ov})});case 11:if(t.kind===ll&&c_&&(r=t.getSettings(),!this.videoSetting_||r.width===this.videoSetting_.width&&r.height===this.videoSetting_.height||this.log_.warn("video resolution of the track (".concat(r.width," x ").concat(r.height,") shall be kept the same as the previous: ").concat(this.videoSetting_.width," x ").concat(this.videoSetting_.height,". It may cause abnormal Cloud Recording."))),e.prev=12,this.isAddingTrack_=!0,this.keepMuteState(t),n.addTrack(t),!(i=this.getConnection())){e.next=20;break}return e.next=20,i.addTrack(t);case 20:t.kind===ul?(this.audio_=!0,this.updateAudioPlayingState(!0)):(this.video_=!0,this.updateVideoPlayingState(!0)),this.isAddingTrack_=!1,e.next=29;break;case 24:throw e.prev=24,e.t0=e.catch(12),n.removeTrack(t),this.isAddingTrack_=!1,e.t0;case 29:case"end":return e.stop()}}),e,this,[[12,24]])}))),function(e){return f.apply(this,arguments)})},{key:"removeTrack",value:(h=o(regeneratorRuntime.mark((function e(t){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.kind!==ul){e.next=2;break}throw new Eg({code:kg.INVALID_PARAMETER,message:my({key:Rv})});case 2:if(!this.isAddingTrack_){e.next=4;break}throw new Eg({code:kg.INVALID_OPERATION,message:my({key:Lv})});case 4:if(!this.isRemovingTrack_){e.next=6;break}throw new Eg({code:kg.INVALID_OPERATION,message:my({key:Pv})});case 6:if(this.publishState_!==zd){e.next=8;break}throw new Eg({code:kg.INVALID_OPERATION,message:my({key:Nv})});case 8:if(n=this.getMediaStream()){e.next=11;break}throw new Eg({code:kg.INVALID_OPERATION,message:my({key:Dv})});case 11:if(-1!==n.getTracks().indexOf(t)){e.next=13;break}throw new Eg({code:kg.INVALID_PARAMETER,message:my({key:Uv})});case 13:if(1!==n.getTracks().length){e.next=15;break}throw new Eg({code:kg.INVALID_OPERATION,message:my({key:Fv})});case 15:if(e.prev=15,this.isRemovingTrack_=!0,!(r=this.getConnection())){e.next=21;break}return e.next=21,r.removeTrack(t);case 21:n.removeTrack(t),t.kind===ul?(this.audio_=!1,this.updateAudioPlayingState(!1)):(this.video_=!1,this.updateVideoPlayingState(!1)),this.isRemovingTrack_=!1,e.next=30;break;case 26:throw e.prev=26,e.t0=e.catch(15),this.isRemovingTrack_=!1,e.t0;case 30:case"end":return e.stop()}}),e,this,[[15,26]])}))),function(e){return h.apply(this,arguments)})},{key:"replaceTrack",value:(u=o(regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.getMediaStream()){e.next=3;break}throw new Eg({code:kg.INVALID_OPERATION,message:my({key:Tv})});case 3:if(this.publishState_!==zd){e.next=5;break}throw new Eg({code:kg.INVALID_OPERATION,message:my({key:Mv})});case 5:if(!(t.kind===ul&&n.getAudioTracks().length<=0||t.kind===ll&&n.getVideoTracks().length<=0)){e.next=7;break}throw new Eg({code:kg.INVALID_PARAMETER,message:my({key:Gv,data:t})});case 7:if(t.kind===ll&&c_&&(r=t.getSettings(),!this.videoSetting_||r.width===this.videoSetting_.width&&r.height===this.videoSetting_.height||this.log_.warn("video resolution of the track (".concat(r.width," x ").concat(r.height,") shall be kept the same as the previous: ").concat(this.videoSetting_.width," x ").concat(this.videoSetting_.height,". It may cause abnormal Cloud Recording."))),this.keepMuteState(t),t.kind===ul?(n.removeTrack(n.getAudioTracks()[0]),n.addTrack(t),y(d(_.prototype),"restartAudio",this).call(this)):(n.removeTrack(n.getVideoTracks()[0]),n.addTrack(t),y(d(_.prototype),"restartVideo",this).call(this)),!(i=this.getConnection())){e.next=14;break}return e.next=14,i.replaceTrack(t);case 14:case"end":return e.stop()}}),e,this)}))),function(e){return u.apply(this,arguments)})},{key:"updateStream",value:(s=o(regeneratorRuntime.mark((function e(t){var n,r,i,o,a,s,c,u,l,d,h,f,p,g,m;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.mediaStream_){e.next=2;break}return e.abrupt("return");case 2:return this.log_.info("updateStream() try to recover local stream"),e.prev=3,e.next=6,BS.getCameras();case 6:return n=e.sent,e.next=9,BS.getMicrophones();case 9:if(r=e.sent,i=this.audio_&&t.audio,(o=this.video_&&t.video)&&0===n.length&&(o=!1,this.log_.info("updateStream() video flag is true, but no camera detected, set video to false")),i&&0===r.length&&(i=!1,this.log_.info("updateStream() audio flag is true, but no microphone detected, set audio to false")),!1!==i||!1!==o){e.next=17;break}return this.log_.info("updateStream() both audio and video are false, recover stream aborted"),e.abrupt("return");case 17:return a=t&&n.findIndex((function(e){return e.deviceId===t.cameraId}))>=0,s=t&&r.findIndex((function(e){return e.deviceId===t.microphoneId}))>=0,e.next=21,IS({audio:i,video:o,cameraId:a?t.cameraId:void 0,microphoneId:s?t.microphoneId:void 0,facingMode:this.facingMode_,width:this.videoProfile_.width,height:this.videoProfile_.height,frameRate:this.videoProfile_.frameRate,sampleRate:this.audioProfile_.sampleRate,channelCount:this.audioProfile_.channelCount});case 21:c=e.sent,u=c.getTracks(),l=0;case 24:if(!(l<u.length)){e.next=49;break}if((d=u[l]).kind!==ul||!this.isAudioTrackMixed()){e.next=37;break}if(h=this.getAudioTrack(),f=BS.AudioMixerPlugin.getAudioTrackMap(),(p=f.get(h.id)).hasMicrophone){e.next=33;break}return d.stop(),e.abrupt("continue",46);case 33:return g=BS.AudioMixerPlugin.mix({targetTrack:d,sourceList:p.sourceList,trackList:p.trackList}),e.next=36,this.replaceTrack_(g);case 36:return e.abrupt("continue",46);case 37:if(d.kind!==ll||!this.isVideoTrackBeautified()){e.next=44;break}return e.next=40,this.generateBeautyTrack(d);case 40:return m=e.sent,e.next=43,this.replaceTrack_(m);case 43:return e.abrupt("continue",46);case 44:return e.next=46,this.replaceTrack_(d);case 46:l++,e.next=24;break;case 49:this.updateDeviceIdInUse(),vy.logSuccessEvent({userId:this.client_?this.client_.getUserId():this.userId_,eventType:wd}),this.log_.info("updateStream() recover local stream successfully"),e.next=59;break;case 54:e.prev=54,e.t0=e.catch(3),vy.logFailedEvent({userId:this.client_?this.client_.getUserId():this.userId_,eventType:wd,error:e.t0}),this.log_.error("updateStream() failed to recover local stream, "+e.t0),this.emitter_.emit(L_,new Eg({code:kg.DEVICE_AUTO_RECOVER_FAILED,message:e.t0.message}));case 59:case"end":return e.stop()}}),e,this,[[3,54]])}))),function(e){return s.apply(this,arguments)})},{key:"replaceTrack_",value:(i=o(regeneratorRuntime.mark((function e(t){var n,r,i,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.mediaStream_.getAudioTracks(),r=this.mediaStream_.getVideoTracks(),!(t.kind===ul&&n.length<=0||t.kind===ll&&r.length<=0)){e.next=5;break}return this.log_.info("there is no previous ".concat(t.kind," track, replacement ignored")),e.abrupt("return");case 5:if(this.keepMuteState(t),t.kind===ul?(this.mediaStream_.removeTrack(n[0]),this.mediaStream_.addTrack(t),y(d(_.prototype),"restartAudio",this).call(this)):(c_&&(i=t.getSettings(),!this.videoSetting_||i.width===this.videoSetting_.width&&i.height===this.videoSetting_.height||this.log_.warn("the resolution of video track to be replaced (".concat(i.width," x ").concat(i.height,") is different from the previous video settings (").concat(this.videoSetting_.width," x ").concat(this.videoSetting_.height,"). It may cause a cloud recording exception"))),this.mediaStream_.removeTrack(r[0]),this.mediaStream_.addTrack(t),y(d(_.prototype),"restartVideo",this).call(this)),!(o=this.getConnection())){e.next=11;break}return e.next=11,o.replaceTrack(t);case 11:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"updateDeviceIdInUse",value:function(){var e=this;if(!this.mediaStream_)return this.cameraId_="",this.cameraGroupId_="",this.microphoneId_="",void(this.microphoneGroupId_="");c_&&this.mediaStream_.getTracks().forEach((function(t){if(t.kind===ul&&e.isAudioTrackMixed()){var n=e.getMicrophoneTrackMixed();if(n){var r=n.getSettings(),i=r.deviceId,o=r.groupId;i&&(e.microphoneId_=i,e.microphoneGroupId_=o)}}else if(t.kind===ll&&e.isVideoTrackBeautified()){var a=e.getBeautyOriginTrack();if(a){var s=a.getSettings(),c=s.deviceId,u=s.groupId;c&&(e.cameraId_=c,e.cameraGroupId_=u)}}else{var l=t.getSettings(),d=l.deviceId,h=l.groupId;d&&(t.kind===ul?(e.microphoneId_=d,e.microphoneGroupId_=h):t.kind!==ll||e.screen_||(e.cameraId_=d,e.cameraGroupId_=h))}}));var t=this.mediaStream_.getAudioTracks(),n=this.mediaStream_.getVideoTracks();t&&0===t.length&&(this.microphoneId_="",this.microphoneGroupId_=""),n&&0===n.length&&(this.cameraId_="",this.cameraGroupId_="")}},{key:"isAudioTrackMixed",value:function(){if(BS.AudioMixerPlugin){var e=BS.AudioMixerPlugin.getAudioTrackMap(),t=this.getAudioTrack();if(e&&t&&e.has(t.id))return!0}return!1}},{key:"getMicrophoneTrackMixed",value:function(){if(BS.AudioMixerPlugin){var e=BS.AudioMixerPlugin.getAudioTrackMap(),t=this.getAudioTrack();if(e&&t&&e.has(t.id)){var n=e.get(t.id);return n.hasMicrophone?n.microphoneTrack:null}}return null}},{key:"isVideoTrackBeautified",value:function(){if(BS.beautyTrackMap){var e=BS.beautyTrackMap,t=this.getVideoTrack();if(t&&e.has(t.id))return!0}return!1}},{key:"getBeautyOriginTrack",value:function(){if(BS.beautyTrackMap){var e=BS.beautyTrackMap,t=this.getVideoTrack();if(t&&e.has(t.id)){var n=e.get(t.id);if(n.originTrack)return n.originTrack}}return null}},{key:"generateBeautyTrack",value:(t=o(regeneratorRuntime.mark((function e(t){var n,r,i,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=null,r=this.getVideoTrack(),i=BS.beautyTrackMap.get(r.id),o=i.param,i.type){e.next=8;break}n=i.pluginInstance.generateBeautyTrack(t),e.next=22;break;case 8:e.t0=i.type,e.next="beauty"===e.t0?11:"virtual"===e.t0?13:"mixed"===e.t0?17:21;break;case 11:return n=i.pluginInstance.generateBeautyTrack(t),e.abrupt("break",22);case 13:return e.next=15,i.pluginInstance.generateVirtualTrack({videoTrack:t,type:o.type,img:o.img});case 15:return n=e.sent,e.abrupt("break",22);case 17:return e.next=19,i.pluginInstance.generateMixedTrack({videoTrack:t,type:o.type,img:o.img});case 19:return n=e.sent,e.abrupt("break",22);case 21:return e.abrupt("break",22);case 22:return i.pluginInstance.deleteSource(r.id),this.log_.info("regenerate beauty track, track id = ".concat(t.id)),e.abrupt("return",n);case 25:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"getScreen",value:function(){return this.screen_}},{key:"hasScreenTrack",value:function(){if(this.screen_)return!0;var e=this.getVideoTrack();return!!e&&(e.contentHint===wl||e.contentHint===Il)}},{key:"getVideo",value:function(){return this.video_}},{key:"getAudio",value:function(){return this.audio_}},{key:"getCameraId",value:function(){return this.cameraId_}},{key:"getMicrophoneId",value:function(){return this.microphoneId_}},{key:"getMicrophoneGroupId",value:function(){return this.microphoneGroupId_}},{key:"getIsReadyToPublish",value:function(){return this.isReadyToPublish_}},{key:"setIsReadyToPublish",value:function(e){this.isReadyToPublish_=e}},{key:"setPublishState",value:function(e){this.publishState_=e}},{key:"setBeautyStatus",value:function(e){this.beautyStatus_=!!e}},{key:"getBeautyStatus",value:function(){return this.beautyStatus_}},{key:"onStreamPublished",value:function(e){var t=e.localStream,n=e.client;if(t===this){this.client_=n,this.log_.setUserId(n.getUserId()),this.log_.setSdkAppId(n.getSDKAppId());var r=this.getAudioTrack(),i=this.getVideoTrack();if(r){var o=!r.enabled;this.setMuteState(ul,o)}if(i){var a=!i.enabled;this.setMuteState(ll,a)}this.connection_&&this.connection_.sendMutedFlag(this.muteState_)}}},{key:"keepMuteState",value:function(e){e instanceof MediaStreamTrack&&this.muteState_[e.kind]&&(e.enabled=!1,this.log_.warn("prev ".concat(e.kind," track is muted, keep mute state")))}},{key:"onVideoTrackStopped",value:function(e){var t=e.stream,n=e.type;t!==this||!this.video_||!this.cameraId_||this.recoverCaptureCount_>10||(au||su)&&n===pl||(this.recoverCaptureCount_+=1,vy.uploadEvent({log:"stat-local-video-".concat(n),userId:this.userId_}),this.updateStream({audio:!1,video:!0,cameraId:this.cameraId_}))}},{key:"onAudioTrackStopped",value:function(e){var t=e.stream,n=e.type;t!==this||!this.audio_||!this.microphoneId_||this.recoverCaptureCount_>10||(au||su)&&n===pl||(this.recoverCaptureCount_+=1,vy.uploadEvent({log:"stat-local-audio-".concat(n),userId:this.userId_}),this.updateStream({audio:!0,video:!1,microphoneId:this.microphoneId_}))}},{key:"setAudioVolume",value:function(e){y(d(_.prototype),"setAudioVolume",this).call(this,e)}},{key:"clearCanvas",value:function(){this.canvasInterval_&&(Py.clearInterval(this.canvasInterval_),this.canvasInterval_=-1,this.canvas_=null)}},{key:"genCanvasTrack",value:function(e){var t=this;this.log_.info("gen canvas track");var n=e.getSettings(),r=n.width,i=n.height,o=n.frameRate;this.canvas_=document.createElement("canvas");var a=this.canvas_.getContext("2d");return this.canvas_.width=r,this.canvas_.height=i,this.canvasInterval_=Py.setInterval((function(){if(t.hasVideo()){var e=t.getVideoTrack().getSettings();e.width===t.canvas_.width&&e.height===t.canvas_.height||(t.canvas_.width=e.width,t.canvas_.height=e.height)}t.videoPlayer_&&t.videoPlayer_.element_&&a.drawImage(t.videoPlayer_.element_,0,0,t.canvas_.width,t.canvas_.height)}),Math.max(66,Math.floor(1e3/o))),this.canvas_.captureStream().getVideoTracks()[0]}}]),_}(Eb)).prototype,"switchDevice",[OS],Object.getOwnPropertyDescriptor(RS.prototype,"switchDevice"),RS.prototype),RS),GS=0,VS=0,jS=(PS=Cb(Ib.TRTC.createClient),NS=Cb(Ib.TRTC.createStream),I((US=function(){function e(){a(this,e),this.name_=Wd,this.VERSION="4.12.0",this.Logger={loggerManager:Ip,LogLevel:{TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,NONE:5},setLogLevel:function(e){Ip.setLogLevel(e),_h()&&e<=1&&gy()},enableUploadLog:function(){Ip.enableUploadLog()},disableUploadLog:function(){Ip.disableUploadLog()}}}var t,r,i,s,u;return c(e,[{key:"checkSystemRequirements",value:(u=o(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Wy();case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)}))),function(){return u.apply(this,arguments)})},{key:"isScreenShareSupported",value:function(){return $y()}},{key:"isSmallStreamSupported",value:function(){return s_()}},{key:"getDevices",value:(s=o(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!e_()&&!Qy()){e.next=2;break}return e.abrupt("return",[]);case 2:return e.next=4,navigator.mediaDevices.enumerateDevices();case 4:return t=e.sent,e.abrupt("return",t.filter((function(e){return e.kind!==Sl||"communications"!=e.deviceId})).map((function(e,t){var n=e.label;e.label||(n=e.kind+"_"+t);var r={label:n,deviceId:e.deviceId,kind:e.kind};return e.groupId&&(r.groupId=e.groupId),r})));case 6:case"end":return e.stop()}}),e)}))),function(){return s.apply(this,arguments)})},{key:"getCameras",value:(i=o(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!e_()&&!Qy()){e.next=2;break}return e.abrupt("return",[]);case 2:return e.next=4,navigator.mediaDevices.enumerateDevices();case 4:return t=e.sent,e.abrupt("return",t.filter((function(e){return e.kind===xl})).map((function(e,t){var n=e.label;e.label||(n="camera_"+t);var r={label:n,deviceId:e.deviceId,kind:e.kind};return e.groupId&&(r.groupId=e.groupId),r})));case 6:case"end":return e.stop()}}),e)}))),function(){return i.apply(this,arguments)})},{key:"getMicrophones",value:(r=o(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!e_()&&!Qy()){e.next=2;break}return e.abrupt("return",[]);case 2:return e.next=4,navigator.mediaDevices.enumerateDevices();case 4:return t=e.sent,e.abrupt("return",t.filter((function(e){return e.kind===Sl&&"communications"!==e.deviceId})).map((function(e,t){var n=e.label;e.label||(n="microphone_"+t);var r={label:n,deviceId:e.deviceId,kind:e.kind};return e.groupId&&(r.groupId=e.groupId),r})));case 6:case"end":return e.stop()}}),e)}))),function(){return r.apply(this,arguments)})},{key:"getSpeakers",value:(t=o(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!e_()&&!Qy()){e.next=2;break}return e.abrupt("return",[]);case 2:return e.next=4,navigator.mediaDevices.enumerateDevices();case 4:return t=e.sent,e.abrupt("return",t.filter((function(e){return"audiooutput"===e.kind})).map((function(e,t){var n=e.label;e.label||(n="speaker_"+t);var r={label:n,deviceId:e.deviceId,kind:e.kind};return e.groupId&&(r.groupId=e.groupId),r})));case 6:case"end":return e.stop()}}),e)}))),function(){return t.apply(this,arguments)})},{key:"createClient",value:function(e){Cp&&(Cp=!1,Ip.getLogLevel()!=BS.Logger.LogLevel.NONE&&(console.info("******************************************************************************"),console.info("*   TRTC Web SDK"),console.info("*   API Document: "+"".concat(Xd,"index.html")),console.info("*   Changelog: https://cloud.tencent.com/document/product/647/38958"),console.info("*   Report issues: https://github.com/LiteAVSDK/TRTC_Web/issues"),console.info("******************************************************************************")),Ip.info("TRTC Web SDK Version: 4.12.0"),Ip.info("UserAgent: "+navigator.userAgent),Ip.info("URL of current page: "+location.href));var t={version:this.VERSION},r=new wS(n(n(n({},t),e),{},{seq:++GS}));return Of.emit(qf,{client:r}),r}},{key:"createStream",value:function(e){return new FS(n(n({},e),{},{seq:++VS}))}}]),e}()).prototype,"createClient",[PS],Object.getOwnPropertyDescriptor(US.prototype,"createClient"),US.prototype),I(US.prototype,"createStream",[NS],Object.getOwnPropertyDescriptor(US.prototype,"createStream"),US.prototype),US);e_();var BS=new jS;return BS}))}).call(this,n("c8ba"))},5866:function(e,t,n){var r=n("ef2b"),i=r.forceLayout,o=n("1c5f"),a=o.simpleLayout,s=n("94e4"),c=s.circularLayout,u=n("3842"),l=u.linearMap,d=n("401b"),h=n("6d8b"),f=n("0c37"),p=f.getCurvenessForEdge;function g(e){e.eachSeriesByType("graph",(function(e){var t=e.coordinateSystem;if(!t||"view"===t.type)if("force"===e.get("layout")){var n=e.preservedPoints||{},r=e.getGraph(),o=r.data,s=r.edgeData,u=e.getModel("force"),f=u.get("initLayout");e.preservedPoints?o.each((function(e){var t=o.getId(e);o.setItemLayout(e,n[t]||[NaN,NaN])})):f&&"none"!==f?"circular"===f&&c(e,"value"):a(e);var g=o.getDataExtent("value"),m=s.getDataExtent("value"),v=u.get("repulsion"),y=u.get("edgeLength");h.isArray(v)||(v=[v,v]),h.isArray(y)||(y=[y,y]),y=[y[1],y[0]];var _=o.mapArray("value",(function(e,t){var n=o.getItemLayout(t),r=l(e,g,v);return isNaN(r)&&(r=(v[0]+v[1])/2),{w:r,rep:r,fixed:o.getItemModel(t).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}})),b=s.mapArray("value",(function(t,n){var i=r.getEdgeByIndex(n),o=l(t,m,y);isNaN(o)&&(o=(y[0]+y[1])/2);var a=i.getModel(),s=h.retrieve3(a.get("lineStyle.curveness"),-p(i,e,n,!0),0);return{n1:_[i.node1.dataIndex],n2:_[i.node2.dataIndex],d:o,curveness:s,ignoreForceLayout:a.get("ignoreForceLayout")}})),S=(t=e.coordinateSystem,t.getBoundingRect()),x=i(_,b,{rect:S,gravity:u.get("gravity"),friction:u.get("friction")}),w=x.step;x.step=function(e){for(var t=0,i=_.length;t<i;t++)_[t].fixed&&d.copy(_[t].p,r.getNodeByIndex(t).getLayout());w((function(t,i,a){for(var s=0,c=t.length;s<c;s++)t[s].fixed||r.getNodeByIndex(s).setLayout(t[s].p),n[o.getId(s)]=t[s].p;for(s=0,c=i.length;s<c;s++){var u=i[s],l=r.getEdgeByIndex(s),h=u.n1.p,f=u.n2.p,p=l.getLayout();p=p?p.slice():[],p[0]=p[0]||[],p[1]=p[1]||[],d.copy(p[0],h),d.copy(p[1],f),+u.curveness&&(p[2]=[(h[0]+f[0])/2-(h[1]-f[1])*u.curveness,(h[1]+f[1])/2-(f[0]-h[0])*u.curveness]),l.setLayout(p)}e&&e(a)}))},e.forceLayout=x,e.preservedPoints=n,x.step()}else e.forceLayout=null}))}e.exports=g},5899:function(e,t){e.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},"58a8":function(e,t,n){var r=n("e330"),i=n("1d80"),o=n("577e"),a=n("5899"),s=r("".replace),c="["+a+"]",u=RegExp("^"+c+c+"*"),l=RegExp(c+c+"*$"),d=function(e){return function(t){var n=o(i(t));return 1&e&&(n=s(n,u,"")),2&e&&(n=s(n,l,"")),n}};e.exports={start:d(1),end:d(2),trim:d(3)}},"58b8":function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=65)}({0:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var c,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(c=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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=c):i&&(c=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(e,t){return c.call(t),l(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},10:function(e,t){e.exports=n("f3ad")},11:function(e,t){e.exports=n("2bb5")},12:function(e,t){e.exports=n("417f")},15:function(e,t){e.exports=n("14e9")},18:function(e,t){e.exports=n("0e15")},22:function(e,t){e.exports=n("12f2")},3:function(e,t){e.exports=n("8122")},4:function(e,t){e.exports=n("d010")},5:function(e,t){e.exports=n("e974")},65:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.close,expression:"close"}],staticClass:"el-autocomplete",attrs:{"aria-haspopup":"listbox",role:"combobox","aria-expanded":e.suggestionVisible,"aria-owns":e.id}},[n("el-input",e._b({ref:"input",on:{input:e.handleInput,change:e.handleChange,focus:e.handleFocus,blur:e.handleBlur,clear:e.handleClear},nativeOn:{keydown:[function(t){if(!("button"in t)&&e._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"]))return null;t.preventDefault(),e.highlight(e.highlightedIndex-1)},function(t){if(!("button"in t)&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"]))return null;t.preventDefault(),e.highlight(e.highlightedIndex+1)},function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleKeyEnter(t)},function(t){return!("button"in t)&&e._k(t.keyCode,"tab",9,t.key,"Tab")?null:e.close(t)}]}},"el-input",[e.$props,e.$attrs],!1),[e.$slots.prepend?n("template",{slot:"prepend"},[e._t("prepend")],2):e._e(),e.$slots.append?n("template",{slot:"append"},[e._t("append")],2):e._e(),e.$slots.prefix?n("template",{slot:"prefix"},[e._t("prefix")],2):e._e(),e.$slots.suffix?n("template",{slot:"suffix"},[e._t("suffix")],2):e._e()],2),n("el-autocomplete-suggestions",{ref:"suggestions",class:[e.popperClass?e.popperClass:""],attrs:{"visible-arrow":"","popper-options":e.popperOptions,"append-to-body":e.popperAppendToBody,placement:e.placement,id:e.id}},e._l(e.suggestions,(function(t,r){return n("li",{key:r,class:{highlighted:e.highlightedIndex===r},attrs:{id:e.id+"-item-"+r,role:"option","aria-selected":e.highlightedIndex===r},on:{click:function(n){e.select(t)}}},[e._t("default",[e._v("\n        "+e._s(t[e.valueKey])+"\n      ")],{item:t})],2)})),0)],1)},i=[];r._withStripped=!0;var o=n(18),a=n.n(o),s=n(10),c=n.n(s),u=n(12),l=n.n(u),d=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":e.doDestroy}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.showPopper,expression:"showPopper"}],staticClass:"el-autocomplete-suggestion el-popper",class:{"is-loading":!e.parent.hideLoading&&e.parent.loading},style:{width:e.dropdownWidth},attrs:{role:"region"}},[n("el-scrollbar",{attrs:{tag:"ul","wrap-class":"el-autocomplete-suggestion__wrap","view-class":"el-autocomplete-suggestion__list"}},[!e.parent.hideLoading&&e.parent.loading?n("li",[n("i",{staticClass:"el-icon-loading"})]):e._t("default")],2)],1)])},h=[];d._withStripped=!0;var f=n(5),p=n.n(f),g=n(4),m=n.n(g),v=n(15),y=n.n(v),_={components:{ElScrollbar:y.a},mixins:[p.a,m.a],componentName:"ElAutocompleteSuggestions",data:function(){return{parent:this.$parent,dropdownWidth:""}},props:{options:{default:function(){return{gpuAcceleration:!1}}},id:String},methods:{select:function(e){this.dispatch("ElAutocomplete","item-click",e)}},updated:function(){var e=this;this.$nextTick((function(t){e.popperJS&&e.updatePopper()}))},mounted:function(){this.$parent.popperElm=this.popperElm=this.$el,this.referenceElm=this.$parent.$refs.input.$refs.input||this.$parent.$refs.input.$refs.textarea,this.referenceList=this.$el.querySelector(".el-autocomplete-suggestion__list"),this.referenceList.setAttribute("role","listbox"),this.referenceList.setAttribute("id",this.id)},created:function(){var e=this;this.$on("visible",(function(t,n){e.dropdownWidth=n+"px",e.showPopper=t}))}},b=_,S=n(0),x=Object(S["a"])(b,d,h,!1,null,null,null);x.options.__file="packages/autocomplete/src/autocomplete-suggestions.vue";var w=x.exports,I=n(11),C=n.n(I),M=n(3),T=n(22),k=n.n(T),E={name:"ElAutocomplete",mixins:[m.a,k()("input"),C.a],inheritAttrs:!1,componentName:"ElAutocomplete",components:{ElInput:c.a,ElAutocompleteSuggestions:w},directives:{Clickoutside:l.a},props:{valueKey:{type:String,default:"value"},popperClass:String,popperOptions:Object,placeholder:String,clearable:{type:Boolean,default:!1},disabled:Boolean,name:String,size:String,value:String,maxlength:Number,minlength:Number,autofocus:Boolean,fetchSuggestions:Function,triggerOnFocus:{type:Boolean,default:!0},customItem:String,selectWhenUnmatched:{type:Boolean,default:!1},prefixIcon:String,suffixIcon:String,label:String,debounce:{type:Number,default:300},placement:{type:String,default:"bottom-start"},hideLoading:Boolean,popperAppendToBody:{type:Boolean,default:!0},highlightFirstItem:{type:Boolean,default:!1}},data:function(){return{activated:!1,suggestions:[],loading:!1,highlightedIndex:-1,suggestionDisabled:!1}},computed:{suggestionVisible:function(){var e=this.suggestions,t=Array.isArray(e)&&e.length>0;return(t||this.loading)&&this.activated},id:function(){return"el-autocomplete-"+Object(M["generateId"])()}},watch:{suggestionVisible:function(e){var t=this.getInput();t&&this.broadcast("ElAutocompleteSuggestions","visible",[e,t.offsetWidth])}},methods:{getMigratingConfig:function(){return{props:{"custom-item":"custom-item is removed, use scoped slot instead.",props:"props is removed, use value-key instead."}}},getData:function(e){var t=this;this.suggestionDisabled||(this.loading=!0,this.fetchSuggestions(e,(function(e){t.loading=!1,t.suggestionDisabled||(Array.isArray(e)?(t.suggestions=e,t.highlightedIndex=t.highlightFirstItem?0:-1):console.error("[Element Error][Autocomplete]autocomplete suggestions must be an array"))})))},handleInput:function(e){if(this.$emit("input",e),this.suggestionDisabled=!1,!this.triggerOnFocus&&!e)return this.suggestionDisabled=!0,void(this.suggestions=[]);this.debouncedGetData(e)},handleChange:function(e){this.$emit("change",e)},handleFocus:function(e){this.activated=!0,this.$emit("focus",e),this.triggerOnFocus&&this.debouncedGetData(this.value)},handleBlur:function(e){this.$emit("blur",e)},handleClear:function(){this.activated=!1,this.$emit("clear")},close:function(e){this.activated=!1},handleKeyEnter:function(e){var t=this;this.suggestionVisible&&this.highlightedIndex>=0&&this.highlightedIndex<this.suggestions.length?(e.preventDefault(),this.select(this.suggestions[this.highlightedIndex])):this.selectWhenUnmatched&&(this.$emit("select",{value:this.value}),this.$nextTick((function(e){t.suggestions=[],t.highlightedIndex=-1})))},select:function(e){var t=this;this.$emit("input",e[this.valueKey]),this.$emit("select",e),this.$nextTick((function(e){t.suggestions=[],t.highlightedIndex=-1}))},highlight:function(e){if(this.suggestionVisible&&!this.loading)if(e<0)this.highlightedIndex=-1;else{e>=this.suggestions.length&&(e=this.suggestions.length-1);var t=this.$refs.suggestions.$el.querySelector(".el-autocomplete-suggestion__wrap"),n=t.querySelectorAll(".el-autocomplete-suggestion__list li"),r=n[e],i=t.scrollTop,o=r.offsetTop;o+r.scrollHeight>i+t.clientHeight&&(t.scrollTop+=r.scrollHeight),o<i&&(t.scrollTop-=r.scrollHeight),this.highlightedIndex=e;var a=this.getInput();a.setAttribute("aria-activedescendant",this.id+"-item-"+this.highlightedIndex)}},getInput:function(){return this.$refs.input.getInput()}},mounted:function(){var e=this;this.debouncedGetData=a()(this.debounce,this.getData),this.$on("item-click",(function(t){e.select(t)}));var t=this.getInput();t.setAttribute("role","textbox"),t.setAttribute("aria-autocomplete","list"),t.setAttribute("aria-controls","id"),t.setAttribute("aria-activedescendant",this.id+"-item-"+this.highlightedIndex)},beforeDestroy:function(){this.$refs.suggestions.$destroy()}},A=E,D=Object(S["a"])(A,r,i,!1,null,null,null);D.options.__file="packages/autocomplete/src/autocomplete.vue";var O=D.exports;O.install=function(e){e.component(O.name,O)};t["default"]=O}})},"58df":function(e,t,n){var r=n("6d8b"),i=n("2306");function o(e,t,n,o){var a=n.axis;if(!a.scale.isBlank()){var s=n.getModel("splitArea"),c=s.getModel("areaStyle"),u=c.get("color"),l=o.coordinateSystem.getRect(),d=a.getTicksCoords({tickModel:s,clamp:!0});if(d.length){var h=u.length,f=e.__splitAreaColors,p=r.createHashMap(),g=0;if(f)for(var m=0;m<d.length;m++){var v=f.get(d[m].tickValue);if(null!=v){g=(v+(h-1)*m)%h;break}}var y=a.toGlobalCoord(d[0].coord),_=c.getAreaStyle();u=r.isArray(u)?u:[u];for(m=1;m<d.length;m++){var b,S,x,w,I=a.toGlobalCoord(d[m].coord);a.isHorizontal()?(b=y,S=l.y,x=I-b,w=l.height,y=b+x):(b=l.x,S=y,x=l.width,w=I-S,y=S+w);var C=d[m-1].tickValue;null!=C&&p.set(C,g),t.add(new i.Rect({anid:null!=C?"area_"+C:null,shape:{x:b,y:S,width:x,height:w},style:r.defaults({fill:u[g]},_),silent:!0})),g=(g+1)%h}e.__splitAreaColors=p}}}function a(e){e.__splitAreaColors=null}t.rectCoordAxisBuildSplitArea=o,t.rectCoordAxisHandleRemove=a},5924:function(e,t,n){"use strict";t.__esModule=!0,t.isInContainer=t.getScrollContainer=t.isScroll=t.getStyle=t.once=t.off=t.on=void 0;var r="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};t.hasClass=g,t.addClass=m,t.removeClass=v,t.setStyle=_;var i=n("2b0e"),o=a(i);function a(e){return e&&e.__esModule?e:{default:e}}var s=o.default.prototype.$isServer,c=/([\:\-\_]+(.))/g,u=/^moz([A-Z])/,l=s?0:Number(document.documentMode),d=function(e){return(e||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")},h=function(e){return e.replace(c,(function(e,t,n,r){return r?n.toUpperCase():n})).replace(u,"Moz$1")},f=t.on=function(){return!s&&document.addEventListener?function(e,t,n){e&&t&&n&&e.addEventListener(t,n,!1)}:function(e,t,n){e&&t&&n&&e.attachEvent("on"+t,n)}}(),p=t.off=function(){return!s&&document.removeEventListener?function(e,t,n){e&&t&&e.removeEventListener(t,n,!1)}:function(e,t,n){e&&t&&e.detachEvent("on"+t,n)}}();t.once=function(e,t,n){var r=function r(){n&&n.apply(this,arguments),p(e,t,r)};f(e,t,r)};function g(e,t){if(!e||!t)return!1;if(-1!==t.indexOf(" "))throw new Error("className should not contain space.");return e.classList?e.classList.contains(t):(" "+e.className+" ").indexOf(" "+t+" ")>-1}function m(e,t){if(e){for(var n=e.className,r=(t||"").split(" "),i=0,o=r.length;i<o;i++){var a=r[i];a&&(e.classList?e.classList.add(a):g(e,a)||(n+=" "+a))}e.classList||e.setAttribute("class",n)}}function v(e,t){if(e&&t){for(var n=t.split(" "),r=" "+e.className+" ",i=0,o=n.length;i<o;i++){var a=n[i];a&&(e.classList?e.classList.remove(a):g(e,a)&&(r=r.replace(" "+a+" "," ")))}e.classList||e.setAttribute("class",d(r))}}var y=t.getStyle=l<9?function(e,t){if(!s){if(!e||!t)return null;t=h(t),"float"===t&&(t="styleFloat");try{switch(t){case"opacity":try{return e.filters.item("alpha").opacity/100}catch(n){return 1}default:return e.style[t]||e.currentStyle?e.currentStyle[t]:null}}catch(n){return e.style[t]}}}:function(e,t){if(!s){if(!e||!t)return null;t=h(t),"float"===t&&(t="cssFloat");try{var n=document.defaultView.getComputedStyle(e,"");return e.style[t]||n?n[t]:null}catch(r){return e.style[t]}}};function _(e,t,n){if(e&&t)if("object"===("undefined"===typeof t?"undefined":r(t)))for(var i in t)t.hasOwnProperty(i)&&_(e,i,t[i]);else t=h(t),"opacity"===t&&l<9?e.style.filter=isNaN(n)?"":"alpha(opacity="+100*n+")":e.style[t]=n}var b=t.isScroll=function(e,t){if(!s){var n=null!==t&&void 0!==t,r=y(e,n?t?"overflow-y":"overflow-x":"overflow");return r.match(/(scroll|auto|overlay)/)}};t.getScrollContainer=function(e,t){if(!s){var n=e;while(n){if([window,document,document.documentElement].includes(n))return window;if(b(n,t))return n;n=n.parentNode}return n}},t.isInContainer=function(e,t){if(s||!e||!t)return!1;var n=e.getBoundingClientRect(),r=void 0;return r=[window,document,document.documentElement,null,void 0].includes(t)?{top:0,right:window.innerWidth,bottom:window.innerHeight,left:0}:t.getBoundingClientRect(),n.top<r.bottom&&n.bottom>r.top&&n.right>r.left&&n.left<r.right}},5926:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){var t=+e;return t!==t||0===t?0:(t>0?r:n)(t)}},"597f":function(e,t){e.exports=function(e,t,n,r){var i,o=0;function a(){var a=this,s=Number(new Date)-o,c=arguments;function u(){o=Number(new Date),n.apply(a,c)}function l(){i=void 0}r&&!i&&u(),i&&clearTimeout(i),void 0===r&&s>e?u():!0!==t&&(i=setTimeout(r?l:u,void 0===r?e-s:e))}return"boolean"!==typeof t&&(r=n,n=t,t=void 0),a}},"59ed":function(e,t,n){var r=n("da84"),i=n("1626"),o=n("0d51"),a=r.TypeError;e.exports=function(e){if(i(e))return e;throw a(o(e)+" is not a function")}},"5a34":function(e,t,n){var r=n("da84"),i=n("44e7"),o=r.TypeError;e.exports=function(e){if(i(e))throw o("The method doesn't accept regular expressions");return e}},"5a43":function(e,t){function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},"5aa9":function(e,t,n){var r=n("4e08"),i=(r.__DEV__,n("6d8b")),o=i.isObject,a=i.each,s=i.map,c=i.indexOf,u=(i.retrieve,n("f934")),l=u.getLayoutRect,d=n("697e"),h=d.createScaleByModel,f=d.ifAxisCrossZero,p=d.niceScaleExtent,g=d.estimateLabelUnionRect,m=n("cbe9"),v=n("ec02"),y=n("2039"),_=n("ee1a"),b=_.getStackedDimension;function S(e,t,n){return e.getCoordSysModel()===t}function x(e,t,n){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(e,t,n),this.model=e}n("8ed2");var w=x.prototype;function I(e,t,n,r){n.getAxesOnZeroOf=function(){return i?[i]:[]};var i,o=e[t],a=n.model,s=a.get("axisLine.onZero"),c=a.get("axisLine.onZeroAxisIndex");if(s){if(null!=c)C(o[c])&&(i=o[c]);else for(var u in o)if(o.hasOwnProperty(u)&&C(o[u])&&!r[l(o[u])]){i=o[u];break}i&&(r[l(i)]=!0)}function l(e){return e.dim+"_"+e.index}}function C(e){return e&&"category"!==e.type&&"time"!==e.type&&f(e)}function M(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord="x"===e.dim?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord="x"===e.dim?function(e){return e-t}:function(e){return r-e+t}}w.type="grid",w.axisPointerEnabled=!0,w.getRect=function(){return this._rect},w.update=function(e,t){var n=this._axesMap;this._updateScale(e,this.model),a(n.x,(function(e){p(e.scale,e.model)})),a(n.y,(function(e){p(e.scale,e.model)}));var r={};a(n.x,(function(e){I(n,"y",e,r)})),a(n.y,(function(e){I(n,"x",e,r)})),this.resize(this.model,t)},w.resize=function(e,t,n){var r=l(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()});this._rect=r;var i=this._axesList;function o(){a(i,(function(e){var t=e.isHorizontal(),n=t?[0,r.width]:[0,r.height],i=e.inverse?1:0;e.setExtent(n[i],n[1-i]),M(e,t?r.x:r.y)}))}o(),!n&&e.get("containLabel")&&(a(i,(function(e){if(!e.model.get("axisLabel.inside")){var t=g(e);if(t){var n=e.isHorizontal()?"height":"width",i=e.model.get("axisLabel.margin");r[n]-=t[n]+i,"top"===e.position?r.y+=t.height+i:"left"===e.position&&(r.x+=t.width+i)}}})),o())},w.getAxis=function(e,t){var n=this._axesMap[e];if(null!=n){if(null==t)for(var r in n)if(n.hasOwnProperty(r))return n[r];return n[t]}},w.getAxes=function(){return this._axesList.slice()},w.getCartesian=function(e,t){if(null!=e&&null!=t){var n="x"+e+"y"+t;return this._coordsMap[n]}o(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var r=0,i=this._coordsList;r<i.length;r++)if(i[r].getAxis("x").index===e||i[r].getAxis("y").index===t)return i[r]},w.getCartesians=function(){return this._coordsList.slice()},w.convertToPixel=function(e,t,n){var r=this._findConvertTarget(e,t);return r.cartesian?r.cartesian.dataToPoint(n):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(n)):null},w.convertFromPixel=function(e,t,n){var r=this._findConvertTarget(e,t);return r.cartesian?r.cartesian.pointToData(n):r.axis?r.axis.coordToData(r.axis.toLocalCoord(n)):null},w._findConvertTarget=function(e,t){var n,r,i=t.seriesModel,o=t.xAxisModel||i&&i.getReferringComponents("xAxis")[0],a=t.yAxisModel||i&&i.getReferringComponents("yAxis")[0],s=t.gridModel,u=this._coordsList;if(i)n=i.coordinateSystem,c(u,n)<0&&(n=null);else if(o&&a)n=this.getCartesian(o.componentIndex,a.componentIndex);else if(o)r=this.getAxis("x",o.componentIndex);else if(a)r=this.getAxis("y",a.componentIndex);else if(s){var l=s.coordinateSystem;l===this&&(n=this._coordsList[0])}return{cartesian:n,axis:r}},w.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},w._initCartesian=function(e,t,n){var r={left:!1,right:!1,top:!1,bottom:!1},i={x:{},y:{}},o={x:0,y:0};if(t.eachComponent("xAxis",s("x"),this),t.eachComponent("yAxis",s("y"),this),!o.x||!o.y)return this._axesMap={},void(this._axesList=[]);function s(n){return function(a,s){if(S(a,e,t)){var c=a.get("position");"x"===n?"top"!==c&&"bottom"!==c&&(c=r.bottom?"top":"bottom"):"left"!==c&&"right"!==c&&(c=r.left?"right":"left"),r[c]=!0;var u=new v(n,h(a),[0,0],a.get("type"),c),l="category"===u.type;u.onBand=l&&a.get("boundaryGap"),u.inverse=a.get("inverse"),a.axis=u,u.model=a,u.grid=this,u.index=s,this._axesList.push(u),i[n][s]=u,o[n]++}}}this._axesMap=i,a(i.x,(function(t,n){a(i.y,(function(r,i){var o="x"+n+"y"+i,a=new m(o);a.grid=this,a.model=e,this._coordsMap[o]=a,this._coordsList.push(a),a.addAxis(t),a.addAxis(r)}),this)}),this)},w._updateScale=function(e,t){function n(e,t,n){a(e.mapDimension(t.dim,!0),(function(n){t.scale.unionExtentFromData(e,b(e,n))}))}a(this._axesList,(function(e){e.scale.setExtent(1/0,-1/0)})),e.eachSeries((function(r){if(E(r)){var i=k(r,e),o=i[0],a=i[1];if(!S(o,t,e)||!S(a,t,e))return;var s=this.getCartesian(o.componentIndex,a.componentIndex),c=r.getData(),u=s.getAxis("x"),l=s.getAxis("y");"list"===c.type&&(n(c,u,r),n(c,l,r))}}),this)},w.getTooltipAxes=function(e){var t=[],n=[];return a(this.getCartesians(),(function(r){var i=null!=e&&"auto"!==e?r.getAxis(e):r.getBaseAxis(),o=r.getOtherAxis(i);c(t,i)<0&&t.push(i),c(n,o)<0&&n.push(o)})),{baseAxes:t,otherAxes:n}};var T=["xAxis","yAxis"];function k(e,t){return s(T,(function(t){var n=e.getReferringComponents(t)[0];return n}))}function E(e){return"cartesian2d"===e.get("coordinateSystem")}x.create=function(e,t){var n=[];return e.eachComponent("grid",(function(r,i){var o=new x(r,e,t);o.name="grid_"+i,o.resize(r,t,!0),r.coordinateSystem=o,n.push(o)})),e.eachSeries((function(t){if(E(t)){var n=k(t,e),r=n[0],i=n[1],o=r.getCoordSysModel(),a=o.coordinateSystem;t.coordinateSystem=a.getCartesian(r.componentIndex,i.componentIndex)}})),n},x.dimensions=x.prototype.dimensions=m.prototype.dimensions,y.register("cartesian2d",x);var A=x;e.exports=A},"5b69":function(e,t,n){var r=n("2306"),i=n("3eba"),o=n("6d8b"),a=["itemStyle","opacity"],s=["emphasis","itemStyle","opacity"],c=["lineStyle","opacity"],u=["emphasis","lineStyle","opacity"];function l(e,t){return e.getVisual("opacity")||e.getModel().get(t)}function d(e,t,n){var r=e.getGraphicEl(),i=l(e,t);null!=n&&(null==i&&(i=1),i*=n),r.downplay&&r.downplay(),r.traverse((function(e){"group"!==e.type&&e.setStyle("opacity",i)}))}function h(e,t){var n=l(e,t),r=e.getGraphicEl();r.traverse((function(e){"group"!==e.type&&e.setStyle("opacity",n)})),r.highlight&&r.highlight()}var f=r.extendShape({shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,cpx2:0,cpy2:0,extent:0,orient:""},buildPath:function(e,t){var n=t.extent;e.moveTo(t.x1,t.y1),e.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),"vertical"===t.orient?(e.lineTo(t.x2+n,t.y2),e.bezierCurveTo(t.cpx2+n,t.cpy2,t.cpx1+n,t.cpy1,t.x1+n,t.y1)):(e.lineTo(t.x2,t.y2+n),e.bezierCurveTo(t.cpx2,t.cpy2+n,t.cpx1,t.cpy1+n,t.x1,t.y1+n)),e.closePath()},highlight:function(){this.trigger("emphasis")},downplay:function(){this.trigger("normal")}}),p=i.extendChartView({type:"sankey",_model:null,_focusAdjacencyDisabled:!1,render:function(e,t,n){var i=this,o=e.getGraph(),a=this.group,s=e.layoutInfo,c=s.width,u=s.height,l=e.getData(),d=e.getData("edge"),h=e.get("orient");this._model=e,a.removeAll(),a.attr("position",[s.x,s.y]),o.eachEdge((function(t){var n=new f;n.dataIndex=t.dataIndex,n.seriesIndex=e.seriesIndex,n.dataType="edge";var i,o,s,l,p,g,m,v,y=t.getModel("lineStyle"),_=y.get("curveness"),b=t.node1.getLayout(),S=t.node1.getModel(),x=S.get("localX"),w=S.get("localY"),I=t.node2.getLayout(),C=t.node2.getModel(),M=C.get("localX"),T=C.get("localY"),k=t.getLayout();switch(n.shape.extent=Math.max(1,k.dy),n.shape.orient=h,"vertical"===h?(i=(null!=x?x*c:b.x)+k.sy,o=(null!=w?w*u:b.y)+b.dy,s=(null!=M?M*c:I.x)+k.ty,l=null!=T?T*u:I.y,p=i,g=o*(1-_)+l*_,m=s,v=o*_+l*(1-_)):(i=(null!=x?x*c:b.x)+b.dx,o=(null!=w?w*u:b.y)+k.sy,s=null!=M?M*c:I.x,l=(null!=T?T*u:I.y)+k.ty,p=i*(1-_)+s*_,g=o,m=i*_+s*(1-_),v=l),n.setShape({x1:i,y1:o,x2:s,y2:l,cpx1:p,cpy1:g,cpx2:m,cpy2:v}),n.setStyle(y.getItemStyle()),n.style.fill){case"source":n.style.fill=t.node1.getVisual("color");break;case"target":n.style.fill=t.node2.getVisual("color");break}r.setHoverStyle(n,t.getModel("emphasis.lineStyle").getItemStyle()),a.add(n),d.setItemGraphicEl(t.dataIndex,n)})),o.eachNode((function(t){var n=t.getLayout(),i=t.getModel(),o=i.get("localX"),s=i.get("localY"),d=i.getModel("label"),h=i.getModel("emphasis.label"),f=new r.Rect({shape:{x:null!=o?o*c:n.x,y:null!=s?s*u:n.y,width:n.dx,height:n.dy},style:i.getModel("itemStyle").getItemStyle()}),p=t.getModel("emphasis.itemStyle").getItemStyle();r.setLabelStyle(f.style,p,d,h,{labelFetcher:e,labelDataIndex:t.dataIndex,defaultText:t.id,isRectText:!0}),f.setStyle("fill",t.getVisual("color")),r.setHoverStyle(f,p),a.add(f),l.setItemGraphicEl(t.dataIndex,f),f.dataType="node"})),l.eachItemGraphicEl((function(t,r){var o=l.getItemModel(r);o.get("draggable")&&(t.drift=function(t,o){i._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=o,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:l.getRawIndex(r),localX:this.shape.x/c,localY:this.shape.y/u})},t.ondragend=function(){i._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move"),t.highlight=function(){this.trigger("emphasis")},t.downplay=function(){this.trigger("normal")},t.focusNodeAdjHandler&&t.off("mouseover",t.focusNodeAdjHandler),t.unfocusNodeAdjHandler&&t.off("mouseout",t.unfocusNodeAdjHandler),o.get("focusNodeAdjacency")&&(t.on("mouseover",t.focusNodeAdjHandler=function(){i._focusAdjacencyDisabled||(i._clearTimer(),n.dispatchAction({type:"focusNodeAdjacency",seriesId:e.id,dataIndex:t.dataIndex}))}),t.on("mouseout",t.unfocusNodeAdjHandler=function(){i._focusAdjacencyDisabled||i._dispatchUnfocus(n)}))})),d.eachItemGraphicEl((function(t,r){var o=d.getItemModel(r);t.focusNodeAdjHandler&&t.off("mouseover",t.focusNodeAdjHandler),t.unfocusNodeAdjHandler&&t.off("mouseout",t.unfocusNodeAdjHandler),o.get("focusNodeAdjacency")&&(t.on("mouseover",t.focusNodeAdjHandler=function(){i._focusAdjacencyDisabled||(i._clearTimer(),n.dispatchAction({type:"focusNodeAdjacency",seriesId:e.id,edgeDataIndex:t.dataIndex}))}),t.on("mouseout",t.unfocusNodeAdjHandler=function(){i._focusAdjacencyDisabled||i._dispatchUnfocus(n)}))})),!this._data&&e.get("animation")&&a.setClipPath(g(a.getBoundingRect(),e,(function(){a.removeClipPath()}))),this._data=e.getData()},dispose:function(){this._clearTimer()},_dispatchUnfocus:function(e){var t=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout((function(){t._unfocusDelayTimer=null,e.dispatchAction({type:"unfocusNodeAdjacency",seriesId:t._model.id})}),500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(e,t,n,r){var i=e.getData(),l=i.graph,f=r.dataIndex,p=i.getItemModel(f),g=r.edgeDataIndex;if(null!=f||null!=g){var m=l.getNodeByIndex(f),v=l.getEdgeByIndex(g);if(l.eachNode((function(e){d(e,a,.1)})),l.eachEdge((function(e){d(e,c,.1)})),m){h(m,s);var y=p.get("focusNodeAdjacency");"outEdges"===y?o.each(m.outEdges,(function(e){e.dataIndex<0||(h(e,u),h(e.node2,s))})):"inEdges"===y?o.each(m.inEdges,(function(e){e.dataIndex<0||(h(e,u),h(e.node1,s))})):"allEdges"===y&&o.each(m.edges,(function(e){e.dataIndex<0||(h(e,u),e.node1!==m&&h(e.node1,s),e.node2!==m&&h(e.node2,s))}))}v&&(h(v,u),h(v.node1,s),h(v.node2,s))}},unfocusNodeAdjacency:function(e,t,n,r){var i=e.getGraph();i.eachNode((function(e){d(e,a)})),i.eachEdge((function(e){d(e,c)}))}});function g(e,t,n){var i=new r.Rect({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return r.initProps(i,{shape:{width:e.width+20}},t,n),i}e.exports=p},"5b87":function(e,t,n){var r=n("4e08"),i=(r.__DEV__,n("6d8b")),o=i.each,a=i.createHashMap,s=n("ec34"),c=n("4c86"),u=n("c92f"),l=n("9850"),d={geoJSON:c,svg:u},h={load:function(e,t,n){var r,i=[],s=a(),c=a(),u=p(e);return o(u,(function(a){var u=d[a.type].load(e,a,n);o(u.regions,(function(e){var n=e.name;t&&t.hasOwnProperty(n)&&(e=e.cloneShallow(n=t[n])),i.push(e),s.set(n,e),c.set(n,e.center)}));var l=u.boundingRect;l&&(r?r.union(l):r=l.clone())})),{regions:i,regionsMap:s,nameCoordMap:c,boundingRect:r||new l(0,0,0,0)}},makeGraphic:f("makeGraphic"),removeGraphic:f("removeGraphic")};function f(e){return function(t,n){var r=p(t),i=[];return o(r,(function(r){var o=d[r.type][e];o&&i.push(o(t,r,n))})),i}}function p(e){var t=s.retrieveMap(e)||[];return t}e.exports=h},"5c6c":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"5cc6":function(e,t,n){var r=n("74e8");r("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},"5cce":function(e,t){e.exports={version:"0.26.0"}},"5ce2":function(e,t,n){n("3970"),n("480e")},"5e07":function(e,t,n){},"5e68":function(e,t,n){var r=n("6d8b"),i=n("2cf4"),o=i.devicePixelRatio,a=n("2b61"),s=n("dc2f");function c(){return!1}function u(e,t,n){var i=r.createCanvas(),o=t.getWidth(),a=t.getHeight(),s=i.style;return s&&(s.position="absolute",s.left=0,s.top=0,s.width=o+"px",s.height=a+"px",i.setAttribute("data-zr-dom-id",e)),i.width=o*n,i.height=a*n,i}var l=function(e,t,n){var i;n=n||o,"string"===typeof e?i=u(e,t,n):r.isObject(e)&&(i=e,e=i.id),this.id=e,this.dom=i;var a=i.style;a&&(i.onselectstart=c,a["-webkit-user-select"]="none",a["user-select"]="none",a["-webkit-touch-callout"]="none",a["-webkit-tap-highlight-color"]="rgba(0,0,0,0)",a["padding"]=0,a["margin"]=0,a["border-width"]=0),this.domBack=null,this.ctxBack=null,this.painter=t,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=n};l.prototype={constructor:l,__dirty:!0,__used:!1,__drawIndex:0,__startIndex:0,__endIndex:0,incremental:!1,getElementCount:function(){return this.__endIndex-this.__startIndex},initContext:function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},createBackBuffer:function(){var e=this.dpr;this.domBack=u("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),1!==e&&this.ctxBack.scale(e,e)},resize:function(e,t){var n=this.dpr,r=this.dom,i=r.style,o=this.domBack;i&&(i.width=e+"px",i.height=t+"px"),r.width=e*n,r.height=t*n,o&&(o.width=e*n,o.height=t*n,1!==n&&this.ctxBack.scale(n,n))},clear:function(e,t){var n,r=this.dom,i=this.ctx,o=r.width,c=r.height,u=(t=t||this.clearColor,this.motionBlur&&!e),l=this.lastFrameAlpha,d=this.dpr;(u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(r,0,0,o/d,c/d)),i.clearRect(0,0,o,c),t&&"transparent"!==t)&&(t.colorStops?(n=t.__canvasGradient||a.getGradient(i,t,{x:0,y:0,width:o,height:c}),t.__canvasGradient=n):t.image&&(n=s.prototype.getCanvasPattern.call(t,i)),i.save(),i.fillStyle=n||t,i.fillRect(0,0,o,c),i.restore());if(u){var h=this.domBack;i.save(),i.globalAlpha=l,i.drawImage(h,0,0,o,c),i.restore()}}};var d=l;e.exports=d},"5e76":function(e,t,n){var r=n("d51b"),i=new r(50);function o(e){if("string"===typeof e){var t=i.get(e);return t&&t.image}return e}function a(e,t,n,r,o){if(e){if("string"===typeof e){if(t&&t.__zrImageSrc===e||!n)return t;var a=i.get(e),u={hostEl:n,cb:r,cbPayload:o};return a?(t=a.image,!c(t)&&a.pending.push(u)):(t=new Image,t.onload=t.onerror=s,i.put(e,t.__cachedImgObj={image:t,pending:[u]}),t.src=t.__zrImageSrc=e),t}return e}return t}function s(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function c(e){return e&&e.width&&e.height}t.findExistImage=o,t.createOrUpdateImage=a,t.isImageReady=c},"5e77":function(e,t,n){var r=n("83ab"),i=n("1a2d"),o=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=i(o,"name"),c=s&&"something"===function(){}.name,u=s&&(!r||r&&a(o,"name").configurable);e.exports={EXISTS:s,PROPER:c,CONFIGURABLE:u}},"5e97":function(e,t,n){var r=n("4e08"),i=(r.__DEV__,n("3eba")),o=n("6d8b"),a=n("a15a"),s=a.createSymbol,c=n("2306"),u=n("7919"),l=u.makeBackground,d=n("f934"),h=o.curry,f=o.each,p=c.Group,g=i.extendComponentView({type:"legend.plain",newlineDisabled:!1,init:function(){this.group.add(this._contentGroup=new p),this._backgroundEl,this.group.add(this._selectorGroup=new p),this._isFirstRender=!0},getContentGroup:function(){return this._contentGroup},getSelectorGroup:function(){return this._selectorGroup},render:function(e,t,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get("show",!0)){var i=e.get("align"),a=e.get("orient");i&&"auto"!==i||(i="right"===e.get("left")&&"vertical"===a?"right":"left");var s=e.get("selector",!0),c=e.get("selectorPosition",!0);!s||c&&"auto"!==c||(c="horizontal"===a?"end":"start"),this.renderInner(i,e,t,n,s,a,c);var u=e.getBoxLayoutParams(),h={width:n.getWidth(),height:n.getHeight()},f=e.get("padding"),p=d.getLayoutRect(u,h,f),g=this.layoutInner(e,i,p,r,s,c),m=d.getLayoutRect(o.defaults({width:g.width,height:g.height},u),h,f);this.group.attr("position",[m.x-g.x,m.y-g.y]),this.group.add(this._backgroundEl=l(g,e))}},resetInner:function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},renderInner:function(e,t,n,r,i,a,s){var c=this.getContentGroup(),u=o.createHashMap(),l=t.get("selectedMode"),d=[];n.eachRawSeries((function(e){!e.get("legendHoverLink")&&d.push(e.id)})),f(t.getData(),(function(i,o){var a=i.get("name");if(this.newlineDisabled||""!==a&&"\n"!==a){var s=n.getSeriesByName(a)[0];if(!u.get(a))if(s){var f=s.getData(),g=f.getVisual("color"),m=f.getVisual("borderColor");"function"===typeof g&&(g=g(s.getDataParams(0))),"function"===typeof m&&(m=m(s.getDataParams(0)));var b=f.getVisual("legendSymbol")||"roundRect",S=f.getVisual("symbol"),x=this._createItem(a,o,i,t,b,S,e,g,m,l);x.on("click",h(v,a,null,r,d)).on("mouseover",h(y,s.name,null,r,d)).on("mouseout",h(_,s.name,null,r,d)),u.set(a,!0)}else n.eachRawSeries((function(n){if(!u.get(a)&&n.legendVisualProvider){var s=n.legendVisualProvider;if(!s.containName(a))return;var c=s.indexOfName(a),f=s.getItemVisual(c,"color"),p=s.getItemVisual(c,"borderColor"),g="roundRect",m=this._createItem(a,o,i,t,g,null,e,f,p,l);m.on("click",h(v,null,a,r,d)).on("mouseover",h(y,null,a,r,d)).on("mouseout",h(_,null,a,r,d)),u.set(a,!0)}}),this)}else c.add(new p({newline:!0}))}),this),i&&this._createSelector(i,t,r,a,s)},_createSelector:function(e,t,n,r,i){var o=this.getSelectorGroup();function a(e){var r=e.type,i=new c.Text({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===r?"legendAllSelect":"legendInverseSelect"})}});o.add(i);var a=t.getModel("selectorLabel"),s=t.getModel("emphasis.selectorLabel");c.setLabelStyle(i.style,i.hoverStyle={},a,s,{defaultText:e.title,isRectText:!1}),c.setHoverStyle(i)}f(e,(function(e){a(e)}))},_createItem:function(e,t,n,r,i,a,u,l,d,h){var f=r.get("itemWidth"),g=r.get("itemHeight"),v=r.get("inactiveColor"),y=r.get("inactiveBorderColor"),_=r.get("symbolKeepAspect"),b=r.getModel("itemStyle"),S=r.isSelected(e),x=new p,w=n.getModel("textStyle"),I=n.get("icon"),C=n.getModel("tooltip"),M=C.parentModel;i=I||i;var T=s(i,0,0,f,g,S?l:v,null==_||_);if(x.add(m(T,i,b,d,y,S)),!I&&a&&(a!==i||"none"===a)){var k=.8*g;"none"===a&&(a="circle");var E=s(a,(f-k)/2,(g-k)/2,k,k,S?l:v,null==_||_);x.add(m(E,a,b,d,y,S))}var A="left"===u?f+5:-5,D=u,O=r.get("formatter"),R=e;"string"===typeof O&&O?R=O.replace("{name}",null!=e?e:""):"function"===typeof O&&(R=O(e)),x.add(new c.Text({style:c.setTextStyle({},w,{text:R,x:A,y:g/2,textFill:S?w.getTextColor():v,textAlign:D,textVerticalAlign:"middle"})}));var L=new c.Rect({shape:x.getBoundingRect(),invisible:!0,tooltip:C.get("show")?o.extend({content:e,formatter:M.get("formatter",!0)||function(){return e},formatterParams:{componentType:"legend",legendIndex:r.componentIndex,name:e,$vars:["name"]}},C.option):null});return x.add(L),x.eachChild((function(e){e.silent=!0})),L.silent=!h,this.getContentGroup().add(x),c.setHoverStyle(x),x.__legendDataIndex=t,x},layoutInner:function(e,t,n,r,i,o){var a=this.getContentGroup(),s=this.getSelectorGroup();d.box(e.get("orient"),a,e.get("itemGap"),n.width,n.height);var c=a.getBoundingRect(),u=[-c.x,-c.y];if(i){d.box("horizontal",s,e.get("selectorItemGap",!0));var l=s.getBoundingRect(),h=[-l.x,-l.y],f=e.get("selectorButtonGap",!0),p=e.getOrient().index,g=0===p?"width":"height",m=0===p?"height":"width",v=0===p?"y":"x";"end"===o?h[p]+=c[g]+f:u[p]+=l[g]+f,h[1-p]+=c[m]/2-l[m]/2,s.attr("position",h),a.attr("position",u);var y={x:0,y:0};return y[g]=c[g]+f+l[g],y[m]=Math.max(c[m],l[m]),y[v]=Math.min(0,l[v]+h[1-p]),y}return a.attr("position",u),this.group.getBoundingRect()},remove:function(){this.getContentGroup().removeAll(),this._isFirstRender=!0}});function m(e,t,n,r,i,o){var a;return"line"!==t&&t.indexOf("empty")<0?(a=n.getItemStyle(),e.style.stroke=r,o||(a.stroke=i)):a=n.getItemStyle(["borderWidth","borderColor"]),e.setStyle(a)}function v(e,t,n,r){_(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:null!=e?e:t}),y(e,t,n,r)}function y(e,t,n,r){var i=n.getZr().storage.getDisplayList()[0];i&&i.useHoverLayer||n.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:r})}function _(e,t,n,r){var i=n.getZr().storage.getDisplayList()[0];i&&i.useHoverLayer||n.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:r})}e.exports=g},"5f02":function(e,t,n){"use strict";var r=n("c532");e.exports=function(e){return r.isObject(e)&&!0===e.isAxiosError}},"5f14":function(e,t,n){var r=n("6d8b"),i=n("41ef"),o=n("3842"),a=o.linearMap,s=r.each,c=r.isObject,u=-1,l=function(e){var t=e.mappingMethod,n=e.type,i=this.option=r.clone(e);this.type=n,this.mappingMethod=t,this._normalizeData=w[t];var o=d[n];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._doMap=o._doMap[t],"piecewise"===t?(p(i),h(i)):"category"===t?i.categories?f(i):p(i,!0):(r.assert("linear"!==t||i.dataExtent),p(i))};l.prototype={constructor:l,mapValueToVisual:function(e){var t=this._normalizeData(e);return this._doMap(t,e)},getNormalizer:function(){return r.bind(this._normalizeData,this)}};var d=l.visualHandlers={color:{applyVisual:v("color"),getColorMapper:function(){var e=this.option;return r.bind("category"===e.mappingMethod?function(e,t){return!t&&(e=this._normalizeData(e)),y.call(this,e)}:function(t,n,r){var o=!!r;return!n&&(t=this._normalizeData(t)),r=i.fastLerp(t,e.parsedVisual,r),o?r:i.stringify(r,"rgba")},this)},_doMap:{linear:function(e){return i.stringify(i.fastLerp(e,this.option.parsedVisual),"rgba")},category:y,piecewise:function(e,t){var n=S.call(this,t);return null==n&&(n=i.stringify(i.fastLerp(e,this.option.parsedVisual),"rgba")),n},fixed:_}},colorHue:g((function(e,t){return i.modifyHSL(e,t)})),colorSaturation:g((function(e,t){return i.modifyHSL(e,null,t)})),colorLightness:g((function(e,t){return i.modifyHSL(e,null,null,t)})),colorAlpha:g((function(e,t){return i.modifyAlpha(e,t)})),opacity:{applyVisual:v("opacity"),_doMap:b([0,1])},liftZ:{applyVisual:v("liftZ"),_doMap:{linear:_,category:_,piecewise:_,fixed:_}},symbol:{applyVisual:function(e,t,n){var i=this.mapValueToVisual(e);if(r.isString(i))n("symbol",i);else if(c(i))for(var o in i)i.hasOwnProperty(o)&&n(o,i[o])},_doMap:{linear:m,category:y,piecewise:function(e,t){var n=S.call(this,t);return null==n&&(n=m.call(this,e)),n},fixed:_}},symbolSize:{applyVisual:v("symbolSize"),_doMap:b([0,1])}};function h(e){var t=e.pieceList;e.hasSpecialVisual=!1,r.each(t,(function(t,n){t.originIndex=n,null!=t.visual&&(e.hasSpecialVisual=!0)}))}function f(e){var t=e.categories,n=e.visual,i=e.categoryMap={};if(s(t,(function(e,t){i[e]=t})),!r.isArray(n)){var o=[];r.isObject(n)?s(n,(function(e,t){var n=i[t];o[null!=n?n:u]=e})):o[u]=n,n=x(e,o)}for(var a=t.length-1;a>=0;a--)null==n[a]&&(delete i[t[a]],t.pop())}function p(e,t){var n=e.visual,i=[];r.isObject(n)?s(n,(function(e){i.push(e)})):null!=n&&i.push(n);var o={color:1,symbol:1};t||1!==i.length||o.hasOwnProperty(e.type)||(i[1]=i[0]),x(e,i)}function g(e){return{applyVisual:function(t,n,r){t=this.mapValueToVisual(t),r("color",e(n("color"),t))},_doMap:b([0,1])}}function m(e){var t=this.option.visual;return t[Math.round(a(e,[0,1],[0,t.length-1],!0))]||{}}function v(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function y(e){var t=this.option.visual;return t[this.option.loop&&e!==u?e%t.length:e]}function _(){return this.option.visual[0]}function b(e){return{linear:function(t){return a(t,e,this.option.visual,!0)},category:y,piecewise:function(t,n){var r=S.call(this,n);return null==r&&(r=a(t,e,this.option.visual,!0)),r},fixed:_}}function S(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=l.findPieceIndex(e,n),i=n[r];if(i&&i.visual)return i.visual[this.type]}}function x(e,t){return e.visual=t,"color"===e.type&&(e.parsedVisual=r.map(t,(function(e){return i.parse(e)}))),t}var w={linear:function(e){return a(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=l.findPieceIndex(e,t,!0);if(null!=n)return a(n,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return null==t?u:t},fixed:r.noop};function I(e,t,n){return e?t<=n:t<n}l.listVisualTypes=function(){var e=[];return r.each(d,(function(t,n){e.push(n)})),e},l.addVisualHandler=function(e,t){d[e]=t},l.isValidType=function(e){return d.hasOwnProperty(e)},l.eachVisual=function(e,t,n){r.isObject(e)?r.each(e,t,n):t.call(n,e)},l.mapVisual=function(e,t,n){var i,o=r.isArray(e)?[]:r.isObject(e)?{}:(i=!0,null);return l.eachVisual(e,(function(e,r){var a=t.call(n,e,r);i?o=a:o[r]=a})),o},l.retrieveVisuals=function(e){var t,n={};return e&&s(d,(function(r,i){e.hasOwnProperty(i)&&(n[i]=e[i],t=!0)})),t?n:null},l.prepareVisualTypes=function(e){if(c(e)){var t=[];s(e,(function(e,n){t.push(n)})),e=t}else{if(!r.isArray(e))return[];e=e.slice()}return e.sort((function(e,t){return"color"===t&&"color"!==e&&0===e.indexOf("color")?1:-1})),e},l.dependsOn=function(e,t){return"color"===t?!(!e||0!==e.indexOf(t)):e===t},l.findPieceIndex=function(e,t,n){for(var r,i=1/0,o=0,a=t.length;o<a;o++){var s=t[o].value;if(null!=s){if(s===e||"string"===typeof s&&s===e+"")return o;n&&d(s,o)}}for(o=0,a=t.length;o<a;o++){var c=t[o],u=c.interval,l=c.close;if(u){if(u[0]===-1/0){if(I(l[1],e,u[1]))return o}else if(u[1]===1/0){if(I(l[0],u[0],e))return o}else if(I(l[0],u[0],e)&&I(l[1],e,u[1]))return o;n&&d(u[0],o),n&&d(u[1],o)}}if(n)return e===1/0?t.length-1:e===-1/0?0:r;function d(t,n){var o=Math.abs(t-e);o<i&&(i=o,r=n)}};var C=l;e.exports=C},"5f96":function(e,t,n){"use strict";var r=n("ebb5"),i=n("e330"),o=r.aTypedArray,a=r.exportTypedArrayMethod,s=i([].join);a("join",(function(e){return s(o(this),e)}))},"605d":function(e,t,n){var r=n("c6b6"),i=n("da84");e.exports="process"==r(i.process)},6062:function(e,t,n){"use strict";var r=n("6d61"),i=n("6566");r("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),i)},6069:function(e,t){e.exports="object"==typeof window},"607d":function(e,t,n){var r=n("1fab");t.Dispatcher=r;var i=n("22d1"),o=n("65ed"),a=o.isCanvasEl,s=o.transformCoordWithViewport,c="undefined"!==typeof window&&!!window.addEventListener,u=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,l=[];function d(e,t,n,r){return n=n||{},r||!i.canvasSupported?h(e,t,n):i.browser.firefox&&null!=t.layerX&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):null!=t.offsetX?(n.zrX=t.offsetX,n.zrY=t.offsetY):h(e,t,n),n}function h(e,t,n){if(i.domSupported&&e.getBoundingClientRect){var r=t.clientX,o=t.clientY;if(a(e)){var c=e.getBoundingClientRect();return n.zrX=r-c.left,void(n.zrY=o-c.top)}if(s(l,e,r,o))return n.zrX=l[0],void(n.zrY=l[1])}n.zrX=n.zrY=0}function f(e){return e||window.event}function p(e,t,n){if(t=f(t),null!=t.zrX)return t;var r=t.type,i=r&&r.indexOf("touch")>=0;if(i){var o="touchend"!==r?t.targetTouches[0]:t.changedTouches[0];o&&d(e,o,t,n)}else d(e,t,t,n),t.zrDelta=t.wheelDelta?t.wheelDelta/120:-(t.detail||0)/3;var a=t.button;return null==t.which&&void 0!==a&&u.test(t.type)&&(t.which=1&a?1:2&a?3:4&a?2:0),t}function g(e,t,n,r){c?e.addEventListener(t,n,r):e.attachEvent("on"+t,n)}function m(e,t,n,r){c?e.removeEventListener(t,n,r):e.detachEvent("on"+t,n)}var v=c?function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0}:function(e){e.returnValue=!1,e.cancelBubble=!0};function y(e){return 2===e.which||3===e.which}function _(e){return e.which>1}t.clientToLocal=d,t.getNativeEvent=f,t.normalizeEvent=p,t.addEventListener=g,t.removeEventListener=m,t.stop=v,t.isMiddleOrRightButtonOnMouseUpDown=y,t.notLeftMouse=_},"60bd":function(e,t,n){"use strict";var r=n("da84"),i=n("d039"),o=n("e330"),a=n("ebb5"),s=n("e260"),c=n("b622"),u=c("iterator"),l=r.Uint8Array,d=o(s.values),h=o(s.keys),f=o(s.entries),p=a.aTypedArray,g=a.exportTypedArrayMethod,m=l&&l.prototype,v=!i((function(){m[u].call([1])})),y=!!m&&m.values&&m[u]===m.values&&"values"===m.values.name,_=function(){return d(p(this))};g("entries",(function(){return f(p(this))}),v),g("keys",(function(){return h(p(this))}),v),g("values",_,v||!y,{name:"values"}),g(u,_,v||!y,{name:"values"})},"60d7":function(e,t,n){var r=n("2306"),i=n("e887"),o=.3,a=i.extend({type:"parallel",init:function(){this._dataGroup=new r.Group,this.group.add(this._dataGroup),this._data,this._initialized},render:function(e,t,n,i){var o=this._dataGroup,a=e.getData(),h=this._data,f=e.coordinateSystem,p=f.dimensions,g=l(e);function m(e){var t=u(a,o,e,p,f);d(t,a,e,g)}function v(t,n){var o=h.getItemGraphicEl(n),s=c(a,t,p,f);a.setItemGraphicEl(t,o);var u=i&&!1===i.animation?null:e;r.updateProps(o,{shape:{points:s}},u,t),d(o,a,t,g)}function y(e){var t=h.getItemGraphicEl(e);o.remove(t)}if(a.diff(h).add(m).update(v).remove(y).execute(),!this._initialized){this._initialized=!0;var _=s(f,e,(function(){setTimeout((function(){o.removeClipPath()}))}));o.setClipPath(_)}this._data=a},incrementalPrepareRender:function(e,t,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},incrementalRender:function(e,t,n){for(var r=t.getData(),i=t.coordinateSystem,o=i.dimensions,a=l(t),s=e.start;s<e.end;s++){var c=u(r,this._dataGroup,s,o,i);c.incremental=!0,d(c,r,s,a)}},dispose:function(){},remove:function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null}});function s(e,t,n){var i=e.model,o=e.getRect(),a=new r.Rect({shape:{x:o.x,y:o.y,width:o.width,height:o.height}}),s="horizontal"===i.get("layout")?"width":"height";return a.setShape(s,0),r.initProps(a,{shape:{width:o.width,height:o.height}},t,n),a}function c(e,t,n,r){for(var i=[],o=0;o<n.length;o++){var a=n[o],s=e.get(e.mapDimension(a),t);h(s,r.getAxis(a).type)||i.push(r.dataToPoint(s,a))}return i}function u(e,t,n,i,o){var a=c(e,n,i,o),s=new r.Polyline({shape:{points:a},silent:!0,z2:10});return t.add(s),e.setItemGraphicEl(n,s),s}function l(e){var t=e.get("smooth",!0);return!0===t&&(t=o),{lineStyle:e.getModel("lineStyle").getLineStyle(),smooth:null!=t?t:o}}function d(e,t,n,r){var i=r.lineStyle;if(t.hasItemOption){var o=t.getItemModel(n).getModel("lineStyle");i=o.getLineStyle()}e.useStyle(i);var a=e.style;a.fill=null,a.stroke=t.getItemVisual(n,"color"),a.opacity=t.getItemVisual(n,"opacity"),r.smooth&&(e.shape.smooth=r.smooth)}function h(e,t){return"category"===t?null==e:null==e||isNaN(e)}var f=a;e.exports=f},"60da":function(e,t,n){"use strict";var r=n("83ab"),i=n("e330"),o=n("c65b"),a=n("d039"),s=n("df75"),c=n("7418"),u=n("d1e7"),l=n("7b0b"),d=n("44ad"),h=Object.assign,f=Object.defineProperty,p=i([].concat);e.exports=!h||a((function(){if(r&&1!==h({b:1},h(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=h({},e)[n]||s(h({},t)).join("")!=i}))?function(e,t){var n=l(e),i=arguments.length,a=1,h=c.f,f=u.f;while(i>a){var g,m=d(arguments[a++]),v=h?p(s(m),h(m)):s(m),y=v.length,_=0;while(y>_)g=v[_++],r&&!o(f,m,g)||(n[g]=m[g])}return n}:h},"60e3":function(e,t,n){var r=n("6d8b"),i={get:function(e,t,n){var i=r.clone((o[e]||{})[t]);return n&&r.isArray(i)?i[i.length-1]:i}},o={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},a=i;e.exports=a},"60f1":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.legendConfig=void 0;var r={show:!0,orient:"horizontal",left:"auto",right:"auto",top:"auto",bottom:"auto",itemGap:10,iconWidth:25,iconHeight:10,selectAble:!0,data:[],textStyle:{fontFamily:"Arial",fontSize:13,fill:"#000"},iconStyle:{},textUnselectedStyle:{fontFamily:"Arial",fontSize:13,fill:"#999"},iconUnselectedStyle:{fill:"#999"},rLevel:20,animationCurve:"easeOutCubic",animationFrame:50};t.legendConfig=r},"60f7":function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.legend=d;var i=r(n("9523")),o=r(n("278c")),a=r(n("7037")),s=n("18ad"),c=n("5557"),u=n("9d85"),l=n("becb");function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.legend;n?(n=(0,l.deepMerge)((0,c.deepClone)(u.legendConfig,!0),n),n=h(n),n=f(n,t,e),n=p(n,e),n=v(n,e),n=[n]):n=[],(0,s.doUpdate)({chart:e,series:n,key:"legendIcon",getGraphConfig:k}),(0,s.doUpdate)({chart:e,series:n,key:"legendText",getGraphConfig:D})}function h(e){var t=e.data;return e.data=t.map((function(e){var t=(0,a["default"])(e);return"string"===t?{name:e}:"object"===t?e:{name:""}})),e}function f(e,t,n){var r=t.series,i=n.legendStatus,o=e.data.filter((function(e){var t=e.name,n=r.find((function(e){var n=e.name;return t===n}));return!!n&&(e.color||(e.color=n.color),e.icon||(e.icon=n.type),e)}));return i&&i.length===e.data.length||(i=new Array(e.data.length).fill(!0)),o.forEach((function(e,t){return e.status=i[t]})),e.data=o,n.legendStatus=i,e}function p(e,t){var n=t.render.ctx,r=e.data,i=e.textStyle,o=e.textUnselectedStyle;return r.forEach((function(e){var t=e.status,r=e.name;e.textWidth=g(n,r,t?i:o)})),e}function g(e,t,n){return e.font=m(n),e.measureText(t).width}function m(e){var t=e.fontFamily,n=e.fontSize;return"".concat(n,"px ").concat(t)}function v(e,t){var n=e.orient;return"vertical"===n?I(e,t):y(e,t),e}function y(e,t){var n=e.iconHeight,r=e.itemGap,i=_(e,t),o=i.map((function(n){return S(n,e,t)})),a=x(e,t),s={textAlign:"left",textBaseline:"middle"};i.forEach((function(e,t){return e.forEach((function(e){var i=e.iconPosition,c=e.textPosition,u=o[t],l=a+t*(r+n);e.iconPosition=w(i,[u,l]),e.textPosition=w(c,[u,l]),e.align=s}))}))}function _(e,t){var n=e.data,r=e.iconWidth,i=t.render.area[0],o=0,a=[[]];return n.forEach((function(t,n){var s=b(o,n,e),c=s+r+5+t.textWidth;c>=i&&(o=n,s=b(o,n,e),a.push([])),t.iconPosition=[s,0],t.textPosition=[s+r+5,0],a.slice(-1)[0].push(t)})),a}function b(e,t,n){var r=n.data,i=n.iconWidth,o=n.itemGap,a=r.slice(e,t);return(0,l.mulAdd)(a.map((function(e){var t=e.textWidth;return t})))+(t-e)*(o+5+i)}function S(e,t,n){var r=t.left,i=t.right,o=t.iconWidth,a=t.itemGap,s=n.render.area[0],c=e.length,u=(0,l.mulAdd)(e.map((function(e){var t=e.textWidth;return t})))+c*(5+o)+(c-1)*a,d=[r,i].findIndex((function(e){return"auto"!==e}));return-1===d?(s-u)/2:0===d?"number"===typeof r?r:parseInt(r)/100*s:("number"!==typeof i&&(i=parseInt(i)/100*s),s-(u+i))}function x(e,t){var n=e.top,r=e.bottom,i=e.iconHeight,o=t.render.area[1],a=[n,r].findIndex((function(e){return"auto"!==e})),s=i/2;if(-1===a){var c=t.gridArea,u=c.y,l=c.h;return u+l+45-s}return 0===a?"number"===typeof n?n-s:parseInt(n)/100*o-s:("number"!==typeof r&&(r=parseInt(r)/100*o),o-r-s)}function w(e,t){var n=(0,o["default"])(e,2),r=n[0],i=n[1],a=(0,o["default"])(t,2),s=a[0],c=a[1];return[r+s,i+c]}function I(e,t){var n=C(e,t),r=(0,o["default"])(n,2),i=r[0],a=r[1],s=M(e,t);T(e,i);var c={textAlign:"left",textBaseline:"middle"};e.data.forEach((function(e){var t=e.textPosition,n=e.iconPosition;e.textPosition=w(t,[a,s]),e.iconPosition=w(n,[a,s]),e.align=c}))}function C(e,t){var n=e.left,r=e.right,i=t.render.area[0],o=[n,r].findIndex((function(e){return"auto"!==e}));if(-1===o)return[!0,i-10];var a=[n,r][o];return"number"!==typeof a&&(a=parseInt(a)/100*i),[Boolean(o),a]}function M(e,t){var n=e.iconHeight,r=e.itemGap,i=e.data,o=e.top,a=e.bottom,s=t.render.area[1],c=i.length,u=c*n+(c-1)*r,l=[o,a].findIndex((function(e){return"auto"!==e}));if(-1===l)return(s-u)/2;var d=[o,a][l];return"number"!==typeof d&&(d=parseInt(d)/100*s),1===l&&(d=s-d-u),d}function T(e,t){var n=e.data,r=e.iconWidth,i=e.iconHeight,o=e.itemGap,a=i/2;n.forEach((function(e,n){var s=e.textWidth,c=(i+o)*n+a,u=t?0-r:0,l=t?u-5-s:r+5;e.iconPosition=[u,c],e.textPosition=[l,c]}))}function k(e,t){var n=e.data,r=e.selectAble,o=e.animationCurve,a=e.animationFrame,s=e.rLevel;return n.map((function(n,c){return(0,i["default"])({name:"line"===n.icon?"lineIcon":"rect",index:s,visible:e.show,hover:r,click:r,animationCurve:o,animationFrame:a,shape:E(e,c),style:A(e,c)},"click",P(e,c,t))}))}function E(e,t){var n=e.data,r=e.iconWidth,i=e.iconHeight,a=(0,o["default"])(n[t].iconPosition,2),s=a[0],c=a[1],u=i/2;return{x:s,y:c-u,w:r,h:i}}function A(e,t){var n=e.data,r=e.iconStyle,i=e.iconUnselectedStyle,o=n[t],a=o.status,s=o.color,c=a?r:i;return(0,l.deepMerge)({fill:s},c)}function D(e,t){var n=e.data,r=e.selectAble,i=e.animationCurve,o=e.animationFrame,a=e.rLevel;return n.map((function(n,s){return{name:"text",index:a,visible:e.show,hover:r,animationCurve:i,animationFrame:o,hoverRect:L(e,s),shape:O(e,s),style:R(e,s),click:P(e,s,t)}}))}function O(e,t){var n=e.data[t],r=n.textPosition,i=n.name;return{content:i,position:r}}function R(e,t){var n=e.textStyle,r=e.textUnselectedStyle,i=e.data[t],o=i.status,a=i.align,s=o?n:r;return(0,l.deepMerge)((0,c.deepClone)(s,!0),a)}function L(e,t){var n=e.textStyle,r=e.textUnselectedStyle,i=e.data[t],a=i.status,s=(0,o["default"])(i.textPosition,2),c=s[0],u=s[1],l=i.textWidth,d=a?n:r,h=d.fontSize;return[c,u-h/2,l,h]}function P(e,t,n){var r=e.data[t].name;return function(){var e=n.chart,i=e.legendStatus,o=e.option,a=!i[t],s=o.series.find((function(e){var t=e.name;return t===r}));s.show=a,i[t]=a,n.chart.setOption(o)}}},6167:function(e,t,n){"use strict";var r,i;"function"===typeof Symbol&&Symbol.iterator;(function(o,a){r=a,i="function"===typeof r?r.call(t,n,t,e):r,void 0===i||(e.exports=i)})(0,(function(){var e=window,t={placement:"bottom",gpuAcceleration:!0,offset:0,boundariesElement:"viewport",boundariesPadding:5,preventOverflowOrder:["left","right","top","bottom"],flipBehavior:"flip",arrowElement:"[x-arrow]",arrowOffset:0,modifiers:["shift","offset","preventOverflow","keepTogether","arrow","flip","applyStyle"],modifiersIgnored:[],forceAbsolute:!1};function n(e,n,r){this._reference=e.jquery?e[0]:e,this.state={};var i="undefined"===typeof n||null===n,o=n&&"[object Object]"===Object.prototype.toString.call(n);return this._popper=i||o?this.parse(o?n:{}):n.jquery?n[0]:n,this._options=Object.assign({},t,r),this._options.modifiers=this._options.modifiers.map(function(e){if(-1===this._options.modifiersIgnored.indexOf(e))return"applyStyle"===e&&this._popper.setAttribute("x-placement",this._options.placement),this.modifiers[e]||e}.bind(this)),this.state.position=this._getPosition(this._popper,this._reference),d(this._popper,{position:this.state.position,top:0}),this.update(),this._setupEventListeners(),this}function r(t){var n=t.style.display,r=t.style.visibility;t.style.display="block",t.style.visibility="hidden";t.offsetWidth;var i=e.getComputedStyle(t),o=parseFloat(i.marginTop)+parseFloat(i.marginBottom),a=parseFloat(i.marginLeft)+parseFloat(i.marginRight),s={width:t.offsetWidth+a,height:t.offsetHeight+o};return t.style.display=n,t.style.visibility=r,s}function i(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function o(e){var t=Object.assign({},e);return t.right=t.left+t.width,t.bottom=t.top+t.height,t}function a(e,t){var n,r=0;for(n in e){if(e[n]===t)return r;r++}return null}function s(t,n){var r=e.getComputedStyle(t,null);return r[n]}function c(t){var n=t.offsetParent;return n!==e.document.body&&n?n:e.document.documentElement}function u(t){var n=t.parentNode;return n?n===e.document?e.document.body.scrollTop||e.document.body.scrollLeft?e.document.body:e.document.documentElement:-1!==["scroll","auto"].indexOf(s(n,"overflow"))||-1!==["scroll","auto"].indexOf(s(n,"overflow-x"))||-1!==["scroll","auto"].indexOf(s(n,"overflow-y"))?n:u(t.parentNode):t}function l(t){return t!==e.document.body&&("fixed"===s(t,"position")||(t.parentNode?l(t.parentNode):t))}function d(e,t){function n(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}Object.keys(t).forEach((function(r){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(r)&&n(t[r])&&(i="px"),e.style[r]=t[r]+i}))}function h(e){var t={};return e&&"[object Function]"===t.toString.call(e)}function f(e){var t={width:e.offsetWidth,height:e.offsetHeight,left:e.offsetLeft,top:e.offsetTop};return t.right=t.left+t.width,t.bottom=t.top+t.height,t}function p(e){var t=e.getBoundingClientRect(),n=-1!=navigator.userAgent.indexOf("MSIE"),r=n&&"HTML"===e.tagName?-e.scrollTop:t.top;return{left:t.left,top:r,right:t.right,bottom:t.bottom,width:t.right-t.left,height:t.bottom-r}}function g(e,t,n){var r=p(e),i=p(t);if(n){var o=u(t);i.top+=o.scrollTop,i.bottom+=o.scrollTop,i.left+=o.scrollLeft,i.right+=o.scrollLeft}var a={top:r.top-i.top,left:r.left-i.left,bottom:r.top-i.top+r.height,right:r.left-i.left+r.width,width:r.width,height:r.height};return a}function m(t){for(var n=["","ms","webkit","moz","o"],r=0;r<n.length;r++){var i=n[r]?n[r]+t.charAt(0).toUpperCase()+t.slice(1):t;if("undefined"!==typeof e.document.body.style[i])return i}return null}return n.prototype.destroy=function(){return this._popper.removeAttribute("x-placement"),this._popper.style.left="",this._popper.style.position="",this._popper.style.top="",this._popper.style[m("transform")]="",this._removeEventListeners(),this._options.removeOnDestroy&&this._popper.remove(),this},n.prototype.update=function(){var e={instance:this,styles:{}};e.placement=this._options.placement,e._originalPlacement=this._options.placement,e.offsets=this._getOffsets(this._popper,this._reference,e.placement),e.boundaries=this._getBoundaries(e,this._options.boundariesPadding,this._options.boundariesElement),e=this.runModifiers(e,this._options.modifiers),"function"===typeof this.state.updateCallback&&this.state.updateCallback(e)},n.prototype.onCreate=function(e){return e(this),this},n.prototype.onUpdate=function(e){return this.state.updateCallback=e,this},n.prototype.parse=function(t){var n={tagName:"div",classNames:["popper"],attributes:[],parent:e.document.body,content:"",contentType:"text",arrowTagName:"div",arrowClassNames:["popper__arrow"],arrowAttributes:["x-arrow"]};t=Object.assign({},n,t);var r=e.document,i=r.createElement(t.tagName);if(s(i,t.classNames),c(i,t.attributes),"node"===t.contentType?i.appendChild(t.content.jquery?t.content[0]:t.content):"html"===t.contentType?i.innerHTML=t.content:i.textContent=t.content,t.arrowTagName){var o=r.createElement(t.arrowTagName);s(o,t.arrowClassNames),c(o,t.arrowAttributes),i.appendChild(o)}var a=t.parent.jquery?t.parent[0]:t.parent;if("string"===typeof a){if(a=r.querySelectorAll(t.parent),a.length>1&&console.warn("WARNING: the given `parent` query("+t.parent+") matched more than one element, the first one will be used"),0===a.length)throw"ERROR: the given `parent` doesn't exists!";a=a[0]}return a.length>1&&a instanceof Element===!1&&(console.warn("WARNING: you have passed as parent a list of elements, the first one will be used"),a=a[0]),a.appendChild(i),i;function s(e,t){t.forEach((function(t){e.classList.add(t)}))}function c(e,t){t.forEach((function(t){e.setAttribute(t.split(":")[0],t.split(":")[1]||"")}))}},n.prototype._getPosition=function(e,t){var n=c(t);if(this._options.forceAbsolute)return"absolute";var r=l(t,n);return r?"fixed":"absolute"},n.prototype._getOffsets=function(e,t,n){n=n.split("-")[0];var i={};i.position=this.state.position;var o="fixed"===i.position,a=g(t,c(e),o),s=r(e);return-1!==["right","left"].indexOf(n)?(i.top=a.top+a.height/2-s.height/2,i.left="left"===n?a.left-s.width:a.right):(i.left=a.left+a.width/2-s.width/2,i.top="top"===n?a.top-s.height:a.bottom),i.width=s.width,i.height=s.height,{popper:i,reference:a}},n.prototype._setupEventListeners=function(){if(this.state.updateBound=this.update.bind(this),e.addEventListener("resize",this.state.updateBound),"window"!==this._options.boundariesElement){var t=u(this._reference);t!==e.document.body&&t!==e.document.documentElement||(t=e),t.addEventListener("scroll",this.state.updateBound),this.state.scrollTarget=t}},n.prototype._removeEventListeners=function(){e.removeEventListener("resize",this.state.updateBound),"window"!==this._options.boundariesElement&&this.state.scrollTarget&&(this.state.scrollTarget.removeEventListener("scroll",this.state.updateBound),this.state.scrollTarget=null),this.state.updateBound=null},n.prototype._getBoundaries=function(t,n,r){var i,o,a={};if("window"===r){var s=e.document.body,l=e.document.documentElement;o=Math.max(s.scrollHeight,s.offsetHeight,l.clientHeight,l.scrollHeight,l.offsetHeight),i=Math.max(s.scrollWidth,s.offsetWidth,l.clientWidth,l.scrollWidth,l.offsetWidth),a={top:0,right:i,bottom:o,left:0}}else if("viewport"===r){var d=c(this._popper),h=u(this._popper),p=f(d),g=function(e){return e==document.body?Math.max(document.documentElement.scrollTop,document.body.scrollTop):e.scrollTop},m=function(e){return e==document.body?Math.max(document.documentElement.scrollLeft,document.body.scrollLeft):e.scrollLeft},v="fixed"===t.offsets.popper.position?0:g(h),y="fixed"===t.offsets.popper.position?0:m(h);a={top:0-(p.top-v),right:e.document.documentElement.clientWidth-(p.left-y),bottom:e.document.documentElement.clientHeight-(p.top-v),left:0-(p.left-y)}}else a=c(this._popper)===r?{top:0,left:0,right:r.clientWidth,bottom:r.clientHeight}:f(r);return a.left+=n,a.right-=n,a.top=a.top+n,a.bottom=a.bottom-n,a},n.prototype.runModifiers=function(e,t,n){var r=t.slice();return void 0!==n&&(r=this._options.modifiers.slice(0,a(this._options.modifiers,n))),r.forEach(function(t){h(t)&&(e=t.call(this,e))}.bind(this)),e},n.prototype.isModifierRequired=function(e,t){var n=a(this._options.modifiers,e);return!!this._options.modifiers.slice(0,n).filter((function(e){return e===t})).length},n.prototype.modifiers={},n.prototype.modifiers.applyStyle=function(e){var t,n={position:e.offsets.popper.position},r=Math.round(e.offsets.popper.left),i=Math.round(e.offsets.popper.top);return this._options.gpuAcceleration&&(t=m("transform"))?(n[t]="translate3d("+r+"px, "+i+"px, 0)",n.top=0,n.left=0):(n.left=r,n.top=i),Object.assign(n,e.styles),d(this._popper,n),this._popper.setAttribute("x-placement",e.placement),this.isModifierRequired(this.modifiers.applyStyle,this.modifiers.arrow)&&e.offsets.arrow&&d(e.arrowElement,e.offsets.arrow),e},n.prototype.modifiers.shift=function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets.reference,a=o(e.offsets.popper),s={y:{start:{top:i.top},end:{top:i.top+i.height-a.height}},x:{start:{left:i.left},end:{left:i.left+i.width-a.width}}},c=-1!==["bottom","top"].indexOf(n)?"x":"y";e.offsets.popper=Object.assign(a,s[c][r])}return e},n.prototype.modifiers.preventOverflow=function(e){var t=this._options.preventOverflowOrder,n=o(e.offsets.popper),r={left:function(){var t=n.left;return n.left<e.boundaries.left&&(t=Math.max(n.left,e.boundaries.left)),{left:t}},right:function(){var t=n.left;return n.right>e.boundaries.right&&(t=Math.min(n.left,e.boundaries.right-n.width)),{left:t}},top:function(){var t=n.top;return n.top<e.boundaries.top&&(t=Math.max(n.top,e.boundaries.top)),{top:t}},bottom:function(){var t=n.top;return n.bottom>e.boundaries.bottom&&(t=Math.min(n.top,e.boundaries.bottom-n.height)),{top:t}}};return t.forEach((function(t){e.offsets.popper=Object.assign(n,r[t]())})),e},n.prototype.modifiers.keepTogether=function(e){var t=o(e.offsets.popper),n=e.offsets.reference,r=Math.floor;return t.right<r(n.left)&&(e.offsets.popper.left=r(n.left)-t.width),t.left>r(n.right)&&(e.offsets.popper.left=r(n.right)),t.bottom<r(n.top)&&(e.offsets.popper.top=r(n.top)-t.height),t.top>r(n.bottom)&&(e.offsets.popper.top=r(n.bottom)),e},n.prototype.modifiers.flip=function(e){if(!this.isModifierRequired(this.modifiers.flip,this.modifiers.preventOverflow))return console.warn("WARNING: preventOverflow modifier is required by flip modifier in order to work, be sure to include it before flip!"),e;if(e.flipped&&e.placement===e._originalPlacement)return e;var t=e.placement.split("-")[0],n=i(t),r=e.placement.split("-")[1]||"",a=[];return a="flip"===this._options.flipBehavior?[t,n]:this._options.flipBehavior,a.forEach(function(s,c){if(t===s&&a.length!==c+1){t=e.placement.split("-")[0],n=i(t);var u=o(e.offsets.popper),l=-1!==["right","bottom"].indexOf(t);(l&&Math.floor(e.offsets.reference[t])>Math.floor(u[n])||!l&&Math.floor(e.offsets.reference[t])<Math.floor(u[n]))&&(e.flipped=!0,e.placement=a[c+1],r&&(e.placement+="-"+r),e.offsets.popper=this._getOffsets(this._popper,this._reference,e.placement).popper,e=this.runModifiers(e,this._options.modifiers,this._flip))}}.bind(this)),e},n.prototype.modifiers.offset=function(e){var t=this._options.offset,n=e.offsets.popper;return-1!==e.placement.indexOf("left")?n.top-=t:-1!==e.placement.indexOf("right")?n.top+=t:-1!==e.placement.indexOf("top")?n.left-=t:-1!==e.placement.indexOf("bottom")&&(n.left+=t),e},n.prototype.modifiers.arrow=function(e){var t=this._options.arrowElement,n=this._options.arrowOffset;if("string"===typeof t&&(t=this._popper.querySelector(t)),!t)return e;if(!this._popper.contains(t))return console.warn("WARNING: `arrowElement` must be child of its popper element!"),e;if(!this.isModifierRequired(this.modifiers.arrow,this.modifiers.keepTogether))return console.warn("WARNING: keepTogether modifier is required by arrow modifier in order to work, be sure to include it before arrow!"),e;var i={},a=e.placement.split("-")[0],s=o(e.offsets.popper),c=e.offsets.reference,u=-1!==["left","right"].indexOf(a),l=u?"height":"width",d=u?"top":"left",h=u?"left":"top",f=u?"bottom":"right",p=r(t)[l];c[f]-p<s[d]&&(e.offsets.popper[d]-=s[d]-(c[f]-p)),c[d]+p>s[f]&&(e.offsets.popper[d]+=c[d]+p-s[f]);var g=c[d]+(n||c[l]/2-p/2),m=g-s[d];return m=Math.max(Math.min(s[l]-p-8,m),8),i[d]=m,i[h]="",e.offsets.arrow=i,e.arrowElement=t,e},Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(void 0===e||null===e)throw new TypeError("Cannot convert first argument to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(void 0!==r&&null!==r){r=Object(r);for(var i=Object.keys(r),o=0,a=i.length;o<a;o++){var s=i[o],c=Object.getOwnPropertyDescriptor(r,s);void 0!==c&&c.enumerable&&(t[s]=r[s])}}}return t}}),n}))},6179:function(e,t,n){var r=n("4e08"),i=(r.__DEV__,n("6d8b")),o=n("4319"),a=n("80f0"),s=n("ec6f"),c=n("2b17"),u=c.defaultDimValueGetters,l=c.DefaultDataProvider,d=n("2f45"),h=d.summarizeDimensions,f=n("562e"),p=i.isObject,g="undefined",m=-1,v="e\0\0",y={float:typeof Float64Array===g?Array:Float64Array,int:typeof Int32Array===g?Array:Int32Array,ordinal:Array,number:Array,time:Array},_=typeof Uint32Array===g?Array:Uint32Array,b=typeof Int32Array===g?Array:Int32Array,S=typeof Uint16Array===g?Array:Uint16Array;function x(e){return e._rawCount>65535?_:S}function w(e){var t=e.constructor;return t===Array?e.slice():new t(e)}var I=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],C=["_extent","_approximateExtent","_rawExtent"];function M(e,t){i.each(I.concat(t.__wrappedMethods||[]),(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e.__wrappedMethods=t.__wrappedMethods,i.each(C,(function(n){e[n]=i.clone(t[n])})),e._calculationInfo=i.extend(t._calculationInfo)}var T=function(e,t){e=e||["x","y"];for(var n={},r=[],o={},a=0;a<e.length;a++){var s=e[a];i.isString(s)?s=new f({name:s}):s instanceof f||(s=new f(s));var c=s.name;s.type=s.type||"float",s.coordDim||(s.coordDim=c,s.coordDimIndex=0),s.otherDims=s.otherDims||{},r.push(c),n[c]=s,s.index=a,s.createInvertedIndices&&(o[c]=[])}this.dimensions=r,this._dimensionInfos=n,this.hostModel=t,this.dataType,this._indices=null,this._count=0,this._rawCount=0,this._storage={},this._nameList=[],this._idList=[],this._optionModels=[],this._visual={},this._layout={},this._itemVisuals=[],this.hasItemVisual={},this._itemLayouts=[],this._graphicEls=[],this._chunkSize=1e5,this._chunkCount=0,this._rawData,this._rawExtent={},this._extent={},this._approximateExtent={},this._dimensionsSummary=h(this),this._invertedIndicesMap=o,this._calculationInfo={},this.userOutput=this._dimensionsSummary.userOutput},k=T.prototype;function E(e,t,n,r,i){var o=y[t.type],a=r-1,s=t.name,c=e[s][a];if(c&&c.length<n){for(var u=new o(Math.min(i-a*n,n)),l=0;l<c.length;l++)u[l]=c[l];e[s][a]=u}for(var d=r*n;d<i;d+=n)e[s].push(new o(Math.min(i-d,n)))}function A(e){var t=e._invertedIndicesMap;i.each(t,(function(n,r){var i=e._dimensionInfos[r],o=i.ordinalMeta;if(o){n=t[r]=new b(o.categories.length);for(var a=0;a<n.length;a++)n[a]=m;for(a=0;a<e._count;a++)n[e.get(r,a)]=a}}))}function D(e,t,n){var r;if(null!=t){var i=e._chunkSize,o=Math.floor(n/i),a=n%i,s=e.dimensions[t],c=e._storage[s][o];if(c){r=c[a];var u=e._dimensionInfos[s].ordinalMeta;u&&u.categories.length&&(r=u.categories[r])}}return r}function O(e){return e}function R(e){return e<this._count&&e>=0?this._indices[e]:-1}function L(e,t){var n=e._idList[t];return null==n&&(n=D(e,e._idDimIdx,t)),null==n&&(n=v+t),n}function P(e){return i.isArray(e)||(e=[e]),e}function N(e,t){var n=e.dimensions,r=new T(i.map(n,e.getDimensionInfo,e),e.hostModel);M(r,e);for(var o=r._storage={},a=e._storage,s=0;s<n.length;s++){var c=n[s];a[c]&&(i.indexOf(t,c)>=0?(o[c]=U(a[c]),r._rawExtent[c]=F(),r._extent[c]=null):o[c]=a[c])}return r}function U(e){for(var t=new Array(e.length),n=0;n<e.length;n++)t[n]=w(e[n]);return t}function F(){return[1/0,-1/0]}k.type="list",k.hasItemOption=!0,k.getDimension=function(e){return"number"!==typeof e&&(isNaN(e)||this._dimensionInfos.hasOwnProperty(e))||(e=this.dimensions[e]),e},k.getDimensionInfo=function(e){return this._dimensionInfos[this.getDimension(e)]},k.getDimensionsOnCoord=function(){return this._dimensionsSummary.dataDimsOnCoord.slice()},k.mapDimension=function(e,t){var n=this._dimensionsSummary;if(null==t)return n.encodeFirstDimNotExtra[e];var r=n.encode[e];return!0===t?(r||[]).slice():r&&r[t]},k.initData=function(e,t,n){var r=s.isInstance(e)||i.isArrayLike(e);r&&(e=new l(e,this.dimensions.length)),this._rawData=e,this._storage={},this._indices=null,this._nameList=t||[],this._idList=[],this._nameRepeatCount={},n||(this.hasItemOption=!1),this.defaultDimValueGetter=u[this._rawData.getSource().sourceFormat],this._dimValueGetter=n=n||this.defaultDimValueGetter,this._dimValueGetterArrayRows=u.arrayRows,this._rawExtent={},this._initDataFromProvider(0,e.count()),e.pure&&(this.hasItemOption=!1)},k.getProvider=function(){return this._rawData},k.appendData=function(e){var t=this._rawData,n=this.count();t.appendData(e);var r=t.count();t.persistent||(r+=n),this._initDataFromProvider(n,r)},k.appendValues=function(e,t){for(var n=this._chunkSize,r=this._storage,i=this.dimensions,o=i.length,a=this._rawExtent,s=this.count(),c=s+Math.max(e.length,t?t.length:0),u=this._chunkCount,l=0;l<o;l++){var d=i[l];a[d]||(a[d]=F()),r[d]||(r[d]=[]),E(r,this._dimensionInfos[d],n,u,c),this._chunkCount=r[d].length}for(var h=new Array(o),f=s;f<c;f++){for(var p=f-s,g=Math.floor(f/n),m=f%n,v=0;v<o;v++){d=i[v];var y=this._dimValueGetterArrayRows(e[p]||h,d,p,v);r[d][g][m]=y;var _=a[d];y<_[0]&&(_[0]=y),y>_[1]&&(_[1]=y)}t&&(this._nameList[f]=t[p])}this._rawCount=this._count=c,this._extent={},A(this)},k._initDataFromProvider=function(e,t){if(!(e>=t)){for(var n,r=this._chunkSize,i=this._rawData,o=this._storage,a=this.dimensions,s=a.length,c=this._dimensionInfos,u=this._nameList,l=this._idList,d=this._rawExtent,h=this._nameRepeatCount={},f=this._chunkCount,p=0;p<s;p++){var g=a[p];d[g]||(d[g]=F());var m=c[g];0===m.otherDims.itemName&&(n=this._nameDimIdx=p),0===m.otherDims.itemId&&(this._idDimIdx=p),o[g]||(o[g]=[]),E(o,m,r,f,t),this._chunkCount=o[g].length}for(var v=new Array(s),y=e;y<t;y++){v=i.getItem(y,v);for(var _=Math.floor(y/r),b=y%r,S=0;S<s;S++){g=a[S];var x=o[g][_],w=this._dimValueGetter(v,g,y,S);x[b]=w;var I=d[g];w<I[0]&&(I[0]=w),w>I[1]&&(I[1]=w)}if(!i.pure){var C=u[y];if(v&&null==C)if(null!=v.name)u[y]=C=v.name;else if(null!=n){var M=a[n],T=o[M][_];if(T){C=T[b];var k=c[M].ordinalMeta;k&&k.categories.length&&(C=k.categories[C])}}var D=null==v?null:v.id;null==D&&null!=C&&(h[C]=h[C]||0,D=C,h[C]>0&&(D+="__ec__"+h[C]),h[C]++),null!=D&&(l[y]=D)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=t,this._extent={},A(this)}},k.count=function(){return this._count},k.getIndices=function(){var e=this._indices;if(e){var t=e.constructor,n=this._count;if(t===Array){i=new t(n);for(var r=0;r<n;r++)i[r]=e[r]}else i=new t(e.buffer,0,n)}else{t=x(this);var i=new t(this.count());for(r=0;r<i.length;r++)i[r]=r}return i},k.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._storage;if(!n[e])return NaN;t=this.getRawIndex(t);var r=Math.floor(t/this._chunkSize),i=t%this._chunkSize,o=n[e][r],a=o[i];return a},k.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._storage[e];if(!n)return NaN;var r=Math.floor(t/this._chunkSize),i=t%this._chunkSize,o=n[r];return o[i]},k._getFast=function(e,t){var n=Math.floor(t/this._chunkSize),r=t%this._chunkSize,i=this._storage[e][n];return i[r]},k.getValues=function(e,t){var n=[];i.isArray(e)||(t=e,e=this.dimensions);for(var r=0,o=e.length;r<o;r++)n.push(this.get(e[r],t));return n},k.hasValue=function(e){for(var t=this._dimensionsSummary.dataDimsOnCoord,n=0,r=t.length;n<r;n++)if(isNaN(this.get(t[n],e)))return!1;return!0},k.getDataExtent=function(e){e=this.getDimension(e);var t=this._storage[e],n=F();if(!t)return n;var r,i=this.count(),o=!this._indices;if(o)return this._rawExtent[e].slice();if(r=this._extent[e],r)return r.slice();r=n;for(var a=r[0],s=r[1],c=0;c<i;c++){var u=this._getFast(e,this.getRawIndex(c));u<a&&(a=u),u>s&&(s=u)}return r=[a,s],this._extent[e]=r,r},k.getApproximateExtent=function(e){return e=this.getDimension(e),this._approximateExtent[e]||this.getDataExtent(e)},k.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},k.getCalculationInfo=function(e){return this._calculationInfo[e]},k.setCalculationInfo=function(e,t){p(e)?i.extend(this._calculationInfo,e):this._calculationInfo[e]=t},k.getSum=function(e){var t=this._storage[e],n=0;if(t)for(var r=0,i=this.count();r<i;r++){var o=this.get(e,r);isNaN(o)||(n+=o)}return n},k.getMedian=function(e){var t=[];this.each(e,(function(e,n){isNaN(e)||t.push(e)}));var n=[].concat(t).sort((function(e,t){return e-t})),r=this.count();return 0===r?0:r%2===1?n[(r-1)/2]:(n[r/2]+n[r/2-1])/2},k.rawIndexOf=function(e,t){var n=e&&this._invertedIndicesMap[e],r=n[t];return null==r||isNaN(r)?m:r},k.indexOfName=function(e){for(var t=0,n=this.count();t<n;t++)if(this.getName(t)===e)return t;return-1},k.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(null!=n&&n<this._count&&n===e)return e;var r=0,i=this._count-1;while(r<=i){var o=(r+i)/2|0;if(t[o]<e)r=o+1;else{if(!(t[o]>e))return o;i=o-1}}return-1},k.indicesOfNearest=function(e,t,n){var r=this._storage,i=r[e],o=[];if(!i)return o;null==n&&(n=1/0);for(var a=1/0,s=-1,c=0,u=0,l=this.count();u<l;u++){var d=t-this.get(e,u),h=Math.abs(d);h<=n&&((h<a||h===a&&d>=0&&s<0)&&(a=h,s=d,c=0),d===s&&(o[c++]=u))}return o.length=c,o},k.getRawIndex=O,k.getRawDataItem=function(e){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(e));for(var t=[],n=0;n<this.dimensions.length;n++){var r=this.dimensions[n];t.push(this.get(r,e))}return t},k.getName=function(e){var t=this.getRawIndex(e);return this._nameList[t]||D(this,this._nameDimIdx,t)||""},k.getId=function(e){return L(this,this.getRawIndex(e))},k.each=function(e,t,n,r){"use strict";if(this._count){"function"===typeof e&&(r=n,n=t,t=e,e=[]),n=n||r||this,e=i.map(P(e),this.getDimension,this);for(var o=e.length,a=0;a<this.count();a++)switch(o){case 0:t.call(n,a);break;case 1:t.call(n,this.get(e[0],a),a);break;case 2:t.call(n,this.get(e[0],a),this.get(e[1],a),a);break;default:for(var s=0,c=[];s<o;s++)c[s]=this.get(e[s],a);c[s]=a,t.apply(n,c)}}},k.filterSelf=function(e,t,n,r){"use strict";if(this._count){"function"===typeof e&&(r=n,n=t,t=e,e=[]),n=n||r||this,e=i.map(P(e),this.getDimension,this);for(var o=this.count(),a=x(this),s=new a(o),c=[],u=e.length,l=0,d=e[0],h=0;h<o;h++){var f,p=this.getRawIndex(h);if(0===u)f=t.call(n,h);else if(1===u){var g=this._getFast(d,p);f=t.call(n,g,h)}else{for(var m=0;m<u;m++)c[m]=this._getFast(d,p);c[m]=h,f=t.apply(n,c)}f&&(s[l++]=p)}return l<o&&(this._indices=s),this._count=l,this._extent={},this.getRawIndex=this._indices?R:O,this}},k.selectRange=function(e){"use strict";if(this._count){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);var r=t.length;if(r){var i=this.count(),o=x(this),a=new o(i),s=0,c=t[0],u=e[c][0],l=e[c][1],d=!1;if(!this._indices){var h=0;if(1===r){for(var f=this._storage[t[0]],p=0;p<this._chunkCount;p++)for(var g=f[p],m=Math.min(this._count-p*this._chunkSize,this._chunkSize),v=0;v<m;v++){var y=g[v];(y>=u&&y<=l||isNaN(y))&&(a[s++]=h),h++}d=!0}else if(2===r){f=this._storage[c];var _=this._storage[t[1]],b=e[t[1]][0],S=e[t[1]][1];for(p=0;p<this._chunkCount;p++){g=f[p];var w=_[p];for(m=Math.min(this._count-p*this._chunkSize,this._chunkSize),v=0;v<m;v++){y=g[v];var I=w[v];(y>=u&&y<=l||isNaN(y))&&(I>=b&&I<=S||isNaN(I))&&(a[s++]=h),h++}}d=!0}}if(!d)if(1===r)for(v=0;v<i;v++){var C=this.getRawIndex(v);y=this._getFast(c,C);(y>=u&&y<=l||isNaN(y))&&(a[s++]=C)}else for(v=0;v<i;v++){var M=!0;for(C=this.getRawIndex(v),p=0;p<r;p++){var T=t[p];y=this._getFast(n,C);(y<e[T][0]||y>e[T][1])&&(M=!1)}M&&(a[s++]=this.getRawIndex(v))}return s<i&&(this._indices=a),this._count=s,this._extent={},this.getRawIndex=this._indices?R:O,this}}},k.mapArray=function(e,t,n,r){"use strict";"function"===typeof e&&(r=n,n=t,t=e,e=[]),n=n||r||this;var i=[];return this.each(e,(function(){i.push(t&&t.apply(this,arguments))}),n),i},k.map=function(e,t,n,r){"use strict";n=n||r||this,e=i.map(P(e),this.getDimension,this);var o=N(this,e);o._indices=this._indices,o.getRawIndex=o._indices?R:O;for(var a=o._storage,s=[],c=this._chunkSize,u=e.length,l=this.count(),d=[],h=o._rawExtent,f=0;f<l;f++){for(var p=0;p<u;p++)d[p]=this.get(e[p],f);d[u]=f;var g=t&&t.apply(n,d);if(null!=g){"object"!==typeof g&&(s[0]=g,g=s);for(var m=this.getRawIndex(f),v=Math.floor(m/c),y=m%c,_=0;_<g.length;_++){var b=e[_],S=g[_],x=h[b],w=a[b];w&&(w[v][y]=S),S<x[0]&&(x[0]=S),S>x[1]&&(x[1]=S)}}}return o},k.downSample=function(e,t,n,r){for(var i=N(this,[e]),o=i._storage,a=[],s=Math.floor(1/t),c=o[e],u=this.count(),l=this._chunkSize,d=i._rawExtent[e],h=new(x(this))(u),f=0,p=0;p<u;p+=s){s>u-p&&(s=u-p,a.length=s);for(var g=0;g<s;g++){var m=this.getRawIndex(p+g),v=Math.floor(m/l),y=m%l;a[g]=c[v][y]}var _=n(a),b=this.getRawIndex(Math.min(p+r(a,_)||0,u-1)),S=Math.floor(b/l),w=b%l;c[S][w]=_,_<d[0]&&(d[0]=_),_>d[1]&&(d[1]=_),h[f++]=b}return i._count=f,i._indices=h,i.getRawIndex=R,i},k.getItemModel=function(e){var t=this.hostModel;return new o(this.getRawDataItem(e),t,t&&t.ecModel)},k.diff=function(e){var t=this;return new a(e?e.getIndices():[],this.getIndices(),(function(t){return L(e,t)}),(function(e){return L(t,e)}))},k.getVisual=function(e){var t=this._visual;return t&&t[e]},k.setVisual=function(e,t){if(p(e))for(var n in e)e.hasOwnProperty(n)&&this.setVisual(n,e[n]);else this._visual=this._visual||{},this._visual[e]=t},k.setLayout=function(e,t){if(p(e))for(var n in e)e.hasOwnProperty(n)&&this.setLayout(n,e[n]);else this._layout[e]=t},k.getLayout=function(e){return this._layout[e]},k.getItemLayout=function(e){return this._itemLayouts[e]},k.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?i.extend(this._itemLayouts[e]||{},t):t},k.clearItemLayouts=function(){this._itemLayouts.length=0},k.getItemVisual=function(e,t,n){var r=this._itemVisuals[e],i=r&&r[t];return null!=i||n?i:this.getVisual(t)},k.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{},i=this.hasItemVisual;if(this._itemVisuals[e]=r,p(t))for(var o in t)t.hasOwnProperty(o)&&(r[o]=t[o],i[o]=!0);else r[t]=n,i[t]=!0},k.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var G=function(e){e.seriesIndex=this.seriesIndex,e.dataIndex=this.dataIndex,e.dataType=this.dataType};k.setItemGraphicEl=function(e,t){var n=this.hostModel;t&&(t.dataIndex=e,t.dataType=this.dataType,t.seriesIndex=n&&n.seriesIndex,"group"===t.type&&t.traverse(G,t)),this._graphicEls[e]=t},k.getItemGraphicEl=function(e){return this._graphicEls[e]},k.eachItemGraphicEl=function(e,t){i.each(this._graphicEls,(function(n,r){n&&e&&e.call(t,n,r)}))},k.cloneShallow=function(e){if(!e){var t=i.map(this.dimensions,this.getDimensionInfo,this);e=new T(t,this.hostModel)}if(e._storage=this._storage,M(e,this),this._indices){var n=this._indices.constructor;e._indices=new n(this._indices)}else e._indices=null;return e.getRawIndex=e._indices?R:O,e},k.wrapMethod=function(e,t){var n=this[e];"function"===typeof n&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(i.slice(arguments)))})},k.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],k.CHANGABLE_METHODS=["filterSelf","selectRange"];var V=T;e.exports=V},"620b":function(e,t,n){var r=n("401b"),i=r.distance;function o(e,t,n,r,i,o,a){var s=.5*(n-e),c=.5*(r-t);return(2*(t-n)+s+c)*a+(-3*(t-n)-2*s-c)*o+s*i+t}function a(e,t){for(var n=e.length,r=[],a=0,s=1;s<n;s++)a+=i(e[s-1],e[s]);var c=a/2;c=c<n?n:c;for(s=0;s<c;s++){var u,l,d,h=s/(c-1)*(t?n:n-1),f=Math.floor(h),p=h-f,g=e[f%n];t?(u=e[(f-1+n)%n],l=e[(f+1)%n],d=e[(f+2)%n]):(u=e[0===f?f:f-1],l=e[f>n-2?n-1:f+1],d=e[f>n-3?n-1:f+2]);var m=p*p,v=p*m;r.push([o(u[0],g[0],l[0],d[0],p,m,v),o(u[1],g[1],l[1],d[1],p,m,v)])}return r}e.exports=a},"621a":function(e,t,n){"use strict";var r=n("da84"),i=n("e330"),o=n("83ab"),a=n("a981"),s=n("5e77"),c=n("9112"),u=n("e2cc"),l=n("d039"),d=n("19aa"),h=n("5926"),f=n("50c4"),p=n("0b25"),g=n("77a7"),m=n("e163"),v=n("d2bb"),y=n("241c").f,_=n("9bf2").f,b=n("81d5"),S=n("4dae"),x=n("d44e"),w=n("69f3"),I=s.PROPER,C=s.CONFIGURABLE,M=w.get,T=w.set,k="ArrayBuffer",E="DataView",A="prototype",D="Wrong length",O="Wrong index",R=r[k],L=R,P=L&&L[A],N=r[E],U=N&&N[A],F=Object.prototype,G=r.Array,V=r.RangeError,j=i(b),B=i([].reverse),z=g.pack,H=g.unpack,W=function(e){return[255&e]},q=function(e){return[255&e,e>>8&255]},$=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},K=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},Y=function(e){return z(e,23,4)},J=function(e){return z(e,52,8)},X=function(e,t){_(e[A],t,{get:function(){return M(this)[t]}})},Z=function(e,t,n,r){var i=p(n),o=M(e);if(i+t>o.byteLength)throw V(O);var a=M(o.buffer).bytes,s=i+o.byteOffset,c=S(a,s,s+t);return r?c:B(c)},Q=function(e,t,n,r,i,o){var a=p(n),s=M(e);if(a+t>s.byteLength)throw V(O);for(var c=M(s.buffer).bytes,u=a+s.byteOffset,l=r(+i),d=0;d<t;d++)c[u+d]=l[o?d:t-d-1]};if(a){var ee=I&&R.name!==k;if(l((function(){R(1)}))&&l((function(){new R(-1)}))&&!l((function(){return new R,new R(1.5),new R(NaN),ee&&!C})))ee&&C&&c(R,"name",k);else{L=function(e){return d(this,P),new R(p(e))},L[A]=P;for(var te,ne=y(R),re=0;ne.length>re;)(te=ne[re++])in L||c(L,te,R[te]);P.constructor=L}v&&m(U)!==F&&v(U,F);var ie=new N(new L(2)),oe=i(U.setInt8);ie.setInt8(0,2147483648),ie.setInt8(1,2147483649),!ie.getInt8(0)&&ie.getInt8(1)||u(U,{setInt8:function(e,t){oe(this,e,t<<24>>24)},setUint8:function(e,t){oe(this,e,t<<24>>24)}},{unsafe:!0})}else L=function(e){d(this,P);var t=p(e);T(this,{bytes:j(G(t),0),byteLength:t}),o||(this.byteLength=t)},P=L[A],N=function(e,t,n){d(this,U),d(e,P);var r=M(e).byteLength,i=h(t);if(i<0||i>r)throw V("Wrong offset");if(n=void 0===n?r-i:f(n),i+n>r)throw V(D);T(this,{buffer:e,byteLength:n,byteOffset:i}),o||(this.buffer=e,this.byteLength=n,this.byteOffset=i)},U=N[A],o&&(X(L,"byteLength"),X(N,"buffer"),X(N,"byteLength"),X(N,"byteOffset")),u(U,{getInt8:function(e){return Z(this,1,e)[0]<<24>>24},getUint8:function(e){return Z(this,1,e)[0]},getInt16:function(e){var t=Z(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=Z(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return K(Z(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return K(Z(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return H(Z(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return H(Z(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){Q(this,1,e,W,t)},setUint8:function(e,t){Q(this,1,e,W,t)},setInt16:function(e,t){Q(this,2,e,q,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){Q(this,2,e,q,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){Q(this,4,e,$,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){Q(this,4,e,$,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){Q(this,4,e,Y,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){Q(this,8,e,J,t,arguments.length>2?arguments[2]:void 0)}});x(L,k),x(N,E),e.exports={ArrayBuffer:L,DataView:N}},"625e":function(e,t,n){var r=n("4e08"),i=(r.__DEV__,n("6d8b")),o=".",a="___EC__COMPONENT__CONTAINER___";function s(e){var t={main:"",sub:""};return e&&(e=e.split(o),t.main=e[0]||"",t.sub=e[1]||""),t}function c(e){i.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function u(e,t){e.$constructor=e,e.extend=function(e){var t=this,n=function(){e.$constructor?e.$constructor.apply(this,arguments):t.apply(this,arguments)};return i.extend(n.prototype,e),n.extend=this.extend,n.superCall=h,n.superApply=f,i.inherits(n,this),n.superClass=t,n}}var l=0;function d(e){var t=["__\0is_clz",l++,Math.random().toFixed(3)].join("_");e.prototype[t]=!0,e.isInstance=function(e){return!(!e||!e[t])}}function h(e,t){var n=i.slice(arguments,2);return this.superClass.prototype[t].apply(e,n)}function f(e,t,n){return this.superClass.prototype[t].apply(e,n)}function p(e,t){t=t||{};var n={};function r(e){var t=n[e.main];return t&&t[a]||(t=n[e.main]={},t[a]=!0),t}if(e.registerClass=function(e,t){if(t)if(c(t),t=s(t),t.sub){if(t.sub!==a){var i=r(t);i[t.sub]=e}}else n[t.main]=e;return e},e.getClass=function(e,t,r){var i=n[e];if(i&&i[a]&&(i=t?i[t]:null),r&&!i)throw new Error(t?"Component "+e+"."+(t||"")+" not exists. Load it first.":e+".type should be specified.");return i},e.getClassesByMainType=function(e){e=s(e);var t=[],r=n[e.main];return r&&r[a]?i.each(r,(function(e,n){n!==a&&t.push(e)})):t.push(r),t},e.hasClass=function(e){return e=s(e),!!n[e.main]},e.getAllClassMainTypes=function(){var e=[];return i.each(n,(function(t,n){e.push(n)})),e},e.hasSubTypes=function(e){e=s(e);var t=n[e.main];return t&&t[a]},e.parseClassType=s,t.registerWhenExtend){var o=e.extend;o&&(e.extend=function(t){var n=o.call(this,t);return e.registerClass(n,t.type)})}return e}function g(e,t){}t.parseClassType=s,t.enableClassExtend=u,t.enableClassCheck=d,t.enableClassManagement=p,t.setReadOnly=g},"627c":function(e,t,n){var r=n("6d8b"),i=n("3eba"),o=n("2306"),a=n("f934"),s=a.getLayoutRect,c=n("eda2"),u=c.windowOpen;i.extendComponentModel({type:"title",layoutMode:{type:"box",ignoreSize:!0},defaultOption:{zlevel:0,z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bolder",color:"#333"},subtextStyle:{color:"#aaa"}}}),i.extendComponentView({type:"title",render:function(e,t,n){if(this.group.removeAll(),e.get("show")){var i=this.group,a=e.getModel("textStyle"),c=e.getModel("subtextStyle"),l=e.get("textAlign"),d=r.retrieve2(e.get("textBaseline"),e.get("textVerticalAlign")),h=new o.Text({style:o.setTextStyle({},a,{text:e.get("text"),textFill:a.getTextColor()},{disableBox:!0}),z2:10}),f=h.getBoundingRect(),p=e.get("subtext"),g=new o.Text({style:o.setTextStyle({},c,{text:p,textFill:c.getTextColor(),y:f.height+e.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),m=e.get("link"),v=e.get("sublink"),y=e.get("triggerEvent",!0);h.silent=!m&&!y,g.silent=!v&&!y,m&&h.on("click",(function(){u(m,"_"+e.get("target"))})),v&&g.on("click",(function(){u(v,"_"+e.get("subtarget"))})),h.eventData=g.eventData=y?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(h),p&&i.add(g);var _=i.getBoundingRect(),b=e.getBoxLayoutParams();b.width=_.width,b.height=_.height;var S=s(b,{width:n.getWidth(),height:n.getHeight()},e.get("padding"));l||(l=e.get("left")||e.get("right"),"middle"===l&&(l="center"),"right"===l?S.x+=S.width:"center"===l&&(S.x+=S.width/2)),d||(d=e.get("top")||e.get("bottom"),"center"===d&&(d="middle"),"bottom"===d?S.y+=S.height:"middle"===d&&(S.y+=S.height/2),d=d||"top"),i.attr("position",[S.x,S.y]);var x={textAlign:l,textVerticalAlign:d};h.setStyle(x),g.setStyle(x),_=i.getBoundingRect();var w=S.margin,I=e.getItemStyle(["color","opacity"]);I.fill=e.get("backgroundColor");var C=new o.Rect({shape:{x:_.x-w[3],y:_.y-w[0],width:_.width+w[1]+w[3],height:_.height+w[0]+w[2],r:e.get("borderRadius")},style:I,subPixelOptimize:!0,silent:!0});i.add(C)}}})},"62fd":function(e,t,n){},"649e":function(e,t,n){"use strict";var r=n("ebb5"),i=n("b727").some,o=r.aTypedArray,a=r.exportTypedArrayMethod;a("some",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},6547:function(e,t,n){var r=n("e330"),i=n("5926"),o=n("577e"),a=n("1d80"),s=r("".charAt),c=r("".charCodeAt),u=r("".slice),l=function(e){return function(t,n){var r,l,d=o(a(t)),h=i(n),f=d.length;return h<0||h>=f?e?"":void 0:(r=c(d,h),r<55296||r>56319||h+1===f||(l=c(d,h+1))<56320||l>57343?e?s(d,h):r:e?u(d,h,h+2):l-56320+(r-55296<<10)+65536)}};e.exports={codeAt:l(!1),charAt:l(!0)}},6566:function(e,t,n){"use strict";var r=n("9bf2").f,i=n("7c73"),o=n("e2cc"),a=n("0366"),s=n("19aa"),c=n("2266"),u=n("7dd0"),l=n("2626"),d=n("83ab"),h=n("f183").fastKey,f=n("69f3"),p=f.set,g=f.getterFor;e.exports={getConstructor:function(e,t,n,u){var l=e((function(e,r){s(e,f),p(e,{type:t,index:i(null),first:void 0,last:void 0,size:0}),d||(e.size=0),void 0!=r&&c(r,e[u],{that:e,AS_ENTRIES:n})})),f=l.prototype,m=g(t),v=function(e,t,n){var r,i,o=m(e),a=y(e,t);return a?a.value=n:(o.last=a={index:i=h(t,!0),key:t,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=a),r&&(r.next=a),d?o.size++:e.size++,"F"!==i&&(o.index[i]=a)),e},y=function(e,t){var n,r=m(e),i=h(t);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==t)return n};return o(f,{clear:function(){var e=this,t=m(e),n=t.index,r=t.first;while(r)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete n[r.index],r=r.next;t.first=t.last=void 0,d?t.size=0:e.size=0},delete:function(e){var t=this,n=m(t),r=y(t,e);if(r){var i=r.next,o=r.previous;delete n.index[r.index],r.removed=!0,o&&(o.next=i),i&&(i.previous=o),n.first==r&&(n.first=i),n.last==r&&(n.last=o),d?n.size--:t.size--}return!!r},forEach:function(e){var t,n=m(this),r=a(e,arguments.length>1?arguments[1]:void 0);while(t=t?t.next:n.first){r(t.value,t.key,this);while(t&&t.removed)t=t.previous}},has:function(e){return!!y(this,e)}}),o(f,n?{get:function(e){var t=y(this,e);return t&&t.value},set:function(e,t){return v(this,0===e?0:e,t)}}:{add:function(e){return v(this,e=0===e?0:e,e)}}),d&&r(f,"size",{get:function(){return m(this).size}}),l},setStrong:function(e,t,n){var r=t+" Iterator",i=g(t),o=g(r);u(e,t,(function(e,t){p(this,{type:r,target:e,state:i(e),kind:t,last:void 0})}),(function(){var e=o(this),t=e.kind,n=e.last;while(n&&n.removed)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),l(t)}}},6569:function(e,t,n){var r=n("6d8b"),i=n("e0d3");function o(e){a(e),s(e)}function a(e){if(!e.parallel){var t=!1;r.each(e.series,(function(e){e&&"parallel"===e.type&&(t=!0)})),t&&(e.parallel=[{}])}}function s(e){var t=i.normalizeToArray(e.parallelAxis);r.each(t,(function(t){if(r.isObject(t)){var n=t.parallelIndex||0,o=i.normalizeToArray(e.parallel)[n];o&&o.parallelAxisDefault&&r.merge(t,o.parallelAxisDefault,!1)}}))}e.exports=o},6582:function(e,t,n){var r=n("cccd"),i={seriesType:"lines",plan:r(),reset:function(e){var t=e.coordinateSystem,n=e.get("polyline"),r=e.pipelineContext.large;function i(i,o){var a=[];if(r){var s,c=i.end-i.start;if(n){for(var u=0,l=i.start;l<i.end;l++)u+=e.getLineCoordsCount(l);s=new Float32Array(c+2*u)}else s=new Float32Array(4*c);var d=0,h=[];for(l=i.start;l<i.end;l++){var f=e.getLineCoords(l,a);n&&(s[d++]=f);for(var p=0;p<f;p++)h=t.dataToPoint(a[p],!1,h),s[d++]=h[0],s[d++]=h[1]}o.setLayout("linesPoints",s)}else for(l=i.start;l<i.end;l++){var g=o.getItemModel(l),m=(f=e.getLineCoords(l,a),[]);if(n)for(var v=0;v<f;v++)m.push(t.dataToPoint(a[v]));else{m[0]=t.dataToPoint(a[0]),m[1]=t.dataToPoint(a[1]);var y=g.get("lineStyle.curveness");+y&&(m[2]=[(m[0][0]+m[1][0])/2-(m[0][1]-m[1][1])*y,(m[0][1]+m[1][1])/2-(m[1][0]-m[0][0])*y])}o.setItemLayout(l,m)}}return{progress:i}}};e.exports=i},"65ed":function(e,t,n){var r=n("22d1"),i=n("84ec"),o=i.buildTransformer,a="___zrEVENTSAVED",s=[];function c(e,t,n,r,i){return u(s,t,r,i,!0)&&u(e,n,s[0],s[1])}function u(e,t,n,i,o){if(t.getBoundingClientRect&&r.domSupported&&!h(t)){var s=t[a]||(t[a]={}),c=l(t,s),u=d(c,s,o);if(u)return u(e,n,i),!0}return!1}function l(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var r=["left","right"],i=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=a.style,c=o%2,u=(o>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[c]+":0",i[u]+":0",r[1-c]+":auto",i[1-u]+":auto",""].join("!important;"),e.appendChild(a),n.push(a)}return n}function d(e,t,n){for(var r=n?"invTrans":"trans",i=t[r],a=t.srcCoords,s=!0,c=[],u=[],l=0;l<4;l++){var d=e[l].getBoundingClientRect(),h=2*l,f=d.left,p=d.top;c.push(f,p),s=s&&a&&f===a[h]&&p===a[h+1],u.push(e[l].offsetLeft,e[l].offsetTop)}return s&&i?i:(t.srcCoords=c,t[r]=n?o(u,c):o(c,u))}function h(e){return"CANVAS"===e.nodeName.toUpperCase()}t.transformLocalCoord=c,t.transformCoordWithViewport=u,t.isCanvasEl=h},"65f0":function(e,t,n){var r=n("0b42");e.exports=function(e,t){return new(r(e))(0===t?0:t)}},6611:function(e,t,n){},6613:function(e,t,n){n("fb6a"),n("d3b7"),n("b0c0"),n("a630"),n("3ca3"),n("ac1f"),n("00b4");var r=n("5a43");function i(e,t){if(e){if("string"===typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},6679:function(e,t,n){var r=n("4e08"),i=(r.__DEV__,n("3eba")),o=n("cd33"),a=i.extendComponentView({type:"axis",_axisPointer:null,axisPointerClass:null,render:function(e,t,n,r){this.axisPointerClass&&o.fixValue(e),a.superApply(this,"render",arguments),s(this,e,t,n,r,!0)},updateAxisPointer:function(e,t,n,r,i){s(this,e,t,n,r,!1)},remove:function(e,t){var n=this._axisPointer;n&&n.remove(t),a.superApply(this,"remove",arguments)},dispose:function(e,t){c(this,t),a.superApply(this,"dispose",arguments)}});function s(e,t,n,r,i,s){var u=a.getAxisPointerClass(e.axisPointerClass);if(u){var l=o.getAxisPointerModel(t);l?(e._axisPointer||(e._axisPointer=new u)).render(t,l,r,s):c(e,r)}}function c(e,t,n){var r=e._axisPointer;r&&r.dispose(t,n),e._axisPointer=null}var u=[];a.registerAxisPointerClass=function(e,t){u[e]=t},a.getAxisPointerClass=function(e){return e&&u[e]};var l=a;e.exports=l},"66a4":function(e,t,n){var r=n("6d8b");function i(e){var t=e&&e.timeline;r.isArray(t)||(t=t?[t]:[]),r.each(t,(function(e){e&&o(e)}))}function o(e){var t=e.type,n={number:"value",time:"time"};if(n[t]&&(e.axisType=n[t],delete e.type),a(e),s(e,"controlPosition")){var i=e.controlStyle||(e.controlStyle={});s(i,"position")||(i.position=e.controlPosition),"none"!==i.position||s(i,"show")||(i.show=!1,delete i.position),delete e.controlPosition}r.each(e.data||[],(function(e){r.isObject(e)&&!r.isArray(e)&&(!s(e,"value")&&s(e,"name")&&(e.value=e.name),a(e))}))}function a(e){var t=e.itemStyle||(e.itemStyle={}),n=t.emphasis||(t.emphasis={}),i=e.label||e.label||{},o=i.normal||(i.normal={}),a={normal:1,emphasis:1};r.each(i,(function(e,t){a[t]||s(o,t)||(o[t]=e)})),n.label&&!s(i,"emphasis")&&(i.emphasis=n.label,delete n.label)}function s(e,t){return e.hasOwnProperty(t)}e.exports=i},"66fc":function(e,t,n){var r=n("6d8b"),i=n("84ce"),o=function(e,t,n,r,o){i.call(this,e,t,n),this.type=r||"value",this.position=o||"bottom",this.orient=null};o.prototype={constructor:o,model:null,isHorizontal:function(){var e=this.position;return"top"===e||"bottom"===e},pointToData:function(e,t){return this.coordinateSystem.pointToData(e,t)[0]},toGlobalCoord:null,toLocalCoord:null},r.inherits(o,i);var a=o;e.exports=a},"672e":function(e,t,n){},"675a":function(e,t){function n(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.eachSeriesByType("graph",(function(e){var n=e.getCategoriesData(),r=e.getGraph(),i=r.data,o=n.mapArray(n.getName);i.filterSelf((function(e){var n=i.getItemModel(e),r=n.getShallow("category");if(null!=r){"number"===typeof r&&(r=o[r]);for(var a=0;a<t.length;a++)if(!t[a].isSelected(r))return!1}return!0}))}),this)}e.exports=n},"675c":function(e,t,n){var r=n("3eba");n("4e10"),n("a666"),n("49e8"),n("eeea");var i=n("cee1"),o=n("54fb"),a=n("f6ed"),s=n("9442"),c=n("7782");r.registerLayout(i),r.registerVisual(o),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,a),r.registerPreprocessor(s),c("map",[{type:"mapToggleSelect",event:"mapselectchanged",method:"toggleSelected"},{type:"mapSelect",event:"mapselected",method:"select"},{type:"mapUnSelect",event:"mapunselected",method:"unSelect"}])},"67a8":function(e,t,n){var r=n("3301"),i=n("4f85"),o=i.extend({type:"series.effectScatter",dependencies:["grid","polar"],getInitialData:function(e,t){return r(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",rippleEffect:{period:4,scale:2.5,brushType:"fill"},symbolSize:10}});e.exports=o},"67cc":function(e,t,n){var r=n("4e08"),i=(r.__DEV__,n("3eba")),o=n("6d8b"),a=n("2306"),s=n("e7aa"),c=s.setLabel,u=n("4319"),l=n("b5c7"),d=n("cbe5"),h=n("e1fc"),f=n("88b3"),p=f.throttle,g=n("b0af"),m=g.createClipPath,v=n("c2be"),y=["itemStyle","barBorderWidth"],_=[0,0];function b(e,t){var n=e.getArea&&e.getArea();if("cartesian2d"===e.type){var r=e.getBaseAxis();if("category"!==r.type||!r.onBand){var i=t.getLayout("bandWidth");r.isHorizontal()?(n.x-=i,n.width+=2*i):(n.y-=i,n.height+=2*i)}}return n}o.extend(u.prototype,l);var S=i.extendChartView({type:"bar",render:function(e,t,n){this._updateDrawMode(e);var r=e.get("coordinateSystem");return"cartesian2d"!==r&&"polar"!==r||(this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n)),this.group},incrementalPrepareRender:function(e,t,n){this._clear(),this._updateDrawMode(e)},incrementalRender:function(e,t,n,r){this._incrementalRenderLarge(e,t)},_updateDrawMode:function(e){var t=e.pipelineContext.large;(null==this._isLargeDraw||t^this._isLargeDraw)&&(this._isLargeDraw=t,this._clear())},_renderNormal:function(e,t,n){var r,i=this.group,o=e.getData(),s=this._data,c=e.coordinateSystem,u=c.getBaseAxis();"cartesian2d"===c.type?r=u.isHorizontal():"polar"===c.type&&(r="angle"===u.dim);var l=e.isAnimationEnabled()?e:null,d=e.get("clip",!0),f=b(c,o);i.removeClipPath();var p=e.get("roundCap",!0),g=e.get("showBackground",!0),m=e.getModel("backgroundStyle"),v=m.get("barBorderRadius")||0,y=[],_=this._backgroundEls||[],S=function(e){var t=k[c.type](o,e),n=G(c,r,t);return n.useStyle(m.getBarItemStyle()),"cartesian2d"===c.type&&n.setShape("r",v),y[e]=n,n};o.diff(s).add((function(t){var n=o.getItemModel(t),a=k[c.type](o,t,n);if(g&&S(t),o.hasValue(t)){if(d){var s=I[c.type](f,a);if(s)return void i.remove(u)}var u=C[c.type](t,a,r,l,!1,p);o.setItemGraphicEl(t,u),i.add(u),A(u,o,t,n,a,e,r,"polar"===c.type)}})).update((function(t,n){var u=o.getItemModel(t),h=k[c.type](o,t,u);if(g){var b;0===_.length?b=S(n):(b=_[n],b.useStyle(m.getBarItemStyle()),"cartesian2d"===c.type&&b.setShape("r",v),y[t]=b);var x=k[c.type](o,t),w=F(r,x,c);a.updateProps(b,{shape:w},l,t)}var M=s.getItemGraphicEl(n);if(o.hasValue(t)){if(d){var T=I[c.type](f,h);if(T)return void i.remove(M)}M?a.updateProps(M,{shape:h},l,t):M=C[c.type](t,h,r,l,!0,p),o.setItemGraphicEl(t,M),i.add(M),A(M,o,t,u,h,e,r,"polar"===c.type)}else i.remove(M)})).remove((function(e){var t=s.getItemGraphicEl(e);"cartesian2d"===c.type?t&&M(e,l,t):t&&T(e,l,t)})).execute();var x=this._backgroundGroup||(this._backgroundGroup=new h);x.removeAll();for(var w=0;w<y.length;++w)x.add(y[w]);i.add(x),this._backgroundEls=y,this._data=o},_renderLarge:function(e,t,n){this._clear(),R(e,this.group);var r=e.get("clip",!0)?m(e.coordinateSystem,!1,e):null;r?this.group.setClipPath(r):this.group.removeClipPath()},_incrementalRenderLarge:function(e,t){this._removeBackground(),R(t,this.group,!0)},dispose:o.noop,remove:function(e){this._clear(e)},_clear:function(e){var t=this.group,n=this._data;e&&e.get("animation")&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(t){"sector"===t.type?T(t.dataIndex,e,t):M(t.dataIndex,e,t)}))):t.removeAll(),this._data=null},_removeBackground:function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null}}),x=Math.max,w=Math.min,I={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var i=x(t.x,e.x),o=w(t.x+t.width,e.x+e.width),a=x(t.y,e.y),s=w(t.y+t.height,e.y+e.height);t.x=i,t.y=a,t.width=o-i,t.height=s-a;var c=t.width<0||t.height<0;return n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),c},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}r=w(t.r,e.r);var i=x(t.r0,e.r0);t.r=r,t.r0=i;var o=r-i<0;if(n<0){r=t.r;t.r=t.r0,t.r0=r}return o}},C={cartesian2d:function(e,t,n,r,i){var s=new a.Rect({shape:o.extend({},t),z2:1});if(s.name="item",r){var c=s.shape,u=n?"height":"width",l={};c[u]=0,l[u]=t[u],a[i?"updateProps":"initProps"](s,{shape:l},r,e)}return s},polar:function(e,t,n,r,i,s){var c=t.startAngle<t.endAngle,u=!n&&s?v:a.Sector,l=new u({shape:o.defaults({clockwise:c},t),z2:1});if(l.name="item",r){var d=l.shape,h=n?"r":"endAngle",f={};d[h]=n?0:t.startAngle,f[h]=t[h],a[i?"updateProps":"initProps"](l,{shape:f},r,e)}return l}};function M(e,t,n){n.style.text=null,a.updateProps(n,{shape:{width:0}},t,e,(function(){n.parent&&n.parent.remove(n)}))}function T(e,t,n){n.style.text=null,a.updateProps(n,{shape:{r:n.shape.r0}},t,e,(function(){n.parent&&n.parent.remove(n)}))}var k={cartesian2d:function(e,t,n){var r=e.getItemLayout(t),i=n?D(n,r):0,o=r.width>0?1:-1,a=r.height>0?1:-1;return{x:r.x+o*i/2,y:r.y+a*i/2,width:r.width-o*i,height:r.height-a*i}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle}}};function E(e){return null!=e.startAngle&&null!=e.endAngle&&e.startAngle===e.endAngle}function A(e,t,n,r,i,s,u,l){var d=t.getItemVisual(n,"color"),h=t.getItemVisual(n,"opacity"),f=t.getVisual("borderColor"),p=r.getModel("itemStyle"),g=r.getModel("emphasis.itemStyle").getBarItemStyle();l||e.setShape("r",p.get("barBorderRadius")||0),e.useStyle(o.defaults({stroke:E(i)?"none":f,fill:E(i)?"none":d,opacity:h},p.getBarItemStyle()));var m=r.getShallow("cursor");m&&e.attr("cursor",m);var v=u?i.height>0?"bottom":"top":i.width>0?"left":"right";l||c(e.style,g,r,d,s,n,v),E(i)&&(g.fill=g.stroke="none"),a.setHoverStyle(e,g)}function D(e,t){var n=e.get(y)||0,r=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,r,i)}var O=d.extend({type:"largeBar",shape:{points:[]},buildPath:function(e,t){for(var n=t.points,r=this.__startPoint,i=this.__baseDimIdx,o=0;o<n.length;o+=2)r[i]=n[o+i],e.moveTo(r[0],r[1]),e.lineTo(n[o],n[o+1])}});function R(e,t,n){var r=e.getData(),i=[],o=r.getLayout("valueAxisHorizontal")?1:0;i[1-o]=r.getLayout("valueAxisStart");var a=r.getLayout("largeDataIndices"),s=r.getLayout("barWidth"),c=e.getModel("backgroundStyle"),u=e.get("showBackground",!0);if(u){var l=r.getLayout("largeBackgroundPoints"),d=[];d[1-o]=r.getLayout("backgroundStart");var h=new O({shape:{points:l},incremental:!!n,__startPoint:d,__baseDimIdx:o,__largeDataIndices:a,__barWidth:s,silent:!0,z2:0});U(h,c,r),t.add(h)}var f=new O({shape:{points:r.getLayout("largePoints")},incremental:!!n,__startPoint:i,__baseDimIdx:o,__largeDataIndices:a,__barWidth:s});t.add(f),N(f,e,r),f.seriesIndex=e.seriesIndex,e.get("silent")||(f.on("mousedown",L),f.on("mousemove",L))}var L=p((function(e){var t=this,n=P(t,e.offsetX,e.offsetY);t.dataIndex=n>=0?n:null}),30,!1);function P(e,t,n){var r=e.__baseDimIdx,i=1-r,o=e.shape.points,a=e.__largeDataIndices,s=Math.abs(e.__barWidth/2),c=e.__startPoint[i];_[0]=t,_[1]=n;for(var u=_[r],l=_[1-r],d=u-s,h=u+s,f=0,p=o.length/2;f<p;f++){var g=2*f,m=o[g+r],v=o[g+i];if(m>=d&&m<=h&&(c<=v?l>=c&&l<=v:l>=v&&l<=c))return a[f]}return-1}function N(e,t,n){var r=n.getVisual("borderColor")||n.getVisual("color"),i=t.getModel("itemStyle").getItemStyle(["color","borderColor"]);e.useStyle(i),e.style.fill=null,e.style.stroke=r,e.style.lineWidth=n.getLayout("barWidth")}function U(e,t,n){var r=t.get("borderColor")||t.get("color"),i=t.getItemStyle(["color","borderColor"]);e.useStyle(i),e.style.fill=null,e.style.stroke=r,e.style.lineWidth=n.getLayout("barWidth")}function F(e,t,n){var r,i="polar"===n.type;return r=i?n.getArea():n.grid.getRect(),i?{cx:r.cx,cy:r.cy,r0:e?r.r0:t.r0,r:e?r.r:t.r,startAngle:e?t.startAngle:0,endAngle:e?t.endAngle:2*Math.PI}:{x:e?t.x:r.x,y:e?r.y:t.y,width:e?t.width:r.width,height:e?r.height:t.height}}function G(e,t,n){var r="polar"===e.type?a.Sector:a.Rect;return new r({shape:F(t,n,e),silent:!0,z2:0})}e.exports=S},"68ab":function(e,t,n){var r=n("4a3f"),i=r.quadraticProjectPoint;function o(e,t,n,r,o,a,s,c,u){if(0===s)return!1;var l=s;if(u>t+l&&u>r+l&&u>a+l||u<t-l&&u<r-l&&u<a-l||c>e+l&&c>n+l&&c>o+l||c<e-l&&c<n-l&&c<o-l)return!1;var d=i(e,t,n,r,o,a,c,u,null);return d<=l/2}t.containStroke=o},"68ee":function(e,t,n){var r=n("e330"),i=n("d039"),o=n("1626"),a=n("f5df"),s=n("d066"),c=n("8925"),u=function(){},l=[],d=s("Reflect","construct"),h=/^\s*(?:class|function)\b/,f=r(h.exec),p=!h.exec(u),g=function(e){if(!o(e))return!1;try{return d(u,l,e),!0}catch(t){return!1}},m=function(e){if(!o(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!f(h,c(e))}catch(t){return!0}};m.sham=!0,e.exports=!d||i((function(){var e;return g(g.call)||!g(Object)||!g((function(){e=!0}))||e}))?m:g},6932:function(e,t,n){var r=n("6cb7");r.registerSubTypeDefaulter("dataZoom",(function(){return"slider"}))},"697e":function(e,t,n){var r=n("4e08"),i=(r.__DEV__,n("6d8b")),o=n("18c0"),a=n("89e3"),s=n("e0d8"),c=n("3842"),u=n("9d57"),l=u.prepareLayoutBarSeries,d=u.makeColumnLayout,h=u.retrieveColumnLayout,f=n("9850");function p(e,t){var n,r,o,a=e.type,s=t.getMin(),u=t.getMax(),h=e.getExtent();"ordinal"===a?n=t.getCategories().length:(r=t.get("boundaryGap"),i.isArray(r)||(r=[r||0,r||0]),"boolean"===typeof r[0]&&(r=[0,0]),r[0]=c.parsePercent(r[0],1),r[1]=c.parsePercent(r[1],1),o=h[1]-h[0]||Math.abs(h[0])),"dataMin"===s?s=h[0]:"function"===typeof s&&(s=s({min:h[0],max:h[1]})),"dataMax"===u?u=h[1]:"function"===typeof u&&(u=u({min:h[0],max:h[1]}));var f=null!=s,p=null!=u;null==s&&(s="ordinal"===a?n?0:NaN:h[0]-r[0]*o),null==u&&(u="ordinal"===a?n?n-1:NaN:h[1]+r[1]*o),(null==s||!isFinite(s))&&(s=NaN),(null==u||!isFinite(u))&&(u=NaN),e.setBlank(i.eqNaN(s)||i.eqNaN(u)||"ordinal"===a&&!e.getOrdinalMeta().categories.length),t.getNeedCrossZero()&&(s>0&&u>0&&!f&&(s=0),s<0&&u<0&&!p&&(u=0));var m=t.ecModel;if(m&&"time"===a){var v,y=l("bar",m);if(i.each(y,(function(e){v|=e.getBaseAxis()===t.axis})),v){var _=d(y),b=g(s,u,t,_);s=b.min,u=b.max}}return{extent:[s,u],fixMin:f,fixMax:p}}function g(e,t,n,r){var o=n.axis.getExtent(),a=o[1]-o[0],s=h(r,n.axis);if(void 0===s)return{min:e,max:t};var c=1/0;i.each(s,(function(e){c=Math.min(e.offset,c)}));var u=-1/0;i.each(s,(function(e){u=Math.max(e.offset+e.width,u)})),c=Math.abs(c),u=Math.abs(u);var l=c+u,d=t-e,f=1-(c+u)/a,p=d/f-d;return t+=p*(u/l),e-=p*(c/l),{min:e,max:t}}function m(e,t){var n=p(e,t),r=n.extent,i=t.get("splitNumber");"log"===e.type&&(e.base=t.get("logBase"));var o=e.type;e.setExtent(r[0],r[1]),e.niceExtent({splitNumber:i,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:"interval"===o||"time"===o?t.get("minInterval"):null,maxInterval:"interval"===o||"time"===o?t.get("maxInterval"):null});var a=t.get("interval");null!=a&&e.setInterval&&e.setInterval(a)}function v(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new o(e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),[1/0,-1/0]);case"value":return new a;default:return(s.getClass(t)||a).create(e)}}function y(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}function _(e){var t=e.getLabelModel().get("formatter"),n="category"===e.type?e.scale.getExtent()[0]:null;return"string"===typeof t?(t=function(t){return function(n){return n=e.scale.getLabel(n),t.replace("{value}",null!=n?n:"")}}(t),t):"function"===typeof t?function(r,i){return null!=n&&(i=r-n),t(b(e,r),i)}:function(t){return e.scale.getLabel(t)}}function b(e,t){return"category"===e.type?e.scale.getLabel(t):t}function S(e){var t=e.model,n=e.scale;if(t.get("axisLabel.show")&&!n.isBlank()){var r,i,o="category"===e.type,a=n.getExtent();o?i=n.count():(r=n.getTicks(),i=r.length);var s,c=e.getLabelModel(),u=_(e),l=1;i>40&&(l=Math.ceil(i/40));for(var d=0;d<i;d+=l){var h=r?r[d]:a[0]+d,f=u(h),p=c.getTextRect(f),g=x(p,c.get("rotate")||0);s?s.union(g):s=g}return s}}function x(e,t){var n=t*Math.PI/180,r=e.plain(),i=r.width,o=r.height,a=i*Math.abs(Math.cos(n))+Math.abs(o*Math.sin(n)),s=i*Math.abs(Math.sin(n))+Math.abs(o*Math.cos(n)),c=new f(r.x,r.y,a,s);return c}function w(e){var t=e.get("interval");return null==t?"auto":t}function I(e){return"category"===e.type&&0===w(e.getLabelModel())}n("216a"),n("8c2a"),t.getScaleExtent=p,t.niceScaleExtent=m,t.createScaleByModel=v,t.ifAxisCrossZero=y,t.makeLabelFormatter=_,t.getAxisRawValue=b,t.estimateLabelUnionRect=S,t.getOptionCategoryInterval=w,t.shouldShowAllLabels=I},"697e7":function(e,t,n){var r=n("de00"),i=n("22d1"),o=n("6d8b"),a=n("d2cf"),s=n("afa0"),c=n("ed21"),u=n("30a3"),l=n("cdaa"),d=!i.canvasSupported,h={canvas:c},f={},p="4.3.2";function g(e,t){var n=new b(r(),e,t);return f[n.id]=n,n}function m(e){if(e)e.dispose();else{for(var t in f)f.hasOwnProperty(t)&&f[t].dispose();f={}}return this}function v(e){return f[e]}function y(e,t){h[e]=t}function _(e){delete f[e]}var b=function(e,t,n){n=n||{},this.dom=t,this.id=e;var r=this,c=new s,f=n.renderer;if(d){if(!h.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");f="vml"}else f&&h[f]||(f="canvas");var p=new h[f](t,c,n,e);this.storage=c,this.painter=p;var g=i.node||i.worker?null:new l(p.getViewportRoot(),p.root);this.handler=new a(c,p,g,p.root),this.animation=new u({stage:{update:o.bind(this.flush,this)}}),this.animation.start(),this._needsRefresh;var m=c.delFromStorage,v=c.addToStorage;c.delFromStorage=function(e){m.call(c,e),e&&e.removeSelfFromZr(r)},c.addToStorage=function(e){v.call(c,e),e.addSelfToZr(r)}};b.prototype={constructor:b,getId:function(){return this.id},add:function(e){this.storage.addRoot(e),this._needsRefresh=!0},remove:function(e){this.storage.delRoot(e),this._needsRefresh=!0},configLayer:function(e,t){this.painter.configLayer&&this.painter.configLayer(e,t),this._needsRefresh=!0},setBackgroundColor:function(e){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh(),this._needsRefresh=this._needsRefreshHover=!1},refresh:function(){this._needsRefresh=!0},flush:function(){var e;this._needsRefresh&&(e=!0,this.refreshImmediately()),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately()),e&&this.trigger("rendered")},addHover:function(e,t){if(this.painter.addHover){var n=this.painter.addHover(e,t);return this.refreshHover(),n}},removeHover:function(e){this.painter.removeHover&&(this.painter.removeHover(e),this.refreshHover())},clearHover:function(){this.painter.clearHover&&(this.painter.clearHover(),this.refreshHover())},refreshHover:function(){this._needsRefreshHover=!0},refreshHoverImmediately:function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.refreshHover()},resize:function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},pathToImage:function(e,t){return this.painter.pathToImage(e,t)},setCursorStyle:function(e){this.handler.setCursorStyle(e)},findHover:function(e,t){return this.handler.findHover(e,t)},on:function(e,t,n){this.handler.on(e,t,n)},off:function(e,t){this.handler.off(e,t)},trigger:function(e,t){this.handler.trigger(e,t)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,_(this.id)}},t.version=p,t.init=g,t.dispose=m,t.getInstance=v,t.registerPainter=y},"69f3":function(e,t,n){var r,i,o,a=n("7f9a"),s=n("da84"),c=n("e330"),u=n("861d"),l=n("9112"),d=n("1a2d"),h=n("c6cd"),f=n("f772"),p=n("d012"),g="Object already initialized",m=s.TypeError,v=s.WeakMap,y=function(e){return o(e)?i(e):r(e,{})},_=function(e){return function(t){var n;if(!u(t)||(n=i(t)).type!==e)throw m("Incompatible receiver, "+e+" required");return n}};if(a||h.state){var b=h.state||(h.state=new v),S=c(b.get),x=c(b.has),w=c(b.set);r=function(e,t){if(x(b,e))throw new m(g);return t.facade=e,w(b,e,t),t},i=function(e){return S(b,e)||{}},o=function(e){return x(b,e)}}else{var I=f("state");p[I]=!0,r=function(e,t){if(d(e,I))throw new m(g);return t.facade=e,l(e,I,t),t},i=function(e){return d(e,I)?e[I]:{}},o=function(e){return d(e,I)}}e.exports={set:r,get:i,has:o,enforce:y,getterFor:_}},"69ff":function(e,t,n){var r=n("6d8b"),i=r.each,o=r.map,a=r.isFunction,s=r.createHashMap,c=r.noop,u=n("f47d"),l=u.createTask,d=n("8918"),h=d.getUID,f=n("7e63"),p=n("843e"),g=n("e0d3"),m=g.normalizeToArray;function v(e,t,n,r){this.ecInstance=e,this.api=t,this.unfinished;n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice();this._allHandlers=n.concat(r),this._stageTaskMap=s()}var y=v.prototype;function _(e,t,n,r,o){var a;function s(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}o=o||{},i(t,(function(t,i){if(!o.visualType||o.visualType===t.visualType){var c=e._stageTaskMap.get(t.uid),u=c.seriesTaskMap,l=c.overallTask;if(l){var d,h=l.agentStubMap;h.each((function(e){s(o,e)&&(e.dirty(),d=!0)})),d&&l.dirty(),b(l,r);var f=e.getPerformArgs(l,o.block);h.each((function(e){e.perform(f)})),a|=l.perform(f)}else u&&u.each((function(i,c){s(o,i)&&i.dirty();var u=e.getPerformArgs(i,o.block);u.skip=!t.performRawSeries&&n.isSeriesFiltered(i.context.model),b(i,r),a|=i.perform(u)}))}})),e.unfinished|=a}y.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each((function(e){var t=e.overallTask;t&&t.dirty()}))},y.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),r=n.context,i=!t&&n.progressiveEnabled&&(!r||r.progressiveRender)&&e.__idxInPipeline>n.blockIndex,o=i?n.step:null,a=r&&r.modDataCount,s=null!=a?Math.ceil(a/o):null;return{step:o,modBy:s,modDataCount:a}}},y.getPipeline=function(e){return this._pipelineMap.get(e)},y.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),r=e.getData(),i=r.count(),o=n.progressiveEnabled&&t.incrementalPrepareRender&&i>=n.threshold,a=e.get("large")&&i>=e.get("largeThreshold"),s="mod"===e.get("progressiveChunkMode")?i:null;e.pipelineContext=n.context={progressiveRender:o,modDataCount:s,large:a}},y.restorePipelines=function(e){var t=this,n=t._pipelineMap=s();e.eachSeries((function(e){var r=e.getProgressive(),i=e.uid;n.set(i,{id:i,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:r&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),O(t,e,e.dataTask)}))},y.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.ecInstance.getModel(),n=this.api;i(this._allHandlers,(function(r){var i=e.get(r.uid)||e.set(r.uid,[]);r.reset&&S(this,r,i,t,n),r.overallReset&&x(this,r,i,t,n)}),this)},y.prepareView=function(e,t,n,r){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=n,o.api=r,i.__block=!e.incrementalPrepareRender,O(this,t,i)},y.performDataProcessorTasks=function(e,t){_(this,this._dataProcessorHandlers,e,t,{block:!0})},y.performVisualTasks=function(e,t,n){_(this,this._visualHandlers,e,t,n)},y.performSeriesTasks=function(e){var t;e.eachSeries((function(e){t|=e.dataTask.perform()})),this.unfinished|=t},y.plan=function(){this._pipelineMap.each((function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)}))};var b=y.updatePayload=function(e,t){"remain"!==t&&(e.context.payload=t)};function S(e,t,n,r,i){var o=n.seriesTaskMap||(n.seriesTaskMap=s()),a=t.seriesType,c=t.getTargetSeries;function u(n){var a=n.uid,s=o.get(a)||o.set(a,l({plan:T,reset:k,count:D}));s.context={model:n,ecModel:r,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:e},O(e,n,s)}t.createOnAllSeries?r.eachRawSeries(u):a?r.eachRawSeriesByType(a,u):c&&c(r,i).each(u);var d=e._pipelineMap;o.each((function(e,t){d.get(t)||(e.dispose(),o.removeKey(t))}))}function x(e,t,n,r,o){var a=n.overallTask=n.overallTask||l({reset:w});a.context={ecModel:r,api:o,overallReset:t.overallReset,scheduler:e};var c=a.agentStubMap=a.agentStubMap||s(),u=t.seriesType,d=t.getTargetSeries,h=!0,f=t.modifyOutputEnd;function p(t){var n=t.uid,r=c.get(n);r||(r=c.set(n,l({reset:I,onDirty:M})),a.dirty()),r.context={model:t,overallProgress:h,modifyOutputEnd:f},r.agent=a,r.__block=h,O(e,t,r)}u?r.eachRawSeriesByType(u,p):d?d(r,o).each(p):(h=!1,i(r.getSeries(),p));var g=e._pipelineMap;c.each((function(e,t){g.get(t)||(e.dispose(),a.dirty(),c.removeKey(t))}))}function w(e){e.overallReset(e.ecModel,e.api,e.payload)}function I(e,t){return e.overallProgress&&C}function C(){this.agent.dirty(),this.getDownstream().dirty()}function M(){this.agent&&this.agent.dirty()}function T(e){return e.plan&&e.plan(e.model,e.ecModel,e.api,e.payload)}function k(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=m(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?o(t,(function(e,t){return A(t)})):E}var E=A(0);function A(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var o=t.start;o<t.end;o++)i.dataEach(r,o);else i&&i.progress&&i.progress(t,r)}}function D(e){return e.data.count()}function O(e,t,n){var r=t.uid,i=e._pipelineMap.get(r);!i.head&&(i.head=n),i.tail&&i.tail.pipe(n),i.tail=n,n.__idxInPipeline=i.count++,n.__pipeline=i}function R(e){L=null;try{e(P,N)}catch(t){}return L}v.wrapStageHandler=function(e,t){return a(e)&&(e={overallReset:e,seriesType:R(e)}),e.uid=h("stageHandler"),t&&(e.visualType=t),e};var L,P={},N={};function U(e,t){for(var n in t.prototype)e[n]=c}U(P,f),U(N,p),P.eachSeriesByType=P.eachRawSeriesByType=function(e){L=e},P.eachComponent=function(e){"series"===e.mainType&&e.subType&&(L=e.subType)};var F=v;e.exports=F},"6a4c":function(e,t,n){var r=n("4527"),i=n("6d8b"),o=n("0fd3"),a=n("401b");function s(e,t,n){o.call(this,e,t,n),this._lastFrame=0,this._lastFramePercent=0}var c=s.prototype;c.createLine=function(e,t,n){return new r(e,t,n)},c.updateAnimationPoints=function(e,t){this._points=t;for(var n=[0],r=0,i=1;i<t.length;i++){var o=t[i-1],s=t[i];r+=a.dist(o,s),n.push(r)}if(0!==r){for(i=0;i<n.length;i++)n[i]/=r;this._offsets=n,this._length=r}},c.getLineLength=function(e){return this._length},c.updateSymbolPosition=function(e){var t=e.__t,n=this._points,r=this._offsets,i=n.length;if(r){var o=this._lastFrame;if(t<this._lastFramePercent){var s=Math.min(o+1,i-1);for(c=s;c>=0;c--)if(r[c]<=t)break;c=Math.min(c,i-2)}else{for(var c=o;c<i;c++)if(r[c]>t)break;c=Math.min(c-1,i-2)}a.lerp(e.position,n[c],n[c+1],(t-r[c])/(r[c+1]-r[c]));var u=n[c+1][0]-n[c][0],l=n[c+1][1]-n[c][1];e.rotation=-Math.atan2(l,u)-Math.PI/2,this._lastFrame=c,this._lastFramePercent=t,e.ignore=!1}},i.inherits(s,o);var u=s;e.exports=u},"6acf":function(e,t,n){var r=n("eda2"),i=n("dcb3"),o=n("2306"),a=n("ff2e"),s=n("1687"),c=n("fab2"),u=n("6679"),l=i.extend({makeElOption:function(e,t,n,i,o){var s=n.axis;"angle"===s.dim&&(this.animationThreshold=Math.PI/18);var c,u=s.polar,l=u.getOtherAxis(s),f=l.getExtent();c=s["dataTo"+r.capitalFirst(s.dim)](t);var p=i.get("type");if(p&&"none"!==p){var g=a.buildElStyle(i),m=h[p](s,u,c,f,g);m.style=g,e.graphicKey=m.type,e.pointer=m}var v=i.get("label.margin"),y=d(t,n,i,u,v);a.buildLabelElOption(e,n,i,o,y)}});function d(e,t,n,r,i){var a=t.axis,u=a.dataToCoord(e),l=r.getAngleAxis().getExtent()[0];l=l/180*Math.PI;var d,h,f,p=r.getRadiusAxis().getExtent();if("radius"===a.dim){var g=s.create();s.rotate(g,g,l),s.translate(g,g,[r.cx,r.cy]),d=o.applyTransform([u,-i],g);var m=t.getModel("axisLabel").get("rotate")||0,v=c.innerTextLayout(l,m*Math.PI/180,-1);h=v.textAlign,f=v.textVerticalAlign}else{var y=p[1];d=r.coordToPoint([y+i,u]);var _=r.cx,b=r.cy;h=Math.abs(d[0]-_)/y<.3?"center":d[0]>_?"left":"right",f=Math.abs(d[1]-b)/y<.3?"middle":d[1]>b?"top":"bottom"}return{position:d,align:h,verticalAlign:f}}var h={line:function(e,t,n,r,i){return"angle"===e.dim?{type:"Line",shape:a.makeLineShape(t.coordToPoint([r[0],n]),t.coordToPoint([r[1],n]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,r,i){var o=Math.max(1,e.getBandWidth()),s=Math.PI/180;return"angle"===e.dim?{type:"Sector",shape:a.makeSectorShape(t.cx,t.cy,r[0],r[1],(-n-o/2)*s,(o/2-n)*s)}:{type:"Sector",shape:a.makeSectorShape(t.cx,t.cy,n-o/2,n+o/2,0,2*Math.PI)}}};u.registerAxisPointerClass("PolarAxisPointer",l);var f=l;e.exports=f},"6b75":function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return r}))},"6b7c":function(e,t,n){"use strict";t.__esModule=!0;var r=n("4897");t.default={methods:{t:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.t.apply(this,t)}}}},"6bd4":function(e,t){var n={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};function r(e,t){if("world"===e){var r=n[t.name];if(r){var i=t.center;i[0]=r[0],i[1]=r[1]}}}e.exports=r},"6c02":function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"changeDefaultConfig",{enumerable:!0,get:function(){return o.changeDefaultConfig}}),t["default"]=void 0;var i=r(n("04fb")),o=n("9d85"),a=i["default"];t["default"]=a},"6c12":function(e,t,n){var r=n("4e08"),i=(r.__DEV__,n("3eba")),o=n("6d8b"),a=n("fab2"),s=n("2306"),c=["axisLine","axisTickLabel","axisName"],u=i.extendComponentView({type:"radar",render:function(e,t,n){var r=this.group;r.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},_buildAxes:function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes(),r=o.map(n,(function(e){var n=new a(e.model,{position:[t.cx,t.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return n}));o.each(r,(function(e){o.each(c,e.add,e),this.group.add(e.getGroup())}),this)},_buildSplitLineAndArea:function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes();if(n.length){var r=e.get("shape"),i=e.getModel("splitLine"),a=e.getModel("splitArea"),c=i.getModel("lineStyle"),u=a.getModel("areaStyle"),l=i.get("show"),d=a.get("show"),h=c.get("color"),f=u.get("color");h=o.isArray(h)?h:[h],f=o.isArray(f)?f:[f];var p=[],g=[];if("circle"===r)for(var m=n[0].getTicksCoords(),v=t.cx,y=t.cy,_=0;_<m.length;_++){if(l){var b=k(p,h,_);p[b].push(new s.Circle({shape:{cx:v,cy:y,r:m[_].coord}}))}if(d&&_<m.length-1){b=k(g,f,_);g[b].push(new s.Ring({shape:{cx:v,cy:y,r0:m[_].coord,r:m[_+1].coord}}))}}else{var S,x=o.map(n,(function(e,n){var r=e.getTicksCoords();return S=null==S?r.length-1:Math.min(r.length-1,S),o.map(r,(function(e){return t.coordToPoint(e.coord,n)}))})),w=[];for(_=0;_<=S;_++){for(var I=[],C=0;C<n.length;C++)I.push(x[C][_]);if(I[0]&&I.push(I[0].slice()),l){b=k(p,h,_);p[b].push(new s.Polyline({shape:{points:I}}))}if(d&&w){b=k(g,f,_-1);g[b].push(new s.Polygon({shape:{points:I.concat(w)}}))}w=I.slice().reverse()}}var M=c.getLineStyle(),T=u.getAreaStyle();o.each(g,(function(e,t){this.group.add(s.mergePath(e,{style:o.defaults({stroke:"none",fill:f[t%f.length]},T),silent:!0}))}),this),o.each(p,(function(e,t){this.group.add(s.mergePath(e,{style:o.defaults({fill:"none",stroke:h[t%h.length]},M),silent:!0}))}),this)}function k(e,t,n){var r=n%t.length;return e[r]=e[r]||[],r}}});e.exports=u},"6c12f":function(e,t,n){var r=n("3eba");n("2cfc"),n("adf4"),n("255c");var i=n("527a"),o=n("71b2"),a=n("d3f4");r.registerLayout(i),r.registerVisual(o),r.registerProcessor(a("themeRiver"))},"6c29":function(e,t,n){"use strict";n("62fd");var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"dv-active-ring-chart"},[n("div",{ref:"active-ring-chart",staticClass:"active-ring-chart-container"}),n("div",{staticClass:"active-ring-info"},[n("dv-digital-flop",{attrs:{config:e.digitalFlop}}),n("div",{staticClass:"active-ring-name",style:e.fontSize},[e._v(e._s(e.ringName))])],1)])},i=[],o=n("2909"),a=n("5530"),s=(n("d81d"),n("d3b7"),n("b0c0"),n("159b"),n("6c02")),c=n.n(s),u=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"dv-digital-flop"},[n("canvas",{ref:"digital-flop"})])},l=[];function d(e){if(Array.isArray(e))return e}n("a4d3"),n("e01a"),n("d28b"),n("3ca3"),n("ddb0");function h(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done);a=!0)if(o.push(r.value),t&&o.length===t)break}catch(c){s=!0,i=c}finally{try{a||null==n["return"]||n["return"]()}finally{if(s)throw i}}return o}}var f=n("06c5");n("d9e2");function p(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function g(e,t){return d(e)||h(e,t)||Object(f["a"])(e,t)||p()}n("b680");var m=n("9886"),v=n.n(m),y=(n("0ca1"),n("becb")),_=n("5557"),b={name:"DvDigitalFlop",props:{config:{type:Object,default:function(){return{}}}},data:function(){return{renderer:null,defaultConfig:{number:[],content:"",toFixed:0,textAlign:"center",rowGap:0,style:{fontSize:30,fill:"#3de7c9"},formatter:void 0,animationCurve:"easeOutCubic",animationFrame:50},mergedConfig:null,graph:null}},watch:{config:function(){var e=this.update;e()}},methods:{init:function(){var e=this.initRender,t=this.mergeConfig,n=this.initGraph;e(),t(),n()},initRender:function(){var e=this.$refs;this.renderer=new v.a(e["digital-flop"])},mergeConfig:function(){var e=this.defaultConfig,t=this.config;this.mergedConfig=Object(y["deepMerge"])(Object(_["deepClone"])(e,!0),t||{})},initGraph:function(){var e=this.getShape,t=this.getStyle,n=this.renderer,r=this.mergedConfig,i=r.animationCurve,o=r.animationFrame,a=e(),s=t();this.graph=n.add({name:"numberText",animationCurve:i,animationFrame:o,shape:a,style:s})},getShape:function(){var e=this.mergedConfig,t=e.number,n=e.content,r=e.toFixed,i=e.textAlign,o=e.rowGap,a=e.formatter,s=g(this.renderer.area,2),c=s[0],u=s[1],l=[c/2,u/2];return"left"===i&&(l[0]=0),"right"===i&&(l[0]=c),{number:t,content:n,toFixed:r,position:l,rowGap:o,formatter:a}},getStyle:function(){var e=this.mergedConfig,t=e.style,n=e.textAlign;return Object(y["deepMerge"])(t,{textAlign:n,textBaseline:"middle"})},update:function(){var e=this.mergeConfig,t=this.mergeShape,n=this.getShape,r=this.getStyle,i=this.graph,o=this.mergedConfig;if(i.animationEnd(),e(),i){var a=o.animationCurve,s=o.animationFrame,c=n(),u=r();t(i,c),i.animationCurve=a,i.animationFrame=s,i.animation("style",u,!0),i.animation("shape",c)}},mergeShape:function(e,t){var n=e.shape.number.length,r=t.number.length;n!==r&&(e.shape.number=t.number)}},mounted:function(){var e=this.init;e()}},S=b,x=n("2877"),w=Object(x["a"])(S,u,l,!1,null,null,null),I=w.exports,C={name:"DvActiveRingChart",components:{dvDigitalFlop:I},props:{config:{type:Object,default:function(){return{}}}},data:function(){return{defaultConfig:{radius:"50%",activeRadius:"55%",data:[{name:"",value:0}],lineWidth:20,activeTimeGap:3e3,color:[],digitalFlopStyle:{fontSize:25,fill:"#fff"},digitalFlopToFixed:0,digitalFlopUnit:"",animationCurve:"easeOutCubic",animationFrame:50,showOriginValue:!1},mergedConfig:null,chart:null,activeIndex:0,animationHandler:""}},computed:{digitalFlop:function(){var e=this.mergedConfig,t=this.activeIndex;if(!e)return{};var n,r=e.digitalFlopStyle,i=e.digitalFlopToFixed,o=e.data,a=e.showOriginValue,s=e.digitalFlopUnit,c=o.map((function(e){var t=e.value;return t}));if(a)n=c[t];else{var u=c.reduce((function(e,t){return e+t}),0),l=parseFloat(c[t]/u*100)||0;n=l}return{content:"{nt}".concat(a?s:s||"%"),number:[n],style:r,toFixed:i}},ringName:function(){var e=this.mergedConfig,t=this.activeIndex;return e?e.data[t].name:""},fontSize:function(){var e=this.mergedConfig;return e?"font-size: ".concat(e.digitalFlopStyle.fontSize,"px;"):""}},watch:{config:function(){var e=this.animationHandler,t=this.mergeConfig,n=this.setRingOption;clearTimeout(e),this.activeIndex=0,t(),n()}},methods:{init:function(){var e=this.initChart,t=this.mergeConfig,n=this.setRingOption;e(),t(),n()},initChart:function(){var e=this.$refs;this.chart=new c.a(e["active-ring-chart"])},mergeConfig:function(){var e=this.defaultConfig,t=this.config;this.mergedConfig=Object(y["deepMerge"])(Object(_["deepClone"])(e,!0),t||{})},setRingOption:function(){var e=this.getRingOption,t=this.chart,n=this.ringAnimation,r=e();t.setOption(r,!0),n()},getRingOption:function(){var e=this.mergedConfig,t=this.getRealRadius,n=t();return e.data.forEach((function(e){e.radius=n})),{series:[Object(a["a"])(Object(a["a"])({type:"pie"},e),{},{outsideLabel:{show:!1}})],color:e.color}},getRealRadius:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.mergedConfig,n=this.chart,r=t.radius,i=t.activeRadius,a=t.lineWidth,s=Math.min.apply(Math,Object(o["a"])(n.render.area))/2,c=a/2,u=e?i:r;"number"!==typeof u&&(u=parseInt(u)/100*s);var l=u-c,d=u+c;return[l,d]},ringAnimation:function(){var e=this,t=this.activeIndex,n=this.getRingOption,r=this.chart,i=this.getRealRadius,o=i(),a=i(!0),s=n(),c=s.series[0].data;c.forEach((function(e,n){e.radius=n===t?a:o})),r.setOption(s,!0);var u=s.series[0].activeTimeGap;this.animationHandler=setTimeout((function(n){t+=1,t>=c.length&&(t=0),e.activeIndex=t,e.ringAnimation()}),u)}},mounted:function(){var e=this.init;e()},beforeDestroy:function(){var e=this.animationHandler;clearTimeout(e)}},M=C,T=Object(x["a"])(M,r,i,!1,null,null,null),k=T.exports,E=function(e){e.component(k.name,k)},A=(n("fe7b"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:e.ref,staticClass:"dv-border-box-1"},[n("svg",{staticClass:"border",attrs:{width:e.width,height:e.height}},[n("polygon",{attrs:{fill:e.backgroundColor,points:"10, 27 10, "+(e.height-27)+" 13, "+(e.height-24)+" 13, "+(e.height-21)+" 24, "+(e.height-11)+"\n    38, "+(e.height-11)+" 41, "+(e.height-8)+" 73, "+(e.height-8)+" 75, "+(e.height-10)+" 81, "+(e.height-10)+"\n    85, "+(e.height-6)+" "+(e.width-85)+", "+(e.height-6)+" "+(e.width-81)+", "+(e.height-10)+" "+(e.width-75)+", "+(e.height-10)+"\n    "+(e.width-73)+", "+(e.height-8)+" "+(e.width-41)+", "+(e.height-8)+" "+(e.width-38)+", "+(e.height-11)+"\n    "+(e.width-24)+", "+(e.height-11)+" "+(e.width-13)+", "+(e.height-21)+" "+(e.width-13)+", "+(e.height-24)+"\n    "+(e.width-10)+", "+(e.height-27)+" "+(e.width-10)+", 27 "+(e.width-13)+", 25 "+(e.width-13)+", 21\n    "+(e.width-24)+", 11 "+(e.width-38)+", 11 "+(e.width-41)+", 8 "+(e.width-73)+", 8 "+(e.width-75)+", 10\n    "+(e.width-81)+", 10 "+(e.width-85)+", 6 85, 6 81, 10 75, 10 73, 8 41, 8 38, 11 24, 11 13, 21 13, 24"}})]),e._l(e.border,(function(t){return n("svg",{key:t,class:t+" border",attrs:{width:"150px",height:"150px"}},[n("polygon",{attrs:{fill:e.mergedColor[0],points:"6,66 6,18 12,12 18,12 24,6 27,6 30,9 36,9 39,6 84,6 81,9 75,9 73.2,7 40.8,7 37.8,10.2 24,10.2 12,21 12,24 9,27 9,51 7.8,54 7.8,63"}},[n("animate",{attrs:{attributeName:"fill",values:e.mergedColor[0]+";"+e.mergedColor[1]+";"+e.mergedColor[0],dur:"0.5s",begin:"0s",repeatCount:"indefinite"}})]),n("polygon",{attrs:{fill:e.mergedColor[1],points:"27.599999999999998,4.8 38.4,4.8 35.4,7.8 30.599999999999998,7.8"}},[n("animate",{attrs:{attributeName:"fill",values:e.mergedColor[1]+";"+e.mergedColor[0]+";"+e.mergedColor[1],dur:"0.5s",begin:"0s",repeatCount:"indefinite"}})]),n("polygon",{attrs:{fill:e.mergedColor[0],points:"9,54 9,63 7.199999999999999,66 7.199999999999999,75 7.8,78 7.8,110 8.4,110 8.4,66 9.6,66 9.6,54"}},[n("animate",{attrs:{attributeName:"fill",values:e.mergedColor[0]+";"+e.mergedColor[1]+";transparent",dur:"1s",begin:"0s",repeatCount:"indefinite"}})])])})),n("div",{staticClass:"border-box-content"},[e._t("default")],2)],2)}),D=[];function O(e,t){return 1===arguments.length?parseInt(Math.random()*e+1,10):parseInt(Math.random()*(t-e+1)+e,10)}function R(e,t){let n;return function(){clearTimeout(n);const[r,i]=[this,arguments];n=setTimeout(()=>{t.apply(r,i)},e)}}function L(e,t){const n=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,r=new n(t);return r.observe(e,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0}),r}function P(e,t){const n=Math.abs(e[0]-t[0]),r=Math.abs(e[1]-t[1]);return Math.sqrt(n*n+r*r)}function N(e){return(e?"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx":"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx").replace(/[xy]/g,(function(e){const t=16*Math.random()|0,n="x"==e?t:3&t|8;return n.toString(16)}))}var U={data(){return{dom:"",width:0,height:0,debounceInitWHFun:"",domObserver:""}},methods:{async autoResizeMixinInit(){const{initWH:e,getDebounceInitWHFun:t,bindDomResizeCallback:n,afterAutoResizeMixinInit:r}=this;await e(!1),t(),n(),"function"===typeof r&&r()},initWH(e=!0){const{$nextTick:t,$refs:n,ref:r,onResize:i}=this;return new Promise(o=>{t(t=>{const a=this.dom=n[r];this.width=a?a.clientWidth:0,this.height=a?a.clientHeight:0,a?this.width&&this.height||console.warn("DataV: Component width or height is 0px, rendering abnormality may occur!"):console.warn("DataV: Failed to get dom node, component rendering may be abnormal!"),"function"===typeof i&&e&&i(),o()})})},getDebounceInitWHFun(){const{initWH:e}=this;this.debounceInitWHFun=R(100,e)},bindDomResizeCallback(){const{dom:e,debounceInitWHFun:t}=this;this.domObserver=L(e,t),window.addEventListener("resize",t)},unbindDomResizeCallback(){let{domObserver:e,debounceInitWHFun:t}=this;e&&(e.disconnect(),e.takeRecords(),e=null,window.removeEventListener("resize",t))}},mounted(){const{autoResizeMixinInit:e}=this;e()},beforeDestroy(){const{unbindDomResizeCallback:e}=this;e()}},F={name:"DvBorderBox1",mixins:[U],props:{color:{type:Array,default:function(){return[]}},backgroundColor:{type:String,default:"transparent"}},data:function(){return{ref:"border-box-1",border:["left-top","right-top","left-bottom","right-bottom"],defaultColor:["#4fd2dd","#235fa7"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(y["deepMerge"])(Object(_["deepClone"])(t,!0),e||[])}},mounted:function(){var e=this.mergeColor;e()}},G=F,V=Object(x["a"])(G,A,D,!1,null,null,null),j=V.exports,B=function(e){e.component(j.name,j)},z=(n("6ccd"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:e.ref,staticClass:"dv-border-box-10",style:"box-shadow: inset 0 0 25px 3px "+e.mergedColor[0]},[n("svg",{staticClass:"dv-border-svg-container",attrs:{width:e.width,height:e.height}},[n("polygon",{attrs:{fill:e.backgroundColor,points:"\n      4, 0 "+(e.width-4)+", 0 "+e.width+", 4 "+e.width+", "+(e.height-4)+" "+(e.width-4)+", "+e.height+"\n      4, "+e.height+" 0, "+(e.height-4)+" 0, 4\n    "}})]),e._l(e.border,(function(t){return n("svg",{key:t,class:t+" dv-border-svg-container",attrs:{width:"150px",height:"150px"}},[n("polygon",{attrs:{fill:e.mergedColor[1],points:"40, 0 5, 0 0, 5 0, 16 3, 19 3, 7 7, 3 35, 3"}})])})),n("div",{staticClass:"border-box-content"},[e._t("default")],2)],2)}),H=[],W={name:"DvBorderBox10",mixins:[U],props:{color:{type:Array,default:function(){return[]}},backgroundColor:{type:String,default:"transparent"}},data:function(){return{ref:"border-box-10",border:["left-top","right-top","left-bottom","right-bottom"],defaultColor:["#1d48c4","#d3e1f8"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(y["deepMerge"])(Object(_["deepClone"])(t,!0),e||[])}},mounted:function(){var e=this.mergeColor;e()}},q=W,$=Object(x["a"])(q,z,H,!1,null,null,null),K=$.exports,Y=function(e){e.component(K.name,K)},J=(n("4656"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:e.ref,staticClass:"dv-border-box-11"},[n("svg",{staticClass:"dv-border-svg-container",attrs:{width:e.width,height:e.height}},[n("defs",[n("filter",{attrs:{id:e.filterId,height:"150%",width:"150%",x:"-25%",y:"-25%"}},[n("feMorphology",{attrs:{operator:"dilate",radius:"2",in:"SourceAlpha",result:"thicken"}}),n("feGaussianBlur",{attrs:{in:"thicken",stdDeviation:"3",result:"blurred"}}),n("feFlood",{attrs:{"flood-color":e.mergedColor[1],result:"glowColor"}}),n("feComposite",{attrs:{in:"glowColor",in2:"blurred",operator:"in",result:"softGlowColored"}}),n("feMerge",[n("feMergeNode",{attrs:{in:"softGlowColored"}}),n("feMergeNode",{attrs:{in:"SourceGraphic"}})],1)],1)]),n("polygon",{attrs:{fill:e.backgroundColor,points:"\n      20, 32 "+(.5*e.width-e.titleWidth/2)+", 32 "+(.5*e.width-e.titleWidth/2+20)+", 53\n      "+(.5*e.width+e.titleWidth/2-20)+", 53 "+(.5*e.width+e.titleWidth/2)+", 32\n      "+(e.width-20)+", 32 "+(e.width-8)+", 48 "+(e.width-8)+", "+(e.height-25)+" "+(e.width-20)+", "+(e.height-8)+"\n      20, "+(e.height-8)+" 8, "+(e.height-25)+" 8, 50\n    "}}),n("polyline",{attrs:{stroke:e.mergedColor[0],filter:"url(#"+e.filterId+")",points:"\n        "+(e.width-e.titleWidth)/2+", 30\n        20, 30 7, 50 7, "+(50+(e.height-167)/2)+"\n        13, "+(55+(e.height-167)/2)+" 13, "+(135+(e.height-167)/2)+"\n        7, "+(140+(e.height-167)/2)+" 7, "+(e.height-27)+"\n        20, "+(e.height-7)+" "+(e.width-20)+", "+(e.height-7)+" "+(e.width-7)+", "+(e.height-27)+"\n        "+(e.width-7)+", "+(140+(e.height-167)/2)+" "+(e.width-13)+", "+(135+(e.height-167)/2)+"\n        "+(e.width-13)+", "+(55+(e.height-167)/2)+" "+(e.width-7)+", "+(50+(e.height-167)/2)+"\n        "+(e.width-7)+", 50 "+(e.width-20)+", 30 "+(e.width+e.titleWidth)/2+", 30\n        "+((e.width+e.titleWidth)/2-20)+", 7 "+((e.width-e.titleWidth)/2+20)+", 7\n        "+(e.width-e.titleWidth)/2+", 30 "+((e.width-e.titleWidth)/2+20)+", 52\n        "+((e.width+e.titleWidth)/2-20)+", 52 "+(e.width+e.titleWidth)/2+", 30\n      "}}),n("polygon",{attrs:{stroke:e.mergedColor[0],fill:"transparent",points:"\n        "+((e.width+e.titleWidth)/2-5)+", 30 "+((e.width+e.titleWidth)/2-21)+", 11\n        "+((e.width+e.titleWidth)/2-27)+", 11 "+((e.width+e.titleWidth)/2-8)+", 34\n      "}}),n("polygon",{attrs:{stroke:e.mergedColor[0],fill:"transparent",points:"\n        "+((e.width-e.titleWidth)/2+5)+", 30 "+((e.width-e.titleWidth)/2+22)+", 49\n        "+((e.width-e.titleWidth)/2+28)+", 49 "+((e.width-e.titleWidth)/2+8)+", 26\n      "}}),n("polygon",{attrs:{stroke:e.mergedColor[0],fill:e.fade(e.mergedColor[1]||e.defaultColor[1],30),filter:"url(#"+e.filterId+")",points:"\n        "+((e.width+e.titleWidth)/2-11)+", 37 "+((e.width+e.titleWidth)/2-32)+", 11\n        "+((e.width-e.titleWidth)/2+23)+", 11 "+((e.width-e.titleWidth)/2+11)+", 23\n        "+((e.width-e.titleWidth)/2+33)+", 49 "+((e.width+e.titleWidth)/2-22)+", 49\n      "}}),n("polygon",{attrs:{filter:"url(#"+e.filterId+")",fill:e.mergedColor[0],opacity:"1",points:"\n        "+((e.width-e.titleWidth)/2-10)+", 37 "+((e.width-e.titleWidth)/2-31)+", 37\n        "+((e.width-e.titleWidth)/2-25)+", 46 "+((e.width-e.titleWidth)/2-4)+", 46\n      "}},[n("animate",{attrs:{attributeName:"opacity",values:"1;0.7;1",dur:"2s",begin:"0s",repeatCount:"indefinite"}})]),n("polygon",{attrs:{filter:"url(#"+e.filterId+")",fill:e.mergedColor[0],opacity:"0.7",points:"\n        "+((e.width-e.titleWidth)/2-40)+", 37 "+((e.width-e.titleWidth)/2-61)+", 37\n        "+((e.width-e.titleWidth)/2-55)+", 46 "+((e.width-e.titleWidth)/2-34)+", 46\n      "}},[n("animate",{attrs:{attributeName:"opacity",values:"0.7;0.4;0.7",dur:"2s",begin:"0s",repeatCount:"indefinite"}})]),n("polygon",{attrs:{filter:"url(#"+e.filterId+")",fill:e.mergedColor[0],opacity:"0.5",points:"\n        "+((e.width-e.titleWidth)/2-70)+", 37 "+((e.width-e.titleWidth)/2-91)+", 37\n        "+((e.width-e.titleWidth)/2-85)+", 46 "+((e.width-e.titleWidth)/2-64)+", 46\n      "}},[n("animate",{attrs:{attributeName:"opacity",values:"0.5;0.2;0.5",dur:"2s",begin:"0s",repeatCount:"indefinite"}})]),n("polygon",{attrs:{filter:"url(#"+e.filterId+")",fill:e.mergedColor[0],opacity:"1",points:"\n        "+((e.width+e.titleWidth)/2+30)+", 37 "+((e.width+e.titleWidth)/2+9)+", 37\n        "+((e.width+e.titleWidth)/2+3)+", 46 "+((e.width+e.titleWidth)/2+24)+", 46\n      "}},[n("animate",{attrs:{attributeName:"opacity",values:"1;0.7;1",dur:"2s",begin:"0s",repeatCount:"indefinite"}})]),n("polygon",{attrs:{filter:"url(#"+e.filterId+")",fill:e.mergedColor[0],opacity:"0.7",points:"\n        "+((e.width+e.titleWidth)/2+60)+", 37 "+((e.width+e.titleWidth)/2+39)+", 37\n        "+((e.width+e.titleWidth)/2+33)+", 46 "+((e.width+e.titleWidth)/2+54)+", 46\n      "}},[n("animate",{attrs:{attributeName:"opacity",values:"0.7;0.4;0.7",dur:"2s",begin:"0s",repeatCount:"indefinite"}})]),n("polygon",{attrs:{filter:"url(#"+e.filterId+")",fill:e.mergedColor[0],opacity:"0.5",points:"\n        "+((e.width+e.titleWidth)/2+90)+", 37 "+((e.width+e.titleWidth)/2+69)+", 37\n        "+((e.width+e.titleWidth)/2+63)+", 46 "+((e.width+e.titleWidth)/2+84)+", 46\n      "}},[n("animate",{attrs:{attributeName:"opacity",values:"0.5;0.2;0.5",dur:"2s",begin:"0s",repeatCount:"indefinite"}})]),n("text",{staticClass:"dv-border-box-11-title",attrs:{x:""+e.width/2,y:"32",fill:"#fff","font-size":"18","text-anchor":"middle","dominant-baseline":"middle"}},[e._v(" "+e._s(e.title)+" ")]),n("polygon",{attrs:{fill:e.mergedColor[0],filter:"url(#"+e.filterId+")",points:"\n        7, "+(53+(e.height-167)/2)+" 11, "+(57+(e.height-167)/2)+"\n        11, "+(133+(e.height-167)/2)+" 7, "+(137+(e.height-167)/2)+"\n      "}}),n("polygon",{attrs:{fill:e.mergedColor[0],filter:"url(#"+e.filterId+")",points:"\n        "+(e.width-7)+", "+(53+(e.height-167)/2)+" "+(e.width-11)+", "+(57+(e.height-167)/2)+"\n        "+(e.width-11)+", "+(133+(e.height-167)/2)+" "+(e.width-7)+", "+(137+(e.height-167)/2)+"\n      "}})]),n("div",{staticClass:"border-box-content"},[e._t("default")],2)])}),X=[],Z=(n("a9e3"),n("53b8")),Q={name:"DvBorderBox11",mixins:[U],props:{color:{type:Array,default:function(){return[]}},titleWidth:{type:Number,default:250},title:{type:String,default:""},backgroundColor:{type:String,default:"transparent"}},data:function(){var e=N();return{ref:"border-box-11",filterId:"border-box-11-filterId-".concat(e),defaultColor:["#8aaafb","#1f33a2"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(y["deepMerge"])(Object(_["deepClone"])(t,!0),e||[])},fade:Z["fade"]},mounted:function(){var e=this.mergeColor;e()}},ee=Q,te=Object(x["a"])(ee,J,X,!1,null,null,null),ne=te.exports,re=function(e){e.component(ne.name,ne)},ie=(n("3c0e"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:e.ref,staticClass:"dv-border-box-12"},[n("svg",{staticClass:"dv-border-svg-container",attrs:{width:e.width,height:e.height}},[n("defs",[n("filter",{attrs:{id:e.filterId,height:"150%",width:"150%",x:"-25%",y:"-25%"}},[n("feMorphology",{attrs:{operator:"dilate",radius:"1",in:"SourceAlpha",result:"thicken"}}),n("feGaussianBlur",{attrs:{in:"thicken",stdDeviation:"2",result:"blurred"}}),n("feFlood",{attrs:{"flood-color":e.fade(e.mergedColor[1]||e.defaultColor[1],70),result:"glowColor"}},[n("animate",{attrs:{attributeName:"flood-color",values:"\n              "+e.fade(e.mergedColor[1]||e.defaultColor[1],70)+";\n              "+e.fade(e.mergedColor[1]||e.defaultColor[1],30)+";\n              "+e.fade(e.mergedColor[1]||e.defaultColor[1],70)+";\n            ",dur:"3s",begin:"0s",repeatCount:"indefinite"}})]),n("feComposite",{attrs:{in:"glowColor",in2:"blurred",operator:"in",result:"softGlowColored"}}),n("feMerge",[n("feMergeNode",{attrs:{in:"softGlowColored"}}),n("feMergeNode",{attrs:{in:"SourceGraphic"}})],1)],1)]),e.width&&e.height?n("path",{attrs:{fill:e.backgroundColor,"stroke-width":"2",stroke:e.mergedColor[0],d:"\n        M15 5 L "+(e.width-15)+" 5 Q "+(e.width-5)+" 5, "+(e.width-5)+" 15\n        L "+(e.width-5)+" "+(e.height-15)+" Q "+(e.width-5)+" "+(e.height-5)+", "+(e.width-15)+" "+(e.height-5)+"\n        L 15, "+(e.height-5)+" Q 5 "+(e.height-5)+" 5 "+(e.height-15)+" L 5 15\n        Q 5 5 15 5\n      "}}):e._e(),n("path",{attrs:{"stroke-width":"2",fill:"transparent","stroke-linecap":"round",filter:"url(#"+e.filterId+")",stroke:e.mergedColor[1],d:"M 20 5 L 15 5 Q 5 5 5 15 L 5 20"}}),n("path",{attrs:{"stroke-width":"2",fill:"transparent","stroke-linecap":"round",filter:"url(#"+e.filterId+")",stroke:e.mergedColor[1],d:"M "+(e.width-20)+" 5 L "+(e.width-15)+" 5 Q "+(e.width-5)+" 5 "+(e.width-5)+" 15 L "+(e.width-5)+" 20"}}),n("path",{attrs:{"stroke-width":"2",fill:"transparent","stroke-linecap":"round",filter:"url(#"+e.filterId+")",stroke:e.mergedColor[1],d:"\n        M "+(e.width-20)+" "+(e.height-5)+" L "+(e.width-15)+" "+(e.height-5)+"\n        Q "+(e.width-5)+" "+(e.height-5)+" "+(e.width-5)+" "+(e.height-15)+"\n        L "+(e.width-5)+" "+(e.height-20)+"\n      "}}),n("path",{attrs:{"stroke-width":"2",fill:"transparent","stroke-linecap":"round",filter:"url(#"+e.filterId+")",stroke:e.mergedColor[1],d:"\n        M 20 "+(e.height-5)+" L 15 "+(e.height-5)+"\n        Q 5 "+(e.height-5)+" 5 "+(e.height-15)+"\n        L 5 "+(e.height-20)+"\n      "}})]),n("div",{staticClass:"border-box-content"},[e._t("default")],2)])}),oe=[],ae={name:"DvBorderBox12",mixins:[U],props:{color:{type:Array,default:function(){return[]}},backgroundColor:{type:String,default:"transparent"}},data:function(){var e=N();return{ref:"border-box-12",filterId:"borderr-box-12-filterId-".concat(e),defaultColor:["#2e6099","#7ce7fd"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(y["deepMerge"])(Object(_["deepClone"])(t,!0),e||[])},fade:Z["fade"]},mounted:function(){var e=this.mergeColor;e()}},se=ae,ce=Object(x["a"])(se,ie,oe,!1,null,null,null),ue=ce.exports,le=function(e){e.component(ue.name,ue)},de=(n("470c"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:e.ref,staticClass:"dv-border-box-13"},[n("svg",{staticClass:"dv-border-svg-container",attrs:{width:e.width,height:e.height}},[n("path",{attrs:{fill:e.backgroundColor,stroke:e.mergedColor[0],d:"\n        M 5 20 L 5 10 L 12 3  L 60 3 L 68 10\n        L "+(e.width-20)+" 10 L "+(e.width-5)+" 25\n        L "+(e.width-5)+" "+(e.height-5)+" L 20 "+(e.height-5)+"\n        L 5 "+(e.height-20)+" L 5 20\n      "}}),n("path",{attrs:{fill:"transparent","stroke-width":"3","stroke-linecap":"round","stroke-dasharray":"10, 5",stroke:e.mergedColor[0],d:"M 16 9 L 61 9"}}),n("path",{attrs:{fill:"transparent",stroke:e.mergedColor[1],d:"M 5 20 L 5 10 L 12 3  L 60 3 L 68 10"}}),n("path",{attrs:{fill:"transparent",stroke:e.mergedColor[1],d:"M "+(e.width-5)+" "+(e.height-30)+" L "+(e.width-5)+" "+(e.height-5)+" L "+(e.width-30)+" "+(e.height-5)}})]),n("div",{staticClass:"border-box-content"},[e._t("default")],2)])}),he=[],fe={name:"DvBorderBox13",mixins:[U],props:{color:{type:Array,default:function(){return[]}},backgroundColor:{type:String,default:"transparent"}},data:function(){return{ref:"border-box-13",defaultColor:["#6586ec","#2cf7fe"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(y["deepMerge"])(Object(_["deepClone"])(t,!0),e||[])}},mounted:function(){var e=this.mergeColor;e()}},pe=fe,ge=Object(x["a"])(pe,de,he,!1,null,null,null),me=ge.exports,ve=function(e){e.component(me.name,me)},ye=(n("b72d"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:e.ref,staticClass:"dv-border-box-2"},[n("svg",{staticClass:"dv-border-svg-container",attrs:{width:e.width,height:e.height}},[n("polygon",{attrs:{fill:e.backgroundColor,points:"\n      7, 7 "+(e.width-7)+", 7 "+(e.width-7)+", "+(e.height-7)+" 7, "+(e.height-7)+"\n    "}}),n("polyline",{attrs:{stroke:e.mergedColor[0],points:"2, 2 "+(e.width-2)+" ,2 "+(e.width-2)+", "+(e.height-2)+" 2, "+(e.height-2)+" 2, 2"}}),n("polyline",{attrs:{stroke:e.mergedColor[1],points:"6, 6 "+(e.width-6)+", 6 "+(e.width-6)+", "+(e.height-6)+" 6, "+(e.height-6)+" 6, 6"}}),n("circle",{attrs:{fill:e.mergedColor[0],cx:"11",cy:"11",r:"1"}}),n("circle",{attrs:{fill:e.mergedColor[0],cx:e.width-11,cy:"11",r:"1"}}),n("circle",{attrs:{fill:e.mergedColor[0],cx:e.width-11,cy:e.height-11,r:"1"}}),n("circle",{attrs:{fill:e.mergedColor[0],cx:"11",cy:e.height-11,r:"1"}})]),n("div",{staticClass:"border-box-content"},[e._t("default")],2)])}),_e=[],be={name:"DvBorderBox2",mixins:[U],props:{color:{type:Array,default:function(){return[]}},backgroundColor:{type:String,default:"transparent"}},data:function(){return{ref:"border-box-2",defaultColor:["#fff","rgba(255, 255, 255, 0.6)"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(y["deepMerge"])(Object(_["deepClone"])(t,!0),e||[])}},mounted:function(){var e=this.mergeColor;e()}},Se=be,xe=Object(x["a"])(Se,ye,_e,!1,null,null,null),we=xe.exports,Ie=function(e){e.component(we.name,we)},Ce=(n("1e4c"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:e.ref,staticClass:"dv-border-box-3"},[n("svg",{staticClass:"dv-border-svg-container",attrs:{width:e.width,height:e.height}},[n("polygon",{attrs:{fill:e.backgroundColor,points:"\n      23, 23 "+(e.width-24)+", 23 "+(e.width-24)+", "+(e.height-24)+" 23, "+(e.height-24)+"\n    "}}),n("polyline",{staticClass:"dv-bb3-line1",attrs:{stroke:e.mergedColor[0],points:"4, 4 "+(e.width-22)+" ,4 "+(e.width-22)+", "+(e.height-22)+" 4, "+(e.height-22)+" 4, 4"}}),n("polyline",{staticClass:"dv-bb3-line2",attrs:{stroke:e.mergedColor[1],points:"10, 10 "+(e.width-16)+", 10 "+(e.width-16)+", "+(e.height-16)+" 10, "+(e.height-16)+" 10, 10"}}),n("polyline",{staticClass:"dv-bb3-line2",attrs:{stroke:e.mergedColor[1],points:"16, 16 "+(e.width-10)+", 16 "+(e.width-10)+", "+(e.height-10)+" 16, "+(e.height-10)+" 16, 16"}}),n("polyline",{staticClass:"dv-bb3-line2",attrs:{stroke:e.mergedColor[1],points:"22, 22 "+(e.width-4)+", 22 "+(e.width-4)+", "+(e.height-4)+" 22, "+(e.height-4)+" 22, 22"}})]),n("div",{staticClass:"border-box-content"},[e._t("default")],2)])}),Me=[],Te={name:"DvBorderBox3",mixins:[U],props:{color:{type:Array,default:function(){return[]}},backgroundColor:{type:String,default:"transparent"}},data:function(){return{ref:"border-box-3",defaultColor:["#2862b7","#2862b7"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(y["deepMerge"])(Object(_["deepClone"])(t,!0),e||[])}},mounted:function(){var e=this.mergeColor;e()}},ke=Te,Ee=Object(x["a"])(ke,Ce,Me,!1,null,null,null),Ae=Ee.exports,De=function(e){e.component(Ae.name,Ae)},Oe=(n("1dac"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:e.ref,staticClass:"dv-border-box-4"},[n("svg",{class:"dv-border-svg-container "+(e.reverse&&"dv-reverse"),attrs:{width:e.width,height:e.height}},[n("polygon",{attrs:{fill:e.backgroundColor,points:"\n      "+(e.width-15)+", 22 170, 22 150, 7 40, 7 28, 21 32, 24\n      16, 42 16, "+(e.height-32)+" 41, "+(e.height-7)+" "+(e.width-15)+", "+(e.height-7)+"\n    "}}),n("polyline",{staticClass:"dv-bb4-line-1",attrs:{stroke:e.mergedColor[0],points:"145, "+(e.height-5)+" 40, "+(e.height-5)+" 10, "+(e.height-35)+"\n        10, 40 40, 5 150, 5 170, 20 "+(e.width-15)+", 20"}}),n("polyline",{staticClass:"dv-bb4-line-2",attrs:{stroke:e.mergedColor[1],points:"245, "+(e.height-1)+" 36, "+(e.height-1)+" 14, "+(e.height-23)+"\n        14, "+(e.height-100)}}),n("polyline",{staticClass:"dv-bb4-line-3",attrs:{stroke:e.mergedColor[0],points:"7, "+(e.height-40)+" 7, "+(e.height-75)}}),n("polyline",{staticClass:"dv-bb4-line-4",attrs:{stroke:e.mergedColor[0],points:"28, 24 13, 41 13, 64"}}),n("polyline",{staticClass:"dv-bb4-line-5",attrs:{stroke:e.mergedColor[0],points:"5, 45 5, 140"}}),n("polyline",{staticClass:"dv-bb4-line-6",attrs:{stroke:e.mergedColor[1],points:"14, 75 14, 180"}}),n("polyline",{staticClass:"dv-bb4-line-7",attrs:{stroke:e.mergedColor[1],points:"55, 11 147, 11 167, 26 250, 26"}}),n("polyline",{staticClass:"dv-bb4-line-8",attrs:{stroke:e.mergedColor[1],points:"158, 5 173, 16"}}),n("polyline",{staticClass:"dv-bb4-line-9",attrs:{stroke:e.mergedColor[0],points:"200, 17 "+(e.width-10)+", 17"}}),n("polyline",{staticClass:"dv-bb4-line-10",attrs:{stroke:e.mergedColor[1],points:"385, 17 "+(e.width-10)+", 17"}})]),n("div",{staticClass:"border-box-content"},[e._t("default")],2)])}),Re=[],Le={name:"DvBorderBox4",mixins:[U],props:{color:{type:Array,default:function(){return[]}},reverse:{type:Boolean,default:!1},backgroundColor:{type:String,default:"transparent"}},data:function(){return{ref:"border-box-4",defaultColor:["red","rgba(0,0,255,0.8)"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(y["deepMerge"])(Object(_["deepClone"])(t,!0),e||[])}},mounted:function(){var e=this.mergeColor;e()}},Pe=Le,Ne=Object(x["a"])(Pe,Oe,Re,!1,null,null,null),Ue=Ne.exports,Fe=function(e){e.component(Ue.name,Ue)},Ge=(n("042d"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:e.ref,staticClass:"dv-border-box-5"},[n("svg",{class:"dv-border-svg-container  "+(e.reverse&&"dv-reverse"),attrs:{width:e.width,height:e.height}},[n("polygon",{attrs:{fill:e.backgroundColor,points:"\n      10, 22 "+(e.width-22)+", 22 "+(e.width-22)+", "+(e.height-86)+" "+(e.width-84)+", "+(e.height-24)+" 10, "+(e.height-24)+"\n    "}}),n("polyline",{staticClass:"dv-bb5-line-1",attrs:{stroke:e.mergedColor[0],points:"8, 5 "+(e.width-5)+", 5 "+(e.width-5)+", "+(e.height-100)+"\n        "+(e.width-100)+", "+(e.height-5)+" 8, "+(e.height-5)+" 8, 5"}}),n("polyline",{staticClass:"dv-bb5-line-2",attrs:{stroke:e.mergedColor[1],points:"3, 5 "+(e.width-20)+", 5 "+(e.width-20)+", "+(e.height-60)+"\n        "+(e.width-74)+", "+(e.height-5)+" 3, "+(e.height-5)+" 3, 5"}}),n("polyline",{staticClass:"dv-bb5-line-3",attrs:{stroke:e.mergedColor[1],points:"50, 13 "+(e.width-35)+", 13"}}),n("polyline",{staticClass:"dv-bb5-line-4",attrs:{stroke:e.mergedColor[1],points:"15, 20 "+(e.width-35)+", 20"}}),n("polyline",{staticClass:"dv-bb5-line-5",attrs:{stroke:e.mergedColor[1],points:"15, "+(e.height-20)+" "+(e.width-110)+", "+(e.height-20)}}),n("polyline",{staticClass:"dv-bb5-line-6",attrs:{stroke:e.mergedColor[1],points:"15, "+(e.height-13)+" "+(e.width-110)+", "+(e.height-13)}})]),n("div",{staticClass:"border-box-content"},[e._t("default")],2)])}),Ve=[],je={name:"DvBorderBox5",mixins:[U],props:{color:{type:Array,default:function(){return[]}},reverse:{type:Boolean,default:!1},backgroundColor:{type:String,default:"transparent"}},data:function(){return{ref:"border-box-5",defaultColor:["rgba(255, 255, 255, 0.35)","rgba(255, 255, 255, 0.20)"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(y["deepMerge"])(Object(_["deepClone"])(t,!0),e||[])}},mounted:function(){var e=this.mergeColor;e()}},Be=je,ze=Object(x["a"])(Be,Ge,Ve,!1,null,null,null),He=ze.exports,We=function(e){e.component(He.name,He)},qe=(n("4e86"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:e.ref,staticClass:"dv-border-box-6"},[n("svg",{staticClass:"dv-border-svg-container",attrs:{width:e.width,height:e.height}},[n("polygon",{attrs:{fill:e.backgroundColor,points:"\n      9, 7 "+(e.width-9)+", 7 "+(e.width-9)+", "+(e.height-7)+" 9, "+(e.height-7)+"\n    "}}),n("circle",{attrs:{fill:e.mergedColor[1],cx:"5",cy:"5",r:"2"}}),n("circle",{attrs:{fill:e.mergedColor[1],cx:e.width-5,cy:"5",r:"2"}}),n("circle",{attrs:{fill:e.mergedColor[1],cx:e.width-5,cy:e.height-5,r:"2"}}),n("circle",{attrs:{fill:e.mergedColor[1],cx:"5",cy:e.height-5,r:"2"}}),n("polyline",{attrs:{stroke:e.mergedColor[0],points:"10, 4 "+(e.width-10)+", 4"}}),n("polyline",{attrs:{stroke:e.mergedColor[0],points:"10, "+(e.height-4)+" "+(e.width-10)+", "+(e.height-4)}}),n("polyline",{attrs:{stroke:e.mergedColor[0],points:"5, 70 5, "+(e.height-70)}}),n("polyline",{attrs:{stroke:e.mergedColor[0],points:e.width-5+", 70 "+(e.width-5)+", "+(e.height-70)}}),n("polyline",{attrs:{stroke:e.mergedColor[0],points:"3, 10, 3, 50"}}),n("polyline",{attrs:{stroke:e.mergedColor[0],points:"7, 30 7, 80"}}),n("polyline",{attrs:{stroke:e.mergedColor[0],points:e.width-3+", 10 "+(e.width-3)+", 50"}}),n("polyline",{attrs:{stroke:e.mergedColor[0],points:e.width-7+", 30 "+(e.width-7)+", 80"}}),n("polyline",{attrs:{stroke:e.mergedColor[0],points:"3, "+(e.height-10)+" 3, "+(e.height-50)}}),n("polyline",{attrs:{stroke:e.mergedColor[0],points:"7, "+(e.height-30)+" 7, "+(e.height-80)}}),n("polyline",{attrs:{stroke:e.mergedColor[0],points:e.width-3+", "+(e.height-10)+" "+(e.width-3)+", "+(e.height-50)}}),n("polyline",{attrs:{stroke:e.mergedColor[0],points:e.width-7+", "+(e.height-30)+" "+(e.width-7)+", "+(e.height-80)}})]),n("div",{staticClass:"border-box-content"},[e._t("default")],2)])}),$e=[],Ke={name:"DvBorderBox6",mixins:[U],props:{color:{type:Array,default:function(){return[]}},backgroundColor:{type:String,default:"transparent"}},data:function(){return{ref:"border-box-6",defaultColor:["rgba(255, 255, 255, 0.35)","gray"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(y["deepMerge"])(Object(_["deepClone"])(t,!0),e||[])}},mounted:function(){var e=this.mergeColor;e()}},Ye=Ke,Je=Object(x["a"])(Ye,qe,$e,!1,null,null,null),Xe=Je.exports,Ze=function(e){e.component(Xe.name,Xe)},Qe=(n("3648"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:e.ref,staticClass:"dv-border-box-7",style:"box-shadow: inset 0 0 40px "+e.mergedColor[0]+"; border: 1px solid "+e.mergedColor[0]+"; background-color: "+e.backgroundColor},[n("svg",{staticClass:"dv-border-svg-container",attrs:{width:e.width,height:e.height}},[n("polyline",{staticClass:"dv-bb7-line-width-2",attrs:{stroke:e.mergedColor[0],points:"0, 25 0, 0 25, 0"}}),n("polyline",{staticClass:"dv-bb7-line-width-2",attrs:{stroke:e.mergedColor[0],points:e.width-25+", 0 "+e.width+", 0 "+e.width+", 25"}}),n("polyline",{staticClass:"dv-bb7-line-width-2",attrs:{stroke:e.mergedColor[0],points:e.width-25+", "+e.height+" "+e.width+", "+e.height+" "+e.width+", "+(e.height-25)}}),n("polyline",{staticClass:"dv-bb7-line-width-2",attrs:{stroke:e.mergedColor[0],points:"0, "+(e.height-25)+" 0, "+e.height+" 25, "+e.height}}),n("polyline",{staticClass:"dv-bb7-line-width-5",attrs:{stroke:e.mergedColor[1],points:"0, 10 0, 0 10, 0"}}),n("polyline",{staticClass:"dv-bb7-line-width-5",attrs:{stroke:e.mergedColor[1],points:e.width-10+", 0 "+e.width+", 0 "+e.width+", 10"}}),n("polyline",{staticClass:"dv-bb7-line-width-5",attrs:{stroke:e.mergedColor[1],points:e.width-10+", "+e.height+" "+e.width+", "+e.height+" "+e.width+", "+(e.height-10)}}),n("polyline",{staticClass:"dv-bb7-line-width-5",attrs:{stroke:e.mergedColor[1],points:"0, "+(e.height-10)+" 0, "+e.height+" 10, "+e.height}})]),n("div",{staticClass:"border-box-content"},[e._t("default")],2)])}),et=[],tt={name:"DvBorderBox7",mixins:[U],props:{color:{type:Array,default:function(){return[]}},backgroundColor:{type:String,default:"transparent"}},data:function(){return{ref:"border-box-7",defaultColor:["rgba(128,128,128,0.3)","rgba(128,128,128,0.5)"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(y["deepMerge"])(Object(_["deepClone"])(t,!0),e||[])}},mounted:function(){var e=this.mergeColor;e()}},nt=tt,rt=Object(x["a"])(nt,Qe,et,!1,null,null,null),it=rt.exports,ot=function(e){e.component(it.name,it)},at=(n("733c"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:e.ref,staticClass:"dv-border-box-8"},[n("svg",{staticClass:"dv-border-svg-container",attrs:{width:e.width,height:e.height}},[n("defs",[n("path",{attrs:{id:e.path,d:e.pathD,fill:"transparent"}}),n("radialGradient",{attrs:{id:e.gradient,cx:"50%",cy:"50%",r:"50%"}},[n("stop",{attrs:{offset:"0%","stop-color":"#fff","stop-opacity":"1"}}),n("stop",{attrs:{offset:"100%","stop-color":"#fff","stop-opacity":"0"}})],1),n("mask",{attrs:{id:e.mask}},[n("circle",{attrs:{cx:"0",cy:"0",r:"150",fill:"url(#"+e.gradient+")"}},[n("animateMotion",{attrs:{dur:e.dur+"s",path:e.pathD,rotate:"auto",repeatCount:"indefinite"}})],1)])],1),n("polygon",{attrs:{fill:e.backgroundColor,points:"5, 5 "+(e.width-5)+", 5 "+(e.width-5)+" "+(e.height-5)+" 5, "+(e.height-5)}}),n("use",{attrs:{stroke:e.mergedColor[0],"stroke-width":"1","xlink:href":"#"+e.path}}),n("use",{attrs:{stroke:e.mergedColor[1],"stroke-width":"3","xlink:href":"#"+e.path,mask:"url(#"+e.mask+")"}},[n("animate",{attrs:{attributeName:"stroke-dasharray",from:"0, "+e.length,to:e.length+", 0",dur:e.dur+"s",repeatCount:"indefinite"}})])]),n("div",{staticClass:"border-box-content"},[e._t("default")],2)])}),st=[],ct=(n("99af"),{name:"DvBorderBox8",mixins:[U],props:{color:{type:Array,default:function(){return[]}},dur:{type:Number,default:3},backgroundColor:{type:String,default:"transparent"},reverse:{type:Boolean,default:!1}},data:function(){var e=N();return{ref:"border-box-8",path:"border-box-8-path-".concat(e),gradient:"border-box-8-gradient-".concat(e),mask:"border-box-8-mask-".concat(e),defaultColor:["#235fa7","#4fd2dd"],mergedColor:[]}},computed:{length:function(){var e=this.width,t=this.height;return 2*(e+t-5)},pathD:function(){var e=this.reverse,t=this.width,n=this.height;return e?"M 2.5, 2.5 L 2.5, ".concat(n-2.5," L ").concat(t-2.5,", ").concat(n-2.5," L ").concat(t-2.5,", 2.5 L 2.5, 2.5"):"M2.5, 2.5 L".concat(t-2.5,", 2.5 L").concat(t-2.5,", ").concat(n-2.5," L2.5, ").concat(n-2.5," L2.5, 2.5")}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(y["deepMerge"])(Object(_["deepClone"])(t,!0),e||[])}},mounted:function(){var e=this.mergeColor;e()}}),ut=ct,lt=Object(x["a"])(ut,at,st,!1,null,null,null),dt=lt.exports,ht=function(e){e.component(dt.name,dt)},ft=(n("6fc2"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:e.ref,staticClass:"dv-border-box-9"},[n("svg",{staticClass:"dv-border-svg-container",attrs:{width:e.width,height:e.height}},[n("defs",[n("linearGradient",{attrs:{id:e.gradientId,x1:"0%",y1:"0%",x2:"100%",y2:"100%"}},[n("animate",{attrs:{attributeName:"x1",values:"0%;100%;0%",dur:"10s",begin:"0s",repeatCount:"indefinite"}}),n("animate",{attrs:{attributeName:"x2",values:"100%;0%;100%",dur:"10s",begin:"0s",repeatCount:"indefinite"}}),n("stop",{attrs:{offset:"0%","stop-color":e.mergedColor[0]}},[n("animate",{attrs:{attributeName:"stop-color",values:e.mergedColor[0]+";"+e.mergedColor[1]+";"+e.mergedColor[0],dur:"10s",begin:"0s",repeatCount:"indefinite"}})]),n("stop",{attrs:{offset:"100%","stop-color":e.mergedColor[1]}},[n("animate",{attrs:{attributeName:"stop-color",values:e.mergedColor[1]+";"+e.mergedColor[0]+";"+e.mergedColor[1],dur:"10s",begin:"0s",repeatCount:"indefinite"}})])],1),n("mask",{attrs:{id:e.maskId}},[n("polyline",{attrs:{stroke:"#fff","stroke-width":"3",fill:"transparent",points:"8, "+.4*e.height+" 8, 3, "+(.4*e.width+7)+", 3"}}),n("polyline",{attrs:{fill:"#fff",points:"8, "+.15*e.height+" 8, 3, "+(.1*e.width+7)+", 3\n            "+.1*e.width+", 8 14, 8 14, "+(.15*e.height-7)+"\n          "}}),n("polyline",{attrs:{stroke:"#fff","stroke-width":"3",fill:"transparent",points:.5*e.width+", 3 "+(e.width-3)+", 3, "+(e.width-3)+", "+.25*e.height}}),n("polyline",{attrs:{fill:"#fff",points:"\n            "+.52*e.width+", 3 "+.58*e.width+", 3\n            "+(.58*e.width-7)+", 9 "+(.52*e.width+7)+", 9\n          "}}),n("polyline",{attrs:{fill:"#fff",points:"\n            "+.9*e.width+", 3 "+(e.width-3)+", 3 "+(e.width-3)+", "+.1*e.height+"\n            "+(e.width-9)+", "+(.1*e.height-7)+" "+(e.width-9)+", 9 "+(.9*e.width+7)+", 9\n          "}}),n("polyline",{attrs:{stroke:"#fff","stroke-width":"3",fill:"transparent",points:"8, "+.5*e.height+" 8, "+(e.height-3)+" "+(.3*e.width+7)+", "+(e.height-3)}}),n("polyline",{attrs:{fill:"#fff",points:"\n            8, "+.55*e.height+" 8, "+.7*e.height+"\n            2, "+(.7*e.height-7)+" 2, "+(.55*e.height+7)+"\n          "}}),n("polyline",{attrs:{stroke:"#fff","stroke-width":"3",fill:"transparent",points:.35*e.width+", "+(e.height-3)+" "+(e.width-3)+", "+(e.height-3)+" "+(e.width-3)+", "+.35*e.height}}),n("polyline",{attrs:{fill:"#fff",points:"\n            "+.92*e.width+", "+(e.height-3)+" "+(e.width-3)+", "+(e.height-3)+" "+(e.width-3)+", "+.8*e.height+"\n            "+(e.width-9)+", "+(.8*e.height+7)+" "+(e.width-9)+", "+(e.height-9)+" "+(.92*e.width+7)+", "+(e.height-9)+"\n          "}})])],1),n("polygon",{attrs:{fill:e.backgroundColor,points:"\n      15, 9 "+(.1*e.width+1)+", 9 "+(.1*e.width+4)+", 6 "+(.52*e.width+2)+", 6\n      "+(.52*e.width+6)+", 10 "+(.58*e.width-7)+", 10 "+(.58*e.width-2)+", 6\n      "+(.9*e.width+2)+", 6 "+(.9*e.width+6)+", 10 "+(e.width-10)+", 10 "+(e.width-10)+", "+(.1*e.height-6)+"\n      "+(e.width-6)+", "+(.1*e.height-1)+" "+(e.width-6)+", "+(.8*e.height+1)+" "+(e.width-10)+", "+(.8*e.height+6)+"\n      "+(e.width-10)+", "+(e.height-10)+" "+(.92*e.width+7)+", "+(e.height-10)+"  "+(.92*e.width+2)+", "+(e.height-6)+"\n      11, "+(e.height-6)+" 11, "+(.15*e.height-2)+" 15, "+(.15*e.height-7)+"\n    "}}),n("rect",{attrs:{x:"0",y:"0",width:e.width,height:e.height,fill:"url(#"+e.gradientId+")",mask:"url(#"+e.maskId+")"}})]),n("div",{staticClass:"border-box-content"},[e._t("default")],2)])}),pt=[],gt={name:"DvBorderBox9",mixins:[U],props:{color:{type:Array,default:function(){return[]}},backgroundColor:{type:String,default:"transparent"}},data:function(){var e=N();return{ref:"border-box-9",gradientId:"border-box-9-gradient-".concat(e),maskId:"border-box-9-mask-".concat(e),defaultColor:["#11eefd","#0078d2"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(y["deepMerge"])(Object(_["deepClone"])(t,!0),e||[])}},mounted:function(){var e=this.mergeColor;e()}},mt=gt,vt=Object(x["a"])(mt,ft,pt,!1,null,null,null),yt=vt.exports,_t=function(e){e.component(yt.name,yt)},bt=(n("335d"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"dv-capsule-chart"},[e.mergedConfig?[n("div",{staticClass:"label-column"},[e._l(e.mergedConfig.data,(function(t){return n("div",{key:t.name},[e._v(e._s(t.name))])})),n("div",[e._v(" ")])],2),n("div",{staticClass:"capsule-container"},[e._l(e.capsuleLength,(function(t,r){return n("div",{key:r,staticClass:"capsule-item"},[n("div",{staticClass:"capsule-item-column",style:"width: "+100*t+"%; background-color: "+e.mergedConfig.colors[r%e.mergedConfig.colors.length]+";"},[e.mergedConfig.showValue?n("div",{staticClass:"capsule-item-value"},[e._v(e._s(e.capsuleValue[r]))]):e._e()])])})),n("div",{staticClass:"unit-label"},e._l(e.labelData,(function(t,r){return n("div",{key:t+r},[e._v(e._s(t))])})),0)],2),e.mergedConfig.unit?n("div",{staticClass:"unit-text"},[e._v(e._s(e.mergedConfig.unit))]):e._e()]:e._e()],2)}),St=[],xt=(n("a630"),n("6062"),n("cb29"),{name:"DvCapsuleChart",props:{config:{type:Object,default:function(){return{}}}},data:function(){return{defaultConfig:{data:[],colors:["#37a2da","#32c5e9","#67e0e3","#9fe6b8","#ffdb5c","#ff9f7f","#fb7293"],unit:"",showValue:!1},mergedConfig:null,capsuleLength:[],capsuleValue:[],labelData:[],labelDataLength:[]}},watch:{config:function(){var e=this.calcData;e()}},methods:{calcData:function(){var e=this.mergeConfig,t=this.calcCapsuleLengthAndLabelData;e(),t()},mergeConfig:function(){var e=this.config,t=this.defaultConfig;this.mergedConfig=Object(y["deepMerge"])(Object(_["deepClone"])(t,!0),e||{})},calcCapsuleLengthAndLabelData:function(){var e=this.mergedConfig.data;if(e.length){var t=e.map((function(e){var t=e.value;return t})),n=Math.max.apply(Math,Object(o["a"])(t));this.capsuleValue=t,this.capsuleLength=t.map((function(e){return n?e/n:0}));var r=n/5,i=Array.from(new Set(new Array(6).fill(0).map((function(e,t){return Math.ceil(t*r)}))));this.labelData=i,this.labelDataLength=Array.from(i).map((function(e){return n?e/n:0}))}}},mounted:function(){var e=this.calcData;e()}}),wt=xt,It=Object(x["a"])(wt,bt,St,!1,null,null,null),Ct=It.exports,Mt=function(e){e.component(Ct.name,Ct)},Tt=(n("8261"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:e.ref,staticClass:"dv-charts-container"},[n("div",{ref:e.chartRef,staticClass:"charts-canvas-container"})])}),kt=[],Et={name:"DvCharts",mixins:[U],props:{option:{type:Object,default:function(){return{}}}},data:function(){var e=N();return{ref:"charts-container-".concat(e),chartRef:"chart-".concat(e),chart:null}},watch:{option:function(){var e=this.chart,t=this.option;e&&(t||(t={}),e.setOption(t,!0))}},methods:{afterAutoResizeMixinInit:function(){var e=this.initChart;e()},initChart:function(){var e=this.$refs,t=this.chartRef,n=this.option,r=this.chart=new c.a(e[t]);n&&r.setOption(n)},onResize:function(){var e=this.chart;e&&e.resize()}}},At=Et,Dt=Object(x["a"])(At,Tt,kt,!1,null,null,null),Ot=Dt.exports,Rt=function(e){e.component(Ot.name,Ot)},Lt=(n("7ed3"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:e.ref,staticClass:"dv-conical-column-chart"},[n("svg",{attrs:{width:e.width,height:e.height}},e._l(e.column,(function(t,r){return n("g",{key:r},[n("path",{attrs:{d:t.d,fill:e.mergedConfig.columnColor}}),n("text",{style:"fontSize:"+e.mergedConfig.fontSize+"px",attrs:{fill:e.mergedConfig.textColor,x:t.x,y:e.height-4}},[e._v(" "+e._s(t.name)+" ")]),e.mergedConfig.img.length?n("image",{attrs:{"xlink:href":e.mergedConfig.img[r%e.mergedConfig.img.length],width:e.mergedConfig.imgSideLength,height:e.mergedConfig.imgSideLength,x:t.x-e.mergedConfig.imgSideLength/2,y:t.y-e.mergedConfig.imgSideLength}}):e._e(),e.mergedConfig.showValue?n("text",{style:"fontSize:"+e.mergedConfig.fontSize+"px",attrs:{fill:e.mergedConfig.textColor,x:t.x,y:t.textY}},[e._v(" "+e._s(t.value)+" ")]):e._e()])})),0)])}),Pt=[],Nt=(n("4e82"),{name:"DvConicalColumnChart",mixins:[U],props:{config:{type:Object,default:function(){return{}}}},data:function(){return{ref:"conical-column-chart",defaultConfig:{data:[],img:[],fontSize:12,imgSideLength:30,columnColor:"rgba(0, 194, 255, 0.4)",textColor:"#fff",showValue:!1},mergedConfig:null,column:[]}},watch:{config:function(){var e=this.calcData;e()}},methods:{afterAutoResizeMixinInit:function(){var e=this.calcData;e()},onResize:function(){var e=this.calcData;e()},calcData:function(){var e=this.mergeConfig,t=this.initData,n=this.calcSVGPath;e(),t(),n()},mergeConfig:function(){var e=this.defaultConfig,t=this.config;this.mergedConfig=Object(y["deepMerge"])(Object(_["deepClone"])(e,!0),t||{})},initData:function(){var e=this.mergedConfig,t=e.data;t=Object(_["deepClone"])(t,!0),t.sort((function(e,t){var n=e.value,r=t.value;return n>r?-1:n<r?1:n===r?0:void 0}));var n=t[0]?t[0].value:10;t=t.map((function(e){return Object(a["a"])(Object(a["a"])({},e),{},{percent:e.value/n})})),e.data=t},calcSVGPath:function(){var e=this.mergedConfig,t=this.width,n=this.height,r=e.imgSideLength,i=e.fontSize,o=e.data,s=o.length,c=t/(s+1),u=n-r-i-5,l=n-i-5;this.column=o.map((function(e,t){var n=e.percent,r=c*(t+1),o=c*t,s=c*(t+2),d=l-u*n,h=u*n*.6+d,f="\n          M".concat(o,", ").concat(l,"\n          Q").concat(r,", ").concat(h," ").concat(r,",").concat(d,"\n          M").concat(r,",").concat(d,"\n          Q").concat(r,", ").concat(h," ").concat(s,",").concat(l,"\n          L").concat(o,", ").concat(l,"\n          Z\n        "),p=(l+d)/2+i/2;return Object(a["a"])(Object(a["a"])({},e),{},{d:f,x:r,y:d,textY:p})}))}}}),Ut=Nt,Ft=Object(x["a"])(Ut,Lt,Pt,!1,null,null,null),Gt=Ft.exports,Vt=function(e){e.component(Gt.name,Gt)},jt=(n("11b09"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:e.ref,staticClass:"dv-decoration-1"},[n("svg",{style:"transform:scale("+e.svgScale[0]+","+e.svgScale[1]+");",attrs:{width:e.svgWH[0]+"px",height:e.svgWH[1]+"px"}},[e._l(e.points,(function(t,r){return[Math.random()>.6?n("rect",{key:r,attrs:{fill:e.mergedColor[0],x:t[0]-e.halfPointSideLength,y:t[1]-e.halfPointSideLength,width:e.pointSideLength,height:e.pointSideLength}},[Math.random()>.6?n("animate",{attrs:{attributeName:"fill",values:e.mergedColor[0]+";transparent",dur:"1s",begin:2*Math.random(),repeatCount:"indefinite"}}):e._e()]):e._e()]})),e.rects[0]?n("rect",{attrs:{fill:e.mergedColor[1],x:e.rects[0][0]-e.pointSideLength,y:e.rects[0][1]-e.pointSideLength,width:2*e.pointSideLength,height:2*e.pointSideLength}},[n("animate",{attrs:{attributeName:"width",values:"0;"+2*e.pointSideLength,dur:"2s",repeatCount:"indefinite"}}),n("animate",{attrs:{attributeName:"height",values:"0;"+2*e.pointSideLength,dur:"2s",repeatCount:"indefinite"}}),n("animate",{attrs:{attributeName:"x",values:e.rects[0][0]+";"+(e.rects[0][0]-e.pointSideLength),dur:"2s",repeatCount:"indefinite"}}),n("animate",{attrs:{attributeName:"y",values:e.rects[0][1]+";"+(e.rects[0][1]-e.pointSideLength),dur:"2s",repeatCount:"indefinite"}})]):e._e(),e.rects[1]?n("rect",{attrs:{fill:e.mergedColor[1],x:e.rects[1][0]-40,y:e.rects[1][1]-e.pointSideLength,width:40,height:2*e.pointSideLength}},[n("animate",{attrs:{attributeName:"width",values:"0;40;0",dur:"2s",repeatCount:"indefinite"}}),n("animate",{attrs:{attributeName:"x",values:e.rects[1][0]+";"+(e.rects[1][0]-40)+";"+e.rects[1][0],dur:"2s",repeatCount:"indefinite"}})]):e._e()],2)])}),Bt=[],zt={name:"DvDecoration1",mixins:[U],props:{color:{type:Array,default:function(){return[]}}},data:function(){var e=2.5;return{ref:"decoration-1",svgWH:[200,50],svgScale:[1,1],rowNum:4,rowPoints:20,pointSideLength:e,halfPointSideLength:e/2,points:[],rects:[],defaultColor:["#fff","#0de7c2"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{afterAutoResizeMixinInit:function(){var e=this.calcSVGData;e()},calcSVGData:function(){var e=this.calcPointsPosition,t=this.calcRectsPosition,n=this.calcScale;e(),t(),n()},calcPointsPosition:function(){var e=this.svgWH,t=this.rowNum,n=this.rowPoints,r=g(e,2),i=r[0],a=r[1],s=i/(n+1),c=a/(t+1),u=new Array(t).fill(0).map((function(e,t){return new Array(n).fill(0).map((function(e,n){return[s*(n+1),c*(t+1)]}))}));this.points=u.reduce((function(e,t){return[].concat(Object(o["a"])(e),Object(o["a"])(t))}),[])},calcRectsPosition:function(){var e=this.points,t=this.rowPoints,n=e[2*t-1],r=e[2*t-3];this.rects=[n,r]},calcScale:function(){var e=this.width,t=this.height,n=this.svgWH,r=g(n,2),i=r[0],o=r[1];this.svgScale=[e/i,t/o]},onResize:function(){var e=this.calcSVGData;e()},mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(y["deepMerge"])(Object(_["deepClone"])(t,!0),e||[])}},mounted:function(){var e=this.mergeColor;e()}},Ht=zt,Wt=Object(x["a"])(Ht,jt,Bt,!1,null,null,null),qt=Wt.exports,$t=function(e){e.component(qt.name,qt)},Kt=(n("c423"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:e.ref,staticClass:"dv-decoration-10"},[n("svg",{attrs:{width:e.width,height:e.height}},[n("polyline",{attrs:{stroke:e.mergedColor[1],"stroke-width":"2",points:"0, "+e.height/2+" "+e.width+", "+e.height/2}}),n("polyline",{attrs:{stroke:e.mergedColor[0],"stroke-width":"2",points:"5, "+e.height/2+" "+(.2*e.width-3)+", "+e.height/2,"stroke-dasharray":"0, "+.2*e.width,fill:"freeze"}},[n("animate",{attrs:{id:e.animationId2,attributeName:"stroke-dasharray",values:"0, "+.2*e.width+";"+.2*e.width+", 0;",dur:"3s",begin:e.animationId1+".end",fill:"freeze"}}),n("animate",{attrs:{attributeName:"stroke-dasharray",values:.2*e.width+", 0;0, "+.2*e.width,dur:"0.01s",begin:e.animationId7+".end",fill:"freeze"}})]),n("polyline",{attrs:{stroke:e.mergedColor[0],"stroke-width":"2",points:.2*e.width+3+", "+e.height/2+" "+(.8*e.width-3)+", "+e.height/2,"stroke-dasharray":"0, "+.6*e.width}},[n("animate",{attrs:{id:e.animationId4,attributeName:"stroke-dasharray",values:"0, "+.6*e.width+";"+.6*e.width+", 0",dur:"3s",begin:e.animationId3+".end + 1s",fill:"freeze"}}),n("animate",{attrs:{attributeName:"stroke-dasharray",values:.6*e.width+", 0;0, "+.6*e.width,dur:"0.01s",begin:e.animationId7+".end",fill:"freeze"}})]),n("polyline",{attrs:{stroke:e.mergedColor[0],"stroke-width":"2",points:.8*e.width+3+", "+e.height/2+" "+(e.width-5)+", "+e.height/2,"stroke-dasharray":"0, "+.2*e.width}},[n("animate",{attrs:{id:e.animationId6,attributeName:"stroke-dasharray",values:"0, "+.2*e.width+";"+.2*e.width+", 0",dur:"3s",begin:e.animationId5+".end + 1s",fill:"freeze"}}),n("animate",{attrs:{attributeName:"stroke-dasharray",values:.2*e.width+", 0;0, "+.3*e.width,dur:"0.01s",begin:e.animationId7+".end",fill:"freeze"}})]),n("circle",{attrs:{cx:"2",cy:e.height/2,r:"2",fill:e.mergedColor[1]}},[n("animate",{attrs:{id:e.animationId1,attributeName:"fill",values:e.mergedColor[1]+";"+e.mergedColor[0],begin:"0s;"+e.animationId7+".end",dur:"0.3s",fill:"freeze"}})]),n("circle",{attrs:{cx:.2*e.width,cy:e.height/2,r:"2",fill:e.mergedColor[1]}},[n("animate",{attrs:{id:e.animationId3,attributeName:"fill",values:e.mergedColor[1]+";"+e.mergedColor[0],begin:e.animationId2+".end",dur:"0.3s",fill:"freeze"}}),n("animate",{attrs:{attributeName:"fill",values:e.mergedColor[1]+";"+e.mergedColor[1],dur:"0.01s",begin:e.animationId7+".end",fill:"freeze"}})]),n("circle",{attrs:{cx:.8*e.width,cy:e.height/2,r:"2",fill:e.mergedColor[1]}},[n("animate",{attrs:{id:e.animationId5,attributeName:"fill",values:e.mergedColor[1]+";"+e.mergedColor[0],begin:e.animationId4+".end",dur:"0.3s",fill:"freeze"}}),n("animate",{attrs:{attributeName:"fill",values:e.mergedColor[1]+";"+e.mergedColor[1],dur:"0.01s",begin:e.animationId7+".end",fill:"freeze"}})]),n("circle",{attrs:{cx:e.width-2,cy:e.height/2,r:"2",fill:e.mergedColor[1]}},[n("animate",{attrs:{id:e.animationId7,attributeName:"fill",values:e.mergedColor[1]+";"+e.mergedColor[0],begin:e.animationId6+".end",dur:"0.3s",fill:"freeze"}}),n("animate",{attrs:{attributeName:"fill",values:e.mergedColor[1]+";"+e.mergedColor[1],dur:"0.01s",begin:e.animationId7+".end",fill:"freeze"}})])])])}),Yt=[],Jt={name:"DvDecoration10",mixins:[U],props:{color:{type:Array,default:function(){return[]}}},data:function(){var e=N();return{ref:"decoration-10",animationId1:"d10ani1".concat(e),animationId2:"d10ani2".concat(e),animationId3:"d10ani3".concat(e),animationId4:"d10ani4".concat(e),animationId5:"d10ani5".concat(e),animationId6:"d10ani6".concat(e),animationId7:"d10ani7".concat(e),defaultColor:["#00c2ff","rgba(0, 194, 255, 0.3)"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(y["deepMerge"])(Object(_["deepClone"])(t,!0),e||[])}},mounted:function(){var e=this.mergeColor;e()}},Xt=Jt,Zt=Object(x["a"])(Xt,Kt,Yt,!1,null,null,null),Qt=Zt.exports,en=function(e){e.component(Qt.name,Qt)},tn=(n("3e8a"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:e.ref,staticClass:"dv-decoration-11"},[n("svg",{attrs:{width:e.width,height:e.height}},[n("polygon",{attrs:{fill:e.fade(e.mergedColor[1]||e.defaultColor[1],10),stroke:e.mergedColor[1],points:"20 10, 25 4, 55 4 60 10"}}),n("polygon",{attrs:{fill:e.fade(e.mergedColor[1]||e.defaultColor[1],10),stroke:e.mergedColor[1],points:"20 "+(e.height-10)+", 25 "+(e.height-4)+", 55 "+(e.height-4)+" 60 "+(e.height-10)}}),n("polygon",{attrs:{fill:e.fade(e.mergedColor[1]||e.defaultColor[1],10),stroke:e.mergedColor[1],points:e.width-20+" 10, "+(e.width-25)+" 4, "+(e.width-55)+" 4 "+(e.width-60)+" 10"}}),n("polygon",{attrs:{fill:e.fade(e.mergedColor[1]||e.defaultColor[1],10),stroke:e.mergedColor[1],points:e.width-20+" "+(e.height-10)+", "+(e.width-25)+" "+(e.height-4)+", "+(e.width-55)+" "+(e.height-4)+" "+(e.width-60)+" "+(e.height-10)}}),n("polygon",{attrs:{fill:e.fade(e.mergedColor[0]||e.defaultColor[0],20),stroke:e.mergedColor[0],points:"\n        20 10, 5 "+e.height/2+" 20 "+(e.height-10)+"\n        "+(e.width-20)+" "+(e.height-10)+" "+(e.width-5)+" "+e.height/2+" "+(e.width-20)+" 10\n      "}}),n("polyline",{attrs:{fill:"transparent",stroke:e.fade(e.mergedColor[0]||e.defaultColor[0],70),points:"25 18, 15 "+e.height/2+" 25 "+(e.height-18)}}),n("polyline",{attrs:{fill:"transparent",stroke:e.fade(e.mergedColor[0]||e.defaultColor[0],70),points:e.width-25+" 18, "+(e.width-15)+" "+e.height/2+" "+(e.width-25)+" "+(e.height-18)}})]),n("div",{staticClass:"decoration-content"},[e._t("default")],2)])}),nn=[],rn={name:"DvDecoration11",mixins:[U],props:{color:{type:Array,default:function(){return[]}}},data:function(){return{ref:"decoration-11",defaultColor:["#1a98fc","#2cf7fe"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(y["deepMerge"])(Object(_["deepClone"])(t,!0),e||[])},fade:Z["fade"]},mounted:function(){var e=this.mergeColor;e()}},on=rn,an=Object(x["a"])(on,tn,nn,!1,null,null,null),sn=an.exports,cn=function(e){e.component(sn.name,sn)},un=(n("e11f"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:e.ref,staticClass:"dv-decoration-12"},[n("svg",{attrs:{width:e.width,height:e.height}},[n("defs",[n("g",{attrs:{id:e.gId}},e._l(e.pathD,(function(t,r){return n("path",{key:t,attrs:{stroke:e.pathColor[r],"stroke-width":e.width/2,fill:"transparent",d:t}})})),0),n("radialGradient",{attrs:{id:e.gradientId,cx:"50%",cy:"50%",r:"50%"}},[n("stop",{attrs:{offset:"0%","stop-color":"transparent","stop-opacity":"1"}}),n("stop",{attrs:{offset:"100%","stop-color":e.fade(e.mergedColor[1]||e.defaultColor[1],30),"stop-opacity":"1"}})],1)],1),e._l(e.circleR,(function(t){return n("circle",{key:t,attrs:{r:t,cx:e.x,cy:e.y,stroke:e.mergedColor[1],"stroke-width":.5,fill:"transparent"}})})),n("circle",{attrs:{r:"1",cx:e.x,cy:e.y,stroke:"transparent",fill:"url(#"+e.gradientId+")"}},[n("animate",{attrs:{attributeName:"r",values:"1;"+e.width/2,dur:e.haloDur+"s",repeatCount:"indefinite"}}),n("animate",{attrs:{attributeName:"opacity",values:"1;0",dur:e.haloDur+"s",repeatCount:"indefinite"}})]),n("circle",{attrs:{r:"2",cx:e.x,cy:e.y,fill:e.mergedColor[1]}}),e.showSplitLine?n("g",e._l(e.splitLinePoints,(function(t){return n("polyline",{key:t,attrs:{points:t,stroke:e.mergedColor[1],"stroke-width":.5,opacity:"0.5"}})})),0):e._e(),e._l(e.arcD,(function(t){return n("path",{key:t,attrs:{d:t,stroke:e.mergedColor[1],"stroke-width":"2",fill:"transparent"}})})),n("use",{attrs:{"xlink:href":"#"+e.gId}},[n("animateTransform",{attrs:{attributeName:"transform",type:"rotate",values:"0, "+e.x+" "+e.y+";360, "+e.x+" "+e.y,dur:e.scanDur+"s",repeatCount:"indefinite"}})],1)],2),n("div",{staticClass:"decoration-content"},[e._t("default")],2)])}),ln=[],dn=(n("a15b"),{name:"DvDecoration12",mixins:[U],props:{color:{type:Array,default:function(){return[]}},scanDur:{type:Number,default:3},haloDur:{type:Number,default:2}},data:function(){var e=N();return{ref:"decoration-12",gId:"decoration-12-g-".concat(e),gradientId:"decoration-12-gradient-".concat(e),defaultColor:["#2783ce","#2cf7fe"],mergedColor:[],pathD:[],pathColor:[],circleR:[],splitLinePoints:[],arcD:[],segment:30,sectorAngle:Math.PI/3,ringNum:3,ringWidth:1,showSplitLine:!0}},watch:{color:function(){var e=this.mergeColor;e()}},computed:{x:function(){var e=this.width;return e/2},y:function(){var e=this.height;return e/2}},methods:{init:function(){var e=this.mergeColor,t=this.calcPathD,n=this.calcPathColor,r=this.calcCircleR,i=this.calcSplitLinePoints,o=this.calcArcD;e(),t(),n(),r(),i(),o()},mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(y["deepMerge"])(Object(_["deepClone"])(t,!0),e||[])},calcPathD:function(){var e=this.x,t=this.y,n=this.width,r=this.segment,i=this.sectorAngle,o=-Math.PI/2,a=i/r,s=n/4,c=Object(_["getCircleRadianPoint"])(e,t,s,o);this.pathD=new Array(r).fill("").map((function(n,r){var i=Object(_["getCircleRadianPoint"])(e,t,s,o-(r+1)*a).map((function(e){return e.toFixed(5)})),u="M".concat(c.join(",")," A").concat(s,", ").concat(s," 0 0 0 ").concat(i.join(","));return c=i,u}))},calcPathColor:function(){var e=g(this.mergedColor,1),t=e[0],n=this.segment,r=100/(n-1);this.pathColor=new Array(n).fill(t).map((function(e,n){return Object(Z["fade"])(t,100-n*r)}))},calcCircleR:function(){this.segment;var e=this.ringNum,t=this.width,n=this.ringWidth,r=(t/2-n/2)/e;this.circleR=new Array(e).fill(0).map((function(e,t){return r*(t+1)}))},calcSplitLinePoints:function(){var e=this.x,t=this.y,n=this.width,r=Math.PI/6,i=n/2;this.splitLinePoints=new Array(6).fill("").map((function(n,o){var a=r*(o+1),s=a+Math.PI,c=Object(_["getCircleRadianPoint"])(e,t,i,a),u=Object(_["getCircleRadianPoint"])(e,t,i,s);return"".concat(c.join(",")," ").concat(u.join(","))}))},calcArcD:function(){var e=this.x,t=this.y,n=this.width,r=Math.PI/6,i=n/2-1;this.arcD=new Array(4).fill("").map((function(n,o){var a=r*(3*o+1),s=a+r,c=Object(_["getCircleRadianPoint"])(e,t,i,a),u=Object(_["getCircleRadianPoint"])(e,t,i,s);return"M".concat(c.join(",")," A").concat(e,", ").concat(t," 0 0 1 ").concat(u.join(","))}))},afterAutoResizeMixinInit:function(){var e=this.init;e()},fade:Z["fade"]}}),hn=dn,fn=Object(x["a"])(hn,un,ln,!1,null,null,null),pn=fn.exports,gn=function(e){e.component(pn.name,pn)},mn=(n("9b06"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:e.ref,staticClass:"dv-decoration-2"},[n("svg",{attrs:{width:e.width+"px",height:e.height+"px"}},[n("rect",{attrs:{x:e.x,y:e.y,width:e.w,height:e.h,fill:e.mergedColor[0]}},[n("animate",{attrs:{attributeName:e.reverse?"height":"width",from:"0",to:e.reverse?e.height:e.width,dur:e.dur+"s",calcMode:"spline",keyTimes:"0;1",keySplines:".42,0,.58,1",repeatCount:"indefinite"}})]),n("rect",{attrs:{x:e.x,y:e.y,width:"1",height:"1",fill:e.mergedColor[1]}},[n("animate",{attrs:{attributeName:e.reverse?"y":"x",from:"0",to:e.reverse?e.height:e.width,dur:e.dur+"s",calcMode:"spline",keyTimes:"0;1",keySplines:"0.42,0,0.58,1",repeatCount:"indefinite"}})])])])}),vn=[],yn={name:"DvDecoration2",mixins:[U],props:{color:{type:Array,default:function(){return[]}},reverse:{type:Boolean,default:!1},dur:{type:Number,default:6}},data:function(){return{ref:"decoration-2",x:0,y:0,w:0,h:0,defaultColor:["#3faacb","#fff"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()},reverse:function(){var e=this.calcSVGData;e()}},methods:{afterAutoResizeMixinInit:function(){var e=this.calcSVGData;e()},calcSVGData:function(){var e=this.reverse,t=this.width,n=this.height;e?(this.w=1,this.h=n,this.x=t/2,this.y=0):(this.w=t,this.h=1,this.x=0,this.y=n/2)},onResize:function(){var e=this.calcSVGData;e()},mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(y["deepMerge"])(Object(_["deepClone"])(t,!0),e||[])}},mounted:function(){var e=this.mergeColor;e()}},_n=yn,bn=Object(x["a"])(_n,mn,vn,!1,null,null,null),Sn=bn.exports,xn=function(e){e.component(Sn.name,Sn)},wn=(n("5e07"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:e.ref,staticClass:"dv-decoration-3"},[n("svg",{style:"transform:scale("+e.svgScale[0]+","+e.svgScale[1]+");",attrs:{width:e.svgWH[0]+"px",height:e.svgWH[1]+"px"}},[e._l(e.points,(function(t,r){return[n("rect",{key:r,attrs:{fill:e.mergedColor[0],x:t[0]-e.halfPointSideLength,y:t[1]-e.halfPointSideLength,width:e.pointSideLength,height:e.pointSideLength}},[Math.random()>.6?n("animate",{attrs:{attributeName:"fill",values:""+e.mergedColor.join(";"),dur:Math.random()+1+"s",begin:2*Math.random(),repeatCount:"indefinite"}}):e._e()])]}))],2)])}),In=[],Cn={name:"DvDecoration3",mixins:[U],props:{color:{type:Array,default:function(){return[]}}},data:function(){var e=7;return{ref:"decoration-3",svgWH:[300,35],svgScale:[1,1],rowNum:2,rowPoints:25,pointSideLength:e,halfPointSideLength:e/2,points:[],defaultColor:["#7acaec","transparent"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{afterAutoResizeMixinInit:function(){var e=this.calcSVGData;e()},calcSVGData:function(){var e=this.calcPointsPosition,t=this.calcScale;e(),t()},calcPointsPosition:function(){var e=this.svgWH,t=this.rowNum,n=this.rowPoints,r=g(e,2),i=r[0],a=r[1],s=i/(n+1),c=a/(t+1),u=new Array(t).fill(0).map((function(e,t){return new Array(n).fill(0).map((function(e,n){return[s*(n+1),c*(t+1)]}))}));this.points=u.reduce((function(e,t){return[].concat(Object(o["a"])(e),Object(o["a"])(t))}),[])},calcScale:function(){var e=this.width,t=this.height,n=this.svgWH,r=g(n,2),i=r[0],o=r[1];this.svgScale=[e/i,t/o]},onResize:function(){var e=this.calcSVGData;e()},mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(y["deepMerge"])(Object(_["deepClone"])(t,!0),e||[])}},mounted:function(){var e=this.mergeColor;e()}},Mn=Cn,Tn=Object(x["a"])(Mn,wn,In,!1,null,null,null),kn=Tn.exports,En=function(e){e.component(kn.name,kn)},An=(n("c2ca"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:e.ref,staticClass:"dv-decoration-4"},[n("div",{class:"container "+(e.reverse?"reverse":"normal"),style:e.reverse?"width:"+e.width+"px;height:5px;animation-duration:"+e.dur+"s":"width:5px;height:"+e.height+"px;animation-duration:"+e.dur+"s"},[n("svg",{attrs:{width:e.reverse?e.width:5,height:e.reverse?5:e.height}},[n("polyline",{attrs:{stroke:e.mergedColor[0],points:e.reverse?"0, 2.5 "+e.width+", 2.5":"2.5, 0 2.5, "+e.height}}),n("polyline",{staticClass:"bold-line",attrs:{stroke:e.mergedColor[1],"stroke-width":"3","stroke-dasharray":"20, 80","stroke-dashoffset":"-30",points:e.reverse?"0, 2.5 "+e.width+", 2.5":"2.5, 0 2.5, "+e.height}})])])])}),Dn=[],On={name:"DvDecoration4",mixins:[U],props:{color:{type:Array,default:function(){return[]}},reverse:{type:Boolean,default:!1},dur:{type:Number,default:3}},data:function(){return{ref:"decoration-4",defaultColor:["rgba(255, 255, 255, 0.3)","rgba(255, 255, 255, 0.3)"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(y["deepMerge"])(Object(_["deepClone"])(t,!0),e||[])}},mounted:function(){var e=this.mergeColor;e()}},Rn=On,Ln=Object(x["a"])(Rn,An,Dn,!1,null,null,null),Pn=Ln.exports,Nn=function(e){e.component(Pn.name,Pn)},Un=(n("2848"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:e.ref,staticClass:"dv-decoration-5"},[n("svg",{attrs:{width:e.width,height:e.height}},[n("polyline",{attrs:{fill:"transparent",stroke:e.mergedColor[0],"stroke-width":"3",points:e.line1Points}},[n("animate",{attrs:{attributeName:"stroke-dasharray",attributeType:"XML",from:"0, "+e.line1Length/2+", 0, "+e.line1Length/2,to:"0, 0, "+e.line1Length+", 0",dur:e.dur+"s",begin:"0s",calcMode:"spline",keyTimes:"0;1",keySplines:"0.4,1,0.49,0.98",repeatCount:"indefinite"}})]),n("polyline",{attrs:{fill:"transparent",stroke:e.mergedColor[1],"stroke-width":"2",points:e.line2Points}},[n("animate",{attrs:{attributeName:"stroke-dasharray",attributeType:"XML",from:"0, "+e.line2Length/2+", 0, "+e.line2Length/2,to:"0, 0, "+e.line2Length+", 0",dur:e.dur+"s",begin:"0s",calcMode:"spline",keyTimes:"0;1",keySplines:".4,1,.49,.98",repeatCount:"indefinite"}})])])])}),Fn=[],Gn={name:"DvDecoration5",mixins:[U],props:{color:{type:Array,default:function(){return[]}},dur:{type:Number,default:1.2}},data:function(){return{ref:"decoration-5",line1Points:"",line2Points:"",line1Length:0,line2Length:0,defaultColor:["#3f96a5","#3f96a5"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{afterAutoResizeMixinInit:function(){var e=this.calcSVGData;e()},calcSVGData:function(){var e=this.width,t=this.height,n=[[0,.2*t],[.18*e,.2*t],[.2*e,.4*t],[.25*e,.4*t],[.27*e,.6*t],[.72*e,.6*t],[.75*e,.4*t],[.8*e,.4*t],[.82*e,.2*t],[e,.2*t]],r=[[.3*e,.8*t],[.7*e,.8*t]],i=Object(y["getPolylineLength"])(n),o=Object(y["getPolylineLength"])(r);n=n.map((function(e){return e.join(",")})).join(" "),r=r.map((function(e){return e.join(",")})).join(" "),this.line1Points=n,this.line2Points=r,this.line1Length=i,this.line2Length=o},onResize:function(){var e=this.calcSVGData;e()},mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(y["deepMerge"])(Object(_["deepClone"])(t,!0),e||[])}},mounted:function(){var e=this.mergeColor;e()}},Vn=Gn,jn=Object(x["a"])(Vn,Un,Fn,!1,null,null,null),Bn=jn.exports,zn=function(e){e.component(Bn.name,Bn)},Hn=(n("c7c8"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:e.ref,staticClass:"dv-decoration-6"},[n("svg",{style:"transform:scale("+e.svgScale[0]+","+e.svgScale[1]+");",attrs:{width:e.svgWH[0]+"px",height:e.svgWH[1]+"px"}},[e._l(e.points,(function(t,r){return[n("rect",{key:r,attrs:{fill:e.mergedColor[Math.random()>.5?0:1],x:t[0]-e.halfRectWidth,y:t[1]-e.heights[r]/2,width:e.rectWidth,height:e.heights[r]}},[n("animate",{attrs:{attributeName:"y",values:t[1]-e.minHeights[r]/2+";"+(t[1]-e.heights[r]/2)+";"+(t[1]-e.minHeights[r]/2),dur:e.randoms[r]+"s",keyTimes:"0;0.5;1",calcMode:"spline",keySplines:"0.42,0,0.58,1;0.42,0,0.58,1",begin:"0s",repeatCount:"indefinite"}}),n("animate",{attrs:{attributeName:"height",values:e.minHeights[r]+";"+e.heights[r]+";"+e.minHeights[r],dur:e.randoms[r]+"s",keyTimes:"0;0.5;1",calcMode:"spline",keySplines:"0.42,0,0.58,1;0.42,0,0.58,1",begin:"0s",repeatCount:"indefinite"}})])]}))],2)])}),Wn=[],qn={name:"DvDecoration6",mixins:[U],props:{color:{type:Array,default:function(){return[]}}},data:function(){var e=7;return{ref:"decoration-6",svgWH:[300,35],svgScale:[1,1],rowNum:1,rowPoints:40,rectWidth:e,halfRectWidth:e/2,points:[],heights:[],minHeights:[],randoms:[],defaultColor:["#7acaec","#7acaec"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{afterAutoResizeMixinInit:function(){var e=this.calcSVGData;e()},calcSVGData:function(){var e=this.calcPointsPosition,t=this.calcScale;e(),t()},calcPointsPosition:function(){var e=this.svgWH,t=this.rowNum,n=this.rowPoints,r=g(e,2),i=r[0],a=r[1],s=i/(n+1),c=a/(t+1),u=new Array(t).fill(0).map((function(e,t){return new Array(n).fill(0).map((function(e,n){return[s*(n+1),c*(t+1)]}))}));this.points=u.reduce((function(e,t){return[].concat(Object(o["a"])(e),Object(o["a"])(t))}),[]);var l=this.heights=new Array(t*n).fill(0).map((function(e){return Math.random()>.8?O(.7*a,a):O(.2*a,.5*a)}));this.minHeights=new Array(t*n).fill(0).map((function(e,t){return l[t]*Math.random()})),this.randoms=new Array(t*n).fill(0).map((function(e){return Math.random()+1.5}))},calcScale:function(){var e=this.width,t=this.height,n=this.svgWH,r=g(n,2),i=r[0],o=r[1];this.svgScale=[e/i,t/o]},onResize:function(){var e=this.calcSVGData;e()},mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(y["deepMerge"])(Object(_["deepClone"])(t,!0),e||[])}},mounted:function(){var e=this.mergeColor;e()}},$n=qn,Kn=Object(x["a"])($n,Hn,Wn,!1,null,null,null),Yn=Kn.exports,Jn=function(e){e.component(Yn.name,Yn)},Xn=(n("d51d"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"dv-decoration-7"},[n("svg",{attrs:{width:"21px",height:"20px"}},[n("polyline",{attrs:{"stroke-width":"4",fill:"transparent",stroke:e.mergedColor[0],points:"10, 0 19, 10 10, 20"}}),n("polyline",{attrs:{"stroke-width":"2",fill:"transparent",stroke:e.mergedColor[1],points:"2, 0 11, 10 2, 20"}})]),e._t("default"),n("svg",{attrs:{width:"21px",height:"20px"}},[n("polyline",{attrs:{"stroke-width":"4",fill:"transparent",stroke:e.mergedColor[0],points:"11, 0 2, 10 11, 20"}}),n("polyline",{attrs:{"stroke-width":"2",fill:"transparent",stroke:e.mergedColor[1],points:"19, 0 10, 10 19, 20"}})])],2)}),Zn=[],Qn={name:"DvDecoration7",props:{color:{type:Array,default:function(){return[]}}},data:function(){return{defaultColor:["#1dc1f5","#1dc1f5"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(y["deepMerge"])(Object(_["deepClone"])(t,!0),e||[])}},mounted:function(){var e=this.mergeColor;e()}},er=Qn,tr=Object(x["a"])(er,Xn,Zn,!1,null,null,null),nr=tr.exports,rr=function(e){e.component(nr.name,nr)},ir=(n("357d"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:e.ref,staticClass:"dv-decoration-8"},[n("svg",{attrs:{width:e.width,height:e.height}},[n("polyline",{attrs:{stroke:e.mergedColor[0],"stroke-width":"2",fill:"transparent",points:e.xPos(0)+", 0 "+e.xPos(30)+", "+e.height/2}}),n("polyline",{attrs:{stroke:e.mergedColor[0],"stroke-width":"2",fill:"transparent",points:e.xPos(20)+", 0 "+e.xPos(50)+", "+e.height/2+" "+e.xPos(e.width)+", "+e.height/2}}),n("polyline",{attrs:{stroke:e.mergedColor[1],fill:"transparent","stroke-width":"3",points:e.xPos(0)+", "+(e.height-3)+", "+e.xPos(200)+", "+(e.height-3)}})])])}),or=[],ar={name:"DvDecoration8",mixins:[U],props:{color:{type:Array,default:function(){return[]}},reverse:{type:Boolean,default:!1}},data:function(){return{ref:"decoration-8",defaultColor:["#3f96a5","#3f96a5"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{xPos:function(e){var t=this.reverse,n=this.width;return t?n-e:e},mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(y["deepMerge"])(Object(_["deepClone"])(t,!0),e||[])}},mounted:function(){var e=this.mergeColor;e()}},sr=ar,cr=Object(x["a"])(sr,ir,or,!1,null,null,null),ur=cr.exports,lr=function(e){e.component(ur.name,ur)},dr=(n("9ab4"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:e.ref,staticClass:"dv-decoration-9"},[n("svg",{style:"transform:scale("+e.svgScale[0]+","+e.svgScale[1]+");",attrs:{width:e.svgWH[0]+"px",height:e.svgWH[1]+"px"}},[n("defs",[n("polygon",{attrs:{id:e.polygonId,points:"15, 46.5, 21, 47.5, 21, 52.5, 15, 53.5"}})]),n("circle",{attrs:{cx:"50",cy:"50",r:"45",fill:"transparent",stroke:e.mergedColor[1],"stroke-width":"10","stroke-dasharray":"80, 100, 30, 100"}},[n("animateTransform",{attrs:{attributeName:"transform",type:"rotate",values:"0 50 50;360 50 50",dur:e.dur+"s",repeatCount:"indefinite"}})],1),n("circle",{attrs:{cx:"50",cy:"50",r:"45",fill:"transparent",stroke:e.mergedColor[0],"stroke-width":"6","stroke-dasharray":"50, 66, 100, 66"}},[n("animateTransform",{attrs:{attributeName:"transform",type:"rotate",values:"0 50 50;-360 50 50",dur:e.dur+"s",repeatCount:"indefinite"}})],1),n("circle",{attrs:{cx:"50",cy:"50",r:"38",fill:"transparent",stroke:e.fade(e.mergedColor[1]||e.defaultColor[1],30),"stroke-width":"1","stroke-dasharray":"5, 1"}}),e._l(new Array(20).fill(0),(function(t,r){return n("use",{key:r,attrs:{"xlink:href":"#"+e.polygonId,stroke:e.mergedColor[1],fill:Math.random()>.4?"transparent":e.mergedColor[0]}},[n("animateTransform",{attrs:{attributeName:"transform",type:"rotate",values:"0 50 50;360 50 50",dur:e.dur+"s",begin:r*e.dur/20+"s",repeatCount:"indefinite"}})],1)})),n("circle",{attrs:{cx:"50",cy:"50",r:"26",fill:"transparent",stroke:e.fade(e.mergedColor[1]||e.defaultColor[1],30),"stroke-width":"1","stroke-dasharray":"5, 1"}})],2),e._t("default")],2)}),hr=[],fr={name:"DvDecoration9",mixins:[U],props:{color:{type:Array,default:function(){return[]}},dur:{type:Number,default:3}},data:function(){var e=N();return{ref:"decoration-9",polygonId:"decoration-9-polygon-".concat(e),svgWH:[100,100],svgScale:[1,1],defaultColor:["rgba(3, 166, 224, 0.8)","rgba(3, 166, 224, 0.5)"],mergedColor:[]}},watch:{color:function(){var e=this.mergeColor;e()}},methods:{afterAutoResizeMixinInit:function(){var e=this.calcScale;e()},calcScale:function(){var e=this.width,t=this.height,n=this.svgWH,r=g(n,2),i=r[0],o=r[1];this.svgScale=[e/i,t/o]},onResize:function(){var e=this.calcScale;e()},mergeColor:function(){var e=this.color,t=this.defaultColor;this.mergedColor=Object(y["deepMerge"])(Object(_["deepClone"])(t,!0),e||[])},fade:Z["fade"]},mounted:function(){var e=this.mergeColor;e()}},pr=fr,gr=Object(x["a"])(pr,dr,hr,!1,null,null,null),mr=gr.exports,vr=function(e){e.component(mr.name,mr)},yr=(n("bc96"),function(e){e.component(I.name,I)}),_r=(n("41f6"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"dv-flyline-chart",staticClass:"dv-flyline-chart",style:"background-image: url("+(e.mergedConfig?e.mergedConfig.bgImgUrl:"")+")",on:{click:e.consoleClickPos}},[e.mergedConfig?n("svg",{attrs:{width:e.width,height:e.height}},[n("defs",[n("radialGradient",{attrs:{id:e.gradientId,cx:"50%",cy:"50%",r:"50%"}},[n("stop",{attrs:{offset:"0%","stop-color":"#fff","stop-opacity":"1"}}),n("stop",{attrs:{offset:"100%","stop-color":"#fff","stop-opacity":"0"}})],1),n("radialGradient",{attrs:{id:e.gradient2Id,cx:"50%",cy:"50%",r:"50%"}},[n("stop",{attrs:{offset:"0%","stop-color":"#fff","stop-opacity":"0"}}),n("stop",{attrs:{offset:"100%","stop-color":"#fff","stop-opacity":"1"}})],1),e.paths[0]?n("circle",{attrs:{id:"circle"+e.paths[0].toString(),cx:e.paths[0][2][0],cy:e.paths[0][2][1]}},[n("animate",{attrs:{attributeName:"r",values:"1;"+e.mergedConfig.halo.radius,dur:e.mergedConfig.halo.duration/10+"s",repeatCount:"indefinite"}}),n("animate",{attrs:{attributeName:"opacity",values:"1;0",dur:e.mergedConfig.halo.duration/10+"s",repeatCount:"indefinite"}})]):e._e()],1),e.paths[0]?n("image",{attrs:{"xlink:href":e.mergedConfig.centerPointImg.url,width:e.mergedConfig.centerPointImg.width,height:e.mergedConfig.centerPointImg.height,x:e.paths[0][2][0]-e.mergedConfig.centerPointImg.width/2,y:e.paths[0][2][1]-e.mergedConfig.centerPointImg.height/2}}):e._e(),n("mask",{attrs:{id:"maskhalo"+e.paths[0].toString()}},[e.paths[0]?n("use",{attrs:{"xlink:href":"#circle"+e.paths[0].toString(),fill:"url(#"+e.gradient2Id+")"}}):e._e()]),e.paths[0]&&e.mergedConfig.halo.show?n("use",{attrs:{"xlink:href":"#circle"+e.paths[0].toString(),fill:e.mergedConfig.halo.color,mask:"url(#maskhalo"+e.paths[0].toString()+")"}}):e._e(),e._l(e.paths,(function(t,r){return n("g",{key:r},[n("defs",[n("path",{ref:"path"+r,refInFor:!0,attrs:{id:"path"+t.toString(),d:"M"+t[0].toString()+" Q"+t[1].toString()+" "+t[2].toString(),fill:"transparent"}})]),n("use",{attrs:{"xlink:href":"#path"+t.toString(),"stroke-width":e.mergedConfig.lineWidth,stroke:e.mergedConfig.orbitColor}}),e.lengths[r]?n("use",{attrs:{"xlink:href":"#path"+t.toString(),"stroke-width":e.mergedConfig.lineWidth,stroke:e.mergedConfig.flylineColor,mask:"url(#mask"+e.unique+t.toString()+")"}},[n("animate",{attrs:{attributeName:"stroke-dasharray",from:"0, "+e.lengths[r],to:e.lengths[r]+", 0",dur:e.times[r]||0,repeatCount:"indefinite"}})]):e._e(),n("mask",{attrs:{id:"mask"+e.unique+t.toString()}},[n("circle",{attrs:{cx:"0",cy:"0",r:e.mergedConfig.flylineRadius,fill:"url(#"+e.gradientId+")"}},[n("animateMotion",{attrs:{dur:e.times[r]||0,path:"M"+t[0].toString()+" Q"+t[1].toString()+" "+t[2].toString(),rotate:"auto",repeatCount:"indefinite"}})],1)]),n("image",{attrs:{"xlink:href":e.mergedConfig.pointsImg.url,width:e.mergedConfig.pointsImg.width,height:e.mergedConfig.pointsImg.height,x:t[0][0]-e.mergedConfig.pointsImg.width/2,y:t[0][1]-e.mergedConfig.pointsImg.height/2}}),n("text",{style:"fontSize:"+e.mergedConfig.text.fontSize+"px;",attrs:{fill:e.mergedConfig.text.color,x:t[0][0]+e.mergedConfig.text.offset[0],y:t[0][1]+e.mergedConfig.text.offset[1]}},[e._v(" "+e._s(e.texts[r])+" ")])])}))],2):e._e()])}),br=[],Sr=n("1da1"),xr=(n("96cf"),{name:"DvFlylineChart",mixins:[U],props:{config:{type:Object,default:function(){return{}}},dev:{type:Boolean,default:!1}},data:function(){var e=N();return{ref:"dv-flyline-chart",unique:Math.random(),maskId:"flyline-mask-id-".concat(e),maskCircleId:"mask-circle-id-".concat(e),gradientId:"gradient-id-".concat(e),gradient2Id:"gradient2-id-".concat(e),defaultConfig:{centerPoint:[0,0],points:[],lineWidth:1,orbitColor:"rgba(103, 224, 227, .2)",flylineColor:"#ffde93",k:-.5,curvature:5,flylineRadius:100,duration:[20,30],relative:!0,bgImgUrl:"",text:{offset:[0,15],color:"#ffdb5c",fontSize:12},halo:{show:!0,duration:30,color:"#fb7293",radius:120},centerPointImg:{width:40,height:40,url:""},pointsImg:{width:15,height:15,url:""}},mergedConfig:null,paths:[],lengths:[],times:[],texts:[]}},watch:{config:function(){var e=this.calcData;e()}},methods:{afterAutoResizeMixinInit:function(){var e=this.calcData;e()},onResize:function(){var e=this.calcData;e()},calcData:function(){var e=this;return Object(Sr["a"])(regeneratorRuntime.mark((function t(){var n,r,i,o,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.mergeConfig,r=e.createFlylinePaths,i=e.calcLineLengths,n(),r(),t.next=5,i();case 5:o=e.calcTimes,a=e.calcTexts,o(),a();case 8:case"end":return t.stop()}}),t)})))()},mergeConfig:function(){var e=this.config,t=this.defaultConfig,n=Object(y["deepMerge"])(Object(_["deepClone"])(t,!0),e||{}),r=n.points;n.points=r.map((function(e){return e instanceof Array?{position:e,text:""}:e})),this.mergedConfig=n},createFlylinePaths:function(){var e=this.getPath,t=this.mergedConfig,n=this.width,r=this.height,i=t.centerPoint,o=t.points,a=t.relative;o=o.map((function(e){var t=e.position;return t})),a&&(i=[n*i[0],r*i[1]],o=o.map((function(e){var t=g(e,2),i=t[0],o=t[1];return[n*i,r*o]}))),this.paths=o.map((function(t){return e(i,t)}))},getPath:function(e,t){var n=this.getControlPoint,r=n(e,t);return[t,r,e]},getControlPoint:function(e,t){var n=g(e,2),r=n[0],i=n[1],o=g(t,2),a=o[0],s=o[1],c=this.getKLinePointByx,u=this.mergedConfig,l=u.curvature,d=u.k,h=(r+a)/2,f=(i+s)/2,p=P([r,i],[a,s]),m=p/l,v=m/2,y=h,_=f;do{y+=v,_=c(d,[h,f],y)[1]}while(P([h,f],[y,_])<m);return[y,_]},getKLinePointByx:function(e,t,n){var r=g(t,2),i=r[0],o=r[1],a=o-e*i+e*n;return[n,a]},calcLineLengths:function(){var e=this;return Object(Sr["a"])(regeneratorRuntime.mark((function t(){var n,r,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.$nextTick,r=e.paths,i=e.$refs,t.next=3,n();case 3:e.lengths=r.map((function(e,t){return i["path".concat(t)][0].getTotalLength()}));case 4:case"end":return t.stop()}}),t)})))()},calcTimes:function(){var e=this.mergedConfig,t=e.duration,n=e.points;this.times=n.map((function(e){return O.apply(void 0,Object(o["a"])(t))/10}))},calcTexts:function(){var e=this.mergedConfig.points;this.texts=e.map((function(e){var t=e.text;return t}))},consoleClickPos:function(e){var t=e.offsetX,n=e.offsetY,r=this.width,i=this.height,o=this.dev;if(o){var a=(t/r).toFixed(2),s=(n/i).toFixed(2);console.warn("dv-flyline-chart DEV: \n Click Position is [".concat(t,", ").concat(n,"] \n Relative Position is [").concat(a,", ").concat(s,"]"))}}}}),wr=xr,Ir=Object(x["a"])(wr,_r,br,!1,null,null,null),Cr=Ir.exports,Mr=function(e){e.component(Cr.name,Cr)},Tr=(n("dbbf"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:e.ref,staticClass:"dv-flyline-chart-enhanced",style:"background-image: url("+(e.mergedConfig?e.mergedConfig.bgImgSrc:"")+")",on:{click:e.consoleClickPos}},[e.flylines.length?n("svg",{attrs:{width:e.width,height:e.height}},[n("defs",[n("radialGradient",{attrs:{id:e.flylineGradientId,cx:"50%",cy:"50%",r:"50%"}},[n("stop",{attrs:{offset:"0%","stop-color":"#fff","stop-opacity":"1"}}),n("stop",{attrs:{offset:"100%","stop-color":"#fff","stop-opacity":"0"}})],1),n("radialGradient",{attrs:{id:e.haloGradientId,cx:"50%",cy:"50%",r:"50%"}},[n("stop",{attrs:{offset:"0%","stop-color":"#fff","stop-opacity":"0"}}),n("stop",{attrs:{offset:"100%","stop-color":"#fff","stop-opacity":"1"}})],1)],1),e._l(e.flylinePoints,(function(t){return n("g",{key:t.key+Math.random()},[n("defs",[t.halo.show?n("circle",{attrs:{id:"halo"+e.unique+t.key,cx:t.coordinate[0],cy:t.coordinate[1]}},[n("animate",{attrs:{attributeName:"r",values:"1;"+t.halo.radius,dur:t.halo.time+"s",repeatCount:"indefinite"}}),n("animate",{attrs:{attributeName:"opacity",values:"1;0",dur:t.halo.time+"s",repeatCount:"indefinite"}})]):e._e()]),n("mask",{attrs:{id:"mask"+e.unique+t.key}},[t.halo.show?n("use",{attrs:{"xlink:href":"#halo"+e.unique+t.key,fill:"url(#"+e.haloGradientId+")"}}):e._e()]),t.halo.show?n("use",{attrs:{"xlink:href":"#halo"+e.unique+t.key,fill:t.halo.color,mask:"url(#mask"+e.unique+t.key+")"}}):e._e(),t.icon.show?n("image",{attrs:{"xlink:href":t.icon.src,width:t.icon.width,height:t.icon.height,x:t.icon.x,y:t.icon.y}}):e._e(),t.text.show?n("text",{style:"fontSize:"+t.text.fontSize+"px;color:"+t.text.color,attrs:{fill:t.text.color,x:t.text.x,y:t.text.y}},[e._v(" "+e._s(t.name)+" ")]):e._e()])})),e._l(e.flylines,(function(t,r){return n("g",{key:t.key+Math.random()},[n("defs",[n("path",{ref:t.key,refInFor:!0,attrs:{id:t.key,d:t.d,fill:"transparent"}})]),n("use",{attrs:{"xlink:href":"#"+t.key,"stroke-width":t.width,stroke:t.orbitColor}}),n("mask",{attrs:{id:"mask"+e.unique+t.key}},[n("circle",{attrs:{cx:"0",cy:"0",r:t.radius,fill:"url(#"+e.flylineGradientId+")"}},[n("animateMotion",{attrs:{dur:t.time,path:t.d,rotate:"auto",repeatCount:"indefinite"}})],1)]),e.flylineLengths[r]?n("use",{attrs:{"xlink:href":"#"+t.key,"stroke-width":t.width,stroke:t.color,mask:"url(#mask"+e.unique+t.key+")"}},[n("animate",{attrs:{attributeName:"stroke-dasharray",from:"0, "+e.flylineLengths[r],to:e.flylineLengths[r]+", 0",dur:t.time,repeatCount:"indefinite"}})]):e._e()])}))],2):e._e()])}),kr=[],Er=(n("25f0"),n("7db0"),{name:"DvFlylineChartEnhanced",mixins:[U],props:{config:{type:Object,default:function(){return{}}},dev:{type:Boolean,default:!1}},data:function(){var e=N();return{ref:"dv-flyline-chart-enhanced",unique:Math.random(),flylineGradientId:"flyline-gradient-id-".concat(e),haloGradientId:"halo-gradient-id-".concat(e),defaultConfig:{points:[],lines:[],halo:{show:!1,duration:[20,30],color:"#fb7293",radius:120},text:{show:!1,offset:[0,15],color:"#ffdb5c",fontSize:12},icon:{show:!1,src:"",width:15,height:15},line:{width:1,color:"#ffde93",orbitColor:"rgba(103, 224, 227, .2)",duration:[20,30],radius:100},bgImgSrc:"",k:-.5,curvature:5,relative:!0},flylines:[],flylineLengths:[],flylinePoints:[],mergedConfig:null}},watch:{config:function(){var e=this.calcData;e()}},methods:{afterAutoResizeMixinInit:function(){var e=this.calcData;e()},onResize:function(){var e=this.calcData;e()},calcData:function(){var e=this;return Object(Sr["a"])(regeneratorRuntime.mark((function t(){var n,r,i,o;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.mergeConfig,r=e.calcflylinePoints,i=e.calcLinePaths,n(),r(),i(),o=e.calcLineLengths,t.next=7,o();case 7:case"end":return t.stop()}}),t)})))()},mergeConfig:function(){var e=this.config,t=this.defaultConfig,n=Object(y["deepMerge"])(Object(_["deepClone"])(t,!0),e||{}),r=n.points,i=n.lines,o=n.halo,a=n.text,s=n.icon,c=n.line;n.points=r.map((function(e){return e.halo=Object(y["deepMerge"])(Object(_["deepClone"])(o,!0),e.halo||{}),e.text=Object(y["deepMerge"])(Object(_["deepClone"])(a,!0),e.text||{}),e.icon=Object(y["deepMerge"])(Object(_["deepClone"])(s,!0),e.icon||{}),e})),n.lines=i.map((function(e){return Object(y["deepMerge"])(Object(_["deepClone"])(c,!0),e)})),this.mergedConfig=n},calcflylinePoints:function(){var e=this.mergedConfig,t=this.width,n=this.height,r=e.relative,i=e.points;this.flylinePoints=i.map((function(e,i){var a=g(e.coordinate,2),s=a[0],c=a[1],u=e.halo,l=e.icon,d=e.text;r&&(e.coordinate=[s*t,c*n]),e.halo.time=O.apply(void 0,Object(o["a"])(u.duration))/10;var h=l.width,f=l.height;e.icon.x=e.coordinate[0]-h/2,e.icon.y=e.coordinate[1]-f/2;var p=g(d.offset,2),m=p[0],v=p[1];return e.text.x=e.coordinate[0]+m,e.text.y=e.coordinate[1]+v,e.key="".concat(e.coordinate.toString()).concat(i),e}))},calcLinePaths:function(){var e=this.getPath,t=this.mergedConfig,n=t.points,r=t.lines;this.flylines=r.map((function(t){var r=t.source,i=t.target,s=t.duration,c=n.find((function(e){var t=e.name;return t===r})).coordinate,u=n.find((function(e){var t=e.name;return t===i})).coordinate,l=e(c,u).map((function(e){return e.map((function(e){return parseFloat(e.toFixed(10))}))})),d="M".concat(l[0].toString()," Q").concat(l[1].toString()," ").concat(l[2].toString()),h="path".concat(l.toString()),f=O.apply(void 0,Object(o["a"])(s))/10;return Object(a["a"])(Object(a["a"])({},t),{},{path:l,key:h,d:d,time:f})}))},getPath:function(e,t){var n=this.getControlPoint,r=n(e,t);return[e,r,t]},getControlPoint:function(e,t){var n=g(e,2),r=n[0],i=n[1],o=g(t,2),a=o[0],s=o[1],c=this.getKLinePointByx,u=this.mergedConfig,l=u.curvature,d=u.k,h=(r+a)/2,f=(i+s)/2,p=P([r,i],[a,s]),m=p/l,v=m/2,y=h,_=f;do{y+=v,_=c(d,[h,f],y)[1]}while(P([h,f],[y,_])<m);return[y,_]},getKLinePointByx:function(e,t,n){var r=g(t,2),i=r[0],o=r[1],a=o-e*i+e*n;return[n,a]},calcLineLengths:function(){var e=this;return Object(Sr["a"])(regeneratorRuntime.mark((function t(){var n,r,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.$nextTick,r=e.flylines,i=e.$refs,t.next=3,n();case 3:e.flylineLengths=r.map((function(e){var t=e.key;return i[t][0].getTotalLength()}));case 4:case"end":return t.stop()}}),t)})))()},consoleClickPos:function(e){var t=e.offsetX,n=e.offsetY,r=this.width,i=this.height,o=this.dev;if(o){var a=(t/r).toFixed(2),s=(n/i).toFixed(2);console.warn("dv-flyline-chart-enhanced DEV: \n Click Position is [".concat(t,", ").concat(n,"] \n Relative Position is [").concat(a,", ").concat(s,"]"))}}}}),Ar=Er,Dr=Object(x["a"])(Ar,Tr,kr,!1,null,null,null),Or=Dr.exports,Rr=function(e){e.component(Or.name,Or)},Lr=(n("7cc8"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:e.ref,attrs:{id:"dv-full-screen-container"}},[e.ready?[e._t("default")]:e._e()],2)}),Pr=[],Nr={name:"DvFullScreenContainer",mixins:[U],data:function(){return{ref:"full-screen-container",allWidth:0,scale:0,datavRoot:"",ready:!1}},methods:{afterAutoResizeMixinInit:function(){var e=this.initConfig,t=this.setAppScale;e(),t(),this.ready=!0},initConfig:function(){var e=this.dom,t=screen,n=t.width,r=t.height;this.allWidth=n,e.style.width="".concat(n,"px"),e.style.height="".concat(r,"px")},setAppScale:function(){var e=this.allWidth,t=this.dom,n=document.body.clientWidth;t.style.transform="scale(".concat(n/e,")")},onResize:function(){var e=this.setAppScale;e()}}},Ur=Nr,Fr=Object(x["a"])(Ur,Lr,Pr,!1,null,null,null),Gr=Fr.exports,Vr=function(e){e.component(Gr.name,Gr)},jr=(n("84cd"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"dv-loading"},[n("svg",{attrs:{width:"50px",height:"50px"}},[n("circle",{attrs:{cx:"25",cy:"25",r:"20",fill:"transparent","stroke-width":"3","stroke-dasharray":"31.415, 31.415",stroke:"#02bcfe","stroke-linecap":"round"}},[n("animateTransform",{attrs:{attributeName:"transform",type:"rotate",values:"0, 25 25;360, 25 25",dur:"1.5s",repeatCount:"indefinite"}}),n("animate",{attrs:{attributeName:"stroke",values:"#02bcfe;#3be6cb;#02bcfe",dur:"3s",repeatCount:"indefinite"}})],1),n("circle",{attrs:{cx:"25",cy:"25",r:"10",fill:"transparent","stroke-width":"3","stroke-dasharray":"15.7, 15.7",stroke:"#3be6cb","stroke-linecap":"round"}},[n("animateTransform",{attrs:{attributeName:"transform",type:"rotate",values:"360, 25 25;0, 25 25",dur:"1.5s",repeatCount:"indefinite"}}),n("animate",{attrs:{attributeName:"stroke",values:"#3be6cb;#02bcfe;#3be6cb",dur:"3s",repeatCount:"indefinite"}})],1)]),n("div",{staticClass:"loading-tip"},[e._t("default")],2)])}),Br=[],zr={name:"DvLoading"},Hr=zr,Wr=Object(x["a"])(Hr,jr,Br,!1,null,null,null),qr=Wr.exports,$r=function(e){e.component(qr.name,qr)},Kr=(n("a157"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"percent-pond",staticClass:"dv-percent-pond"},[n("svg",[n("defs",[n("linearGradient",{attrs:{id:e.gradientId1,x1:"0%",y1:"0%",x2:"100%",y2:"0%"}},e._l(e.linearGradient,(function(e){return n("stop",{key:e[0],attrs:{offset:e[0]+"%","stop-color":e[1]}})})),1),n("linearGradient",{attrs:{id:e.gradientId2,x1:"0%",y1:"0%",x2:e.gradient2XPos,y2:"0%"}},e._l(e.linearGradient,(function(e){return n("stop",{key:e[0],attrs:{offset:e[0]+"%","stop-color":e[1]}})})),1)],1),n("rect",{attrs:{x:e.mergedConfig?e.mergedConfig.borderWidth/2:"0",y:e.mergedConfig?e.mergedConfig.borderWidth/2:"0",rx:e.mergedConfig?e.mergedConfig.borderRadius:"0",ry:e.mergedConfig?e.mergedConfig.borderRadius:"0",fill:"transparent","stroke-width":e.mergedConfig?e.mergedConfig.borderWidth:"0",stroke:"url(#"+e.gradientId1+")",width:e.rectWidth>0?e.rectWidth:0,height:e.rectHeight>0?e.rectHeight:0}}),n("polyline",{attrs:{"stroke-width":e.polylineWidth,"stroke-dasharray":e.mergedConfig?e.mergedConfig.lineDash.join(","):"0",stroke:"url(#"+e.polylineGradient+")",points:e.points}}),n("text",{attrs:{stroke:e.mergedConfig?e.mergedConfig.textColor:"#fff",fill:e.mergedConfig?e.mergedConfig.textColor:"#fff",x:e.width/2,y:e.height/2}},[e._v(" "+e._s(e.details)+" ")])])])}),Yr=[],Jr=(n("ac1f"),n("5319"),{name:"DvPercentPond",props:{config:{type:Object,default:function(){return{}}}},data:function(){var e=N();return{gradientId1:"percent-pond-gradientId1-".concat(e),gradientId2:"percent-pond-gradientId2-".concat(e),width:0,height:0,defaultConfig:{value:0,colors:["#3DE7C9","#00BAFF"],borderWidth:3,borderGap:3,lineDash:[5,1],textColor:"#fff",borderRadius:5,localGradient:!1,formatter:"{value}%"},mergedConfig:null}},computed:{rectWidth:function(){var e=this.mergedConfig,t=this.width;if(!e)return 0;var n=e.borderWidth;return t-n},rectHeight:function(){var e=this.mergedConfig,t=this.height;if(!e)return 0;var n=e.borderWidth;return t-n},points:function(){var e=this.mergedConfig,t=this.width,n=this.height,r=n/2;if(!e)return"0, ".concat(r," 0, ").concat(r);var i=e.borderWidth,o=e.borderGap,a=e.value,s=(t-2*(i+o))/100*a;return"\n        ".concat(i+o,", ").concat(r,"\n        ").concat(i+o+s,", ").concat(r+.001,"\n      ")},polylineWidth:function(){var e=this.mergedConfig,t=this.height;if(!e)return 0;var n=e.borderWidth,r=e.borderGap;return t-2*(n+r)},linearGradient:function(){var e=this.mergedConfig;if(!e)return[];var t=e.colors,n=t.length,r=100/(n-1);return t.map((function(e,t){return[r*t,e]}))},polylineGradient:function(){var e=this.gradientId1,t=this.gradientId2,n=this.mergedConfig;return n&&n.localGradient?e:t},gradient2XPos:function(){var e=this.mergedConfig;if(!e)return"100%";var t=e.value;return"".concat(200-t,"%")},details:function(){var e=this.mergedConfig;if(!e)return"";var t=e.value,n=e.formatter;return n.replace("{value}",t)}},watch:{config:function(){var e=this.mergeConfig;e()}},methods:{init:function(){var e=this;return Object(Sr["a"])(regeneratorRuntime.mark((function t(){var n,r,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.initWH,r=e.config,i=e.mergeConfig,t.next=3,n();case 3:if(r){t.next=5;break}return t.abrupt("return");case 5:i();case 6:case"end":return t.stop()}}),t)})))()},initWH:function(){var e=this;return Object(Sr["a"])(regeneratorRuntime.mark((function t(){var n,r,i,o,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.$nextTick,r=e.$refs,t.next=3,n();case 3:i=r["percent-pond"],o=i.clientWidth,a=i.clientHeight,e.width=o,e.height=a;case 6:case"end":return t.stop()}}),t)})))()},mergeConfig:function(){var e=this.config,t=this.defaultConfig;this.mergedConfig=Object(y["deepMerge"])(Object(_["deepClone"])(t,!0),e||{})}},mounted:function(){var e=this.init;e()}}),Xr=Jr,Zr=Object(x["a"])(Xr,Kr,Yr,!1,null,null,null),Qr=Zr.exports,ei=function(e){e.component(Qr.name,Qr)},ti=(n("037e"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:e.ref,staticClass:"dv-scroll-board"},[e.header.length&&e.mergedConfig?n("div",{staticClass:"header",style:"background-color: "+e.mergedConfig.headerBGC+";"},e._l(e.header,(function(t,r){return n("div",{key:""+t+r,staticClass:"header-item",style:"\n        height: "+e.mergedConfig.headerHeight+"px;\n        line-height: "+e.mergedConfig.headerHeight+"px;\n        width: "+e.widths[r]+"px;\n      ",attrs:{align:e.aligns[r]},domProps:{innerHTML:e._s(t)}})})),0):e._e(),e.mergedConfig?n("div",{staticClass:"rows",style:"height: "+(e.height-(e.header.length?e.mergedConfig.headerHeight:0))+"px;"},e._l(e.rows,(function(t,r){return n("div",{key:""+t.toString()+t.scroll,staticClass:"row-item",style:"\n        height: "+e.heights[r]+"px;\n        line-height: "+e.heights[r]+"px;\n        background-color: "+e.mergedConfig[t.rowIndex%2===0?"evenRowBGC":"oddRowBGC"]+";\n      "},e._l(t.ceils,(function(i,o){return n("div",{key:""+i+r+o,staticClass:"ceil",style:"width: "+e.widths[o]+"px;",attrs:{align:e.aligns[o]},domProps:{innerHTML:e._s(i)},on:{click:function(n){return e.emitEvent("click",r,o,t,i)},mouseenter:function(n){return e.handleHover(!0,r,o,t,i)},mouseleave:function(t){return e.handleHover(!1)}}})})),0)})),0):e._e()])}),ni=[],ri=(n("fb6a"),n("a434"),{name:"DvScrollBoard",mixins:[U],props:{config:{type:Object,default:function(){return{}}}},data:function(){return{ref:"scroll-board",defaultConfig:{header:[],data:[],rowNum:5,headerBGC:"#00BAFF",oddRowBGC:"#003B51",evenRowBGC:"#0A2732",waitTime:2e3,headerHeight:35,columnWidth:[],align:[],index:!1,indexHeader:"#",carousel:"single",hoverPause:!0},mergedConfig:null,header:[],rowsData:[],rows:[],widths:[],heights:[],avgHeight:0,aligns:[],animationIndex:0,animationHandler:"",updater:0,needCalc:!1}},watch:{config:function(){var e=this.stopAnimation,t=this.calcData;e(),this.animationIndex=0,t()}},methods:{handleHover:function(e,t,n,r,i){var o=this.mergedConfig,a=this.emitEvent,s=this.stopAnimation,c=this.animation;e&&a("mouseover",t,n,r,i),o.hoverPause&&(e?s():c(!0))},afterAutoResizeMixinInit:function(){var e=this.calcData;e()},onResize:function(){var e=this.mergedConfig,t=this.calcWidths,n=this.calcHeights;e&&(t(),n())},calcData:function(){var e=this.mergeConfig,t=this.calcHeaderData,n=this.calcRowsData;e(),t(),n();var r=this.calcWidths,i=this.calcHeights,o=this.calcAligns;r(),i(),o();var a=this.animation;a(!0)},mergeConfig:function(){var e=this.config,t=this.defaultConfig;this.mergedConfig=Object(y["deepMerge"])(Object(_["deepClone"])(t,!0),e||{})},calcHeaderData:function(){var e=this.mergedConfig,t=e.header,n=e.index,r=e.indexHeader;t.length?(t=Object(o["a"])(t),n&&t.unshift(r),this.header=t):this.header=[]},calcRowsData:function(){var e=this.mergedConfig,t=e.data,n=e.index,r=e.headerBGC,i=e.rowNum;n&&(t=t.map((function(e,t){e=Object(o["a"])(e);var n='<span class="index" style="background-color: '.concat(r,';">').concat(t+1,"</span>");return e.unshift(n),e}))),t=t.map((function(e,t){return{ceils:e,rowIndex:t}}));var s=t.length;s>i&&s<2*i&&(t=[].concat(Object(o["a"])(t),Object(o["a"])(t))),t=t.map((function(e,t){return Object(a["a"])(Object(a["a"])({},e),{},{scroll:t})})),this.rowsData=t,this.rows=t},calcWidths:function(){var e=this.width,t=this.mergedConfig,n=this.rowsData,r=t.columnWidth,i=t.header,o=r.reduce((function(e,t){return e+t}),0),a=0;n[0]?a=n[0].ceils.length:i.length&&(a=i.length);var s=(e-o)/(a-r.length),c=new Array(a).fill(s);this.widths=Object(y["deepMerge"])(c,r)},calcHeights:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.height,n=this.mergedConfig,r=this.header,i=n.headerHeight,o=n.rowNum,a=n.data,s=t;r.length&&(s-=i);var c=s/o;this.avgHeight=c,e||(this.heights=new Array(a.length).fill(c))},calcAligns:function(){var e=this.header,t=this.mergedConfig,n=e.length,r=new Array(n).fill("left"),i=t.align;this.aligns=Object(y["deepMerge"])(r,i)},animation:function(){var e=arguments,t=this;return Object(Sr["a"])(regeneratorRuntime.mark((function n(){var r,i,a,s,c,u,l,d,h,f,p,g,m,v,y,_,b,S;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(i=e.length>0&&void 0!==e[0]&&e[0],a=t.needCalc,s=t.calcHeights,c=t.calcRowsData,a&&(c(),s(),t.needCalc=!1),u=t.avgHeight,l=t.animationIndex,d=t.mergedConfig,h=t.rowsData,f=t.animation,p=t.updater,g=d.waitTime,m=d.carousel,v=d.rowNum,y=h.length,!(v>=y)){n.next=8;break}return n.abrupt("return");case 8:if(!i){n.next=13;break}return n.next=11,new Promise((function(e){return setTimeout(e,g)}));case 11:if(p===t.updater){n.next=13;break}return n.abrupt("return");case 13:return _="single"===m?1:v,b=h.slice(l),b.push.apply(b,Object(o["a"])(h.slice(0,l))),t.rows=b.slice(0,"page"===m?2*v:v+1),t.heights=new Array(y).fill(u),n.next=20,new Promise((function(e){return setTimeout(e,300)}));case 20:if(p===t.updater){n.next=22;break}return n.abrupt("return");case 22:(r=t.heights).splice.apply(r,[0,_].concat(Object(o["a"])(new Array(_).fill(0)))),l+=_,S=l-y,S>=0&&(l=S),t.animationIndex=l,t.animationHandler=setTimeout(f,g-300);case 28:case"end":return n.stop()}}),n)})))()},stopAnimation:function(){var e=this.animationHandler,t=this.updater;this.updater=(t+1)%999999,e&&clearTimeout(e)},emitEvent:function(e,t,n,r,i){var o=r.ceils,a=r.rowIndex;this.$emit(e,{row:o,ceil:i,rowIndex:a,columnIndex:n})},updateRows:function(e,t){var n=this.mergedConfig,r=this.animationHandler,i=this.animation;this.mergedConfig=Object(a["a"])(Object(a["a"])({},n),{},{data:Object(o["a"])(e)}),this.needCalc=!0,"number"===typeof t&&(this.animationIndex=t),r||i(!0)}},destroyed:function(){var e=this.stopAnimation;e()}}),ii=ri,oi=Object(x["a"])(ii,ti,ni,!1,null,null,null),ai=oi.exports,si=function(e){e.component(ai.name,ai)},ci=(n("c280"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:e.ref,staticClass:"dv-scroll-ranking-board"},e._l(e.rows,(function(t,r){return n("div",{key:t.toString()+t.scroll,staticClass:"row-item",style:"height: "+e.heights[r]+"px;"},[n("div",{staticClass:"ranking-info"},[n("div",{staticClass:"rank"},[e._v("No."+e._s(t.ranking))]),n("div",{staticClass:"info-name",domProps:{innerHTML:e._s(t.name)}}),n("div",{staticClass:"ranking-value"},[e._v(e._s(e.mergedConfig.valueFormatter?e.mergedConfig.valueFormatter(t):t.value+e.mergedConfig.unit))])]),n("div",{staticClass:"ranking-column"},[n("div",{staticClass:"inside-column",style:"width: "+t.percent+"%;"},[n("div",{staticClass:"shine"})])])])})),0)}),ui=[],li={name:"DvScrollRankingBoard",mixins:[U],props:{config:{type:Object,default:function(){return{}}}},data:function(){return{ref:"scroll-ranking-board",defaultConfig:{data:[],rowNum:5,waitTime:2e3,carousel:"single",unit:"",sort:!0,valueFormatter:null},mergedConfig:null,rowsData:[],rows:[],heights:[],animationIndex:0,animationHandler:"",updater:0}},watch:{config:function(){var e=this.stopAnimation,t=this.calcData;e(),t()}},methods:{afterAutoResizeMixinInit:function(){var e=this.calcData;e()},onResize:function(){var e=this.mergedConfig,t=this.calcHeights;e&&t(!0)},calcData:function(){var e=this.mergeConfig,t=this.calcRowsData;e(),t();var n=this.calcHeights;n();var r=this.animation;r(!0)},mergeConfig:function(){var e=this.config,t=this.defaultConfig;this.mergedConfig=Object(y["deepMerge"])(Object(_["deepClone"])(t,!0),e||{})},calcRowsData:function(){var e=this.mergedConfig,t=e.data,n=e.rowNum,r=e.sort;r&&t.sort((function(e,t){var n=e.value,r=t.value;return n>r?-1:n<r?1:n===r?0:void 0}));var i=t.map((function(e){var t=e.value;return t})),s=Math.min.apply(Math,Object(o["a"])(i))||0,c=Math.abs(s),u=Math.max.apply(Math,Object(o["a"])(i))||0,l=(Math.abs(u),u+c);t=t.map((function(e,t){return Object(a["a"])(Object(a["a"])({},e),{},{ranking:t+1,percent:(e.value+c)/l*100})}));var d=t.length;d>n&&d<2*n&&(t=[].concat(Object(o["a"])(t),Object(o["a"])(t))),t=t.map((function(e,t){return Object(a["a"])(Object(a["a"])({},e),{},{scroll:t})})),this.rowsData=t,this.rows=t},calcHeights:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.height,n=this.mergedConfig,r=n.rowNum,i=n.data,o=t/r;this.avgHeight=o,e||(this.heights=new Array(i.length).fill(o))},animation:function(){var e=arguments,t=this;return Object(Sr["a"])(regeneratorRuntime.mark((function n(){var r,i,a,s,c,u,l,d,h,f,p,g,m,v,y;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(i=e.length>0&&void 0!==e[0]&&e[0],a=t.avgHeight,s=t.animationIndex,c=t.mergedConfig,u=t.rowsData,l=t.animation,d=t.updater,h=c.waitTime,f=c.carousel,p=c.rowNum,g=u.length,!(p>=g)){n.next=6;break}return n.abrupt("return");case 6:if(!i){n.next=11;break}return n.next=9,new Promise((function(e){return setTimeout(e,h)}));case 9:if(d===t.updater){n.next=11;break}return n.abrupt("return");case 11:return m="single"===f?1:p,v=u.slice(s),v.push.apply(v,Object(o["a"])(u.slice(0,s))),t.rows=v.slice(0,p+1),t.heights=new Array(g).fill(a),n.next=18,new Promise((function(e){return setTimeout(e,300)}));case 18:if(d===t.updater){n.next=20;break}return n.abrupt("return");case 20:(r=t.heights).splice.apply(r,[0,m].concat(Object(o["a"])(new Array(m).fill(0)))),s+=m,y=s-g,y>=0&&(s=y),t.animationIndex=s,t.animationHandler=setTimeout(l,h-300);case 26:case"end":return n.stop()}}),n)})))()},stopAnimation:function(){var e=this.animationHandler,t=this.updater;this.updater=(t+1)%999999,e&&clearTimeout(e)}},destroyed:function(){var e=this.stopAnimation;e()}},di=li,hi=Object(x["a"])(di,ci,ui,!1,null,null,null),fi=hi.exports,pi=function(e){e.component(fi.name,fi)},gi=(n("fa10"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"dv-water-pond-level"},[e.renderer?n("svg",[n("defs",[n("linearGradient",{attrs:{id:e.gradientId,x1:"0%",y1:"0%",x2:"0%",y2:"100%"}},e._l(e.svgBorderGradient,(function(e){return n("stop",{key:e[0],attrs:{offset:e[0],"stop-color":e[1]}})})),1)],1),e.renderer?n("text",{attrs:{stroke:"url(#"+e.gradientId+")",fill:"url(#"+e.gradientId+")",x:e.renderer.area[0]/2+8,y:e.renderer.area[1]/2+8}},[e._v(" "+e._s(e.details)+" ")]):e._e(),e.shape&&"round"!==e.shape?n("rect",{attrs:{x:"2",y:"2",rx:"roundRect"===e.shape?10:0,ry:"roundRect"===e.shape?10:0,width:e.renderer.area[0]+12,height:e.renderer.area[1]+12,stroke:"url(#"+e.gradientId+")"}}):n("ellipse",{attrs:{cx:e.renderer.area[0]/2+8,cy:e.renderer.area[1]/2+8,rx:e.renderer.area[0]/2+5,ry:e.renderer.area[1]/2+5,stroke:"url(#"+e.gradientId+")"}})]):e._e(),n("canvas",{ref:"water-pond-level",style:"border-radius: "+e.radius+";"})])}),mi=[],vi={name:"DvWaterLevelPond",props:{config:Object,default:function(){return{}}},data:function(){var e=N();return{gradientId:"water-level-pond-".concat(e),defaultConfig:{data:[],shape:"rect",waveNum:3,waveHeight:40,waveOpacity:.4,colors:["#3DE7C9","#00BAFF"],formatter:"{value}%"},mergedConfig:{},renderer:null,svgBorderGradient:[],details:"",waves:[],animation:!1}},computed:{radius:function(){var e=this.mergedConfig.shape;return"round"===e?"50%":"rect"===e?"0":"roundRect"===e?"10px":"0"},shape:function(){var e=this.mergedConfig.shape;return e||"rect"}},watch:{config:function(){var e=this.calcData,t=this.renderer;t.delAllGraph(),this.waves=[],setTimeout(e,0)}},methods:{init:function(){var e=this.initRender,t=this.config,n=this.calcData;e(),t&&n()},initRender:function(){var e=this.$refs;this.renderer=new v.a(e["water-pond-level"])},calcData:function(){var e=this.mergeConfig,t=this.calcSvgBorderGradient,n=this.calcDetails;e(),t(),n();var r=this.addWave,i=this.animationWave;r(),i()},mergeConfig:function(){var e=this.config,t=this.defaultConfig;this.mergedConfig=Object(y["deepMerge"])(Object(_["deepClone"])(t,!0),e)},calcSvgBorderGradient:function(){var e=this.mergedConfig.colors,t=e.length,n=100/(t-1);this.svgBorderGradient=e.map((function(e,t){return[n*t,e]}))},calcDetails:function(){var e=this.mergedConfig,t=e.data,n=e.formatter;if(t.length){var r=Math.max.apply(Math,Object(o["a"])(t));this.details=n.replace("{value}",r)}else this.details=""},addWave:function(){var e=this.renderer,t=this.getWaveShapes,n=this.getWaveStyle,r=this.drawed,i=t(),o=n();this.waves=i.map((function(t){return e.add({name:"smoothline",animationFrame:300,shape:t,style:o,drawed:r})}))},getWaveShapes:function(){var e=this.mergedConfig,t=this.renderer,n=this.mergeOffset,r=e.waveNum,i=e.waveHeight,o=e.data,a=g(t.area,2),s=a[0],c=a[1],u=4*r+4,l=s/r/2;return o.map((function(e){var t=new Array(u).fill(0).map((function(t,n){var r=s-l*n,o=(1-e/100)*c,a=n%2===0?o:o-i;return[r,a]}));return t=t.map((function(e){return n(e,[2*l,0])})),{points:t}}))},mergeOffset:function(e,t){var n=g(e,2),r=n[0],i=n[1],o=g(t,2),a=o[0],s=o[1];return[r+a,i+s]},getWaveStyle:function(){var e=this.renderer,t=this.mergedConfig,n=e.area[1];return{gradientColor:t.colors,gradientType:"linear",gradientParams:[0,0,0,n],gradientWith:"fill",opacity:t.waveOpacity,translate:[0,0]}},drawed:function(e,t){var n=e.shape.points,r=t.ctx,i=t.area,o=n[0],a=n.slice(-1)[0],s=i[1];r.lineTo(a[0],s),r.lineTo(o[0],s),r.closePath(),r.fill()},animationWave:function(){var e=arguments,t=this;return Object(Sr["a"])(regeneratorRuntime.mark((function n(){var r,i,o,a,s;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(r=e.length>0&&void 0!==e[0]?e[0]:1,i=t.waves,o=t.renderer,a=t.animation,!a){n.next=4;break}return n.abrupt("return");case 4:return t.animation=!0,s=o.area[0],i.forEach((function(e){e.attr("style",{translate:[0,0]}),e.animation("style",{translate:[s,0]},!0)})),n.next=9,o.launchAnimation();case 9:if(t.animation=!1,o.graphs.length){n.next=12;break}return n.abrupt("return");case 12:t.animationWave(r+1);case 13:case"end":return n.stop()}}),n)})))()}},mounted:function(){var e=this.init;e()},beforeDestroy:function(){var e=this.renderer;e.delAllGraph(),this.waves=[]}},yi=vi,_i=Object(x["a"])(yi,gi,mi,!1,null,null,null),bi=_i.exports,Si=function(e){e.component(bi.name,bi)};t["a"]=function(e){e.use(Vr),e.use($r),e.use(B),e.use(Ie),e.use(De),e.use(Fe),e.use(We),e.use(Ze),e.use(ot),e.use(ht),e.use(_t),e.use(Y),e.use(re),e.use(le),e.use(ve),e.use($t),e.use(xn),e.use(En),e.use(Nn),e.use(zn),e.use(Jn),e.use(rr),e.use(lr),e.use(vr),e.use(en),e.use(cn),e.use(gn),e.use(Rt),e.use(E),e.use(Mt),e.use(Si),e.use(ei),e.use(Mr),e.use(Rr),e.use(Vt),e.use(yr),e.use(si),e.use(pi)}},"6c57":function(e,t,n){var r=n("23e7"),i=n("da84");r({global:!0},{globalThis:i})},"6cb7":function(e,t,n){var r=n("6d8b"),i=n("4319"),o=n("8918"),a=n("625e"),s=a.enableClassManagement,c=a.parseClassType,u=n("e0d3"),l=u.makeInner,d=n("f934"),h=n("de1c"),f=l(),p=i.extend({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(e,t,n,r){i.call(this,e,t,n,r),this.uid=o.getUID("ec_cpt_model")},init:function(e,t,n,r){this.mergeDefaultAndTheme(e,n)},mergeDefaultAndTheme:function(e,t){var n=this.layoutMode,i=n?d.getLayoutParams(e):{},o=t.getTheme();r.merge(e,o.get(this.mainType)),r.merge(e,this.getDefaultOption()),n&&d.mergeLayoutParam(e,i,n)},mergeOption:function(e,t){r.merge(this.option,e,!0);var n=this.layoutMode;n&&d.mergeLayoutParam(this.option,e,n)},optionUpdated:function(e,t){},getDefaultOption:function(){var e=f(this);if(!e.defaultOption){var t=[],n=this.constructor;while(n){var i=n.prototype.defaultOption;i&&t.push(i),n=n.superClass}for(var o={},a=t.length-1;a>=0;a--)o=r.merge(o,t[a],!0);e.defaultOption=o}return e.defaultOption},getReferringComponents:function(e){return this.ecModel.queryComponents({mainType:e,index:this.get(e+"Index",!0),id:this.get(e+"Id",!0)})}});function g(e){var t=[];return r.each(p.getClassesByMainType(e),(function(e){t=t.concat(e.prototype.dependencies||[])})),t=r.map(t,(function(e){return c(e).main})),"dataset"!==e&&r.indexOf(t,"dataset")<=0&&t.unshift("dataset"),t}s(p,{registerWhenExtend:!0}),o.enableSubTypeDefaulter(p),o.enableTopologicalTravel(p,g),r.mixin(p,h);var m=p;e.exports=m},"6cc5":function(e,t,n){var r=n("6d8b"),i=n("401b"),o=n("1687"),a=n("9850"),s=n("0cde"),c=i.applyTransform;function u(){s.call(this)}function l(e){this.name=e,this.zoomLimit,s.call(this),this._roamTransformable=new u,this._rawTransformable=new u,this._center,this._zoom}function d(e,t,n,r){var i=n.seriesModel,o=i?i.coordinateSystem:null;return o===this?o[e](r):null}r.mixin(u,s),l.prototype={constructor:l,type:"view",dimensions:["x","y"],setBoundingRect:function(e,t,n,r){return this._rect=new a(e,t,n,r),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(e,t,n,r){this.transformTo(e,t,n,r),this._viewRect=new a(e,t,n,r)},transformTo:function(e,t,n,r){var i=this.getBoundingRect(),o=this._rawTransformable;o.transform=i.calculateTransform(new a(e,t,n,r)),o.decomposeTransform(),this._updateTransform()},setCenter:function(e){e&&(this._center=e,this._updateCenterAndZoom())},setZoom:function(e){e=e||1;var t=this.zoomLimit;t&&(null!=t.max&&(e=Math.min(t.max,e)),null!=t.min&&(e=Math.max(t.min,e))),this._zoom=e,this._updateCenterAndZoom()},getDefaultCenter:function(){var e=this.getBoundingRect(),t=e.x+e.width/2,n=e.y+e.height/2;return[t,n]},getCenter:function(){return this._center||this.getDefaultCenter()},getZoom:function(){return this._zoom||1},getRoamTransform:function(){return this._roamTransformable.getLocalTransform()},_updateCenterAndZoom:function(){var e=this._rawTransformable.getLocalTransform(),t=this._roamTransformable,n=this.getDefaultCenter(),r=this.getCenter(),o=this.getZoom();r=i.applyTransform([],r,e),n=i.applyTransform([],n,e),t.origin=r,t.position=[n[0]-r[0],n[1]-r[1]],t.scale=[o,o],this._updateTransform()},_updateTransform:function(){var e=this._roamTransformable,t=this._rawTransformable;t.parent=e,e.updateTransform(),t.updateTransform(),o.copy(this.transform||(this.transform=[]),t.transform||o.create()),this._rawTransform=t.getLocalTransform(),this.invTransform=this.invTransform||[],o.invert(this.invTransform,this.transform),this.decomposeTransform()},getTransformInfo:function(){var e=this._roamTransformable.transform,t=this._rawTransformable;return{roamTransform:e?r.slice(e):o.create(),rawScale:r.slice(t.scale),rawPosition:r.slice(t.position)}},getViewRect:function(){return this._viewRect},getViewRectAfterRoam:function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},dataToPoint:function(e,t,n){var r=t?this._rawTransform:this.transform;return n=n||[],r?c(n,e,r):i.copy(n,e)},pointToData:function(e){var t=this.invTransform;return t?c([],e,t):[e[0],e[1]]},convertToPixel:r.curry(d,"dataToPoint"),convertFromPixel:r.curry(d,"pointToData"),containPoint:function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])}},r.mixin(l,s);var h=l;e.exports=h},"6ccd":function(e,t,n){},"6cd8":function(e,t,n){var r=n("6d8b"),i=n("2306"),o=n("1418"),a=n("22da"),s=a.radialCoordinate,c=n("3eba"),u=n("e263"),l=n("6cc5"),d=n("01ef"),h=n("4a01"),f=n("c526"),p=f.onIrrelevantElement,g=n("4e08"),m=(g.__DEV__,n("3842")),v=m.parsePercent,y=i.extendShape({shape:{parentPoint:[],childPoints:[],orient:"",forkPosition:""},style:{stroke:"#000",fill:null},buildPath:function(e,t){var n=t.childPoints,r=n.length,i=t.parentPoint,o=n[0],a=n[r-1];if(1===r)return e.moveTo(i[0],i[1]),void e.lineTo(o[0],o[1]);var s=t.orient,c="TB"===s||"BT"===s?0:1,u=1-c,l=v(t.forkPosition,1),d=[];d[c]=i[c],d[u]=i[u]+(a[u]-i[u])*l,e.moveTo(i[0],i[1]),e.lineTo(d[0],d[1]),e.moveTo(o[0],o[1]),d[c]=o[c],e.lineTo(d[0],d[1]),d[c]=a[c],e.lineTo(d[0],d[1]),e.lineTo(a[0],a[1]);for(var h=1;h<r-1;h++){var f=n[h];e.moveTo(f[0],f[1]),d[c]=f[c],e.lineTo(d[0],d[1])}}}),_=c.extendChartView({type:"tree",init:function(e,t){this._oldTree,this._mainGroup=new i.Group,this._controller=new h(t.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},render:function(e,t,n,r){var i=e.getData(),o=e.layoutInfo,a=this._mainGroup,s=e.get("layout");"radial"===s?a.attr("position",[o.x+o.width/2,o.y+o.height/2]):a.attr("position",[o.x,o.y]),this._updateViewCoordSys(e,o,s),this._updateController(e,t,n);var c=this._data,u={expandAndCollapse:e.get("expandAndCollapse"),layout:s,edgeShape:e.get("edgeShape"),edgeForkPosition:e.get("edgeForkPosition"),orient:e.getOrient(),curvature:e.get("lineStyle.curveness"),symbolRotate:e.get("symbolRotate"),symbolOffset:e.get("symbolOffset"),hoverAnimation:e.get("hoverAnimation"),useNameLabel:!0,fadeIn:!0};i.diff(c).add((function(t){b(i,t)&&x(i,t,null,a,e,u)})).update((function(t,n){var r=c.getItemGraphicEl(n);b(i,t)?x(i,t,r,a,e,u):r&&I(c,n,r,a,e,u)})).remove((function(t){var n=c.getItemGraphicEl(t);n&&I(c,t,n,a,e,u)})).execute(),this._nodeScaleRatio=e.get("nodeScaleRatio"),this._updateNodeAndLinkScale(e),!0===u.expandAndCollapse&&i.eachItemGraphicEl((function(t,r){t.off("click").on("click",(function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:e.id,dataIndex:r})}))})),this._data=i},_updateViewCoordSys:function(e){var t=e.getData(),n=[];t.each((function(e){var r=t.getItemLayout(e);!r||isNaN(r.x)||isNaN(r.y)||n.push([+r.x,+r.y])}));var r=[],i=[];u.fromPoints(n,r,i);var o=this._min,a=this._max;i[0]-r[0]===0&&(r[0]=o?o[0]:r[0]-1,i[0]=a?a[0]:i[0]+1),i[1]-r[1]===0&&(r[1]=o?o[1]:r[1]-1,i[1]=a?a[1]:i[1]+1);var s=e.coordinateSystem=new l;s.zoomLimit=e.get("scaleLimit"),s.setBoundingRect(r[0],r[1],i[0]-r[0],i[1]-r[1]),s.setCenter(e.get("center")),s.setZoom(e.get("zoom")),this.group.attr({position:s.position,scale:s.scale}),this._viewCoordSys=s,this._min=r,this._max=i},_updateController:function(e,t,n){var r=this._controller,i=this._controllerHost,o=this.group;r.setPointerChecker((function(t,r,i){var a=o.getBoundingRect();return a.applyTransform(o.transform),a.contain(r,i)&&!p(t,n,e)})),r.enable(e.get("roam")),i.zoomLimit=e.get("scaleLimit"),i.zoom=e.coordinateSystem.getZoom(),r.off("pan").off("zoom").on("pan",(function(t){d.updateViewOnPan(i,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"treeRoam",dx:t.dx,dy:t.dy})}),this).on("zoom",(function(t){d.updateViewOnZoom(i,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"treeRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),this._updateNodeAndLinkScale(e)}),this)},_updateNodeAndLinkScale:function(e){var t=e.getData(),n=this._getNodeGlobalScale(e),r=[n,n];t.eachItemGraphicEl((function(e,t){e.attr("scale",r)}))},_getNodeGlobalScale:function(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=this._nodeScaleRatio,r=t.scale,i=r&&r[0]||1,o=t.getZoom(),a=(o-1)*n+1;return a/i},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={}},remove:function(){this._mainGroup.removeAll(),this._data=null}});function b(e,t){var n=e.getItemLayout(t);return n&&!isNaN(n.x)&&!isNaN(n.y)&&"none"!==e.getItemVisual(t,"symbol")}function S(e,t,n){return n.itemModel=t,n.itemStyle=t.getModel("itemStyle").getItemStyle(),n.hoverItemStyle=t.getModel("emphasis.itemStyle").getItemStyle(),n.lineStyle=t.getModel("lineStyle").getLineStyle(),n.labelModel=t.getModel("label"),n.hoverLabelModel=t.getModel("emphasis.label"),!1===e.isExpand&&0!==e.children.length?n.symbolInnerColor=n.itemStyle.fill:n.symbolInnerColor="#fff",n}function x(e,t,n,r,a,s){var c=!n,u=e.tree.getNodeByDataIndex(t),l=u.getModel(),d=(s=S(u,l,s),e.tree.root),h=u.parentNode===d?u:u.parentNode||u,f=e.getItemGraphicEl(h.dataIndex),p=h.getLayout(),g=f?{x:f.position[0],y:f.position[1],rawX:f.__radialOldRawX,rawY:f.__radialOldRawY}:p,m=u.getLayout();c?(n=new o(e,t,s),n.attr("position",[g.x,g.y])):n.updateData(e,t,s),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=m.rawX,n.__radialRawY=m.rawY,r.add(n),e.setItemGraphicEl(t,n),i.updateProps(n,{position:[m.x,m.y]},a);var v=n.getSymbolPath();if("radial"===s.layout){var y,_,b=d.children[0],x=b.getLayout(),I=b.children.length;if(m.x===x.x&&!0===u.isExpand){var C={};C.x=(b.children[0].getLayout().x+b.children[I-1].getLayout().x)/2,C.y=(b.children[0].getLayout().y+b.children[I-1].getLayout().y)/2,y=Math.atan2(C.y-x.y,C.x-x.x),y<0&&(y=2*Math.PI+y),_=C.x<x.x,_&&(y-=Math.PI)}else y=Math.atan2(m.y-x.y,m.x-x.x),y<0&&(y=2*Math.PI+y),0===u.children.length||0!==u.children.length&&!1===u.isExpand?(_=m.x<x.x,_&&(y-=Math.PI)):(_=m.x>x.x,_||(y-=Math.PI));var M=_?"left":"right",T=s.labelModel.get("rotate"),k=T*(Math.PI/180);v.setStyle({textPosition:s.labelModel.get("position")||M,textRotation:null==T?-y:k,textOrigin:"center",verticalAlign:"middle"})}w(a,u,d,n,g,p,m,r,s)}function w(e,t,n,o,a,s,c,u,l){var d=l.edgeShape,h=o.__edge;if("curve"===d)t.parentNode&&t.parentNode!==n&&(h||(h=o.__edge=new i.BezierCurve({shape:C(l,a,a),style:r.defaults({opacity:0,strokeNoScale:!0},l.lineStyle)})),i.updateProps(h,{shape:C(l,s,c),style:r.defaults({opacity:1},l.lineStyle)},e));else if("polyline"===d&&"orthogonal"===l.layout&&t!==n&&t.children&&0!==t.children.length&&!0===t.isExpand){for(var f=t.children,p=[],g=0;g<f.length;g++){var m=f[g].getLayout();p.push([m.x,m.y])}h||(h=o.__edge=new y({shape:{parentPoint:[c.x,c.y],childPoints:[[c.x,c.y]],orient:l.orient,forkPosition:l.edgeForkPosition},style:r.defaults({opacity:0,strokeNoScale:!0},l.lineStyle)})),i.updateProps(h,{shape:{parentPoint:[c.x,c.y],childPoints:p},style:r.defaults({opacity:1},l.lineStyle)},e)}u.add(h)}function I(e,t,n,r,o,a){var s,c=e.tree.getNodeByDataIndex(t),u=e.tree.root,l=c.getModel(),d=(a=S(c,l,a),c.parentNode===u?c:c.parentNode||c),h=a.edgeShape;while(s=d.getLayout(),null==s)d=d.parentNode===u?d:d.parentNode||d;i.updateProps(n,{position:[s.x+1,s.y+1]},o,(function(){r.remove(n),e.setItemGraphicEl(t,null)})),n.fadeOut(null,{keepLabel:!0});var f=e.getItemGraphicEl(d.dataIndex),p=f.__edge,g=n.__edge||(!1===d.isExpand||1===d.children.length?p:void 0);h=a.edgeShape;g&&("curve"===h?i.updateProps(g,{shape:C(a,s,s),style:{opacity:0}},o,(function(){r.remove(g)})):"polyline"===h&&"orthogonal"===a.layout&&i.updateProps(g,{shape:{parentPoint:[s.x,s.y],childPoints:[[s.x,s.y]]},style:{opacity:0}},o,(function(){r.remove(g)})))}function C(e,t,n){var r,i,o,a,c,u,l,d,h=e.orient;if("radial"===e.layout){c=t.rawX,l=t.rawY,u=n.rawX,d=n.rawY;var f=s(c,l),p=s(c,l+(d-l)*e.curvature),g=s(u,d+(l-d)*e.curvature),m=s(u,d);return{x1:f.x,y1:f.y,x2:m.x,y2:m.y,cpx1:p.x,cpy1:p.y,cpx2:g.x,cpy2:g.y}}return c=t.x,l=t.y,u=n.x,d=n.y,"LR"!==h&&"RL"!==h||(r=c+(u-c)*e.curvature,i=l,o=u+(c-u)*e.curvature,a=d),"TB"!==h&&"BT"!==h||(r=c,i=l+(d-l)*e.curvature,o=u,a=d+(l-d)*e.curvature),{x1:c,y1:l,x2:u,y2:d,cpx1:r,cpy1:i,cpx2:o,cpy2:a}}e.exports=_},"6d61":function(e,t,n){"use strict";var r=n("23e7"),i=n("da84"),o=n("e330"),a=n("94ca"),s=n("6eeb"),c=n("f183"),u=n("2266"),l=n("19aa"),d=n("1626"),h=n("861d"),f=n("d039"),p=n("1c7e"),g=n("d44e"),m=n("7156");e.exports=function(e,t,n){var v=-1!==e.indexOf("Map"),y=-1!==e.indexOf("Weak"),_=v?"set":"add",b=i[e],S=b&&b.prototype,x=b,w={},I=function(e){var t=o(S[e]);s(S,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(y&&!h(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return y&&!h(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(y&&!h(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})},C=a(e,!d(b)||!(y||S.forEach&&!f((function(){(new b).entries().next()}))));if(C)x=n.getConstructor(t,e,v,_),c.enable();else if(a(e,!0)){var M=new x,T=M[_](y?{}:-0,1)!=M,k=f((function(){M.has(1)})),E=p((function(e){new b(e)})),A=!y&&f((function(){var e=new b,t=5;while(t--)e[_](t,t);return!e.has(-0)}));E||(x=t((function(e,t){l(e,S);var n=m(new b,e,x);return void 0!=t&&u(t,n[_],{that:n,AS_ENTRIES:v}),n})),x.prototype=S,S.constructor=x),(k||A)&&(I("delete"),I("has"),v&&I("get")),(A||T)&&I(_),y&&S.clear&&delete S.clear}return w[e]=x,r({global:!0,forced:x!=b},w),g(x,e),y||n.setStrong(x,e,v),x}},"6d8b":function(e,t){var n={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},r={"[object Int8Array]":1,"[object Uint8Array]":1,"[object Uint8ClampedArray]":1,"[object Int16Array]":1,"[object Uint16Array]":1,"[object Int32Array]":1,"[object Uint32Array]":1,"[object Float32Array]":1,"[object Float64Array]":1},i=Object.prototype.toString,o=Array.prototype,a=o.forEach,s=o.filter,c=o.slice,u=o.map,l=o.reduce,d={};function h(e,t){"createCanvas"===e&&(y=null),d[e]=t}function f(e){if(null==e||"object"!==typeof e)return e;var t=e,o=i.call(e);if("[object Array]"===o){if(!Y(e)){t=[];for(var a=0,s=e.length;a<s;a++)t[a]=f(e[a])}}else if(r[o]){if(!Y(e)){var c=e.constructor;if(e.constructor.from)t=c.from(e);else{t=new c(e.length);for(a=0,s=e.length;a<s;a++)t[a]=f(e[a])}}}else if(!n[o]&&!Y(e)&&!F(e))for(var u in t={},e)e.hasOwnProperty(u)&&(t[u]=f(e[u]));return t}function p(e,t,n){if(!P(t)||!P(e))return n?f(t):e;for(var r in t)if(t.hasOwnProperty(r)){var i=e[r],o=t[r];!P(o)||!P(i)||O(o)||O(i)||F(o)||F(i)||N(o)||N(i)||Y(o)||Y(i)?!n&&r in e||(e[r]=f(t[r],!0)):p(i,o,n)}return e}function g(e,t){for(var n=e[0],r=1,i=e.length;r<i;r++)n=p(n,e[r],t);return n}function m(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function v(e,t,n){for(var r in t)t.hasOwnProperty(r)&&(n?null!=t[r]:null==e[r])&&(e[r]=t[r]);return e}var y,_=function(){return d.createCanvas()};function b(){return y||(y=_().getContext("2d")),y}function S(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n}return-1}function x(e,t){var n=e.prototype;function r(){}for(var i in r.prototype=t.prototype,e.prototype=new r,n)n.hasOwnProperty(i)&&(e.prototype[i]=n[i]);e.prototype.constructor=e,e.superClass=t}function w(e,t,n){e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,v(e,t,n)}function I(e){if(e)return"string"!==typeof e&&"number"===typeof e.length}function C(e,t,n){if(e&&t)if(e.forEach&&e.forEach===a)e.forEach(t,n);else if(e.length===+e.length)for(var r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e);else for(var o in e)e.hasOwnProperty(o)&&t.call(n,e[o],o,e)}function M(e,t,n){if(e&&t){if(e.map&&e.map===u)return e.map(t,n);for(var r=[],i=0,o=e.length;i<o;i++)r.push(t.call(n,e[i],i,e));return r}}function T(e,t,n,r){if(e&&t){if(e.reduce&&e.reduce===l)return e.reduce(t,n,r);for(var i=0,o=e.length;i<o;i++)n=t.call(r,n,e[i],i,e);return n}}function k(e,t,n){if(e&&t){if(e.filter&&e.filter===s)return e.filter(t,n);for(var r=[],i=0,o=e.length;i<o;i++)t.call(n,e[i],i,e)&&r.push(e[i]);return r}}function E(e,t,n){if(e&&t)for(var r=0,i=e.length;r<i;r++)if(t.call(n,e[r],r,e))return e[r]}function A(e,t){var n=c.call(arguments,2);return function(){return e.apply(t,n.concat(c.call(arguments)))}}function D(e){var t=c.call(arguments,1);return function(){return e.apply(this,t.concat(c.call(arguments)))}}function O(e){return"[object Array]"===i.call(e)}function R(e){return"function"===typeof e}function L(e){return"[object String]"===i.call(e)}function P(e){var t=typeof e;return"function"===t||!!e&&"object"===t}function N(e){return!!n[i.call(e)]}function U(e){return!!r[i.call(e)]}function F(e){return"object"===typeof e&&"number"===typeof e.nodeType&&"object"===typeof e.ownerDocument}function G(e){return e!==e}function V(e){for(var t=0,n=arguments.length;t<n;t++)if(null!=arguments[t])return arguments[t]}function j(e,t){return null!=e?e:t}function B(e,t,n){return null!=e?e:null!=t?t:n}function z(){return Function.call.apply(c,arguments)}function H(e){if("number"===typeof e)return[e,e,e,e];var t=e.length;return 2===t?[e[0],e[1],e[0],e[1]]:3===t?[e[0],e[1],e[2],e[1]]:e}function W(e,t){if(!e)throw new Error(t)}function q(e){return null==e?null:"function"===typeof e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}d.createCanvas=function(){return document.createElement("canvas")};var $="__ec_primitive__";function K(e){e[$]=!0}function Y(e){return e[$]}function J(e){var t=O(e);this.data={};var n=this;function r(e,r){t?n.set(e,r):n.set(r,e)}e instanceof J?e.each(r):e&&C(e,r)}function X(e){return new J(e)}function Z(e,t){for(var n=new e.constructor(e.length+t.length),r=0;r<e.length;r++)n[r]=e[r];var i=e.length;for(r=0;r<t.length;r++)n[r+i]=t[r];return n}function Q(){}J.prototype={constructor:J,get:function(e){return this.data.hasOwnProperty(e)?this.data[e]:null},set:function(e,t){return this.data[e]=t},each:function(e,t){for(var n in void 0!==t&&(e=A(e,t)),this.data)this.data.hasOwnProperty(n)&&e(this.data[n],n)},removeKey:function(e){delete this.data[e]}},t.$override=h,t.clone=f,t.merge=p,t.mergeAll=g,t.extend=m,t.defaults=v,t.createCanvas=_,t.getContext=b,t.indexOf=S,t.inherits=x,t.mixin=w,t.isArrayLike=I,t.each=C,t.map=M,t.reduce=T,t.filter=k,t.find=E,t.bind=A,t.curry=D,t.isArray=O,t.isFunction=R,t.isString=L,t.isObject=P,t.isBuiltInObject=N,t.isTypedArray=U,t.isDom=F,t.eqNaN=G,t.retrieve=V,t.retrieve2=j,t.retrieve3=B,t.slice=z,t.normalizeCssArray=H,t.assert=W,t.trim=q,t.setAsPrimitive=K,t.isPrimitive=Y,t.createHashMap=X,t.concatArray=Z,t.noop=Q},"6d9a":function(e,t){function n(e,t,n){var r,i=[e],o=[];while(r=i.pop())if(o.push(r),r.isExpand){var a=r.children;if(a.length)for(var s=0;s<a.length;s++)i.push(a[s])}while(r=o.pop())t(r,n)}function r(e,t){var n,r=[e];while(n=r.pop())if(t(n),n.isExpand){var i=n.children;if(i.length)for(var o=i.length-1;o>=0;o--)r.push(i[o])}}t.eachAfter=n,t.eachBefore=r},"6dd8":function(e,t,n){"use strict";n.r(t),function(e){var n=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},t}()}(),r="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,i=function(){return"undefined"!==typeof e&&e.Math===Math?e:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")()}(),o=function(){return"function"===typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)}}(),a=2;function s(e,t){var n=!1,r=!1,i=0;function s(){n&&(n=!1,e()),r&&u()}function c(){o(s)}function u(){var e=Date.now();if(n){if(e-i<a)return;r=!0}else n=!0,r=!1,setTimeout(c,t);i=e}return u}var c=20,u=["top","right","bottom","left","width","height","size","weight"],l="undefined"!==typeof MutationObserver,d=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=s(this.refresh.bind(this),c)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var e=this.updateObservers_();e&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t,r=u.some((function(e){return!!~n.indexOf(e)}));r&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),h=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},f=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||i},p=I(0,0,0,0);function g(e){return parseFloat(e)||0}function m(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){var r=e["border-"+n+"-width"];return t+g(r)}),0)}function v(e){for(var t=["top","right","bottom","left"],n={},r=0,i=t;r<i.length;r++){var o=i[r],a=e["padding-"+o];n[o]=g(a)}return n}function y(e){var t=e.getBBox();return I(0,0,t.width,t.height)}function _(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return p;var r=f(e).getComputedStyle(e),i=v(r),o=i.left+i.right,a=i.top+i.bottom,s=g(r.width),c=g(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==t&&(s-=m(r,"left","right")+o),Math.round(c+a)!==n&&(c-=m(r,"top","bottom")+a)),!S(e)){var u=Math.round(s+o)-t,l=Math.round(c+a)-n;1!==Math.abs(u)&&(s-=u),1!==Math.abs(l)&&(c-=l)}return I(i.left,i.top,s,c)}var b=function(){return"undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof f(e).SVGGraphicsElement}:function(e){return e instanceof f(e).SVGElement&&"function"===typeof e.getBBox}}();function S(e){return e===f(e).document.documentElement}function x(e){return r?b(e)?y(e):_(e):p}function w(e){var t=e.x,n=e.y,r=e.width,i=e.height,o="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(o.prototype);return h(a,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),a}function I(e,t,n,r){return{x:e,y:t,width:n,height:r}}var C=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=I(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=x(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),M=function(){function e(e,t){var n=w(t);h(this,{target:e,contentRect:n})}return e}(),T=function(){function e(e,t,r){if(this.activeObservations_=[],this.observations_=new n,"function"!==typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new C(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new M(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),k="undefined"!==typeof WeakMap?new WeakMap:new n,E=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=d.getInstance(),r=new T(t,n,this);k.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach((function(e){E.prototype[e]=function(){var t;return(t=k.get(this))[e].apply(t,arguments)}}));var A=function(){return"undefined"!==typeof i.ResizeObserver?i.ResizeObserver:E}();t["default"]=A}.call(this,n("c8ba"))},"6eb9":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lineConfig=void 0;var r={show:!0,name:"",stack:"",smooth:!1,xAxisIndex:0,yAxisIndex:0,data:[],lineStyle:{lineWidth:1},linePoint:{show:!0,radius:2,style:{fill:"#fff",lineWidth:1}},lineArea:{show:!1,gradient:[],style:{opacity:.5}},label:{show:!1,position:"top",offset:[0,-10],formatter:null,style:{fontSize:10}},rLevel:10,animationCurve:"easeOutCubic",animationFrame:50};t.lineConfig=r},"6ed5":function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=74)}({0:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var c,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(c=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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=c):i&&(c=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(e,t){return c.call(t),l(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},10:function(e,t){e.exports=n("f3ad")},13:function(e,t){e.exports=n("5128")},14:function(e,t){e.exports=n("eedf")},2:function(e,t){e.exports=n("5924")},20:function(e,t){e.exports=n("4897")},23:function(e,t){e.exports=n("41f8")},47:function(e,t){e.exports=n("722f")},6:function(e,t){e.exports=n("6b7c")},7:function(e,t){e.exports=n("2b0e")},74:function(e,t,n){"use strict";n.r(t);var r=n(7),i=n.n(r),o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"msgbox-fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-message-box__wrapper",attrs:{tabindex:"-1",role:"dialog","aria-modal":"true","aria-label":e.title||"dialog"},on:{click:function(t){return t.target!==t.currentTarget?null:e.handleWrapperClick(t)}}},[n("div",{staticClass:"el-message-box",class:[e.customClass,e.center&&"el-message-box--center"]},[null!==e.title?n("div",{staticClass:"el-message-box__header"},[n("div",{staticClass:"el-message-box__title"},[e.icon&&e.center?n("div",{class:["el-message-box__status",e.icon]}):e._e(),n("span",[e._v(e._s(e.title))])]),e.showClose?n("button",{staticClass:"el-message-box__headerbtn",attrs:{type:"button","aria-label":"Close"},on:{click:function(t){e.handleAction(e.distinguishCancelAndClose?"close":"cancel")},keydown:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.handleAction(e.distinguishCancelAndClose?"close":"cancel")}}},[n("i",{staticClass:"el-message-box__close el-icon-close"})]):e._e()]):e._e(),n("div",{staticClass:"el-message-box__content"},[n("div",{staticClass:"el-message-box__container"},[e.icon&&!e.center&&""!==e.message?n("div",{class:["el-message-box__status",e.icon]}):e._e(),""!==e.message?n("div",{staticClass:"el-message-box__message"},[e._t("default",[e.dangerouslyUseHTMLString?n("p",{domProps:{innerHTML:e._s(e.message)}}):n("p",[e._v(e._s(e.message))])])],2):e._e()]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.showInput,expression:"showInput"}],staticClass:"el-message-box__input"},[n("el-input",{ref:"input",attrs:{type:e.inputType,placeholder:e.inputPlaceholder},nativeOn:{keydown:function(t){return!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleInputEnter(t)}},model:{value:e.inputValue,callback:function(t){e.inputValue=t},expression:"inputValue"}}),n("div",{staticClass:"el-message-box__errormsg",style:{visibility:e.editorErrorMessage?"visible":"hidden"}},[e._v(e._s(e.editorErrorMessage))])],1)]),n("div",{staticClass:"el-message-box__btns"},[e.showCancelButton?n("el-button",{class:[e.cancelButtonClasses],attrs:{loading:e.cancelButtonLoading,round:e.roundButton,size:"small"},on:{keydown:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.handleAction("cancel")}},nativeOn:{click:function(t){e.handleAction("cancel")}}},[e._v("\n          "+e._s(e.cancelButtonText||e.t("el.messagebox.cancel"))+"\n        ")]):e._e(),n("el-button",{directives:[{name:"show",rawName:"v-show",value:e.showConfirmButton,expression:"showConfirmButton"}],ref:"confirm",class:[e.confirmButtonClasses],attrs:{loading:e.confirmButtonLoading,round:e.roundButton,size:"small"},on:{keydown:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.handleAction("confirm")}},nativeOn:{click:function(t){e.handleAction("confirm")}}},[e._v("\n          "+e._s(e.confirmButtonText||e.t("el.messagebox.confirm"))+"\n        ")])],1)])])])},a=[];o._withStripped=!0;var s=n(13),c=n.n(s),u=n(6),l=n.n(u),d=n(10),h=n.n(d),f=n(14),p=n.n(f),g=n(2),m=n(20),v=n(47),y=n.n(v),_=void 0,b={success:"success",info:"info",warning:"warning",error:"error"},S={mixins:[c.a,l.a],props:{modal:{default:!0},lockScroll:{default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{default:!0},closeOnPressEscape:{default:!0},closeOnHashChange:{default:!0},center:{default:!1,type:Boolean},roundButton:{default:!1,type:Boolean}},components:{ElInput:h.a,ElButton:p.a},computed:{icon:function(){var e=this.type,t=this.iconClass;return t||(e&&b[e]?"el-icon-"+b[e]:"")},confirmButtonClasses:function(){return"el-button--primary "+this.confirmButtonClass},cancelButtonClasses:function(){return""+this.cancelButtonClass}},methods:{getSafeClose:function(){var e=this,t=this.uid;return function(){e.$nextTick((function(){t===e.uid&&e.doClose()}))}},doClose:function(){var e=this;this.visible&&(this.visible=!1,this._closing=!0,this.onClose&&this.onClose(),_.closeDialog(),this.lockScroll&&setTimeout(this.restoreBodyStyle,200),this.opened=!1,this.doAfterClose(),setTimeout((function(){e.action&&e.callback(e.action,e)})))},handleWrapperClick:function(){this.closeOnClickModal&&this.handleAction(this.distinguishCancelAndClose?"close":"cancel")},handleInputEnter:function(){if("textarea"!==this.inputType)return this.handleAction("confirm")},handleAction:function(e){("prompt"!==this.$type||"confirm"!==e||this.validate())&&(this.action=e,"function"===typeof this.beforeClose?(this.close=this.getSafeClose(),this.beforeClose(e,this,this.close)):this.doClose())},validate:function(){if("prompt"===this.$type){var e=this.inputPattern;if(e&&!e.test(this.inputValue||""))return this.editorErrorMessage=this.inputErrorMessage||Object(m["t"])("el.messagebox.error"),Object(g["addClass"])(this.getInputElement(),"invalid"),!1;var t=this.inputValidator;if("function"===typeof t){var n=t(this.inputValue);if(!1===n)return this.editorErrorMessage=this.inputErrorMessage||Object(m["t"])("el.messagebox.error"),Object(g["addClass"])(this.getInputElement(),"invalid"),!1;if("string"===typeof n)return this.editorErrorMessage=n,Object(g["addClass"])(this.getInputElement(),"invalid"),!1}}return this.editorErrorMessage="",Object(g["removeClass"])(this.getInputElement(),"invalid"),!0},getFirstFocus:function(){var e=this.$el.querySelector(".el-message-box__btns .el-button"),t=this.$el.querySelector(".el-message-box__btns .el-message-box__title");return e||t},getInputElement:function(){var e=this.$refs.input.$refs;return e.input||e.textarea},handleClose:function(){this.handleAction("close")}},watch:{inputValue:{immediate:!0,handler:function(e){var t=this;this.$nextTick((function(n){"prompt"===t.$type&&null!==e&&t.validate()}))}},visible:function(e){var t=this;e&&(this.uid++,"alert"!==this.$type&&"confirm"!==this.$type||this.$nextTick((function(){t.$refs.confirm.$el.focus()})),this.focusAfterClosed=document.activeElement,_=new y.a(this.$el,this.focusAfterClosed,this.getFirstFocus())),"prompt"===this.$type&&(e?setTimeout((function(){t.$refs.input&&t.$refs.input.$el&&t.getInputElement().focus()}),500):(this.editorErrorMessage="",Object(g["removeClass"])(this.getInputElement(),"invalid")))}},mounted:function(){var e=this;this.$nextTick((function(){e.closeOnHashChange&&window.addEventListener("hashchange",e.close)}))},beforeDestroy:function(){this.closeOnHashChange&&window.removeEventListener("hashchange",this.close),setTimeout((function(){_.closeDialog()}))},data:function(){return{uid:1,title:void 0,message:"",type:"",iconClass:"",customClass:"",showInput:!1,inputValue:null,inputPlaceholder:"",inputType:"text",inputPattern:null,inputValidator:null,inputErrorMessage:"",showConfirmButton:!0,showCancelButton:!1,action:"",confirmButtonText:"",cancelButtonText:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonClass:"",confirmButtonDisabled:!1,cancelButtonClass:"",editorErrorMessage:null,callback:null,dangerouslyUseHTMLString:!1,focusAfterClosed:null,isOnComposition:!1,distinguishCancelAndClose:!1}}},x=S,w=n(0),I=Object(w["a"])(x,o,a,!1,null,null,null);I.options.__file="packages/message-box/src/main.vue";var C=I.exports,M=n(9),T=n.n(M),k=n(23),E="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},A={title:null,message:"",type:"",iconClass:"",showInput:!1,showClose:!0,modalFade:!0,lockScroll:!0,closeOnClickModal:!0,closeOnPressEscape:!0,closeOnHashChange:!0,inputValue:null,inputPlaceholder:"",inputType:"text",inputPattern:null,inputValidator:null,inputErrorMessage:"",showConfirmButton:!0,showCancelButton:!1,confirmButtonPosition:"right",confirmButtonHighlight:!1,cancelButtonHighlight:!1,confirmButtonText:"",cancelButtonText:"",confirmButtonClass:"",cancelButtonClass:"",customClass:"",beforeClose:null,dangerouslyUseHTMLString:!1,center:!1,roundButton:!1,distinguishCancelAndClose:!1},D=i.a.extend(C),O=void 0,R=void 0,L=[],P=function(e){if(O){var t=O.callback;"function"===typeof t&&(R.showInput?t(R.inputValue,e):t(e)),O.resolve&&("confirm"===e?R.showInput?O.resolve({value:R.inputValue,action:e}):O.resolve(e):!O.reject||"cancel"!==e&&"close"!==e||O.reject(e))}},N=function(){R=new D({el:document.createElement("div")}),R.callback=P},U=function e(){if(R||N(),R.action="",(!R.visible||R.closeTimer)&&L.length>0){O=L.shift();var t=O.options;for(var n in t)t.hasOwnProperty(n)&&(R[n]=t[n]);void 0===t.callback&&(R.callback=P);var r=R.callback;R.callback=function(t,n){r(t,n),e()},Object(k["isVNode"])(R.message)?(R.$slots.default=[R.message],R.message=null):delete R.$slots.default,["modal","showClose","closeOnClickModal","closeOnPressEscape","closeOnHashChange"].forEach((function(e){void 0===R[e]&&(R[e]=!0)})),document.body.appendChild(R.$el),i.a.nextTick((function(){R.visible=!0}))}},F=function e(t,n){if(!i.a.prototype.$isServer){if("string"===typeof t||Object(k["isVNode"])(t)?(t={message:t},"string"===typeof arguments[1]&&(t.title=arguments[1])):t.callback&&!n&&(n=t.callback),"undefined"!==typeof Promise)return new Promise((function(r,i){L.push({options:T()({},A,e.defaults,t),callback:n,resolve:r,reject:i}),U()}));L.push({options:T()({},A,e.defaults,t),callback:n}),U()}};F.setDefaults=function(e){F.defaults=e},F.alert=function(e,t,n){return"object"===("undefined"===typeof t?"undefined":E(t))?(n=t,t=""):void 0===t&&(t=""),F(T()({title:t,message:e,$type:"alert",closeOnPressEscape:!1,closeOnClickModal:!1},n))},F.confirm=function(e,t,n){return"object"===("undefined"===typeof t?"undefined":E(t))?(n=t,t=""):void 0===t&&(t=""),F(T()({title:t,message:e,$type:"confirm",showCancelButton:!0},n))},F.prompt=function(e,t,n){return"object"===("undefined"===typeof t?"undefined":E(t))?(n=t,t=""):void 0===t&&(t=""),F(T()({title:t,message:e,showCancelButton:!0,showInput:!0,$type:"prompt"},n))},F.close=function(){R.doClose(),R.visible=!1,L=[],O=null};var G=F;t["default"]=G},9:function(e,t){e.exports=n("7f4d")}})},"6eeb":function(e,t,n){var r=n("da84"),i=n("1626"),o=n("1a2d"),a=n("9112"),s=n("ce4e"),c=n("8925"),u=n("69f3"),l=n("5e77").CONFIGURABLE,d=u.get,h=u.enforce,f=String(String).split("String");(e.exports=function(e,t,n,c){var u,d=!!c&&!!c.unsafe,p=!!c&&!!c.enumerable,g=!!c&&!!c.noTargetGet,m=c&&void 0!==c.name?c.name:t;i(n)&&("Symbol("===String(m).slice(0,7)&&(m="["+String(m).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!o(n,"name")||l&&n.name!==m)&&a(n,"name",m),u=h(n),u.source||(u.source=f.join("string"==typeof m?m:""))),e!==r?(d?!g&&e[t]&&(p=!0):delete e[t],p?e[t]=n:a(e,t,n)):p?e[t]=n:s(t,n)})(Function.prototype,"toString",(function(){return i(this)&&d(this).source||c(this)}))},"6fc2":function(e,t,n){},"6fda":function(e,t,n){var r=n("6d8b"),i=r.each,o="\0_ec_hist_store";function a(e,t){var n=l(e);i(t,(function(t,r){for(var i=n.length-1;i>=0;i--){var o=n[i];if(o[r])break}if(i<0){var a=e.queryComponents({mainType:"dataZoom",subType:"select",id:r})[0];if(a){var s=a.getPercentRange();n[0][r]={dataZoomId:r,start:s[0],end:s[1]}}}})),n.push(t)}function s(e){var t=l(e),n=t[t.length-1];t.length>1&&t.pop();var r={};return i(n,(function(e,n){for(var i=t.length-1;i>=0;i--){e=t[i][n];if(e){r[n]=e;break}}})),r}function c(e){e[o]=null}function u(e){return l(e).length}function l(e){var t=e[o];return t||(t=e[o]=[{}]),t}t.push=a,t.pop=s,t.clear=c,t.count=u},7023:function(e,t,n){var r=n("6d8b"),i={updateSelectedMap:function(e){this._targetList=r.isArray(e)?e.slice():[],this._selectTargetMap=r.reduce(e||[],(function(e,t){return e.set(t.name,t),e}),r.createHashMap())},select:function(e,t){var n=null!=t?this._targetList[t]:this._selectTargetMap.get(e),r=this.get("selectedMode");"single"===r&&this._selectTargetMap.each((function(e){e.selected=!1})),n&&(n.selected=!0)},unSelect:function(e,t){var n=null!=t?this._targetList[t]:this._selectTargetMap.get(e);n&&(n.selected=!1)},toggleSelected:function(e,t){var n=null!=t?this._targetList[t]:this._selectTargetMap.get(e);if(null!=n)return this[n.selected?"unSelect":"select"](e,t),n.selected},isSelected:function(e,t){var n=null!=t?this._targetList[t]:this._selectTargetMap.get(e);return n&&n.selected}};e.exports=i},7037:function(e,t,n){function r(t){return e.exports=r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports["default"]=e.exports,r(t)}n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},7039:function(e,t,n){var r=n("23e7"),i=n("d039"),o=n("057f").f,a=i((function(){return!Object.getOwnPropertyNames(1)}));r({target:"Object",stat:!0,forced:a},{getOwnPropertyNames:o})},7156:function(e,t,n){var r=n("1626"),i=n("861d"),o=n("d2bb");e.exports=function(e,t,n){var a,s;return o&&r(a=t.constructor)&&a!==n&&i(s=a.prototype)&&s!==n.prototype&&o(e,s),e}},"71ad":function(e,t,n){var r=n("6d8b"),i={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#333",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},o={};o.categoryAxis=r.merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},i),o.valueAxis=r.merge({boundaryGap:[0,0],splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#eee",width:1}}},i),o.timeAxis=r.defaults({scale:!0,min:"dataMin",max:"dataMax"},o.valueAxis),o.logAxis=r.defaults({scale:!0,logBase:10},o.valueAxis);var a=o;e.exports=a},"71b2":function(e,t,n){var r=n("6d8b"),i=r.createHashMap;function o(e){e.eachSeriesByType("themeRiver",(function(e){var t=e.getData(),n=e.getRawData(),r=e.get("color"),o=i();t.each((function(e){o.set(t.getRawIndex(e),e)})),n.each((function(i){var a=n.getName(i),s=r[(e.nameMap.get(a)-1)%r.length];n.setItemVisual(i,"color",s);var c=o.get(i);null!=c&&t.setItemVisual(c,"color",s)}))}))}e.exports=o},"722f":function(e,t,n){"use strict";t.__esModule=!0;var r="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},i=n("e452"),o=a(i);function a(e){return e&&e.__esModule?e:{default:e}}var s,c=c||{};c.Dialog=function(e,t,n){var i=this;if(this.dialogNode=e,null===this.dialogNode||"dialog"!==this.dialogNode.getAttribute("role"))throw new Error("Dialog() requires a DOM element with ARIA role of dialog.");"string"===typeof t?this.focusAfterClosed=document.getElementById(t):"object"===("undefined"===typeof t?"undefined":r(t))?this.focusAfterClosed=t:this.focusAfterClosed=null,"string"===typeof n?this.focusFirst=document.getElementById(n):"object"===("undefined"===typeof n?"undefined":r(n))?this.focusFirst=n:this.focusFirst=null,this.focusFirst?this.focusFirst.focus():o.default.focusFirstDescendant(this.dialogNode),this.lastFocus=document.activeElement,s=function(e){i.trapFocus(e)},this.addListeners()},c.Dialog.prototype.addListeners=function(){document.addEventListener("focus",s,!0)},c.Dialog.prototype.removeListeners=function(){document.removeEventListener("focus",s,!0)},c.Dialog.prototype.closeDialog=function(){var e=this;this.removeListeners(),this.focusAfterClosed&&setTimeout((function(){e.focusAfterClosed.focus()}))},c.Dialog.prototype.trapFocus=function(e){o.default.IgnoreUtilFocusChanges||(this.dialogNode.contains(e.target)?this.lastFocus=e.target:(o.default.focusFirstDescendant(this.dialogNode),this.lastFocus===document.activeElement&&o.default.focusLastDescendant(this.dialogNode),this.lastFocus=document.activeElement))},t.default=c.Dialog},7293:function(e,t,n){var r=n("4e08"),i=(r.__DEV__,n("4f85")),o=n("6179"),a=n("6d8b"),s=a.concatArray,c=a.mergeAll,u=a.map,l=n("eda2"),d=l.encodeHTML,h=(n("2039"),"undefined"===typeof Uint32Array?Array:Uint32Array),f="undefined"===typeof Float64Array?Array:Float64Array;function p(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=u(t,(function(e){var t=[e[0].coord,e[1].coord],n={coords:t};return e[0].name&&(n.fromName=e[0].name),e[1].name&&(n.toName=e[1].name),c([n,e[0],e[1]])})))}var g=i.extend({type:"series.lines",dependencies:["grid","polar"],visualColorAccessPath:"lineStyle.color",init:function(e){e.data=e.data||[],p(e);var t=this._processFlatCoordsArray(e.data);this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset,t.flatCoords&&(e.data=new Float32Array(t.count)),g.superApply(this,"init",arguments)},mergeOption:function(e){if(p(e),e.data){var t=this._processFlatCoordsArray(e.data);this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset,t.flatCoords&&(e.data=new Float32Array(t.count))}g.superApply(this,"mergeOption",arguments)},appendData:function(e){var t=this._processFlatCoordsArray(e.data);t.flatCoords&&(this._flatCoords?(this._flatCoords=s(this._flatCoords,t.flatCoords),this._flatCoordsOffset=s(this._flatCoordsOffset,t.flatCoordsOffset)):(this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset),e.data=new Float32Array(t.count)),this.getRawData().appendData(e.data)},_getCoordsFromItemModel:function(e){var t=this.getData().getItemModel(e),n=t.option instanceof Array?t.option:t.getShallow("coords");return n},getLineCoordsCount:function(e){return this._flatCoordsOffset?this._flatCoordsOffset[2*e+1]:this._getCoordsFromItemModel(e).length},getLineCoords:function(e,t){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*e],r=this._flatCoordsOffset[2*e+1],i=0;i<r;i++)t[i]=t[i]||[],t[i][0]=this._flatCoords[n+2*i],t[i][1]=this._flatCoords[n+2*i+1];return r}var o=this._getCoordsFromItemModel(e);for(i=0;i<o.length;i++)t[i]=t[i]||[],t[i][0]=o[i][0],t[i][1]=o[i][1];return o.length},_processFlatCoordsArray:function(e){var t=0;if(this._flatCoords&&(t=this._flatCoords.length),"number"===typeof e[0]){for(var n=e.length,r=new h(n),i=new f(n),o=0,a=0,s=0,c=0;c<n;){s++;var u=e[c++];r[a++]=o+t,r[a++]=u;for(var l=0;l<u;l++){var d=e[c++],p=e[c++];i[o++]=d,i[o++]=p}}return{flatCoordsOffset:new Uint32Array(r.buffer,0,a),flatCoords:i,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},getInitialData:function(e,t){var n=new o(["value"],this);return n.hasItemOption=!1,n.initData(e.data,[],(function(e,t,r,i){if(e instanceof Array)return NaN;n.hasItemOption=!0;var o=e.value;return null!=o?o instanceof Array?o[i]:o:void 0})),n},formatTooltip:function(e){var t=this.getData(),n=t.getItemModel(e),r=n.get("name");if(r)return r;var i=n.get("fromName"),o=n.get("toName"),a=[];return null!=i&&a.push(i),null!=o&&a.push(o),d(a.join(" > "))},preventIncremental:function(){return!!this.get("effect.show")},getProgressive:function(){var e=this.option.progressive;return null==e?this.option.large?1e4:this.get("progressive"):e},getProgressiveThreshold:function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?2e4:this.get("progressiveThreshold"):e},defaultOption:{coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}}}),m=g;e.exports=m},"729e":function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.pie=p;var i=r(n("9523")),o=r(n("7037")),a=r(n("278c")),s=r(n("448a")),c=n("18ad"),u=n("222a"),l=n("5557"),d=n("becb");function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){(0,i["default"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.series;n||(n=[]);var r=(0,d.initNeedSeries)(n,u.pieConfig,"pie");r=g(r,e),r=m(r,e),r=y(r,e),r=S(r),r=I(r,e),r=M(r),r=k(r),r=E(r),(0,c.doUpdate)({chart:e,series:r,key:"pie",getGraphConfig:P,getStartGraphConfig:N,beforeChange:U}),(0,c.doUpdate)({chart:e,series:r,key:"pieInsideLabel",getGraphConfig:V}),(0,c.doUpdate)({chart:e,series:r,key:"pieOutsideLabelLine",getGraphConfig:z,getStartGraphConfig:H}),(0,c.doUpdate)({chart:e,series:r,key:"pieOutsideLabel",getGraphConfig:$,getStartGraphConfig:K})}function g(e,t){var n=t.render.area;return e.forEach((function(e){var t=e.center;t=t.map((function(e,t){return"number"===typeof e?e:parseInt(e)/100*n[t]})),e.center=t})),e}function m(e,t){var n=Math.min.apply(Math,(0,s["default"])(t.render.area))/2;return e.forEach((function(e){var t=e.radius,r=e.data;t=v(t,n),r.forEach((function(e){var r=e.radius;r||(r=t),r=v(r,n),e.radius=r})),e.radius=t})),e}function v(e,t){return e instanceof Array||(e=[0,e]),e=e.map((function(e){return"number"===typeof e?e:parseInt(e)/100*t})),e}function y(e,t){var n=e.filter((function(e){var t=e.roseType;return t}));return n.forEach((function(e){var t=e.radius,n=e.data,r=e.roseSort,i=b(e),o=(0,s["default"])(n);n=_(n),n.forEach((function(e,n){e.radius[1]=t[1]-i*n})),r?n.reverse():e.data=o,e.roseIncrement=i})),e}function _(e){return e.sort((function(e,t){var n=e.value,r=t.value;return n===r?0:n>r?-1:n<r?1:void 0}))}function b(e){var t=e.radius,n=e.roseIncrement;if("number"===typeof n)return n;if("auto"===n){var r=e.data,i=r.reduce((function(e,t){var n=t.radius;return[].concat((0,s["default"])(e),(0,s["default"])(n))}),[]),o=Math.min.apply(Math,(0,s["default"])(i)),a=Math.max.apply(Math,(0,s["default"])(i));return.6*(a-o)/(r.length-1||1)}return parseInt(n)/100*t[1]}function S(e){return e.forEach((function(e){var t=e.data,n=e.percentToFixed,r=w(t);t.forEach((function(e){var t=e.value;e.percent=t/r*100,e.percentForLabel=x(t/r*100,n)}));var i=(0,d.mulAdd)(t.slice(0,-1).map((function(e){var t=e.percent;return t})));t.slice(-1)[0].percent=100-i,t.slice(-1)[0].percentForLabel=x(100-i,n)})),e}function x(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e.toString(),r=n.split("."),i=r[1]||"0",o=i.slice(0,t);return r[1]=o,parseFloat(r.join("."))}function w(e){return(0,d.mulAdd)(e.map((function(e){var t=e.value;return t})))}function I(e){return e.forEach((function(e){var t=e.startAngle,n=e.data;n.forEach((function(e,r){var i=C(n,r),o=(0,a["default"])(i,2),s=o[0],c=o[1];e.startAngle=t+s,e.endAngle=t+c}))})),e}function C(e,t){var n=2*Math.PI,r=e.slice(0,t+1),i=(0,d.mulAdd)(r.map((function(e){var t=e.percent;return t}))),o=e[t].percent,a=i-o;return[n*a/100,n*i/100]}function M(e){return e.forEach((function(e){var t=e.data;t.forEach((function(t){t.insideLabelPos=T(e,t)}))})),e}function T(e,t){var n=e.center,r=t.startAngle,i=t.endAngle,o=(0,a["default"])(t.radius,2),c=o[0],u=o[1],d=(c+u)/2,h=(r+i)/2;return l.getCircleRadianPoint.apply(void 0,(0,s["default"])(n).concat([d,h]))}function k(e){return e.forEach((function(e){var t=e.data,n=e.center;t.forEach((function(e){var t=e.startAngle,r=e.endAngle,i=e.radius,o=(t+r)/2,a=l.getCircleRadianPoint.apply(void 0,(0,s["default"])(n).concat([i[1],o]));e.edgeCenterPos=a}))})),e}function E(e){return e.forEach((function(e){var t=O(e),n=O(e,!1);t=R(t),n=R(n),L(t,e),L(n,e,!1)})),e}function A(e){var t=e.outsideLabel.labelLineBendGap,n=D(e);return"number"!==typeof t&&(t=parseInt(t)/100*n),t+n}function D(e){var t=e.data,n=t.map((function(e){var t=(0,a["default"])(e.radius,2),n=(t[0],t[1]);return n}));return Math.max.apply(Math,(0,s["default"])(n))}function O(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e.data,r=e.center,i=r[0];return n.filter((function(e){var n=e.edgeCenterPos,r=n[0];return t?r<=i:r>i}))}function R(e){return e.sort((function(e,t){var n=(0,a["default"])(e.edgeCenterPos,2),r=(n[0],n[1]),i=(0,a["default"])(t.edgeCenterPos,2),o=(i[0],i[1]);return r>o?1:r<o?-1:r===o?0:void 0})),e}function L(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=t.center,i=t.outsideLabel,o=A(t);e.forEach((function(e){var t=e.edgeCenterPos,a=e.startAngle,c=e.endAngle,u=i.labelLineEndLength,h=(a+c)/2,f=l.getCircleRadianPoint.apply(void 0,(0,s["default"])(r).concat([o,h])),p=(0,s["default"])(f);p[0]+=u*(n?-1:1),e.labelLine=[t,f,p],e.labelLineLength=(0,d.getPolylineLength)(e.labelLine),e.align={textAlign:"left",textBaseline:"middle"},n&&(e.align.textAlign="right")}))}function P(e){var t=e.data,n=e.animationCurve,r=e.animationFrame,i=e.rLevel;return t.map((function(t,o){return{name:"pie",index:i,animationCurve:n,animationFrame:r,shape:F(e,o),style:G(e,o)}}))}function N(e){var t=e.animationDelayGap,n=e.startAnimationCurve,r=P(e);return r.forEach((function(e,r){e.animationCurve=n,e.animationDelay=r*t,e.shape.or=e.shape.ir})),r}function U(e){e.animationDelay=0}function F(e,t){var n=e.center,r=e.data,i=r[t],o=i.radius,a=i.startAngle,s=i.endAngle;return{startAngle:a,endAngle:s,ir:o[0],or:o[1],rx:n[0],ry:n[1]}}function G(e,t){var n=e.pieStyle,r=e.data,i=r[t],o=i.color;return(0,d.deepMerge)({fill:o},n)}function V(e){var t=e.animationCurve,n=e.animationFrame,r=e.data,i=e.rLevel;return r.map((function(r,o){return{name:"text",index:i,visible:e.insideLabel.show,animationCurve:t,animationFrame:n,shape:j(e,o),style:B(e,o)}}))}function j(e,t){var n=e.insideLabel,r=e.data,i=n.formatter,a=r[t],s=(0,o["default"])(i),c="";return"string"===s&&(c=i.replace("{name}",a.name),c=c.replace("{percent}",a.percentForLabel),c=c.replace("{value}",a.value)),"function"===s&&(c=i(a)),{content:c,position:a.insideLabelPos}}function B(e,t){var n=e.insideLabel.style;return n}function z(e){var t=e.animationCurve,n=e.animationFrame,r=e.data,i=e.rLevel;return r.map((function(r,o){return{name:"polyline",index:i,visible:e.outsideLabel.show,animationCurve:t,animationFrame:n,shape:W(e,o),style:q(e,o)}}))}function H(e){var t=e.data,n=z(e);return n.forEach((function(e,n){e.style.lineDash=[0,t[n].labelLineLength]})),n}function W(e,t){var n=e.data,r=n[t];return{points:r.labelLine}}function q(e,t){var n=e.outsideLabel,r=e.data,i=n.labelLineStyle,o=r[t].color;return(0,d.deepMerge)({stroke:o,lineDash:[r[t].labelLineLength,0]},i)}function $(e){var t=e.animationCurve,n=e.animationFrame,r=e.data,i=e.rLevel;return r.map((function(r,o){return{name:"text",index:i,visible:e.outsideLabel.show,animationCurve:t,animationFrame:n,shape:Y(e,o),style:J(e,o)}}))}function K(e){var t=e.data,n=$(e);return n.forEach((function(e,n){e.shape.position=t[n].labelLine[1]})),n}function Y(e,t){var n=e.outsideLabel,r=e.data,i=n.formatter,a=r[t],s=a.labelLine,c=a.name,u=a.percentForLabel,l=a.value,d=(0,o["default"])(i),h="";return"string"===d&&(h=i.replace("{name}",c),h=h.replace("{percent}",u),h=h.replace("{value}",l)),"function"===d&&(h=i(r[t])),{content:h,position:s[2]}}function J(e,t){var n=e.outsideLabel,r=e.data,i=r[t],o=i.color,a=i.align,s=n.style;return(0,d.deepMerge)(f({fill:o},a),s)}},"72b6":function(e,t,n){var r=n("3eba"),i=n("6d8b"),o=n("2306"),a=n("eda2"),s=n("f934"),c=n("5f14"),u=r.extendComponentView({type:"visualMap",autoPositionValues:{left:1,right:1,top:1,bottom:1},init:function(e,t){this.ecModel=e,this.api=t,this.visualMapModel},render:function(e,t,n,r){this.visualMapModel=e,!1!==e.get("show")?this.doRender.apply(this,arguments):this.group.removeAll()},renderBackground:function(e){var t=this.visualMapModel,n=a.normalizeCssArray(t.get("padding")||0),r=e.getBoundingRect();e.add(new o.Rect({z2:-1,silent:!0,shape:{x:r.x-n[3],y:r.y-n[0],width:r.width+n[3]+n[1],height:r.height+n[0]+n[2]},style:{fill:t.get("backgroundColor"),stroke:t.get("borderColor"),lineWidth:t.get("borderWidth")}}))},getControllerVisual:function(e,t,n){n=n||{};var r=n.forceState,o=this.visualMapModel,a={};if("symbol"===t&&(a.symbol=o.get("itemSymbol")),"color"===t){var s=o.get("contentColor");a.color=s}function u(e){return a[e]}function l(e,t){a[e]=t}var d=o.controllerVisuals[r||o.getValueState(e)],h=c.prepareVisualTypes(d);return i.each(h,(function(r){var i=d[r];n.convertOpacityToAlpha&&"opacity"===r&&(r="colorAlpha",i=d.__alphaForOpacity),c.dependsOn(r,t)&&i&&i.applyVisual(e,u,l)})),a[t]},positionGroup:function(e){var t=this.visualMapModel,n=this.api;s.positionElement(e,t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},doRender:i.noop});e.exports=u},"72f7":function(e,t,n){"use strict";var r=n("ebb5").exportTypedArrayMethod,i=n("d039"),o=n("da84"),a=n("e330"),s=o.Uint8Array,c=s&&s.prototype||{},u=[].toString,l=a([].join);i((function(){u.call({})}))&&(u=function(){return l(this)});var d=c.toString!=u;r("toString",u,d)},"733c":function(e,t,n){},"735e":function(e,t,n){"use strict";var r=n("ebb5"),i=n("c65b"),o=n("81d5"),a=r.aTypedArray,s=r.exportTypedArrayMethod;s("fill",(function(e){var t=arguments.length;return i(o,a(this),e,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}))},7368:function(e,t,n){var r=n("4e08"),i=(r.__DEV__,n("6d8b")),o=n("625e"),a=o.enableClassCheck;function s(e){return"_EC_"+e}var c=function(e){this._directed=e||!1,this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this.data,this.edgeData},u=c.prototype;function l(e,t){this.id=null==e?"":e,this.inEdges=[],this.outEdges=[],this.edges=[],this.hostGraph,this.dataIndex=null==t?-1:t}function d(e,t,n){this.node1=e,this.node2=t,this.dataIndex=null==n?-1:n}u.type="graph",u.isDirected=function(){return this._directed},u.addNode=function(e,t){e=null==e?""+t:""+e;var n=this._nodesMap;if(!n[s(e)]){var r=new l(e,t);return r.hostGraph=this,this.nodes.push(r),n[s(e)]=r,r}},u.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},u.getNodeById=function(e){return this._nodesMap[s(e)]},u.addEdge=function(e,t,n){var r=this._nodesMap,i=this._edgesMap;if("number"===typeof e&&(e=this.nodes[e]),"number"===typeof t&&(t=this.nodes[t]),l.isInstance(e)||(e=r[s(e)]),l.isInstance(t)||(t=r[s(t)]),e&&t){var o=e.id+"-"+t.id,a=new d(e,t,n);return a.hostGraph=this,this._directed&&(e.outEdges.push(a),t.inEdges.push(a)),e.edges.push(a),e!==t&&t.edges.push(a),this.edges.push(a),i[o]=a,a}},u.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},u.getEdge=function(e,t){l.isInstance(e)&&(e=e.id),l.isInstance(t)&&(t=t.id);var n=this._edgesMap;return this._directed?n[e+"-"+t]:n[e+"-"+t]||n[t+"-"+e]},u.eachNode=function(e,t){for(var n=this.nodes,r=n.length,i=0;i<r;i++)n[i].dataIndex>=0&&e.call(t,n[i],i)},u.eachEdge=function(e,t){for(var n=this.edges,r=n.length,i=0;i<r;i++)n[i].dataIndex>=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&e.call(t,n[i],i)},u.breadthFirstTraverse=function(e,t,n,r){if(l.isInstance(t)||(t=this._nodesMap[s(t)]),t){for(var i="out"===n?"outEdges":"in"===n?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!e.call(r,t,null)){var a=[t];while(a.length){var c=a.shift(),u=c[i];for(o=0;o<u.length;o++){var d=u[o],h=d.node1===c?d.node2:d.node1;if(!h.__visited){if(e.call(r,h,c))return;a.push(h),h.__visited=!0}}}}}},u.update=function(){for(var e=this.data,t=this.edgeData,n=this.nodes,r=this.edges,i=0,o=n.length;i<o;i++)n[i].dataIndex=-1;for(i=0,o=e.count();i<o;i++)n[e.getRawIndex(i)].dataIndex=i;t.filterSelf((function(e){var n=r[t.getRawIndex(e)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0}));for(i=0,o=r.length;i<o;i++)r[i].dataIndex=-1;for(i=0,o=t.count();i<o;i++)r[t.getRawIndex(i)].dataIndex=i},u.clone=function(){for(var e=new c(this._directed),t=this.nodes,n=this.edges,r=0;r<t.length;r++)e.addNode(t[r].id,t[r].dataIndex);for(r=0;r<n.length;r++){var i=n[r];e.addEdge(i.node1.id,i.node2.id,i.dataIndex)}return e},l.prototype={constructor:l,degree:function(){return this.edges.length},inDegree:function(){return this.inEdges.length},outDegree:function(){return this.outEdges.length},getModel:function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,n=t.data.getItemModel(this.dataIndex);return n.getModel(e)}}},d.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,n=t.edgeData.getItemModel(this.dataIndex);return n.getModel(e)}};var h=function(e,t){return{getValue:function(n){var r=this[e][t];return r.get(r.getDimension(n||"value"),this.dataIndex)},setVisual:function(n,r){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,n,r)},getVisual:function(n,r){return this[e][t].getItemVisual(this.dataIndex,n,r)},setLayout:function(n,r){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,r)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}};i.mixin(l,h("hostGraph","data")),i.mixin(d,h("hostGraph","edgeData")),c.Node=l,c.Edge=d,a(l),a(d);var f=c;e.exports=f},"73ca":function(e,t,n){var r=n("2306"),i=n("7e5b");function o(e){this._ctor=e||i,this.group=new r.Group}var a=o.prototype;function s(e,t,n,r){var i=t.getItemLayout(n);if(h(i)){var o=new e._ctor(t,n,r);t.setItemGraphicEl(n,o),e.group.add(o)}}function c(e,t,n,r,i,o){var a=t.getItemGraphicEl(r);h(n.getItemLayout(i))?(a?a.updateData(n,i,o):a=new e._ctor(n,i,o),n.setItemGraphicEl(i,a),e.group.add(a)):e.group.remove(a)}function u(e){return e.animators&&e.animators.length>0}function l(e){var t=e.hostModel;return{lineStyle:t.getModel("lineStyle").getLineStyle(),hoverLineStyle:t.getModel("emphasis.lineStyle").getLineStyle(),labelModel:t.getModel("label"),hoverLabelModel:t.getModel("emphasis.label")}}function d(e){return isNaN(e[0])||isNaN(e[1])}function h(e){return!d(e[0])&&!d(e[1])}a.isPersistent=function(){return!0},a.updateData=function(e){var t=this,n=t.group,r=t._lineData;t._lineData=e,r||n.removeAll();var i=l(e);e.diff(r).add((function(n){s(t,e,n,i)})).update((function(n,o){c(t,r,e,o,n,i)})).remove((function(e){n.remove(r.getItemGraphicEl(e))})).execute()},a.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl((function(t,n){t.updateLayout(e,n)}),this)},a.incrementalPrepareUpdate=function(e){this._seriesScope=l(e),this._lineData=null,this.group.removeAll()},a.incrementalUpdate=function(e,t){function n(e){e.isGroup||u(e)||(e.incremental=e.useHoverLayer=!0)}for(var r=e.start;r<e.end;r++){var i=t.getItemLayout(r);if(h(i)){var o=new this._ctor(t,r,this._seriesScope);o.traverse(n),this.group.add(o),t.setItemGraphicEl(r,o)}}},a.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},a._clearIncremental=function(){var e=this._incremental;e&&e.clearDisplaybles()};var f=o;e.exports=f},7418:function(e,t){t.f=Object.getOwnPropertySymbols},7419:function(e,t,n){var r=n("3eba"),i=n("b336");n("bc5f"),n("ab05"),n("307a"),n("3cd6"),n("d6ef"),r.registerPreprocessor(i)},"746f":function(e,t,n){var r=n("428f"),i=n("1a2d"),o=n("e538"),a=n("9bf2").f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||a(t,e,{value:o.f(e)})}},"74cb":function(e,t){var n={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return.5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return 0===e?0:Math.pow(1024,e-1)},exponentialOut:function(e){return 1===e?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(2-Math.pow(2,-10*(e-1)))},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,r=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r))},elasticOut:function(e){var t,n=.1,r=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*-.5:n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-n.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?.5*n.bounceIn(2*e):.5*n.bounceOut(2*e-1)+.5}},r=n;e.exports=r},"74e8":function(e,t,n){"use strict";var r=n("23e7"),i=n("da84"),o=n("c65b"),a=n("83ab"),s=n("8aa7"),c=n("ebb5"),u=n("621a"),l=n("19aa"),d=n("5c6c"),h=n("9112"),f=n("eac5"),p=n("50c4"),g=n("0b25"),m=n("182d"),v=n("a04b"),y=n("1a2d"),_=n("f5df"),b=n("861d"),S=n("d9b5"),x=n("7c73"),w=n("3a9b"),I=n("d2bb"),C=n("241c").f,M=n("a078"),T=n("b727").forEach,k=n("2626"),E=n("9bf2"),A=n("06cf"),D=n("69f3"),O=n("7156"),R=D.get,L=D.set,P=E.f,N=A.f,U=Math.round,F=i.RangeError,G=u.ArrayBuffer,V=G.prototype,j=u.DataView,B=c.NATIVE_ARRAY_BUFFER_VIEWS,z=c.TYPED_ARRAY_CONSTRUCTOR,H=c.TYPED_ARRAY_TAG,W=c.TypedArray,q=c.TypedArrayPrototype,$=c.aTypedArrayConstructor,K=c.isTypedArray,Y="BYTES_PER_ELEMENT",J="Wrong length",X=function(e,t){$(e);var n=0,r=t.length,i=new e(r);while(r>n)i[n]=t[n++];return i},Z=function(e,t){P(e,t,{get:function(){return R(this)[t]}})},Q=function(e){var t;return w(V,e)||"ArrayBuffer"==(t=_(e))||"SharedArrayBuffer"==t},ee=function(e,t){return K(e)&&!S(t)&&t in e&&f(+t)&&t>=0},te=function(e,t){return t=v(t),ee(e,t)?d(2,e[t]):N(e,t)},ne=function(e,t,n){return t=v(t),!(ee(e,t)&&b(n)&&y(n,"value"))||y(n,"get")||y(n,"set")||n.configurable||y(n,"writable")&&!n.writable||y(n,"enumerable")&&!n.enumerable?P(e,t,n):(e[t]=n.value,e)};a?(B||(A.f=te,E.f=ne,Z(q,"buffer"),Z(q,"byteOffset"),Z(q,"byteLength"),Z(q,"length")),r({target:"Object",stat:!0,forced:!B},{getOwnPropertyDescriptor:te,defineProperty:ne}),e.exports=function(e,t,n){var a=e.match(/\d+$/)[0]/8,c=e+(n?"Clamped":"")+"Array",u="get"+e,d="set"+e,f=i[c],v=f,y=v&&v.prototype,_={},S=function(e,t){var n=R(e);return n.view[u](t*a+n.byteOffset,!0)},w=function(e,t,r){var i=R(e);n&&(r=(r=U(r))<0?0:r>255?255:255&r),i.view[d](t*a+i.byteOffset,r,!0)},E=function(e,t){P(e,t,{get:function(){return S(this,t)},set:function(e){return w(this,t,e)},enumerable:!0})};B?s&&(v=t((function(e,t,n,r){return l(e,y),O(function(){return b(t)?Q(t)?void 0!==r?new f(t,m(n,a),r):void 0!==n?new f(t,m(n,a)):new f(t):K(t)?X(v,t):o(M,v,t):new f(g(t))}(),e,v)})),I&&I(v,W),T(C(f),(function(e){e in v||h(v,e,f[e])})),v.prototype=y):(v=t((function(e,t,n,r){l(e,y);var i,s,c,u=0,d=0;if(b(t)){if(!Q(t))return K(t)?X(v,t):o(M,v,t);i=t,d=m(n,a);var h=t.byteLength;if(void 0===r){if(h%a)throw F(J);if(s=h-d,s<0)throw F(J)}else if(s=p(r)*a,s+d>h)throw F(J);c=s/a}else c=g(t),s=c*a,i=new G(s);L(e,{buffer:i,byteOffset:d,byteLength:s,length:c,view:new j(i)});while(u<c)E(e,u++)})),I&&I(v,W),y=v.prototype=x(q)),y.constructor!==v&&h(y,"constructor",v),h(y,z,v),H&&h(y,H,c),_[c]=v,r({global:!0,forced:v!=f,sham:!B},_),Y in v||h(v,Y,a),Y in y||h(y,Y,a),k(c)}):e.exports=function(){}},7661:function(e,t,n){var r=n("0c41"),i=n("3eba"),o=i.extendComponentView({type:"geo",init:function(e,t){var n=new r(t,!0);this._mapDraw=n,this.group.add(n.group)},render:function(e,t,n,r){if(!r||"geoToggleSelect"!==r.type||r.from!==this.uid){var i=this._mapDraw;e.get("show")?i.draw(e,t,n,this,r):this._mapDraw.group.removeAll(),this.group.silent=e.get("silent")}},dispose:function(){this._mapDraw&&this._mapDraw.remove()}});e.exports=o},"767c":function(e,t,n){var r=n("3eba"),i=n("6d8b"),o=n("607d"),a=n("29a8"),s=n("2145"),c=a.toolbox.dataView,u=new Array(60).join("-"),l="\t";function d(e){var t={},n=[],r=[];return e.eachRawSeries((function(e){var i=e.coordinateSystem;if(!i||"cartesian2d"!==i.type&&"polar"!==i.type)n.push(e);else{var o=i.getBaseAxis();if("category"===o.type){var a=o.dim+"_"+o.index;t[a]||(t[a]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},r.push({axisDim:o.dim,axisIndex:o.index})),t[a].series.push(e)}else n.push(e)}})),{seriesGroupByCategoryAxis:t,other:n,meta:r}}function h(e){var t=[];return i.each(e,(function(e,n){var r=e.categoryAxis,o=e.valueAxis,a=o.dim,s=[" "].concat(i.map(e.series,(function(e){return e.name}))),c=[r.model.getCategories()];i.each(e.series,(function(e){var t=e.getRawData();c.push(e.getRawData().mapArray(t.mapDimension(a),(function(e){return e})))}));for(var u=[s.join(l)],d=0;d<c[0].length;d++){for(var h=[],f=0;f<c.length;f++)h.push(c[f][d]);u.push(h.join(l))}t.push(u.join("\n"))})),t.join("\n\n"+u+"\n\n")}function f(e){return i.map(e,(function(e){var t=e.getRawData(),n=[e.name],r=[];return t.each(t.dimensions,(function(){for(var e=arguments.length,i=arguments[e-1],o=t.getName(i),a=0;a<e-1;a++)r[a]=arguments[a];n.push((o?o+l:"")+r.join(l))})),n.join("\n")})).join("\n\n"+u+"\n\n")}function p(e){var t=d(e);return{value:i.filter([h(t.seriesGroupByCategoryAxis),f(t.other)],(function(e){return e.replace(/[\n\t\s]/g,"")})).join("\n\n"+u+"\n\n"),meta:t.meta}}function g(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function m(e){var t=e.slice(0,e.indexOf("\n"));if(t.indexOf(l)>=0)return!0}var v=new RegExp("["+l+"]+","g");function y(e){for(var t=e.split(/\n+/g),n=g(t.shift()).split(v),r=[],o=i.map(n,(function(e){return{name:e,data:[]}})),a=0;a<t.length;a++){var s=g(t[a]).split(v);r.push(s.shift());for(var c=0;c<s.length;c++)o[c]&&(o[c].data[a]=s[c])}return{series:o,categories:r}}function _(e){for(var t=e.split(/\n+/g),n=g(t.shift()),r=[],i=0;i<t.length;i++){var o=g(t[i]);if(o){var a,s=o.split(v),c="",u=!1;isNaN(s[0])?(u=!0,c=s[0],s=s.slice(1),r[i]={name:c,value:[]},a=r[i].value):a=r[i]=[];for(var l=0;l<s.length;l++)a.push(+s[l]);1===a.length&&(u?r[i].value=a[0]:r[i]=a[0])}}return{name:n,data:r}}function b(e,t){var n=e.split(new RegExp("\n*"+u+"\n*","g")),r={series:[]};return i.each(n,(function(e,n){if(m(e)){var i=y(e),o=t[n],a=o.axisDim+"Axis";o&&(r[a]=r[a]||[],r[a][o.axisIndex]={data:i.categories},r.series=r.series.concat(i.series))}else{i=_(e);r.series.push(i)}})),r}function S(e){this._dom=null,this.model=e}function x(e,t){return i.map(e,(function(e,n){var r=t&&t[n];if(i.isObject(r)&&!i.isArray(r)){var o=i.isObject(e)&&!i.isArray(e);o||(e={value:e});var a=null!=r.name&&null==e.name;return e=i.defaults(e,r),a&&delete e.name,e}return e}))}S.defaultOption={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:i.clone(c.title),lang:i.clone(c.lang),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"},S.prototype.onclick=function(e,t){var n=t.getDom(),r=this.model;this._dom&&n.removeChild(this._dom);var a=document.createElement("div");a.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",a.style.backgroundColor=r.get("backgroundColor")||"#fff";var s=document.createElement("h4"),c=r.get("lang")||[];s.innerHTML=c[0]||r.get("title"),s.style.cssText="margin: 10px 20px;",s.style.color=r.get("textColor");var u=document.createElement("div"),l=document.createElement("textarea");u.style.cssText="display:block;width:100%;overflow:auto;";var d=r.get("optionToContent"),h=r.get("contentToOption"),f=p(e);if("function"===typeof d){var g=d(t.getOption());"string"===typeof g?u.innerHTML=g:i.isDom(g)&&u.appendChild(g)}else u.appendChild(l),l.readOnly=r.get("readOnly"),l.style.cssText="width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;",l.style.color=r.get("textColor"),l.style.borderColor=r.get("textareaBorderColor"),l.style.backgroundColor=r.get("textareaColor"),l.value=f.value;var m=f.meta,v=document.createElement("div");v.style.cssText="position:absolute;bottom:0;left:0;right:0;";var y="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",_=document.createElement("div"),S=document.createElement("div");y+=";background-color:"+r.get("buttonColor"),y+=";color:"+r.get("buttonTextColor");var x=this;function w(){n.removeChild(a),x._dom=null}o.addEventListener(_,"click",w),o.addEventListener(S,"click",(function(){var e;try{e="function"===typeof h?h(u,t.getOption()):b(l.value,m)}catch(n){throw w(),new Error("Data view format error "+n)}e&&t.dispatchAction({type:"changeDataView",newOption:e}),w()})),_.innerHTML=c[1],S.innerHTML=c[2],S.style.cssText=y,_.style.cssText=y,!r.get("readOnly")&&v.appendChild(S),v.appendChild(_),a.appendChild(s),a.appendChild(u),a.appendChild(v),u.style.height=n.clientHeight-80+"px",n.appendChild(a),this._dom=a},S.prototype.remove=function(e,t){this._dom&&t.getDom().removeChild(this._dom)},S.prototype.dispose=function(e,t){this.remove(e,t)},s.register("dataView",S),r.registerAction({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},(function(e,t){var n=[];i.each(e.newOption.series,(function(e){var r=t.getSeriesByName(e.name)[0];if(r){var o=r.get("data");n.push({name:e.name,data:x(e.data,o)})}else n.push(i.extend({type:"scatter"},e))})),t.mergeOption(i.defaults({series:n},e.newOption))}));var w=S;e.exports=w},"76a5":function(e,t,n){var r=n("19eb"),i=n("6d8b"),o=n("e86a"),a=n("a73c"),s=n("82eb"),c=s.ContextCachedBy,u=function(e){r.call(this,e)};u.prototype={constructor:u,type:"text",brush:function(e,t){var n=this.style;this.__dirty&&a.normalizeTextStyle(n,!0),n.fill=n.stroke=n.shadowBlur=n.shadowColor=n.shadowOffsetX=n.shadowOffsetY=null;var r=n.text;null!=r&&(r+=""),a.needDrawText(r,n)?(this.setTransform(e),a.renderText(this,e,r,n,null,t),this.restoreTransform(e)):e.__attrCachedBy=c.NONE},getBoundingRect:function(){var e=this.style;if(this.__dirty&&a.normalizeTextStyle(e,!0),!this._rect){var t=e.text;null!=t?t+="":t="";var n=o.getBoundingRect(e.text+"",e.font,e.textAlign,e.textVerticalAlign,e.textPadding,e.textLineHeight,e.rich);if(n.x+=e.x||0,n.y+=e.y||0,a.getStroke(e.textStroke,e.textStrokeWidth)){var r=e.textStrokeWidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect}},i.inherits(u,r);var l=u;e.exports=l},7782:function(e,t,n){var r=n("3eba"),i=n("6d8b");function o(e,t){i.each(t,(function(t){t.update="updateView",r.registerAction(t,(function(n,r){var i={};return r.eachComponent({mainType:"series",subType:e,query:n},(function(e){e[t.method]&&e[t.method](n.name,n.dataIndex);var r=e.getData();r.each((function(t){var n=r.getName(t);i[n]=e.isSelected(n)||!1}))})),{name:n.name,selected:i,seriesId:n.seriesId}}))}))}e.exports=o},"77a7":function(e,t,n){var r=n("da84"),i=r.Array,o=Math.abs,a=Math.pow,s=Math.floor,c=Math.log,u=Math.LN2,l=function(e,t,n){var r,l,d,h=i(n),f=8*n-t-1,p=(1<<f)-1,g=p>>1,m=23===t?a(2,-24)-a(2,-77):0,v=e<0||0===e&&1/e<0?1:0,y=0;e=o(e),e!=e||e===1/0?(l=e!=e?1:0,r=p):(r=s(c(e)/u),d=a(2,-r),e*d<1&&(r--,d*=2),e+=r+g>=1?m/d:m*a(2,1-g),e*d>=2&&(r++,d/=2),r+g>=p?(l=0,r=p):r+g>=1?(l=(e*d-1)*a(2,t),r+=g):(l=e*a(2,g-1)*a(2,t),r=0));while(t>=8)h[y++]=255&l,l/=256,t-=8;r=r<<t|l,f+=t;while(f>0)h[y++]=255&r,r/=256,f-=8;return h[--y]|=128*v,h},d=function(e,t){var n,r=e.length,i=8*r-t-1,o=(1<<i)-1,s=o>>1,c=i-7,u=r-1,l=e[u--],d=127&l;l>>=7;while(c>0)d=256*d+e[u--],c-=8;n=d&(1<<-c)-1,d>>=-c,c+=t;while(c>0)n=256*n+e[u--],c-=8;if(0===d)d=1-s;else{if(d===o)return n?NaN:l?-1/0:1/0;n+=a(2,t),d-=s}return(l?-1:1)*n*a(2,d-t)};e.exports={pack:l,unpack:d}},7839:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"785a":function(e,t,n){var r=n("cc12"),i=r("span").classList,o=i&&i.constructor&&i.constructor.prototype;e.exports=o===Object.prototype?void 0:o},7887:function(e,t,n){var r=n("6d8b"),i=n("84ce");function o(e,t,n){i.call(this,e,t,n),this.type="value",this.angle=0,this.name="",this.model}r.inherits(o,i);var a=o;e.exports=a},7891:function(e,t,n){var r=n("6d8b");function i(e){var t=e.polar;if(t){r.isArray(t)||(t=[t]);var n=[];r.each(t,(function(t,i){t.indicator?(t.type&&!t.shape&&(t.shape=t.type),e.radar=e.radar||[],r.isArray(e.radar)||(e.radar=[e.radar]),e.radar.push(t)):n.push(t)})),e.polar=n}r.each(e.series,(function(e){e&&"radar"===e.type&&e.polarIndex&&(e.radarIndex=e.polarIndex)}))}e.exports=i},"78f0":function(e,t,n){var r=n("3eba");n("d9f1");var i=r.extendComponentModel({type:"polar",dependencies:["polarAxis","angleAxis"],coordinateSystem:null,findAxisModel:function(e){var t,n=this.ecModel;return n.eachComponent(e,(function(e){e.getCoordSysModel()===this&&(t=e)}),this),t},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}});e.exports=i},7919:function(e,t,n){var r=n("f934"),i=r.getLayoutRect,o=r.box,a=r.positionElement,s=n("eda2"),c=n("2306");function u(e,t,n){var r=t.getBoxLayoutParams(),s=t.get("padding"),c={width:n.getWidth(),height:n.getHeight()},u=i(r,c,s);o(t.get("orient"),e,t.get("itemGap"),u.width,u.height),a(e,r,c,s)}function l(e,t){var n=s.normalizeCssArray(t.get("padding")),r=t.getItemStyle(["color","opacity"]);r.fill=t.get("backgroundColor");e=new c.Rect({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get("borderRadius")},style:r,silent:!0,z2:-1});return e}t.layout=u,t.makeBackground=l},"792e":function(e,t,n){n("1ccf"),n("14d3")},"7a77":function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},"7aac":function(e,t,n){"use strict";var r=n("c532");e.exports=r.isStandardBrowserEnv()?function(){return{write:function(e,t,n,i,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},"7b0b":function(e,t,n){var r=n("da84"),i=n("1d80"),o=r.Object;e.exports=function(e){return o(i(e))}},"7b0c":function(e,t,n){var r=n("6cc5"),i=n("f934"),o=i.getLayoutRect,a=n("e263");function s(e,t,n){var r=e.getBoxLayoutParams();return r.aspect=n,o(r,{width:t.getWidth(),height:t.getHeight()})}function c(e,t){var n=[];return e.eachSeriesByType("graph",(function(e){var i=e.get("coordinateSystem");if(!i||"view"===i){var o=e.getData(),c=o.mapArray((function(e){var t=o.getItemModel(e);return[+t.get("x"),+t.get("y")]})),u=[],l=[];a.fromPoints(c,u,l),l[0]-u[0]===0&&(l[0]+=1,u[0]-=1),l[1]-u[1]===0&&(l[1]+=1,u[1]-=1);var d=(l[0]-u[0])/(l[1]-u[1]),h=s(e,t,d);isNaN(d)&&(u=[h.x,h.y],l=[h.x+h.width,h.y+h.height]);var f=l[0]-u[0],p=l[1]-u[1],g=h.width,m=h.height,v=e.coordinateSystem=new r;v.zoomLimit=e.get("scaleLimit"),v.setBoundingRect(u[0],u[1],f,p),v.setViewRect(h.x,h.y,g,m),v.setCenter(e.get("center")),v.setZoom(e.get("zoom")),n.push(v)}})),n}e.exports=c},"7b3e":function(e,t,n){"use strict";var r,i=n("a3de");
/**
 * Checks if an event is supported in the current execution environment.
 *
 * NOTE: This will not work correctly for non-generic events such as `change`,
 * `reset`, `load`, `error`, and `select`.
 *
 * Borrows from Modernizr.
 *
 * @param {string} eventNameSuffix Event name, e.g. "click".
 * @param {?boolean} capture Check if the capture phase is supported.
 * @return {boolean} True if the event is supported.
 * @internal
 * @license Modernizr 3.0.0pre (Custom Build) | MIT
 */
function o(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,o=n in document;if(!o){var a=document.createElement("div");a.setAttribute(n,"return;"),o="function"===typeof a[n]}return!o&&r&&"wheel"===e&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}i.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),e.exports=o},"7c4d":function(e,t,n){var r=n("3eba"),i=n("6d8b"),o=n("fc82"),a=n("bd9e"),s=n("6fda"),c=n("ef6a"),u=n("29a8"),l=n("2145");n("dd39");var d=u.toolbox.dataZoom,h=i.each,f="\0_ec_\0toolbox-dataZoom_";function p(e,t,n){(this._brushController=new o(n.getZr())).on("brush",i.bind(this._onBrush,this)).mount(),this._isZoomActive}p.defaultOption={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:i.clone(d.title),brushStyle:{borderWidth:0,color:"rgba(0,0,0,0.2)"}};var g=p.prototype;g.render=function(e,t,n,r){this.model=e,this.ecModel=t,this.api=n,_(e,t,this,r,n),y(e,t)},g.onclick=function(e,t,n){m[n].call(this)},g.remove=function(e,t){this._brushController.unmount()},g.dispose=function(e,t){this._brushController.dispose()};var m={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(s.pop(this.ecModel))}};function v(e){var t={};return i.each(["xAxisIndex","yAxisIndex"],(function(n){t[n]=e[n],null==t[n]&&(t[n]="all"),(!1===t[n]||"none"===t[n])&&(t[n]=[])})),t}function y(e,t){e.setIconStatus("back",s.count(t)>1?"emphasis":"normal")}function _(e,t,n,r,i){var o=n._isZoomActive;r&&"takeGlobalCursor"===r.type&&(o="dataZoomSelect"===r.key&&r.dataZoomSelectActive),n._isZoomActive=o,e.setIconStatus("zoom",o?"emphasis":"normal");var s=new a(v(e.option),t,{include:["grid"]});n._brushController.setPanels(s.makePanelOpts(i,(function(e){return e.xAxisDeclared&&!e.yAxisDeclared?"lineX":!e.xAxisDeclared&&e.yAxisDeclared?"lineY":"rect"}))).enableBrush(!!o&&{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()})}g._onBrush=function(e,t){if(t.isEnd&&e.length){var n={},r=this.ecModel;this._brushController.updateCovers([]);var i=new a(v(this.model.option),r,{include:["grid"]});i.matchOutputRanges(e,r,(function(e,t,n){if("cartesian2d"===n.type){var r=e.brushType;"rect"===r?(o("x",n,t[0]),o("y",n,t[1])):o({lineX:"x",lineY:"y"}[r],n,t)}})),s.push(r,n),this._dispatchZoomAction(n)}function o(e,t,i){var o=t.getAxis(e),a=o.model,s=u(e,a,r),l=s.findRepresentativeAxisProxy(a).getMinMaxSpan();null==l.minValueSpan&&null==l.maxValueSpan||(i=c(0,i.slice(),o.scale.getExtent(),0,l.minValueSpan,l.maxValueSpan)),s&&(n[s.id]={dataZoomId:s.id,startValue:i[0],endValue:i[1]})}function u(e,t,n){var r;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){var i=n.getAxisModel(e,t.componentIndex);i&&(r=n)})),r}},g._dispatchZoomAction=function(e){var t=[];h(e,(function(e,n){t.push(i.clone(e))})),t.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:t})},l.register("dataZoom",p),r.registerPreprocessor((function(e){if(e){var t=e.dataZoom||(e.dataZoom=[]);i.isArray(t)||(e.dataZoom=t=[t]);var n=e.toolbox;if(n&&(i.isArray(n)&&(n=n[0]),n&&n.feature)){var r=n.feature.dataZoom;o("xAxis",r),o("yAxis",r)}}function o(e,n){if(n){var r=e+"Index",o=n[r];null==o||"all"===o||i.isArray(o)||(o=!1===o||"none"===o?[]:[o]),a(e,(function(a,s){if(null==o||"all"===o||-1!==i.indexOf(o,s)){var c={type:"select",$fromToolbox:!0,filterMode:n.filterMode||"filter",id:f+e+s};c[r]=s,t.push(c)}}))}}function a(t,n){var r=e[t];i.isArray(r)||(r=r?[r]:[]),h(r,n)}}));var b=p;e.exports=b},"7c73":function(e,t,n){var r,i=n("825a"),o=n("37e8"),a=n("7839"),s=n("d012"),c=n("1be4"),u=n("cc12"),l=n("f772"),d=">",h="<",f="prototype",p="script",g=l("IE_PROTO"),m=function(){},v=function(e){return h+p+d+e+h+"/"+p+d},y=function(e){e.write(v("")),e.close();var t=e.parentWindow.Object;return e=null,t},_=function(){var e,t=u("iframe"),n="java"+p+":";return t.style.display="none",c.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(v("document.F=Object")),e.close(),e.F},b=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}b="undefined"!=typeof document?document.domain&&r?y(r):_():y(r);var e=a.length;while(e--)delete b[f][a[e]];return b()};s[g]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(m[f]=i(e),n=new m,m[f]=null,n[g]=e):n=b(),void 0===t?n:o.f(n,t)}},"7cc8":function(e,t,n){},"7d6d":function(e,t){var n={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};function r(e,t,r){return n.hasOwnProperty(t)?r*e.dpr:r}e.exports=r},"7db0":function(e,t,n){"use strict";var r=n("23e7"),i=n("b727").find,o=n("44d2"),a="find",s=!0;a in[]&&Array(1)[a]((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o(a)},"7dcf":function(e,t,n){var r=n("b12f"),i=r.extend({type:"dataZoom",render:function(e,t,n,r){this.dataZoomModel=e,this.ecModel=t,this.api=n},getTargetCoordInfo:function(){var e=this.dataZoomModel,t=this.ecModel,n={};function r(e,t,n,r){for(var i,o=0;o<n.length;o++)if(n[o].model===e){i=n[o];break}i||n.push(i={model:e,axisModels:[],coordIndex:r}),i.axisModels.push(t)}return e.eachTargetAxis((function(e,i){var o=t.getComponent(e.axis,i);if(o){var a=o.getCoordSysModel();a&&r(a,o,n[a.mainType]||(n[a.mainType]=[]),a.componentIndex)}}),this),n}});e.exports=i},"7dd0":function(e,t,n){"use strict";var r=n("23e7"),i=n("c65b"),o=n("c430"),a=n("5e77"),s=n("1626"),c=n("9ed3"),u=n("e163"),l=n("d2bb"),d=n("d44e"),h=n("9112"),f=n("6eeb"),p=n("b622"),g=n("3f8c"),m=n("ae93"),v=a.PROPER,y=a.CONFIGURABLE,_=m.IteratorPrototype,b=m.BUGGY_SAFARI_ITERATORS,S=p("iterator"),x="keys",w="values",I="entries",C=function(){return this};e.exports=function(e,t,n,a,p,m,M){c(n,t,a);var T,k,E,A=function(e){if(e===p&&P)return P;if(!b&&e in R)return R[e];switch(e){case x:return function(){return new n(this,e)};case w:return function(){return new n(this,e)};case I:return function(){return new n(this,e)}}return function(){return new n(this)}},D=t+" Iterator",O=!1,R=e.prototype,L=R[S]||R["@@iterator"]||p&&R[p],P=!b&&L||A(p),N="Array"==t&&R.entries||L;if(N&&(T=u(N.call(new e)),T!==Object.prototype&&T.next&&(o||u(T)===_||(l?l(T,_):s(T[S])||f(T,S,C)),d(T,D,!0,!0),o&&(g[D]=C))),v&&p==w&&L&&L.name!==w&&(!o&&y?h(R,"name",w):(O=!0,P=function(){return i(L,this)})),p)if(k={values:A(w),keys:m?P:A(x),entries:A(I)},M)for(E in k)(b||O||!(E in R))&&f(R,E,k[E]);else r({target:t,proto:!0,forced:b||O},k);return o&&!M||R[S]===P||f(R,S,P,{name:p}),g[t]=P,k}},"7e32":function(e,t,n){var r=n("3eba");n("43b8"),n("8e77"),r.registerPreprocessor((function(e){e.markArea=e.markArea||{}}))},"7e5b":function(e,t,n){var r=n("6d8b"),i=n("401b"),o=n("a15a"),a=n("7f91"),s=n("2306"),c=n("3842"),u=c.round,l=["fromSymbol","toSymbol"];function d(e){return"_"+e+"Type"}function h(e,t,n){var i=t.getItemVisual(n,e);if(i&&"none"!==i){var a=t.getItemVisual(n,"color"),s=t.getItemVisual(n,e+"Size"),c=t.getItemVisual(n,e+"Rotate");r.isArray(s)||(s=[s,s]);var u=o.createSymbol(i,-s[0]/2,-s[1]/2,s[0],s[1],a);return u.__specifiedRotation=null==c||isNaN(c)?void 0:+c*Math.PI/180||0,u.name=e,u}}function f(e){var t=new a({name:"line",subPixelOptimize:!0});return p(t.shape,e),t}function p(e,t){e.x1=t[0][0],e.y1=t[0][1],e.x2=t[1][0],e.y2=t[1][1],e.percent=1;var n=t[2];n?(e.cpx1=n[0],e.cpy1=n[1]):(e.cpx1=NaN,e.cpy1=NaN)}function g(){var e=this,t=e.childOfName("fromSymbol"),n=e.childOfName("toSymbol"),r=e.childOfName("label");if(t||n||!r.ignore){var o=1,a=this.parent;while(a)a.scale&&(o/=a.scale[0]),a=a.parent;var s=e.childOfName("line");if(this.__dirty||s.__dirty){var c=s.shape.percent,u=s.pointAt(0),l=s.pointAt(c),d=i.sub([],l,u);if(i.normalize(d,d),t){t.attr("position",u);var h=t.__specifiedRotation;if(null==h){var f=s.tangentAt(0);t.attr("rotation",Math.PI/2-Math.atan2(f[1],f[0]))}else t.attr("rotation",h);t.attr("scale",[o*c,o*c])}if(n){n.attr("position",l);h=n.__specifiedRotation;if(null==h){f=s.tangentAt(1);n.attr("rotation",-Math.PI/2-Math.atan2(f[1],f[0]))}else n.attr("rotation",h);n.attr("scale",[o*c,o*c])}if(!r.ignore){var p,g,m,v;r.attr("position",l);var y=r.__labelDistance,_=y[0]*o,b=y[1]*o,S=c/2,x=(f=s.tangentAt(S),[f[1],-f[0]]),w=s.pointAt(S);x[1]>0&&(x[0]=-x[0],x[1]=-x[1]);var I,C=f[0]<0?-1:1;if("start"!==r.__position&&"end"!==r.__position){var M=-Math.atan2(f[1],f[0]);l[0]<u[0]&&(M=Math.PI+M),r.attr("rotation",M)}switch(r.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":I=-b,m="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":I=b,m="top";break;default:I=0,m="middle"}switch(r.__position){case"end":p=[d[0]*_+l[0],d[1]*b+l[1]],g=d[0]>.8?"left":d[0]<-.8?"right":"center",m=d[1]>.8?"top":d[1]<-.8?"bottom":"middle";break;case"start":p=[-d[0]*_+u[0],-d[1]*b+u[1]],g=d[0]>.8?"right":d[0]<-.8?"left":"center",m=d[1]>.8?"bottom":d[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":p=[_*C+u[0],u[1]+I],g=f[0]<0?"right":"left",v=[-_*C,-I];break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":p=[w[0],w[1]+I],g="center",v=[0,-I];break;case"insideEndTop":case"insideEnd":case"insideEndBottom":p=[-_*C+l[0],l[1]+I],g=f[0]>=0?"right":"left",v=[_*C,-I];break}r.attr({style:{textVerticalAlign:r.__verticalAlign||m,textAlign:r.__textAlign||g},position:p,scale:[o,o],origin:v})}}}}function m(e,t,n){s.Group.call(this),this._createLine(e,t,n)}var v=m.prototype;v.beforeUpdate=g,v._createLine=function(e,t,n){var i=e.hostModel,o=e.getItemLayout(t),a=f(o);a.shape.percent=0,s.initProps(a,{shape:{percent:1}},i,t),this.add(a);var c=new s.Text({name:"label",lineLabelOriginalOpacity:1});this.add(c),r.each(l,(function(n){var r=h(n,e,t);this.add(r),this[d(n)]=e.getItemVisual(t,n)}),this),this._updateCommonStl(e,t,n)},v.updateData=function(e,t,n){var i=e.hostModel,o=this.childOfName("line"),a=e.getItemLayout(t),c={shape:{}};p(c.shape,a),s.updateProps(o,c,i,t),r.each(l,(function(n){var r=e.getItemVisual(t,n),i=d(n);if(this[i]!==r){this.remove(this.childOfName(n));var o=h(n,e,t);this.add(o)}this[i]=r}),this),this._updateCommonStl(e,t,n)},v._updateCommonStl=function(e,t,n){var i=e.hostModel,o=this.childOfName("line"),a=n&&n.lineStyle,c=n&&n.hoverLineStyle,d=n&&n.labelModel,h=n&&n.hoverLabelModel;if(!n||e.hasItemOption){var f=e.getItemModel(t);a=f.getModel("lineStyle").getLineStyle(),c=f.getModel("emphasis.lineStyle").getLineStyle(),d=f.getModel("label"),h=f.getModel("emphasis.label")}var p=e.getItemVisual(t,"color"),g=r.retrieve3(e.getItemVisual(t,"opacity"),a.opacity,1);o.useStyle(r.defaults({strokeNoScale:!0,fill:"none",stroke:p,opacity:g},a)),o.hoverStyle=c,r.each(l,(function(e){var t=this.childOfName(e);t&&(t.setColor(p),t.setStyle({opacity:g}))}),this);var m,v,y=d.getShallow("show"),_=h.getShallow("show"),b=this.childOfName("label");if((y||_)&&(m=p||"#000",v=i.getFormattedLabel(t,"normal",e.dataType),null==v)){var S=i.getRawValue(t);v=null==S?e.getName(t):isFinite(S)?u(S):S}var x=y?v:null,w=_?r.retrieve2(i.getFormattedLabel(t,"emphasis",e.dataType),v):null,I=b.style;if(null!=x||null!=w){s.setTextStyle(b.style,d,{text:x},{autoColor:m}),b.__textAlign=I.textAlign,b.__verticalAlign=I.textVerticalAlign,b.__position=d.get("position")||"middle";var C=d.get("distance");r.isArray(C)||(C=[C,C]),b.__labelDistance=C}b.hoverStyle=null!=w?{text:w,textFill:h.getTextColor(!0),fontStyle:h.getShallow("fontStyle"),fontWeight:h.getShallow("fontWeight"),fontSize:h.getShallow("fontSize"),fontFamily:h.getShallow("fontFamily")}:{text:null},b.ignore=!y&&!_,s.setHoverStyle(this)},v.highlight=function(){this.trigger("emphasis")},v.downplay=function(){this.trigger("normal")},v.updateLayout=function(e,t){this.setLinePoints(e.getItemLayout(t))},v.setLinePoints=function(e){var t=this.childOfName("line");p(t.shape,e),t.dirty()},r.inherits(m,s.Group);var y=m;e.exports=y},"7e63":function(e,t,n){var r=n("4e08"),i=(r.__DEV__,n("6d8b")),o=i.each,a=i.filter,s=i.map,c=i.isArray,u=i.indexOf,l=i.isObject,d=i.isString,h=i.createHashMap,f=i.assert,p=i.clone,g=i.merge,m=i.extend,v=i.mixin,y=n("e0d3"),_=n("4319"),b=n("6cb7"),S=n("8971"),x=n("e47b"),w=n("0f99"),I=w.resetSourceDefaulter,C="\0_ec_inner",M=_.extend({init:function(e,t,n,r){n=n||{},this.option=null,this._theme=new _(n),this._optionManager=r},setOption:function(e,t){f(!(C in e),"please use chart.getOption()"),this._optionManager.setOption(e,t),this.resetOption(null)},resetOption:function(e){var t=!1,n=this._optionManager;if(!e||"recreate"===e){var r=n.mountOption("recreate"===e);this.option&&"recreate"!==e?(this.restoreData(),this.mergeOption(r)):E.call(this,r),t=!0}if("timeline"!==e&&"media"!==e||this.restoreData(),!e||"recreate"===e||"timeline"===e){var i=n.getTimelineOption(this);i&&(this.mergeOption(i),t=!0)}if(!e||"recreate"===e||"media"===e){var a=n.getMediaOption(this,this._api);a.length&&o(a,(function(e){this.mergeOption(e,t=!0)}),this)}return t},mergeOption:function(e){var t=this.option,n=this._componentsMap,r=[];function i(r,i){var a=y.normalizeToArray(e[r]),s=y.mappingToExists(n.get(r),a);y.makeIdAndName(s),o(s,(function(e,t){var n=e.option;l(n)&&(e.keyInfo.mainType=r,e.keyInfo.subType=D(r,n,e.exist))}));var c=A(n,i);t[r]=[],n.set(r,[]),o(s,(function(e,i){var o=e.exist,a=e.option;if(f(l(a)||o,"Empty component definition"),a){var s=b.getClass(r,e.keyInfo.subType,!0);if(o&&o.constructor===s)o.name=e.keyInfo.name,o.mergeOption(a,this),o.optionUpdated(a,!1);else{var u=m({dependentModels:c,componentIndex:i},e.keyInfo);o=new s(a,this,this,u),m(o,u),o.init(a,this,this,u),o.optionUpdated(null,!0)}}else o.mergeOption({},this),o.optionUpdated({},!1);n.get(r)[i]=o,t[r][i]=o.option}),this),"series"===r&&O(this,n.get("series"))}I(this),o(e,(function(e,n){null!=e&&(b.hasClass(n)?n&&r.push(n):t[n]=null==t[n]?p(e):g(t[n],e,!0))})),b.topologicalTravel(r,b.getAllClassMainTypes(),i,this),this._seriesIndicesMap=h(this._seriesIndices=this._seriesIndices||[])},getOption:function(){var e=p(this.option);return o(e,(function(t,n){if(b.hasClass(n)){t=y.normalizeToArray(t);for(var r=t.length-1;r>=0;r--)y.isIdInner(t[r])&&t.splice(r,1);e[n]=t}})),delete e[C],e},getTheme:function(){return this._theme},getComponent:function(e,t){var n=this._componentsMap.get(e);if(n)return n[t||0]},queryComponents:function(e){var t=e.mainType;if(!t)return[];var n,r=e.index,i=e.id,o=e.name,l=this._componentsMap.get(t);if(!l||!l.length)return[];if(null!=r)c(r)||(r=[r]),n=a(s(r,(function(e){return l[e]})),(function(e){return!!e}));else if(null!=i){var d=c(i);n=a(l,(function(e){return d&&u(i,e.id)>=0||!d&&e.id===i}))}else if(null!=o){var h=c(o);n=a(l,(function(e){return h&&u(o,e.name)>=0||!h&&e.name===o}))}else n=l.slice();return R(n,e)},findComponents:function(e){var t=e.query,n=e.mainType,r=o(t),i=r?this.queryComponents(r):this._componentsMap.get(n);return s(R(i,e));function o(e){var t=n+"Index",r=n+"Id",i=n+"Name";return!e||null==e[t]&&null==e[r]&&null==e[i]?null:{mainType:n,index:e[t],id:e[r],name:e[i]}}function s(t){return e.filter?a(t,e.filter):t}},eachComponent:function(e,t,n){var r=this._componentsMap;if("function"===typeof e)n=t,t=e,r.each((function(e,r){o(e,(function(e,i){t.call(n,r,e,i)}))}));else if(d(e))o(r.get(e),t,n);else if(l(e)){var i=this.findComponents(e);o(i,t,n)}},getSeriesByName:function(e){var t=this._componentsMap.get("series");return a(t,(function(t){return t.name===e}))},getSeriesByIndex:function(e){return this._componentsMap.get("series")[e]},getSeriesByType:function(e){var t=this._componentsMap.get("series");return a(t,(function(t){return t.subType===e}))},getSeries:function(){return this._componentsMap.get("series").slice()},getSeriesCount:function(){return this._componentsMap.get("series").length},eachSeries:function(e,t){L(this),o(this._seriesIndices,(function(n){var r=this._componentsMap.get("series")[n];e.call(t,r,n)}),this)},eachRawSeries:function(e,t){o(this._componentsMap.get("series"),e,t)},eachSeriesByType:function(e,t,n){L(this),o(this._seriesIndices,(function(r){var i=this._componentsMap.get("series")[r];i.subType===e&&t.call(n,i,r)}),this)},eachRawSeriesByType:function(e,t,n){return o(this.getSeriesByType(e),t,n)},isSeriesFiltered:function(e){return L(this),null==this._seriesIndicesMap.get(e.componentIndex)},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(e,t){L(this);var n=a(this._componentsMap.get("series"),e,t);O(this,n)},restoreData:function(e){var t=this._componentsMap;O(this,t.get("series"));var n=[];t.each((function(e,t){n.push(t)})),b.topologicalTravel(n,b.getAllClassMainTypes(),(function(n,r){o(t.get(n),(function(t){("series"!==n||!T(t,e))&&t.restoreData()}))}))}});function T(e,t){if(t){var n=t.seiresIndex,r=t.seriesId,i=t.seriesName;return null!=n&&e.componentIndex!==n||null!=r&&e.id!==r||null!=i&&e.name!==i}}function k(e,t){var n=e.color&&!e.colorLayer;o(t,(function(t,r){"colorLayer"===r&&n||b.hasClass(r)||("object"===typeof t?e[r]=e[r]?g(e[r],t,!1):p(t):null==e[r]&&(e[r]=t))}))}function E(e){e=e,this.option={},this.option[C]=1,this._componentsMap=h({series:[]}),this._seriesIndices,this._seriesIndicesMap,k(e,this._theme.option),g(e,S,!1),this.mergeOption(e)}function A(e,t){c(t)||(t=t?[t]:[]);var n={};return o(t,(function(t){n[t]=(e.get(t)||[]).slice()})),n}function D(e,t,n){var r=t.type?t.type:n?n.subType:b.determineSubType(e,t);return r}function O(e,t){e._seriesIndicesMap=h(e._seriesIndices=s(t,(function(e){return e.componentIndex}))||[])}function R(e,t){return t.hasOwnProperty("subType")?a(e,(function(e){return e.subType===t.subType})):e}function L(e){}v(M,x);var P=M;e.exports=P},"7ed3":function(e,t,n){},"7f4d":function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){for(var t=1,n=arguments.length;t<n;t++){var r=arguments[t]||{};for(var i in r)if(r.hasOwnProperty(i)){var o=r[i];void 0!==o&&(e[i]=o)}}return e}},"7f59":function(e,t,n){var r=n("4e08"),i=(r.__DEV__,n("3eba")),o=n("6d8b"),a=n("e0d3"),s=n("2306"),c=n("f934"),u=n("3842"),l=u.parsePercent,d={path:null,compoundPath:null,group:s.Group,image:s.Image,text:s.Text};i.registerPreprocessor((function(e){var t=e.graphic;o.isArray(t)?t[0]&&t[0].elements?e.graphic=[e.graphic[0]]:e.graphic=[{elements:t}]:t&&!t.elements&&(e.graphic=[{elements:[t]}])}));var h=i.extendComponentModel({type:"graphic",defaultOption:{elements:[],parentId:null},_elOptionsToUpdate:null,mergeOption:function(e){var t=this.option.elements;this.option.elements=null,h.superApply(this,"mergeOption",arguments),this.option.elements=t},optionUpdated:function(e,t){var n=this.option,r=(t?n:e).elements,i=n.elements=t?[]:n.elements,s=[];this._flatten(r,s);var c=a.mappingToExists(i,s);a.makeIdAndName(c);var u=this._elOptionsToUpdate=[];o.each(c,(function(e,t){var n=e.option;n&&(u.push(n),v(e,n),y(i,t,n),_(i[t],n))}),this);for(var l=i.length-1;l>=0;l--)null==i[l]?i.splice(l,1):delete i[l].$action},_flatten:function(e,t,n){o.each(e,(function(e){if(e){n&&(e.parentOption=n),t.push(e);var r=e.children;"group"===e.type&&r&&this._flatten(r,t,e),delete e.children}}),this)},useElOptionsToUpdate:function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e}});function f(e,t,n,r){var i=n.type,o=d.hasOwnProperty(i)?d[i]:s.getShapeClass(i),a=new o(n);t.add(a),r.set(e,a),a.__ecGraphicId=e}function p(e,t){var n=e&&e.parent;n&&("group"===e.type&&e.traverse((function(e){p(e,t)})),t.removeKey(e.__ecGraphicId),n.remove(e))}function g(e){return e=o.extend({},e),o.each(["id","parentId","$action","hv","bounding"].concat(c.LOCATION_PARAMS),(function(t){delete e[t]})),e}function m(e,t){var n;return o.each(t,(function(t){null!=e[t]&&"auto"!==e[t]&&(n=!0)})),n}function v(e,t){var n=e.exist;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),null==t.parentId){var r=t.parentOption;r?t.parentId=r.id:n&&(t.parentId=n.parentId)}t.parentOption=null}function y(e,t,n){var r=o.extend({},n),i=e[t],a=n.$action||"merge";"merge"===a?i?(o.merge(i,r,!0),c.mergeLayoutParam(i,r,{ignoreSize:!0}),c.copyLayoutParams(n,i)):e[t]=r:"replace"===a?e[t]=r:"remove"===a&&i&&(e[t]=null)}function _(e,t){e&&(e.hv=t.hv=[m(t,["left","right"]),m(t,["top","bottom"])],"group"===e.type&&(null==e.width&&(e.width=t.width=0),null==e.height&&(e.height=t.height=0)))}function b(e,t,n){var r=e.eventData;e.silent||e.ignore||r||(r=e.eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),r&&(r.info=e.info)}i.extendComponentView({type:"graphic",init:function(e,t){this._elMap=o.createHashMap(),this._lastGraphicModel},render:function(e,t,n){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,n)},_updateElements:function(e){var t=e.useElOptionsToUpdate();if(t){var n=this._elMap,r=this.group;o.each(t,(function(t){var i=t.$action,o=t.id,a=n.get(o),s=t.parentId,c=null!=s?n.get(s):r,u=t.style;"text"===t.type&&u&&(t.hv&&t.hv[1]&&(u.textVerticalAlign=u.textBaseline=null),!u.hasOwnProperty("textFill")&&u.fill&&(u.textFill=u.fill),!u.hasOwnProperty("textStroke")&&u.stroke&&(u.textStroke=u.stroke));var l=g(t);i&&"merge"!==i?"replace"===i?(p(a,n),f(o,c,l,n)):"remove"===i&&p(a,n):a?a.attr(l):f(o,c,l,n);var d=n.get(o);d&&(d.__ecGraphicWidthOption=t.width,d.__ecGraphicHeightOption=t.height,b(d,e,t))}))}},_relocate:function(e,t){for(var n=e.option.elements,r=this.group,i=this._elMap,o=t.getWidth(),a=t.getHeight(),s=0;s<n.length;s++){var u=n[s],d=i.get(u.id);if(d&&d.isGroup){var h=d.parent,f=h===r;d.__ecGraphicWidth=l(d.__ecGraphicWidthOption,f?o:h.__ecGraphicWidth)||0,d.__ecGraphicHeight=l(d.__ecGraphicHeightOption,f?a:h.__ecGraphicHeight)||0}}for(s=n.length-1;s>=0;s--){u=n[s],d=i.get(u.id);if(d){h=d.parent;var p=h===r?{width:o,height:a}:{width:h.__ecGraphicWidth,height:h.__ecGraphicHeight};c.positionElement(d,u,p,null,{hv:u.hv,boundingMode:u.bounding})}}},_clear:function(){var e=this._elMap;e.each((function(t){p(t,e)})),this._elMap=o.createHashMap()},dispose:function(){this._clear()}})},"7f72":function(e,t,n){n("6932"),n("3a56"),n("7dcf"),n("a18f"),n("32a1"),n("2c17"),n("9e87")},"7f91":function(e,t,n){var r=n("2306"),i=n("401b"),o=r.Line.prototype,a=r.BezierCurve.prototype;function s(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var c=r.extendShape({type:"ec-line",style:{stroke:"#000",fill:null},shape:{x1:0,y1:0,x2:0,y2:0,percent:1,cpx1:null,cpy1:null},buildPath:function(e,t){this[s(t)?"_buildPathLine":"_buildPathCurve"](e,t)},_buildPathLine:o.buildPath,_buildPathCurve:a.buildPath,pointAt:function(e){return this[s(this.shape)?"_pointAtLine":"_pointAtCurve"](e)},_pointAtLine:o.pointAt,_pointAtCurve:a.pointAt,tangentAt:function(e){var t=this.shape,n=s(t)?[t.x2-t.x1,t.y2-t.y1]:this._tangentAtCurve(e);return i.normalize(n,n)},_tangentAtCurve:a.tangentAt});e.exports=c},"7f96":function(e,t,n){var r=n("6d8b"),i=r.isFunction;function o(e,t,n){return{seriesType:e,performRawSeries:!0,reset:function(e,r,o){var a=e.getData(),s=e.get("symbol"),c=e.get("symbolSize"),u=e.get("symbolKeepAspect"),l=e.get("symbolRotate"),d=i(s),h=i(c),f=i(l),p=d||h||f,g=!d&&s?s:t,m=h?null:c;if(a.setVisual({legendSymbol:n||g,symbol:g,symbolSize:m,symbolKeepAspect:u,symbolRotate:l}),!r.isSeriesFiltered(e))return{dataEach:a.hasItemOption||p?v:null};function v(t,n){if(p){var r=e.getRawValue(n),i=e.getDataParams(n);d&&t.setItemVisual(n,"symbol",s(r,i)),h&&t.setItemVisual(n,"symbolSize",c(r,i)),f&&t.setItemVisual(n,"symbolRotate",l(r,i))}if(t.hasItemOption){var o=t.getItemModel(n),a=o.getShallow("symbol",!0),u=o.getShallow("symbolSize",!0),g=o.getShallow("symbolRotate",!0),m=o.getShallow("symbolKeepAspect",!0);null!=a&&t.setItemVisual(n,"symbol",a),null!=u&&t.setItemVisual(n,"symbolSize",u),null!=g&&t.setItemVisual(n,"symbolRotate",g),null!=m&&t.setItemVisual(n,"symbolKeepAspect",m)}}}}}e.exports=o},"7f9a":function(e,t,n){var r=n("da84"),i=n("1626"),o=n("8925"),a=r.WeakMap;e.exports=i(a)&&/native code/.test(o(a))},"7fc1":function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=126)}({0:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var c,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(c=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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=c):i&&(c=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(e,t){return c.call(t),l(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},126:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-checkbox-group",attrs:{role:"group","aria-label":"checkbox-group"}},[e._t("default")],2)},i=[];r._withStripped=!0;var o=n(4),a=n.n(o),s={name:"ElCheckboxGroup",componentName:"ElCheckboxGroup",mixins:[a.a],inject:{elFormItem:{default:""}},props:{value:{},disabled:Boolean,min:Number,max:Number,size:String,fill:String,textColor:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxGroupSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size}},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",[e])}}},c=s,u=n(0),l=Object(u["a"])(c,r,i,!1,null,null,null);l.options.__file="packages/checkbox/src/checkbox-group.vue";var d=l.exports;d.install=function(e){e.component(d.name,d)};t["default"]=d},4:function(e,t){e.exports=n("d010")}})},"80f0":function(e,t){function n(e){return e}function r(e,t,r,i,o){this._old=e,this._new=t,this._oldKeyGetter=r||n,this._newKeyGetter=i||n,this.context=o}function i(e,t,n,r,i){for(var o=0;o<e.length;o++){var a="_ec_"+i[r](e[o],o),s=t[a];null==s?(n.push(a),t[a]=o):(s.length||(t[a]=s=[s]),s.push(o))}}r.prototype={constructor:r,add:function(e){return this._add=e,this},update:function(e){return this._update=e,this},remove:function(e){return this._remove=e,this},execute:function(){var e=this._old,t=this._new,n={},r={},o=[],a=[];for(i(e,n,o,"_oldKeyGetter",this),i(t,r,a,"_newKeyGetter",this),l=0;l<e.length;l++){var s=o[l],c=r[s];if(null!=c){var u=c.length;u?(1===u&&(r[s]=null),c=c.shift()):r[s]=null,this._update&&this._update(c,l)}else this._remove&&this._remove(l)}for(var l=0;l<a.length;l++){s=a[l];if(r.hasOwnProperty(s)){c=r[s];if(null==c)continue;if(c.length){var d=0;for(u=c.length;d<u;d++)this._add&&this._add(c[d])}else this._add&&this._add(c)}}}};var o=r;e.exports=o},8122:function(e,t,n){"use strict";t.__esModule=!0,t.isEmpty=t.isEqual=t.arrayEquals=t.looseEqual=t.capitalize=t.kebabCase=t.autoprefixer=t.isFirefox=t.isEdge=t.isIE=t.coerceTruthyValueToArray=t.arrayFind=t.arrayFindIndex=t.escapeRegexpString=t.valueEquals=t.generateId=t.getValueByPath=void 0;var r="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};t.noop=u,t.hasOwn=l,t.toObject=h,t.getPropByPath=f,t.rafThrottle=y,t.objToArray=_;var i=n("2b0e"),o=s(i),a=n("a742");function s(e){return e&&e.__esModule?e:{default:e}}var c=Object.prototype.hasOwnProperty;function u(){}function l(e,t){return c.call(e,t)}function d(e,t){for(var n in t)e[n]=t[n];return e}function h(e){for(var t={},n=0;n<e.length;n++)e[n]&&d(t,e[n]);return t}t.getValueByPath=function(e,t){t=t||"";for(var n=t.split("."),r=e,i=null,o=0,a=n.length;o<a;o++){var s=n[o];if(!r)break;if(o===a-1){i=r[s];break}r=r[s]}return i};function f(e,t,n){var r=e;t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,"");for(var i=t.split("."),o=0,a=i.length;o<a-1;++o){if(!r&&!n)break;var s=i[o];if(!(s in r)){if(n)throw new Error("please transfer a valid prop path to form item!");break}r=r[s]}return{o:r,k:i[o],v:r?r[i[o]]:null}}t.generateId=function(){return Math.floor(1e4*Math.random())},t.valueEquals=function(e,t){if(e===t)return!0;if(!(e instanceof Array))return!1;if(!(t instanceof Array))return!1;if(e.length!==t.length)return!1;for(var n=0;n!==e.length;++n)if(e[n]!==t[n])return!1;return!0},t.escapeRegexpString=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return String(e).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")};var p=t.arrayFindIndex=function(e,t){for(var n=0;n!==e.length;++n)if(t(e[n]))return n;return-1},g=(t.arrayFind=function(e,t){var n=p(e,t);return-1!==n?e[n]:void 0},t.coerceTruthyValueToArray=function(e){return Array.isArray(e)?e:e?[e]:[]},t.isIE=function(){return!o.default.prototype.$isServer&&!isNaN(Number(document.documentMode))},t.isEdge=function(){return!o.default.prototype.$isServer&&navigator.userAgent.indexOf("Edge")>-1},t.isFirefox=function(){return!o.default.prototype.$isServer&&!!window.navigator.userAgent.match(/firefox/i)},t.autoprefixer=function(e){if("object"!==("undefined"===typeof e?"undefined":r(e)))return e;var t=["transform","transition","animation"],n=["ms-","webkit-"];return t.forEach((function(t){var r=e[t];t&&r&&n.forEach((function(n){e[n+t]=r}))})),e},t.kebabCase=function(e){var t=/([^-])([A-Z])/g;return e.replace(t,"$1-$2").replace(t,"$1-$2").toLowerCase()},t.capitalize=function(e){return(0,a.isString)(e)?e.charAt(0).toUpperCase()+e.slice(1):e},t.looseEqual=function(e,t){var n=(0,a.isObject)(e),r=(0,a.isObject)(t);return n&&r?JSON.stringify(e)===JSON.stringify(t):!n&&!r&&String(e)===String(t)}),m=t.arrayEquals=function(e,t){if(e=e||[],t=t||[],e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!g(e[n],t[n]))return!1;return!0},v=(t.isEqual=function(e,t){return Array.isArray(e)&&Array.isArray(t)?m(e,t):g(e,t)},t.isEmpty=function(e){if(null==e)return!0;if("boolean"===typeof e)return!1;if("number"===typeof e)return!e;if(e instanceof Error)return""===e.message;switch(Object.prototype.toString.call(e)){case"[object String]":case"[object Array]":return!e.length;case"[object File]":case"[object Map]":case"[object Set]":return!e.size;case"[object Object]":return!Object.keys(e).length}return!1});function y(e){var t=!1;return function(){for(var n=this,r=arguments.length,i=Array(r),o=0;o<r;o++)i[o]=arguments[o];t||(t=!0,window.requestAnimationFrame((function(r){e.apply(n,i),t=!1})))}}function _(e){return Array.isArray(e)?e:v(e)?[]:[e]}},"81ac":function(e,t,n){var r=n("f934"),i=n("6d8b"),o=n("e0d3"),a=o.groupData;function s(e,t,n){e.eachSeriesByType("sankey",(function(e){var n=e.get("nodeWidth"),r=e.get("nodeGap"),o=c(e,t);e.layoutInfo=o;var a=o.width,s=o.height,d=e.getGraph(),h=d.nodes,f=d.edges;l(h);var p=i.filter(h,(function(e){return 0===e.getLayout().value})),g=0!==p.length?0:e.get("layoutIterations"),m=e.get("orient"),v=e.get("nodeAlign");u(h,f,n,r,a,s,g,m,v)}))}function c(e,t){return r.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function u(e,t,n,r,i,o,a,s,c){d(e,t,n,i,o,s,c),m(e,t,o,i,r,a,s),E(e,s)}function l(e){i.each(e,(function(e){var t=T(e.outEdges,M),n=T(e.inEdges,M),r=e.getValue()||0,i=Math.max(t,n,r);e.setLayout({value:i},!0)}))}function d(e,t,n,r,i,o,a){for(var s=[],c=[],u=[],l=[],d=0,h=0,p=0;p<t.length;p++)s[p]=1;for(p=0;p<e.length;p++)c[p]=e[p].inEdges.length,0===c[p]&&u.push(e[p]);var m=-1;while(u.length){for(var v=0;v<u.length;v++){var y=u[v],_=y.hostGraph.data.getRawDataItem(y.dataIndex),b=null!=_.depth&&_.depth>=0;b&&_.depth>m&&(m=_.depth),y.setLayout({depth:b?_.depth:d},!0),"vertical"===o?y.setLayout({dy:n},!0):y.setLayout({dx:n},!0);for(var S=0;S<y.outEdges.length;S++){var x=y.outEdges[S],w=t.indexOf(x);s[w]=0;var I=x.node2,C=e.indexOf(I);0===--c[C]&&l.indexOf(I)<0&&l.push(I)}}++d,u=l,l=[]}for(p=0;p<s.length;p++)if(1===s[p])throw new Error("Sankey is a DAG, the original data has cycle!");var M=m>d-1?m:d-1;a&&"left"!==a&&f(e,a,o,M);h="vertical"===o?(i-n)/M:(r-n)/M;g(e,h,o)}function h(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return null!=t.depth&&t.depth>=0}function f(e,t,n,r){if("right"===t){var o=[],a=e,s=0;while(a.length){for(var c=0;c<a.length;c++){var u=a[c];u.setLayout({skNodeHeight:s},!0);for(var l=0;l<u.inEdges.length;l++){var d=u.inEdges[l];o.indexOf(d.node1)<0&&o.push(d.node1)}}a=o,o=[],++s}i.each(e,(function(e){h(e)||e.setLayout({depth:Math.max(0,r-e.getLayout().skNodeHeight)},!0)}))}else"justify"===t&&p(e,r)}function p(e,t){i.each(e,(function(e){h(e)||e.outEdges.length||e.setLayout({depth:t},!0)}))}function g(e,t,n){i.each(e,(function(e){var r=e.getLayout().depth*t;"vertical"===n?e.setLayout({y:r},!0):e.setLayout({x:r},!0)}))}function m(e,t,n,r,i,o,a){var s=v(e,a);y(s,t,n,r,i,a),_(s,i,n,r,a);for(var c=1;o>0;o--)c*=.99,b(s,c,a),_(s,i,n,r,a),k(s,c,a),_(s,i,n,r,a)}function v(e,t){var n=[],r="vertical"===t?"y":"x",o=a(e,(function(e){return e.getLayout()[r]}));return o.keys.sort((function(e,t){return e-t})),i.each(o.keys,(function(e){n.push(o.buckets.get(e))})),n}function y(e,t,n,r,o,a){var s=1/0;i.each(e,(function(e){var t=e.length,c=0;i.each(e,(function(e){c+=e.getLayout().value}));var u="vertical"===a?(r-(t-1)*o)/c:(n-(t-1)*o)/c;u<s&&(s=u)})),i.each(e,(function(e){i.each(e,(function(e,t){var n=e.getLayout().value*s;"vertical"===a?(e.setLayout({x:t},!0),e.setLayout({dx:n},!0)):(e.setLayout({y:t},!0),e.setLayout({dy:n},!0))}))})),i.each(t,(function(e){var t=+e.getValue()*s;e.setLayout({dy:t},!0)}))}function _(e,t,n,r,o){var a="vertical"===o?"x":"y";i.each(e,(function(e){var i,s,c;e.sort((function(e,t){return e.getLayout()[a]-t.getLayout()[a]}));for(var u=0,l=e.length,d="vertical"===o?"dx":"dy",h=0;h<l;h++)s=e[h],c=u-s.getLayout()[a],c>0&&(i=s.getLayout()[a]+c,"vertical"===o?s.setLayout({x:i},!0):s.setLayout({y:i},!0)),u=s.getLayout()[a]+s.getLayout()[d]+t;var f="vertical"===o?r:n;if(c=u-t-f,c>0)for(i=s.getLayout()[a]-c,"vertical"===o?s.setLayout({x:i},!0):s.setLayout({y:i},!0),u=i,h=l-2;h>=0;--h)s=e[h],c=s.getLayout()[a]+s.getLayout()[d]+t-u,c>0&&(i=s.getLayout()[a]-c,"vertical"===o?s.setLayout({x:i},!0):s.setLayout({y:i},!0)),u=s.getLayout()[a]}))}function b(e,t,n){i.each(e.slice().reverse(),(function(e){i.each(e,(function(e){if(e.outEdges.length){var r=T(e.outEdges,S,n)/T(e.outEdges,M,n);if(isNaN(r)){var i=e.outEdges.length;r=i?T(e.outEdges,x,n)/i:0}if("vertical"===n){var o=e.getLayout().x+(r-C(e,n))*t;e.setLayout({x:o},!0)}else{var a=e.getLayout().y+(r-C(e,n))*t;e.setLayout({y:a},!0)}}}))}))}function S(e,t){return C(e.node2,t)*e.getValue()}function x(e,t){return C(e.node2,t)}function w(e,t){return C(e.node1,t)*e.getValue()}function I(e,t){return C(e.node1,t)}function C(e,t){return"vertical"===t?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function M(e){return e.getValue()}function T(e,t,n){var r=0,i=e.length,o=-1;while(++o<i){var a=+t.call(e,e[o],n);isNaN(a)||(r+=a)}return r}function k(e,t,n){i.each(e,(function(e){i.each(e,(function(e){if(e.inEdges.length){var r=T(e.inEdges,w,n)/T(e.inEdges,M,n);if(isNaN(r)){var i=e.inEdges.length;r=i?T(e.inEdges,I,n)/i:0}if("vertical"===n){var o=e.getLayout().x+(r-C(e,n))*t;e.setLayout({x:o},!0)}else{var a=e.getLayout().y+(r-C(e,n))*t;e.setLayout({y:a},!0)}}}))}))}function E(e,t){var n="vertical"===t?"x":"y";i.each(e,(function(e){e.outEdges.sort((function(e,t){return e.node2.getLayout()[n]-t.node2.getLayout()[n]})),e.inEdges.sort((function(e,t){return e.node1.getLayout()[n]-t.node1.getLayout()[n]}))})),i.each(e,(function(e){var t=0,n=0;i.each(e.outEdges,(function(e){e.setLayout({sy:t},!0),t+=e.getLayout().dy})),i.each(e.inEdges,(function(e){e.setLayout({ty:n},!0),n+=e.getLayout().dy}))}))}e.exports=s},"81d5":function(e,t,n){"use strict";var r=n("7b0b"),i=n("23cb"),o=n("07fa");e.exports=function(e){var t=r(this),n=o(t),a=arguments.length,s=i(a>1?arguments[1]:void 0,n),c=a>2?arguments[2]:void 0,u=void 0===c?n:i(c,n);while(u>s)t[s++]=e;return t}},"825a":function(e,t,n){var r=n("da84"),i=n("861d"),o=r.String,a=r.TypeError;e.exports=function(e){if(i(e))return e;throw a(o(e)+" is not an object")}},8261:function(e,t,n){},"826b":function(e,t,n){},"82eb":function(e,t){var n={NONE:0,STYLE_BIND:1,PLAIN_TEXT:2},r=9;t.ContextCachedBy=n,t.WILL_BE_RESTORED=r},"82f8":function(e,t,n){"use strict";var r=n("ebb5"),i=n("4d64").includes,o=r.aTypedArray,a=r.exportTypedArrayMethod;a("includes",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},"82f9":function(e,t,n){var r=n("6d8b"),i=n("76a5"),o=n("2306");function a(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}function s(e){var t=this._zr=e.getZr();this._styleCoord=[0,0,0,0],a(this._styleCoord,t,e.getWidth()/2,e.getHeight()/2),this._show=!1,this._hideTimeout}s.prototype={constructor:s,_enterable:!0,update:function(e){var t=e.get("alwaysShowContent");t&&this._moveTooltipIfResized()},_moveTooltipIfResized:function(){var e=this._styleCoord[2],t=this._styleCoord[3],n=e*this._zr.getWidth(),r=t*this._zr.getHeight();this.moveTo(n,r)},show:function(e){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.attr("show",!0),this._show=!0},setContent:function(e,t,n){this.el&&this._zr.remove(this.el);var r={},a=e,s="{marker",c="|}",u=a.indexOf(s);while(u>=0){var l=a.indexOf(c),d=a.substr(u+s.length,l-u-s.length);d.indexOf("sub")>-1?r["marker"+d]={textWidth:4,textHeight:4,textBorderRadius:2,textBackgroundColor:t[d],textOffset:[3,0]}:r["marker"+d]={textWidth:10,textHeight:10,textBorderRadius:5,textBackgroundColor:t[d]},a=a.substr(l+1),u=a.indexOf("{marker")}var h=n.getModel("textStyle"),f=h.get("fontSize"),p=n.get("textLineHeight");null==p&&(p=Math.round(3*f/2)),this.el=new i({style:o.setTextStyle({},h,{rich:r,text:e,textBackgroundColor:n.get("backgroundColor"),textBorderRadius:n.get("borderRadius"),textFill:n.get("textStyle.color"),textPadding:n.get("padding"),textLineHeight:p}),z:n.get("z")}),this._zr.add(this.el);var g=this;this.el.on("mouseover",(function(){g._enterable&&(clearTimeout(g._hideTimeout),g._show=!0),g._inContent=!0})),this.el.on("mouseout",(function(){g._enterable&&g._show&&g.hideLater(g._hideDelay),g._inContent=!1}))},setEnterable:function(e){this._enterable=e},getSize:function(){var e=this.el.getBoundingRect();return[e.width,e.height]},moveTo:function(e,t){if(this.el){var n=this._styleCoord;a(n,this._zr,e,t),this.el.attr("position",[n[0],n[1]])}},hide:function(){this.el&&this.el.hide(),this._show=!1},hideLater:function(e){!this._show||this._inContent&&this._enterable||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(r.bind(this.hide,this),e)):this.hide())},isShow:function(){return this._show},dispose:function(){clearTimeout(this._hideTimeout),this.el&&this._zr.remove(this.el)},getOuterSize:function(){var e=this.getSize();return{width:e[0],height:e[1]}}};var c=s;e.exports=c},8344:function(e,t,n){var r=n("6d8b"),i=n("f706"),o=n("3842"),a=n("6179"),s=n("923d"),c=n("88f0");function u(e,t,n){var r=t.coordinateSystem;e.each((function(i){var a,s=e.getItemModel(i),c=o.parsePercent(s.get("x"),n.getWidth()),u=o.parsePercent(s.get("y"),n.getHeight());if(isNaN(c)||isNaN(u)){if(t.getMarkerPosition)a=t.getMarkerPosition(e.getValues(e.dimensions,i));else if(r){var l=e.get(r.dimensions[0],i),d=e.get(r.dimensions[1],i);a=r.dataToPoint([l,d])}}else a=[c,u];isNaN(c)||(a[0]=c),isNaN(u)||(a[1]=u),e.setItemLayout(i,a)}))}var l=c.extend({type:"markPoint",updateTransform:function(e,t,n){t.eachSeries((function(e){var t=e.markPointModel;t&&(u(t.getData(),e,n),this.markerGroupMap.get(e.id).updateLayout(t))}),this)},renderSeries:function(e,t,n,o){var a=e.coordinateSystem,s=e.id,c=e.getData(),l=this.markerGroupMap,h=l.get(s)||l.set(s,new i),f=d(a,e,t);t.setData(f),u(t.getData(),e,o),f.each((function(e){var n=f.getItemModel(e),i=n.getShallow("symbol"),o=n.getShallow("symbolSize"),a=n.getShallow("symbolRotate"),s=r.isFunction(i),u=r.isFunction(o),l=r.isFunction(a);if(s||u||l){var d=t.getRawValue(e),h=t.getDataParams(e);s&&(i=i(d,h)),u&&(o=o(d,h)),l&&(a=a(d,h))}f.setItemVisual(e,{symbol:i,symbolSize:o,symbolRotate:a,color:n.get("itemStyle.color")||c.getVisual("color")})})),h.updateData(f),this.group.add(h.group),f.eachItemGraphicEl((function(e){e.traverse((function(e){e.dataModel=t}))})),h.__keep=!0,h.group.silent=t.get("silent")||e.get("silent")}});function d(e,t,n){var i;i=e?r.map(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return r.defaults({name:e},n)})):[{name:"value",type:"float"}];var o=new a(i,n),c=r.map(n.get("data"),r.curry(s.dataTransform,t));return e&&(c=r.filter(c,r.curry(s.dataFilter,e))),o.initData(c,null,e?s.dimValueGetter:function(e){return e.value}),o}e.exports=l},"83ab":function(e,t,n){var r=n("d039");e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"83b9":function(e,t,n){"use strict";var r=n("d925"),i=n("e683");e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},"83ba":function(e,t,n){var r=n("6d8b"),i=n("6cb7"),o=n("f934"),a=o.getLayoutParams,s=o.sizeCalculable,c=o.mergeLayoutParam,u=i.extend({type:"calendar",coordinateSystem:null,defaultOption:{zlevel:0,z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",nameMap:"en",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},init:function(e,t,n,r){var i=a(e);u.superApply(this,"init",arguments),l(e,i)},mergeOption:function(e,t){u.superApply(this,"mergeOption",arguments),l(this.option,e)}});function l(e,t){var n=e.cellSize;r.isArray(n)?1===n.length&&(n[1]=n[0]):n=e.cellSize=[n,n];var i=r.map([0,1],(function(e){return s(t,e)&&(n[e]="auto"),null!=n[e]&&"auto"!==n[e]}));c(e,t,{type:"box",ignoreSize:i})}var d=u;e.exports=d},8418:function(e,t,n){"use strict";var r=n("a04b"),i=n("9bf2"),o=n("5c6c");e.exports=function(e,t,n){var a=r(t);a in e?i.f(e,a,o(0,n)):e[a]=n}},"843e":function(e,t,n){var r=n("6d8b"),i=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"];function o(e){r.each(i,(function(t){this[t]=r.bind(e[t],e)}),this)}var a=o;e.exports=a},8459:function(e,t,n){var r=n("3eba"),i={type:"axisAreaSelect",event:"axisAreaSelected"};r.registerAction(i,(function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},(function(t){t.axis.model.setActiveIntervals(e.intervals)}))})),r.registerAction("parallelAxisExpand",(function(e,t){t.eachComponent({mainType:"parallel",query:e},(function(t){t.setAxisExpand(e)}))}))},"845f":function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=87)}({0:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var c,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(c=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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=c):i&&(c=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(e,t){return c.call(t),l(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},87:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-button-group"},[e._t("default")],2)},i=[];r._withStripped=!0;var o={name:"ElButtonGroup"},a=o,s=n(0),c=Object(s["a"])(a,r,i,!1,null,null,null);c.options.__file="packages/button/src/button-group.vue";var u=c.exports;u.install=function(e){e.component(u.name,u)};t["default"]=u}})},"848b":function(e,t,n){"use strict";var r=n("5cce").version,i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var o={};function a(e,t,n){if("object"!==typeof e)throw new TypeError("options must be an object");var r=Object.keys(e),i=r.length;while(i-- >0){var o=r[i],a=t[o];if(a){var s=e[o],c=void 0===s||a(s,o,e);if(!0!==c)throw new TypeError("option "+o+" must be "+c)}else if(!0!==n)throw Error("Unknown option "+o)}}i.transitional=function(e,t,n){function i(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,a){if(!1===e)throw new Error(i(r," has been removed"+(t?" in "+t:"")));return t&&!o[r]&&(o[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,a)}},e.exports={assertOptions:a,validators:i}},"849b":function(e,t,n){var r=n("d9d0"),i=n("2039");function o(e,t){var n=[];return e.eachComponent("parallel",(function(i,o){var a=new r(i,e,t);a.name="parallel_"+o,a.resize(i,t),i.coordinateSystem=a,a.model=i,n.push(a)})),e.eachSeries((function(t){if("parallel"===t.get("coordinateSystem")){var n=e.queryComponents({mainType:"parallel",index:t.get("parallelIndex"),id:t.get("parallelId")})[0];t.coordinateSystem=n.coordinateSystem}})),n}i.register("parallel",{create:o})},"84c3":function(e,t,n){var r=n("74e8");r("Uint16",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},"84cd":function(e,t,n){},"84ce":function(e,t,n){var r=n("6d8b"),i=r.each,o=r.map,a=n("3842"),s=a.linearMap,c=a.getPixelPrecision,u=a.round,l=n("e073"),d=l.createAxisTicks,h=l.createAxisLabels,f=l.calculateCategoryInterval,p=[0,1],g=function(e,t,n){this.dim=e,this.scale=t,this._extent=n||[0,0],this.inverse=!1,this.onBand=!1};function m(e,t){var n=e[1]-e[0],r=t,i=n/r/2;e[0]+=i,e[1]-=i}function v(e,t,n,r){var o=t.length;if(e.onBand&&!n&&o){var a,s,c=e.getExtent();if(1===o)t[0].coord=c[0],a=t[1]={coord:c[0]};else{var l=t[o-1].tickValue-t[0].tickValue,d=(t[o-1].coord-t[0].coord)/l;i(t,(function(e){e.coord-=d/2}));var h=e.scale.getExtent();s=1+h[1]-t[o-1].tickValue,a={coord:t[o-1].coord+d*s},t.push(a)}var f=c[0]>c[1];p(t[0].coord,c[0])&&(r?t[0].coord=c[0]:t.shift()),r&&p(c[0],t[0].coord)&&t.unshift({coord:c[0]}),p(c[1],a.coord)&&(r?a.coord=c[1]:t.pop()),r&&p(a.coord,c[1])&&t.push({coord:c[1]})}function p(e,t){return e=u(e),t=u(t),f?e>t:e<t}}g.prototype={constructor:g,contain:function(e){var t=this._extent,n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);return e>=n&&e<=r},containData:function(e){return this.scale.contain(e)},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(e){return c(e||this.scale.getExtent(),this._extent)},setExtent:function(e,t){var n=this._extent;n[0]=e,n[1]=t},dataToCoord:function(e,t){var n=this._extent,r=this.scale;return e=r.normalize(e),this.onBand&&"ordinal"===r.type&&(n=n.slice(),m(n,r.count())),s(e,p,n,t)},coordToData:function(e,t){var n=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&(n=n.slice(),m(n,r.count()));var i=s(e,n,p,t);return this.scale.scale(i)},pointToData:function(e,t){},getTicksCoords:function(e){e=e||{};var t=e.tickModel||this.getTickModel(),n=d(this,t),r=n.ticks,i=o(r,(function(e){return{coord:this.dataToCoord(e),tickValue:e}}),this),a=t.get("alignWithLabel");return v(this,i,a,e.clamp),i},getMinorTicksCoords:function(){if("ordinal"===this.scale.type)return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var n=this.scale.getMinorTicks(t),r=o(n,(function(e){return o(e,(function(e){return{coord:this.dataToCoord(e),tickValue:e}}),this)}),this);return r},getViewLabels:function(){return h(this).labels},getLabelModel:function(){return this.model.getModel("axisLabel")},getTickModel:function(){return this.model.getModel("axisTick")},getBandWidth:function(){var e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+(this.onBand?1:0);0===n&&(n=1);var r=Math.abs(e[1]-e[0]);return Math.abs(r)/n},isHorizontal:null,getRotate:null,calculateCategoryInterval:function(){return f(this)}};var y=g;e.exports=y},"84d5":function(e,t,n){var r=n("3eba"),i=n("6d8b"),o=n("4319"),a=n("e0d3"),s=a.isNameSpecified,c=n("29a8"),u=c.legend.selector,l={all:{type:"all",title:i.clone(u.all)},inverse:{type:"inverse",title:i.clone(u.inverse)}},d=r.extendComponentModel({type:"legend.plain",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},mergeOption:function(e){d.superCall(this,"mergeOption",e),this._updateSelector(e)},_updateSelector:function(e){var t=e.selector;!0===t&&(t=e.selector=["all","inverse"]),i.isArray(t)&&i.each(t,(function(e,n){i.isString(e)&&(e={type:e}),t[n]=i.merge(e,l[e.type])}))},optionUpdated:function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&"single"===this.get("selectedMode")){for(var t=!1,n=0;n<e.length;n++){var r=e[n].get("name");if(this.isSelected(r)){this.select(r),t=!0;break}}!t&&this.select(e[0].get("name"))}},_updateData:function(e){var t=[],n=[];e.eachRawSeries((function(r){var i,o=r.name;if(n.push(o),r.legendVisualProvider){var a=r.legendVisualProvider,c=a.getAllNames();e.isSeriesFiltered(r)||(n=n.concat(c)),c.length?t=t.concat(c):i=!0}else i=!0;i&&s(r)&&t.push(r.name)})),this._availableNames=n;var r=this.get("data")||t,a=i.map(r,(function(e){return"string"!==typeof e&&"number"!==typeof e||(e={name:e}),new o(e,this,this.ecModel)}),this);this._data=a},getData:function(){return this._data},select:function(e){var t=this.option.selected,n=this.get("selectedMode");if("single"===n){var r=this._data;i.each(r,(function(e){t[e.get("name")]=!1}))}t[e]=!0},unSelect:function(e){"single"!==this.get("selectedMode")&&(this.option.selected[e]=!1)},toggleSelected:function(e){var t=this.option.selected;t.hasOwnProperty(e)||(t[e]=!0),this[t[e]?"unSelect":"select"](e)},allSelect:function(){var e=this._data,t=this.option.selected;i.each(e,(function(e){t[e.get("name",!0)]=!0}))},inverseSelect:function(){var e=this._data,t=this.option.selected;i.each(e,(function(e){var n=e.get("name",!0);t.hasOwnProperty(n)||(t[n]=!0),t[n]=!t[n]}))},isSelected:function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&i.indexOf(this._availableNames,e)>=0},getOrient:function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},defaultOption:{zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",itemStyle:{borderWidth:0},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:" sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}}}),h=d;e.exports=h},"84ec":function(e,t){var n=Math.log(2);function r(e,t,i,o,a,s){var c=o+"-"+a,u=e.length;if(s.hasOwnProperty(c))return s[c];if(1===t){var l=Math.round(Math.log((1<<u)-1&~a)/n);return e[i][l]}var d=o|1<<i,h=i+1;while(o&1<<h)h++;for(var f=0,p=0,g=0;p<u;p++){var m=1<<p;m&a||(f+=(g%2?-1:1)*e[i][p]*r(e,t-1,h,d,a|m,s),g++)}return s[c]=f,f}function i(e,t){var n=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],i={},o=r(n,8,0,0,0,i);if(0!==o){for(var a=[],s=0;s<8;s++)for(var c=0;c<8;c++)null==a[c]&&(a[c]=0),a[c]+=((s+c)%2?-1:1)*r(n,7,0===s?1:0,1<<s,1<<c,i)/o*t[s];return function(e,t,n){var r=t*a[6]+n*a[7]+1;e[0]=(t*a[0]+n*a[1]+a[2])/r,e[1]=(t*a[3]+n*a[4]+a[5])/r}}}t.buildTransformer=i},"857d":function(e,t){var n=2*Math.PI;function r(e){return e%=n,e<0&&(e+=n),e}t.normalizeRadian=r},"85c4":function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var i=r(n("9523")),o=r(n("448a")),a=r(n("970b")),s=r(n("53b8")),c=r(n("050c")),u=n("5557"),l=r(n("b06d")),d=r(n("eb53"));function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(n,!0).forEach((function(t){(0,i["default"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var p=function e(t){if((0,a["default"])(this,e),t){var n=t.getContext("2d"),r=t.clientWidth,i=t.clientHeight,o=[r,i];t.setAttribute("width",r),t.setAttribute("height",i),this.ctx=n,this.area=o,this.animationStatus=!1,this.graphs=[],this.color=s["default"],this.bezierCurve=c["default"],t.addEventListener("mousedown",v.bind(this)),t.addEventListener("mousemove",y.bind(this)),t.addEventListener("mouseup",_.bind(this))}else console.error("CRender Missing parameters!")};function g(e,t){var n=this.graphs;m(n)?(n.forEach((function(e){return e.turnNextAnimationFrame(t)})),this.drawAllGraph(),requestAnimationFrame(g.bind(this,e,t))):e()}function m(e){return e.find((function(e){return!e.animationPause&&e.animationFrameState.length}))}function v(e){var t=this.graphs,n=t.find((function(e){return"hover"===e.status}));n&&(n.status="active")}function y(e){var t=e.offsetX,n=e.offsetY,r=[t,n],i=this.graphs,o=i.find((function(e){return"active"===e.status||"drag"===e.status}));if(o){if(!o.drag)return;return"function"!==typeof o.move?void console.error("No move method is provided, cannot be dragged!"):(o.moveProcessor(e),void(o.status="drag"))}var a=i.find((function(e){return"hover"===e.status})),s=i.filter((function(e){return e.hover&&("function"===typeof e.hoverCheck||e.hoverRect)})),c=s.find((function(e){return e.hoverCheckProcessor(r,e)}));document.body.style.cursor=c?c.style.hoverCursor:"default";var u=!1,l=!1;if(a&&(u="function"===typeof a.mouseOuter),c&&(l="function"===typeof c.mouseEnter),c||a){if(!c&&a)return u&&a.mouseOuter(e,a),void(a.status="static");if(!c||c!==a)return c&&!a?(l&&c.mouseEnter(e,c),void(c.status="hover")):void(c&&a&&c!==a&&(u&&a.mouseOuter(e,a),a.status="static",l&&c.mouseEnter(e,c),c.status="hover"))}}function _(e){var t=this.graphs,n=t.find((function(e){return"active"===e.status})),r=t.find((function(e){return"drag"===e.status}));n&&"function"===typeof n.click&&n.click(e,n),t.forEach((function(e){return e&&(e.status="static")})),n&&(n.status="hover"),r&&(r.status="hover")}t["default"]=p,p.prototype.clearArea=function(){var e,t=this.area;(e=this.ctx).clearRect.apply(e,[0,0].concat((0,o["default"])(t)))},p.prototype.add=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name;if(t){var n=l["default"].get(t);if(n){var r=new d["default"](n,e);if(r.validator(r))return r.render=this,this.graphs.push(r),this.sortGraphsByIndex(),this.drawAllGraph(),r}else console.warn("No corresponding graph configuration found!")}else console.error("add Missing parameters!")},p.prototype.sortGraphsByIndex=function(){var e=this.graphs;e.sort((function(e,t){return e.index>t.index?1:e.index===t.index?0:e.index<t.index?-1:void 0}))},p.prototype.delGraph=function(e){"function"===typeof e.delProcessor&&(e.delProcessor(this),this.graphs=this.graphs.filter((function(e){return e})),this.drawAllGraph())},p.prototype.delAllGraph=function(){var e=this;this.graphs.forEach((function(t){return t.delProcessor(e)})),this.graphs=this.graphs.filter((function(e){return e})),this.drawAllGraph()},p.prototype.drawAllGraph=function(){var e=this;this.clearArea(),this.graphs.filter((function(e){return e&&e.visible})).forEach((function(t){return t.drawProcessor(e,t)}))},p.prototype.launchAnimation=function(){var e=this,t=this.animationStatus;if(!t)return this.animationStatus=!0,new Promise((function(t){g.call(e,(function(){e.animationStatus=!1,t()}),Date.now())}))},p.prototype.clone=function(e){var t=e.style.getStyle(),n=f({},e,{style:t});return delete n.render,n=(0,u.deepClone)(n,!0),this.add(n)}},"861d":function(e,t,n){var r=n("1626");e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},"862d":function(e,t,n){var r=n("6d8b"),i=r.createHashMap,o=r.each,a=r.isString,s=r.defaults,c=r.extend,u=r.isObject,l=r.clone,d=n("e0d3"),h=d.normalizeToArray,f=n("0f99"),p=f.guessOrdinal,g=f.BE_ORDINAL,m=n("ec6f"),v=n("2f45"),y=v.OTHER_DIMENSIONS,_=n("562e");function b(e,t,n){m.isInstance(t)||(t=m.seriesDataToSource(t)),n=n||{},e=(e||[]).slice();for(var r=(n.dimsDef||[]).slice(),d=i(),f=i(),v=[],b=S(t,e,r,n.dimCount),w=0;w<b;w++){var I=r[w]=c({},u(r[w])?r[w]:{name:r[w]}),C=I.name,M=v[w]=new _;null!=C&&null==d.get(C)&&(M.name=M.displayName=C,d.set(C,w)),null!=I.type&&(M.type=I.type),null!=I.displayName&&(M.displayName=I.displayName)}var T=n.encodeDef;!T&&n.encodeDefaulter&&(T=n.encodeDefaulter(t,b)),T=i(T),T.each((function(e,t){if(e=h(e).slice(),1===e.length&&!a(e[0])&&e[0]<0)T.set(t,!1);else{var n=T.set(t,[]);o(e,(function(e,r){a(e)&&(e=d.get(e)),null!=e&&e<b&&(n[r]=e,E(v[e],t,r))}))}}));var k=0;function E(e,t,n){null!=y.get(t)?e.otherDims[t]=n:(e.coordDim=t,e.coordDimIndex=n,f.set(t,!0))}o(e,(function(e,t){var n,r,i;if(a(e))n=e,e={};else{n=e.name;var c=e.ordinalMeta;e.ordinalMeta=null,e=l(e),e.ordinalMeta=c,r=e.dimsDef,i=e.otherDims,e.name=e.coordDim=e.coordDimIndex=e.dimsDef=e.otherDims=null}var d=T.get(n);if(!1!==d){d=h(d);if(!d.length)for(var f=0;f<(r&&r.length||1);f++){while(k<v.length&&null!=v[k].coordDim)k++;k<v.length&&d.push(k++)}o(d,(function(t,o){var a=v[t];if(E(s(a,e),n,o),null==a.name&&r){var c=r[o];!u(c)&&(c={name:c}),a.name=a.displayName=c.name,a.defaultTooltip=c.defaultTooltip}i&&s(a.otherDims,i)}))}}));var A=n.generateCoord,D=n.generateCoordCount,O=null!=D;D=A?D||1:0;for(var R=A||"value",L=0;L<b;L++){M=v[L]=v[L]||new _;var P=M.coordDim;null==P&&(M.coordDim=x(R,f,O),M.coordDimIndex=0,(!A||D<=0)&&(M.isExtraCoord=!0),D--),null==M.name&&(M.name=x(M.coordDim,d)),null!=M.type||p(t,L,M.name)!==g.Must&&(!M.isExtraCoord||null==M.otherDims.itemName&&null==M.otherDims.seriesName)||(M.type="ordinal")}return v}function S(e,t,n,r){var i=Math.max(e.dimensionsDetectCount||1,t.length,n.length,r||0);return o(t,(function(e){var t=e.dimsDef;t&&(i=Math.max(i,t.length))})),i}function x(e,t,n){if(n||null!=t.get(e)){var r=0;while(null!=t.get(e+r))r++;e+=r}return t.set(e,!0),e}var w=b;e.exports=w},"862d3":function(e,t,n){"use strict";(function(t,n){e.exports=n()})(0,(function(){function e(e){var r=[];return e.AMapUI&&r.push(t(e.AMapUI)),e.Loca&&r.push(n(e.Loca)),Promise.all(r)}function t(e){return new Promise((function(t,n){var s=[];if(e.plugins)for(var c=0;c<e.plugins.length;c+=1)-1==i.AMapUI.plugins.indexOf(e.plugins[c])&&s.push(e.plugins[c]);if(o.AMapUI===r.failed)n("前次请求 AMapUI 失败");else if(o.AMapUI===r.notload){o.AMapUI=r.loading,i.AMapUI.version=e.version||i.AMapUI.version,c=i.AMapUI.version;var u=document.body||document.head,l=document.createElement("script");l.type="text/javascript",l.src="https://webapi.amap.com/ui/"+c+"/main.js",l.onerror=function(e){o.AMapUI=r.failed,n("请求 AMapUI 失败")},l.onload=function(){if(o.AMapUI=r.loaded,s.length)window.AMapUI.loadUI(s,(function(){for(var e=0,n=s.length;e<n;e++){var r=s[e].split("/").slice(-1)[0];window.AMapUI[r]=arguments[e]}for(t();a.AMapUI.length;)a.AMapUI.splice(0,1)[0]()}));else for(t();a.AMapUI.length;)a.AMapUI.splice(0,1)[0]()},u.appendChild(l)}else o.AMapUI===r.loaded?e.version&&e.version!==i.AMapUI.version?n("不允许多个版本 AMapUI 混用"):s.length?window.AMapUI.loadUI(s,(function(){for(var e=0,n=s.length;e<n;e++){var r=s[e].split("/").slice(-1)[0];window.AMapUI[r]=arguments[e]}t()})):t():e.version&&e.version!==i.AMapUI.version?n("不允许多个版本 AMapUI 混用"):a.AMapUI.push((function(e){e?n(e):s.length?window.AMapUI.loadUI(s,(function(){for(var e=0,n=s.length;e<n;e++){var r=s[e].split("/").slice(-1)[0];window.AMapUI[r]=arguments[e]}t()})):t()}))}))}function n(e){return new Promise((function(t,n){if(o.Loca===r.failed)n("前次请求 Loca 失败");else if(o.Loca===r.notload){o.Loca=r.loading,i.Loca.version=e.version||i.Loca.version;var s=i.Loca.version,c=i.AMap.version.startsWith("2"),u=s.startsWith("2");if(c&&!u||!c&&u)n("JSAPI 与 Loca 版本不对应!!");else{c=i.key,u=document.body||document.head;var l=document.createElement("script");l.type="text/javascript",l.src="https://webapi.amap.com/loca?v="+s+"&key="+c,l.onerror=function(e){o.Loca=r.failed,n("请求 AMapUI 失败")},l.onload=function(){for(o.Loca=r.loaded,t();a.Loca.length;)a.Loca.splice(0,1)[0]()},u.appendChild(l)}}else o.Loca===r.loaded?e.version&&e.version!==i.Loca.version?n("不允许多个版本 Loca 混用"):t():e.version&&e.version!==i.Loca.version?n("不允许多个版本 Loca 混用"):a.Loca.push((function(e){e?n(e):n()}))}))}if(!window)throw Error("AMap JSAPI can only be used in Browser.");var r;(function(e){e.notload="notload",e.loading="loading",e.loaded="loaded",e.failed="failed"})(r||(r={}));var i={key:"",AMap:{version:"1.4.15",plugins:[]},AMapUI:{version:"1.1",plugins:[]},Loca:{version:"1.3.2"}},o={AMap:r.notload,AMapUI:r.notload,Loca:r.notload},a={AMap:[],AMapUI:[],Loca:[]},s=[],c=function(e){"function"==typeof e&&(o.AMap===r.loaded?e(window.AMap):s.push(e))};return{load:function(t){return new Promise((function(n,a){if(o.AMap==r.failed)a("");else if(o.AMap==r.notload){var u=t.key,l=t.version,d=t.plugins;u?(window.AMap&&"lbs.amap.com"!==location.host&&a("禁止多种API加载方式混用"),i.key=u,i.AMap.version=l||i.AMap.version,i.AMap.plugins=d||i.AMap.plugins,o.AMap=r.loading,l=document.body||document.head,window.___onAPILoaded=function(i){if(delete window.___onAPILoaded,i)o.AMap=r.failed,a(i);else for(o.AMap=r.loaded,e(t).then((function(){n(window.AMap)}))["catch"](a);s.length;)s.splice(0,1)[0]()},d=document.createElement("script"),d.type="text/javascript",d.src="https://webapi.amap.com/maps?callback=___onAPILoaded&v="+i.AMap.version+"&key="+u+"&plugin="+i.AMap.plugins.join(","),d.onerror=function(e){o.AMap=r.failed,a(e)},l.appendChild(d)):a("请填写key")}else if(o.AMap==r.loaded)if(t.key&&t.key!==i.key)a("多个不一致的 key");else if(t.version&&t.version!==i.AMap.version)a("不允许多个版本 JSAPI 混用");else{if(u=[],t.plugins)for(l=0;l<t.plugins.length;l+=1)-1==i.AMap.plugins.indexOf(t.plugins[l])&&u.push(t.plugins[l]);u.length?window.AMap.plugin(u,(function(){e(t).then((function(){n(window.AMap)}))["catch"](a)})):e(t).then((function(){n(window.AMap)}))["catch"](a)}else if(t.key&&t.key!==i.key)a("多个不一致的 key");else if(t.version&&t.version!==i.AMap.version)a("不允许多个版本 JSAPI 混用");else{var h=[];if(t.plugins)for(l=0;l<t.plugins.length;l+=1)-1==i.AMap.plugins.indexOf(t.plugins[l])&&h.push(t.plugins[l]);c((function(){h.length?window.AMap.plugin(h,(function(){e(t).then((function(){n(window.AMap)}))["catch"](a)})):e(t).then((function(){n(window.AMap)}))["catch"](a)}))}}))},reset:function(){delete window.AMap,delete window.AMapUI,delete window.Loca,i={key:"",AMap:{version:"1.4.15",plugins:[]},AMapUI:{version:"1.1",plugins:[]},Loca:{version:"1.3.2"}},o={AMap:r.notload,AMapUI:r.notload,Loca:r.notload},a={AMap:[],AMapUI:[],Loca:[]}}}}))},"870e":function(e,t,n){var r=n("6d8b");function i(e){e.eachSeriesByType("radar",(function(e){var t=e.getData(),n=[],i=e.coordinateSystem;if(i){var s=i.getIndicatorAxes();r.each(s,(function(e,r){t.each(t.mapDimension(s[r].dim),(function(e,t){n[t]=n[t]||[];var s=i.dataToPoint(e,r);n[t][r]=o(s)?s:a(i)}))})),t.each((function(e){var s=r.find(n[e],(function(e){return o(e)}))||a(i);n[e].push(s.slice()),t.setItemLayout(e,n[e])}))}}))}function o(e){return!isNaN(e[0])&&!isNaN(e[1])}function a(e){return[e.cx,e.cy]}e.exports=i},8727:function(e,t){var n="http://www.w3.org/2000/svg";function r(e){return document.createElementNS(n,e)}t.createElement=r},8728:function(e,t){function n(e,t,n,r,i,o){if(o>t&&o>r||o<t&&o<r)return 0;if(r===t)return 0;var a=r<t?1:-1,s=(o-t)/(r-t);1!==s&&0!==s||(a=r<t?.5:-.5);var c=s*(n-e)+e;return c===i?1/0:c>i?a:0}e.exports=n},"873c":function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.title=u;var i=r(n("278c")),o=n("18ad"),a=n("5557"),s=n("9d85"),c=n("becb");function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];t.title&&(n[0]=(0,c.deepMerge)((0,a.deepClone)(s.titleConfig,!0),t.title)),(0,o.doUpdate)({chart:e,series:n,key:"title",getGraphConfig:l})}function l(e,t){var n=s.titleConfig.animationCurve,r=s.titleConfig.animationFrame,i=s.titleConfig.rLevel,o=d(e,t),a=h(e);return[{name:"text",index:i,visible:e.show,animationCurve:n,animationFrame:r,shape:o,style:a}]}function d(e,t){var n=e.offset,r=e.text,o=t.chart.gridArea,a=o.x,s=o.y,c=o.w,u=(0,i["default"])(n,2),l=u[0],d=u[1];return{content:r,position:[a+c/2+l,s+d]}}function h(e){var t=e.style;return t}},"879e":function(e,t,n){var r=n("3eba"),i=n("6179"),o=n("6d8b"),a=n("e0d3"),s=a.defaultEmphasis,c=n("4319"),u=n("eda2"),l=u.encodeHTML,d=n("237f"),h=n("c4a3"),f=n("0c37"),p=f.initCurvenessList,g=f.createEdgeMapForCurveness,m=r.extendSeriesModel({type:"series.graph",init:function(e){m.superApply(this,"init",arguments);var t=this;function n(){return t._categoriesData}this.legendVisualProvider=new h(n,n),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},mergeOption:function(e){m.superApply(this,"mergeOption",arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},mergeDefaultAndTheme:function(e){m.superApply(this,"mergeDefaultAndTheme",arguments),s(e,["edgeLabel"],["show"])},getInitialData:function(e,t){var n=e.edges||e.links||[],r=e.data||e.nodes||[],i=this;if(r&&n){p(this);var a=d(r,n,this,!0,s);return o.each(a.edges,(function(e){g(e.node1,e.node2,this,e.dataIndex)}),this),a.data}function s(e,n){e.wrapMethod("getItemModel",(function(e){var t=i._categoriesModels,n=e.getShallow("category"),r=t[n];return r&&(r.parentModel=e.parentModel,e.parentModel=r),e}));var r=i.getModel("edgeLabel"),o=new c({label:r.option},r.parentModel,t),a=i.getModel("emphasis.edgeLabel"),s=new c({emphasis:{label:a.option}},a.parentModel,t);function u(e){return e=this.parsePath(e),e&&"label"===e[0]?o:e&&"emphasis"===e[0]&&"label"===e[1]?s:this.parentModel}n.wrapMethod("getItemModel",(function(e){return e.customizeGetParent(u),e}))}},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(e,t,n){if("edge"===n){var r=this.getData(),i=this.getDataParams(e,n),o=r.graph.getEdgeByIndex(e),a=r.getName(o.node1.dataIndex),s=r.getName(o.node2.dataIndex),c=[];return null!=a&&c.push(a),null!=s&&c.push(s),c=l(c.join(" > ")),i.value&&(c+=" : "+l(i.value)),c}return m.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var e=o.map(this.option.categories||[],(function(e){return null!=e.value?e:o.extend({value:0},e)})),t=new i(["value"],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray((function(e){return t.getItemModel(e,!0)}))},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e},isAnimationEnabled:function(){return m.superCall(this,"isAnimationEnabled")&&!("force"===this.get("layout")&&this.get("force.layoutAnimation"))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,hoverAnimation:!0,layout:null,focusNodeAdjacency:!1,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{label:{show:!0}}}}),v=m;e.exports=v},"87b1":function(e,t,n){var r=n("cbe5"),i=n("4fac"),o=r.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(e,t){i.buildPath(e,t,!0)}});e.exports=o},"87c3":function(e,t,n){var r=n("6d8b"),i=r.map,o=n("cccd"),a=n("ee1a"),s=a.isDimensionStacked;function c(e){return{seriesType:e,plan:o(),reset:function(e){var t=e.getData(),n=e.coordinateSystem,r=e.pipelineContext,o=r.large;if(n){var a=i(n.dimensions,(function(e){return t.mapDimension(e)})).slice(0,2),c=a.length,u=t.getCalculationInfo("stackResultDimension");return s(t,a[0])&&(a[0]=u),s(t,a[1])&&(a[1]=u),c&&{progress:l}}function l(e,t){for(var r=e.end-e.start,i=o&&new Float32Array(r*c),s=e.start,u=0,l=[],d=[];s<e.end;s++){var h;if(1===c){var f=t.get(a[0],s);h=!isNaN(f)&&n.dataToPoint(f,null,d)}else{f=l[0]=t.get(a[0],s);var p=l[1]=t.get(a[1],s);h=!isNaN(f)&&!isNaN(p)&&n.dataToPoint(l,null,d)}o?(i[u++]=h?h[0]:NaN,i[u++]=h?h[1]:NaN):t.setItemLayout(s,h&&h.slice()||[NaN,NaN])}o&&t.setLayout("symbolPoints",i)}}}}e.exports=c},"887c":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.titleConfig=void 0;var r={show:!0,text:"",offset:[0,-20],style:{fill:"#333",fontSize:17,fontWeight:"bold",textAlign:"center",textBaseline:"bottom"},rLevel:20,animationCurve:"easeOutCubic",animationFrame:50};t.titleConfig=r},"88b3":function(e,t){var n="\0__throttleOriginMethod",r="\0__throttleRate",i="\0__throttleType";function o(e,t,n){var r,i,o,a,s,c=0,u=0,l=null;function d(){u=(new Date).getTime(),l=null,e.apply(o,a||[])}t=t||0;var h=function(){r=(new Date).getTime(),o=this,a=arguments;var e=s||t,h=s||n;s=null,i=r-(h?c:u)-e,clearTimeout(l),h?l=setTimeout(d,e):i>=0?d():l=setTimeout(d,-i),c=r};return h.clear=function(){l&&(clearTimeout(l),l=null)},h.debounceNextCall=function(e){s=e},h}function a(e,t,a,s){var c=e[t];if(c){var u=c[n]||c,l=c[i],d=c[r];if(d!==a||l!==s){if(null==a||!s)return e[t]=u;c=e[t]=o(u,a,"debounce"===s),c[n]=u,c[i]=s,c[r]=a}return c}}function s(e,t){var r=e[t];r&&r[n]&&(e[t]=r[n])}t.throttle=o,t.createOrUpdate=a,t.clear=s},"88f0":function(e,t,n){var r=n("3eba"),i=n("6d8b"),o=r.extendComponentView({type:"marker",init:function(){this.markerGroupMap=i.createHashMap()},render:function(e,t,n){var r=this.markerGroupMap;r.each((function(e){e.__keep=!1}));var i=this.type+"Model";t.eachSeries((function(e){var r=e[i];r&&this.renderSeries(e,r,t,n)}),this),r.each((function(e){!e.__keep&&this.group.remove(e.group)}),this)},renderSeries:function(){}});e.exports=o},8918:function(e,t,n){var r=n("6d8b"),i=n("625e"),o=i.parseClassType,a=0;function s(e){return[e||"",a++,Math.random().toFixed(5)].join("_")}function c(e){var t={};return e.registerSubTypeDefaulter=function(e,n){e=o(e),t[e.main]=n},e.determineSubType=function(n,r){var i=r.type;if(!i){var a=o(n).main;e.hasSubTypes(n)&&t[a]&&(i=t[a](r))}return i},e}function u(e,t){function n(e){var n={},a=[];return r.each(e,(function(s){var c=i(n,s),u=c.originalDeps=t(s),l=o(u,e);c.entryCount=l.length,0===c.entryCount&&a.push(s),r.each(l,(function(e){r.indexOf(c.predecessor,e)<0&&c.predecessor.push(e);var t=i(n,e);r.indexOf(t.successor,e)<0&&t.successor.push(s)}))})),{graph:n,noEntryList:a}}function i(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}function o(e,t){var n=[];return r.each(e,(function(e){r.indexOf(t,e)>=0&&n.push(e)})),n}e.topologicalTravel=function(e,t,i,o){if(e.length){var a=n(t),s=a.graph,c=a.noEntryList,u={};r.each(e,(function(e){u[e]=!0}));while(c.length){var l=c.pop(),d=s[l],h=!!u[l];h&&(i.call(o,l,d.originalDeps.slice()),delete u[l]),r.each(d.successor,h?p:f)}r.each(u,(function(){throw new Error("Circle dependency may exists")}))}function f(e){s[e].entryCount--,0===s[e].entryCount&&c.push(e)}function p(e){u[e]=!0,f(e)}}}t.getUID=s,t.enableSubTypeDefaulter=c,t.enableTopologicalTravel=u},8925:function(e,t,n){var r=n("e330"),i=n("1626"),o=n("c6cd"),a=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(e){return a(e)}),e.exports=o.inspectSource},8971:function(e,t){var n="";"undefined"!==typeof navigator&&(n=navigator.platform||"");var r={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],gradientColor:["#f6efa6","#d88273","#bf444c"],textStyle:{fontFamily:n.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,animation:"auto",animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};e.exports=r},"897a":function(e,t,n){var r=n("22d1"),i=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];function o(e){return r.browser.ie&&r.browser.version>=11?function(){var t,n=this.__clipPaths,r=this.style;if(n)for(var o=0;o<n.length;o++){var a=n[o],s=a&&a.shape,c=a&&a.type;if(s&&("sector"===c&&s.startAngle===s.endAngle||"rect"===c&&(!s.width||!s.height))){for(var u=0;u<i.length;u++)i[u][2]=r[i[u][0]],r[i[u][0]]=i[u][1];t=!0;break}}if(e.apply(this,arguments),t)for(u=0;u<i.length;u++)r[i[u][0]]=i[u][2]}:e}e.exports=o},"89e3":function(e,t,n){var r=n("3842"),i=n("eda2"),o=n("e0d8"),a=n("944e"),s=r.round,c=o.extend({type:"interval",_interval:0,_intervalPrecision:2,setExtent:function(e,t){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(t)||(n[1]=parseFloat(t))},unionExtent:function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]),c.prototype.setExtent.call(this,t[0],t[1])},getInterval:function(){return this._interval},setInterval:function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=a.getIntervalPrecision(e)},getTicks:function(e){var t=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,o=[];if(!t)return o;var a=1e4;n[0]<r[0]&&(e?o.push(s(r[0]-t,i)):o.push(n[0]));var c=r[0];while(c<=r[1]){if(o.push(c),c=s(c+t,i),c===o[o.length-1])break;if(o.length>a)return[]}var u=o.length?o[o.length-1]:r[1];return n[1]>u&&(e?o.push(s(u+t,i)):o.push(n[1])),o},getMinorTicks:function(e){for(var t=this.getTicks(!0),n=[],i=this.getExtent(),o=1;o<t.length;o++){var a=t[o],s=t[o-1],c=0,u=[],l=a-s,d=l/e;while(c<e-1){var h=r.round(s+(c+1)*d);h>i[0]&&h<i[1]&&u.push(h),c++}n.push(u)}return n},getLabel:function(e,t){if(null==e)return"";var n=t&&t.precision;return null==n?n=r.getPrecisionSafe(e)||0:"auto"===n&&(n=this._intervalPrecision),e=s(e,n,!0),i.addCommas(e)},niceTicks:function(e,t,n){e=e||5;var r=this._extent,i=r[1]-r[0];if(isFinite(i)){i<0&&(i=-i,r.reverse());var o=a.intervalScaleNiceTicks(r,e,t,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},niceExtent:function(e){var t=this._extent;if(t[0]===t[1])if(0!==t[0]){var n=t[0];e.fixMax||(t[1]+=n/2),t[0]-=n/2}else t[1]=1;var r=t[1]-t[0];isFinite(r)||(t[0]=0,t[1]=1),this.niceTicks(e.splitNumber,e.minInterval,e.maxInterval);var i=this._interval;e.fixMin||(t[0]=s(Math.floor(t[0]/i)*i)),e.fixMax||(t[1]=s(Math.ceil(t[1]/i)*i))}});c.create=function(){return new c};var u=c;e.exports=u},"8a1d":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeColor=a;var r=n("9d85"),i=n("5557"),o=n("becb");function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,i.deepClone)(r.colorConfig,!0),a=t.color,s=t.series;if(s||(s=[]),a||(a=[]),t.color=a=(0,o.deepMerge)(n,a),s.length){var c=a.length;s.forEach((function(e,t){e.color||(e.color=a[t%c])}));var u=s.filter((function(e){var t=e.type;return"pie"===t}));u.forEach((function(e){return e.data.forEach((function(e,t){return e.color=a[t%c]}))}));var l=s.filter((function(e){var t=e.type;return"gauge"===t}));l.forEach((function(e){return e.data.forEach((function(e,t){return e.color=a[t%c]}))}));var d=s.filter((function(e){var t=e.type,n=e.independentColor;return"bar"===t&&n}));d.forEach((function(e){e.independentColors||(e.independentColors=a)}))}}},"8a59":function(e,t,n){var r=n("74e8");r("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}),!0)},"8aa5":function(e,t,n){"use strict";var r=n("6547").charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},"8aa7":function(e,t,n){var r=n("da84"),i=n("d039"),o=n("1c7e"),a=n("ebb5").NATIVE_ARRAY_BUFFER_VIEWS,s=r.ArrayBuffer,c=r.Int8Array;e.exports=!a||!i((function(){c(1)}))||!i((function(){new c(-1)}))||!o((function(e){new c,new c(null),new c(1.5),new c(e)}),!0)||i((function(){return 1!==new c(new s(2),1,void 0).length}))},"8b09":function(e,t,n){var r=n("74e8");r("Int16",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},"8b7f":function(e,t,n){var r=n("4e08"),i=(r.__DEV__,n("6d8b")),o=i.createHashMap,a=(i.retrieve,i.each);function s(e){this.coordSysName=e,this.coordSysDims=[],this.axisMap=o(),this.categoryAxisMap=o(),this.firstCategoryDimIndex=null}function c(e){var t=e.get("coordinateSystem"),n=new s(t),r=u[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var u={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents("xAxis")[0],o=e.getReferringComponents("yAxis")[0];t.coordSysDims=["x","y"],n.set("x",i),n.set("y",o),l(i)&&(r.set("x",i),t.firstCategoryDimIndex=0),l(o)&&(r.set("y",o),t.firstCategoryDimIndex,t.firstCategoryDimIndex=1)},singleAxis:function(e,t,n,r){var i=e.getReferringComponents("singleAxis")[0];t.coordSysDims=["single"],n.set("single",i),l(i)&&(r.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents("polar")[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),l(o)&&(r.set("radius",o),t.firstCategoryDimIndex=0),l(a)&&(r.set("angle",a),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,r){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,r){var i=e.ecModel,o=i.getComponent("parallel",e.get("parallelIndex")),s=t.coordSysDims=o.dimensions.slice();a(o.parallelAxisIndex,(function(e,o){var a=i.getComponent("parallelAxis",e),c=s[o];n.set(c,a),l(a)&&null==t.firstCategoryDimIndex&&(r.set(c,a),t.firstCategoryDimIndex=o)}))}};function l(e){return"category"===e.get("type")}t.getCoordSysInfoBySeries=c},"8bbc":function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=130)}({0:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var c,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(c=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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=c):i&&(c=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(e,t){return c.call(t),l(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},130:function(e,t,n){"use strict";n.r(t);var r,i,o={name:"ElTag",props:{text:String,closable:Boolean,type:String,hit:Boolean,disableTransitions:Boolean,color:String,size:String,effect:{type:String,default:"light",validator:function(e){return-1!==["dark","light","plain"].indexOf(e)}}},methods:{handleClose:function(e){e.stopPropagation(),this.$emit("close",e)},handleClick:function(e){this.$emit("click",e)}},computed:{tagSize:function(){return this.size||(this.$ELEMENT||{}).size}},render:function(e){var t=this.type,n=this.tagSize,r=this.hit,i=this.effect,o=["el-tag",t?"el-tag--"+t:"",n?"el-tag--"+n:"",i?"el-tag--"+i:"",r&&"is-hit"],a=e("span",{class:o,style:{backgroundColor:this.color},on:{click:this.handleClick}},[this.$slots.default,this.closable&&e("i",{class:"el-tag__close el-icon-close",on:{click:this.handleClose}})]);return this.disableTransitions?a:e("transition",{attrs:{name:"el-zoom-in-center"}},[a])}},a=o,s=n(0),c=Object(s["a"])(a,r,i,!1,null,null,null);c.options.__file="packages/tag/src/tag.vue";var u=c.exports;u.install=function(e){e.component(u.name,u)};t["default"]=u}})},"8c2a":function(e,t,n){var r=n("6d8b"),i=n("e0d8"),o=n("3842"),a=n("89e3"),s=i.prototype,c=a.prototype,u=o.getPrecisionSafe,l=o.round,d=Math.floor,h=Math.ceil,f=Math.pow,p=Math.log,g=i.extend({type:"log",base:10,$constructor:function(){i.apply(this,arguments),this._originalScale=new a},getTicks:function(e){var t=this._originalScale,n=this._extent,i=t.getExtent();return r.map(c.getTicks.call(this,e),(function(e){var r=o.round(f(this.base,e));return r=e===n[0]&&t.__fixMin?m(r,i[0]):r,r=e===n[1]&&t.__fixMax?m(r,i[1]):r,r}),this)},getMinorTicks:c.getMinorTicks,getLabel:c.getLabel,scale:function(e){return e=s.scale.call(this,e),f(this.base,e)},setExtent:function(e,t){var n=this.base;e=p(e)/p(n),t=p(t)/p(n),c.setExtent.call(this,e,t)},getExtent:function(){var e=this.base,t=s.getExtent.call(this);t[0]=f(e,t[0]),t[1]=f(e,t[1]);var n=this._originalScale,r=n.getExtent();return n.__fixMin&&(t[0]=m(t[0],r[0])),n.__fixMax&&(t[1]=m(t[1],r[1])),t},unionExtent:function(e){this._originalScale.unionExtent(e);var t=this.base;e[0]=p(e[0])/p(t),e[1]=p(e[1])/p(t),s.unionExtent.call(this,e)},unionExtentFromData:function(e,t){this.unionExtent(e.getApproximateExtent(t))},niceTicks:function(e){e=e||10;var t=this._extent,n=t[1]-t[0];if(!(n===1/0||n<=0)){var r=o.quantity(n),i=e/n*r;i<=.5&&(r*=10);while(!isNaN(r)&&Math.abs(r)<1&&Math.abs(r)>0)r*=10;var a=[o.round(h(t[0]/r)*r),o.round(d(t[1]/r)*r)];this._interval=r,this._niceExtent=a}},niceExtent:function(e){c.niceExtent.call(this,e);var t=this._originalScale;t.__fixMin=e.fixMin,t.__fixMax=e.fixMax}});function m(e,t){return l(e,u(t))}r.each(["contain","normalize"],(function(e){g.prototype[e]=function(t){return t=p(t)/p(this.base),s[e].call(this,t)}})),g.create=function(){return new g};var v=g;e.exports=v},"8c4f":function(e,t,n){"use strict";
/*!
  * vue-router v3.5.3
  * (c) 2021 Evan You
  * @license MIT
  */function r(e,t){for(var n in t)e[n]=t[n];return e}var i=/[!'()*]/g,o=function(e){return"%"+e.charCodeAt(0).toString(16)},a=/%2C/g,s=function(e){return encodeURIComponent(e).replace(i,o).replace(a,",")};function c(e){try{return decodeURIComponent(e)}catch(t){0}return e}function u(e,t,n){void 0===t&&(t={});var r,i=n||d;try{r=i(e||"")}catch(s){r={}}for(var o in t){var a=t[o];r[o]=Array.isArray(a)?a.map(l):l(a)}return r}var l=function(e){return null==e||"object"===typeof e?e:String(e)};function d(e){var t={};return e=e.trim().replace(/^(\?|#|&)/,""),e?(e.split("&").forEach((function(e){var n=e.replace(/\+/g," ").split("="),r=c(n.shift()),i=n.length>0?c(n.join("=")):null;void 0===t[r]?t[r]=i:Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]})),t):t}function h(e){var t=e?Object.keys(e).map((function(t){var n=e[t];if(void 0===n)return"";if(null===n)return s(t);if(Array.isArray(n)){var r=[];return n.forEach((function(e){void 0!==e&&(null===e?r.push(s(t)):r.push(s(t)+"="+s(e)))})),r.join("&")}return s(t)+"="+s(n)})).filter((function(e){return e.length>0})).join("&"):null;return t?"?"+t:""}var f=/\/?$/;function p(e,t,n,r){var i=r&&r.options.stringifyQuery,o=t.query||{};try{o=g(o)}catch(s){}var a={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:o,params:t.params||{},fullPath:y(t,i),matched:e?v(e):[]};return n&&(a.redirectedFrom=y(n,i)),Object.freeze(a)}function g(e){if(Array.isArray(e))return e.map(g);if(e&&"object"===typeof e){var t={};for(var n in e)t[n]=g(e[n]);return t}return e}var m=p(null,{path:"/"});function v(e){var t=[];while(e)t.unshift(e),e=e.parent;return t}function y(e,t){var n=e.path,r=e.query;void 0===r&&(r={});var i=e.hash;void 0===i&&(i="");var o=t||h;return(n||"/")+o(r)+i}function _(e,t,n){return t===m?e===t:!!t&&(e.path&&t.path?e.path.replace(f,"")===t.path.replace(f,"")&&(n||e.hash===t.hash&&b(e.query,t.query)):!(!e.name||!t.name)&&(e.name===t.name&&(n||e.hash===t.hash&&b(e.query,t.query)&&b(e.params,t.params))))}function b(e,t){if(void 0===e&&(e={}),void 0===t&&(t={}),!e||!t)return e===t;var n=Object.keys(e).sort(),r=Object.keys(t).sort();return n.length===r.length&&n.every((function(n,i){var o=e[n],a=r[i];if(a!==n)return!1;var s=t[n];return null==o||null==s?o===s:"object"===typeof o&&"object"===typeof s?b(o,s):String(o)===String(s)}))}function S(e,t){return 0===e.path.replace(f,"/").indexOf(t.path.replace(f,"/"))&&(!t.hash||e.hash===t.hash)&&x(e.query,t.query)}function x(e,t){for(var n in t)if(!(n in e))return!1;return!0}function w(e){for(var t=0;t<e.matched.length;t++){var n=e.matched[t];for(var r in n.instances){var i=n.instances[r],o=n.enteredCbs[r];if(i&&o){delete n.enteredCbs[r];for(var a=0;a<o.length;a++)i._isBeingDestroyed||o[a](i)}}}}var I={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(e,t){var n=t.props,i=t.children,o=t.parent,a=t.data;a.routerView=!0;var s=o.$createElement,c=n.name,u=o.$route,l=o._routerViewCache||(o._routerViewCache={}),d=0,h=!1;while(o&&o._routerRoot!==o){var f=o.$vnode?o.$vnode.data:{};f.routerView&&d++,f.keepAlive&&o._directInactive&&o._inactive&&(h=!0),o=o.$parent}if(a.routerViewDepth=d,h){var p=l[c],g=p&&p.component;return g?(p.configProps&&C(g,a,p.route,p.configProps),s(g,a,i)):s()}var m=u.matched[d],v=m&&m.components[c];if(!m||!v)return l[c]=null,s();l[c]={component:v},a.registerRouteInstance=function(e,t){var n=m.instances[c];(t&&n!==e||!t&&n===e)&&(m.instances[c]=t)},(a.hook||(a.hook={})).prepatch=function(e,t){m.instances[c]=t.componentInstance},a.hook.init=function(e){e.data.keepAlive&&e.componentInstance&&e.componentInstance!==m.instances[c]&&(m.instances[c]=e.componentInstance),w(u)};var y=m.props&&m.props[c];return y&&(r(l[c],{route:u,configProps:y}),C(v,a,u,y)),s(v,a,i)}};function C(e,t,n,i){var o=t.props=M(n,i);if(o){o=t.props=r({},o);var a=t.attrs=t.attrs||{};for(var s in o)e.props&&s in e.props||(a[s]=o[s],delete o[s])}}function M(e,t){switch(typeof t){case"undefined":return;case"object":return t;case"function":return t(e);case"boolean":return t?e.params:void 0;default:0}}function T(e,t,n){var r=e.charAt(0);if("/"===r)return e;if("?"===r||"#"===r)return t+e;var i=t.split("/");n&&i[i.length-1]||i.pop();for(var o=e.replace(/^\//,"").split("/"),a=0;a<o.length;a++){var s=o[a];".."===s?i.pop():"."!==s&&i.push(s)}return""!==i[0]&&i.unshift(""),i.join("/")}function k(e){var t="",n="",r=e.indexOf("#");r>=0&&(t=e.slice(r),e=e.slice(0,r));var i=e.indexOf("?");return i>=0&&(n=e.slice(i+1),e=e.slice(0,i)),{path:e,query:n,hash:t}}function E(e){return e.replace(/\/+/g,"/")}var A=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)},D=J,O=U,R=F,L=j,P=Y,N=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function U(e,t){var n,r=[],i=0,o=0,a="",s=t&&t.delimiter||"/";while(null!=(n=N.exec(e))){var c=n[0],u=n[1],l=n.index;if(a+=e.slice(o,l),o=l+c.length,u)a+=u[1];else{var d=e[o],h=n[2],f=n[3],p=n[4],g=n[5],m=n[6],v=n[7];a&&(r.push(a),a="");var y=null!=h&&null!=d&&d!==h,_="+"===m||"*"===m,b="?"===m||"*"===m,S=n[2]||s,x=p||g;r.push({name:f||i++,prefix:h||"",delimiter:S,optional:b,repeat:_,partial:y,asterisk:!!v,pattern:x?z(x):v?".*":"[^"+B(S)+"]+?"})}}return o<e.length&&(a+=e.substr(o)),a&&r.push(a),r}function F(e,t){return j(U(e,t),t)}function G(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function V(e){return encodeURI(e).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function j(e,t){for(var n=new Array(e.length),r=0;r<e.length;r++)"object"===typeof e[r]&&(n[r]=new RegExp("^(?:"+e[r].pattern+")$",W(t)));return function(t,r){for(var i="",o=t||{},a=r||{},s=a.pretty?G:encodeURIComponent,c=0;c<e.length;c++){var u=e[c];if("string"!==typeof u){var l,d=o[u.name];if(null==d){if(u.optional){u.partial&&(i+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(A(d)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(d)+"`");if(0===d.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var h=0;h<d.length;h++){if(l=s(d[h]),!n[c].test(l))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(l)+"`");i+=(0===h?u.prefix:u.delimiter)+l}}else{if(l=u.asterisk?V(d):s(d),!n[c].test(l))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+l+'"');i+=u.prefix+l}}else i+=u}return i}}function B(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function z(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function H(e,t){return e.keys=t,e}function W(e){return e&&e.sensitive?"":"i"}function q(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return H(e,t)}function $(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(J(e[i],t,n).source);var o=new RegExp("(?:"+r.join("|")+")",W(n));return H(o,t)}function K(e,t,n){return Y(U(e,n),t,n)}function Y(e,t,n){A(t)||(n=t||n,t=[]),n=n||{};for(var r=n.strict,i=!1!==n.end,o="",a=0;a<e.length;a++){var s=e[a];if("string"===typeof s)o+=B(s);else{var c=B(s.prefix),u="(?:"+s.pattern+")";t.push(s),s.repeat&&(u+="(?:"+c+u+")*"),u=s.optional?s.partial?c+"("+u+")?":"(?:"+c+"("+u+"))?":c+"("+u+")",o+=u}}var l=B(n.delimiter||"/"),d=o.slice(-l.length)===l;return r||(o=(d?o.slice(0,-l.length):o)+"(?:"+l+"(?=$))?"),o+=i?"$":r&&d?"":"(?="+l+"|$)",H(new RegExp("^"+o,W(n)),t)}function J(e,t,n){return A(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?q(e,t):A(e)?$(e,t,n):K(e,t,n)}D.parse=O,D.compile=R,D.tokensToFunction=L,D.tokensToRegExp=P;var X=Object.create(null);function Z(e,t,n){t=t||{};try{var r=X[e]||(X[e]=D.compile(e));return"string"===typeof t.pathMatch&&(t[0]=t.pathMatch),r(t,{pretty:!0})}catch(i){return""}finally{delete t[0]}}function Q(e,t,n,i){var o="string"===typeof e?{path:e}:e;if(o._normalized)return o;if(o.name){o=r({},e);var a=o.params;return a&&"object"===typeof a&&(o.params=r({},a)),o}if(!o.path&&o.params&&t){o=r({},o),o._normalized=!0;var s=r(r({},t.params),o.params);if(t.name)o.name=t.name,o.params=s;else if(t.matched.length){var c=t.matched[t.matched.length-1].path;o.path=Z(c,s,"path "+t.path)}else 0;return o}var l=k(o.path||""),d=t&&t.path||"/",h=l.path?T(l.path,d,n||o.append):d,f=u(l.query,o.query,i&&i.options.parseQuery),p=o.hash||l.hash;return p&&"#"!==p.charAt(0)&&(p="#"+p),{_normalized:!0,path:h,query:f,hash:p}}var ee,te=[String,Object],ne=[String,Array],re=function(){},ie={name:"RouterLink",props:{to:{type:te,required:!0},tag:{type:String,default:"a"},custom:Boolean,exact:Boolean,exactPath:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:ne,default:"click"}},render:function(e){var t=this,n=this.$router,i=this.$route,o=n.resolve(this.to,i,this.append),a=o.location,s=o.route,c=o.href,u={},l=n.options.linkActiveClass,d=n.options.linkExactActiveClass,h=null==l?"router-link-active":l,f=null==d?"router-link-exact-active":d,g=null==this.activeClass?h:this.activeClass,m=null==this.exactActiveClass?f:this.exactActiveClass,v=s.redirectedFrom?p(null,Q(s.redirectedFrom),null,n):s;u[m]=_(i,v,this.exactPath),u[g]=this.exact||this.exactPath?u[m]:S(i,v);var y=u[m]?this.ariaCurrentValue:null,b=function(e){oe(e)&&(t.replace?n.replace(a,re):n.push(a,re))},x={click:oe};Array.isArray(this.event)?this.event.forEach((function(e){x[e]=b})):x[this.event]=b;var w={class:u},I=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:c,route:s,navigate:b,isActive:u[g],isExactActive:u[m]});if(I){if(1===I.length)return I[0];if(I.length>1||!I.length)return 0===I.length?e():e("span",{},I)}if("a"===this.tag)w.on=x,w.attrs={href:c,"aria-current":y};else{var C=ae(this.$slots.default);if(C){C.isStatic=!1;var M=C.data=r({},C.data);for(var T in M.on=M.on||{},M.on){var k=M.on[T];T in x&&(M.on[T]=Array.isArray(k)?k:[k])}for(var E in x)E in M.on?M.on[E].push(x[E]):M.on[E]=b;var A=C.data.attrs=r({},C.data.attrs);A.href=c,A["aria-current"]=y}else w.on=x}return e(this.tag,w,this.$slots.default)}};function oe(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(void 0===e.button||0===e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){var t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function ae(e){if(e)for(var t,n=0;n<e.length;n++){if(t=e[n],"a"===t.tag)return t;if(t.children&&(t=ae(t.children)))return t}}function se(e){if(!se.installed||ee!==e){se.installed=!0,ee=e;var t=function(e){return void 0!==e},n=function(e,n){var r=e.$options._parentVnode;t(r)&&t(r=r.data)&&t(r=r.registerRouteInstance)&&r(e,n)};e.mixin({beforeCreate:function(){t(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,n(this,this)},destroyed:function(){n(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("RouterView",I),e.component("RouterLink",ie);var r=e.config.optionMergeStrategies;r.beforeRouteEnter=r.beforeRouteLeave=r.beforeRouteUpdate=r.created}}var ce="undefined"!==typeof window;function ue(e,t,n,r,i){var o=t||[],a=n||Object.create(null),s=r||Object.create(null);e.forEach((function(e){le(o,a,s,e,i)}));for(var c=0,u=o.length;c<u;c++)"*"===o[c]&&(o.push(o.splice(c,1)[0]),u--,c--);return{pathList:o,pathMap:a,nameMap:s}}function le(e,t,n,r,i,o){var a=r.path,s=r.name;var c=r.pathToRegexpOptions||{},u=he(a,i,c.strict);"boolean"===typeof r.caseSensitive&&(c.sensitive=r.caseSensitive);var l={path:u,regex:de(u,c),components:r.components||{default:r.component},alias:r.alias?"string"===typeof r.alias?[r.alias]:r.alias:[],instances:{},enteredCbs:{},name:s,parent:i,matchAs:o,redirect:r.redirect,beforeEnter:r.beforeEnter,meta:r.meta||{},props:null==r.props?{}:r.components?r.props:{default:r.props}};if(r.children&&r.children.forEach((function(r){var i=o?E(o+"/"+r.path):void 0;le(e,t,n,r,l,i)})),t[l.path]||(e.push(l.path),t[l.path]=l),void 0!==r.alias)for(var d=Array.isArray(r.alias)?r.alias:[r.alias],h=0;h<d.length;++h){var f=d[h];0;var p={path:f,children:r.children};le(e,t,n,p,i,l.path||"/")}s&&(n[s]||(n[s]=l))}function de(e,t){var n=D(e,[],t);return n}function he(e,t,n){return n||(e=e.replace(/\/$/,"")),"/"===e[0]||null==t?e:E(t.path+"/"+e)}function fe(e,t){var n=ue(e),r=n.pathList,i=n.pathMap,o=n.nameMap;function a(e){ue(e,r,i,o)}function s(e,t){var n="object"!==typeof e?o[e]:void 0;ue([t||e],r,i,o,n),n&&n.alias.length&&ue(n.alias.map((function(e){return{path:e,children:[t]}})),r,i,o,n)}function c(){return r.map((function(e){return i[e]}))}function u(e,n,a){var s=Q(e,n,!1,t),c=s.name;if(c){var u=o[c];if(!u)return h(null,s);var l=u.regex.keys.filter((function(e){return!e.optional})).map((function(e){return e.name}));if("object"!==typeof s.params&&(s.params={}),n&&"object"===typeof n.params)for(var d in n.params)!(d in s.params)&&l.indexOf(d)>-1&&(s.params[d]=n.params[d]);return s.path=Z(u.path,s.params,'named route "'+c+'"'),h(u,s,a)}if(s.path){s.params={};for(var f=0;f<r.length;f++){var p=r[f],g=i[p];if(pe(g.regex,s.path,s.params))return h(g,s,a)}}return h(null,s)}function l(e,n){var r=e.redirect,i="function"===typeof r?r(p(e,n,null,t)):r;if("string"===typeof i&&(i={path:i}),!i||"object"!==typeof i)return h(null,n);var a=i,s=a.name,c=a.path,l=n.query,d=n.hash,f=n.params;if(l=a.hasOwnProperty("query")?a.query:l,d=a.hasOwnProperty("hash")?a.hash:d,f=a.hasOwnProperty("params")?a.params:f,s){o[s];return u({_normalized:!0,name:s,query:l,hash:d,params:f},void 0,n)}if(c){var g=ge(c,e),m=Z(g,f,'redirect route with path "'+g+'"');return u({_normalized:!0,path:m,query:l,hash:d},void 0,n)}return h(null,n)}function d(e,t,n){var r=Z(n,t.params,'aliased route with path "'+n+'"'),i=u({_normalized:!0,path:r});if(i){var o=i.matched,a=o[o.length-1];return t.params=i.params,h(a,t)}return h(null,t)}function h(e,n,r){return e&&e.redirect?l(e,r||n):e&&e.matchAs?d(e,n,e.matchAs):p(e,n,r,t)}return{match:u,addRoute:s,getRoutes:c,addRoutes:a}}function pe(e,t,n){var r=t.match(e);if(!r)return!1;if(!n)return!0;for(var i=1,o=r.length;i<o;++i){var a=e.keys[i-1];a&&(n[a.name||"pathMatch"]="string"===typeof r[i]?c(r[i]):r[i])}return!0}function ge(e,t){return T(e,t.parent?t.parent.path:"/",!0)}var me=ce&&window.performance&&window.performance.now?window.performance:Date;function ve(){return me.now().toFixed(3)}var ye=ve();function _e(){return ye}function be(e){return ye=e}var Se=Object.create(null);function xe(){"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual");var e=window.location.protocol+"//"+window.location.host,t=window.location.href.replace(e,""),n=r({},window.history.state);return n.key=_e(),window.history.replaceState(n,"",t),window.addEventListener("popstate",Ce),function(){window.removeEventListener("popstate",Ce)}}function we(e,t,n,r){if(e.app){var i=e.options.scrollBehavior;i&&e.app.$nextTick((function(){var o=Me(),a=i.call(e,t,n,r?o:null);a&&("function"===typeof a.then?a.then((function(e){Re(e,o)})).catch((function(e){0})):Re(a,o))}))}}function Ie(){var e=_e();e&&(Se[e]={x:window.pageXOffset,y:window.pageYOffset})}function Ce(e){Ie(),e.state&&e.state.key&&be(e.state.key)}function Me(){var e=_e();if(e)return Se[e]}function Te(e,t){var n=document.documentElement,r=n.getBoundingClientRect(),i=e.getBoundingClientRect();return{x:i.left-r.left-t.x,y:i.top-r.top-t.y}}function ke(e){return De(e.x)||De(e.y)}function Ee(e){return{x:De(e.x)?e.x:window.pageXOffset,y:De(e.y)?e.y:window.pageYOffset}}function Ae(e){return{x:De(e.x)?e.x:0,y:De(e.y)?e.y:0}}function De(e){return"number"===typeof e}var Oe=/^#\d/;function Re(e,t){var n="object"===typeof e;if(n&&"string"===typeof e.selector){var r=Oe.test(e.selector)?document.getElementById(e.selector.slice(1)):document.querySelector(e.selector);if(r){var i=e.offset&&"object"===typeof e.offset?e.offset:{};i=Ae(i),t=Te(r,i)}else ke(e)&&(t=Ee(e))}else n&&ke(e)&&(t=Ee(e));t&&("scrollBehavior"in document.documentElement.style?window.scrollTo({left:t.x,top:t.y,behavior:e.behavior}):window.scrollTo(t.x,t.y))}var Le=ce&&function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"function"===typeof window.history.pushState)}();function Pe(e,t){Ie();var n=window.history;try{if(t){var i=r({},n.state);i.key=_e(),n.replaceState(i,"",e)}else n.pushState({key:be(ve())},"",e)}catch(o){window.location[t?"replace":"assign"](e)}}function Ne(e){Pe(e,!0)}function Ue(e,t,n){var r=function(i){i>=e.length?n():e[i]?t(e[i],(function(){r(i+1)})):r(i+1)};r(0)}var Fe={redirected:2,aborted:4,cancelled:8,duplicated:16};function Ge(e,t){return ze(e,t,Fe.redirected,'Redirected when going from "'+e.fullPath+'" to "'+We(t)+'" via a navigation guard.')}function Ve(e,t){var n=ze(e,t,Fe.duplicated,'Avoided redundant navigation to current location: "'+e.fullPath+'".');return n.name="NavigationDuplicated",n}function je(e,t){return ze(e,t,Fe.cancelled,'Navigation cancelled from "'+e.fullPath+'" to "'+t.fullPath+'" with a new navigation.')}function Be(e,t){return ze(e,t,Fe.aborted,'Navigation aborted from "'+e.fullPath+'" to "'+t.fullPath+'" via a navigation guard.')}function ze(e,t,n,r){var i=new Error(r);return i._isRouter=!0,i.from=e,i.to=t,i.type=n,i}var He=["params","query","hash"];function We(e){if("string"===typeof e)return e;if("path"in e)return e.path;var t={};return He.forEach((function(n){n in e&&(t[n]=e[n])})),JSON.stringify(t,null,2)}function qe(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function $e(e,t){return qe(e)&&e._isRouter&&(null==t||e.type===t)}function Ke(e){return function(t,n,r){var i=!1,o=0,a=null;Ye(e,(function(e,t,n,s){if("function"===typeof e&&void 0===e.cid){i=!0,o++;var c,u=Qe((function(t){Ze(t)&&(t=t.default),e.resolved="function"===typeof t?t:ee.extend(t),n.components[s]=t,o--,o<=0&&r()})),l=Qe((function(e){var t="Failed to resolve async component "+s+": "+e;a||(a=qe(e)?e:new Error(t),r(a))}));try{c=e(u,l)}catch(h){l(h)}if(c)if("function"===typeof c.then)c.then(u,l);else{var d=c.component;d&&"function"===typeof d.then&&d.then(u,l)}}})),i||r()}}function Ye(e,t){return Je(e.map((function(e){return Object.keys(e.components).map((function(n){return t(e.components[n],e.instances[n],e,n)}))})))}function Je(e){return Array.prototype.concat.apply([],e)}var Xe="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag;function Ze(e){return e.__esModule||Xe&&"Module"===e[Symbol.toStringTag]}function Qe(e){var t=!1;return function(){var n=[],r=arguments.length;while(r--)n[r]=arguments[r];if(!t)return t=!0,e.apply(this,n)}}var et=function(e,t){this.router=e,this.base=tt(t),this.current=m,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function tt(e){if(!e)if(ce){var t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^https?:\/\/[^\/]+/,"")}else e="/";return"/"!==e.charAt(0)&&(e="/"+e),e.replace(/\/$/,"")}function nt(e,t){var n,r=Math.max(e.length,t.length);for(n=0;n<r;n++)if(e[n]!==t[n])break;return{updated:t.slice(0,n),activated:t.slice(n),deactivated:e.slice(n)}}function rt(e,t,n,r){var i=Ye(e,(function(e,r,i,o){var a=it(e,t);if(a)return Array.isArray(a)?a.map((function(e){return n(e,r,i,o)})):n(a,r,i,o)}));return Je(r?i.reverse():i)}function it(e,t){return"function"!==typeof e&&(e=ee.extend(e)),e.options[t]}function ot(e){return rt(e,"beforeRouteLeave",st,!0)}function at(e){return rt(e,"beforeRouteUpdate",st)}function st(e,t){if(t)return function(){return e.apply(t,arguments)}}function ct(e){return rt(e,"beforeRouteEnter",(function(e,t,n,r){return ut(e,n,r)}))}function ut(e,t,n){return function(r,i,o){return e(r,i,(function(e){"function"===typeof e&&(t.enteredCbs[n]||(t.enteredCbs[n]=[]),t.enteredCbs[n].push(e)),o(e)}))}}et.prototype.listen=function(e){this.cb=e},et.prototype.onReady=function(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))},et.prototype.onError=function(e){this.errorCbs.push(e)},et.prototype.transitionTo=function(e,t,n){var r,i=this;try{r=this.router.match(e,this.current)}catch(a){throw this.errorCbs.forEach((function(e){e(a)})),a}var o=this.current;this.confirmTransition(r,(function(){i.updateRoute(r),t&&t(r),i.ensureURL(),i.router.afterHooks.forEach((function(e){e&&e(r,o)})),i.ready||(i.ready=!0,i.readyCbs.forEach((function(e){e(r)})))}),(function(e){n&&n(e),e&&!i.ready&&($e(e,Fe.redirected)&&o===m||(i.ready=!0,i.readyErrorCbs.forEach((function(t){t(e)}))))}))},et.prototype.confirmTransition=function(e,t,n){var r=this,i=this.current;this.pending=e;var o=function(e){!$e(e)&&qe(e)&&(r.errorCbs.length?r.errorCbs.forEach((function(t){t(e)})):console.error(e)),n&&n(e)},a=e.matched.length-1,s=i.matched.length-1;if(_(e,i)&&a===s&&e.matched[a]===i.matched[s])return this.ensureURL(),e.hash&&we(this.router,i,e,!1),o(Ve(i,e));var c=nt(this.current.matched,e.matched),u=c.updated,l=c.deactivated,d=c.activated,h=[].concat(ot(l),this.router.beforeHooks,at(u),d.map((function(e){return e.beforeEnter})),Ke(d)),f=function(t,n){if(r.pending!==e)return o(je(i,e));try{t(e,i,(function(t){!1===t?(r.ensureURL(!0),o(Be(i,e))):qe(t)?(r.ensureURL(!0),o(t)):"string"===typeof t||"object"===typeof t&&("string"===typeof t.path||"string"===typeof t.name)?(o(Ge(i,e)),"object"===typeof t&&t.replace?r.replace(t):r.push(t)):n(t)}))}catch(a){o(a)}};Ue(h,f,(function(){var n=ct(d),a=n.concat(r.router.resolveHooks);Ue(a,f,(function(){if(r.pending!==e)return o(je(i,e));r.pending=null,t(e),r.router.app&&r.router.app.$nextTick((function(){w(e)}))}))}))},et.prototype.updateRoute=function(e){this.current=e,this.cb&&this.cb(e)},et.prototype.setupListeners=function(){},et.prototype.teardown=function(){this.listeners.forEach((function(e){e()})),this.listeners=[],this.current=m,this.pending=null};var lt=function(e){function t(t,n){e.call(this,t,n),this._startLocation=dt(this.base)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var e=this;if(!(this.listeners.length>0)){var t=this.router,n=t.options.scrollBehavior,r=Le&&n;r&&this.listeners.push(xe());var i=function(){var n=e.current,i=dt(e.base);e.current===m&&i===e._startLocation||e.transitionTo(i,(function(e){r&&we(t,e,n,!0)}))};window.addEventListener("popstate",i),this.listeners.push((function(){window.removeEventListener("popstate",i)}))}},t.prototype.go=function(e){window.history.go(e)},t.prototype.push=function(e,t,n){var r=this,i=this,o=i.current;this.transitionTo(e,(function(e){Pe(E(r.base+e.fullPath)),we(r.router,e,o,!1),t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var r=this,i=this,o=i.current;this.transitionTo(e,(function(e){Ne(E(r.base+e.fullPath)),we(r.router,e,o,!1),t&&t(e)}),n)},t.prototype.ensureURL=function(e){if(dt(this.base)!==this.current.fullPath){var t=E(this.base+this.current.fullPath);e?Pe(t):Ne(t)}},t.prototype.getCurrentLocation=function(){return dt(this.base)},t}(et);function dt(e){var t=window.location.pathname,n=t.toLowerCase(),r=e.toLowerCase();return!e||n!==r&&0!==n.indexOf(E(r+"/"))||(t=t.slice(e.length)),(t||"/")+window.location.search+window.location.hash}var ht=function(e){function t(t,n,r){e.call(this,t,n),r&&ft(this.base)||pt()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var e=this;if(!(this.listeners.length>0)){var t=this.router,n=t.options.scrollBehavior,r=Le&&n;r&&this.listeners.push(xe());var i=function(){var t=e.current;pt()&&e.transitionTo(gt(),(function(n){r&&we(e.router,n,t,!0),Le||yt(n.fullPath)}))},o=Le?"popstate":"hashchange";window.addEventListener(o,i),this.listeners.push((function(){window.removeEventListener(o,i)}))}},t.prototype.push=function(e,t,n){var r=this,i=this,o=i.current;this.transitionTo(e,(function(e){vt(e.fullPath),we(r.router,e,o,!1),t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var r=this,i=this,o=i.current;this.transitionTo(e,(function(e){yt(e.fullPath),we(r.router,e,o,!1),t&&t(e)}),n)},t.prototype.go=function(e){window.history.go(e)},t.prototype.ensureURL=function(e){var t=this.current.fullPath;gt()!==t&&(e?vt(t):yt(t))},t.prototype.getCurrentLocation=function(){return gt()},t}(et);function ft(e){var t=dt(e);if(!/^\/#/.test(t))return window.location.replace(E(e+"/#"+t)),!0}function pt(){var e=gt();return"/"===e.charAt(0)||(yt("/"+e),!1)}function gt(){var e=window.location.href,t=e.indexOf("#");return t<0?"":(e=e.slice(t+1),e)}function mt(e){var t=window.location.href,n=t.indexOf("#"),r=n>=0?t.slice(0,n):t;return r+"#"+e}function vt(e){Le?Pe(mt(e)):window.location.hash=e}function yt(e){Le?Ne(mt(e)):window.location.replace(mt(e))}var _t=function(e){function t(t,n){e.call(this,t,n),this.stack=[],this.index=-1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.push=function(e,t,n){var r=this;this.transitionTo(e,(function(e){r.stack=r.stack.slice(0,r.index+1).concat(e),r.index++,t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var r=this;this.transitionTo(e,(function(e){r.stack=r.stack.slice(0,r.index).concat(e),t&&t(e)}),n)},t.prototype.go=function(e){var t=this,n=this.index+e;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,(function(){var e=t.current;t.index=n,t.updateRoute(r),t.router.afterHooks.forEach((function(t){t&&t(r,e)}))}),(function(e){$e(e,Fe.duplicated)&&(t.index=n)}))}},t.prototype.getCurrentLocation=function(){var e=this.stack[this.stack.length-1];return e?e.fullPath:"/"},t.prototype.ensureURL=function(){},t}(et),bt=function(e){void 0===e&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=fe(e.routes||[],this);var t=e.mode||"hash";switch(this.fallback="history"===t&&!Le&&!1!==e.fallback,this.fallback&&(t="hash"),ce||(t="abstract"),this.mode=t,t){case"history":this.history=new lt(this,e.base);break;case"hash":this.history=new ht(this,e.base,this.fallback);break;case"abstract":this.history=new _t(this,e.base);break;default:0}},St={currentRoute:{configurable:!0}};function xt(e,t){return e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function wt(e,t,n){var r="hash"===n?"#"+t:t;return e?E(e+"/"+r):r}bt.prototype.match=function(e,t,n){return this.matcher.match(e,t,n)},St.currentRoute.get=function(){return this.history&&this.history.current},bt.prototype.init=function(e){var t=this;if(this.apps.push(e),e.$once("hook:destroyed",(function(){var n=t.apps.indexOf(e);n>-1&&t.apps.splice(n,1),t.app===e&&(t.app=t.apps[0]||null),t.app||t.history.teardown()})),!this.app){this.app=e;var n=this.history;if(n instanceof lt||n instanceof ht){var r=function(e){var r=n.current,i=t.options.scrollBehavior,o=Le&&i;o&&"fullPath"in e&&we(t,e,r,!1)},i=function(e){n.setupListeners(),r(e)};n.transitionTo(n.getCurrentLocation(),i,i)}n.listen((function(e){t.apps.forEach((function(t){t._route=e}))}))}},bt.prototype.beforeEach=function(e){return xt(this.beforeHooks,e)},bt.prototype.beforeResolve=function(e){return xt(this.resolveHooks,e)},bt.prototype.afterEach=function(e){return xt(this.afterHooks,e)},bt.prototype.onReady=function(e,t){this.history.onReady(e,t)},bt.prototype.onError=function(e){this.history.onError(e)},bt.prototype.push=function(e,t,n){var r=this;if(!t&&!n&&"undefined"!==typeof Promise)return new Promise((function(t,n){r.history.push(e,t,n)}));this.history.push(e,t,n)},bt.prototype.replace=function(e,t,n){var r=this;if(!t&&!n&&"undefined"!==typeof Promise)return new Promise((function(t,n){r.history.replace(e,t,n)}));this.history.replace(e,t,n)},bt.prototype.go=function(e){this.history.go(e)},bt.prototype.back=function(){this.go(-1)},bt.prototype.forward=function(){this.go(1)},bt.prototype.getMatchedComponents=function(e){var t=e?e.matched?e:this.resolve(e).route:this.currentRoute;return t?[].concat.apply([],t.matched.map((function(e){return Object.keys(e.components).map((function(t){return e.components[t]}))}))):[]},bt.prototype.resolve=function(e,t,n){t=t||this.history.current;var r=Q(e,t,n,this),i=this.match(r,t),o=i.redirectedFrom||i.fullPath,a=this.history.base,s=wt(a,o,this.mode);return{location:r,route:i,href:s,normalizedTo:r,resolved:i}},bt.prototype.getRoutes=function(){return this.matcher.getRoutes()},bt.prototype.addRoute=function(e,t){this.matcher.addRoute(e,t),this.history.current!==m&&this.history.transitionTo(this.history.getCurrentLocation())},bt.prototype.addRoutes=function(e){this.matcher.addRoutes(e),this.history.current!==m&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(bt.prototype,St),bt.install=se,bt.version="3.5.3",bt.isNavigationFailure=$e,bt.NavigationFailureType=Fe,bt.START_LOCATION=m,ce&&window.Vue&&window.Vue.use(bt),t["a"]=bt},"8d32":function(e,t,n){var r=n("cbe5"),i=r.extend({type:"arc",shape:{cx:0,cy:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},style:{stroke:"#000",fill:null},buildPath:function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r,0),o=t.startAngle,a=t.endAngle,s=t.clockwise,c=Math.cos(o),u=Math.sin(o);e.moveTo(c*i+n,u*i+r),e.arc(n,r,i,o,a,!s)}});e.exports=i},"8deb":function(e,t,n){var r=n("3eba");n("5522"),n("a016"),n("1466");var i=n("98e7"),o=n("7f96"),a=n("870e"),s=n("d3f4"),c=n("7891");r.registerVisual(i("radar")),r.registerVisual(o("radar","circle")),r.registerLayout(a),r.registerProcessor(s("radar")),r.registerPreprocessor(c)},"8df4":function(e,t,n){"use strict";var r=n("7a77");function i(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},i.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},i.source=function(){var e,t=new i((function(t){e=t}));return{token:t,cancel:e}},e.exports=i},"8e43":function(e,t,n){var r=n("6d8b"),i=r.createHashMap,o=r.isObject,a=r.map;function s(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this._map}s.createByAxisModel=function(e){var t=e.option,n=t.data,r=n&&a(n,l);return new s({categories:r,needCollect:!r,deduplication:!1!==t.dedplication})};var c=s.prototype;function u(e){return e._map||(e._map=i(e.categories))}function l(e){return o(e)&&null!=e.value?e.value:e+""}c.getOrdinal=function(e){return u(this).get(e)},c.parseAndCollect=function(e){var t,n=this._needCollect;if("string"!==typeof e&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var r=u(this);return t=r.get(e),null==t&&(n?(t=this.categories.length,this.categories[t]=e,r.set(e,t)):t=NaN),t};var d=s;e.exports=d},"8e77":function(e,t,n){var r=n("6d8b"),i=n("41ef"),o=n("6179"),a=n("3842"),s=n("2306"),c=n("923d"),u=n("88f0"),l=function(e,t,n,i){var o=c.dataTransform(e,i[0]),a=c.dataTransform(e,i[1]),s=r.retrieve,u=o.coord,l=a.coord;u[0]=s(u[0],-1/0),u[1]=s(u[1],-1/0),l[0]=s(l[0],1/0),l[1]=s(l[1],1/0);var d=r.mergeAll([{},o,a]);return d.coord=[o.coord,a.coord],d.x0=o.x,d.y0=o.y,d.x1=a.x,d.y1=a.y,d};function d(e){return!isNaN(e)&&!isFinite(e)}function h(e,t,n,r){var i=1-e;return d(t[i])&&d(n[i])}function f(e,t){var n=t.coord[0],r=t.coord[1];return!("cartesian2d"!==e.type||!n||!r||!h(1,n,r,e)&&!h(0,n,r,e))||(c.dataFilter(e,{coord:n,x:t.x0,y:t.y0})||c.dataFilter(e,{coord:r,x:t.x1,y:t.y1}))}function p(e,t,n,r,i){var o,s=r.coordinateSystem,c=e.getItemModel(t),u=a.parsePercent(c.get(n[0]),i.getWidth()),l=a.parsePercent(c.get(n[1]),i.getHeight());if(isNaN(u)||isNaN(l)){if(r.getMarkerPosition)o=r.getMarkerPosition(e.getValues(n,t));else{var h=e.get(n[0],t),f=e.get(n[1],t),p=[h,f];s.clampData&&s.clampData(p,p),o=s.dataToPoint(p,!0)}if("cartesian2d"===s.type){var g=s.getAxis("x"),m=s.getAxis("y");h=e.get(n[0],t),f=e.get(n[1],t);d(h)?o[0]=g.toGlobalCoord(g.getExtent()["x0"===n[0]?0:1]):d(f)&&(o[1]=m.toGlobalCoord(m.getExtent()["y0"===n[1]?0:1]))}isNaN(u)||(o[0]=u),isNaN(l)||(o[1]=l)}else o=[u,l];return o}var g=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];function m(e,t,n){var i,a,s=["x0","y0","x1","y1"];e?(i=r.map(e&&e.dimensions,(function(e){var n=t.getData(),i=n.getDimensionInfo(n.mapDimension(e))||{};return r.defaults({name:e},i)})),a=new o(r.map(s,(function(e,t){return{name:e,type:i[t%2].type}})),n)):(i=[{name:"value",type:"float"}],a=new o(i,n));var c=r.map(n.get("data"),r.curry(l,t,e,n));e&&(c=r.filter(c,r.curry(f,e)));var u=e?function(e,t,n,r){return e.coord[Math.floor(r/2)][r%2]}:function(e){return e.value};return a.initData(c,null,u),a.hasItemOption=!0,a}u.extend({type:"markArea",updateTransform:function(e,t,n){t.eachSeries((function(e){var t=e.markAreaModel;if(t){var i=t.getData();i.each((function(t){var o=r.map(g,(function(r){return p(i,t,r,e,n)}));i.setItemLayout(t,o);var a=i.getItemGraphicEl(t);a.setShape("points",o)}))}}),this)},renderSeries:function(e,t,n,o){var a=e.coordinateSystem,c=e.id,u=e.getData(),l=this.markerGroupMap,h=l.get(c)||l.set(c,{group:new s.Group});this.group.add(h.group),h.__keep=!0;var f=m(a,e,t);t.setData(f),f.each((function(t){var n=r.map(g,(function(n){return p(f,t,n,e,o)})),i=!0;r.each(g,(function(e){if(i){var n=f.get(e[0],t),r=f.get(e[1],t);(d(n)||a.getAxis("x").containData(n))&&(d(r)||a.getAxis("y").containData(r))&&(i=!1)}})),f.setItemLayout(t,{points:n,allClipped:i}),f.setItemVisual(t,{color:u.getVisual("color")})})),f.diff(h.__data).add((function(e){var t=f.getItemLayout(e);if(!t.allClipped){var n=new s.Polygon({shape:{points:t.points}});f.setItemGraphicEl(e,n),h.group.add(n)}})).update((function(e,n){var r=h.__data.getItemGraphicEl(n),i=f.getItemLayout(e);i.allClipped?r&&h.group.remove(r):(r?s.updateProps(r,{shape:{points:i.points}},t,e):r=new s.Polygon({shape:{points:i.points}}),f.setItemGraphicEl(e,r),h.group.add(r))})).remove((function(e){var t=h.__data.getItemGraphicEl(e);h.group.remove(t)})).execute(),f.eachItemGraphicEl((function(e,n){var o=f.getItemModel(n),a=o.getModel("label"),c=o.getModel("emphasis.label"),u=f.getItemVisual(n,"color");e.useStyle(r.defaults(o.getModel("itemStyle").getItemStyle(),{fill:i.modifyAlpha(u,.4),stroke:u})),e.hoverStyle=o.getModel("emphasis.itemStyle").getItemStyle(),s.setLabelStyle(e.style,e.hoverStyle,a,c,{labelFetcher:t,labelDataIndex:n,defaultText:f.getName(n)||"",isRectText:!0,autoColor:u}),s.setHoverStyle(e,{}),e.dataModel=t})),h.__data=f,h.group.silent=t.get("silent")||e.get("silent")}})},"8eb7":function(e,t){var n,r,i,o,a,s,c,u,l,d,h,f,p,g,m,v=!1;function y(){if(!v){v=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),y=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(f=/\b(iPhone|iP[ao]d)/.exec(e),p=/\b(iP[ao]d)/.exec(e),d=/Android/i.exec(e),g=/FBAN\/\w+;/i.exec(e),m=/Mobile/i.exec(e),h=!!/Win64/.exec(e),t){n=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,n&&document&&document.documentMode&&(n=document.documentMode);var _=/(?:Trident\/(\d+.\d+))/.exec(e);s=_?parseFloat(_[1])+4:n,r=t[2]?parseFloat(t[2]):NaN,i=t[3]?parseFloat(t[3]):NaN,o=t[4]?parseFloat(t[4]):NaN,o?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),a=t&&t[1]?parseFloat(t[1]):NaN):a=NaN}else n=r=i=a=o=NaN;if(y){if(y[1]){var b=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);c=!b||parseFloat(b[1].replace("_","."))}else c=!1;u=!!y[2],l=!!y[3]}else c=u=l=!1}}var _={ie:function(){return y()||n},ieCompatibilityMode:function(){return y()||s>n},ie64:function(){return _.ie()&&h},firefox:function(){return y()||r},opera:function(){return y()||i},webkit:function(){return y()||o},safari:function(){return _.webkit()},chrome:function(){return y()||a},windows:function(){return y()||u},osx:function(){return y()||c},linux:function(){return y()||l},iphone:function(){return y()||f},mobile:function(){return y()||f||p||d||m},nativeApp:function(){return y()||g},android:function(){return y()||d},ipad:function(){return y()||p}};e.exports=_},"8ec5":function(e,t,n){var r=n("3eba"),i=n("6d8b"),o=n("2145"),a=r.extendComponentModel({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},optionUpdated:function(){a.superApply(this,"optionUpdated",arguments),i.each(this.option.feature,(function(e,t){var n=o.get(t);n&&i.merge(e,n.defaultOption)}))},defaultOption:{show:!0,z:6,zlevel:0,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1}}}),s=a;e.exports=s},"8ed2":function(e,t,n){n("48c7");var r=n("6cb7"),i=r.extend({type:"grid",dependencies:["xAxis","yAxis"],layoutMode:"box",coordinateSystem:null,defaultOption:{show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:60,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"}});e.exports=i},"8ee0":function(e,t,n){n("3f8e");var r=n("697e7"),i=r.registerPainter,o=n("dc20");i("svg",o)},"8f47":function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.transition=c,t.injectNewCurve=S,t["default"]=void 0;var i=r(n("278c")),o=r(n("7037")),a=r(n("df83")),s="linear";function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:30,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(!u.apply(void 0,arguments))return!1;try{var o=l(e),a=d(o,r);return i&&"number"!==typeof n?b(t,n,a):m(t,n,a)}catch(s){return console.warn("Transition parameter may be abnormal!"),[n]}}function u(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:30;if(!e||!1===t||!1===n||!r)return console.error("transition: Missing Parameters!"),!1;if((0,o["default"])(t)!==(0,o["default"])(n))return console.error("transition: Inconsistent Status Types!"),!1;var i=(0,o["default"])(n);return"string"!==i&&"boolean"!==i&&e.length?(a["default"].has(e)||e instanceof Array||console.warn("transition: Transition curve not found, default curve will be used!"),!0):(console.error("transition: Unsupported Data Type of State!"),!1)}function l(e){var t="";return t=a["default"].has(e)?a["default"].get(e):e instanceof Array?e:a["default"].get(s),t}function d(e,t){var n=1/(t-1),r=new Array(t).fill(0).map((function(e,t){return t*n})),i=r.map((function(t){return h(e,t)}));return i}function h(e,t){var n=f(e,t),r=p(n,t);return g(n,r)}function f(e,t){var n=e.length-1,r="",i="";e.findIndex((function(o,a){if(a!==n){r=o,i=e[a+1];var s=r[0][0],c=i[0][0];return t>=s&&t<c}}));var o=r[0],a=r[2]||r[0],s=i[1]||i[0],c=i[0];return[o,a,s,c]}function p(e,t){var n=e[0][0],r=e[3][0],i=r-n,o=t-n;return o/i}function g(e,t){var n=(0,i["default"])(e,4),r=(0,i["default"])(n[0],2),o=r[1],a=(0,i["default"])(n[1],2),s=a[1],c=(0,i["default"])(n[2],2),u=c[1],l=(0,i["default"])(n[3],2),d=l[1],h=Math.pow,f=1-t,p=o*h(f,3),g=3*s*t*h(f,2),m=3*u*h(t,2)*f,v=d*h(t,3);return 1-(p+g+m+v)}function m(e,t,n){var r="object";return"number"===typeof e&&(r="number"),e instanceof Array&&(r="array"),"number"===r?v(e,t,n):"array"===r?y(e,t,n):"object"===r?_(e,t,n):n.map((function(e){return t}))}function v(e,t,n){var r=t-e;return n.map((function(t){return e+r*t}))}function y(e,t,n){var r=t.map((function(t,n){return"number"===typeof t&&t-e[n]}));return n.map((function(n){return r.map((function(r,i){return!1===r?t[i]:e[i]+r*n}))}))}function _(e,t,n){var r=Object.keys(t),i=r.map((function(t){return e[t]})),o=r.map((function(e){return t[e]})),a=y(i,o,n);return a.map((function(e){var t={};return e.forEach((function(e,n){return t[r[n]]=e})),t}))}function b(e,t,n){var r=m(e,t,n),i=function(i){var a=e[i],s=t[i];if("object"!==(0,o["default"])(s))return"continue";var c=b(a,s,n);r.forEach((function(e,t){return e[i]=c[t]}))};for(var a in t)i(a);return r}function S(e,t){e&&t?a["default"].set(e,t):console.error("InjectNewCurve Missing Parameters!")}var x=c;t["default"]=x},"903c":function(e,t){function n(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries((function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0}))}e.exports=n},"907a":function(e,t,n){"use strict";var r=n("ebb5"),i=n("07fa"),o=n("5926"),a=r.aTypedArray,s=r.exportTypedArrayMethod;s("at",(function(e){var t=a(this),n=i(t),r=o(e),s=r>=0?r:n+r;return s<0||s>=n?void 0:t[s]}))},"90c2":function(e,t,n){var r=n("5f14"),i=n("41ef"),o=n("6d8b"),a=o.isArray,s="itemStyle",c={seriesType:"treemap",reset:function(e,t,n,r){var i=e.getData().tree,o=i.root;o.isRemoved()||u(o,{},e.getViewRoot().getAncestors(),e)}};function u(e,t,n,r){var i=e.getModel(),a=e.getLayout();if(a&&!a.invisible&&a.isInView){var c,f=e.getModel(s),g=l(f,t,r),v=f.get("borderColor"),y=f.get("borderColorSaturation");null!=y&&(c=d(g,e),v=h(y,c)),e.setVisual("borderColor",v);var _=e.viewChildren;if(_&&_.length){var b=p(e,i,a,f,g,_);o.each(_,(function(e,t){if(e.depth>=n.length||e===n[e.depth]){var o=m(i,g,e,t,b,r);u(e,o,n,r)}}))}else c=d(g,e),e.setVisual("color",c)}}function l(e,t,n){var r=o.extend({},t),i=n.designatedVisualItemStyle;return o.each(["color","colorAlpha","colorSaturation"],(function(n){i[n]=t[n];var o=e.get(n);i[n]=null,null!=o&&(r[n]=o)})),r}function d(e){var t=f(e,"color");if(t){var n=f(e,"colorAlpha"),r=f(e,"colorSaturation");return r&&(t=i.modifyHSL(t,null,null,r)),n&&(t=i.modifyAlpha(t,n)),t}}function h(e,t){return null!=t?i.modifyHSL(t,null,null,e):null}function f(e,t){var n=e[t];if(null!=n&&"none"!==n)return n}function p(e,t,n,i,o,a){if(a&&a.length){var s=g(t,"color")||null!=o.color&&"none"!==o.color&&(g(t,"colorAlpha")||g(t,"colorSaturation"));if(s){var c=t.get("visualMin"),u=t.get("visualMax"),l=n.dataExtent.slice();null!=c&&c<l[0]&&(l[0]=c),null!=u&&u>l[1]&&(l[1]=u);var d=t.get("colorMappingBy"),h={type:s.name,dataExtent:l,visual:s.range};"color"!==h.type||"index"!==d&&"id"!==d?h.mappingMethod="linear":(h.mappingMethod="category",h.loop=!0);var f=new r(h);return f.__drColorMappingBy=d,f}}}function g(e,t){var n=e.get(t);return a(n)&&n.length?{name:t,range:n}:null}function m(e,t,n,r,i,a){var s=o.extend({},t);if(i){var c=i.type,u="color"===c&&i.__drColorMappingBy,l="index"===u?r:"id"===u?a.mapIdToIndex(n.getId()):n.getValue(e.get("visualDimension"));s[c]=i.mapValueToVisual(l)}return s}e.exports=c},"90e3":function(e,t,n){var r=n("e330"),i=0,o=Math.random(),a=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++i+o,36)}},9112:function(e,t,n){var r=n("83ab"),i=n("9bf2"),o=n("5c6c");e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},"923d":function(e,t,n){var r=n("6d8b"),i=n("3842"),o=n("ee1a"),a=o.isDimensionStacked,s=r.indexOf;function c(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function u(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function l(e,t,n,r,o,s){var c=[],u=a(t,r),l=u?t.getCalculationInfo("stackResultDimension"):r,d=y(t,l,e),h=t.indicesOfNearest(l,d)[0];c[o]=t.get(n,h),c[s]=t.get(l,h);var f=t.get(r,h),p=i.getPrecision(t.get(r,h));return p=Math.min(p,20),p>=0&&(c[s]=+c[s].toFixed(p)),[c,f]}var d=r.curry,h={min:d(l,"min"),max:d(l,"max"),average:d(l,"average")};function f(e,t){var n=e.getData(),i=e.coordinateSystem;if(t&&!u(t)&&!r.isArray(t.coord)&&i){var o=i.dimensions,a=p(t,n,i,e);if(t=r.clone(t),t.type&&h[t.type]&&a.baseAxis&&a.valueAxis){var c=s(o,a.baseAxis.dim),l=s(o,a.valueAxis.dim),d=h[t.type](n,a.baseDataDim,a.valueDataDim,c,l);t.coord=d[0],t.value=d[1]}else{for(var f=[null!=t.xAxis?t.xAxis:t.radiusAxis,null!=t.yAxis?t.yAxis:t.angleAxis],g=0;g<2;g++)h[f[g]]&&(f[g]=y(n,n.mapDimension(o[g]),f[g]));t.coord=f}}return t}function p(e,t,n,r){var i={};return null!=e.valueIndex||null!=e.valueDim?(i.valueDataDim=null!=e.valueIndex?t.getDimension(e.valueIndex):e.valueDim,i.valueAxis=n.getAxis(g(r,i.valueDataDim)),i.baseAxis=n.getOtherAxis(i.valueAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim)):(i.baseAxis=r.getBaseAxis(),i.valueAxis=n.getOtherAxis(i.baseAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim),i.valueDataDim=t.mapDimension(i.valueAxis.dim)),i}function g(e,t){var n=e.getData(),r=n.dimensions;t=n.getDimension(t);for(var i=0;i<r.length;i++){var o=n.getDimensionInfo(r[i]);if(o.name===t)return o.coordDim}}function m(e,t){return!(e&&e.containData&&t.coord&&!c(t))||e.containData(t.coord)}function v(e,t,n,r){return r<2?e.coord&&e.coord[r]:e.value}function y(e,t,n){if("average"===n){var r=0,i=0;return e.each(t,(function(e,t){isNaN(e)||(r+=e,i++)})),r/i}return"median"===n?e.getMedian(t):e.getDataExtent(t,!0)["max"===n?1:0]}t.dataTransform=f,t.getAxisInfo=p,t.dataFilter=m,t.dimValueGetter=v,t.numCalculate=y},9263:function(e,t,n){"use strict";var r=n("c65b"),i=n("e330"),o=n("577e"),a=n("ad6d"),s=n("9f7f"),c=n("5692"),u=n("7c73"),l=n("69f3").get,d=n("fce3"),h=n("107c"),f=c("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,g=p,m=i("".charAt),v=i("".indexOf),y=i("".replace),_=i("".slice),b=function(){var e=/a/,t=/b*/g;return r(p,e,"a"),r(p,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),S=s.BROKEN_CARET,x=void 0!==/()??/.exec("")[1],w=b||x||S||d||h;w&&(g=function(e){var t,n,i,s,c,d,h,w=this,I=l(w),C=o(e),M=I.raw;if(M)return M.lastIndex=w.lastIndex,t=r(g,M,C),w.lastIndex=M.lastIndex,t;var T=I.groups,k=S&&w.sticky,E=r(a,w),A=w.source,D=0,O=C;if(k&&(E=y(E,"y",""),-1===v(E,"g")&&(E+="g"),O=_(C,w.lastIndex),w.lastIndex>0&&(!w.multiline||w.multiline&&"\n"!==m(C,w.lastIndex-1))&&(A="(?: "+A+")",O=" "+O,D++),n=new RegExp("^(?:"+A+")",E)),x&&(n=new RegExp("^"+A+"$(?!\\s)",E)),b&&(i=w.lastIndex),s=r(p,k?n:w,O),k?s?(s.input=_(s.input,D),s[0]=_(s[0],D),s.index=w.lastIndex,w.lastIndex+=s[0].length):w.lastIndex=0:b&&s&&(w.lastIndex=w.global?s.index+s[0].length:i),x&&s&&s.length>1&&r(f,s[0],n,(function(){for(c=1;c<arguments.length-2;c++)void 0===arguments[c]&&(s[c]=void 0)})),s&&T)for(s.groups=d=u(null),c=0;c<T.length;c++)h=T[c],d[h[0]]=s[h[1]];return s}),e.exports=g},9273:function(e,t,n){var r=n("6d8b"),i=n("84ce");function o(e,t){i.call(this,"radius",e,t),this.type="category"}o.prototype={constructor:o,pointToData:function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},dataToRadius:i.prototype.dataToCoord,radiusToData:i.prototype.coordToData},r.inherits(o,i);var a=o;e.exports=a},"928d":function(e,t,n){var r=n("6d8b"),i=n("4f85"),o=n("06c7"),a=n("4319"),s=n("eda2"),c=s.encodeHTML,u=s.addCommas,l=n("55ac"),d=l.wrapTreePathInfo,h=i.extend({type:"series.treemap",layoutMode:"box",dependencies:["grid","polar"],preventUsingHoverLayer:!0,_viewRoot:null,defaultOption:{progressive:0,left:"center",top:"middle",right:null,bottom:null,width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",borderColor:"rgba(255,255,255,0.7)",borderWidth:1,shadowColor:"rgba(150,150,150,1)",shadowBlur:3,shadowOffsetX:0,shadowOffsetY:0,textStyle:{color:"#fff"}},emphasis:{textStyle:{}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",ellipsis:!0},upperLabel:{show:!1,position:[0,"50%"],height:20,color:"#fff",ellipsis:!0,verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],color:"#fff",ellipsis:!0,verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},getInitialData:function(e,t){var n={name:e.name,children:e.data};f(n);var i=e.levels||[],s=this.designatedVisualItemStyle={},c=new a({itemStyle:s},this,t);i=e.levels=p(i,t);var u=r.map(i||[],(function(e){return new a(e,c,t)}),this),l=o.createTree(n,this,d);function d(e){e.wrapMethod("getItemModel",(function(e,t){var n=l.getNodeByDataIndex(t),r=u[n.depth];return e.parentModel=r||c,e}))}return l.data},optionUpdated:function(){this.resetViewRoot()},formatTooltip:function(e){var t=this.getData(),n=this.getRawValue(e),i=r.isArray(n)?u(n[0]):u(n),o=t.getName(e);return c(o+": "+i)},getDataParams:function(e){var t=i.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(e);return t.treePathInfo=d(n,this),t},setLayoutInfo:function(e){this.layoutInfo=this.layoutInfo||{},r.extend(this.layoutInfo,e)},mapIdToIndex:function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=r.createHashMap(),this._idIndexMapCount=0);var n=t.get(e);return null==n&&t.set(e,n=this._idIndexMapCount++),n},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)}});function f(e){var t=0;r.each(e.children,(function(e){f(e);var n=e.value;r.isArray(n)&&(n=n[0]),t+=n}));var n=e.value;r.isArray(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),r.isArray(e.value)?e.value[0]=n:e.value=n}function p(e,t){var n=t.get("color");if(n){var i;if(e=e||[],r.each(e,(function(e){var t=new a(e),n=t.get("color");(t.get("itemStyle.color")||n&&"none"!==n)&&(i=!0)})),!i){var o=e[0]||(e[0]={});o.color=n.slice()}return e}}e.exports=h},"933b":function(e,t,n){var r=n("b12f"),i=r.extend({type:"timeline"});e.exports=i},9390:function(e,t,n){n("d090"),n("83ba"),n("ee66")},"93d0":function(e,t){var n="original",r="arrayRows",i="objectRows",o="keyedColumns",a="unknown",s="typedArray",c="column",u="row";t.SOURCE_FORMAT_ORIGINAL=n,t.SOURCE_FORMAT_ARRAY_ROWS=r,t.SOURCE_FORMAT_OBJECT_ROWS=i,t.SOURCE_FORMAT_KEYED_COLUMNS=o,t.SOURCE_FORMAT_UNKNOWN=a,t.SOURCE_FORMAT_TYPED_ARRAY=s,t.SERIES_LAYOUT_BY_COLUMN=c,t.SERIES_LAYOUT_BY_ROW=u},9442:function(e,t,n){var r=n("6d8b");function i(e){var t=[];r.each(e.series,(function(e){e&&"map"===e.type&&(t.push(e),e.map=e.map||e.mapType,r.defaults(e,e.mapLocation))}))}e.exports=i},"944e":function(e,t,n){var r=n("3842"),i=r.round;function o(e,t,n,o){var s={},u=e[1]-e[0],l=s.interval=r.nice(u/t,!0);null!=n&&l<n&&(l=s.interval=n),null!=o&&l>o&&(l=s.interval=o);var d=s.intervalPrecision=a(l),h=s.niceTickExtent=[i(Math.ceil(e[0]/l)*l,d),i(Math.floor(e[1]/l)*l,d)];return c(h,e),s}function a(e){return r.getPrecisionSafe(e)+2}function s(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function c(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),s(e,0,t),s(e,1,t),e[0]>e[1]&&(e[0]=e[1])}t.intervalScaleNiceTicks=o,t.getIntervalPrecision=a,t.fixExtent=c},"94b1":function(e,t,n){var r=n("3eba"),i=n("6d8b"),o=n("9d57"),a=o.layout,s=o.largeLayout;n("5aa9"),n("17b8"),n("67cc"),n("01ed"),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,i.curry(a,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,s),r.registerVisual({seriesType:"bar",reset:function(e){e.getData().setVisual("legendSymbol","roundRect")}})},"94ca":function(e,t,n){var r=n("d039"),i=n("1626"),o=/#|\.prototype\./,a=function(e,t){var n=c[s(e)];return n==l||n!=u&&(i(t)?r(t):!!t)},s=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},c=a.data={},u=a.NATIVE="N",l=a.POLYFILL="P";e.exports=a},"94e4":function(e,t,n){var r=n("401b"),i=n("53f3"),o=i.getSymbolSize,a=i.getNodeGlobalScale,s=n("6d8b"),c=n("0c37"),u=c.getCurvenessForEdge,l=Math.PI,d=[];function h(e,t){var n=e.coordinateSystem;if(!n||"view"===n.type){var i=n.getBoundingRect(),o=e.getData(),a=o.graph,c=i.width/2+i.x,l=i.height/2+i.y,d=Math.min(i.width,i.height)/2,h=o.count();o.setLayout({cx:c,cy:l}),h&&(f[t](e,n,a,o,d,c,l,h),a.eachEdge((function(t,n){var i,o=s.retrieve3(t.getModel().get("lineStyle.curveness"),u(t,e,n),0),a=r.clone(t.node1.getLayout()),d=r.clone(t.node2.getLayout()),h=(a[0]+d[0])/2,f=(a[1]+d[1])/2;+o&&(o*=3,i=[c*o+h*(1-o),l*o+f*(1-o)]),t.setLayout([a,d,i])})))}}var f={value:function(e,t,n,r,i,o,a,s){var c=0,u=r.getSum("value"),l=2*Math.PI/(u||s);n.eachNode((function(e){var t=e.getValue("value"),n=l*(u?t:1)/2;c+=n,e.setLayout([i*Math.cos(c)+o,i*Math.sin(c)+a]),c+=n}))},symbolSize:function(e,t,n,r,i,s,c,u){var h=0;d.length=u;var f=a(e);n.eachNode((function(e){var t=o(e);isNaN(t)&&(t=2),t<0&&(t=0),t*=f;var n=Math.asin(t/2/i);isNaN(n)&&(n=l/2),d[e.dataIndex]=n,h+=2*n}));var p=(2*l-h)/u/2,g=0;n.eachNode((function(e){var t=p+d[e.dataIndex];g+=t,e.setLayout([i*Math.cos(g)+s,i*Math.sin(g)+c]),g+=t}))}};t.circularLayout=h},9523:function(e,t){function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},"95a8":function(e,t,n){var r=n("3eba");n("1953"),n("307d"),r.registerPreprocessor((function(e){e.markLine=e.markLine||{}}))},"960d":function(e,t,n){},9619:function(e,t,n){var r=n("597f"),i=n("0e15");e.exports={throttle:r,debounce:i}},9680:function(e,t){function n(e,t,n,r,i,o,a){if(0===i)return!1;var s=i,c=0,u=e;if(a>t+s&&a>r+s||a<t-s&&a<r-s||o>e+s&&o>n+s||o<e-s&&o<n-s)return!1;if(e===n)return Math.abs(o-e)<=s/2;c=(t-r)/(e-n),u=(e*r-n*t)/(e-n);var l=c*o-a+u,d=l*l/(c*c+1);return d<=s/2*s/2}t.containStroke=n},"96cf":function(e,t,n){var r=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,i="function"===typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(O){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof m?t:m,o=Object.create(i.prototype),a=new E(r||[]);return o._invoke=C(e,n,a),o}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(O){return{type:"throw",arg:O}}}e.wrap=u;var d="suspendedStart",h="suspendedYield",f="executing",p="completed",g={};function m(){}function v(){}function y(){}var _={};c(_,o,(function(){return this}));var b=Object.getPrototypeOf,S=b&&b(b(A([])));S&&S!==n&&r.call(S,o)&&(_=S);var x=y.prototype=m.prototype=Object.create(_);function w(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function I(e,t){function n(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"===typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;function o(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}this._invoke=o}function C(e,t,n){var r=d;return function(i,o){if(r===f)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw o;return D()}n.method=i,n.arg=o;while(1){var a=n.delegate;if(a){var s=M(a,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=f;var c=l(e,t,n);if("normal"===c.type){if(r=n.done?p:h,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=p,n.method="throw",n.arg=c.arg)}}}function M(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator["return"]&&(n.method="return",n.arg=t,M(e,n),"throw"===n.method))return g;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var i=l(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var o=i.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function A(e){if(e){var n=e[o];if(n)return n.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){while(++i<e.length)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:D}}function D(){return{value:t,done:!0}}return v.prototype=y,c(x,"constructor",y),c(y,"constructor",v),v.displayName=c(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,s,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},w(I.prototype),c(I.prototype,a,(function(){return this})),e.AsyncIterator=I,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new I(u(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(x),c(x,s,"Generator"),c(x,o,(function(){return this})),c(x,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){while(t.length){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=A,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:A(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}(e.exports);try{regeneratorRuntime=r}catch(i){"object"===typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},9704:function(e,t,n){var r=n("3eba"),i=n("6d8b"),o=n("f706"),a=n("73ca"),s=n("4a01"),c=n("01ef"),u=n("c526"),l=u.onIrrelevantElement,d=n("2306"),h=n("480f"),f=n("53f3"),p=f.getNodeGlobalScale,g="__focusNodeAdjacency",m="__unfocusNodeAdjacency",v=["itemStyle","opacity"],y=["lineStyle","opacity"];function _(e,t){var n=e.getVisual("opacity");return null!=n?n:e.getModel().get(t)}function b(e,t,n){var r=e.getGraphicEl(),i=_(e,t);null!=n&&(null==i&&(i=1),i*=n),r.downplay&&r.downplay(),r.traverse((function(e){if(!e.isGroup){var t=e.lineLabelOriginalOpacity;null!=t&&null==n||(t=i),e.setStyle("opacity",t)}}))}function S(e,t){var n=_(e,t),r=e.getGraphicEl();r.traverse((function(e){!e.isGroup&&e.setStyle("opacity",n)})),r.highlight&&r.highlight()}var x=r.extendChartView({type:"graph",init:function(e,t){var n=new o,r=new a,i=this.group;this._controller=new s(t.getZr()),this._controllerHost={target:i},i.add(n.group),i.add(r.group),this._symbolDraw=n,this._lineDraw=r,this._firstRender=!0},render:function(e,t,n){var r=this,i=e.coordinateSystem;this._model=e;var o=this._symbolDraw,a=this._lineDraw,s=this.group;if("view"===i.type){var c={position:i.position,scale:i.scale};this._firstRender?s.attr(c):d.updateProps(s,c,e)}h(e.getGraph(),p(e));var u=e.getData();o.updateData(u);var l=e.getEdgeData();a.updateData(l),this._updateNodeAndLinkScale(),this._updateController(e,t,n),clearTimeout(this._layoutTimeout);var f=e.forceLayout,v=e.get("force.layoutAnimation");f&&this._startForceLayoutIteration(f,v),u.eachItemGraphicEl((function(t,i){var o=u.getItemModel(i);t.off("drag").off("dragend");var a=o.get("draggable");a&&t.on("drag",(function(){f&&(f.warmUp(),!this._layouting&&this._startForceLayoutIteration(f,v),f.setFixed(i),u.setItemLayout(i,t.position))}),this).on("dragend",(function(){f&&f.setUnfixed(i)}),this),t.setDraggable(a&&f),t[g]&&t.off("mouseover",t[g]),t[m]&&t.off("mouseout",t[m]),o.get("focusNodeAdjacency")&&(t.on("mouseover",t[g]=function(){r._clearTimer(),n.dispatchAction({type:"focusNodeAdjacency",seriesId:e.id,dataIndex:t.dataIndex})}),t.on("mouseout",t[m]=function(){r._dispatchUnfocus(n)}))}),this),u.graph.eachEdge((function(t){var i=t.getGraphicEl();i[g]&&i.off("mouseover",i[g]),i[m]&&i.off("mouseout",i[m]),t.getModel().get("focusNodeAdjacency")&&(i.on("mouseover",i[g]=function(){r._clearTimer(),n.dispatchAction({type:"focusNodeAdjacency",seriesId:e.id,edgeDataIndex:t.dataIndex})}),i.on("mouseout",i[m]=function(){r._dispatchUnfocus(n)}))}));var y="circular"===e.get("layout")&&e.get("circular.rotateLabel"),_=u.getLayout("cx"),b=u.getLayout("cy");u.eachItemGraphicEl((function(e,t){var n=u.getItemModel(t),r=n.get("label.rotate")||0,i=e.getSymbolPath();if(y){var o=u.getItemLayout(t),a=Math.atan2(o[1]-b,o[0]-_);a<0&&(a=2*Math.PI+a);var s=o[0]<_;s&&(a-=Math.PI);var c=s?"left":"right";d.modifyLabelStyle(i,{textRotation:-a,textPosition:c,textOrigin:"center"},{textPosition:c})}else d.modifyLabelStyle(i,{textRotation:r*=Math.PI/180})})),this._firstRender=!1},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={},this._clearTimer()},_dispatchUnfocus:function(e,t){var n=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout((function(){n._unfocusDelayTimer=null,e.dispatchAction({type:"unfocusNodeAdjacency",seriesId:n._model.id})}),500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(e,t,n,r){var o=e.getData(),a=o.graph,s=r.dataIndex,c=r.edgeDataIndex,u=a.getNodeByIndex(s),l=a.getEdgeByIndex(c);(u||l)&&(a.eachNode((function(e){b(e,v,.1)})),a.eachEdge((function(e){b(e,y,.1)})),u&&(S(u,v),i.each(u.edges,(function(e){e.dataIndex<0||(S(e,y),S(e.node1,v),S(e.node2,v))}))),l&&(S(l,y),S(l.node1,v),S(l.node2,v)))},unfocusNodeAdjacency:function(e,t,n,r){var i=e.getData().graph;i.eachNode((function(e){b(e,v)})),i.eachEdge((function(e){b(e,y)}))},_startForceLayoutIteration:function(e,t){var n=this;(function r(){e.step((function(e){n.updateLayout(n._model),(n._layouting=!e)&&(t?n._layoutTimeout=setTimeout(r,16):r())}))})()},_updateController:function(e,t,n){var r=this._controller,i=this._controllerHost,o=this.group;r.setPointerChecker((function(t,r,i){var a=o.getBoundingRect();return a.applyTransform(o.transform),a.contain(r,i)&&!l(t,n,e)})),"view"===e.coordinateSystem.type?(r.enable(e.get("roam")),i.zoomLimit=e.get("scaleLimit"),i.zoom=e.coordinateSystem.getZoom(),r.off("pan").off("zoom").on("pan",(function(t){c.updateViewOnPan(i,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"graphRoam",dx:t.dx,dy:t.dy})})).on("zoom",(function(t){c.updateViewOnZoom(i,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),this._updateNodeAndLinkScale(),h(e.getGraph(),p(e)),this._lineDraw.updateLayout()}),this)):r.disable()},_updateNodeAndLinkScale:function(){var e=this._model,t=e.getData(),n=p(e),r=[n,n];t.eachItemGraphicEl((function(e,t){e.attr("scale",r)}))},updateLayout:function(e){h(e.getGraph(),p(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},remove:function(e,t){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()}});e.exports=x},"970b":function(e,t,n){function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n("d9e2"),e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},9850:function(e,t,n){var r=n("401b"),i=n("1687"),o=r.applyTransform,a=Math.min,s=Math.max;function c(e,t,n,r){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r),this.x=e,this.y=t,this.width=n,this.height=r}c.prototype={constructor:c,union:function(e){var t=a(e.x,this.x),n=a(e.y,this.y);this.width=s(e.x+e.width,this.x+this.width)-t,this.height=s(e.y+e.height,this.y+this.height)-n,this.x=t,this.y=n},applyTransform:function(){var e=[],t=[],n=[],r=[];return function(i){if(i){e[0]=n[0]=this.x,e[1]=r[1]=this.y,t[0]=r[0]=this.x+this.width,t[1]=n[1]=this.y+this.height,o(e,e,i),o(t,t,i),o(n,n,i),o(r,r,i),this.x=a(e[0],t[0],n[0],r[0]),this.y=a(e[1],t[1],n[1],r[1]);var c=s(e[0],t[0],n[0],r[0]),u=s(e[1],t[1],n[1],r[1]);this.width=c-this.x,this.height=u-this.y}}}(),calculateTransform:function(e){var t=this,n=e.width/t.width,r=e.height/t.height,o=i.create();return i.translate(o,o,[-t.x,-t.y]),i.scale(o,o,[n,r]),i.translate(o,o,[e.x,e.y]),o},intersect:function(e){if(!e)return!1;e instanceof c||(e=c.create(e));var t=this,n=t.x,r=t.x+t.width,i=t.y,o=t.y+t.height,a=e.x,s=e.x+e.width,u=e.y,l=e.y+e.height;return!(r<a||s<n||o<u||l<i)},contain:function(e,t){var n=this;return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height},clone:function(){return new c(this.x,this.y,this.width,this.height)},copy:function(e){this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},c.create=function(e){return new c(e.x,e.y,e.width,e.height)};var u=c;e.exports=u},9886:function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"CRender",{enumerable:!0,get:function(){return i["default"]}}),Object.defineProperty(t,"extendNewGraph",{enumerable:!0,get:function(){return o.extendNewGraph}}),t["default"]=void 0;var i=r(n("85c4")),o=n("b06d"),a=i["default"];t["default"]=a},"98b7":function(e,t){var n="undefined"!==typeof window&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){setTimeout(e,16)};e.exports=n},"98e7":function(e,t,n){var r=n("6d8b"),i=r.createHashMap;function o(e){return{getTargetSeries:function(t){var n={},r=i();return t.eachSeriesByType(e,(function(e){e.__paletteScope=n,r.set(e.uid,e)})),r},reset:function(e,t){var n=e.getRawData(),r={},i=e.getData();i.each((function(e){var t=i.getRawIndex(e);r[t]=e})),n.each((function(t){var o,a=r[t],s=null!=a&&i.getItemVisual(a,"color",!0),c=null!=a&&i.getItemVisual(a,"borderColor",!0);if(s&&c||(o=n.getItemModel(t)),!s){var u=o.get("itemStyle.color")||e.getColorFromPalette(n.getName(t)||t+"",e.__paletteScope,n.count());null!=a&&i.setItemVisual(a,"color",u)}if(!c){var l=o.get("itemStyle.borderColor");null!=a&&i.setItemVisual(a,"borderColor",l)}}))}}}e.exports=o},"998c":function(e,t,n){var r=n("6d8b"),i=n("2306"),o=n("e86a"),a=Math.PI;function s(e,t){t=t||{},r.defaults(t,{text:"loading",textColor:"#000",fontSize:"12px",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#c23531",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new i.Group,s=new i.Rect({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(s);var c=t.fontSize+" sans-serif",u=new i.Rect({style:{fill:"none",text:t.text,font:c,textPosition:"right",textDistance:10,textFill:t.textColor},zlevel:t.zlevel,z:10001});if(n.add(u),t.showSpinner){var l=new i.Arc({shape:{startAngle:-a/2,endAngle:-a/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001});l.animateShape(!0).when(1e3,{endAngle:3*a/2}).start("circularInOut"),l.animateShape(!0).when(1e3,{startAngle:3*a/2}).delay(300).start("circularInOut"),n.add(l)}return n.resize=function(){var n=o.getWidth(t.text,c),r=t.showSpinner?t.spinnerRadius:0,i=(e.getWidth()-2*r-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner?0:n/2),a=e.getHeight()/2;t.showSpinner&&l.setShape({cx:i,cy:a}),u.setShape({x:i-r,y:a-r,width:2*r,height:2*r}),s.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}e.exports=s},"99af":function(e,t,n){"use strict";var r=n("23e7"),i=n("da84"),o=n("d039"),a=n("e8b5"),s=n("861d"),c=n("7b0b"),u=n("07fa"),l=n("8418"),d=n("65f0"),h=n("1dde"),f=n("b622"),p=n("2d00"),g=f("isConcatSpreadable"),m=9007199254740991,v="Maximum allowed index exceeded",y=i.TypeError,_=p>=51||!o((function(){var e=[];return e[g]=!1,e.concat()[0]!==e})),b=h("concat"),S=function(e){if(!s(e))return!1;var t=e[g];return void 0!==t?!!t:a(e)},x=!_||!b;r({target:"Array",proto:!0,forced:x},{concat:function(e){var t,n,r,i,o,a=c(this),s=d(a,0),h=0;for(t=-1,r=arguments.length;t<r;t++)if(o=-1===t?a:arguments[t],S(o)){if(i=u(o),h+i>m)throw y(v);for(n=0;n<i;n++,h++)n in o&&l(s,h,o[n])}else{if(h>=m)throw y(v);l(s,h++,o)}return s.length=h,s}})},"9a1f":function(e,t,n){var r=n("da84"),i=n("c65b"),o=n("59ed"),a=n("825a"),s=n("0d51"),c=n("35a1"),u=r.TypeError;e.exports=function(e,t){var n=arguments.length<2?c(e):t;if(o(n))return a(i(n,e));throw u(s(e)+" is not iterable")}},"9a8c":function(e,t,n){"use strict";var r=n("e330"),i=n("ebb5"),o=n("145e"),a=r(o),s=i.aTypedArray,c=i.exportTypedArrayMethod;c("copyWithin",(function(e,t){return a(s(this),e,t,arguments.length>2?arguments[2]:void 0)}))},"9ab4":function(e,t,n){},"9b06":function(e,t,n){},"9b42":function(e,t,n){function r(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done);a=!0)if(o.push(r.value),t&&o.length===t)break}catch(c){s=!0,i=c}finally{try{a||null==n["return"]||n["return"]()}finally{if(s)throw i}}return o}}n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},"9bdb":function(e,t,n){var r=n("282b"),i=r([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),o={getAreaStyle:function(e,t){return i(this,e,t)}};e.exports=o},"9bdd":function(e,t,n){var r=n("825a"),i=n("2a62");e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(a){i(e,"throw",a)}}},"9bf2":function(e,t,n){var r=n("da84"),i=n("83ab"),o=n("0cfb"),a=n("aed9"),s=n("825a"),c=n("a04b"),u=r.TypeError,l=Object.defineProperty,d=Object.getOwnPropertyDescriptor,h="enumerable",f="configurable",p="writable";t.f=i?a?function(e,t,n){if(s(e),t=c(t),s(n),"function"===typeof e&&"prototype"===t&&"value"in n&&p in n&&!n[p]){var r=d(e,t);r&&r[p]&&(e[t]=n.value,n={configurable:f in n?n[f]:r[f],enumerable:h in n?n[h]:r[h],writable:!1})}return l(e,t,n)}:l:function(e,t,n){if(s(e),t=c(t),s(n),o)try{return l(e,t,n)}catch(r){}if("get"in n||"set"in n)throw u("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},"9c2c":function(e,t,n){var r=n("401b"),i=r.min,o=r.max,a=r.scale,s=r.distance,c=r.add,u=r.clone,l=r.sub;function d(e,t,n,r){var d,h,f,p,g=[],m=[],v=[],y=[];if(r){f=[1/0,1/0],p=[-1/0,-1/0];for(var _=0,b=e.length;_<b;_++)i(f,f,e[_]),o(p,p,e[_]);i(f,f,r[0]),o(p,p,r[1])}for(_=0,b=e.length;_<b;_++){var S=e[_];if(n)d=e[_?_-1:b-1],h=e[(_+1)%b];else{if(0===_||_===b-1){g.push(u(e[_]));continue}d=e[_-1],h=e[_+1]}l(m,h,d),a(m,m,t);var x=s(S,d),w=s(S,h),I=x+w;0!==I&&(x/=I,w/=I),a(v,m,-x),a(y,m,w);var C=c([],S,v),M=c([],S,y);r&&(o(C,C,f),i(C,C,p),o(M,M,f),i(M,M,p)),g.push(C),g.push(M)}return n&&g.push(g.shift()),g}e.exports=d},"9ca8":function(e,t,n){var r=n("6d8b"),i=n("9850"),o=n("3842"),a=o.parsePercent,s=o.MAX_SAFE_INTEGER,c=n("f934"),u=n("55ac"),l=Math.max,d=Math.min,h=r.retrieve,f=r.each,p=["itemStyle","borderWidth"],g=["itemStyle","gapWidth"],m=["upperLabel","show"],v=["upperLabel","height"],y={seriesType:"treemap",reset:function(e,t,n,o){var s=n.getWidth(),l=n.getHeight(),d=e.option,p=c.getLayoutRect(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),g=d.size||[],m=a(h(p.width,g[0]),s),v=a(h(p.height,g[1]),l),y=o&&o.type,b=["treemapZoomToNode","treemapRootToNode"],S=u.retrieveTargetInfo(o,b,e),x="treemapRender"===y||"treemapMove"===y?o.rootRect:null,w=e.getViewRoot(),I=u.getPathToRoot(w);if("treemapMove"!==y){var C="treemapZoomToNode"===y?M(e,S,w,m,v):x?[x.width,x.height]:[m,v],E=d.sort;E&&"asc"!==E&&"desc"!==E&&(E="desc");var A={squareRatio:d.squareRatio,sort:E,leafDepth:d.leafDepth};w.hostTree.clearLayouts();var D={x:0,y:0,width:C[0],height:C[1],area:C[0]*C[1]};w.setLayout(D),_(w,A,!1,0);D=w.getLayout();f(I,(function(e,t){var n=(I[t+1]||w).getValue();e.setLayout(r.extend({dataExtent:[n,n],borderWidth:0,upperHeight:0},D))}))}var O=e.getData().tree.root;O.setLayout(T(p,x,S),!0),e.setLayoutInfo(p),k(O,new i(-p.x,-p.y,s,l),I,w,0)}};function _(e,t,n,r){var i,o;if(!e.isRemoved()){var a=e.getLayout();i=a.width,o=a.height;var s=e.getModel(),c=s.get(p),u=s.get(g)/2,h=E(s),f=Math.max(c,h),m=c-u,v=f-u;s=e.getModel();e.setLayout({borderWidth:c,upperHeight:f,upperLabelHeight:h},!0),i=l(i-2*m,0),o=l(o-m-v,0);var y=i*o,S=b(e,s,y,t,n,r);if(S.length){var x={x:m,y:v,width:i,height:o},w=d(i,o),M=1/0,T=[];T.area=0;for(var k=0,A=S.length;k<A;){var D=S[k];T.push(D),T.area+=D.getLayout().area;var O=I(T,w,t.squareRatio);O<=M?(k++,M=O):(T.area-=T.pop().getLayout().area,C(T,w,x,u,!1),w=d(x.width,x.height),T.length=T.area=0,M=1/0)}if(T.length&&C(T,w,x,u,!0),!n){var R=s.get("childrenVisibleMin");null!=R&&y<R&&(n=!0)}for(k=0,A=S.length;k<A;k++)_(S[k],t,n,r+1)}}}function b(e,t,n,i,o,a){var s=e.children||[],c=i.sort;"asc"!==c&&"desc"!==c&&(c=null);var u=null!=i.leafDepth&&i.leafDepth<=a;if(o&&!u)return e.viewChildren=[];s=r.filter(s,(function(e){return!e.isRemoved()})),x(s,c);var l=w(t,s,c);if(0===l.sum)return e.viewChildren=[];if(l.sum=S(t,n,l.sum,c,s),0===l.sum)return e.viewChildren=[];for(var d=0,h=s.length;d<h;d++){var f=s[d].getValue()/l.sum*n;s[d].setLayout({area:f})}return u&&(s.length&&e.setLayout({isLeafRoot:!0},!0),s.length=0),e.viewChildren=s,e.setLayout({dataExtent:l.dataExtent},!0),s}function S(e,t,n,r,i){if(!r)return n;for(var o=e.get("visibleMin"),a=i.length,s=a,c=a-1;c>=0;c--){var u=i["asc"===r?a-c-1:c].getValue();u/n*t<o&&(s=c,n-=u)}return"asc"===r?i.splice(0,a-s):i.splice(s,a-s),n}function x(e,t){return t&&e.sort((function(e,n){var r="asc"===t?e.getValue()-n.getValue():n.getValue()-e.getValue();return 0===r?"asc"===t?e.dataIndex-n.dataIndex:n.dataIndex-e.dataIndex:r})),e}function w(e,t,n){for(var r=0,i=0,o=t.length;i<o;i++)r+=t[i].getValue();var a=e.get("visualDimension");if(t&&t.length)if("value"===a&&n)s=[t[t.length-1].getValue(),t[0].getValue()],"asc"===n&&s.reverse();else{var s=[1/0,-1/0];f(t,(function(e){var t=e.getValue(a);t<s[0]&&(s[0]=t),t>s[1]&&(s[1]=t)}))}else s=[NaN,NaN];return{sum:r,dataExtent:s}}function I(e,t,n){for(var r,i=0,o=1/0,a=0,s=e.length;a<s;a++)r=e[a].getLayout().area,r&&(r<o&&(o=r),r>i&&(i=r));var c=e.area*e.area,u=t*t*n;return c?l(u*i/c,c/(u*o)):1/0}function C(e,t,n,r,i){var o=t===n.width?0:1,a=1-o,s=["x","y"],c=["width","height"],u=n[s[o]],h=t?e.area/t:0;(i||h>n[c[a]])&&(h=n[c[a]]);for(var f=0,p=e.length;f<p;f++){var g=e[f],m={},v=h?g.getLayout().area/h:0,y=m[c[a]]=l(h-2*r,0),_=n[s[o]]+n[c[o]]-u,b=f===p-1||_<v?_:v,S=m[c[o]]=l(b-2*r,0);m[s[a]]=n[s[a]]+d(r,y/2),m[s[o]]=u+d(r,S/2),u+=b,g.setLayout(m,!0)}n[s[a]]+=h,n[c[a]]-=h}function M(e,t,n,r,i){var o,a=(t||{}).node,c=[r,i];if(!a||a===n)return c;var u=r*i,l=u*e.option.zoomToNodeRatio;while(o=a.parentNode){for(var d=0,h=o.children,f=0,g=h.length;f<g;f++)d+=h[f].getValue();var m=a.getValue();if(0===m)return c;l*=d/m;var v=o.getModel(),y=v.get(p),_=Math.max(y,E(v,y));l+=4*y*y+(3*y+_)*Math.pow(l,.5),l>s&&(l=s),a=o}l<u&&(l=u);var b=Math.pow(l/u,.5);return[r*b,i*b]}function T(e,t,n){if(t)return{x:t.x,y:t.y};var r={x:0,y:0};if(!n)return r;var i=n.node,o=i.getLayout();if(!o)return r;var a=[o.width/2,o.height/2],s=i;while(s){var c=s.getLayout();a[0]+=c.x,a[1]+=c.y,s=s.parentNode}return{x:e.width/2-a[0],y:e.height/2-a[1]}}function k(e,t,n,r,o){var a=e.getLayout(),s=n[o],c=s&&s===e;if(!(s&&!c||o===n.length&&e!==r)){e.setLayout({isInView:!0,invisible:!c&&!t.intersect(a),isAboveViewRoot:c},!0);var u=new i(t.x-a.x,t.y-a.y,t.width,t.height);f(e.viewChildren||[],(function(e){k(e,u,n,r,o+1)}))}}function E(e){return e.get(m)?e.get(v):0}e.exports=y},"9cf9":function(e,t){var n=Math.round;function r(e,t,r){if(t){var i=t.x1,a=t.x2,s=t.y1,c=t.y2;e.x1=i,e.x2=a,e.y1=s,e.y2=c;var u=r&&r.lineWidth;u&&(n(2*i)===n(2*a)&&(e.x1=e.x2=o(i,u,!0)),n(2*s)===n(2*c)&&(e.y1=e.y2=o(s,u,!0)))}}function i(e,t,n){if(t){var r=t.x,i=t.y,a=t.width,s=t.height;e.x=r,e.y=i,e.width=a,e.height=s;var c=n&&n.lineWidth;c&&(e.x=o(r,c,!0),e.y=o(i,c,!0),e.width=Math.max(o(r+a,c,!1)-e.x,0===a?0:1),e.height=Math.max(o(i+s,c,!1)-e.y,0===s?0:1))}}function o(e,t,r){if(!t)return e;var i=n(2*e);return(i+n(t))%2===0?i/2:(i+(r?1:-1))/2}t.subPixelOptimizeLine=r,t.subPixelOptimizeRect=i,t.subPixelOptimize=o},"9d57":function(e,t,n){var r=n("6d8b"),i=n("3842"),o=i.parsePercent,a=n("ee1a"),s=a.isDimensionStacked,c=n("cccd"),u="__ec_stack_",l=.5,d="undefined"!==typeof Float32Array?Float32Array:Array;function h(e){return e.get("stack")||u+e.seriesIndex}function f(e){return e.dim+e.index}function p(e){var t=[],n=e.axis,i="axis0";if("category"===n.type){for(var o=n.getBandWidth(),a=0;a<e.count;a++)t.push(r.defaults({bandWidth:o,axisKey:i,stackId:u+a},e));var s=y(t),c=[];for(a=0;a<e.count;a++){var l=s[i][u+a];l.offsetCenter=l.offset+l.width/2,c.push(l)}return c}}function g(e,t){var n=[];return t.eachSeriesByType(e,(function(e){x(e)&&!w(e)&&n.push(e)})),n}function m(e){var t={};r.each(e,(function(e){var n=e.coordinateSystem,r=n.getBaseAxis();if("time"===r.type||"value"===r.type)for(var i=e.getData(),o=r.dim+"_"+r.index,a=i.mapDimension(r.dim),s=0,c=i.count();s<c;++s){var u=i.get(a,s);t[o]?t[o].push(u):t[o]=[u]}}));var n=[];for(var i in t)if(t.hasOwnProperty(i)){var o=t[i];if(o){o.sort((function(e,t){return e-t}));for(var a=null,s=1;s<o.length;++s){var c=o[s]-o[s-1];c>0&&(a=null===a?c:Math.min(a,c))}n[i]=a}}return n}function v(e){var t=m(e),n=[];return r.each(e,(function(e){var r,i=e.coordinateSystem,a=i.getBaseAxis(),s=a.getExtent();if("category"===a.type)r=a.getBandWidth();else if("value"===a.type||"time"===a.type){var c=a.dim+"_"+a.index,u=t[c],l=Math.abs(s[1]-s[0]),d=a.scale.getExtent(),p=Math.abs(d[1]-d[0]);r=u?l/p*u:l}else{var g=e.getData();r=Math.abs(s[1]-s[0])/g.count()}var m=o(e.get("barWidth"),r),v=o(e.get("barMaxWidth"),r),y=o(e.get("barMinWidth")||1,r),_=e.get("barGap"),b=e.get("barCategoryGap");n.push({bandWidth:r,barWidth:m,barMaxWidth:v,barMinWidth:y,barGap:_,barCategoryGap:b,axisKey:f(a),stackId:h(e)})})),y(n)}function y(e){var t={};r.each(e,(function(e,n){var r=e.axisKey,i=e.bandWidth,o=t[r]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},a=o.stacks;t[r]=o;var s=e.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var c=e.barWidth;c&&!a[s].width&&(a[s].width=c,c=Math.min(o.remainedWidth,c),o.remainedWidth-=c);var u=e.barMaxWidth;u&&(a[s].maxWidth=u);var l=e.barMinWidth;l&&(a[s].minWidth=l);var d=e.barGap;null!=d&&(o.gap=d);var h=e.barCategoryGap;null!=h&&(o.categoryGap=h)}));var n={};return r.each(t,(function(e,t){n[t]={};var i=e.stacks,a=e.bandWidth,s=o(e.categoryGap,a),c=o(e.gap,1),u=e.remainedWidth,l=e.autoWidthCount,d=(u-s)/(l+(l-1)*c);d=Math.max(d,0),r.each(i,(function(e){var t=e.maxWidth,n=e.minWidth;if(e.width){r=e.width;t&&(r=Math.min(r,t)),n&&(r=Math.max(r,n)),e.width=r,u-=r+c*r,l--}else{var r=d;t&&t<r&&(r=Math.min(t,u)),n&&n>r&&(r=n),r!==d&&(e.width=r,u-=r+c*r,l--)}})),d=(u-s)/(l+(l-1)*c),d=Math.max(d,0);var h,f=0;r.each(i,(function(e,t){e.width||(e.width=d),h=e,f+=e.width*(1+c)})),h&&(f-=h.width*c);var p=-f/2;r.each(i,(function(e,r){n[t][r]=n[t][r]||{bandWidth:a,offset:p,width:e.width},p+=e.width*(1+c)}))})),n}function _(e,t,n){if(e&&t){var r=e[f(t)];return null!=r&&null!=n&&(r=r[h(n)]),r}}function b(e,t){var n=g(e,t),i=v(n),o={},a={};r.each(n,(function(e){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),c=h(e),u=i[f(r)][c],l=u.offset,d=u.width,p=n.getOtherAxis(r),g=e.get("barMinHeight")||0;o[c]=o[c]||[],a[c]=a[c]||[],t.setLayout({bandWidth:u.bandWidth,offset:l,size:d});for(var m=t.mapDimension(p.dim),v=t.mapDimension(r.dim),y=s(t,m),_=p.isHorizontal(),b=I(r,p,y),S=0,x=t.count();S<x;S++){var w,C,M,T,k=t.get(m,S),E=t.get(v,S),A=k>=0?"p":"n",D=b;if(y&&(o[c][E]||(o[c][E]={p:b,n:b}),D=o[c][E][A]),_){var O=n.dataToPoint([k,E]);w=D,C=O[1]+l,M=O[0]-b,T=d,Math.abs(M)<g&&(M=(M<0?-1:1)*g),isNaN(M)||y&&(o[c][E][A]+=M)}else{O=n.dataToPoint([E,k]);w=O[0]+l,C=D,M=d,T=O[1]-b,Math.abs(T)<g&&(T=(T<=0?-1:1)*g),isNaN(T)||y&&(o[c][E][A]+=T)}t.setItemLayout(S,{x:w,y:C,width:M,height:T})}}),this)}var S={seriesType:"bar",plan:c(),reset:function(e){if(x(e)&&w(e)){var t=e.getData(),n=e.coordinateSystem,r=n.grid.getRect(),i=n.getBaseAxis(),o=n.getOtherAxis(i),a=t.mapDimension(o.dim),s=t.mapDimension(i.dim),c=o.isHorizontal(),u=c?0:1,h=_(v([e]),i,e).width;return h>l||(h=l),{progress:f}}function f(e,t){var l,f=e.count,p=new d(2*f),g=new d(2*f),m=new d(f),v=[],y=[],_=0,b=0;while(null!=(l=e.next()))y[u]=t.get(a,l),y[1-u]=t.get(s,l),v=n.dataToPoint(y,null,v),g[_]=c?r.x+r.width:v[0],p[_++]=v[0],g[_]=c?v[1]:r.y+r.height,p[_++]=v[1],m[b++]=l;t.setLayout({largePoints:p,largeDataIndices:m,largeBackgroundPoints:g,barWidth:h,valueAxisStart:I(i,o,!1),backgroundStart:c?r.x:r.y,valueAxisHorizontal:c})}}};function x(e){return e.coordinateSystem&&"cartesian2d"===e.coordinateSystem.type}function w(e){return e.pipelineContext&&e.pipelineContext.large}function I(e,t,n){return t.toGlobalCoord(t.dataToCoord("log"===t.type?1:0))}t.getLayoutOnAxis=p,t.prepareLayoutBarSeries=g,t.makeColumnLayout=v,t.retrieveColumnLayout=_,t.layout=b,t.largeLayout=S},"9d7e":function(e,t,n){"use strict";t.__esModule=!0;var r="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};t.default=function(e){function t(e){for(var t=arguments.length,n=Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];return 1===n.length&&"object"===r(n[0])&&(n=n[0]),n&&n.hasOwnProperty||(n={}),e.replace(o,(function(t,r,o,a){var s=void 0;return"{"===e[a-1]&&"}"===e[a+t.length]?o:(s=(0,i.hasOwn)(n,o)?n[o]:null,null===s||void 0===s?"":s)}))}return t};var i=n("8122"),o=/(%|)\{([0-9a-zA-Z_]+)\}/g},"9d85":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.changeDefaultConfig=m,Object.defineProperty(t,"colorConfig",{enumerable:!0,get:function(){return r.colorConfig}}),Object.defineProperty(t,"gridConfig",{enumerable:!0,get:function(){return i.gridConfig}}),Object.defineProperty(t,"xAxisConfig",{enumerable:!0,get:function(){return o.xAxisConfig}}),Object.defineProperty(t,"yAxisConfig",{enumerable:!0,get:function(){return o.yAxisConfig}}),Object.defineProperty(t,"titleConfig",{enumerable:!0,get:function(){return a.titleConfig}}),Object.defineProperty(t,"lineConfig",{enumerable:!0,get:function(){return s.lineConfig}}),Object.defineProperty(t,"barConfig",{enumerable:!0,get:function(){return c.barConfig}}),Object.defineProperty(t,"pieConfig",{enumerable:!0,get:function(){return u.pieConfig}}),Object.defineProperty(t,"radarAxisConfig",{enumerable:!0,get:function(){return l.radarAxisConfig}}),Object.defineProperty(t,"radarConfig",{enumerable:!0,get:function(){return d.radarConfig}}),Object.defineProperty(t,"gaugeConfig",{enumerable:!0,get:function(){return h.gaugeConfig}}),Object.defineProperty(t,"legendConfig",{enumerable:!0,get:function(){return f.legendConfig}}),t.keys=void 0;var r=n("f3cb"),i=n("49bc"),o=n("c930"),a=n("887c"),s=n("6eb9"),c=n("f111"),u=n("222a"),l=n("0cd4"),d=n("3938"),h=n("cc6d"),f=n("60f1"),p=n("becb"),g={colorConfig:r.colorConfig,gridConfig:i.gridConfig,xAxisConfig:o.xAxisConfig,yAxisConfig:o.yAxisConfig,titleConfig:a.titleConfig,lineConfig:s.lineConfig,barConfig:c.barConfig,pieConfig:u.pieConfig,radarAxisConfig:l.radarAxisConfig,radarConfig:d.radarConfig,gaugeConfig:h.gaugeConfig,legendConfig:f.legendConfig};function m(e,t){g["".concat(e,"Config")]?(0,p.deepMerge)(g["".concat(e,"Config")],t):console.warn("Change default config Error - Invalid key!")}var v=["color","title","legend","xAxis","yAxis","grid","radarAxis","line","bar","pie","radar","gauge"];t.keys=v},"9e1f":function(e,t,n){},"9e2e":function(e,t,n){var r=n("a73c"),i=n("9850"),o=n("82eb"),a=o.WILL_BE_RESTORED,s=new i,c=function(){};c.prototype={constructor:c,drawRectText:function(e,t){var n=this.style;t=n.textRect||t,this.__dirty&&r.normalizeTextStyle(n,!0);var i=n.text;if(null!=i&&(i+=""),r.needDrawText(i,n)){e.save();var o=this.transform;n.transformText?this.setTransform(e):o&&(s.copy(t),s.applyTransform(o),t=s),r.renderText(this,e,i,n,t,a),e.restore()}}};var u=c;e.exports=u},"9e47":function(e,t,n){var r=n("6d8b"),i=n("71ad"),o=n("6cb7"),a=n("f934"),s=a.getLayoutParams,c=a.mergeLayoutParam,u=n("8e43"),l=["value","category","time","log"];function d(e,t,n,a){r.each(l,(function(o){t.extend({type:e+"Axis."+o,mergeDefaultAndTheme:function(t,i){var a=this.layoutMode,u=a?s(t):{},l=i.getTheme();r.merge(t,l.get(o+"Axis")),r.merge(t,this.getDefaultOption()),t.type=n(e,t),a&&c(t,u,a)},optionUpdated:function(){var e=this.option;"category"===e.type&&(this.__ordinalMeta=u.createByAxisModel(this))},getCategories:function(e){var t=this.option;if("category"===t.type)return e?t.data:this.__ordinalMeta.categories},getOrdinalMeta:function(){return this.__ordinalMeta},defaultOption:r.mergeAll([{},i[o+"Axis"],a],!0)})})),o.registerSubTypeDefaulter(e+"Axis",r.curry(n,e))}e.exports=d},"9e87":function(e,t,n){var r=n("3eba"),i=n("6d8b"),o=n("50e5");r.registerAction("dataZoom",(function(e,t){var n=o.createLinkedNodesFinder(i.bind(t.eachComponent,t,"dataZoom"),o.eachAxisDim,(function(e,t){return e.get(t.axisIndex)})),r=[];t.eachComponent({mainType:"dataZoom",query:e},(function(e,t){r.push.apply(r,n(e).nodes)})),i.each(r,(function(t,n){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})}))}))},"9ed3":function(e,t,n){"use strict";var r=n("ae93").IteratorPrototype,i=n("7c73"),o=n("5c6c"),a=n("d44e"),s=n("3f8c"),c=function(){return this};e.exports=function(e,t,n,u){var l=t+" Iterator";return e.prototype=i(r,{next:o(+!u,n)}),a(e,l,!1,!0),s[l]=c,e}},"9f51":function(e,t,n){var r=n("857d"),i=r.normalizeRadian,o=2*Math.PI;function a(e,t,n,r,a,s,c,u,l){if(0===c)return!1;var d=c;u-=e,l-=t;var h=Math.sqrt(u*u+l*l);if(h-d>n||h+d<n)return!1;if(Math.abs(r-a)%o<1e-4)return!0;if(s){var f=r;r=i(a),a=i(f)}else r=i(r),a=i(a);r>a&&(a+=o);var p=Math.atan2(l,u);return p<0&&(p+=o),p>=r&&p<=a||p+o>=r&&p+o<=a}t.containStroke=a},"9f7f":function(e,t,n){var r=n("d039"),i=n("da84"),o=i.RegExp,a=r((function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),s=a||r((function(){return!o("a","y").sticky})),c=a||r((function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")}));e.exports={BROKEN_CARET:c,MISSED_STICKY:s,UNSUPPORTED_Y:a}},"9f82":function(e,t,n){var r=n("ee1a"),i=r.isDimensionStacked,o=n("6d8b"),a=o.map;function s(e,t,n){var r,o=e.getBaseAxis(),s=e.getOtherAxis(o),u=c(s,n),l=o.dim,d=s.dim,h=t.mapDimension(d),f=t.mapDimension(l),p="x"===d||"radius"===d?1:0,g=a(e.dimensions,(function(e){return t.mapDimension(e)})),m=t.getCalculationInfo("stackResultDimension");return(r|=i(t,g[0]))&&(g[0]=m),(r|=i(t,g[1]))&&(g[1]=m),{dataDimsForPoint:g,valueStart:u,valueAxisDim:d,baseAxisDim:l,stacked:!!r,valueDim:h,baseDim:f,baseDataOffset:p,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function c(e,t){var n=0,r=e.scale.getExtent();return"start"===t?n=r[0]:"end"===t?n=r[1]:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]),n}function u(e,t,n,r){var i=NaN;e.stacked&&(i=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=e.valueStart);var o=e.baseDataOffset,a=[];return a[o]=n.get(e.baseDim,r),a[1-o]=i,t.dataToPoint(a)}t.prepareDataCoordInfo=s,t.getStackedOnPoint=u},"9fa3":function(e,t,n){var r=n("4ab1"),i=n("6d8b"),o=n("1687");function a(e,t){r.call(this,e,t,"clipPath","__clippath_in_use__")}i.inherits(a,r),a.prototype.update=function(e){var t=this.getSvgElement(e);t&&this.updateDom(t,e.__clipPaths,!1);var n=this.getTextSvgElement(e);n&&this.updateDom(n,e.__clipPaths,!0),this.markUsed(e)},a.prototype.updateDom=function(e,t,n){if(t&&t.length>0){var r,i,a=this.getDefs(!0),s=t[0],c=n?"_textDom":"_dom";s[c]?(i=s[c].getAttribute("id"),r=s[c],a.contains(r)||a.appendChild(r)):(i="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,r=this.createElement("clipPath"),r.setAttribute("id",i),a.appendChild(r),s[c]=r);var u=this.getSvgProxy(s);if(s.transform&&s.parent.invTransform&&!n){var l=Array.prototype.slice.call(s.transform);o.mul(s.transform,s.parent.invTransform,s.transform),u.brush(s),s.transform=l}else u.brush(s);var d=this.getSvgElement(s);r.innerHTML="",r.appendChild(d.cloneNode()),e.setAttribute("clip-path","url(#"+i+")"),t.length>1&&this.updateDom(r,t.slice(1),n)}else e&&e.setAttribute("clip-path","none")},a.prototype.markUsed=function(e){var t=this;e.__clipPaths&&i.each(e.__clipPaths,(function(e){e._dom&&r.prototype.markUsed.call(t,e._dom),e._textDom&&r.prototype.markUsed.call(t,e._textDom)}))};var s=a;e.exports=s},a016:function(e,t,n){var r=n("4f85"),i=n("e46b"),o=n("6d8b"),a=n("eda2"),s=a.encodeHTML,c=n("c4a3"),u=r.extend({type:"series.radar",dependencies:["radar"],init:function(e){u.superApply(this,"init",arguments),this.legendVisualProvider=new c(o.bind(this.getData,this),o.bind(this.getRawData,this))},getInitialData:function(e,t){return i(this,{generateCoord:"indicator_",generateCoordCount:1/0})},formatTooltip:function(e,t,n,r){var i=this.getData(),a=this.coordinateSystem,c=a.getIndicatorAxes(),u=this.getData().getName(e),l="html"===r?"<br/>":"\n";return s(""===u?this.name:u)+l+o.map(c,(function(t,n){var r=i.get(i.mapDimension(t.dim),e);return s(t.name+" : "+r)})).join(l)},getTooltipPosition:function(e){if(null!=e)for(var t=this.getData(),n=this.coordinateSystem,r=t.getValues(o.map(n.dimensions,(function(e){return t.mapDimension(e)})),e,!0),i=0,a=r.length;i<a;i++)if(!isNaN(r[i])){var s=n.getIndicatorAxes();return n.coordToPoint(s[i].dataToCoord(r[i]),i)}},defaultOption:{zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid"},label:{position:"top"},symbol:"emptyCircle",symbolSize:4}}),l=u;e.exports=l},a04b:function(e,t,n){var r=n("c04e"),i=n("d9b5");e.exports=function(e){var t=r(e,"string");return i(t)?t:t+""}},a04e:function(e,t,n){var r=n("6cb7");r.registerSubTypeDefaulter("timeline",(function(){return"slider"}))},a078:function(e,t,n){var r=n("0366"),i=n("c65b"),o=n("5087"),a=n("7b0b"),s=n("07fa"),c=n("9a1f"),u=n("35a1"),l=n("e95a"),d=n("ebb5").aTypedArrayConstructor;e.exports=function(e){var t,n,h,f,p,g,m=o(this),v=a(e),y=arguments.length,_=y>1?arguments[1]:void 0,b=void 0!==_,S=u(v);if(S&&!l(S)){p=c(v,S),g=p.next,v=[];while(!(f=i(g,p)).done)v.push(f.value)}for(b&&y>2&&(_=r(_,arguments[2])),n=s(v),h=new(d(m))(n),t=0;n>t;t++)h[t]=b?_(v[t],t):v[t];return h}},a143:function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.radarAxis=f;var i=r(n("278c")),o=r(n("9523")),a=r(n("448a")),s=n("18ad"),c=n("9d85"),u=n("5557"),l=n("becb");function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){(0,o["default"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.radar,r=[];n&&(r=p(n),r=g(r,e),r=m(r,e),r=v(r),r=y(r),r=_(r),r=[r]);var i=r;r.length&&!r[0].show&&(i=[]),(0,s.doUpdate)({chart:e,series:i,key:"radarAxisSplitArea",getGraphConfig:b,beforeUpdate:w,beforeChange:I}),(0,s.doUpdate)({chart:e,series:i,key:"radarAxisSplitLine",getGraphConfig:C,beforeUpdate:k,beforeChange:E}),(0,s.doUpdate)({chart:e,series:i,key:"radarAxisLine",getGraphConfig:A}),(0,s.doUpdate)({chart:e,series:i,key:"radarAxisLable",getGraphConfig:R}),e.radarAxis=r[0]}function p(e){return(0,l.deepMerge)((0,u.deepClone)(c.radarAxisConfig),e)}function g(e,t){var n=t.render.area,r=e.center;return e.centerPos=r.map((function(e,t){return"number"===typeof e?e:parseInt(e)/100*n[t]})),e}function m(e,t){var n=t.render.area,r=e.splitNum,i=e.radius,o=Math.min.apply(Math,(0,a["default"])(n))/2;"number"!==typeof i&&(i=parseInt(i)/100*o);var s=i/r;return e.ringRadius=new Array(r).fill(0).map((function(e,t){return s*(t+1)})),e.radius=i,e}function v(e){var t=e.indicator,n=e.centerPos,r=e.radius,i=e.startAngle,o=2*Math.PI,s=t.length,c=o/s,l=new Array(s).fill(0).map((function(e,t){return c*t+i}));return e.axisLineAngles=l,e.axisLinePosition=l.map((function(e){return u.getCircleRadianPoint.apply(void 0,(0,a["default"])(n).concat([r,e]))})),e}function y(e){var t=e.ringRadius,n=t[0]/2;return e.areaRadius=t.map((function(e){return e-n})),e}function _(e){var t=e.axisLineAngles,n=e.centerPos,r=e.radius,i=e.axisLabel;return r+=i.labelGap,e.axisLabelPosition=t.map((function(e){return u.getCircleRadianPoint.apply(void 0,(0,a["default"])(n).concat([r,e]))})),e}function b(e){var t=e.areaRadius,n=e.polygon,r=e.animationCurve,i=e.animationFrame,o=e.rLevel,a=n?"regPolygon":"ring";return t.map((function(t,n){return{name:a,index:o,visible:e.splitArea.show,animationCurve:r,animationFrame:i,shape:S(e,n),style:x(e,n)}}))}function S(e,t){var n=e.polygon,r=e.areaRadius,i=e.indicator,o=e.centerPos,a=i.length,s={rx:o[0],ry:o[1],r:r[t]};return n&&(s.side=a),s}function x(e,t){var n=e.splitArea,r=e.ringRadius,i=e.axisLineAngles,o=e.polygon,s=e.centerPos,c=n.color,d=n.style;d=h({fill:"rgba(0, 0, 0, 0)"},d);var f=r[0]-0;if(o){var p=u.getCircleRadianPoint.apply(void 0,(0,a["default"])(s).concat([r[0],i[0]])),g=u.getCircleRadianPoint.apply(void 0,(0,a["default"])(s).concat([r[0],i[1]]));f=(0,l.getPointToLineDistance)(s,p,g)}if(d=(0,l.deepMerge)((0,u.deepClone)(d,!0),{lineWidth:f}),!c.length)return d;var m=c.length;return(0,l.deepMerge)(d,{stroke:c[t%m]})}function w(e,t,n,r){var i=e[n];if(i){var o=r.chart.render,a=t.polygon,s=i[0].name,c=a?"regPolygon":"ring",u=c!==s;u&&(i.forEach((function(e){return o.delGraph(e)})),e[n]=null)}}function I(e,t){var n=t.shape.side;"number"===typeof n&&(e.shape.side=n)}function C(e){var t=e.ringRadius,n=e.polygon,r=e.animationCurve,i=e.animationFrame,o=e.rLevel,a=n?"regPolygon":"ring";return t.map((function(t,n){return{name:a,index:o,animationCurve:r,animationFrame:i,visible:e.splitLine.show,shape:M(e,n),style:T(e,n)}}))}function M(e,t){var n=e.ringRadius,r=e.centerPos,i=e.indicator,o=e.polygon,a={rx:r[0],ry:r[1],r:n[t]},s=i.length;return o&&(a.side=s),a}function T(e,t){var n=e.splitLine,r=n.color,i=n.style;if(i=h({fill:"rgba(0, 0, 0, 0)"},i),!r.length)return i;var o=r.length;return(0,l.deepMerge)(i,{stroke:r[t%o]})}function k(e,t,n,r){var i=e[n];if(i){var o=r.chart.render,a=t.polygon,s=i[0].name,c=a?"regPolygon":"ring",u=c!==s;u&&(i.forEach((function(e){return o.delGraph(e)})),e[n]=null)}}function E(e,t){var n=t.shape.side;"number"===typeof n&&(e.shape.side=n)}function A(e){var t=e.axisLinePosition,n=e.animationCurve,r=e.animationFrame,i=e.rLevel;return t.map((function(t,o){return{name:"polyline",index:i,visible:e.axisLine.show,animationCurve:n,animationFrame:r,shape:D(e,o),style:O(e,o)}}))}function D(e,t){var n=e.centerPos,r=e.axisLinePosition,i=[n,r[t]];return{points:i}}function O(e,t){var n=e.axisLine,r=n.color,i=n.style;if(!r.length)return i;var o=r.length;return(0,l.deepMerge)(i,{stroke:r[t%o]})}function R(e){var t=e.axisLabelPosition,n=e.animationCurve,r=e.animationFrame,i=e.rLevel;return t.map((function(t,o){return{name:"text",index:i,visible:e.axisLabel.show,animationCurve:n,animationFrame:r,shape:L(e,o),style:P(e,o)}}))}function L(e,t){var n=e.axisLabelPosition,r=e.indicator;return{content:r[t].name,position:n[t]}}function P(e,t){var n=e.axisLabel,r=(0,i["default"])(e.centerPos,2),o=r[0],a=r[1],s=e.axisLabelPosition,c=n.color,u=n.style,d=(0,i["default"])(s[t],2),h=d[0],f=d[1],p=h>o?"left":"right",g=f>a?"top":"bottom";if(u=(0,l.deepMerge)({textAlign:p,textBaseline:g},u),!c.length)return u;var m=c.length;return(0,l.deepMerge)(u,{fill:c[t%m]})}},a157:function(e,t,n){},a15a:function(e,t,n){var r=n("6d8b"),i=n("2306"),o=n("9850"),a=n("e86a"),s=a.calculateTextPosition,c=i.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,o=t.height/2;e.moveTo(n,r-o),e.lineTo(n+i,r+o),e.lineTo(n-i,r+o),e.closePath()}}),u=i.extendShape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,o=t.height/2;e.moveTo(n,r-o),e.lineTo(n+i,r),e.lineTo(n,r+o),e.lineTo(n-i,r),e.closePath()}}),l=i.extendShape({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,r=t.y,i=t.width/5*3,o=Math.max(i,t.height),a=i/2,s=a*a/(o-a),c=r-o+a+s,u=Math.asin(s/a),l=Math.cos(u)*a,d=Math.sin(u),h=Math.cos(u),f=.6*a,p=.7*a;e.moveTo(n-l,c+s),e.arc(n,c,a,Math.PI-u,2*Math.PI+u),e.bezierCurveTo(n+l-d*f,c+s+h*f,n,r-p,n,r),e.bezierCurveTo(n,r-p,n-l+d*f,c+s+h*f,n-l,c+s),e.closePath()}}),d=i.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,r=t.width,i=t.x,o=t.y,a=r/3*2;e.moveTo(i,o),e.lineTo(i+a,o+n),e.lineTo(i,o+n/4*3),e.lineTo(i-a,o+n),e.lineTo(i,o),e.closePath()}}),h={line:i.Line,rect:i.Rect,roundRect:i.Rect,square:i.Rect,circle:i.Circle,diamond:u,pin:l,arrow:d,triangle:c},f={line:function(e,t,n,r,i){i.x1=e,i.y1=t+r/2,i.x2=e+n,i.y2=t+r/2},rect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r},roundRect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(e,t,n,r,i){var o=Math.min(n,r);i.x=e,i.y=t,i.width=o,i.height=o},circle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.r=Math.min(n,r)/2},diamond:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r},pin:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},arrow:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},triangle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r}},p={};r.each(h,(function(e,t){p[t]=new e}));var g=i.extendShape({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=s(e,t,n),i=this.shape;return i&&"pin"===i.symbolType&&"inside"===t.textPosition&&(r.y=n.y+.4*n.height),r},buildPath:function(e,t,n){var r=t.symbolType;if("none"!==r){var i=p[r];i||(r="rect",i=p[r]),f[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function m(e,t){if("image"!==this.type){var n=this.style,r=this.shape;r&&"line"===r.symbolType?n.stroke=e:this.__isEmptyBrush?(n.stroke=e,n.fill=t||"#fff"):(n.fill&&(n.fill=e),n.stroke&&(n.stroke=e)),this.dirty(!1)}}function v(e,t,n,r,a,s,c){var u,l=0===e.indexOf("empty");return l&&(e=e.substr(5,1).toLowerCase()+e.substr(6)),u=0===e.indexOf("image://")?i.makeImage(e.slice(8),new o(t,n,r,a),c?"center":"cover"):0===e.indexOf("path://")?i.makePath(e.slice(7),{},new o(t,n,r,a),c?"center":"cover"):new g({shape:{symbolType:e,x:t,y:n,width:r,height:a}}),u.__isEmptyBrush=l,u.setColor=m,u.setColor(s),u}t.createSymbol=v},a15b:function(e,t,n){"use strict";var r=n("23e7"),i=n("e330"),o=n("44ad"),a=n("fc6a"),s=n("a640"),c=i([].join),u=o!=Object,l=s("join",",");r({target:"Array",proto:!0,forced:u||!l},{join:function(e){return c(a(this),void 0===e?",":e)}})},a18f:function(e,t,n){var r=n("3a56"),i=r.extend({type:"dataZoom.inside",defaultOption:{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}});e.exports=i},a34a:function(e,t,n){e.exports=n("96cf")},a38d:function(e,t,n){var r=n("2306"),i=n("392f"),o=n("9680"),a=n("68ab"),s=r.extendShape({shape:{polyline:!1,curveness:0,segs:[]},buildPath:function(e,t){var n=t.segs,r=t.curveness;if(t.polyline)for(var i=0;i<n.length;){var o=n[i++];if(o>0){e.moveTo(n[i++],n[i++]);for(var a=1;a<o;a++)e.lineTo(n[i++],n[i++])}}else for(i=0;i<n.length;){var s=n[i++],c=n[i++],u=n[i++],l=n[i++];if(e.moveTo(s,c),r>0){var d=(s+u)/2-(c-l)*r,h=(c+l)/2-(u-s)*r;e.quadraticCurveTo(d,h,u,l)}else e.lineTo(u,l)}},findDataIndex:function(e,t){var n=this.shape,r=n.segs,i=n.curveness;if(n.polyline)for(var s=0,c=0;c<r.length;){var u=r[c++];if(u>0)for(var l=r[c++],d=r[c++],h=1;h<u;h++){var f=r[c++],p=r[c++];if(o.containStroke(l,d,f,p))return s}s++}else for(s=0,c=0;c<r.length;){l=r[c++],d=r[c++],f=r[c++],p=r[c++];if(i>0){var g=(l+f)/2-(d-p)*i,m=(d+p)/2-(f-l)*i;if(a.containStroke(l,d,g,m,f,p))return s}else if(o.containStroke(l,d,f,p))return s;s++}return-1}});function c(){this.group=new r.Group}var u=c.prototype;u.isPersistent=function(){return!this._incremental},u.updateData=function(e){this.group.removeAll();var t=new s({rectHover:!0,cursor:"default"});t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e),this.group.add(t),this._incremental=null},u.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clearIncremental(),e.count()>5e5?(this._incremental||(this._incremental=new i({silent:!0})),this.group.add(this._incremental)):this._incremental=null},u.incrementalUpdate=function(e,t){var n=new s;n.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(n,t,!!this._incremental),this._incremental?this._incremental.addDisplayable(n,!0):(n.rectHover=!0,n.cursor="default",n.__startIndex=e.start,this.group.add(n))},u.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},u._setCommon=function(e,t,n){var r=t.hostModel;e.setShape({polyline:r.get("polyline"),curveness:r.get("lineStyle.curveness")}),e.useStyle(r.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var i=t.getVisual("color");i&&e.setStyle("stroke",i),e.setStyle("fill"),n||(e.seriesIndex=r.seriesIndex,e.on("mousemove",(function(t){e.dataIndex=null;var n=e.findDataIndex(t.offsetX,t.offsetY);n>0&&(e.dataIndex=n+e.__startIndex)})))},u._clearIncremental=function(){var e=this._incremental;e&&e.clearDisplaybles()};var l=c;e.exports=l},a3de:function(e,t,n){"use strict";var r=!("undefined"===typeof window||!window.document||!window.document.createElement),i={canUseDOM:r,canUseWorkers:"undefined"!==typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};e.exports=i},a434:function(e,t,n){"use strict";var r=n("23e7"),i=n("da84"),o=n("23cb"),a=n("5926"),s=n("07fa"),c=n("7b0b"),u=n("65f0"),l=n("8418"),d=n("1dde"),h=d("splice"),f=i.TypeError,p=Math.max,g=Math.min,m=9007199254740991,v="Maximum allowed length exceeded";r({target:"Array",proto:!0,forced:!h},{splice:function(e,t){var n,r,i,d,h,y,_=c(this),b=s(_),S=o(e,b),x=arguments.length;if(0===x?n=r=0:1===x?(n=0,r=b-S):(n=x-2,r=g(p(a(t),0),b-S)),b+n-r>m)throw f(v);for(i=u(_,r),d=0;d<r;d++)h=S+d,h in _&&l(i,d,_[h]);if(i.length=r,n<r){for(d=S;d<b-r;d++)h=d+r,y=d+n,h in _?_[y]=_[h]:delete _[y];for(d=b;d>b-r+n;d--)delete _[d-1]}else if(n>r)for(d=b-r;d>S;d--)h=d+r-1,y=d+n-1,h in _?_[y]=_[h]:delete _[y];for(d=0;d<n;d++)_[d+S]=arguments[d+2];return _.length=b-r+n,i}})},a4b1:function(e,t,n){var r=n("3eba");n("00ba"),n("4d62");var i=n("98e7"),o=n("24b9"),a=n("d3f4");r.registerVisual(i("funnel")),r.registerLayout(o),r.registerProcessor(a("funnel"))},a4b4:function(e,t,n){var r=n("342f");e.exports=/web0s(?!.*chrome)/i.test(r)},a4d3:function(e,t,n){"use strict";var r=n("23e7"),i=n("da84"),o=n("d066"),a=n("2ba4"),s=n("c65b"),c=n("e330"),u=n("c430"),l=n("83ab"),d=n("4930"),h=n("d039"),f=n("1a2d"),p=n("e8b5"),g=n("1626"),m=n("861d"),v=n("3a9b"),y=n("d9b5"),_=n("825a"),b=n("7b0b"),S=n("fc6a"),x=n("a04b"),w=n("577e"),I=n("5c6c"),C=n("7c73"),M=n("df75"),T=n("241c"),k=n("057f"),E=n("7418"),A=n("06cf"),D=n("9bf2"),O=n("37e8"),R=n("d1e7"),L=n("f36a"),P=n("6eeb"),N=n("5692"),U=n("f772"),F=n("d012"),G=n("90e3"),V=n("b622"),j=n("e538"),B=n("746f"),z=n("d44e"),H=n("69f3"),W=n("b727").forEach,q=U("hidden"),$="Symbol",K="prototype",Y=V("toPrimitive"),J=H.set,X=H.getterFor($),Z=Object[K],Q=i.Symbol,ee=Q&&Q[K],te=i.TypeError,ne=i.QObject,re=o("JSON","stringify"),ie=A.f,oe=D.f,ae=k.f,se=R.f,ce=c([].push),ue=N("symbols"),le=N("op-symbols"),de=N("string-to-symbol-registry"),he=N("symbol-to-string-registry"),fe=N("wks"),pe=!ne||!ne[K]||!ne[K].findChild,ge=l&&h((function(){return 7!=C(oe({},"a",{get:function(){return oe(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=ie(Z,t);r&&delete Z[t],oe(e,t,n),r&&e!==Z&&oe(Z,t,r)}:oe,me=function(e,t){var n=ue[e]=C(ee);return J(n,{type:$,tag:e,description:t}),l||(n.description=t),n},ve=function(e,t,n){e===Z&&ve(le,t,n),_(e);var r=x(t);return _(n),f(ue,r)?(n.enumerable?(f(e,q)&&e[q][r]&&(e[q][r]=!1),n=C(n,{enumerable:I(0,!1)})):(f(e,q)||oe(e,q,I(1,{})),e[q][r]=!0),ge(e,r,n)):oe(e,r,n)},ye=function(e,t){_(e);var n=S(t),r=M(n).concat(we(n));return W(r,(function(t){l&&!s(be,n,t)||ve(e,t,n[t])})),e},_e=function(e,t){return void 0===t?C(e):ye(C(e),t)},be=function(e){var t=x(e),n=s(se,this,t);return!(this===Z&&f(ue,t)&&!f(le,t))&&(!(n||!f(this,t)||!f(ue,t)||f(this,q)&&this[q][t])||n)},Se=function(e,t){var n=S(e),r=x(t);if(n!==Z||!f(ue,r)||f(le,r)){var i=ie(n,r);return!i||!f(ue,r)||f(n,q)&&n[q][r]||(i.enumerable=!0),i}},xe=function(e){var t=ae(S(e)),n=[];return W(t,(function(e){f(ue,e)||f(F,e)||ce(n,e)})),n},we=function(e){var t=e===Z,n=ae(t?le:S(e)),r=[];return W(n,(function(e){!f(ue,e)||t&&!f(Z,e)||ce(r,ue[e])})),r};if(d||(Q=function(){if(v(ee,this))throw te("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?w(arguments[0]):void 0,t=G(e),n=function(e){this===Z&&s(n,le,e),f(this,q)&&f(this[q],t)&&(this[q][t]=!1),ge(this,t,I(1,e))};return l&&pe&&ge(Z,t,{configurable:!0,set:n}),me(t,e)},ee=Q[K],P(ee,"toString",(function(){return X(this).tag})),P(Q,"withoutSetter",(function(e){return me(G(e),e)})),R.f=be,D.f=ve,O.f=ye,A.f=Se,T.f=k.f=xe,E.f=we,j.f=function(e){return me(V(e),e)},l&&(oe(ee,"description",{configurable:!0,get:function(){return X(this).description}}),u||P(Z,"propertyIsEnumerable",be,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!d,sham:!d},{Symbol:Q}),W(M(fe),(function(e){B(e)})),r({target:$,stat:!0,forced:!d},{for:function(e){var t=w(e);if(f(de,t))return de[t];var n=Q(t);return de[t]=n,he[n]=t,n},keyFor:function(e){if(!y(e))throw te(e+" is not a symbol");if(f(he,e))return he[e]},useSetter:function(){pe=!0},useSimple:function(){pe=!1}}),r({target:"Object",stat:!0,forced:!d,sham:!l},{create:_e,defineProperty:ve,defineProperties:ye,getOwnPropertyDescriptor:Se}),r({target:"Object",stat:!0,forced:!d},{getOwnPropertyNames:xe,getOwnPropertySymbols:we}),r({target:"Object",stat:!0,forced:h((function(){E.f(1)}))},{getOwnPropertySymbols:function(e){return E.f(b(e))}}),re){var Ie=!d||h((function(){var e=Q();return"[null]"!=re([e])||"{}"!=re({a:e})||"{}"!=re(Object(e))}));r({target:"JSON",stat:!0,forced:Ie},{stringify:function(e,t,n){var r=L(arguments),i=t;if((m(t)||void 0!==e)&&!y(e))return p(t)||(t=function(e,t){if(g(i)&&(t=s(i,this,e,t)),!y(t))return t}),r[1]=t,a(re,null,r)}})}if(!ee[Y]){var Ce=ee.valueOf;P(ee,Y,(function(e){return s(Ce,this)}))}z(Q,$),F[q]=!0},a4fe:function(e,t,n){var r=n("3eba"),i="\0_ec_interaction_mutex";function o(e,t,n){var r=c(e);r[t]=n}function a(e,t,n){var r=c(e),i=r[t];i===n&&(r[t]=null)}function s(e,t){return!!c(e)[t]}function c(e){return e[i]||(e[i]={})}r.registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},(function(){})),t.take=o,t.release=a,t.isTaken=s},a630:function(e,t,n){var r=n("23e7"),i=n("4df4"),o=n("1c7e"),a=!o((function(e){Array.from(e)}));r({target:"Array",stat:!0,forced:a},{from:i})},a640:function(e,t,n){"use strict";var r=n("d039");e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){return 1},1)}))}},a666:function(e,t,n){var r=n("3eba"),i=n("6d8b"),o=n("2306"),a=n("0c41"),s="__seriesMapHighDown",c="__seriesMapCallKey",u=r.extendChartView({type:"map",render:function(e,t,n,r){if(!r||"mapToggleSelect"!==r.type||r.from!==this.uid){var i=this.group;if(i.removeAll(),!e.getHostGeoModel()){if(r&&"geoRoam"===r.type&&"series"===r.componentType&&r.seriesId===e.id){o=this._mapDraw;o&&i.add(o.group)}else if(e.needsDrawMap){var o=this._mapDraw||new a(n,!0);i.add(o.group),o.draw(e,t,n,this,r),this._mapDraw=o}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&t.getComponent("legend")&&this._renderSymbols(e,t,n)}}},remove:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},dispose:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},_renderSymbols:function(e,t,n){var r=e.originalData,a=this.group;r.each(r.mapDimension("value"),(function(t,n){if(!isNaN(t)){var u=r.getItemLayout(n);if(u&&u.point){var h=u.point,f=u.offset,p=new o.Circle({style:{fill:e.getData().getVisual("color")},shape:{cx:h[0]+9*f,cy:h[1],r:3},silent:!0,z2:8+(f?0:o.Z2_EMPHASIS_LIFT+1)});if(!f){var g=e.mainSeries.getData(),m=r.getName(n),v=g.indexOfName(m),y=r.getItemModel(n),_=y.getModel("label"),b=y.getModel("emphasis.label"),S=g.getItemGraphicEl(v),x=i.retrieve2(e.getFormattedLabel(v,"normal"),m),w=i.retrieve2(e.getFormattedLabel(v,"emphasis"),x),I=S[s],C=Math.random();if(!I){I=S[s]={};var M=i.curry(l,!0),T=i.curry(l,!1);S.on("mouseover",M).on("mouseout",T).on("emphasis",M).on("normal",T)}S[c]=C,i.extend(I,{recordVersion:C,circle:p,labelModel:_,hoverLabelModel:b,emphasisText:w,normalText:x}),d(I,!1)}a.add(p)}}}))}});function l(e){var t=this[s];t&&t.recordVersion===this[c]&&d(t,e)}function d(e,t){var n=e.circle,r=e.labelModel,i=e.hoverLabelModel,a=e.emphasisText,s=e.normalText;t?(n.style.extendFrom(o.setTextStyle({},i,{text:i.get("show")?a:null},{isRectText:!0,useInsideStyle:!1},!0)),n.__mapOriginalZ2=n.z2,n.z2+=o.Z2_EMPHASIS_LIFT):(o.setTextStyle(n.style,r,{text:r.get("show")?s:null,textPosition:r.getShallow("position")||"bottom"},{isRectText:!0,useInsideStyle:!1}),n.dirty(!1),null!=n.__mapOriginalZ2&&(n.z2=n.__mapOriginalZ2,n.__mapOriginalZ2=null))}e.exports=u},a6d4:function(e,t,n){"use strict";
/* @preserve
 * gcoord 0.3.2, geographic coordinate library
 * Copyright (c) 2021 Jiulong Hu <me@hujiulong.com>
 */
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var r=function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},i=Math.sin,o=Math.cos,a=Math.sqrt,s=Math.abs,c=Math.PI,u=6378245,l=.006693421622965823;function d(e,t){return e>=72.004&&e<=137.8347&&t>=.8293&&t<=55.8271}function h(e,t){var n=2*e-100+3*t+.2*t*t+.1*e*t+.2*a(s(e));return n+=2*(20*i(6*e*c)+20*i(2*e*c))/3,n+=2*(20*i(t*c)+40*i(t/3*c))/3,n+=2*(160*i(t/12*c)+320*i(t*c/30))/3,n}function f(e,t){var n=300+e+2*t+.1*e*e+.1*e*t+.1*a(s(e));return n+=2*(20*i(6*e*c)+20*i(2*e*c))/3,n+=2*(20*i(e*c)+40*i(e/3*c))/3,n+=2*(150*i(e/12*c)+300*i(e/30*c))/3,n}function p(e,t){var n=f(e-105,t-35),r=h(e-105,t-35),s=t/180*c,d=i(s);d=1-l*d*d;var p=a(d);return n=180*n/(u/p*o(s)*c),r=180*r/(u*(1-l)/(d*p)*c),[n,r]}function g(e){var t=e[0],n=e[1];if(!d(t,n))return[t,n];var r=p(t,n);return[t+r[0],n+r[1]]}function m(e){var t=e[0],n=e[1];if(!d(t,n))return[t,n];var r=[t,n],i=r[0],o=r[1],a=g([i,o]),c=a[0]-t,u=a[1]-n;while(s(c)>1e-6||s(u)>1e-6)i-=c,o-=u,a=g([i,o]),c=a[0]-t,u=a[1]-n;return[i,o]}var v=Math.sin,y=Math.cos,_=Math.atan2,b=Math.sqrt,S=Math.PI,x=3e3*S/180;function w(e){var t=e[0],n=e[1],r=t-.0065,i=n-.006,o=b(r*r+i*i)-2e-5*v(i*x),a=_(i,r)-3e-6*y(r*x),s=o*y(a),c=o*v(a);return[s,c]}function I(e){var t=e[0],n=e[1],r=t,i=n,o=b(r*r+i*i)+2e-5*v(i*x),a=_(i,r)+3e-6*y(r*x),s=o*y(a)+.0065,c=o*v(a)+.006;return[s,c]}var C=180/Math.PI,M=Math.PI/180,T=6378137,k=20037508.342789244;function E(e){return[e[0]*C/T,(.5*Math.PI-2*Math.atan(Math.exp(-e[1]/T)))*C]}function A(e){var t=Math.abs(e[0])<=180?e[0]:e[0]-360*(e[0]<0?-1:1),n=[T*t*M,T*Math.log(Math.tan(.25*Math.PI+.5*e[1]*M))];return n[0]>k&&(n[0]=k),n[0]<-k&&(n[0]=-k),n[1]>k&&(n[1]=k),n[1]<-k&&(n[1]=-k),n}var D,O,R,L,P,N,U=Math.abs,F=[12890594.86,8362377.87,5591021,3481989.83,1678043.12,0],G=[75,60,45,30,15,0],V=[[1.410526172116255e-8,898305509648872e-20,-1.9939833816331,200.9824383106796,-187.2403703815547,91.6087516669843,-23.38765649603339,2.57121317296198,-.03801003308653,17337981.2],[-7.435856389565537e-9,8983055097726239e-21,-.78625201886289,96.32687599759846,-1.85204757529826,-59.36935905485877,47.40033549296737,-16.50741931063887,2.28786674699375,10260144.86],[-3.030883460898826e-8,898305509983578e-20,.30071316287616,59.74293618442277,7.357984074871,-25.38371002664745,13.45380521110908,-3.29883767235584,.32710905363475,6856817.37],[-1.981981304930552e-8,8983055099779535e-21,.03278182852591,40.31678527705744,.65659298677277,-4.44255534477492,.85341911805263,.12923347998204,-.04625736007561,4482777.06],[3.09191371068437e-9,8983055096812155e-21,6995724062e-14,23.10934304144901,-.00023663490511,-.6321817810242,-.00663494467273,.03430082397953,-.00466043876332,2555164.4],[2.890871144776878e-9,8983055095805407e-21,-3.068298e-8,7.47137025468032,-353937994e-14,-.02145144861037,-1234426596e-14,.00010322952773,-323890364e-14,826088.5]],j=[[-.0015702102444,111320.7020616939,0x60e374c3105a3,-0x24bb4115e2e164,0x5cc55543bb0ae8,-0x7ce070193f3784,0x5e7ca61ddf8150,-0x261a578d8b24d0,0x665d60f3742ca,82.5],[.0008277824516172526,111320.7020463578,647795574.6671607,-4082003173.641316,10774905663.51142,-15171875531.51559,12053065338.62167,-5124939663.577472,913311935.9512032,67.5],[.00337398766765,111320.7020202162,4481351.045890365,-23393751.19931662,79682215.47186455,-115964993.2797253,97236711.15602145,-43661946.33752821,8477230.501135234,52.5],[.00220636496208,111320.7020209128,51751.86112841131,3796837.749470245,992013.7397791013,-1221952.21711287,1340652.697009075,-620943.6990984312,144416.9293806241,37.5],[-.0003441963504368392,111320.7020576856,278.2353980772752,2485758.690035394,6070.750963243378,54821.18345352118,9540.606633304236,-2710.55326746645,1405.483844121726,22.5],[-.0003218135878613132,111320.7020701615,.00369383431289,823725.6402795718,.46104986909093,2351.343141331292,1.58060784298199,8.77738589078284,.37238884252424,7.45]];function B(e,t,n){var r=U(t)/n[9],i=n[0]+n[1]*U(e),o=n[2]+n[3]*r+n[4]*Math.pow(r,2)+n[5]*Math.pow(r,3)+n[6]*Math.pow(r,4)+n[7]*Math.pow(r,5)+n[8]*Math.pow(r,6);return i*=e<0?-1:1,o*=t<0?-1:1,[i,o]}function z(e){for(var t=e[0],n=e[1],r=[],i=0;i<G.length;i++)if(U(n)>G[i]){r=j[i];break}return B(t,n,r)}function H(e){for(var t=e[0],n=e[1],r=[],i=0;i<F.length;i++)if(n>=F[i]){r=V[i];break}return B(t,n,r)}function W(e,t){if(!e)throw new Error(t)}function q(e){return!!e&&"[object Array]"===Object.prototype.toString.call(e)}function $(e){return!isNaN(Number(e))&&null!==e&&!q(e)}function K(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.length-1;return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var i=n,o=e[n].apply(null,t);while(i--)o=e[i].call(null,o);return o}}function Y(e,t,n){if(void 0===n&&(n=!1),null!==e)for(var r,i,o,a,s,c,u,l,d=0,h=0,f=e.type,p="FeatureCollection"===f,g="Feature"===f,m=p?e.features.length:1,v=0;v<m;v++){u=p?e.features[v].geometry:g?e.geometry:e,l=!!u&&"GeometryCollection"===u.type,s=l?u.geometries.length:1;for(var y=0;y<s;y++){var _=0,b=0;if(a=l?u.geometries[y]:u,null!==a){var S=a.type;switch(d=!n||"Polygon"!==S&&"MultiPolygon"!==S?0:1,S){case null:break;case"Point":if(c=a.coordinates,!1===t(c,h,v,_,b))return!1;h++,_++;break;case"LineString":case"MultiPoint":for(c=a.coordinates,r=0;r<c.length;r++){if(!1===t(c[r],h,v,_,b))return!1;h++,"MultiPoint"===S&&_++}"LineString"===S&&_++;break;case"Polygon":case"MultiLineString":for(c=a.coordinates,r=0;r<c.length;r++){for(i=0;i<c[r].length-d;i++){if(!1===t(c[r][i],h,v,_,b))return!1;h++}"MultiLineString"===S&&_++,"Polygon"===S&&b++}"Polygon"===S&&_++;break;case"MultiPolygon":for(c=a.coordinates,r=0;r<c.length;r++){for(b=0,i=0;i<c[r].length;i++){for(o=0;o<c[r][i].length-d;o++){if(!1===t(c[r][i][o],h,v,_,b))return!1;h++}b++}_++}break;case"GeometryCollection":for(r=0;r<a.geometries.length;r++)if(!1===Y(a.geometries[r],t,n))return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}(function(e){e["WGS84"]="WGS84",e["WGS1984"]="WGS84",e["EPSG4326"]="WGS84",e["GCJ02"]="GCJ02",e["AMap"]="GCJ02",e["BD09"]="BD09",e["BD09LL"]="BD09",e["Baidu"]="BD09",e["BMap"]="BD09",e["BD09MC"]="BD09MC",e["BD09Meter"]="BD09MC",e["EPSG3857"]="EPSG3857",e["EPSG900913"]="EPSG3857",e["EPSG102100"]="EPSG3857",e["WebMercator"]="EPSG3857",e["WM"]="EPSG3857"})(N||(N={}));var J={to:(D={},D[N.GCJ02]=g,D[N.BD09]=K(I,g),D[N.BD09MC]=K(z,I,g),D[N.EPSG3857]=A,D)},X={to:(O={},O[N.WGS84]=m,O[N.BD09]=I,O[N.BD09MC]=K(z,I),O[N.EPSG3857]=K(A,m),O)},Z={to:(R={},R[N.WGS84]=K(m,w),R[N.GCJ02]=w,R[N.EPSG3857]=K(A,m,w),R[N.BD09MC]=z,R)},Q={to:(L={},L[N.WGS84]=E,L[N.GCJ02]=K(g,E),L[N.BD09]=K(I,g,E),L[N.BD09MC]=K(z,I,g,E),L)},ee={to:(P={},P[N.WGS84]=K(m,w,H),P[N.GCJ02]=K(w,H),P[N.EPSG3857]=K(A,m,w,H),P[N.BD09]=H,P)},te={WGS84:J,GCJ02:X,BD09:Z,EPSG3857:Q,BD09MC:ee};function ne(e,t,n){if(W(!!e,"The args[0] input coordinate is required"),W(!!t,"The args[1] original coordinate system is required"),W(!!n,"The args[2] target coordinate system is required"),t===n)return e;var r=te[t];W(!!r,"Invalid original coordinate system: "+t);var i=r.to[n];W(!!i,"Invalid target coordinate system: "+n);var o=typeof e;if(W("string"===o||"object"===o,"Invalid input coordinate type: "+o),"string"===o)try{e=JSON.parse(e)}catch(c){throw new Error("Invalid input coordinate: "+e)}var a=!1;q(e)&&(W(e.length>=2,"Invalid input coordinate: "+e),W($(e[0])&&$(e[1]),"Invalid input coordinate: "+e),e=e.map(Number),a=!0);var s=i;return a?s(e):(Y(e,(function(e){var t;t=s(e),e[0]=t[0],e[1]=t[1]})),e)}var re=r(r({},N),{CRSTypes:N,transform:ne});t["a"]=re},a736:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"mergeColor",{enumerable:!0,get:function(){return r.mergeColor}}),Object.defineProperty(t,"title",{enumerable:!0,get:function(){return i.title}}),Object.defineProperty(t,"grid",{enumerable:!0,get:function(){return o.grid}}),Object.defineProperty(t,"axis",{enumerable:!0,get:function(){return a.axis}}),Object.defineProperty(t,"line",{enumerable:!0,get:function(){return s.line}}),Object.defineProperty(t,"bar",{enumerable:!0,get:function(){return c.bar}}),Object.defineProperty(t,"pie",{enumerable:!0,get:function(){return u.pie}}),Object.defineProperty(t,"radarAxis",{enumerable:!0,get:function(){return l.radarAxis}}),Object.defineProperty(t,"radar",{enumerable:!0,get:function(){return d.radar}}),Object.defineProperty(t,"gauge",{enumerable:!0,get:function(){return h.gauge}}),Object.defineProperty(t,"legend",{enumerable:!0,get:function(){return f.legend}});var r=n("8a1d"),i=n("873c"),o=n("46bb"),a=n("0680"),s=n("252f"),c=n("204e"),u=n("729e"),l=n("a143"),d=n("4eb1"),h=n("1f55"),f=n("60f7")},a73c:function(e,t,n){var r=n("6d8b"),i=r.retrieve2,o=r.retrieve3,a=r.each,s=r.normalizeCssArray,c=r.isString,u=r.isObject,l=n("e86a"),d=n("5693"),h=n("5e76"),f=n("7d6d"),p=n("82eb"),g=p.ContextCachedBy,m=p.WILL_BE_RESTORED,v=l.DEFAULT_FONT,y={left:1,right:1,center:1},_={top:1,bottom:1,middle:1},b=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]],S={},x={};function w(e){return I(e),a(e.rich,I),e}function I(e){if(e){e.font=l.makeFont(e);var t=e.textAlign;"middle"===t&&(t="center"),e.textAlign=null==t||y[t]?t:"left";var n=e.textVerticalAlign||e.textBaseline;"center"===n&&(n="middle"),e.textVerticalAlign=null==n||_[n]?n:"top";var r=e.textPadding;r&&(e.textPadding=s(e.textPadding))}}function C(e,t,n,r,i,o){r.rich?T(e,t,n,r,i,o):M(e,t,n,r,i,o)}function M(e,t,n,r,i,o){"use strict";var a,s=D(r),c=!1,u=t.__attrCachedBy===g.PLAIN_TEXT;o!==m?(o&&(a=o.style,c=!s&&u&&a),t.__attrCachedBy=s?g.NONE:g.PLAIN_TEXT):u&&(t.__attrCachedBy=g.NONE);var d=r.font||v;c&&d===(a.font||v)||(t.font=d);var h=e.__computedFont;e.__styleFont!==d&&(e.__styleFont=d,h=e.__computedFont=t.font);var p=r.textPadding,y=r.textLineHeight,_=e.__textCotentBlock;_&&!e.__dirtyText||(_=e.__textCotentBlock=l.parsePlainText(n,h,p,y,r.truncate));var S=_.outerHeight,w=_.lines,I=_.lineHeight,C=L(x,e,r,i),M=C.baseX,T=C.baseY,k=C.textAlign||"left",A=C.textVerticalAlign;E(t,r,i,M,T);var R=l.adjustTextY(T,S,A),P=M,F=R;if(s||p){var V=l.getWidth(n,h),j=V;p&&(j+=p[1]+p[3]);var B=l.adjustTextX(M,j,k);s&&O(e,t,r,B,R,j,S),p&&(P=G(M,k,p),F+=p[0])}t.textAlign=k,t.textBaseline="middle",t.globalAlpha=r.opacity||1;for(var z=0;z<b.length;z++){var H=b[z],W=H[0],q=H[1],$=r[W];c&&$===a[W]||(t[q]=f(t,q,$||H[2]))}F+=I/2;var K=r.textStrokeWidth,Y=c?a.textStrokeWidth:null,J=!c||K!==Y,X=!c||J||r.textStroke!==a.textStroke,Z=N(r.textStroke,K),Q=U(r.textFill);if(Z&&(J&&(t.lineWidth=K),X&&(t.strokeStyle=Z)),Q&&(c&&r.textFill===a.textFill||(t.fillStyle=Q)),1===w.length)Z&&t.strokeText(w[0],P,F),Q&&t.fillText(w[0],P,F);else for(z=0;z<w.length;z++)Z&&t.strokeText(w[z],P,F),Q&&t.fillText(w[z],P,F),F+=I}function T(e,t,n,r,i,o){o!==m&&(t.__attrCachedBy=g.NONE);var a=e.__textCotentBlock;a&&!e.__dirtyText||(a=e.__textCotentBlock=l.parseRichText(n,r)),k(e,t,a,r,i)}function k(e,t,n,r,i){var o=n.width,a=n.outerWidth,s=n.outerHeight,c=r.textPadding,u=L(x,e,r,i),d=u.baseX,h=u.baseY,f=u.textAlign,p=u.textVerticalAlign;E(t,r,i,d,h);var g=l.adjustTextX(d,a,f),m=l.adjustTextY(h,s,p),v=g,y=m;c&&(v+=c[3],y+=c[0]);var _=v+o;D(r)&&O(e,t,r,g,m,a,s);for(var b=0;b<n.lines.length;b++){var S,w=n.lines[b],I=w.tokens,C=I.length,M=w.lineHeight,T=w.width,k=0,R=v,P=_,N=C-1;while(k<C&&(S=I[k],!S.textAlign||"left"===S.textAlign))A(e,t,S,r,M,y,R,"left"),T-=S.width,R+=S.width,k++;while(N>=0&&(S=I[N],"right"===S.textAlign))A(e,t,S,r,M,y,P,"right"),T-=S.width,P-=S.width,N--;R+=(o-(R-v)-(_-P)-T)/2;while(k<=N)S=I[k],A(e,t,S,r,M,y,R+S.width/2,"center"),R+=S.width,k++;y+=M}}function E(e,t,n,r,i){if(n&&t.textRotation){var o=t.textOrigin;"center"===o?(r=n.width/2+n.x,i=n.height/2+n.y):o&&(r=o[0]+n.x,i=o[1]+n.y),e.translate(r,i),e.rotate(-t.textRotation),e.translate(-r,-i)}}function A(e,t,n,r,a,s,c,u){var l=r.rich[n.styleName]||{};l.text=n.text;var d=n.textVerticalAlign,h=s+a/2;"top"===d?h=s+n.height/2:"bottom"===d&&(h=s+a-n.height/2),!n.isLineHolder&&D(l)&&O(e,t,l,"right"===u?c-n.width:"center"===u?c-n.width/2:c,h-n.height/2,n.width,n.height);var f=n.textPadding;f&&(c=G(c,u,f),h-=n.height/2-f[2]-n.textHeight/2),P(t,"shadowBlur",o(l.textShadowBlur,r.textShadowBlur,0)),P(t,"shadowColor",l.textShadowColor||r.textShadowColor||"transparent"),P(t,"shadowOffsetX",o(l.textShadowOffsetX,r.textShadowOffsetX,0)),P(t,"shadowOffsetY",o(l.textShadowOffsetY,r.textShadowOffsetY,0)),P(t,"textAlign",u),P(t,"textBaseline","middle"),P(t,"font",n.font||v);var p=N(l.textStroke||r.textStroke,m),g=U(l.textFill||r.textFill),m=i(l.textStrokeWidth,r.textStrokeWidth);p&&(P(t,"lineWidth",m),P(t,"strokeStyle",p),t.strokeText(n.text,c,h)),g&&(P(t,"fillStyle",g),t.fillText(n.text,c,h))}function D(e){return!!(e.textBackgroundColor||e.textBorderWidth&&e.textBorderColor)}function O(e,t,n,r,i,o,a){var s=n.textBackgroundColor,l=n.textBorderWidth,f=n.textBorderColor,p=c(s);if(P(t,"shadowBlur",n.textBoxShadowBlur||0),P(t,"shadowColor",n.textBoxShadowColor||"transparent"),P(t,"shadowOffsetX",n.textBoxShadowOffsetX||0),P(t,"shadowOffsetY",n.textBoxShadowOffsetY||0),p||l&&f){t.beginPath();var g=n.textBorderRadius;g?d.buildPath(t,{x:r,y:i,width:o,height:a,r:g}):t.rect(r,i,o,a),t.closePath()}if(p)if(P(t,"fillStyle",s),null!=n.fillOpacity){var m=t.globalAlpha;t.globalAlpha=n.fillOpacity*n.opacity,t.fill(),t.globalAlpha=m}else t.fill();else if(u(s)){var v=s.image;v=h.createOrUpdateImage(v,null,e,R,s),v&&h.isImageReady(v)&&t.drawImage(v,r,i,o,a)}if(l&&f)if(P(t,"lineWidth",l),P(t,"strokeStyle",f),null!=n.strokeOpacity){m=t.globalAlpha;t.globalAlpha=n.strokeOpacity*n.opacity,t.stroke(),t.globalAlpha=m}else t.stroke()}function R(e,t){t.image=e}function L(e,t,n,r){var i=n.x||0,o=n.y||0,a=n.textAlign,s=n.textVerticalAlign;if(r){var c=n.textPosition;if(c instanceof Array)i=r.x+F(c[0],r.width),o=r.y+F(c[1],r.height);else{var u=t&&t.calculateTextPosition?t.calculateTextPosition(S,n,r):l.calculateTextPosition(S,n,r);i=u.x,o=u.y,a=a||u.textAlign,s=s||u.textVerticalAlign}var d=n.textOffset;d&&(i+=d[0],o+=d[1])}return e=e||{},e.baseX=i,e.baseY=o,e.textAlign=a,e.textVerticalAlign=s,e}function P(e,t,n){return e[t]=f(e,t,n),e[t]}function N(e,t){return null==e||t<=0||"transparent"===e||"none"===e?null:e.image||e.colorStops?"#000":e}function U(e){return null==e||"none"===e?null:e.image||e.colorStops?"#000":e}function F(e,t){return"string"===typeof e?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function G(e,t,n){return"right"===t?e-n[1]:"center"===t?e+n[3]/2-n[1]/2:e+n[3]}function V(e,t){return null!=e&&(e||t.textBackgroundColor||t.textBorderWidth&&t.textBorderColor||t.textPadding)}t.normalizeTextStyle=w,t.renderText=C,t.getBoxPosition=L,t.getStroke=N,t.getFill=U,t.parsePercent=F,t.needDrawText=V},a742:function(e,t,n){"use strict";t.__esModule=!0,t.isDefined=t.isUndefined=t.isFunction=void 0;var r="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};t.isString=s,t.isObject=c,t.isHtmlElement=u;var i=n("2b0e"),o=a(i);function a(e){return e&&e.__esModule?e:{default:e}}function s(e){return"[object String]"===Object.prototype.toString.call(e)}function c(e){return"[object Object]"===Object.prototype.toString.call(e)}function u(e){return e&&e.nodeType===Node.ELEMENT_NODE}var l=function(e){var t={};return e&&"[object Function]"===t.toString.call(e)};"object"===("undefined"===typeof Int8Array?"undefined":r(Int8Array))||!o.default.prototype.$isServer&&"function"===typeof document.childNodes||(t.isFunction=l=function(e){return"function"===typeof e||!1}),t.isFunction=l;t.isUndefined=function(e){return void 0===e},t.isDefined=function(e){return void 0!==e&&null!==e}},a753:function(e,t,n){var r=n("1f0e"),i=n("2306"),o=n("e887"),a=n("3842"),s=a.parsePercent,c=a.round,u=a.linearMap;function l(e,t){var n=e.get("center"),r=t.getWidth(),i=t.getHeight(),o=Math.min(r,i),a=s(n[0],t.getWidth()),c=s(n[1],t.getHeight()),u=s(e.get("radius"),o/2);return{cx:a,cy:c,r:u}}function d(e,t){return t&&("string"===typeof t?e=t.replace("{value}",null!=e?e:""):"function"===typeof t&&(e=t(e))),e}var h=2*Math.PI,f=o.extend({type:"gauge",render:function(e,t,n){this.group.removeAll();var r=e.get("axisLine.lineStyle.color"),i=l(e,n);this._renderMain(e,t,n,r,i)},dispose:function(){},_renderMain:function(e,t,n,r,o){for(var a=this.group,s=e.getModel("axisLine"),c=s.getModel("lineStyle"),u=e.get("clockwise"),l=-e.get("startAngle")/180*Math.PI,d=-e.get("endAngle")/180*Math.PI,f=(d-l)%h,p=l,g=c.get("width"),m=s.get("show"),v=0;m&&v<r.length;v++){var y=Math.min(Math.max(r[v][0],0),1),_=(d=l+f*y,new i.Sector({shape:{startAngle:p,endAngle:d,cx:o.cx,cy:o.cy,clockwise:u,r0:o.r-g,r:o.r},silent:!0}));_.setStyle({fill:r[v][1]}),_.setStyle(c.getLineStyle(["color","borderWidth","borderColor"])),a.add(_),p=d}var b=function(e){if(e<=0)return r[0][1];for(var t=0;t<r.length;t++)if(r[t][0]>=e&&(0===t?0:r[t-1][0])<e)return r[t][1];return r[t-1][1]};if(!u){var S=l;l=d,d=S}this._renderTicks(e,t,n,b,o,l,d,u),this._renderPointer(e,t,n,b,o,l,d,u),this._renderTitle(e,t,n,b,o),this._renderDetail(e,t,n,b,o)},_renderTicks:function(e,t,n,r,o,a,u,l){for(var h=this.group,f=o.cx,p=o.cy,g=o.r,m=+e.get("min"),v=+e.get("max"),y=e.getModel("splitLine"),_=e.getModel("axisTick"),b=e.getModel("axisLabel"),S=e.get("splitNumber"),x=_.get("splitNumber"),w=s(y.get("length"),g),I=s(_.get("length"),g),C=a,M=(u-a)/S,T=M/x,k=y.getModel("lineStyle").getLineStyle(),E=_.getModel("lineStyle").getLineStyle(),A=0;A<=S;A++){var D=Math.cos(C),O=Math.sin(C);if(y.get("show")){var R=new i.Line({shape:{x1:D*g+f,y1:O*g+p,x2:D*(g-w)+f,y2:O*(g-w)+p},style:k,silent:!0});"auto"===k.stroke&&R.setStyle({stroke:r(A/S)}),h.add(R)}if(b.get("show")){var L=d(c(A/S*(v-m)+m),b.get("formatter")),P=b.get("distance"),N=r(A/S);h.add(new i.Text({style:i.setTextStyle({},b,{text:L,x:D*(g-w-P)+f,y:O*(g-w-P)+p,textVerticalAlign:O<-.4?"top":O>.4?"bottom":"middle",textAlign:D<-.4?"left":D>.4?"right":"center"},{autoColor:N}),silent:!0}))}if(_.get("show")&&A!==S){for(var U=0;U<=x;U++){D=Math.cos(C),O=Math.sin(C);var F=new i.Line({shape:{x1:D*g+f,y1:O*g+p,x2:D*(g-I)+f,y2:O*(g-I)+p},silent:!0,style:E});"auto"===E.stroke&&F.setStyle({stroke:r((A+U/x)/S)}),h.add(F),C+=T}C-=T}else C+=M}},_renderPointer:function(e,t,n,o,a,c,l,d){var h=this.group,f=this._data;if(e.get("pointer.show")){var p=[+e.get("min"),+e.get("max")],g=[c,l],m=e.getData(),v=m.mapDimension("value");m.diff(f).add((function(t){var n=new r({shape:{angle:c}});i.initProps(n,{shape:{angle:u(m.get(v,t),p,g,!0)}},e),h.add(n),m.setItemGraphicEl(t,n)})).update((function(t,n){var r=f.getItemGraphicEl(n);i.updateProps(r,{shape:{angle:u(m.get(v,t),p,g,!0)}},e),h.add(r),m.setItemGraphicEl(t,r)})).remove((function(e){var t=f.getItemGraphicEl(e);h.remove(t)})).execute(),m.eachItemGraphicEl((function(e,t){var n=m.getItemModel(t),r=n.getModel("pointer");e.setShape({x:a.cx,y:a.cy,width:s(r.get("width"),a.r),r:s(r.get("length"),a.r)}),e.useStyle(n.getModel("itemStyle").getItemStyle()),"auto"===e.style.fill&&e.setStyle("fill",o(u(m.get(v,t),p,[0,1],!0))),i.setHoverStyle(e,n.getModel("emphasis.itemStyle").getItemStyle())})),this._data=m}else f&&f.eachItemGraphicEl((function(e){h.remove(e)}))},_renderTitle:function(e,t,n,r,o){var a=e.getData(),c=a.mapDimension("value"),l=e.getModel("title");if(l.get("show")){var d=l.get("offsetCenter"),h=o.cx+s(d[0],o.r),f=o.cy+s(d[1],o.r),p=+e.get("min"),g=+e.get("max"),m=e.getData().get(c,0),v=r(u(m,[p,g],[0,1],!0));this.group.add(new i.Text({silent:!0,style:i.setTextStyle({},l,{x:h,y:f,text:a.getName(0),textAlign:"center",textVerticalAlign:"middle"},{autoColor:v,forceRich:!0})}))}},_renderDetail:function(e,t,n,r,o){var a=e.getModel("detail"),c=+e.get("min"),l=+e.get("max");if(a.get("show")){var h=a.get("offsetCenter"),f=o.cx+s(h[0],o.r),p=o.cy+s(h[1],o.r),g=s(a.get("width"),o.r),m=s(a.get("height"),o.r),v=e.getData(),y=v.get(v.mapDimension("value"),0),_=r(u(y,[c,l],[0,1],!0));this.group.add(new i.Text({silent:!0,style:i.setTextStyle({},a,{x:f,y:p,text:d(y,a.get("formatter")),textWidth:isNaN(g)?null:g,textHeight:isNaN(m)?null:m,textAlign:"center",textVerticalAlign:"middle"},{autoColor:_,forceRich:!0})}))}}}),p=f;e.exports=p},a79d:function(e,t,n){"use strict";var r=n("23e7"),i=n("c430"),o=n("fea9"),a=n("d039"),s=n("d066"),c=n("1626"),u=n("4840"),l=n("cdf9"),d=n("6eeb"),h=!!o&&a((function(){o.prototype["finally"].call({then:function(){}},(function(){}))}));if(r({target:"Promise",proto:!0,real:!0,forced:h},{finally:function(e){var t=u(this,s("Promise")),n=c(e);return this.then(n?function(n){return l(t,e()).then((function(){return n}))}:e,n?function(n){return l(t,e()).then((function(){throw n}))}:e)}}),!i&&c(o)){var f=s("Promise").prototype["finally"];o.prototype["finally"]!==f&&d(o.prototype,"finally",f,{unsafe:!0})}},a7cc:function(e,t,n){},a7e2:function(e,t,n){var r=n("3eba");n("7293"),n("ae46");var i=n("6582"),o=n("ee98");r.registerLayout(i),r.registerVisual(o)},a7f2:function(e,t){var n=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function r(e,t){"china"===e&&"台湾"===t.name&&t.geometries.push({type:"polygon",exterior:n[0]})}e.exports=r},a87d:function(e,t,n){var r=n("22d1"),i=n("401b"),o=i.applyTransform,a=n("9850"),s=n("41ef"),c=n("e86a"),u=n("a73c"),l=n("9e2e"),d=n("19eb"),h=n("0da8"),f=n("76a5"),p=n("cbe5"),g=n("20c8"),m=n("42e5"),v=n("d3a4"),y=g.CMD,_=Math.round,b=Math.sqrt,S=Math.abs,x=Math.cos,w=Math.sin,I=Math.max;if(!r.canvasSupported){var C=",",M="progid:DXImageTransform.Microsoft",T=21600,k=T/2,E=1e5,A=1e3,D=function(e){e.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",e.coordsize=T+","+T,e.coordorigin="0,0"},O=function(e){return String(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;")},R=function(e,t,n){return"rgb("+[e,t,n].join(",")+")"},L=function(e,t){t&&e&&t.parentNode!==e&&e.appendChild(t)},P=function(e,t){t&&e&&t.parentNode===e&&e.removeChild(t)},N=function(e,t,n){return(parseFloat(e)||0)*E+(parseFloat(t)||0)*A+n},U=u.parsePercent,F=function(e,t,n){var r=s.parse(t);n=+n,isNaN(n)&&(n=1),r&&(e.color=R(r[0],r[1],r[2]),e.opacity=n*r[3])},G=function(e){var t=s.parse(e);return[R(t[0],t[1],t[2]),t[3]]},V=function(e,t,n){var r=t.fill;if(null!=r)if(r instanceof m){var i,a=0,s=[0,0],c=0,u=1,l=n.getBoundingRect(),d=l.width,h=l.height;if("linear"===r.type){i="gradient";var f=n.transform,p=[r.x*d,r.y*h],g=[r.x2*d,r.y2*h];f&&(o(p,p,f),o(g,g,f));var v=g[0]-p[0],y=g[1]-p[1];a=180*Math.atan2(v,y)/Math.PI,a<0&&(a+=360),a<1e-6&&(a=0)}else{i="gradientradial";p=[r.x*d,r.y*h],f=n.transform;var _=n.scale,b=d,S=h;s=[(p[0]-l.x)/b,(p[1]-l.y)/S],f&&o(p,p,f),b/=_[0]*T,S/=_[1]*T;var x=I(b,S);c=0/x,u=2*r.r/x-c}var w=r.colorStops.slice();w.sort((function(e,t){return e.offset-t.offset}));for(var C=w.length,M=[],k=[],E=0;E<C;E++){var A=w[E],D=G(A.color);k.push(A.offset*u+c+" "+D[0]),0!==E&&E!==C-1||M.push(D)}if(C>=2){var O=M[0][0],R=M[1][0],L=M[0][1]*t.opacity,P=M[1][1]*t.opacity;e.type=i,e.method="none",e.focus="100%",e.angle=a,e.color=O,e.color2=R,e.colors=k.join(","),e.opacity=P,e.opacity2=L}"radial"===i&&(e.focusposition=s.join(","))}else F(e,r,t.opacity)},j=function(e,t){t.lineDash&&(e.dashstyle=t.lineDash.join(" ")),null==t.stroke||t.stroke instanceof m||F(e,t.stroke,t.opacity)},B=function(e,t,n,r){var i="fill"===t,o=e.getElementsByTagName(t)[0];null!=n[t]&&"none"!==n[t]&&(i||!i&&n.lineWidth)?(e[i?"filled":"stroked"]="true",n[t]instanceof m&&P(e,o),o||(o=v.createNode(t)),i?V(o,n,r):j(o,n),L(e,o)):(e[i?"filled":"stroked"]="false",P(e,o))},z=[[],[],[]],H=function(e,t){var n,r,i,a,s,c,u=y.M,l=y.C,d=y.L,h=y.A,f=y.Q,p=[],g=e.data,m=e.len();for(a=0;a<m;){switch(i=g[a++],r="",n=0,i){case u:r=" m ",n=1,s=g[a++],c=g[a++],z[0][0]=s,z[0][1]=c;break;case d:r=" l ",n=1,s=g[a++],c=g[a++],z[0][0]=s,z[0][1]=c;break;case f:case l:r=" c ",n=3;var v,S,I=g[a++],M=g[a++],E=g[a++],A=g[a++];i===f?(v=E,S=A,E=(E+2*I)/3,A=(A+2*M)/3,I=(s+2*I)/3,M=(c+2*M)/3):(v=g[a++],S=g[a++]),z[0][0]=I,z[0][1]=M,z[1][0]=E,z[1][1]=A,z[2][0]=v,z[2][1]=S,s=v,c=S;break;case h:var D=0,O=0,R=1,L=1,P=0;t&&(D=t[4],O=t[5],R=b(t[0]*t[0]+t[1]*t[1]),L=b(t[2]*t[2]+t[3]*t[3]),P=Math.atan2(-t[1]/L,t[0]/R));var N=g[a++],U=g[a++],F=g[a++],G=g[a++],V=g[a++]+P,j=g[a++]+V+P;a++;var B=g[a++],H=N+x(V)*F,W=U+w(V)*G,q=(I=N+x(j)*F,M=U+w(j)*G,B?" wa ":" at ");Math.abs(H-I)<1e-4&&(Math.abs(j-V)>.01?B&&(H+=270/T):Math.abs(W-U)<1e-4?B&&H<N||!B&&H>N?M-=270/T:M+=270/T:B&&W<U||!B&&W>U?I+=270/T:I-=270/T),p.push(q,_(((N-F)*R+D)*T-k),C,_(((U-G)*L+O)*T-k),C,_(((N+F)*R+D)*T-k),C,_(((U+G)*L+O)*T-k),C,_((H*R+D)*T-k),C,_((W*L+O)*T-k),C,_((I*R+D)*T-k),C,_((M*L+O)*T-k)),s=I,c=M;break;case y.R:var $=z[0],K=z[1];$[0]=g[a++],$[1]=g[a++],K[0]=$[0]+g[a++],K[1]=$[1]+g[a++],t&&(o($,$,t),o(K,K,t)),$[0]=_($[0]*T-k),K[0]=_(K[0]*T-k),$[1]=_($[1]*T-k),K[1]=_(K[1]*T-k),p.push(" m ",$[0],C,$[1]," l ",K[0],C,$[1]," l ",K[0],C,K[1]," l ",$[0],C,K[1]);break;case y.Z:p.push(" x ")}if(n>0){p.push(r);for(var Y=0;Y<n;Y++){var J=z[Y];t&&o(J,J,t),p.push(_(J[0]*T-k),C,_(J[1]*T-k),Y<n-1?C:"")}}}return p.join("")};p.prototype.brushVML=function(e){var t=this.style,n=this._vmlEl;n||(n=v.createNode("shape"),D(n),this._vmlEl=n),B(n,"fill",t,this),B(n,"stroke",t,this);var r=this.transform,i=null!=r,o=n.getElementsByTagName("stroke")[0];if(o){var a=t.lineWidth;if(i&&!t.strokeNoScale){var s=r[0]*r[3]-r[1]*r[2];a*=b(S(s))}o.weight=a+"px"}var c=this.path||(this.path=new g);this.__dirtyPath&&(c.beginPath(),c.subPixelOptimize=!1,this.buildPath(c,this.shape),c.toStatic(),this.__dirtyPath=!1),n.path=H(c,this.transform),n.style.zIndex=N(this.zlevel,this.z,this.z2),L(e,n),null!=t.text?this.drawRectText(e,this.getBoundingRect()):this.removeRectText(e)},p.prototype.onRemove=function(e){P(e,this._vmlEl),this.removeRectText(e)},p.prototype.onAdd=function(e){L(e,this._vmlEl),this.appendRectText(e)};var W=function(e){return"object"===typeof e&&e.tagName&&"IMG"===e.tagName.toUpperCase()};h.prototype.brushVML=function(e){var t,n,r=this.style,i=r.image;if(W(i)){var a=i.src;if(a===this._imageSrc)t=this._imageWidth,n=this._imageHeight;else{var s=i.runtimeStyle,c=s.width,u=s.height;s.width="auto",s.height="auto",t=i.width,n=i.height,s.width=c,s.height=u,this._imageSrc=a,this._imageWidth=t,this._imageHeight=n}i=a}else i===this._imageSrc&&(t=this._imageWidth,n=this._imageHeight);if(i){var l=r.x||0,d=r.y||0,h=r.width,f=r.height,p=r.sWidth,g=r.sHeight,m=r.sx||0,y=r.sy||0,S=p&&g,x=this._vmlEl;x||(x=v.doc.createElement("div"),D(x),this._vmlEl=x);var w,T=x.style,k=!1,E=1,A=1;if(this.transform&&(w=this.transform,E=b(w[0]*w[0]+w[1]*w[1]),A=b(w[2]*w[2]+w[3]*w[3]),k=w[1]||w[2]),k){var O=[l,d],R=[l+h,d],P=[l,d+f],U=[l+h,d+f];o(O,O,w),o(R,R,w),o(P,P,w),o(U,U,w);var F=I(O[0],R[0],P[0],U[0]),G=I(O[1],R[1],P[1],U[1]),V=[];V.push("M11=",w[0]/E,C,"M12=",w[2]/A,C,"M21=",w[1]/E,C,"M22=",w[3]/A,C,"Dx=",_(l*E+w[4]),C,"Dy=",_(d*A+w[5])),T.padding="0 "+_(F)+"px "+_(G)+"px 0",T.filter=M+".Matrix("+V.join("")+", SizingMethod=clip)"}else w&&(l=l*E+w[4],d=d*A+w[5]),T.filter="",T.left=_(l)+"px",T.top=_(d)+"px";var j=this._imageEl,B=this._cropEl;j||(j=v.doc.createElement("div"),this._imageEl=j);var z=j.style;if(S){if(t&&n)z.width=_(E*t*h/p)+"px",z.height=_(A*n*f/g)+"px";else{var H=new Image,q=this;H.onload=function(){H.onload=null,t=H.width,n=H.height,z.width=_(E*t*h/p)+"px",z.height=_(A*n*f/g)+"px",q._imageWidth=t,q._imageHeight=n,q._imageSrc=i},H.src=i}B||(B=v.doc.createElement("div"),B.style.overflow="hidden",this._cropEl=B);var $=B.style;$.width=_((h+m*h/p)*E),$.height=_((f+y*f/g)*A),$.filter=M+".Matrix(Dx="+-m*h/p*E+",Dy="+-y*f/g*A+")",B.parentNode||x.appendChild(B),j.parentNode!==B&&B.appendChild(j)}else z.width=_(E*h)+"px",z.height=_(A*f)+"px",x.appendChild(j),B&&B.parentNode&&(x.removeChild(B),this._cropEl=null);var K="",Y=r.opacity;Y<1&&(K+=".Alpha(opacity="+_(100*Y)+") "),K+=M+".AlphaImageLoader(src="+i+", SizingMethod=scale)",z.filter=K,x.style.zIndex=N(this.zlevel,this.z,this.z2),L(e,x),null!=r.text&&this.drawRectText(e,this.getBoundingRect())}},h.prototype.onRemove=function(e){P(e,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText(e)},h.prototype.onAdd=function(e){L(e,this._vmlEl),this.appendRectText(e)};var q,$="normal",K={},Y=0,J=100,X=document.createElement("div"),Z=function(e){var t=K[e];if(!t){Y>J&&(Y=0,K={});var n,r=X.style;try{r.font=e,n=r.fontFamily.split(",")[0]}catch(i){}t={style:r.fontStyle||$,variant:r.fontVariant||$,weight:r.fontWeight||$,size:0|parseFloat(r.fontSize||12),family:n||"Microsoft YaHei"},K[e]=t,Y++}return t};c.$override("measureText",(function(e,t){var n=v.doc;q||(q=n.createElement("div"),q.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",v.doc.body.appendChild(q));try{q.style.font=t}catch(r){}return q.innerHTML="",q.appendChild(n.createTextNode(e)),{width:q.offsetWidth}}));for(var Q=new a,ee=function(e,t,n,r){var i=this.style;this.__dirty&&u.normalizeTextStyle(i,!0);var a=i.text;if(null!=a&&(a+=""),a){if(i.rich){var s=c.parseRichText(a,i);a=[];for(var l=0;l<s.lines.length;l++){for(var d=s.lines[l].tokens,h=[],f=0;f<d.length;f++)h.push(d[f].text);a.push(h.join(""))}a=a.join("\n")}var p,g,m=i.textAlign,y=i.textVerticalAlign,b=Z(i.font),S=b.style+" "+b.variant+" "+b.weight+" "+b.size+'px "'+b.family+'"';n=n||c.getBoundingRect(a,S,m,y,i.textPadding,i.textLineHeight);var x=this.transform;if(x&&!r&&(Q.copy(t),Q.applyTransform(x),t=Q),r)p=t.x,g=t.y;else{var w=i.textPosition;if(w instanceof Array)p=t.x+U(w[0],t.width),g=t.y+U(w[1],t.height),m=m||"left";else{var I=this.calculateTextPosition?this.calculateTextPosition({},i,t):c.calculateTextPosition({},i,t);p=I.x,g=I.y,m=m||I.textAlign,y=y||I.textVerticalAlign}}p=c.adjustTextX(p,n.width,m),g=c.adjustTextY(g,n.height,y),g+=n.height/2;var M,T,k,E=v.createNode,A=this._textVmlEl;A?(k=A.firstChild,M=k.nextSibling,T=M.nextSibling):(A=E("line"),M=E("path"),T=E("textpath"),k=E("skew"),T.style["v-text-align"]="left",D(A),M.textpathok=!0,T.on=!0,A.from="0 0",A.to="1000 0.05",L(A,k),L(A,M),L(A,T),this._textVmlEl=A);var R=[p,g],P=A.style;x&&r?(o(R,R,x),k.on=!0,k.matrix=x[0].toFixed(3)+C+x[2].toFixed(3)+C+x[1].toFixed(3)+C+x[3].toFixed(3)+",0,0",k.offset=(_(R[0])||0)+","+(_(R[1])||0),k.origin="0 0",P.left="0px",P.top="0px"):(k.on=!1,P.left=_(p)+"px",P.top=_(g)+"px"),T.string=O(a);try{T.style.font=S}catch(F){}B(A,"fill",{fill:i.textFill,opacity:i.opacity},this),B(A,"stroke",{stroke:i.textStroke,opacity:i.opacity,lineDash:i.lineDash||null},this),A.style.zIndex=N(this.zlevel,this.z,this.z2),L(e,A)}},te=function(e){P(e,this._textVmlEl),this._textVmlEl=null},ne=function(e){L(e,this._textVmlEl)},re=[l,d,h,p,f],ie=0;ie<re.length;ie++){var oe=re[ie].prototype;oe.drawRectText=ee,oe.removeRectText=te,oe.appendRectText=ne}f.prototype.brushVML=function(e){var t=this.style;null!=t.text?this.drawRectText(e,{x:t.x||0,y:t.y||0,width:0,height:0},this.getBoundingRect(),!0):this.removeRectText(e)},f.prototype.onRemove=function(e){this.removeRectText(e)},f.prototype.onAdd=function(e){this.appendRectText(e)}}},a890:function(e,t,n){var r=n("0655"),i=n("9850"),o=n("2306"),a=o.linePolygonIntersect,s={lineX:c(0),lineY:c(1),rect:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])},rect:function(e,t,n){return e&&n.boundingRect.intersect(e)}},polygon:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])&&r.contain(n.range,e[0],e[1])},rect:function(e,t,n){var o=n.range;if(!e||o.length<=1)return!1;var s=e.x,c=e.y,u=e.width,l=e.height,d=o[0];return!!(r.contain(o,s,c)||r.contain(o,s+u,c)||r.contain(o,s,c+l)||r.contain(o,s+u,c+l)||i.create(e).contain(d[0],d[1])||a(s,c,s+u,c,o)||a(s,c,s,c+l,o)||a(s+u,c,s+u,c+l,o)||a(s,c+l,s+u,c+l,o))||void 0}}};function c(e){var t=["x","y"],n=["width","height"];return{point:function(t,n,r){if(t){var i=r.range,o=t[e];return u(o,i)}},rect:function(r,i,o){if(r){var a=o.range,s=[r[t[e]],r[t[e]]+r[n[e]]];return s[1]<s[0]&&s.reverse(),u(s[0],a)||u(s[1],a)||u(a[0],s)||u(a[1],s)}}}}function u(e,t){return t[0]<=e&&e<=t[1]}var l=s;e.exports=l},a8c6:function(e,t,n){var r=n("2449"),i=r.extend({type:"markPoint",defaultOption:{zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}}});e.exports=i},a96b:function(e,t,n){var r=n("3eba"),i=r.extendComponentModel({type:"tooltip",dependencies:["axisPointer"],defaultOption:{zlevel:0,z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:!1,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#fff",fontSize:14}}});e.exports=i},a975:function(e,t,n){"use strict";var r=n("ebb5"),i=n("b727").every,o=r.aTypedArray,a=r.exportTypedArrayMethod;a("every",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},a981:function(e,t){e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},a991:function(e,t,n){var r=n("6d8b"),i=n("e86a"),o=n("84ce"),a=n("e0d3"),s=a.makeInner,c=s();function u(e,t){t=t||[0,360],o.call(this,"angle",e,t),this.type="category"}u.prototype={constructor:u,pointToData:function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},dataToAngle:o.prototype.dataToCoord,angleToData:o.prototype.coordToData,calculateCategoryInterval:function(){var e=this,t=e.getLabelModel(),n=e.scale,r=n.getExtent(),o=n.count();if(r[1]-r[0]<1)return 0;var a=r[0],s=e.dataToCoord(a+1)-e.dataToCoord(a),u=Math.abs(s),l=i.getBoundingRect(a,t.getFont(),"center","top"),d=Math.max(l.height,7),h=d/u;isNaN(h)&&(h=1/0);var f=Math.max(0,Math.floor(h)),p=c(e.model),g=p.lastAutoInterval,m=p.lastTickCount;return null!=g&&null!=m&&Math.abs(g-f)<=1&&Math.abs(m-o)<=1&&g>f?f=g:(p.lastTickCount=o,p.lastAutoInterval=f),f}},r.inherits(u,o);var l=u;e.exports=l},a9e3:function(e,t,n){"use strict";var r=n("83ab"),i=n("da84"),o=n("e330"),a=n("94ca"),s=n("6eeb"),c=n("1a2d"),u=n("7156"),l=n("3a9b"),d=n("d9b5"),h=n("c04e"),f=n("d039"),p=n("241c").f,g=n("06cf").f,m=n("9bf2").f,v=n("408a"),y=n("58a8").trim,_="Number",b=i[_],S=b.prototype,x=i.TypeError,w=o("".slice),I=o("".charCodeAt),C=function(e){var t=h(e,"number");return"bigint"==typeof t?t:M(t)},M=function(e){var t,n,r,i,o,a,s,c,u=h(e,"number");if(d(u))throw x("Cannot convert a Symbol value to a number");if("string"==typeof u&&u.length>2)if(u=y(u),t=I(u,0),43===t||45===t){if(n=I(u,2),88===n||120===n)return NaN}else if(48===t){switch(I(u,1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+u}for(o=w(u,2),a=o.length,s=0;s<a;s++)if(c=I(o,s),c<48||c>i)return NaN;return parseInt(o,r)}return+u};if(a(_,!b(" 0o1")||!b("0b1")||b("+0x1"))){for(var T,k=function(e){var t=arguments.length<1?0:b(C(e)),n=this;return l(S,n)&&f((function(){v(n)}))?u(Object(t),n,k):t},E=r?p(b):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),A=0;E.length>A;A++)c(b,T=E[A])&&!c(k,T)&&m(k,T,g(b,T));k.prototype=S,S.constructor=k,s(i,_,k)}},aa01:function(e,t,n){var r=n("6d8b"),i=n("4f85"),o=n("06c7"),a=n("4319"),s=n("55ac"),c=s.wrapTreePathInfo,u=i.extend({type:"series.sunburst",_viewRoot:null,getInitialData:function(e,t){var n={name:e.name,children:e.data};l(n);var i=r.map(e.levels||[],(function(e){return new a(e,this,t)}),this),s=o.createTree(n,this,c);function c(e){e.wrapMethod("getItemModel",(function(e,t){var n=s.getNodeByDataIndex(t),r=i[n.depth];return r&&(e.parentModel=r),e}))}return s.data},optionUpdated:function(){this.resetViewRoot()},getDataParams:function(e){var t=i.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(e);return t.treePathInfo=c(n,this),t},defaultOption:{zlevel:0,z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,percentPrecision:2,stillShowZeroSum:!0,highlightPolicy:"descendant",nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},highlight:{itemStyle:{opacity:1}},downplay:{itemStyle:{opacity:.5},label:{opacity:.6}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicOut",data:[],levels:[],sort:"desc"},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)}});function l(e){var t=0;r.each(e.children,(function(e){l(e);var n=e.value;r.isArray(n)&&(n=n[0]),t+=n}));var n=e.value;r.isArray(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),r.isArray(e.value)?e.value[0]=n:e.value=n}e.exports=u},aa3e:function(e,t,n){var r=n("6d8b");function i(e,t){return t=t||[0,0],r.map(["x","y"],(function(n,r){var i=this.getAxis(n),o=t[r],a=e[r]/2;return"category"===i.type?i.getBandWidth():Math.abs(i.dataToCoord(o-a)-i.dataToCoord(o+a))}),this)}function o(e){var t=e.grid.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:r.bind(i,e)}}}e.exports=o},aadf:function(e,t,n){var r=n("3eba"),i=n("6d8b");n("5aa9"),n("d6d9"),n("3329");var o=n("9d57"),a=o.layout,s=n("7f96");n("01ed"),r.registerLayout(i.curry(a,"pictorialBar")),r.registerVisual(s("pictorialBar","roundRect"))},ab05:function(e,t,n){var r=n("3eba"),i=n("6d8b"),o=n("2b8c"),a=n("5f14"),s=r.PRIORITY.VISUAL.COMPONENT;function c(e,t,n,r){for(var i=t.targetVisuals[r],o=a.prepareVisualTypes(i),s={color:e.getData().getVisual("color")},c=0,u=o.length;c<u;c++){var l=o[c],d=i["opacity"===l?"__alphaForOpacity":l];d&&d.applyVisual(n,h,f)}return s.color;function h(e){return s[e]}function f(e,t){s[e]=t}}r.registerVisual(s,{createOnAllSeries:!0,reset:function(e,t){var n=[];return t.eachComponent("visualMap",(function(t){var r=e.pipelineContext;!t.isTargetSeries(e)||r&&r.large||n.push(o.incrementalApplyVisual(t.stateList,t.targetVisuals,i.bind(t.getValueState,t),t.getDataDimension(e.getData())))})),n}}),r.registerVisual(s,{createOnAllSeries:!0,reset:function(e,t){var n=e.getData(),r=[];t.eachComponent("visualMap",(function(t){if(t.isTargetSeries(e)){var o=t.getVisualMeta(i.bind(c,null,e,t))||{stops:[],outerColors:[]},a=t.getDataDimension(n),s=n.getDimensionInfo(a);null!=s&&(o.dimension=s.index,r.push(o))}})),e.getData().setVisual("visualMeta",r)}})},ab13:function(e,t,n){var r=n("b622"),i=r("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[i]=!1,"/./"[e](t)}catch(r){}}return!1}},ab36:function(e,t,n){var r=n("861d"),i=n("9112");e.exports=function(e,t){r(t)&&"cause"in t&&i(e,"cause",t.cause)}},ab71:function(e,t){var n=["lineStyle","normal","opacity"],r={seriesType:"parallel",reset:function(e,t,r){var i=e.getModel("itemStyle"),o=e.getModel("lineStyle"),a=t.get("color"),s=o.get("color")||i.get("color")||a[e.seriesIndex%a.length],c=e.get("inactiveOpacity"),u=e.get("activeOpacity"),l=e.getModel("lineStyle").getLineStyle(),d=e.coordinateSystem,h=e.getData(),f={normal:l.opacity,active:u,inactive:c};function p(e,t){d.eachActiveState(t,(function(e,r){var i=f[e];if("normal"===e&&t.hasItemOption){var o=t.getItemModel(r).get(n,!0);null!=o&&(i=o)}t.setItemVisual(r,"opacity",i)}),e.start,e.end)}return h.setVisual("color",s),{progress:p}}};e.exports=r},abff:function(e,t,n){var r=n("3eba"),i=n("f706"),o=n("c965"),a=n("87c3");r.extendChartView({type:"scatter",render:function(e,t,n){var r=e.getData(),i=this._updateSymbolDraw(r,e);i.updateData(r,{clipShape:this._getClipShape(e)}),this._finished=!0},incrementalPrepareRender:function(e,t,n){var r=e.getData(),i=this._updateSymbolDraw(r,e);i.incrementalPrepareUpdate(r),this._finished=!1},incrementalRender:function(e,t,n){this._symbolDraw.incrementalUpdate(e,t.getData(),{clipShape:this._getClipShape(t)}),this._finished=e.end===t.getData().count()},updateTransform:function(e,t,n){var r=e.getData();if(this.group.dirty(),!this._finished||r.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var i=a().reset(e);i.progress&&i.progress({start:0,end:r.count()},r),this._symbolDraw.updateLayout(r)},_getClipShape:function(e){var t=e.coordinateSystem,n=t&&t.getArea&&t.getArea();return e.get("clip",!0)?n:null},_updateSymbolDraw:function(e,t){var n=this._symbolDraw,r=t.pipelineContext,a=r.large;return n&&a===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=a?new o:new i,this._isLargeDraw=a,this.group.removeAll()),this.group.add(n.group),n},remove:function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},dispose:function(){}})},ac0f:function(e,t,n){var r=n("cbe5"),i=n("401b"),o=n("4a3f"),a=o.quadraticSubdivide,s=o.cubicSubdivide,c=o.quadraticAt,u=o.cubicAt,l=o.quadraticDerivativeAt,d=o.cubicDerivativeAt,h=[];function f(e,t,n){var r=e.cpx2,i=e.cpy2;return null===r||null===i?[(n?d:u)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?d:u)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?l:c)(e.x1,e.cpx1,e.x2,t),(n?l:c)(e.y1,e.cpy1,e.y2,t)]}var p=r.extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(e,t){var n=t.x1,r=t.y1,i=t.x2,o=t.y2,c=t.cpx1,u=t.cpy1,l=t.cpx2,d=t.cpy2,f=t.percent;0!==f&&(e.moveTo(n,r),null==l||null==d?(f<1&&(a(n,c,i,f,h),c=h[1],i=h[2],a(r,u,o,f,h),u=h[1],o=h[2]),e.quadraticCurveTo(c,u,i,o)):(f<1&&(s(n,c,l,i,f,h),c=h[1],l=h[2],i=h[3],s(r,u,d,o,f,h),u=h[1],d=h[2],o=h[3]),e.bezierCurveTo(c,u,l,d,i,o)))},pointAt:function(e){return f(this.shape,e,!1)},tangentAt:function(e){var t=f(this.shape,e,!0);return i.normalize(t,t)}});e.exports=p},ac1f:function(e,t,n){"use strict";var r=n("23e7"),i=n("9263");r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},ad41:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=57)}([function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var c,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(c=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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=c):i&&(c=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(e,t){return c.call(t),l(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},,function(e,t){e.exports=n("5924")},function(e,t){e.exports=n("8122")},,function(e,t){e.exports=n("e974")},function(e,t){e.exports=n("6b7c")},function(e,t){e.exports=n("2b0e")},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"i",(function(){return s})),n.d(t,"d",(function(){return c})),n.d(t,"e",(function(){return u})),n.d(t,"c",(function(){return l})),n.d(t,"g",(function(){return d})),n.d(t,"f",(function(){return h})),n.d(t,"h",(function(){return p})),n.d(t,"l",(function(){return g})),n.d(t,"k",(function(){return m})),n.d(t,"j",(function(){return v})),n.d(t,"a",(function(){return y})),n.d(t,"m",(function(){return _})),n.d(t,"n",(function(){return b}));var r=n(3),i="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},o=function(e){var t=e.target;while(t&&"HTML"!==t.tagName.toUpperCase()){if("TD"===t.tagName.toUpperCase())return t;t=t.parentNode}return null},a=function(e){return null!==e&&"object"===("undefined"===typeof e?"undefined":i(e))},s=function(e,t,n,i,o){if(!t&&!i&&(!o||Array.isArray(o)&&!o.length))return e;n="string"===typeof n?"descending"===n?-1:1:n&&n<0?-1:1;var s=i?null:function(n,i){return o?(Array.isArray(o)||(o=[o]),o.map((function(t){return"string"===typeof t?Object(r["getValueByPath"])(n,t):t(n,i,e)}))):("$key"!==t&&a(n)&&"$value"in n&&(n=n.$value),[a(n)?Object(r["getValueByPath"])(n,t):n])},c=function(e,t){if(i)return i(e.value,t.value);for(var n=0,r=e.key.length;n<r;n++){if(e.key[n]<t.key[n])return-1;if(e.key[n]>t.key[n])return 1}return 0};return e.map((function(e,t){return{value:e,index:t,key:s?s(e,t):null}})).sort((function(e,t){var r=c(e,t);return r||(r=e.index-t.index),r*n})).map((function(e){return e.value}))},c=function(e,t){var n=null;return e.columns.forEach((function(e){e.id===t&&(n=e)})),n},u=function(e,t){for(var n=null,r=0;r<e.columns.length;r++){var i=e.columns[r];if(i.columnKey===t){n=i;break}}return n},l=function(e,t){var n=(t.className||"").match(/el-table_[^\s]+/gm);return n?c(e,n[0]):null},d=function(e,t){if(!e)throw new Error("row is required when get row identity");if("string"===typeof t){if(t.indexOf(".")<0)return e[t];for(var n=t.split("."),r=e,i=0;i<n.length;i++)r=r[n[i]];return r}if("function"===typeof t)return t.call(null,e)},h=function(e,t){var n={};return(e||[]).forEach((function(e,r){n[d(e,t)]={row:e,index:r}})),n};function f(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function p(e,t){var n={},r=void 0;for(r in e)n[r]=e[r];for(r in t)if(f(t,r)){var i=t[r];"undefined"!==typeof i&&(n[r]=i)}return n}function g(e){return void 0!==e&&(e=parseInt(e,10),isNaN(e)&&(e=null)),e}function m(e){return"undefined"!==typeof e&&(e=g(e),isNaN(e)&&(e=80)),e}function v(e){return"number"===typeof e?e:"string"===typeof e?/^\d+(?:px)?$/.test(e)?parseInt(e,10):e:null}function y(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function _(e,t,n){var r=!1,i=e.indexOf(t),o=-1!==i,a=function(){e.push(t),r=!0},s=function(){e.splice(i,1),r=!0};return"boolean"===typeof n?n&&!o?a():!n&&o&&s():o?s():a(),r}function b(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"children",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"hasChildren",i=function(e){return!(Array.isArray(e)&&e.length)};function o(e,a,s){t(e,a,s),a.forEach((function(e){if(e[r])t(e,null,s+1);else{var a=e[n];i(a)||o(e,a,s+1)}}))}e.forEach((function(e){if(e[r])t(e,null,0);else{var a=e[n];i(a)||o(e,a,0)}}))}},function(e,t){e.exports=n("7f4d")},,function(e,t){e.exports=n("2bb5")},function(e,t){e.exports=n("417f")},function(e,t){e.exports=n("5128")},,function(e,t){e.exports=n("14e9")},function(e,t){e.exports=n("4010")},,function(e,t){e.exports=n("0e15")},function(e,t){e.exports=n("dcdc")},,,,,,,,,,function(e,t){e.exports=n("299c")},,,,,,,,,function(e,t){e.exports=n("e62d")},function(e,t){e.exports=n("7fc1")},,,,function(e,t){e.exports=n("9619")},,,function(e,t){e.exports=n("c098")},,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-table",class:[{"el-table--fit":e.fit,"el-table--striped":e.stripe,"el-table--border":e.border||e.isGroup,"el-table--hidden":e.isHidden,"el-table--group":e.isGroup,"el-table--fluid-height":e.maxHeight,"el-table--scrollable-x":e.layout.scrollX,"el-table--scrollable-y":e.layout.scrollY,"el-table--enable-row-hover":!e.store.states.isComplex,"el-table--enable-row-transition":0!==(e.store.states.data||[]).length&&(e.store.states.data||[]).length<100},e.tableSize?"el-table--"+e.tableSize:""],on:{mouseleave:function(t){e.handleMouseLeave(t)}}},[n("div",{ref:"hiddenColumns",staticClass:"hidden-columns"},[e._t("default")],2),e.showHeader?n("div",{directives:[{name:"mousewheel",rawName:"v-mousewheel",value:e.handleHeaderFooterMousewheel,expression:"handleHeaderFooterMousewheel"}],ref:"headerWrapper",staticClass:"el-table__header-wrapper"},[n("table-header",{ref:"tableHeader",style:{width:e.layout.bodyWidth?e.layout.bodyWidth+"px":""},attrs:{store:e.store,border:e.border,"default-sort":e.defaultSort}})],1):e._e(),n("div",{ref:"bodyWrapper",staticClass:"el-table__body-wrapper",class:[e.layout.scrollX?"is-scrolling-"+e.scrollPosition:"is-scrolling-none"],style:[e.bodyHeight]},[n("table-body",{style:{width:e.bodyWidth},attrs:{context:e.context,store:e.store,stripe:e.stripe,"row-class-name":e.rowClassName,"row-style":e.rowStyle,highlight:e.highlightCurrentRow}}),e.data&&0!==e.data.length?e._e():n("div",{ref:"emptyBlock",staticClass:"el-table__empty-block",style:e.emptyBlockStyle},[n("span",{staticClass:"el-table__empty-text"},[e._t("empty",[e._v(e._s(e.emptyText||e.t("el.table.emptyText")))])],2)]),e.$slots.append?n("div",{ref:"appendWrapper",staticClass:"el-table__append-wrapper"},[e._t("append")],2):e._e()],1),e.showSummary?n("div",{directives:[{name:"show",rawName:"v-show",value:e.data&&e.data.length>0,expression:"data && data.length > 0"},{name:"mousewheel",rawName:"v-mousewheel",value:e.handleHeaderFooterMousewheel,expression:"handleHeaderFooterMousewheel"}],ref:"footerWrapper",staticClass:"el-table__footer-wrapper"},[n("table-footer",{style:{width:e.layout.bodyWidth?e.layout.bodyWidth+"px":""},attrs:{store:e.store,border:e.border,"sum-text":e.sumText||e.t("el.table.sumText"),"summary-method":e.summaryMethod,"default-sort":e.defaultSort}})],1):e._e(),e.fixedColumns.length>0?n("div",{directives:[{name:"mousewheel",rawName:"v-mousewheel",value:e.handleFixedMousewheel,expression:"handleFixedMousewheel"}],ref:"fixedWrapper",staticClass:"el-table__fixed",style:[{width:e.layout.fixedWidth?e.layout.fixedWidth+"px":""},e.fixedHeight]},[e.showHeader?n("div",{ref:"fixedHeaderWrapper",staticClass:"el-table__fixed-header-wrapper"},[n("table-header",{ref:"fixedTableHeader",style:{width:e.bodyWidth},attrs:{fixed:"left",border:e.border,store:e.store}})],1):e._e(),n("div",{ref:"fixedBodyWrapper",staticClass:"el-table__fixed-body-wrapper",style:[{top:e.layout.headerHeight+"px"},e.fixedBodyHeight]},[n("table-body",{style:{width:e.bodyWidth},attrs:{fixed:"left",store:e.store,stripe:e.stripe,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"row-style":e.rowStyle}}),e.$slots.append?n("div",{staticClass:"el-table__append-gutter",style:{height:e.layout.appendHeight+"px"}}):e._e()],1),e.showSummary?n("div",{directives:[{name:"show",rawName:"v-show",value:e.data&&e.data.length>0,expression:"data && data.length > 0"}],ref:"fixedFooterWrapper",staticClass:"el-table__fixed-footer-wrapper"},[n("table-footer",{style:{width:e.bodyWidth},attrs:{fixed:"left",border:e.border,"sum-text":e.sumText||e.t("el.table.sumText"),"summary-method":e.summaryMethod,store:e.store}})],1):e._e()]):e._e(),e.rightFixedColumns.length>0?n("div",{directives:[{name:"mousewheel",rawName:"v-mousewheel",value:e.handleFixedMousewheel,expression:"handleFixedMousewheel"}],ref:"rightFixedWrapper",staticClass:"el-table__fixed-right",style:[{width:e.layout.rightFixedWidth?e.layout.rightFixedWidth+"px":"",right:e.layout.scrollY?(e.border?e.layout.gutterWidth:e.layout.gutterWidth||0)+"px":""},e.fixedHeight]},[e.showHeader?n("div",{ref:"rightFixedHeaderWrapper",staticClass:"el-table__fixed-header-wrapper"},[n("table-header",{ref:"rightFixedTableHeader",style:{width:e.bodyWidth},attrs:{fixed:"right",border:e.border,store:e.store}})],1):e._e(),n("div",{ref:"rightFixedBodyWrapper",staticClass:"el-table__fixed-body-wrapper",style:[{top:e.layout.headerHeight+"px"},e.fixedBodyHeight]},[n("table-body",{style:{width:e.bodyWidth},attrs:{fixed:"right",store:e.store,stripe:e.stripe,"row-class-name":e.rowClassName,"row-style":e.rowStyle,highlight:e.highlightCurrentRow}}),e.$slots.append?n("div",{staticClass:"el-table__append-gutter",style:{height:e.layout.appendHeight+"px"}}):e._e()],1),e.showSummary?n("div",{directives:[{name:"show",rawName:"v-show",value:e.data&&e.data.length>0,expression:"data && data.length > 0"}],ref:"rightFixedFooterWrapper",staticClass:"el-table__fixed-footer-wrapper"},[n("table-footer",{style:{width:e.bodyWidth},attrs:{fixed:"right",border:e.border,"sum-text":e.sumText||e.t("el.table.sumText"),"summary-method":e.summaryMethod,store:e.store}})],1):e._e()]):e._e(),e.rightFixedColumns.length>0?n("div",{ref:"rightFixedPatch",staticClass:"el-table__fixed-right-patch",style:{width:e.layout.scrollY?e.layout.gutterWidth+"px":"0",height:e.layout.headerHeight+"px"}}):e._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:e.resizeProxyVisible,expression:"resizeProxyVisible"}],ref:"resizeProxy",staticClass:"el-table__column-resize-proxy"})])},i=[];r._withStripped=!0;var o=n(19),a=n.n(o),s=n(43),c=n(16),u=n(46),l=n.n(u),d="undefined"!==typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1,h=function(e,t){e&&e.addEventListener&&e.addEventListener(d?"DOMMouseScroll":"mousewheel",(function(e){var n=l()(e);t&&t.apply(this,[e,n])}))},f={bind:function(e,t){h(e,t.value)}},p=n(6),g=n.n(p),m=n(11),v=n.n(m),y=n(7),_=n.n(y),b=n(9),S=n.n(b),x=n(8),w={data:function(){return{states:{defaultExpandAll:!1,expandRows:[]}}},methods:{updateExpandRows:function(){var e=this.states,t=e.data,n=void 0===t?[]:t,r=e.rowKey,i=e.defaultExpandAll,o=e.expandRows;if(i)this.states.expandRows=n.slice();else if(r){var a=Object(x["f"])(o,r);this.states.expandRows=n.reduce((function(e,t){var n=Object(x["g"])(t,r),i=a[n];return i&&e.push(t),e}),[])}else this.states.expandRows=[]},toggleRowExpansion:function(e,t){var n=Object(x["m"])(this.states.expandRows,e,t);n&&(this.table.$emit("expand-change",e,this.states.expandRows.slice()),this.scheduleLayout())},setExpandRowKeys:function(e){this.assertRowKey();var t=this.states,n=t.data,r=t.rowKey,i=Object(x["f"])(n,r);this.states.expandRows=e.reduce((function(e,t){var n=i[t];return n&&e.push(n.row),e}),[])},isRowExpanded:function(e){var t=this.states,n=t.expandRows,r=void 0===n?[]:n,i=t.rowKey;if(i){var o=Object(x["f"])(r,i);return!!o[Object(x["g"])(e,i)]}return-1!==r.indexOf(e)}}},I=n(3),C={data:function(){return{states:{_currentRowKey:null,currentRow:null}}},methods:{setCurrentRowKey:function(e){this.assertRowKey(),this.states._currentRowKey=e,this.setCurrentRowByKey(e)},restoreCurrentRowKey:function(){this.states._currentRowKey=null},setCurrentRowByKey:function(e){var t=this.states,n=t.data,r=void 0===n?[]:n,i=t.rowKey,o=null;i&&(o=Object(I["arrayFind"])(r,(function(t){return Object(x["g"])(t,i)===e}))),t.currentRow=o},updateCurrentRow:function(e){var t=this.states,n=this.table,r=t.currentRow;if(e&&e!==r)return t.currentRow=e,void n.$emit("current-change",e,r);!e&&r&&(t.currentRow=null,n.$emit("current-change",null,r))},updateCurrentRowData:function(){var e=this.states,t=this.table,n=e.rowKey,r=e._currentRowKey,i=e.data||[],o=e.currentRow;if(-1===i.indexOf(o)&&o){if(n){var a=Object(x["g"])(o,n);this.setCurrentRowByKey(a)}else e.currentRow=null;null===e.currentRow&&t.$emit("current-change",null,o)}else r&&(this.setCurrentRowByKey(r),this.restoreCurrentRowKey())}}},M=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},T={data:function(){return{states:{expandRowKeys:[],treeData:{},indent:16,lazy:!1,lazyTreeNodeMap:{},lazyColumnIdentifier:"hasChildren",childrenColumnName:"children"}}},computed:{normalizedData:function(){if(!this.states.rowKey)return{};var e=this.states.data||[];return this.normalize(e)},normalizedLazyNode:function(){var e=this.states,t=e.rowKey,n=e.lazyTreeNodeMap,r=e.lazyColumnIdentifier,i=Object.keys(n),o={};return i.length?(i.forEach((function(e){if(n[e].length){var i={children:[]};n[e].forEach((function(e){var n=Object(x["g"])(e,t);i.children.push(n),e[r]&&!o[n]&&(o[n]={children:[]})})),o[e]=i}})),o):o}},watch:{normalizedData:"updateTreeData",normalizedLazyNode:"updateTreeData"},methods:{normalize:function(e){var t=this.states,n=t.childrenColumnName,r=t.lazyColumnIdentifier,i=t.rowKey,o=t.lazy,a={};return Object(x["n"])(e,(function(e,t,n){var r=Object(x["g"])(e,i);Array.isArray(t)?a[r]={children:t.map((function(e){return Object(x["g"])(e,i)})),level:n}:o&&(a[r]={children:[],lazy:!0,level:n})}),n,r),a},updateTreeData:function(){var e=this.normalizedData,t=this.normalizedLazyNode,n=Object.keys(e),r={};if(n.length){var i=this.states,o=i.treeData,a=i.defaultExpandAll,s=i.expandRowKeys,c=i.lazy,u=[],l=function(e,t){var n=a||s&&-1!==s.indexOf(t);return!!(e&&e.expanded||n)};n.forEach((function(t){var n=o[t],i=M({},e[t]);if(i.expanded=l(n,t),i.lazy){var a=n||{},s=a.loaded,c=void 0!==s&&s,d=a.loading,h=void 0!==d&&d;i.loaded=!!c,i.loading=!!h,u.push(t)}r[t]=i}));var d=Object.keys(t);c&&d.length&&u.length&&d.forEach((function(e){var n=o[e],i=t[e].children;if(-1!==u.indexOf(e)){if(0!==r[e].children.length)throw new Error("[ElTable]children must be an empty array.");r[e].children=i}else{var a=n||{},s=a.loaded,c=void 0!==s&&s,d=a.loading,h=void 0!==d&&d;r[e]={lazy:!0,loaded:!!c,loading:!!h,expanded:l(n,e),children:i,level:""}}}))}this.states.treeData=r,this.updateTableScrollY()},updateTreeExpandKeys:function(e){this.states.expandRowKeys=e,this.updateTreeData()},toggleTreeExpansion:function(e,t){this.assertRowKey();var n=this.states,r=n.rowKey,i=n.treeData,o=Object(x["g"])(e,r),a=o&&i[o];if(o&&a&&"expanded"in a){var s=a.expanded;t="undefined"===typeof t?!a.expanded:t,i[o].expanded=t,s!==t&&this.table.$emit("expand-change",e,t),this.updateTableScrollY()}},loadOrToggle:function(e){this.assertRowKey();var t=this.states,n=t.lazy,r=t.treeData,i=t.rowKey,o=Object(x["g"])(e,i),a=r[o];n&&a&&"loaded"in a&&!a.loaded?this.loadData(e,o,a):this.toggleTreeExpansion(e)},loadData:function(e,t,n){var r=this,i=this.table.load,o=this.states.treeData;i&&!o[t].loaded&&(o[t].loading=!0,i(e,n,(function(n){if(!Array.isArray(n))throw new Error("[ElTable] data must be an array");var i=r.states,o=i.lazyTreeNodeMap,a=i.treeData;a[t].loading=!1,a[t].loaded=!0,a[t].expanded=!0,n.length&&r.$set(o,t,n),r.table.$emit("expand-change",e,!0)})))}}},k=function(e,t){var n=t.sortingColumn;return n&&"string"!==typeof n.sortable?Object(x["i"])(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy):e},E=function e(t){var n=[];return t.forEach((function(t){t.children?n.push.apply(n,e(t.children)):n.push(t)})),n},A=_.a.extend({data:function(){return{states:{rowKey:null,data:[],isComplex:!1,_columns:[],originColumns:[],columns:[],fixedColumns:[],rightFixedColumns:[],leafColumns:[],fixedLeafColumns:[],rightFixedLeafColumns:[],leafColumnsLength:0,fixedLeafColumnsLength:0,rightFixedLeafColumnsLength:0,isAllSelected:!1,selection:[],reserveSelection:!1,selectOnIndeterminate:!1,selectable:null,filters:{},filteredData:null,sortingColumn:null,sortProp:null,sortOrder:null,hoverRow:null}}},mixins:[w,C,T],methods:{assertRowKey:function(){var e=this.states.rowKey;if(!e)throw new Error("[ElTable] prop row-key is required")},updateColumns:function(){var e=this.states,t=e._columns||[];e.fixedColumns=t.filter((function(e){return!0===e.fixed||"left"===e.fixed})),e.rightFixedColumns=t.filter((function(e){return"right"===e.fixed})),e.fixedColumns.length>0&&t[0]&&"selection"===t[0].type&&!t[0].fixed&&(t[0].fixed=!0,e.fixedColumns.unshift(t[0]));var n=t.filter((function(e){return!e.fixed}));e.originColumns=[].concat(e.fixedColumns).concat(n).concat(e.rightFixedColumns);var r=E(n),i=E(e.fixedColumns),o=E(e.rightFixedColumns);e.leafColumnsLength=r.length,e.fixedLeafColumnsLength=i.length,e.rightFixedLeafColumnsLength=o.length,e.columns=[].concat(i).concat(r).concat(o),e.isComplex=e.fixedColumns.length>0||e.rightFixedColumns.length>0},scheduleLayout:function(e){e&&this.updateColumns(),this.table.debouncedUpdateLayout()},isSelected:function(e){var t=this.states.selection,n=void 0===t?[]:t;return n.indexOf(e)>-1},clearSelection:function(){var e=this.states;e.isAllSelected=!1;var t=e.selection;t.length&&(e.selection=[],this.table.$emit("selection-change",[]))},cleanSelection:function(){var e=this.states,t=e.data,n=e.rowKey,r=e.selection,i=void 0;if(n){i=[];var o=Object(x["f"])(r,n),a=Object(x["f"])(t,n);for(var s in o)o.hasOwnProperty(s)&&!a[s]&&i.push(o[s].row)}else i=r.filter((function(e){return-1===t.indexOf(e)}));if(i.length){var c=r.filter((function(e){return-1===i.indexOf(e)}));e.selection=c,this.table.$emit("selection-change",c.slice())}},toggleRowSelection:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=Object(x["m"])(this.states.selection,e,t);if(r){var i=(this.states.selection||[]).slice();n&&this.table.$emit("select",i,e),this.table.$emit("selection-change",i)}},_toggleAllSelection:function(){var e=this.states,t=e.data,n=void 0===t?[]:t,r=e.selection,i=e.selectOnIndeterminate?!e.isAllSelected:!(e.isAllSelected||r.length);e.isAllSelected=i;var o=!1;n.forEach((function(t,n){e.selectable?e.selectable.call(null,t,n)&&Object(x["m"])(r,t,i)&&(o=!0):Object(x["m"])(r,t,i)&&(o=!0)})),o&&this.table.$emit("selection-change",r?r.slice():[]),this.table.$emit("select-all",r)},updateSelectionByRowKey:function(){var e=this.states,t=e.selection,n=e.rowKey,r=e.data,i=Object(x["f"])(t,n);r.forEach((function(e){var r=Object(x["g"])(e,n),o=i[r];o&&(t[o.index]=e)}))},updateAllSelected:function(){var e=this.states,t=e.selection,n=e.rowKey,r=e.selectable,i=e.data||[];if(0!==i.length){var o=void 0;n&&(o=Object(x["f"])(t,n));for(var a=function(e){return o?!!o[Object(x["g"])(e,n)]:-1!==t.indexOf(e)},s=!0,c=0,u=0,l=i.length;u<l;u++){var d=i[u],h=r&&r.call(null,d,u);if(a(d))c++;else if(!r||h){s=!1;break}}0===c&&(s=!1),e.isAllSelected=s}else e.isAllSelected=!1},updateFilters:function(e,t){Array.isArray(e)||(e=[e]);var n=this.states,r={};return e.forEach((function(e){n.filters[e.id]=t,r[e.columnKey||e.id]=t})),r},updateSort:function(e,t,n){this.states.sortingColumn&&this.states.sortingColumn!==e&&(this.states.sortingColumn.order=null),this.states.sortingColumn=e,this.states.sortProp=t,this.states.sortOrder=n},execFilter:function(){var e=this,t=this.states,n=t._data,r=t.filters,i=n;Object.keys(r).forEach((function(n){var r=t.filters[n];if(r&&0!==r.length){var o=Object(x["d"])(e.states,n);o&&o.filterMethod&&(i=i.filter((function(e){return r.some((function(t){return o.filterMethod.call(null,t,e,o)}))})))}})),t.filteredData=i},execSort:function(){var e=this.states;e.data=k(e.filteredData,e)},execQuery:function(e){e&&e.filter||this.execFilter(),this.execSort()},clearFilter:function(e){var t=this.states,n=this.table.$refs,r=n.tableHeader,i=n.fixedTableHeader,o=n.rightFixedTableHeader,a={};r&&(a=S()(a,r.filterPanels)),i&&(a=S()(a,i.filterPanels)),o&&(a=S()(a,o.filterPanels));var s=Object.keys(a);if(s.length)if("string"===typeof e&&(e=[e]),Array.isArray(e)){var c=e.map((function(e){return Object(x["e"])(t,e)}));s.forEach((function(e){var t=c.find((function(t){return t.id===e}));t&&(a[e].filteredValue=[])})),this.commit("filterChange",{column:c,values:[],silent:!0,multi:!0})}else s.forEach((function(e){a[e].filteredValue=[]})),t.filters={},this.commit("filterChange",{column:{},values:[],silent:!0})},clearSort:function(){var e=this.states;e.sortingColumn&&(this.updateSort(null,null,null),this.commit("changeSortCondition",{silent:!0}))},setExpandRowKeysAdapter:function(e){this.setExpandRowKeys(e),this.updateTreeExpandKeys(e)},toggleRowExpansionAdapter:function(e,t){var n=this.states.columns.some((function(e){var t=e.type;return"expand"===t}));n?this.toggleRowExpansion(e,t):this.toggleTreeExpansion(e,t)}}});A.prototype.mutations={setData:function(e,t){var n=e._data!==t;e._data=t,this.execQuery(),this.updateCurrentRowData(),this.updateExpandRows(),e.reserveSelection?(this.assertRowKey(),this.updateSelectionByRowKey()):n?this.clearSelection():this.cleanSelection(),this.updateAllSelected(),this.updateTableScrollY()},insertColumn:function(e,t,n,r){var i=e._columns;r&&(i=r.children,i||(i=r.children=[])),"undefined"!==typeof n?i.splice(n,0,t):i.push(t),"selection"===t.type&&(e.selectable=t.selectable,e.reserveSelection=t.reserveSelection),this.table.$ready&&(this.updateColumns(),this.scheduleLayout())},removeColumn:function(e,t,n){var r=e._columns;n&&(r=n.children,r||(r=n.children=[])),r&&r.splice(r.indexOf(t),1),this.table.$ready&&(this.updateColumns(),this.scheduleLayout())},sort:function(e,t){var n=t.prop,r=t.order,i=t.init;if(n){var o=Object(I["arrayFind"])(e.columns,(function(e){return e.property===n}));o&&(o.order=r,this.updateSort(o,n,r),this.commit("changeSortCondition",{init:i}))}},changeSortCondition:function(e,t){var n=e.sortingColumn,r=e.sortProp,i=e.sortOrder;null===i&&(e.sortingColumn=null,e.sortProp=null);var o={filter:!0};this.execQuery(o),t&&(t.silent||t.init)||this.table.$emit("sort-change",{column:n,prop:r,order:i}),this.updateTableScrollY()},filterChange:function(e,t){var n=t.column,r=t.values,i=t.silent,o=this.updateFilters(n,r);this.execQuery(),i||this.table.$emit("filter-change",o),this.updateTableScrollY()},toggleAllSelection:function(){this.toggleAllSelection()},rowSelectedChanged:function(e,t){this.toggleRowSelection(t),this.updateAllSelected()},setHoverRow:function(e,t){e.hoverRow=t},setCurrentRow:function(e,t){this.updateCurrentRow(t)}},A.prototype.commit=function(e){var t=this.mutations;if(!t[e])throw new Error("Action not found: "+e);for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];t[e].apply(this,[this.states].concat(r))},A.prototype.updateTableScrollY=function(){_.a.nextTick(this.table.updateScrollY)};var D=A,O=n(18),R=n.n(O);function L(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("Table is required.");var n=new D;return n.table=e,n.toggleAllSelection=R()(10,n._toggleAllSelection),Object.keys(t).forEach((function(e){n.states[e]=t[e]})),n}function P(e){var t={};return Object.keys(e).forEach((function(n){var r=e[n],i=void 0;"string"===typeof r?i=function(){return this.store.states[r]}:"function"===typeof r?i=function(){return r.call(this,this.store.states)}:console.error("invalid value type"),i&&(t[n]=i)})),t}var N=n(38),U=n.n(N);function F(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var G=function(){function e(t){for(var n in F(this,e),this.observers=[],this.table=null,this.store=null,this.columns=null,this.fit=!0,this.showHeader=!0,this.height=null,this.scrollX=!1,this.scrollY=!1,this.bodyWidth=null,this.fixedWidth=null,this.rightFixedWidth=null,this.tableHeight=null,this.headerHeight=44,this.appendHeight=0,this.footerHeight=44,this.viewportHeight=null,this.bodyHeight=null,this.fixedBodyHeight=null,this.gutterWidth=U()(),t)t.hasOwnProperty(n)&&(this[n]=t[n]);if(!this.table)throw new Error("table is required for Table Layout");if(!this.store)throw new Error("store is required for Table Layout")}return e.prototype.updateScrollY=function(){var e=this.height;if(null===e)return!1;var t=this.table.bodyWrapper;if(this.table.$el&&t){var n=t.querySelector(".el-table__body"),r=this.scrollY,i=n.offsetHeight>this.bodyHeight;return this.scrollY=i,r!==i}return!1},e.prototype.setHeight=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"height";if(!_.a.prototype.$isServer){var r=this.table.$el;if(e=Object(x["j"])(e),this.height=e,!r&&(e||0===e))return _.a.nextTick((function(){return t.setHeight(e,n)}));"number"===typeof e?(r.style[n]=e+"px",this.updateElsHeight()):"string"===typeof e&&(r.style[n]=e,this.updateElsHeight())}},e.prototype.setMaxHeight=function(e){this.setHeight(e,"max-height")},e.prototype.getFlattenColumns=function(){var e=[],t=this.table.columns;return t.forEach((function(t){t.isColumnGroup?e.push.apply(e,t.columns):e.push(t)})),e},e.prototype.updateElsHeight=function(){var e=this;if(!this.table.$ready)return _.a.nextTick((function(){return e.updateElsHeight()}));var t=this.table.$refs,n=t.headerWrapper,r=t.appendWrapper,i=t.footerWrapper;if(this.appendHeight=r?r.offsetHeight:0,!this.showHeader||n){var o=n?n.querySelector(".el-table__header tr"):null,a=this.headerDisplayNone(o),s=this.headerHeight=this.showHeader?n.offsetHeight:0;if(this.showHeader&&!a&&n.offsetWidth>0&&(this.table.columns||[]).length>0&&s<2)return _.a.nextTick((function(){return e.updateElsHeight()}));var c=this.tableHeight=this.table.$el.clientHeight,u=this.footerHeight=i?i.offsetHeight:0;null!==this.height&&(this.bodyHeight=c-s-u+(i?1:0)),this.fixedBodyHeight=this.scrollX?this.bodyHeight-this.gutterWidth:this.bodyHeight;var l=!(this.store.states.data&&this.store.states.data.length);this.viewportHeight=this.scrollX?c-(l?0:this.gutterWidth):c,this.updateScrollY(),this.notifyObservers("scrollable")}},e.prototype.headerDisplayNone=function(e){if(!e)return!0;var t=e;while("DIV"!==t.tagName){if("none"===getComputedStyle(t).display)return!0;t=t.parentElement}return!1},e.prototype.updateColumnsWidth=function(){if(!_.a.prototype.$isServer){var e=this.fit,t=this.table.$el.clientWidth,n=0,r=this.getFlattenColumns(),i=r.filter((function(e){return"number"!==typeof e.width}));if(r.forEach((function(e){"number"===typeof e.width&&e.realWidth&&(e.realWidth=null)})),i.length>0&&e){r.forEach((function(e){n+=e.width||e.minWidth||80}));var o=this.scrollY?this.gutterWidth:0;if(n<=t-o){this.scrollX=!1;var a=t-o-n;if(1===i.length)i[0].realWidth=(i[0].minWidth||80)+a;else{var s=i.reduce((function(e,t){return e+(t.minWidth||80)}),0),c=a/s,u=0;i.forEach((function(e,t){if(0!==t){var n=Math.floor((e.minWidth||80)*c);u+=n,e.realWidth=(e.minWidth||80)+n}})),i[0].realWidth=(i[0].minWidth||80)+a-u}}else this.scrollX=!0,i.forEach((function(e){e.realWidth=e.minWidth}));this.bodyWidth=Math.max(n,t),this.table.resizeState.width=this.bodyWidth}else r.forEach((function(e){e.width||e.minWidth?e.realWidth=e.width||e.minWidth:e.realWidth=80,n+=e.realWidth})),this.scrollX=n>t,this.bodyWidth=n;var l=this.store.states.fixedColumns;if(l.length>0){var d=0;l.forEach((function(e){d+=e.realWidth||e.width})),this.fixedWidth=d}var h=this.store.states.rightFixedColumns;if(h.length>0){var f=0;h.forEach((function(e){f+=e.realWidth||e.width})),this.rightFixedWidth=f}this.notifyObservers("columns")}},e.prototype.addObserver=function(e){this.observers.push(e)},e.prototype.removeObserver=function(e){var t=this.observers.indexOf(e);-1!==t&&this.observers.splice(t,1)},e.prototype.notifyObservers=function(e){var t=this,n=this.observers;n.forEach((function(n){switch(e){case"columns":n.onColumnsChange(t);break;case"scrollable":n.onScrollableChange(t);break;default:throw new Error("Table Layout don't have event "+e+".")}}))},e}(),V=G,j=n(2),B=n(29),z=n.n(B),H={created:function(){this.tableLayout.addObserver(this)},destroyed:function(){this.tableLayout.removeObserver(this)},computed:{tableLayout:function(){var e=this.layout;if(!e&&this.table&&(e=this.table.layout),!e)throw new Error("Can not find table layout.");return e}},mounted:function(){this.onColumnsChange(this.tableLayout),this.onScrollableChange(this.tableLayout)},updated:function(){this.__updated__||(this.onColumnsChange(this.tableLayout),this.onScrollableChange(this.tableLayout),this.__updated__=!0)},methods:{onColumnsChange:function(e){var t=this.$el.querySelectorAll("colgroup > col");if(t.length){var n=e.getFlattenColumns(),r={};n.forEach((function(e){r[e.id]=e}));for(var i=0,o=t.length;i<o;i++){var a=t[i],s=a.getAttribute("name"),c=r[s];c&&a.setAttribute("width",c.realWidth||c.width)}}},onScrollableChange:function(e){for(var t=this.$el.querySelectorAll("colgroup > col[name=gutter]"),n=0,r=t.length;n<r;n++){var i=t[n];i.setAttribute("width",e.scrollY?e.gutterWidth:"0")}for(var o=this.$el.querySelectorAll("th.gutter"),a=0,s=o.length;a<s;a++){var c=o[a];c.style.width=e.scrollY?e.gutterWidth+"px":"0",c.style.display=e.scrollY?"":"none"}}}},W="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},q=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$={name:"ElTableBody",mixins:[H],components:{ElCheckbox:a.a,ElTooltip:z.a},props:{store:{required:!0},stripe:Boolean,context:{},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:String,highlight:Boolean},render:function(e){var t=this,n=this.data||[];return e("table",{class:"el-table__body",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[e("colgroup",[this.columns.map((function(t){return e("col",{attrs:{name:t.id},key:t.id})}))]),e("tbody",[n.reduce((function(e,n){return e.concat(t.wrappedRowRender(n,e.length))}),[]),e("el-tooltip",{attrs:{effect:this.table.tooltipEffect,placement:"top",content:this.tooltipContent},ref:"tooltip"})])])},computed:q({table:function(){return this.$parent}},P({data:"data",columns:"columns",treeIndent:"indent",leftFixedLeafCount:"fixedLeafColumnsLength",rightFixedLeafCount:"rightFixedLeafColumnsLength",columnsCount:function(e){return e.columns.length},leftFixedCount:function(e){return e.fixedColumns.length},rightFixedCount:function(e){return e.rightFixedColumns.length},hasExpandColumn:function(e){return e.columns.some((function(e){var t=e.type;return"expand"===t}))}}),{firstDefaultColumnIndex:function(){return Object(I["arrayFindIndex"])(this.columns,(function(e){var t=e.type;return"default"===t}))}}),watch:{"store.states.hoverRow":function(e,t){var n=this;if(this.store.states.isComplex&&!this.$isServer){var r=window.requestAnimationFrame;r||(r=function(e){return setTimeout(e,16)}),r((function(){var r=n.$el.querySelectorAll(".el-table__row"),i=r[t],o=r[e];i&&Object(j["removeClass"])(i,"hover-row"),o&&Object(j["addClass"])(o,"hover-row")}))}}},data:function(){return{tooltipContent:""}},created:function(){this.activateTooltip=R()(50,(function(e){return e.handleShowPopper()}))},methods:{getKeyOfRow:function(e,t){var n=this.table.rowKey;return n?Object(x["g"])(e,n):t},isColumnHidden:function(e){return!0===this.fixed||"left"===this.fixed?e>=this.leftFixedLeafCount:"right"===this.fixed?e<this.columnsCount-this.rightFixedLeafCount:e<this.leftFixedLeafCount||e>=this.columnsCount-this.rightFixedLeafCount},getSpan:function(e,t,n,r){var i=1,o=1,a=this.table.spanMethod;if("function"===typeof a){var s=a({row:e,column:t,rowIndex:n,columnIndex:r});Array.isArray(s)?(i=s[0],o=s[1]):"object"===("undefined"===typeof s?"undefined":W(s))&&(i=s.rowspan,o=s.colspan)}return{rowspan:i,colspan:o}},getRowStyle:function(e,t){var n=this.table.rowStyle;return"function"===typeof n?n.call(null,{row:e,rowIndex:t}):n||null},getRowClass:function(e,t){var n=["el-table__row"];this.table.highlightCurrentRow&&e===this.store.states.currentRow&&n.push("current-row"),this.stripe&&t%2===1&&n.push("el-table__row--striped");var r=this.table.rowClassName;return"string"===typeof r?n.push(r):"function"===typeof r&&n.push(r.call(null,{row:e,rowIndex:t})),this.store.states.expandRows.indexOf(e)>-1&&n.push("expanded"),n},getCellStyle:function(e,t,n,r){var i=this.table.cellStyle;return"function"===typeof i?i.call(null,{rowIndex:e,columnIndex:t,row:n,column:r}):i},getCellClass:function(e,t,n,r){var i=[r.id,r.align,r.className];this.isColumnHidden(t)&&i.push("is-hidden");var o=this.table.cellClassName;return"string"===typeof o?i.push(o):"function"===typeof o&&i.push(o.call(null,{rowIndex:e,columnIndex:t,row:n,column:r})),i.push("el-table__cell"),i.join(" ")},getColspanRealWidth:function(e,t,n){if(t<1)return e[n].realWidth;var r=e.map((function(e){var t=e.realWidth;return t})).slice(n,n+t);return r.reduce((function(e,t){return e+t}),-1)},handleCellMouseEnter:function(e,t){var n=this.table,r=Object(x["b"])(e);if(r){var i=Object(x["c"])(n,r),o=n.hoverState={cell:r,column:i,row:t};n.$emit("cell-mouse-enter",o.row,o.column,o.cell,e)}var a=e.target.querySelector(".cell");if(Object(j["hasClass"])(a,"el-tooltip")&&a.childNodes.length){var s=document.createRange();s.setStart(a,0),s.setEnd(a,a.childNodes.length);var c=s.getBoundingClientRect().width,u=(parseInt(Object(j["getStyle"])(a,"paddingLeft"),10)||0)+(parseInt(Object(j["getStyle"])(a,"paddingRight"),10)||0);if((c+u>a.offsetWidth||a.scrollWidth>a.offsetWidth)&&this.$refs.tooltip){var l=this.$refs.tooltip;this.tooltipContent=r.innerText||r.textContent,l.referenceElm=r,l.$refs.popper&&(l.$refs.popper.style.display="none"),l.doDestroy(),l.setExpectedState(!0),this.activateTooltip(l)}}},handleCellMouseLeave:function(e){var t=this.$refs.tooltip;t&&(t.setExpectedState(!1),t.handleClosePopper());var n=Object(x["b"])(e);if(n){var r=this.table.hoverState||{};this.table.$emit("cell-mouse-leave",r.row,r.column,r.cell,e)}},handleMouseEnter:R()(30,(function(e){this.store.commit("setHoverRow",e)})),handleMouseLeave:R()(30,(function(){this.store.commit("setHoverRow",null)})),handleContextMenu:function(e,t){this.handleEvent(e,t,"contextmenu")},handleDoubleClick:function(e,t){this.handleEvent(e,t,"dblclick")},handleClick:function(e,t){this.store.commit("setCurrentRow",t),this.handleEvent(e,t,"click")},handleEvent:function(e,t,n){var r=this.table,i=Object(x["b"])(e),o=void 0;i&&(o=Object(x["c"])(r,i),o&&r.$emit("cell-"+n,t,o,i,e)),r.$emit("row-"+n,t,o,e)},rowRender:function(e,t,n){var r=this,i=this.$createElement,o=this.treeIndent,a=this.columns,s=this.firstDefaultColumnIndex,c=a.map((function(e,t){return r.isColumnHidden(t)})),u=this.getRowClass(e,t),l=!0;n&&(u.push("el-table__row--level-"+n.level),l=n.display);var d=l?null:{display:"none"};return i("tr",{style:[d,this.getRowStyle(e,t)],class:u,key:this.getKeyOfRow(e,t),on:{dblclick:function(t){return r.handleDoubleClick(t,e)},click:function(t){return r.handleClick(t,e)},contextmenu:function(t){return r.handleContextMenu(t,e)},mouseenter:function(e){return r.handleMouseEnter(t)},mouseleave:this.handleMouseLeave}},[a.map((function(u,l){var d=r.getSpan(e,u,t,l),h=d.rowspan,f=d.colspan;if(!h||!f)return null;var p=q({},u);p.realWidth=r.getColspanRealWidth(a,f,l);var g={store:r.store,_self:r.context||r.table.$vnode.context,column:p,row:e,$index:t};return l===s&&n&&(g.treeNode={indent:n.level*o,level:n.level},"boolean"===typeof n.expanded&&(g.treeNode.expanded=n.expanded,"loading"in n&&(g.treeNode.loading=n.loading),"noLazyChildren"in n&&(g.treeNode.noLazyChildren=n.noLazyChildren))),i("td",{style:r.getCellStyle(t,l,e,u),class:r.getCellClass(t,l,e,u),attrs:{rowspan:h,colspan:f},on:{mouseenter:function(t){return r.handleCellMouseEnter(t,e)},mouseleave:r.handleCellMouseLeave}},[u.renderCell.call(r._renderProxy,r.$createElement,g,c[l])])}))])},wrappedRowRender:function(e,t){var n=this,r=this.$createElement,i=this.store,o=i.isRowExpanded,a=i.assertRowKey,s=i.states,c=s.treeData,u=s.lazyTreeNodeMap,l=s.childrenColumnName,d=s.rowKey;if(this.hasExpandColumn&&o(e)){var h=this.table.renderExpanded,f=this.rowRender(e,t);return h?[[f,r("tr",{key:"expanded-row__"+f.key},[r("td",{attrs:{colspan:this.columnsCount},class:"el-table__cell el-table__expanded-cell"},[h(this.$createElement,{row:e,$index:t,store:this.store})])])]]:(console.error("[Element Error]renderExpanded is required."),f)}if(Object.keys(c).length){a();var p=Object(x["g"])(e,d),g=c[p],m=null;g&&(m={expanded:g.expanded,level:g.level,display:!0},"boolean"===typeof g.lazy&&("boolean"===typeof g.loaded&&g.loaded&&(m.noLazyChildren=!(g.children&&g.children.length)),m.loading=g.loading));var v=[this.rowRender(e,t,m)];if(g){var y=0,_=function e(r,i){r&&r.length&&i&&r.forEach((function(r){var o={display:i.display&&i.expanded,level:i.level+1},a=Object(x["g"])(r,d);if(void 0===a||null===a)throw new Error("for nested data item, row-key is required.");if(g=q({},c[a]),g&&(o.expanded=g.expanded,g.level=g.level||o.level,g.display=!(!g.expanded||!o.display),"boolean"===typeof g.lazy&&("boolean"===typeof g.loaded&&g.loaded&&(o.noLazyChildren=!(g.children&&g.children.length)),o.loading=g.loading)),y++,v.push(n.rowRender(r,t+y,o)),g){var s=u[a]||r[l];e(s,g)}}))};g.display=!0;var b=u[p]||e[l];_(b,g)}return v}return this.rowRender(e,t)}}},K=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"}},[e.multiple?n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleOutsideClick,expression:"handleOutsideClick"},{name:"show",rawName:"v-show",value:e.showPopper,expression:"showPopper"}],staticClass:"el-table-filter"},[n("div",{staticClass:"el-table-filter__content"},[n("el-scrollbar",{attrs:{"wrap-class":"el-table-filter__wrap"}},[n("el-checkbox-group",{staticClass:"el-table-filter__checkbox-group",model:{value:e.filteredValue,callback:function(t){e.filteredValue=t},expression:"filteredValue"}},e._l(e.filters,(function(t){return n("el-checkbox",{key:t.value,attrs:{label:t.value}},[e._v(e._s(t.text))])})),1)],1)],1),n("div",{staticClass:"el-table-filter__bottom"},[n("button",{class:{"is-disabled":0===e.filteredValue.length},attrs:{disabled:0===e.filteredValue.length},on:{click:e.handleConfirm}},[e._v(e._s(e.t("el.table.confirmFilter")))]),n("button",{on:{click:e.handleReset}},[e._v(e._s(e.t("el.table.resetFilter")))])])]):n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleOutsideClick,expression:"handleOutsideClick"},{name:"show",rawName:"v-show",value:e.showPopper,expression:"showPopper"}],staticClass:"el-table-filter"},[n("ul",{staticClass:"el-table-filter__list"},[n("li",{staticClass:"el-table-filter__list-item",class:{"is-active":void 0===e.filterValue||null===e.filterValue},on:{click:function(t){e.handleSelect(null)}}},[e._v(e._s(e.t("el.table.clearFilter")))]),e._l(e.filters,(function(t){return n("li",{key:t.value,staticClass:"el-table-filter__list-item",class:{"is-active":e.isActive(t)},attrs:{label:t.value},on:{click:function(n){e.handleSelect(t.value)}}},[e._v(e._s(t.text))])}))],2)])])},Y=[];K._withStripped=!0;var J=n(5),X=n.n(J),Z=n(13),Q=n(12),ee=n.n(Q),te=[];!_.a.prototype.$isServer&&document.addEventListener("click",(function(e){te.forEach((function(t){var n=e.target;t&&t.$el&&(n===t.$el||t.$el.contains(n)||t.handleOutsideClick&&t.handleOutsideClick(e))}))}));var ne={open:function(e){e&&te.push(e)},close:function(e){var t=te.indexOf(e);-1!==t&&te.splice(e,1)}},re=n(39),ie=n.n(re),oe=n(15),ae=n.n(oe),se={name:"ElTableFilterPanel",mixins:[X.a,g.a],directives:{Clickoutside:ee.a},components:{ElCheckbox:a.a,ElCheckboxGroup:ie.a,ElScrollbar:ae.a},props:{placement:{type:String,default:"bottom-end"}},methods:{isActive:function(e){return e.value===this.filterValue},handleOutsideClick:function(){var e=this;setTimeout((function(){e.showPopper=!1}),16)},handleConfirm:function(){this.confirmFilter(this.filteredValue),this.handleOutsideClick()},handleReset:function(){this.filteredValue=[],this.confirmFilter(this.filteredValue),this.handleOutsideClick()},handleSelect:function(e){this.filterValue=e,"undefined"!==typeof e&&null!==e?this.confirmFilter(this.filteredValue):this.confirmFilter([]),this.handleOutsideClick()},confirmFilter:function(e){this.table.store.commit("filterChange",{column:this.column,values:e}),this.table.store.updateAllSelected()}},data:function(){return{table:null,cell:null,column:null}},computed:{filters:function(){return this.column&&this.column.filters},filterValue:{get:function(){return(this.column.filteredValue||[])[0]},set:function(e){this.filteredValue&&("undefined"!==typeof e&&null!==e?this.filteredValue.splice(0,1,e):this.filteredValue.splice(0,1))}},filteredValue:{get:function(){return this.column&&this.column.filteredValue||[]},set:function(e){this.column&&(this.column.filteredValue=e)}},multiple:function(){return!this.column||this.column.filterMultiple}},mounted:function(){var e=this;this.popperElm=this.$el,this.referenceElm=this.cell,this.table.bodyWrapper.addEventListener("scroll",(function(){e.updatePopper()})),this.$watch("showPopper",(function(t){e.column&&(e.column.filterOpened=t),t?ne.open(e):ne.close(e)}))},watch:{showPopper:function(e){!0===e&&parseInt(this.popperJS._popper.style.zIndex,10)<Z["PopupManager"].zIndex&&(this.popperJS._popper.style.zIndex=Z["PopupManager"].nextZIndex())}}},ce=se,ue=n(0),le=Object(ue["a"])(ce,K,Y,!1,null,null,null);le.options.__file="packages/table/src/filter-panel.vue";var de=le.exports,he=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fe=function e(t){var n=[];return t.forEach((function(t){t.children?(n.push(t),n.push.apply(n,e(t.children))):n.push(t)})),n},pe=function(e){var t=1,n=function e(n,r){if(r&&(n.level=r.level+1,t<n.level&&(t=n.level)),n.children){var i=0;n.children.forEach((function(t){e(t,n),i+=t.colSpan})),n.colSpan=i}else n.colSpan=1};e.forEach((function(e){e.level=1,n(e)}));for(var r=[],i=0;i<t;i++)r.push([]);var o=fe(e);return o.forEach((function(e){e.children?e.rowSpan=1:e.rowSpan=t-e.level+1,r[e.level-1].push(e)})),r},ge={name:"ElTableHeader",mixins:[H],render:function(e){var t=this,n=this.store.states.originColumns,r=pe(n,this.columns),i=r.length>1;return i&&(this.$parent.isGroup=!0),e("table",{class:"el-table__header",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[e("colgroup",[this.columns.map((function(t){return e("col",{attrs:{name:t.id},key:t.id})})),this.hasGutter?e("col",{attrs:{name:"gutter"}}):""]),e("thead",{class:[{"is-group":i,"has-gutter":this.hasGutter}]},[this._l(r,(function(n,r){return e("tr",{style:t.getHeaderRowStyle(r),class:t.getHeaderRowClass(r)},[n.map((function(i,o){return e("th",{attrs:{colspan:i.colSpan,rowspan:i.rowSpan},on:{mousemove:function(e){return t.handleMouseMove(e,i)},mouseout:t.handleMouseOut,mousedown:function(e){return t.handleMouseDown(e,i)},click:function(e){return t.handleHeaderClick(e,i)},contextmenu:function(e){return t.handleHeaderContextMenu(e,i)}},style:t.getHeaderCellStyle(r,o,n,i),class:t.getHeaderCellClass(r,o,n,i),key:i.id},[e("div",{class:["cell",i.filteredValue&&i.filteredValue.length>0?"highlight":"",i.labelClassName]},[i.renderHeader?i.renderHeader.call(t._renderProxy,e,{column:i,$index:o,store:t.store,_self:t.$parent.$vnode.context}):i.label,i.sortable?e("span",{class:"caret-wrapper",on:{click:function(e){return t.handleSortClick(e,i)}}},[e("i",{class:"sort-caret ascending",on:{click:function(e){return t.handleSortClick(e,i,"ascending")}}}),e("i",{class:"sort-caret descending",on:{click:function(e){return t.handleSortClick(e,i,"descending")}}})]):"",i.filterable?e("span",{class:"el-table__column-filter-trigger",on:{click:function(e){return t.handleFilterClick(e,i)}}},[e("i",{class:["el-icon-arrow-down",i.filterOpened?"el-icon-arrow-up":""]})]):""])])})),t.hasGutter?e("th",{class:"el-table__cell gutter"}):""])}))])])},props:{fixed:String,store:{required:!0},border:Boolean,defaultSort:{type:Object,default:function(){return{prop:"",order:""}}}},components:{ElCheckbox:a.a},computed:he({table:function(){return this.$parent},hasGutter:function(){return!this.fixed&&this.tableLayout.gutterWidth}},P({columns:"columns",isAllSelected:"isAllSelected",leftFixedLeafCount:"fixedLeafColumnsLength",rightFixedLeafCount:"rightFixedLeafColumnsLength",columnsCount:function(e){return e.columns.length},leftFixedCount:function(e){return e.fixedColumns.length},rightFixedCount:function(e){return e.rightFixedColumns.length}})),created:function(){this.filterPanels={}},mounted:function(){var e=this;this.$nextTick((function(){var t=e.defaultSort,n=t.prop,r=t.order,i=!0;e.store.commit("sort",{prop:n,order:r,init:i})}))},beforeDestroy:function(){var e=this.filterPanels;for(var t in e)e.hasOwnProperty(t)&&e[t]&&e[t].$destroy(!0)},methods:{isCellHidden:function(e,t){for(var n=0,r=0;r<e;r++)n+=t[r].colSpan;var i=n+t[e].colSpan-1;return!0===this.fixed||"left"===this.fixed?i>=this.leftFixedLeafCount:"right"===this.fixed?n<this.columnsCount-this.rightFixedLeafCount:i<this.leftFixedLeafCount||n>=this.columnsCount-this.rightFixedLeafCount},getHeaderRowStyle:function(e){var t=this.table.headerRowStyle;return"function"===typeof t?t.call(null,{rowIndex:e}):t},getHeaderRowClass:function(e){var t=[],n=this.table.headerRowClassName;return"string"===typeof n?t.push(n):"function"===typeof n&&t.push(n.call(null,{rowIndex:e})),t.join(" ")},getHeaderCellStyle:function(e,t,n,r){var i=this.table.headerCellStyle;return"function"===typeof i?i.call(null,{rowIndex:e,columnIndex:t,row:n,column:r}):i},getHeaderCellClass:function(e,t,n,r){var i=[r.id,r.order,r.headerAlign,r.className,r.labelClassName];0===e&&this.isCellHidden(t,n)&&i.push("is-hidden"),r.children||i.push("is-leaf"),r.sortable&&i.push("is-sortable");var o=this.table.headerCellClassName;return"string"===typeof o?i.push(o):"function"===typeof o&&i.push(o.call(null,{rowIndex:e,columnIndex:t,row:n,column:r})),i.push("el-table__cell"),i.join(" ")},toggleAllSelection:function(e){e.stopPropagation(),this.store.commit("toggleAllSelection")},handleFilterClick:function(e,t){e.stopPropagation();var n=e.target,r="TH"===n.tagName?n:n.parentNode;if(!Object(j["hasClass"])(r,"noclick")){r=r.querySelector(".el-table__column-filter-trigger")||r;var i=this.$parent,o=this.filterPanels[t.id];o&&t.filterOpened?o.showPopper=!1:(o||(o=new _.a(de),this.filterPanels[t.id]=o,t.filterPlacement&&(o.placement=t.filterPlacement),o.table=i,o.cell=r,o.column=t,!this.$isServer&&o.$mount(document.createElement("div"))),setTimeout((function(){o.showPopper=!0}),16))}},handleHeaderClick:function(e,t){!t.filters&&t.sortable?this.handleSortClick(e,t):t.filterable&&!t.sortable&&this.handleFilterClick(e,t),this.$parent.$emit("header-click",t,e)},handleHeaderContextMenu:function(e,t){this.$parent.$emit("header-contextmenu",t,e)},handleMouseDown:function(e,t){var n=this;if(!this.$isServer&&!(t.children&&t.children.length>0)&&this.draggingColumn&&this.border){this.dragging=!0,this.$parent.resizeProxyVisible=!0;var r=this.$parent,i=r.$el,o=i.getBoundingClientRect().left,a=this.$el.querySelector("th."+t.id),s=a.getBoundingClientRect(),c=s.left-o+30;Object(j["addClass"])(a,"noclick"),this.dragState={startMouseLeft:e.clientX,startLeft:s.right-o,startColumnLeft:s.left-o,tableLeft:o};var u=r.$refs.resizeProxy;u.style.left=this.dragState.startLeft+"px",document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};var l=function(e){var t=e.clientX-n.dragState.startMouseLeft,r=n.dragState.startLeft+t;u.style.left=Math.max(c,r)+"px"},d=function i(){if(n.dragging){var o=n.dragState,s=o.startColumnLeft,c=o.startLeft,d=parseInt(u.style.left,10),h=d-s;t.width=t.realWidth=h,r.$emit("header-dragend",t.width,c-s,t,e),n.store.scheduleLayout(),document.body.style.cursor="",n.dragging=!1,n.draggingColumn=null,n.dragState={},r.resizeProxyVisible=!1}document.removeEventListener("mousemove",l),document.removeEventListener("mouseup",i),document.onselectstart=null,document.ondragstart=null,setTimeout((function(){Object(j["removeClass"])(a,"noclick")}),0)};document.addEventListener("mousemove",l),document.addEventListener("mouseup",d)}},handleMouseMove:function(e,t){if(!(t.children&&t.children.length>0)){var n=e.target;while(n&&"TH"!==n.tagName)n=n.parentNode;if(t&&t.resizable&&!this.dragging&&this.border){var r=n.getBoundingClientRect(),i=document.body.style;r.width>12&&r.right-e.pageX<8?(i.cursor="col-resize",Object(j["hasClass"])(n,"is-sortable")&&(n.style.cursor="col-resize"),this.draggingColumn=t):this.dragging||(i.cursor="",Object(j["hasClass"])(n,"is-sortable")&&(n.style.cursor="pointer"),this.draggingColumn=null)}}},handleMouseOut:function(){this.$isServer||(document.body.style.cursor="")},toggleOrder:function(e){var t=e.order,n=e.sortOrders;if(""===t)return n[0];var r=n.indexOf(t||null);return n[r>n.length-2?0:r+1]},handleSortClick:function(e,t,n){e.stopPropagation();var r=t.order===n?null:n||this.toggleOrder(t),i=e.target;while(i&&"TH"!==i.tagName)i=i.parentNode;if(i&&"TH"===i.tagName&&Object(j["hasClass"])(i,"noclick"))Object(j["removeClass"])(i,"noclick");else if(t.sortable){var o=this.store.states,a=o.sortProp,s=void 0,c=o.sortingColumn;(c!==t||c===t&&null===c.order)&&(c&&(c.order=null),o.sortingColumn=t,a=t.property),s=t.order=r||null,o.sortProp=a,o.sortOrder=s,this.store.commit("changeSortCondition")}}},data:function(){return{draggingColumn:null,dragging:!1,dragState:{}}}},me=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ve={name:"ElTableFooter",mixins:[H],render:function(e){var t=this,n=[];return this.summaryMethod?n=this.summaryMethod({columns:this.columns,data:this.store.states.data}):this.columns.forEach((function(e,r){if(0!==r){var i=t.store.states.data.map((function(t){return Number(t[e.property])})),o=[],a=!0;i.forEach((function(e){if(!isNaN(e)){a=!1;var t=(""+e).split(".")[1];o.push(t?t.length:0)}}));var s=Math.max.apply(null,o);n[r]=a?"":i.reduce((function(e,t){var n=Number(t);return isNaN(n)?e:parseFloat((e+t).toFixed(Math.min(s,20)))}),0)}else n[r]=t.sumText})),e("table",{class:"el-table__footer",attrs:{cellspacing:"0",cellpadding:"0",border:"0"}},[e("colgroup",[this.columns.map((function(t){return e("col",{attrs:{name:t.id},key:t.id})})),this.hasGutter?e("col",{attrs:{name:"gutter"}}):""]),e("tbody",{class:[{"has-gutter":this.hasGutter}]},[e("tr",[this.columns.map((function(r,i){return e("td",{key:i,attrs:{colspan:r.colSpan,rowspan:r.rowSpan},class:[].concat(t.getRowClasses(r,i),["el-table__cell"])},[e("div",{class:["cell",r.labelClassName]},[n[i]])])})),this.hasGutter?e("th",{class:"el-table__cell gutter"}):""])])])},props:{fixed:String,store:{required:!0},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:function(){return{prop:"",order:""}}}},computed:me({table:function(){return this.$parent},hasGutter:function(){return!this.fixed&&this.tableLayout.gutterWidth}},P({columns:"columns",isAllSelected:"isAllSelected",leftFixedLeafCount:"fixedLeafColumnsLength",rightFixedLeafCount:"rightFixedLeafColumnsLength",columnsCount:function(e){return e.columns.length},leftFixedCount:function(e){return e.fixedColumns.length},rightFixedCount:function(e){return e.rightFixedColumns.length}})),methods:{isCellHidden:function(e,t,n){if(!0===this.fixed||"left"===this.fixed)return e>=this.leftFixedLeafCount;if("right"===this.fixed){for(var r=0,i=0;i<e;i++)r+=t[i].colSpan;return r<this.columnsCount-this.rightFixedLeafCount}return!(this.fixed||!n.fixed)||(e<this.leftFixedCount||e>=this.columnsCount-this.rightFixedCount)},getRowClasses:function(e,t){var n=[e.id,e.align,e.labelClassName];return e.className&&n.push(e.className),this.isCellHidden(t,this.columns,e)&&n.push("is-hidden"),e.children||n.push("is-leaf"),n}}},ye=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_e=1,be={name:"ElTable",mixins:[g.a,v.a],directives:{Mousewheel:f},props:{data:{type:Array,default:function(){return[]}},size:String,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],context:{},showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:function(){return{hasChildren:"hasChildren",children:"children"}}},lazy:Boolean,load:Function},components:{TableHeader:ge,TableFooter:ve,TableBody:$,ElCheckbox:a.a},methods:{getMigratingConfig:function(){return{events:{expand:"expand is renamed to expand-change"}}},setCurrentRow:function(e){this.store.commit("setCurrentRow",e)},toggleRowSelection:function(e,t){this.store.toggleRowSelection(e,t,!1),this.store.updateAllSelected()},toggleRowExpansion:function(e,t){this.store.toggleRowExpansionAdapter(e,t)},clearSelection:function(){this.store.clearSelection()},clearFilter:function(e){this.store.clearFilter(e)},clearSort:function(){this.store.clearSort()},handleMouseLeave:function(){this.store.commit("setHoverRow",null),this.hoverState&&(this.hoverState=null)},updateScrollY:function(){var e=this.layout.updateScrollY();e&&(this.layout.notifyObservers("scrollable"),this.layout.updateColumnsWidth())},handleFixedMousewheel:function(e,t){var n=this.bodyWrapper;if(Math.abs(t.spinY)>0){var r=n.scrollTop;t.pixelY<0&&0!==r&&e.preventDefault(),t.pixelY>0&&n.scrollHeight-n.clientHeight>r&&e.preventDefault(),n.scrollTop+=Math.ceil(t.pixelY/5)}else n.scrollLeft+=Math.ceil(t.pixelX/5)},handleHeaderFooterMousewheel:function(e,t){var n=t.pixelX,r=t.pixelY;Math.abs(n)>=Math.abs(r)&&(this.bodyWrapper.scrollLeft+=t.pixelX/5)},syncPostion:Object(s["throttle"])(20,(function(){var e=this.bodyWrapper,t=e.scrollLeft,n=e.scrollTop,r=e.offsetWidth,i=e.scrollWidth,o=this.$refs,a=o.headerWrapper,s=o.footerWrapper,c=o.fixedBodyWrapper,u=o.rightFixedBodyWrapper;a&&(a.scrollLeft=t),s&&(s.scrollLeft=t),c&&(c.scrollTop=n),u&&(u.scrollTop=n);var l=i-r-1;this.scrollPosition=t>=l?"right":0===t?"left":"middle"})),bindEvents:function(){this.bodyWrapper.addEventListener("scroll",this.syncPostion,{passive:!0}),this.fit&&Object(c["addResizeListener"])(this.$el,this.resizeListener)},unbindEvents:function(){this.bodyWrapper.removeEventListener("scroll",this.syncPostion,{passive:!0}),this.fit&&Object(c["removeResizeListener"])(this.$el,this.resizeListener)},resizeListener:function(){if(this.$ready){var e=!1,t=this.$el,n=this.resizeState,r=n.width,i=n.height,o=t.offsetWidth;r!==o&&(e=!0);var a=t.offsetHeight;(this.height||this.shouldUpdateHeight)&&i!==a&&(e=!0),e&&(this.resizeState.width=o,this.resizeState.height=a,this.doLayout())}},doLayout:function(){this.shouldUpdateHeight&&this.layout.updateElsHeight(),this.layout.updateColumnsWidth()},sort:function(e,t){this.store.commit("sort",{prop:e,order:t})},toggleAllSelection:function(){this.store.commit("toggleAllSelection")}},computed:ye({tableSize:function(){return this.size||(this.$ELEMENT||{}).size},bodyWrapper:function(){return this.$refs.bodyWrapper},shouldUpdateHeight:function(){return this.height||this.maxHeight||this.fixedColumns.length>0||this.rightFixedColumns.length>0},bodyWidth:function(){var e=this.layout,t=e.bodyWidth,n=e.scrollY,r=e.gutterWidth;return t?t-(n?r:0)+"px":""},bodyHeight:function(){var e=this.layout,t=e.headerHeight,n=void 0===t?0:t,r=e.bodyHeight,i=e.footerHeight,o=void 0===i?0:i;if(this.height)return{height:r?r+"px":""};if(this.maxHeight){var a=Object(x["j"])(this.maxHeight);if("number"===typeof a)return{"max-height":a-o-(this.showHeader?n:0)+"px"}}return{}},fixedBodyHeight:function(){if(this.height)return{height:this.layout.fixedBodyHeight?this.layout.fixedBodyHeight+"px":""};if(this.maxHeight){var e=Object(x["j"])(this.maxHeight);if("number"===typeof e)return e=this.layout.scrollX?e-this.layout.gutterWidth:e,this.showHeader&&(e-=this.layout.headerHeight),e-=this.layout.footerHeight,{"max-height":e+"px"}}return{}},fixedHeight:function(){return this.maxHeight?this.showSummary?{bottom:0}:{bottom:this.layout.scrollX&&this.data.length?this.layout.gutterWidth+"px":""}:this.showSummary?{height:this.layout.tableHeight?this.layout.tableHeight+"px":""}:{height:this.layout.viewportHeight?this.layout.viewportHeight+"px":""}},emptyBlockStyle:function(){if(this.data&&this.data.length)return null;var e="100%";return this.layout.appendHeight&&(e="calc(100% - "+this.layout.appendHeight+"px)"),{width:this.bodyWidth,height:e}}},P({selection:"selection",columns:"columns",tableData:"data",fixedColumns:"fixedColumns",rightFixedColumns:"rightFixedColumns"})),watch:{height:{immediate:!0,handler:function(e){this.layout.setHeight(e)}},maxHeight:{immediate:!0,handler:function(e){this.layout.setMaxHeight(e)}},currentRowKey:{immediate:!0,handler:function(e){this.rowKey&&this.store.setCurrentRowKey(e)}},data:{immediate:!0,handler:function(e){this.store.commit("setData",e)}},expandRowKeys:{immediate:!0,handler:function(e){e&&this.store.setExpandRowKeysAdapter(e)}}},created:function(){var e=this;this.tableId="el-table_"+_e++,this.debouncedUpdateLayout=Object(s["debounce"])(50,(function(){return e.doLayout()}))},mounted:function(){var e=this;this.bindEvents(),this.store.updateColumns(),this.doLayout(),this.resizeState={width:this.$el.offsetWidth,height:this.$el.offsetHeight},this.store.states.columns.forEach((function(t){t.filteredValue&&t.filteredValue.length&&e.store.commit("filterChange",{column:t,values:t.filteredValue,silent:!0})})),this.$ready=!0},destroyed:function(){this.unbindEvents()},data:function(){var e=this.treeProps,t=e.hasChildren,n=void 0===t?"hasChildren":t,r=e.children,i=void 0===r?"children":r;this.store=L(this,{rowKey:this.rowKey,defaultExpandAll:this.defaultExpandAll,selectOnIndeterminate:this.selectOnIndeterminate,indent:this.indent,lazy:this.lazy,lazyColumnIdentifier:n,childrenColumnName:i});var o=new V({store:this.store,table:this,fit:this.fit,showHeader:this.showHeader});return{layout:o,isHidden:!1,renderExpanded:null,resizeProxyVisible:!1,resizeState:{width:null,height:null},isGroup:!1,scrollPosition:"left"}}},Se=be,xe=Object(ue["a"])(Se,r,i,!1,null,null,null);xe.options.__file="packages/table/src/table.vue";var we=xe.exports;we.install=function(e){e.component(we.name,we)};t["default"]=we}])},ad6d:function(e,t,n){"use strict";var r=n("825a");e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},adda:function(e,t,n){var r=n("94e4"),i=r.circularLayout;function o(e){e.eachSeriesByType("graph",(function(e){"circular"===e.get("layout")&&i(e,"symbolSize")}))}e.exports=o},addb:function(e,t,n){var r=n("4dae"),i=Math.floor,o=function(e,t){var n=e.length,c=i(n/2);return n<8?a(e,t):s(e,o(r(e,0,c),t),o(r(e,c),t),t)},a=function(e,t){var n,r,i=e.length,o=1;while(o<i){r=o,n=e[o];while(r&&t(e[r-1],n)>0)e[r]=e[--r];r!==o++&&(e[r]=n)}return e},s=function(e,t,n,r){var i=t.length,o=n.length,a=0,s=0;while(a<i||s<o)e[a+s]=a<i&&s<o?r(t[a],n[s])<=0?t[a++]:n[s++]:a<i?t[a++]:n[s++];return e};e.exports=o},adf4:function(e,t,n){var r=n("4f85"),i=n("b1d4"),o=n("2f45"),a=o.getDimensionTypeByAxis,s=n("6179"),c=n("6d8b"),u=n("e0d3"),l=u.groupData,d=n("eda2"),h=d.encodeHTML,f=n("c4a3"),p=2,g=r.extend({type:"series.themeRiver",dependencies:["singleAxis"],nameMap:null,init:function(e){g.superApply(this,"init",arguments),this.legendVisualProvider=new f(c.bind(this.getData,this),c.bind(this.getRawData,this))},fixData:function(e){var t=e.length,n={},r=l(e,(function(e){return n.hasOwnProperty(e[0])||(n[e[0]]=-1),e[2]})),i=[];r.buckets.each((function(e,t){i.push({name:t,dataList:e})}));for(var o=i.length,a=0;a<o;++a){for(var s=i[a].name,c=0;c<i[a].dataList.length;++c){var u=i[a].dataList[c][0];n[u]=a}for(var u in n)n.hasOwnProperty(u)&&n[u]!==a&&(n[u]=a,e[t]=[],e[t][0]=u,e[t][1]=0,e[t][2]=s,t++)}return e},getInitialData:function(e,t){for(var n=t.queryComponents({mainType:"singleAxis",index:this.get("singleAxisIndex"),id:this.get("singleAxisId")})[0],r=n.get("type"),o=c.filter(e.data,(function(e){return void 0!==e[2]})),u=this.fixData(o||[]),l=[],d=this.nameMap=c.createHashMap(),h=0,f=0;f<u.length;++f)l.push(u[f][p]),d.get(u[f][p])||(d.set(u[f][p],h),h++);var g=i(u,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:a(r)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}),m=new s(g,this);return m.initData(u),m},getLayerSeries:function(){for(var e=this.getData(),t=e.count(),n=[],r=0;r<t;++r)n[r]=r;var i=e.mapDimension("single"),o=l(n,(function(t){return e.get("name",t)})),a=[];return o.buckets.each((function(t,n){t.sort((function(t,n){return e.get(i,t)-e.get(i,n)})),a.push({name:n,indices:t})})),a},getAxisTooltipData:function(e,t,n){c.isArray(e)||(e=e?[e]:[]);for(var r,i=this.getData(),o=this.getLayerSeries(),a=[],s=o.length,u=0;u<s;++u){for(var l=Number.MAX_VALUE,d=-1,h=o[u].indices.length,f=0;f<h;++f){var p=i.get(e[0],o[u].indices[f]),g=Math.abs(p-t);g<=l&&(r=p,l=g,d=o[u].indices[f])}a.push(d)}return{dataIndices:a,nestestValue:r}},formatTooltip:function(e){var t=this.getData(),n=t.getName(e),r=t.get(t.mapDimension("value"),e);return(isNaN(r)||null==r)&&(r="-"),h(n+" : "+r)},defaultOption:{zlevel:0,z:2,coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",color:"#000",fontSize:11},emphasis:{label:{show:!0}}}}),m=g;e.exports=m},ae10:function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var i=r(n("278c")),o=r(n("448a"));function a(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.25,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.25;if(!(e instanceof Array))return console.error("polylineToBezierCurve: Parameter polyline must be an array!"),!1;if(e.length<=2)return console.error("polylineToBezierCurve: Converting to a curve requires at least 3 points!"),!1;var i=e[0],a=e.length-1,u=new Array(a).fill(0).map((function(i,a){return[].concat((0,o["default"])(s(e,a,t,n,r)),[e[a+1]])}));return t&&c(u,i),u.unshift(e[0]),u}function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.25,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.25,o=e.length;if(!(o<3||t>=o)){var a=t-1;a<0&&(a=n?o+a:0);var s=t+1;s>=o&&(s=n?s-o:o-1);var c=t+2;c>=o&&(c=n?c-o:o-1);var u=e[a],l=e[t],d=e[s],h=e[c];return[[l[0]+r*(d[0]-u[0]),l[1]+r*(d[1]-u[1])],[d[0]-i*(h[0]-l[0]),d[1]-i*(h[1]-l[1])]]}}function c(e,t){var n=e[0],r=e.slice(-1)[0];return e.push([u(r[1],r[2]),u(n[0],t),t]),e}function u(e,t){var n=(0,i["default"])(e,2),r=n[0],o=n[1],a=(0,i["default"])(t,2),s=a[0],c=a[1],u=s-r,l=c-o;return[s+u,c+l]}var l=a;t["default"]=l},ae46:function(e,t,n){var r=n("4e08"),i=(r.__DEV__,n("3eba")),o=n("73ca"),a=n("0fd3"),s=n("7e5b"),c=n("4527"),u=n("6a4c"),l=n("a38d"),d=n("6582"),h=n("b0af"),f=h.createClipPath,p=i.extendChartView({type:"lines",init:function(){},render:function(e,t,n){var r=e.getData(),i=this._updateLineDraw(r,e),o=e.get("zlevel"),a=e.get("effect.trailLength"),s=n.getZr(),c="svg"===s.painter.getType();c||s.painter.getLayer(o).clear(!0),null==this._lastZlevel||c||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(e)&&a&&(c||s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),i.updateData(r);var u=e.get("clip",!0)&&f(e.coordinateSystem,!1,e);u?this.group.setClipPath(u):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},incrementalPrepareRender:function(e,t,n){var r=e.getData(),i=this._updateLineDraw(r,e);i.incrementalPrepareUpdate(r),this._clearLayer(n),this._finished=!1},incrementalRender:function(e,t,n){this._lineDraw.incrementalUpdate(e,t.getData()),this._finished=e.end===t.getData().count()},updateTransform:function(e,t,n){var r=e.getData(),i=e.pipelineContext;if(!this._finished||i.large||i.progressiveRender)return{update:!0};var o=d.reset(e);o.progress&&o.progress({start:0,end:r.count()},r),this._lineDraw.updateLayout(),this._clearLayer(n)},_updateLineDraw:function(e,t){var n=this._lineDraw,r=this._showEffect(t),i=!!t.get("polyline"),d=t.pipelineContext,h=d.large;return n&&r===this._hasEffet&&i===this._isPolyline&&h===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=h?new l:new o(i?r?u:c:r?a:s),this._hasEffet=r,this._isPolyline=i,this._isLargeDraw=h,this.group.removeAll()),this.group.add(n.group),n},_showEffect:function(e){return!!e.get("effect.show")},_clearLayer:function(e){var t=e.getZr(),n="svg"===t.painter.getType();n||null==this._lastZlevel||t.painter.getLayer(this._lastZlevel).clear(!0)},remove:function(e,t){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(t)},dispose:function(){}});e.exports=p},ae69:function(e,t,n){var r=n("cbe5"),i=r.extend({type:"ellipse",shape:{cx:0,cy:0,rx:0,ry:0},buildPath:function(e,t){var n=.5522848,r=t.cx,i=t.cy,o=t.rx,a=t.ry,s=o*n,c=a*n;e.moveTo(r-o,i),e.bezierCurveTo(r-o,i-c,r-s,i-a,r,i-a),e.bezierCurveTo(r+s,i-a,r+o,i-c,r+o,i),e.bezierCurveTo(r+o,i+c,r+s,i+a,r,i+a),e.bezierCurveTo(r-s,i+a,r-o,i+c,r-o,i),e.closePath()}});e.exports=i},ae75:function(e,t,n){var r=n("6d8b"),i=["rect","polygon","keep","clear"];function o(e,t){var n=e&&e.brush;if(r.isArray(n)||(n=n?[n]:[]),n.length){var o=[];r.each(n,(function(e){var t=e.hasOwnProperty("toolbox")?e.toolbox:[];t instanceof Array&&(o=o.concat(t))}));var s=e&&e.toolbox;r.isArray(s)&&(s=s[0]),s||(s={feature:{}},e.toolbox=[s]);var c=s.feature||(s.feature={}),u=c.brush||(c.brush={}),l=u.type||(u.type=[]);l.push.apply(l,o),a(l),t&&!l.length&&l.push.apply(l,i)}}function a(e){var t={};r.each(e,(function(e){t[e]=1})),e.length=0,r.each(t,(function(t,n){e.push(n)}))}e.exports=o},ae93:function(e,t,n){"use strict";var r,i,o,a=n("d039"),s=n("1626"),c=n("7c73"),u=n("e163"),l=n("6eeb"),d=n("b622"),h=n("c430"),f=d("iterator"),p=!1;[].keys&&(o=[].keys(),"next"in o?(i=u(u(o)),i!==Object.prototype&&(r=i)):p=!0);var g=void 0==r||a((function(){var e={};return r[f].call(e)!==e}));g?r={}:h&&(r=c(r)),s(r[f])||l(r,f,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},aed9:function(e,t,n){var r=n("83ab"),i=n("d039");e.exports=r&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},af24:function(e,t,n){n("48c7"),n("f273")},afa0:function(e,t,n){var r=n("6d8b"),i=n("22d1"),o=n("e1fc"),a=n("04f6");function s(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var c=function(){this._roots=[],this._displayList=[],this._displayListLen=0};c.prototype={constructor:c,traverse:function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},getDisplayList:function(e,t){return t=t||!1,e&&this.updateDisplayList(t),this._displayList},updateDisplayList:function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,r=0,o=t.length;r<o;r++)this._updateAndAddDisplayable(t[r],null,e);n.length=this._displayListLen,i.canvasSupported&&a(n,s)},_updateAndAddDisplayable:function(e,t,n){if(!e.ignore||n){e.beforeUpdate(),e.__dirty&&e.update(),e.afterUpdate();var r=e.clipPath;if(r){t=t?t.slice():[];var i=r,o=e;while(i)i.parent=o,i.updateTransform(),t.push(i),o=i,i=i.clipPath}if(e.isGroup){for(var a=e._children,s=0;s<a.length;s++){var c=a[s];e.__dirty&&(c.__dirty=!0),this._updateAndAddDisplayable(c,t,n)}e.__dirty=!1}else e.__clipPaths=t,this._displayList[this._displayListLen++]=e}},addRoot:function(e){e.__storage!==this&&(e instanceof o&&e.addChildrenToStorage(this),this.addToStorage(e),this._roots.push(e))},delRoot:function(e){if(null==e){for(var t=0;t<this._roots.length;t++){var n=this._roots[t];n instanceof o&&n.delChildrenFromStorage(this)}return this._roots=[],this._displayList=[],void(this._displayListLen=0)}if(e instanceof Array){t=0;for(var i=e.length;t<i;t++)this.delRoot(e[t])}else{var a=r.indexOf(this._roots,e);a>=0&&(this.delFromStorage(e),this._roots.splice(a,1),e instanceof o&&e.delChildrenFromStorage(this))}},addToStorage:function(e){return e&&(e.__storage=this,e.dirty(!1)),this},delFromStorage:function(e){return e&&(e.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:s};var u=c;e.exports=u},b006:function(e,t,n){var r=n("3eba"),i=n("6d8b"),o=n("fab2"),a=n("fc82"),s=n("f4a2"),c=n("2306"),u=["axisLine","axisTickLabel","axisName"],l=r.extendComponentView({type:"parallelAxis",init:function(e,t){l.superApply(this,"init",arguments),(this._brushController=new a(t.getZr())).on("brush",i.bind(this._onBrush,this))},render:function(e,t,n,r){if(!d(e,t,r)){this.axisModel=e,this.api=n,this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new c.Group,this.group.add(this._axisGroup),e.get("show")){var s=f(e,t),l=s.coordinateSystem,h=e.getAreaSelectStyle(),p=h.width,g=e.axis.dim,m=l.getAxisLayout(g),v=i.extend({strokeContainThreshold:p},m),y=new o(e,v);i.each(u,y.add,y),this._axisGroup.add(y.getGroup()),this._refreshBrushController(v,h,e,s,p,n);var _=r&&!1===r.animation?null:e;c.groupTransition(a,this._axisGroup,_)}}},_refreshBrushController:function(e,t,n,r,i,o){var a=n.axis.getExtent(),u=a[1]-a[0],l=Math.min(30,.1*Math.abs(u)),d=c.BoundingRect.create({x:a[0],y:-i/2,width:u,height:i});d.x-=l,d.width+=2*l,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,position:e.position}).setPanels([{panelId:"pl",clipPath:s.makeRectPanelClipPath(d),isTargetByCursor:s.makeRectIsTargetByCursor(d,o,r),getLinearBrushOtherExtent:s.makeLinearBrushOtherExtent(d,0)}]).enableBrush({brushType:"lineX",brushStyle:t,removeOnClick:!0}).updateCovers(h(n))},_onBrush:function(e,t){var n=this.axisModel,r=n.axis,o=i.map(e,(function(e){return[r.coordToData(e.range[0],!0),r.coordToData(e.range[1],!0)]}));(!n.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:o})},dispose:function(){this._brushController.dispose()}});function d(e,t,n){return n&&"axisAreaSelect"===n.type&&t.findComponents({mainType:"parallelAxis",query:n})[0]===e}function h(e){var t=e.axis;return i.map(e.activeIntervals,(function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}}))}function f(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}var p=l;e.exports=p},b041:function(e,t,n){"use strict";var r=n("00ee"),i=n("f5df");e.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},b06d:function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.extendNewGraph=I,t["default"]=t.text=t.bezierCurve=t.smoothline=t.polyline=t.regPolygon=t.sector=t.arc=t.ring=t.rect=t.ellipse=t.circle=void 0;var i=r(n("448a")),o=r(n("278c")),a=r(n("050c")),s=n("5557"),c=n("e169"),u=a["default"].polylineToBezierCurve,l=a["default"].bezierCurveToPolyline,d={shape:{rx:0,ry:0,r:0},validator:function(e){var t=e.shape,n=t.rx,r=t.ry,i=t.r;return"number"===typeof n&&"number"===typeof r&&"number"===typeof i||(console.error("Circle shape configuration is abnormal!"),!1)},draw:function(e,t){var n=e.ctx,r=t.shape;n.beginPath();var i=r.rx,o=r.ry,a=r.r;n.arc(i,o,a>0?a:.01,0,2*Math.PI),n.fill(),n.stroke(),n.closePath()},hoverCheck:function(e,t){var n=t.shape,r=n.rx,i=n.ry,o=n.r;return(0,s.checkPointIsInCircle)(e,r,i,o)},setGraphCenter:function(e,t){var n=t.shape,r=t.style,i=n.rx,o=n.ry;r.graphCenter=[i,o]},move:function(e,t){var n=e.movementX,r=e.movementY,i=t.shape;this.attr("shape",{rx:i.rx+n,ry:i.ry+r})}};t.circle=d;var h={shape:{rx:0,ry:0,hr:0,vr:0},validator:function(e){var t=e.shape,n=t.rx,r=t.ry,i=t.hr,o=t.vr;return"number"===typeof n&&"number"===typeof r&&"number"===typeof i&&"number"===typeof o||(console.error("Ellipse shape configuration is abnormal!"),!1)},draw:function(e,t){var n=e.ctx,r=t.shape;n.beginPath();var i=r.rx,o=r.ry,a=r.hr,s=r.vr;n.ellipse(i,o,a>0?a:.01,s>0?s:.01,0,0,2*Math.PI),n.fill(),n.stroke(),n.closePath()},hoverCheck:function(e,t){var n=t.shape,r=n.rx,i=n.ry,o=n.hr,a=n.vr,c=Math.max(o,a),u=Math.min(o,a),l=Math.sqrt(c*c-u*u),d=[r-l,i],h=[r+l,i],f=(0,s.getTwoPointDistance)(e,d)+(0,s.getTwoPointDistance)(e,h);return f<=2*c},setGraphCenter:function(e,t){var n=t.shape,r=t.style,i=n.rx,o=n.ry;r.graphCenter=[i,o]},move:function(e,t){var n=e.movementX,r=e.movementY,i=t.shape;this.attr("shape",{rx:i.rx+n,ry:i.ry+r})}};t.ellipse=h;var f={shape:{x:0,y:0,w:0,h:0},validator:function(e){var t=e.shape,n=t.x,r=t.y,i=t.w,o=t.h;return"number"===typeof n&&"number"===typeof r&&"number"===typeof i&&"number"===typeof o||(console.error("Rect shape configuration is abnormal!"),!1)},draw:function(e,t){var n=e.ctx,r=t.shape;n.beginPath();var i=r.x,o=r.y,a=r.w,s=r.h;n.rect(i,o,a,s),n.fill(),n.stroke(),n.closePath()},hoverCheck:function(e,t){var n=t.shape,r=n.x,i=n.y,o=n.w,a=n.h;return(0,s.checkPointIsInRect)(e,r,i,o,a)},setGraphCenter:function(e,t){var n=t.shape,r=t.style,i=n.x,o=n.y,a=n.w,s=n.h;r.graphCenter=[i+a/2,o+s/2]},move:function(e,t){var n=e.movementX,r=e.movementY,i=t.shape;this.attr("shape",{x:i.x+n,y:i.y+r})}};t.rect=f;var p={shape:{rx:0,ry:0,r:0},validator:function(e){var t=e.shape,n=t.rx,r=t.ry,i=t.r;return"number"===typeof n&&"number"===typeof r&&"number"===typeof i||(console.error("Ring shape configuration is abnormal!"),!1)},draw:function(e,t){var n=e.ctx,r=t.shape;n.beginPath();var i=r.rx,o=r.ry,a=r.r;n.arc(i,o,a>0?a:.01,0,2*Math.PI),n.stroke(),n.closePath()},hoverCheck:function(e,t){var n=t.shape,r=t.style,i=n.rx,o=n.ry,a=n.r,c=r.lineWidth,u=c/2,l=a-u,d=a+u,h=(0,s.getTwoPointDistance)(e,[i,o]);return h>=l&&h<=d},setGraphCenter:function(e,t){var n=t.shape,r=t.style,i=n.rx,o=n.ry;r.graphCenter=[i,o]},move:function(e,t){var n=e.movementX,r=e.movementY,i=t.shape;this.attr("shape",{rx:i.rx+n,ry:i.ry+r})}};t.ring=p;var g={shape:{rx:0,ry:0,r:0,startAngle:0,endAngle:0,clockWise:!0},validator:function(e){var t=e.shape,n=["rx","ry","r","startAngle","endAngle"];return!n.find((function(e){return"number"!==typeof t[e]}))||(console.error("Arc shape configuration is abnormal!"),!1)},draw:function(e,t){var n=e.ctx,r=t.shape;n.beginPath();var i=r.rx,o=r.ry,a=r.r,s=r.startAngle,c=r.endAngle,u=r.clockWise;n.arc(i,o,a>0?a:.001,s,c,!u),n.stroke(),n.closePath()},hoverCheck:function(e,t){var n=t.shape,r=t.style,i=n.rx,o=n.ry,a=n.r,c=n.startAngle,u=n.endAngle,l=n.clockWise,d=r.lineWidth,h=d/2,f=a-h,p=a+h;return!(0,s.checkPointIsInSector)(e,i,o,f,c,u,l)&&(0,s.checkPointIsInSector)(e,i,o,p,c,u,l)},setGraphCenter:function(e,t){var n=t.shape,r=t.style,i=n.rx,o=n.ry;r.graphCenter=[i,o]},move:function(e,t){var n=e.movementX,r=e.movementY,i=t.shape;this.attr("shape",{rx:i.rx+n,ry:i.ry+r})}};t.arc=g;var m={shape:{rx:0,ry:0,r:0,startAngle:0,endAngle:0,clockWise:!0},validator:function(e){var t=e.shape,n=["rx","ry","r","startAngle","endAngle"];return!n.find((function(e){return"number"!==typeof t[e]}))||(console.error("Sector shape configuration is abnormal!"),!1)},draw:function(e,t){var n=e.ctx,r=t.shape;n.beginPath();var i=r.rx,o=r.ry,a=r.r,s=r.startAngle,c=r.endAngle,u=r.clockWise;n.arc(i,o,a>0?a:.01,s,c,!u),n.lineTo(i,o),n.closePath(),n.stroke(),n.fill()},hoverCheck:function(e,t){var n=t.shape,r=n.rx,i=n.ry,o=n.r,a=n.startAngle,c=n.endAngle,u=n.clockWise;return(0,s.checkPointIsInSector)(e,r,i,o,a,c,u)},setGraphCenter:function(e,t){var n=t.shape,r=t.style,i=n.rx,o=n.ry;r.graphCenter=[i,o]},move:function(e,t){var n=e.movementX,r=e.movementY,i=t.shape,o=i.rx,a=i.ry;this.attr("shape",{rx:o+n,ry:a+r})}};t.sector=m;var v={shape:{rx:0,ry:0,r:0,side:0},validator:function(e){var t=e.shape,n=t.side,r=["rx","ry","r","side"];return r.find((function(e){return"number"!==typeof t[e]}))?(console.error("RegPolygon shape configuration is abnormal!"),!1):!(n<3)||(console.error("RegPolygon at least trigon!"),!1)},draw:function(e,t){var n=e.ctx,r=t.shape,i=t.cache;n.beginPath();var o=r.rx,a=r.ry,u=r.r,l=r.side;if(!i.points||i.rx!==o||i.ry!==a||i.r!==u||i.side!==l){var d=(0,s.getRegularPolygonPoints)(o,a,u,l);Object.assign(i,{points:d,rx:o,ry:a,r:u,side:l})}var h=i.points;(0,c.drawPolylinePath)(n,h),n.closePath(),n.stroke(),n.fill()},hoverCheck:function(e,t){var n=t.cache,r=n.points;return(0,s.checkPointIsInPolygon)(e,r)},setGraphCenter:function(e,t){var n=t.shape,r=t.style,i=n.rx,o=n.ry;r.graphCenter=[i,o]},move:function(e,t){var n=e.movementX,r=e.movementY,i=t.shape,a=t.cache,s=i.rx,c=i.ry;a.rx+=n,a.ry+=r,this.attr("shape",{rx:s+n,ry:c+r}),a.points=a.points.map((function(e){var t=(0,o["default"])(e,2),i=t[0],a=t[1];return[i+n,a+r]}))}};t.regPolygon=v;var y={shape:{points:[],close:!1},validator:function(e){var t=e.shape,n=t.points;return n instanceof Array||(console.error("Polyline points should be an array!"),!1)},draw:function(e,t){var n=e.ctx,r=t.shape,i=t.style.lineWidth;n.beginPath();var o=r.points,a=r.close;1===i&&(o=(0,s.eliminateBlur)(o)),(0,c.drawPolylinePath)(n,o),a?(n.closePath(),n.fill(),n.stroke()):n.stroke()},hoverCheck:function(e,t){var n=t.shape,r=t.style,i=n.points,o=n.close,a=r.lineWidth;return o?(0,s.checkPointIsInPolygon)(e,i):(0,s.checkPointIsNearPolyline)(e,i,a)},setGraphCenter:function(e,t){var n=t.shape,r=t.style,i=n.points;r.graphCenter=i[0]},move:function(e,t){var n=e.movementX,r=e.movementY,i=t.shape,a=i.points,s=a.map((function(e){var t=(0,o["default"])(e,2),i=t[0],a=t[1];return[i+n,a+r]}));this.attr("shape",{points:s})}};t.polyline=y;var _={shape:{points:[],close:!1},validator:function(e){var t=e.shape,n=t.points;return n instanceof Array||(console.error("Smoothline points should be an array!"),!1)},draw:function(e,t){var n=e.ctx,r=t.shape,i=t.cache,o=r.points,a=r.close;if(!i.points||i.points.toString()!==o.toString()){var d=u(o,a),h=l(d);Object.assign(i,{points:(0,s.deepClone)(o,!0),bezierCurve:d,hoverPoints:h})}var f=i.bezierCurve;n.beginPath(),(0,c.drawBezierCurvePath)(n,f.slice(1),f[0]),a?(n.closePath(),n.fill(),n.stroke()):n.stroke()},hoverCheck:function(e,t){var n=t.cache,r=t.shape,i=t.style,o=n.hoverPoints,a=r.close,c=i.lineWidth;return a?(0,s.checkPointIsInPolygon)(e,o):(0,s.checkPointIsNearPolyline)(e,o,c)},setGraphCenter:function(e,t){var n=t.shape,r=t.style,i=n.points;r.graphCenter=i[0]},move:function(e,t){var n=e.movementX,r=e.movementY,a=t.shape,s=t.cache,c=a.points,u=c.map((function(e){var t=(0,o["default"])(e,2),i=t[0],a=t[1];return[i+n,a+r]}));s.points=u;var l=(0,o["default"])(s.bezierCurve[0],2),d=l[0],h=l[1],f=s.bezierCurve.slice(1);s.bezierCurve=[[d+n,h+r]].concat((0,i["default"])(f.map((function(e){return e.map((function(e){var t=(0,o["default"])(e,2),i=t[0],a=t[1];return[i+n,a+r]}))})))),s.hoverPoints=s.hoverPoints.map((function(e){var t=(0,o["default"])(e,2),i=t[0],a=t[1];return[i+n,a+r]})),this.attr("shape",{points:u})}};t.smoothline=_;var b={shape:{points:[],close:!1},validator:function(e){var t=e.shape,n=t.points;return n instanceof Array||(console.error("BezierCurve points should be an array!"),!1)},draw:function(e,t){var n=e.ctx,r=t.shape,i=t.cache,o=r.points,a=r.close;if(!i.points||i.points.toString()!==o.toString()){var u=l(o,20);Object.assign(i,{points:(0,s.deepClone)(o,!0),hoverPoints:u})}n.beginPath(),(0,c.drawBezierCurvePath)(n,o.slice(1),o[0]),a?(n.closePath(),n.fill(),n.stroke()):n.stroke()},hoverCheck:function(e,t){var n=t.cache,r=t.shape,i=t.style,o=n.hoverPoints,a=r.close,c=i.lineWidth;return a?(0,s.checkPointIsInPolygon)(e,o):(0,s.checkPointIsNearPolyline)(e,o,c)},setGraphCenter:function(e,t){var n=t.shape,r=t.style,i=n.points;r.graphCenter=i[0]},move:function(e,t){var n=e.movementX,r=e.movementY,a=t.shape,s=t.cache,c=a.points,u=(0,o["default"])(c[0],2),l=u[0],d=u[1],h=c.slice(1),f=[[l+n,d+r]].concat((0,i["default"])(h.map((function(e){return e.map((function(e){var t=(0,o["default"])(e,2),i=t[0],a=t[1];return[i+n,a+r]}))}))));s.points=f,s.hoverPoints=s.hoverPoints.map((function(e){var t=(0,o["default"])(e,2),i=t[0],a=t[1];return[i+n,a+r]})),this.attr("shape",{points:f})}};t.bezierCurve=b;var S={shape:{content:"",position:[],maxWidth:void 0,rowGap:0},validator:function(e){var t=e.shape,n=t.content,r=t.position,i=t.rowGap;return"string"!==typeof n?(console.error("Text content should be a string!"),!1):r instanceof Array?"number"===typeof i||(console.error("Text rowGap should be a number!"),!1):(console.error("Text position should be an array!"),!1)},draw:function(e,t){var n=e.ctx,r=t.shape,a=r.content,s=r.position,c=r.maxWidth,u=r.rowGap,l=n.textBaseline,d=n.font,h=parseInt(d.replace(/\D/g,"")),f=s,p=(0,o["default"])(f,2),g=p[0],m=p[1];a=a.split("\n");var v=a.length,y=h+u,_=v*y-u,b=0;"middle"===l&&(b=_/2,m+=h/2),"bottom"===l&&(b=_,m+=h),s=new Array(v).fill(0).map((function(e,t){return[g,m+t*y-b]})),n.beginPath(),a.forEach((function(e,t){n.fillText.apply(n,[e].concat((0,i["default"])(s[t]),[c])),n.strokeText.apply(n,[e].concat((0,i["default"])(s[t]),[c]))})),n.closePath()},hoverCheck:function(e,t){t.shape,t.style;return!1},setGraphCenter:function(e,t){var n=t.shape,r=t.style,o=n.position;r.graphCenter=(0,i["default"])(o)},move:function(e,t){var n=e.movementX,r=e.movementY,i=t.shape,a=(0,o["default"])(i.position,2),s=a[0],c=a[1];this.attr("shape",{position:[s+n,c+r]})}};t.text=S;var x=new Map([["circle",d],["ellipse",h],["rect",f],["ring",p],["arc",g],["sector",m],["regPolygon",v],["polyline",y],["smoothline",_],["bezierCurve",b],["text",S]]),w=x;function I(e,t){e&&t?t.shape?t.validator?t.draw?x.set(e,t):console.error("Required function of draw to extendNewGraph!"):console.error("Required function of validator to extendNewGraph!"):console.error("Required attribute of shape to extendNewGraph!"):console.error("ExtendNewGraph Missing Parameters!")}t["default"]=w},b0af:function(e,t,n){var r=n("2306"),i=n("3842"),o=i.round;function a(e,t,n){var i=e.getArea(),o=e.getBaseAxis().isHorizontal(),a=i.x,s=i.y,c=i.width,u=i.height,l=n.get("lineStyle.width")||2;a-=l/2,s-=l/2,c+=l,u+=l,a=Math.floor(a),c=Math.round(c);var d=new r.Rect({shape:{x:a,y:s,width:c,height:u}});return t&&(d.shape[o?"width":"height"]=0,r.initProps(d,{shape:{width:c,height:u}},n)),d}function s(e,t,n){var i=e.getArea(),a=new r.Sector({shape:{cx:o(e.cx,1),cy:o(e.cy,1),r0:o(i.r0,1),r:o(i.r,1),startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});return t&&(a.shape.endAngle=i.startAngle,r.initProps(a,{shape:{endAngle:i.endAngle}},n)),a}function c(e,t,n){return e?"polar"===e.type?s(e,t,n):"cartesian2d"===e.type?a(e,t,n):null:null}t.createGridClipPath=a,t.createPolarClipPath=s,t.createClipPath=c},b0c0:function(e,t,n){var r=n("83ab"),i=n("5e77").EXISTS,o=n("e330"),a=n("9bf2").f,s=Function.prototype,c=o(s.toString),u=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,l=o(u.exec),d="name";r&&!i&&a(s,d,{configurable:!0,get:function(){try{return l(u,c(this))[1]}catch(e){return""}}})},b11c:function(e,t,n){n("8ec5"),n("db9e"),n("4e9f"),n("d3a0"),n("767c"),n("7c4d"),n("df70")},b12f:function(e,t,n){var r=n("e1fc"),i=n("8918"),o=n("625e"),a=function(){this.group=new r,this.uid=i.getUID("viewComponent")};a.prototype={constructor:a,init:function(e,t){},render:function(e,t,n,r){},dispose:function(){},filterForExposedEvent:null};var s=a.prototype;s.updateView=s.updateLayout=s.updateVisual=function(e,t,n,r){},o.enableClassExtend(a),o.enableClassManagement(a,{registerWhenExtend:!0});var c=a;e.exports=c},b16f:function(e,t,n){var r=n("4ab1"),i=n("6d8b"),o=n("4942"),a=n("41ef");function s(e,t){r.call(this,e,t,["linearGradient","radialGradient"],"__gradient_in_use__")}i.inherits(s,r),s.prototype.addWithoutUpdate=function(e,t){if(t&&t.style){var n=this;i.each(["fill","stroke"],(function(r){if(t.style[r]&&("linear"===t.style[r].type||"radial"===t.style[r].type)){var i,o=t.style[r],a=n.getDefs(!0);o._dom?(i=o._dom,a.contains(o._dom)||n.addDom(i)):i=n.add(o),n.markUsed(t);var s=i.getAttribute("id");e.setAttribute(r,"url(#"+s+")")}}))}},s.prototype.add=function(e){var t;if("linear"===e.type)t=this.createElement("linearGradient");else{if("radial"!==e.type)return o("Illegal gradient type."),null;t=this.createElement("radialGradient")}return e.id=e.id||this.nextId++,t.setAttribute("id","zr"+this._zrId+"-gradient-"+e.id),this.updateDom(e,t),this.addDom(t),t},s.prototype.update=function(e){var t=this;r.prototype.update.call(this,e,(function(){var n=e.type,r=e._dom.tagName;"linear"===n&&"linearGradient"===r||"radial"===n&&"radialGradient"===r?t.updateDom(e,e._dom):(t.removeDom(e),t.add(e))}))},s.prototype.updateDom=function(e,t){if("linear"===e.type)t.setAttribute("x1",e.x),t.setAttribute("y1",e.y),t.setAttribute("x2",e.x2),t.setAttribute("y2",e.y2);else{if("radial"!==e.type)return void o("Illegal gradient type.");t.setAttribute("cx",e.x),t.setAttribute("cy",e.y),t.setAttribute("r",e.r)}e.global?t.setAttribute("gradientUnits","userSpaceOnUse"):t.setAttribute("gradientUnits","objectBoundingBox"),t.innerHTML="";for(var n=e.colorStops,r=0,i=n.length;r<i;++r){var s=this.createElement("stop");s.setAttribute("offset",100*n[r].offset+"%");var c=n[r].color;if(c.indexOf("rgba")>-1){var u=a.parse(c)[3],l=a.toHex(c);s.setAttribute("stop-color","#"+l),s.setAttribute("stop-opacity",u)}else s.setAttribute("stop-color",n[r].color);t.appendChild(s)}e._dom=t},s.prototype.markUsed=function(e){if(e.style){var t=e.style.fill;t&&t._dom&&r.prototype.markUsed.call(this,t._dom),t=e.style.stroke,t&&t._dom&&r.prototype.markUsed.call(this,t._dom)}};var c=s;e.exports=c},b1d4:function(e,t,n){var r=n("862d");function i(e,t){return t=t||{},r(t.coordDimensions||[],e,{dimsDef:t.dimensionsDefine||e.dimensionsDefine,encodeDef:t.encodeDefine||e.encodeDefine,dimCount:t.dimensionsCount,encodeDefaulter:t.encodeDefaulter,generateCoord:t.generateCoord,generateCoordCount:t.generateCoordCount})}e.exports=i},b336:function(e,t,n){var r=n("6d8b"),i=r.each;function o(e){var t=e&&e.visualMap;r.isArray(t)||(t=t?[t]:[]),i(t,(function(e){if(e){a(e,"splitList")&&!a(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var t=e.pieces;t&&r.isArray(t)&&i(t,(function(e){r.isObject(e)&&(a(e,"start")&&!a(e,"min")&&(e.min=e.start),a(e,"end")&&!a(e,"max")&&(e.max=e.end))}))}}))}function a(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}e.exports=o},b369:function(e,t,n){var r=n("3eba"),i=n("6d8b"),o=n("2306"),a=n("80f0"),s=n("55ac"),c=n("f610"),u=n("4a01"),l=n("9850"),d=n("1687"),h=n("e6cd"),f=n("282b"),p=n("eda2"),g=p.windowOpen,m=i.bind,v=o.Group,y=o.Rect,_=i.each,b=3,S=["label"],x=["emphasis","label"],w=["upperLabel"],I=["emphasis","upperLabel"],C=10,M=1,T=2,k=f([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),E=function(e){var t=k(e);return t.stroke=t.fill=t.lineWidth=null,t},A=r.extendChartView({type:"treemap",init:function(e,t){this._containerGroup,this._storage=D(),this._oldTree,this._breadcrumb,this._controller,this._state="ready"},render:function(e,t,n,r){var o=t.findComponents({mainType:"series",subType:"treemap",query:r});if(!(i.indexOf(o,e)<0)){this.seriesModel=e,this.api=n,this.ecModel=t;var a=["treemapZoomToNode","treemapRootToNode"],c=s.retrieveTargetInfo(r,a,e),u=r&&r.type,l=e.layoutInfo,d=!this._oldTree,h=this._storage,f="treemapRootToNode"===u&&c&&h?{rootNodeGroup:h.nodeGroup[c.node.getRawIndex()],direction:r.direction}:null,p=this._giveContainerGroup(l),g=this._doRender(p,e,f);d||u&&"treemapZoomToNode"!==u&&"treemapRootToNode"!==u?g.renderFinally():this._doAnimation(p,g,e,f),this._resetController(n),this._renderBreadcrumb(e,n,c)}},_giveContainerGroup:function(e){var t=this._containerGroup;return t||(t=this._containerGroup=new v,this._initEvents(t),this.group.add(t)),t.attr("position",[e.x,e.y]),t},_doRender:function(e,t,n){var r=t.getData().tree,o=this._oldTree,s=D(),c=D(),u=this._storage,l=[],d=i.curry(O,t,c,u,n,s,l);f(r.root?[r.root]:[],o&&o.root?[o.root]:[],e,r===o||!o,0);var h=p(u);return this._oldTree=r,this._storage=c,{lastsForAnimation:s,willDeleteEls:h,renderFinally:g};function f(e,t,n,r,o){function s(e){return e.getId()}function c(i,a){var s=null!=i?e[i]:null,c=null!=a?t[a]:null,u=d(s,c,n,o);u&&f(s&&s.viewChildren||[],c&&c.viewChildren||[],u,r,o+1)}r?(t=e,_(e,(function(e,t){!e.isRemoved()&&c(t,t)}))):new a(t,e,s,s).add(c).update(c).remove(i.curry(c,null)).execute()}function p(e){var t=D();return e&&_(e,(function(e,n){var r=t[n];_(e,(function(e){e&&(r.push(e),e.__tmWillDelete=1)}))})),t}function g(){_(h,(function(e){_(e,(function(e){e.parent&&e.parent.remove(e)}))})),_(l,(function(e){e.invisible=!0,e.dirty()}))}},_doAnimation:function(e,t,n,r){if(n.get("animation")){var o=n.get("animationDurationUpdate"),a=n.get("animationEasing"),s=h.createWrap();_(t.willDeleteEls,(function(e,t){_(e,(function(e,n){if(!e.invisible){var i,c=e.parent;if(r&&"drillDown"===r.direction)i=c===r.rootNodeGroup?{shape:{x:0,y:0,width:c.__tmNodeWidth,height:c.__tmNodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var u=0,l=0;c.__tmWillDelete||(u=c.__tmNodeWidth/2,l=c.__tmNodeHeight/2),i="nodeGroup"===t?{position:[u,l],style:{opacity:0}}:{shape:{x:u,y:l,width:0,height:0},style:{opacity:0}}}i&&s.add(e,i,o,a)}}))})),_(this._storage,(function(e,n){_(e,(function(e,r){var c=t.lastsForAnimation[n][r],u={};c&&("nodeGroup"===n?c.old&&(u.position=e.position.slice(),e.attr("position",c.old)):(c.old&&(u.shape=i.extend({},e.shape),e.setShape(c.old)),c.fadein?(e.setStyle("opacity",0),u.style={opacity:1}):1!==e.style.opacity&&(u.style={opacity:1})),s.add(e,u,o,a))}))}),this),this._state="animating",s.done(m((function(){this._state="ready",t.renderFinally()}),this)).start()}},_resetController:function(e){var t=this._controller;t||(t=this._controller=new u(e.getZr()),t.enable(this.seriesModel.get("roam")),t.on("pan",m(this._onPan,this)),t.on("zoom",m(this._onZoom,this)));var n=new l(0,0,e.getWidth(),e.getHeight());t.setPointerChecker((function(e,t,r){return n.contain(t,r)}))},_clearController:function(){var e=this._controller;e&&(e.dispose(),e=null)},_onPan:function(e){if("animating"!==this._state&&(Math.abs(e.dx)>b||Math.abs(e.dy)>b)){var t=this.seriesModel.getData().tree.root;if(!t)return;var n=t.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+e.dx,y:n.y+e.dy,width:n.width,height:n.height}})}},_onZoom:function(e){var t=e.originX,n=e.originY;if("animating"!==this._state){var r=this.seriesModel.getData().tree.root;if(!r)return;var i=r.getLayout();if(!i)return;var o=new l(i.x,i.y,i.width,i.height),a=this.seriesModel.layoutInfo;t-=a.x,n-=a.y;var s=d.create();d.translate(s,s,[-t,-n]),d.scale(s,s,[e.scale,e.scale]),d.translate(s,s,[t,n]),o.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},_initEvents:function(e){e.on("click",(function(e){if("ready"===this._state){var t=this.seriesModel.get("nodeClick",!0);if(t){var n=this.findTarget(e.offsetX,e.offsetY);if(n){var r=n.node;if(r.getLayout().isLeafRoot)this._rootToNode(n);else if("zoomToNode"===t)this._zoomToNode(n);else if("link"===t){var i=r.hostTree.data.getItemModel(r.dataIndex),o=i.get("link",!0),a=i.get("target",!0)||"blank";o&&g(o,a)}}}}}),this)},_renderBreadcrumb:function(e,t,n){function r(t){"animating"!==this._state&&(s.aboveViewRoot(e.getViewRoot(),t)?this._rootToNode({node:t}):this._zoomToNode({node:t}))}n||(n=null!=e.get("leafDepth",!0)?{node:e.getViewRoot()}:this.findTarget(t.getWidth()/2,t.getHeight()/2),n||(n={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new c(this.group))).render(e,t,n.node,m(r,this))},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=D(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},dispose:function(){this._clearController()},_zoomToNode:function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},_rootToNode:function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},findTarget:function(e,t){var n,r=this.seriesModel.getViewRoot();return r.eachNode({attr:"viewChildren",order:"preorder"},(function(r){var i=this._storage.background[r.getRawIndex()];if(i){var o=i.transformCoordToLocal(e,t),a=i.shape;if(!(a.x<=o[0]&&o[0]<=a.x+a.width&&a.y<=o[1]&&o[1]<=a.y+a.height))return!1;n={node:r,offsetX:o[0],offsetY:o[1]}}}),this),n}});function D(){return{nodeGroup:[],background:[],content:[]}}function O(e,t,n,r,a,s,c,u,l,d){if(c){var h=c.getLayout(),f=e.getData();if(f.setItemGraphicEl(c.dataIndex,null),h&&h.isInView){var p=h.width,g=h.height,m=h.borderWidth,_=h.invisible,b=c.getRawIndex(),C=u&&u.getRawIndex(),A=c.viewChildren,D=h.upperHeight,O=A&&A.length,L=c.getModel("itemStyle"),P=c.getModel("emphasis.itemStyle"),N=W("nodeGroup",v);if(N){if(l.add(N),N.attr("position",[h.x||0,h.y||0]),N.__tmNodeWidth=p,N.__tmNodeHeight=g,h.isAboveViewRoot)return N;var U=c.getModel(),F=W("background",y,d,M);if(F&&V(N,F,O&&h.upperLabelHeight),O)o.isHighDownDispatcher(N)&&o.setAsHighDownDispatcher(N,!1),F&&(o.setAsHighDownDispatcher(F,!0),f.setItemGraphicEl(c.dataIndex,F));else{var G=W("content",y,d,T);G&&j(N,G),F&&o.isHighDownDispatcher(F)&&o.setAsHighDownDispatcher(F,!1),o.setAsHighDownDispatcher(N,!0),f.setItemGraphicEl(c.dataIndex,N)}return N}}}function V(t,n,r){if(n.dataIndex=c.dataIndex,n.seriesIndex=e.seriesIndex,n.setShape({x:0,y:0,width:p,height:g}),_)B(n);else{n.invisible=!1;var i=c.getVisual("borderColor",!0),a=P.get("borderColor"),s=E(L);s.fill=i;var u=k(P);if(u.fill=a,r){var l=p-2*m;z(s,u,i,l,D,{x:m,y:0,width:l,height:D})}else s.text=u.text=null;n.setStyle(s),o.setElementHoverStyle(n,u)}t.add(n)}function j(t,n){n.dataIndex=c.dataIndex,n.seriesIndex=e.seriesIndex;var r=Math.max(p-2*m,0),i=Math.max(g-2*m,0);if(n.culling=!0,n.setShape({x:m,y:m,width:r,height:i}),_)B(n);else{n.invisible=!1;var a=c.getVisual("color",!0),s=E(L);s.fill=a;var u=k(P);z(s,u,a,r,i),n.setStyle(s),o.setElementHoverStyle(n,u)}t.add(n)}function B(e){!e.invisible&&s.push(e)}function z(t,n,r,a,s,u){var l=U.get("name"),d=U.getModel(u?w:S),f=U.getModel(u?I:x),p=d.getShallow("show");o.setLabelStyle(t,n,d,f,{defaultText:p?l:null,autoColor:r,isRectText:!0,labelFetcher:e,labelDataIndex:c.dataIndex,labelProp:u?"upperLabel":"label"}),H(t,u,h),H(n,u,h),u&&(t.textRect=i.clone(u)),t.truncate=p&&d.get("ellipsis")?{outerWidth:a,outerHeight:s,minChar:2}:null}function H(t,n,r){var i=t.text;if(!n&&r.isLeafRoot&&null!=i){var o=e.get("drillDownIcon",!0);t.text=o?o+" "+i:i}}function W(e,r,i,o){var s=null!=C&&n[e][C],c=a[e];return s?(n[e][C]=null,q(c,s,e)):_||(s=new r({z:R(i,o)}),s.__tmDepth=i,s.__tmStorageName=e,$(c,s,e)),t[e][b]=s}function q(e,t,n){var r=e[b]={};r.old="nodeGroup"===n?t.position.slice():i.extend({},t.shape)}function $(e,t,n){var i=e[b]={},o=c.parentNode;if(o&&(!r||"drillDown"===r.direction)){var s=0,u=0,l=a.background[o.getRawIndex()];!r&&l&&l.old&&(s=l.old.width,u=l.old.height),i.old="nodeGroup"===n?[0,u]:{x:s,y:u,width:0,height:0}}i.fadein="nodeGroup"!==n}}function R(e,t){var n=e*C+t;return(n-1)/n}e.exports=A},b370:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=129)}({0:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var c,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(c=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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=c):i&&(c=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(e,t){return c.call(t),l(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},11:function(e,t){e.exports=n("2bb5")},12:function(e,t){e.exports=n("417f")},129:function(e,t,n){"use strict";n.r(t);var r,i,o=n(12),a=n.n(o),s=n(4),c=n.n(s),u=n(11),l=n.n(u),d=n(14),h=n.n(d),f=n(35),p=n.n(f),g=n(3),m={name:"ElDropdown",componentName:"ElDropdown",mixins:[c.a,l.a],directives:{Clickoutside:a.a},components:{ElButton:h.a,ElButtonGroup:p.a},provide:function(){return{dropdown:this}},props:{trigger:{type:String,default:"hover"},type:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},placement:{type:String,default:"bottom-end"},visibleArrow:{default:!0},showTimeout:{type:Number,default:250},hideTimeout:{type:Number,default:150},tabindex:{type:Number,default:0},disabled:{type:Boolean,default:!1}},data:function(){return{timeout:null,visible:!1,triggerElm:null,menuItems:null,menuItemsArray:null,dropdownElm:null,focusing:!1,listId:"dropdown-menu-"+Object(g["generateId"])()}},computed:{dropdownSize:function(){return this.size||(this.$ELEMENT||{}).size}},mounted:function(){this.$on("menu-item-click",this.handleMenuItemClick)},watch:{visible:function(e){this.broadcast("ElDropdownMenu","visible",e),this.$emit("visible-change",e)},focusing:function(e){var t=this.$el.querySelector(".el-dropdown-selfdefine");t&&(e?t.className+=" focusing":t.className=t.className.replace("focusing",""))}},methods:{getMigratingConfig:function(){return{props:{"menu-align":"menu-align is renamed to placement."}}},show:function(){var e=this;this.disabled||(clearTimeout(this.timeout),this.timeout=setTimeout((function(){e.visible=!0}),"click"===this.trigger?0:this.showTimeout))},hide:function(){var e=this;this.disabled||(this.removeTabindex(),this.tabindex>=0&&this.resetTabindex(this.triggerElm),clearTimeout(this.timeout),this.timeout=setTimeout((function(){e.visible=!1}),"click"===this.trigger?0:this.hideTimeout))},handleClick:function(){this.disabled||(this.visible?this.hide():this.show())},handleTriggerKeyDown:function(e){var t=e.keyCode;[38,40].indexOf(t)>-1?(this.removeTabindex(),this.resetTabindex(this.menuItems[0]),this.menuItems[0].focus(),e.preventDefault(),e.stopPropagation()):13===t?this.handleClick():[9,27].indexOf(t)>-1&&this.hide()},handleItemKeyDown:function(e){var t=e.keyCode,n=e.target,r=this.menuItemsArray.indexOf(n),i=this.menuItemsArray.length-1,o=void 0;[38,40].indexOf(t)>-1?(o=38===t?0!==r?r-1:0:r<i?r+1:i,this.removeTabindex(),this.resetTabindex(this.menuItems[o]),this.menuItems[o].focus(),e.preventDefault(),e.stopPropagation()):13===t?(this.triggerElmFocus(),n.click(),this.hideOnClick&&(this.visible=!1)):[9,27].indexOf(t)>-1&&(this.hide(),this.triggerElmFocus())},resetTabindex:function(e){this.removeTabindex(),e.setAttribute("tabindex","0")},removeTabindex:function(){this.triggerElm.setAttribute("tabindex","-1"),this.menuItemsArray.forEach((function(e){e.setAttribute("tabindex","-1")}))},initAria:function(){this.dropdownElm.setAttribute("id",this.listId),this.triggerElm.setAttribute("aria-haspopup","list"),this.triggerElm.setAttribute("aria-controls",this.listId),this.splitButton||(this.triggerElm.setAttribute("role","button"),this.triggerElm.setAttribute("tabindex",this.tabindex),this.triggerElm.setAttribute("class",(this.triggerElm.getAttribute("class")||"")+" el-dropdown-selfdefine"))},initEvent:function(){var e=this,t=this.trigger,n=this.show,r=this.hide,i=this.handleClick,o=this.splitButton,a=this.handleTriggerKeyDown,s=this.handleItemKeyDown;this.triggerElm=o?this.$refs.trigger.$el:this.$slots.default[0].elm;var c=this.dropdownElm;this.triggerElm.addEventListener("keydown",a),c.addEventListener("keydown",s,!0),o||(this.triggerElm.addEventListener("focus",(function(){e.focusing=!0})),this.triggerElm.addEventListener("blur",(function(){e.focusing=!1})),this.triggerElm.addEventListener("click",(function(){e.focusing=!1}))),"hover"===t?(this.triggerElm.addEventListener("mouseenter",n),this.triggerElm.addEventListener("mouseleave",r),c.addEventListener("mouseenter",n),c.addEventListener("mouseleave",r)):"click"===t&&this.triggerElm.addEventListener("click",i)},handleMenuItemClick:function(e,t){this.hideOnClick&&(this.visible=!1),this.$emit("command",e,t)},triggerElmFocus:function(){this.triggerElm.focus&&this.triggerElm.focus()},initDomOperation:function(){this.dropdownElm=this.popperElm,this.menuItems=this.dropdownElm.querySelectorAll("[tabindex='-1']"),this.menuItemsArray=[].slice.call(this.menuItems),this.initEvent(),this.initAria()}},render:function(e){var t=this,n=this.hide,r=this.splitButton,i=this.type,o=this.dropdownSize,a=this.disabled,s=function(e){t.$emit("click",e),n()},c=null;if(r)c=e("el-button-group",[e("el-button",{attrs:{type:i,size:o,disabled:a},nativeOn:{click:s}},[this.$slots.default]),e("el-button",{ref:"trigger",attrs:{type:i,size:o,disabled:a},class:"el-dropdown__caret-button"},[e("i",{class:"el-dropdown__icon el-icon-arrow-down"})])]);else{c=this.$slots.default;var u=c[0].data||{},l=u.attrs,d=void 0===l?{}:l;a&&!d.disabled&&(d.disabled=!0,u.attrs=d)}var h=a?null:this.$slots.dropdown;return e("div",{class:"el-dropdown",directives:[{name:"clickoutside",value:n}],attrs:{"aria-disabled":a}},[c,h])}},v=m,y=n(0),_=Object(y["a"])(v,r,i,!1,null,null,null);_.options.__file="packages/dropdown/src/dropdown.vue";var b=_.exports;b.install=function(e){e.component(b.name,b)};t["default"]=b},14:function(e,t){e.exports=n("eedf")},3:function(e,t){e.exports=n("8122")},35:function(e,t){e.exports=n("845f")},4:function(e,t){e.exports=n("d010")}})},b39a:function(e,t,n){"use strict";var r=n("da84"),i=n("2ba4"),o=n("ebb5"),a=n("d039"),s=n("f36a"),c=r.Int8Array,u=o.aTypedArray,l=o.exportTypedArrayMethod,d=[].toLocaleString,h=!!c&&a((function(){d.call(new c(1))})),f=a((function(){return[1,2].toLocaleString()!=new c([1,2]).toLocaleString()}))||!a((function(){c.prototype.toLocaleString.call([1,2])}));l("toLocaleString",(function(){return i(d,h?s(u(this)):u(this),s(arguments))}),f)},b3bc:function(e,t,n){!function(t,r){e.exports=r(n("e23e"))}(window,(function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=5)}([function(e,t,n){"use strict";n.d(t,"e",(function(){return l})),n.d(t,"g",(function(){return d})),n.d(t,"c",(function(){return h})),n.d(t,"f",(function(){return f})),n.d(t,"b",(function(){return g})),n.d(t,"d",(function(){return m})),n.d(t,"a",(function(){return _})),n.d(t,"h",(function(){return b}));const r="undefined"!=typeof window,i=("undefined"!=typeof wx&&wx.getSystemInfoSync,r&&window.navigator&&window.navigator.userAgent||""),o=/AppleWebKit\/([\d.]+)/i.exec(i),a=(o&&parseFloat(o.pop()),/iPad/i.test(i)),s=(/iPhone/i.test(i),/iPod/i.test(i),function(){const e=i.match(/OS (\d+)_/i);e&&e[1]&&e[1]}(),/Android/i.test(i)),c=(function(){const e=i.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;const t=e[1]&&parseFloat(e[1]),n=e[2]&&parseFloat(e[2]);t&&n&&parseFloat(e[1]+"."+e[2])}(),s&&/webkit/i.test(i),/Firefox/i.test(i),/Edge/i.test(i)),u=(!c&&/Chrome/i.test(i),function(){const e=i.match(/Chrome\/(\d+)/);e&&e[1]&&parseFloat(e[1])}(),/MSIE/.test(i),/MSIE\s8\.0/.test(i),function(){const e=/MSIE\s(\d+)\.\d/.exec(i);let t=e&&parseFloat(e[1]);!t&&/Trident\/7.0/i.test(i)&&/rv:11.0/.test(i)&&(t=11)}(),/Safari/i.test(i),/TBS\/\d+/i.test(i));(function(){const e=i.match(/TBS\/(\d+)/i);e&&e[1]&&e[1]})(),!u&&/MQQBrowser\/\d+/i.test(i),!u&&/ QQBrowser\/\d+/i.test(i),/(micromessenger|webbrowser)/i.test(i),/Windows/i.test(i),/MAC OS X/i.test(i),/MicroMessenger/i.test(i),n(2),n(1);const l=function(e){return"map"===v(e)},d=function(e){return"set"===v(e)},h=function(e){return"file"===v(e)},f=function(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);if(null===t)return!0;let n=t;for(;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return t===n},p=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"array"===v(e)},g=function(e){return p(e)||function(e){return null!==e&&"object"==typeof e}(e)},m=function(e){return e instanceof Error},v=function(e){return Object.prototype.toString.call(e).match(/^\[object (.*)\]$/)[1].toLowerCase()};let y=0;Date.now||(Date.now=function(){return(new Date).getTime()});const _={now:function(){0===y&&(y=Date.now()-1);const e=Date.now()-y;return e>4294967295?(y+=4294967295,Date.now()-y):e},utc:function(){return Math.round(Date.now()/1e3)}},b=function(e){return JSON.stringify(e,["message","code"])}},function(e,t,n){"use strict";n.r(t);var r=n(3),i=n(0);let o=0;const a=new Map;function s(){const e=new Date;return"TSignaling "+e.toLocaleTimeString("en-US",{hour12:!1})+"."+function(e){let t;switch(e.toString().length){case 1:t="00"+e;break;case 2:t="0"+e;break;default:t=e}return t}(e.getMilliseconds())+":"}const c={_data:[],_length:0,_visible:!1,arguments2String(e){let t;if(1===e.length)t=s()+e[0];else{t=s();for(let n=0,r=e.length;n<r;n++)Object(i.b)(e[n])?Object(i.d)(e[n])?t+=Object(i.h)(e[n]):t+=JSON.stringify(e[n]):t+=e[n],t+=" "}return t},debug:function(){if(o<=-1){const e=this.arguments2String(arguments);c.record(e,"debug"),r.a.debug(e)}},log:function(){if(o<=0){const e=this.arguments2String(arguments);c.record(e,"log"),r.a.log(e)}},info:function(){if(o<=1){const e=this.arguments2String(arguments);c.record(e,"info"),r.a.info(e)}},warn:function(){if(o<=2){const e=this.arguments2String(arguments);c.record(e,"warn"),r.a.warn(e)}},error:function(){if(o<=3){const e=this.arguments2String(arguments);c.record(e,"error"),r.a.error(e)}},time:function(e){a.set(e,i.a.now())},timeEnd:function(e){if(a.has(e)){const t=i.a.now()-a.get(e);return a.delete(e),t}return r.a.warn(`未找到对应label: ${e}, 请在调用 logger.timeEnd 前,调用 logger.time`),0},setLevel:function(e){e<4&&r.a.log(s()+"set level from "+o+" to "+e),o=e},record:function(e,t){1100===c._length&&(c._data.splice(0,100),c._length=1e3),c._length++,c._data.push(`${e} [${t}] \n`)},getLog:function(){return c._data}};t.default=c},function(e,t,n){"use strict";n.r(t),t.default={MSG_PRIORITY_HIGH:"High",MSG_PRIORITY_NORMAL:"Normal",MSG_PRIORITY_LOW:"Low",MSG_PRIORITY_LOWEST:"Lowest",KICKED_OUT_MULT_ACCOUNT:"multipleAccount",KICKED_OUT_MULT_DEVICE:"multipleDevice",KICKED_OUT_USERSIG_EXPIRED:"userSigExpired",NET_STATE_CONNECTED:"connected",NET_STATE_CONNECTING:"connecting",NET_STATE_DISCONNECTED:"disconnected",ENTER_ROOM_SUCCESS:"JoinedSuccess",ALREADY_IN_ROOM:"AlreadyInGroup"}},function(e,t,n){"use strict";(function(e){let n,r;n="undefined"!=typeof console?console:void 0!==e&&e.console?e.console:"undefined"!=typeof window&&window.console?window.console:{};const i=function(){},o=["assert","clear","count","debug","dir","dirxml","error","exception","group","groupCollapsed","groupEnd","info","log","markTimeline","profile","profileEnd","table","time","timeEnd","timeStamp","trace","warn"];let a=o.length;for(;a--;)r=o[a],console[r]||(n[r]=i);n.methods=o,t.a=n}).call(this,n(8))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={NEW_INVITATION_RECEIVED:"ts_new_invitation_received",INVITEE_ACCEPTED:"ts_invitee_accepted",INVITEE_REJECTED:"ts_invitee_rejected",INVITATION_CANCELLED:"ts_invitation_cancelled",INVITATION_TIMEOUT:"ts_invitation_timeout",SDK_READY:"ts_im_ready",SDK_NOT_READY:"ts_im_not_ready",TEXT_MESSAGE_RECEIVED:"ts_text_message_received",CUSTOM_MESSAGE_RECEIVED:"ts_custom_message_received",REMOTE_USER_JOIN:"ts_remote_user_join",REMOTE_USER_LEAVE:"ts_remote_user_leave",KICKED_OUT:"ts_kicked_out",NET_STATE_CHANGE:"ts_net_state_change"}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!((i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};Object.defineProperty(t,"__esModule",{value:!0});var a=n(6),s=n(7),c=n(4),u=n(2),l=n(1),d=n(9),h=n(10),f=n(11),p=n(12),g=n(14),m=n(15).version,v=function(){function e(e){if(this._outerEmitter=null,this._safetyCallbackFactory=null,this._tim=null,this._imSDKAppID=0,this._userID=null,this._groupID="",this._isHandling=!1,this._inviteInfoMap=new Map,l.default.info("TSignaling version:"+m),d.default(e.SDKAppID))return l.default.error("TSignaling 请传入 SDKAppID !!!"),null;this._outerEmitter=new s.default,this._outerEmitter._emit=this._outerEmitter.emit,this._outerEmitter.emit=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[0],r=[n,{name:e[0],data:e[1]}];this._outerEmitter._emit.apply(this._outerEmitter,o(r))}.bind(this),this._safetyCallbackFactory=new f.default,e.tim?this._tim=e.tim:this._tim=g.create({SDKAppID:e.SDKAppID,scene:"TSignaling"}),this._imSDKAppID=e.SDKAppID,this._tim.on(g.EVENT.SDK_READY,this._onIMReady.bind(this)),this._tim.on(g.EVENT.SDK_NOT_READY,this._onIMNotReady.bind(this)),this._tim.on(g.EVENT.KICKED_OUT,this._onKickedOut.bind(this)),this._tim.on(g.EVENT.NET_STATE_CHANGE,this._onNetStateChange.bind(this)),this._tim.on(g.EVENT.MESSAGE_RECEIVED,this._onMessageReceived.bind(this))}return e.prototype.setLogLevel=function(e){l.default.setLevel(e),this._tim.setLogLevel(e)},e.prototype.login=function(e){return r(this,void 0,void 0,(function(){return i(this,(function(t){return l.default.log("TSignaling.login",e),this._userID=e.userID,[2,this._tim.login(e)]}))}))},e.prototype.logout=function(){return r(this,void 0,void 0,(function(){return i(this,(function(e){return l.default.log("TSignaling.logout"),this._userID="",this._inviteInfoMap.clear(),[2,this._tim.logout()]}))}))},e.prototype.on=function(e,t,n){l.default.log("TSignaling.on eventName:"+e),this._outerEmitter.on(e,this._safetyCallbackFactory.defense(e,t,n),n)},e.prototype.off=function(e,t){l.default.log("TSignaling.off eventName:"+e);var n=this._safetyCallbackFactory.find(e,t);null!==n&&(this._outerEmitter.off(e,n),this._safetyCallbackFactory.delete(e,t))},e.prototype.joinGroup=function(e){return r(this,void 0,void 0,(function(){return i(this,(function(t){return l.default.log("TSignaling.joinGroup groupID:"+e),this._groupID=e,[2,this._tim.joinGroup({groupID:e})]}))}))},e.prototype.quitGroup=function(e){return r(this,void 0,void 0,(function(){return i(this,(function(t){return l.default.log("TSignaling.quitGroup groupID:"+e),[2,this._tim.quitGroup(e)]}))}))},e.prototype.sendTextMessage=function(e){return r(this,void 0,void 0,(function(){var t;return i(this,(function(n){return t=this._tim.createTextMessage({to:e.to,conversationType:!0===e.groupFlag?g.TYPES.CONV_GROUP:g.TYPES.CONV_C2C,priority:e.priority||g.TYPES.MSG_PRIORITY_NORMAL,payload:{text:e.text}}),[2,this._tim.sendMessage(t)]}))}))},e.prototype.sendCustomMessage=function(e){return r(this,void 0,void 0,(function(){var t;return i(this,(function(n){return t=this._tim.createCustomMessage({to:e.to,conversationType:!0===e.groupFlag?g.TYPES.CONV_GROUP:g.TYPES.CONV_C2C,priority:e.priority||g.TYPES.MSG_PRIORITY_NORMAL,payload:{data:e.data||"",description:e.description||"",extension:e.extension||""}}),[2,this._tim.sendMessage(t)]}))}))},e.prototype.invite=function(e){return r(this,void 0,void 0,(function(){var t,n,r,o,s,c,u;return i(this,(function(i){switch(i.label){case 0:return t=p.generate(),l.default.log("TSignaling.invite",e,"inviteID="+t),d.default(e)||d.default(e.userID)?[2,Promise.reject(new h.default({code:a.ErrorCode.ERR_INVALID_PARAMETERS,message:"userID is invalid"}))]:(n=e.userID,r=e.data,o=e.timeout,s=e.offlinePushInfo,c={businessID:a.BusinessID.SIGNAL,inviteID:t,inviter:this._userID,actionType:a.ActionType.INVITE,inviteeList:[n],data:r,timeout:d.default(o)?0:o,groupID:""},[4,this._sendCustomMessage(n,c,s)]);case 1:return 0===(u=i.sent()).code?(l.default.log("TSignaling.invite ok"),this._inviteInfoMap.set(t,c),this._startTimer(c,!0),[2,{inviteID:t,code:u.code,data:u.data}]):[2,u]}}))}))},e.prototype.inviteInGroup=function(e){return r(this,void 0,void 0,(function(){var t,n,r,o,s,c,u,f;return i(this,(function(i){switch(i.label){case 0:return t=p.generate(),l.default.log("TSignaling.inviteInGroup",e,"inviteID="+t),d.default(e)||d.default(e.groupID)?[2,Promise.reject(new h.default({code:a.ErrorCode.ERR_INVALID_PARAMETERS,message:"groupID is invalid"}))]:(n=e.groupID,r=e.inviteeList,o=e.data,s=e.timeout,c=e.offlinePushInfo,u={businessID:a.BusinessID.SIGNAL,inviteID:t,inviter:this._userID,actionType:a.ActionType.INVITE,inviteeList:r,data:o,timeout:d.default(s)?0:s,groupID:n},[4,this._sendCustomMessage(n,u,c)]);case 1:return 0===(f=i.sent()).code?(l.default.log("TSignaling.inviteInGroup ok"),this._inviteInfoMap.set(t,u),this._startTimer(u,!0),[2,{inviteID:t,code:f.code,data:f.data}]):[2,f]}}))}))},e.prototype.cancel=function(e){return r(this,void 0,void 0,(function(){var t,n,r,o,s,c,u,f,p;return i(this,(function(i){switch(i.label){case 0:return l.default.log("TSignaling.cancel",e),d.default(e)||d.default(e.inviteID)||!this._inviteInfoMap.has(e.inviteID)||this._isHandling?[2,Promise.reject(new h.default({code:a.ErrorCode.ERR_SDK_SIGNALING_INVALID_INVITE_ID,message:"inviteID is invalid or invitation has been processed"}))]:(this._isHandling=!0,t=e.inviteID,n=e.data,r=this._inviteInfoMap.get(t),o=r.inviter,s=r.groupID,c=r.inviteeList,o!==this._userID?[3,2]:(u={businessID:a.BusinessID.SIGNAL,inviteID:t,inviter:o,actionType:a.ActionType.CANCEL_INVITE,inviteeList:c,data:n,timeout:0,groupID:s},f=s||c[0],[4,this._sendCustomMessage(f,u)]));case 1:return p=i.sent(),this._isHandling=!1,p&&0===p.code?(l.default.log("TSignaling.cancel ok"),this._deleteInviteInfoByID(t),[2,{inviteID:t,code:p.code,data:p.data}]):[2,p];case 2:return l.default.error("TSignaling.cancel unmatched inviter="+o+" and userID="+this._userID),this._isHandling=!1,[2,Promise.reject(new h.default({code:a.ErrorCode.ERR_SDK_SIGNALING_NO_PERMISSION,message:"信令请求无权限,比如取消非自己发起的邀请,接受或则拒绝非发给自己的邀请"}))]}}))}))},e.prototype.accept=function(e){return r(this,void 0,void 0,(function(){var t,n,r,o,s,c,u,f;return i(this,(function(i){switch(i.label){case 0:return l.default.log("TSignaling.accept",e),d.default(e)||d.default(e.inviteID)||!this._inviteInfoMap.has(e.inviteID)||this._isHandling?[2,Promise.reject(new h.default({code:a.ErrorCode.ERR_SDK_SIGNALING_INVALID_INVITE_ID,message:"inviteID is invalid or invitation has been processed"}))]:(this._isHandling=!0,t=e.inviteID,n=e.data,r=this._inviteInfoMap.get(t),o=r.inviter,s=r.groupID,r.inviteeList.includes(this._userID)?(c={businessID:a.BusinessID.SIGNAL,inviteID:t,inviter:o,actionType:a.ActionType.ACCEPT_INVITE,inviteeList:[this._userID],data:n,timeout:0,groupID:s},u=s||o,[4,this._sendCustomMessage(u,c)]):[3,2]);case 1:return f=i.sent(),this._isHandling=!1,f&&0===f.code?(l.default.log("TSignaling.accept ok"),this._updateLocalInviteInfo(c),[2,{inviteID:t,code:f.code,data:f.data}]):[2,f];case 2:return l.default.error("TSignaling.accept inviteeList do not include userID="+this._userID+". inviteID="+t+" groupID="+s),this._isHandling=!1,[2,Promise.reject(new h.default({code:a.ErrorCode.ERR_SDK_SIGNALING_INVALID_INVITE_ID,message:"inviteID is invalid or invitation has been processed"}))]}}))}))},e.prototype.reject=function(e){return r(this,void 0,void 0,(function(){var t,n,r,o,s,c,u,f;return i(this,(function(i){switch(i.label){case 0:return l.default.log("TSignaling.reject",e),d.default(e)||d.default(e.inviteID)||!this._inviteInfoMap.has(e.inviteID)||this._isHandling?[2,Promise.reject(new h.default({code:a.ErrorCode.ERR_SDK_SIGNALING_INVALID_INVITE_ID,message:"inviteID is invalid or invitation has been processed"}))]:(this._isHandling=!0,t=e.inviteID,n=e.data,r=this._inviteInfoMap.get(t),o=r.inviter,s=r.groupID,r.inviteeList.includes(this._userID)?(c={businessID:a.BusinessID.SIGNAL,inviteID:t,inviter:o,actionType:a.ActionType.REJECT_INVITE,inviteeList:[this._userID],data:n,timeout:0,groupID:s},u=s||o,[4,this._sendCustomMessage(u,c)]):[3,2]);case 1:return f=i.sent(),this._isHandling=!1,f&&0===f.code?(l.default.log("TSignaling.reject ok"),this._updateLocalInviteInfo(c),[2,{inviteID:t,code:f.code,data:f.data}]):[2,f];case 2:return l.default.error("TSignaling.reject inviteeList do not include userID="+this._userID+". inviteID="+t+" groupID="+s),this._isHandling=!1,[2,Promise.reject(new h.default({code:a.ErrorCode.ERR_SDK_SIGNALING_INVALID_INVITE_ID,message:"inviteID is invalid or invitation has been processed"}))]}}))}))},e.prototype._onIMReady=function(e){l.default.log("TSignaling._onIMReady"),this._outerEmitter.emit(c.default.SDK_READY)},e.prototype._onIMNotReady=function(e){l.default.log("TSignaling.onSdkNotReady"),this._outerEmitter.emit(c.default.SDK_NOT_READY)},e.prototype._onKickedOut=function(e){l.default.log("TSignaling._onKickedOut"),this._outerEmitter.emit(c.default.KICKED_OUT,e.data)},e.prototype._onNetStateChange=function(e){l.default.log("TSignaling._onNetStateChange"),this._outerEmitter.emit(c.default.NET_STATE_CHANGE,e.data)},e.prototype._onMessageReceived=function(e){var t=this;l.default.log("TSignaling._onMessageReceived inviteID="+JSON.stringify(e));var n=e.data,r=n.filter((function(e){return e.type===g.TYPES.MSG_TEXT}));l.default.log("TSignaling._onMessageReceived textMessages"+JSON.stringify(r)),d.default(r)||this._outerEmitter.emit(c.default.TEXT_MESSAGE_RECEIVED,r);var i=n.filter((function(e){return e.type===g.TYPES.MSG_GRP_TIP&&e.payload.operationType===g.TYPES.GRP_TIP_MBR_JOIN}));d.default(i)||this._outerEmitter.emit(c.default.REMOTE_USER_JOIN,i);var o=n.filter((function(e){return e.type===g.TYPES.MSG_GRP_TIP&&e.payload.operationType===g.TYPES.GRP_TIP_MBR_QUIT}));d.default(o)||this._outerEmitter.emit(c.default.REMOTE_USER_LEAVE,o);var s=n.filter((function(e){return e.type===g.TYPES.MSG_CUSTOM})),u=[];s.forEach((function(e){var n,r=e.payload.data,i=!0;try{n=JSON.parse(r)}catch(e){i=!1}if(i){var o=n.businessID,s=n.actionType;if(1===o)switch(s){case a.ActionType.INVITE:t._onNewInvitationReceived(n);break;case a.ActionType.REJECT_INVITE:t._onInviteeRejected(n);break;case a.ActionType.ACCEPT_INVITE:t._onInviteeAccepted(n);break;case a.ActionType.CANCEL_INVITE:t._onInvitationCancelled(n);break;case a.ActionType.INVITE_TIMEOUT:t._onInvitationTimeout(n)}else{if("av_call"===o)return!0;l.default.warn("TSignaling._onMessageReceived unknown businessID="+o),u.push(e)}}else u.push(e)})),d.default(u)||this._outerEmitter.emit(c.default.CUSTOM_MESSAGE_RECEIVED,u)},e.prototype._hasLocalInviteInfo=function(e,t){var n=e.inviteID,r=e.groupID;if(l.default.log("TSignaling._hasLocalInviteInfo inviteID="+n+" groupID="+r),!this._inviteInfoMap.has(n))return!1;var i=this._inviteInfoMap.get(n).inviteeList;return!r||(t?i.length>0:i.length>0&&i.includes(this._userID))},e.prototype._startTimer=function(e,t){var n=this;void 0===t&&(t=!0);var r=e.timeout;if(l.default.log("TSignaling._startTimer timeout="+r+" isInvitator="+t+" timeoutStatus="+(0===r)),0!==r)var i=t?r+5:r,o=1,a=setInterval((function(){var r=n._hasLocalInviteInfo(e,t);l.default.log("TSignaling.setInterval hasInviteInfo="+r),o<i&&r?++o:(r&&n._sendTimeoutNotice(e,t),clearInterval(a))}),1e3)},e.prototype._sendTimeoutNotice=function(e,t){return r(this,void 0,void 0,(function(){var n,r,o,s,u,d,h,f;return i(this,(function(i){switch(i.label){case 0:return n=e.inviteID,r=e.groupID,o=e.inviteeList,s=e.inviter,u=e.data,d=t?r||o[0]:r||s,l.default.log("TSignaling._sendTimeoutNotice inviteID="+n+" to="+d+" isInvitator="+t),h={businessID:a.BusinessID.SIGNAL,inviteID:n,inviter:s,actionType:a.ActionType.INVITE_TIMEOUT,inviteeList:t?o:[this._userID],data:u,timeout:0,groupID:r},[4,this._sendCustomMessage(d,h)];case 1:return(f=i.sent())&&0===f.code&&(this._outerEmitter.emit(c.default.INVITATION_TIMEOUT,{inviter:s,inviteID:n,groupID:r,inviteeList:h.inviteeList,isSelfTimeout:!0}),t?this._deleteInviteInfoByID(n):this._updateLocalInviteInfo(h)),[2,f]}}))}))},e.prototype._onNewInvitationReceived=function(t){var n=t.inviteID,r=t.inviter,i=t.inviteeList,o=t.groupID,a=t.data,s=i.includes(this._userID);l.default.log("TSignaling._onNewInvitationReceived",t,"myselfIncluded="+s);var c=JSON.parse(a),u=o&&(0===c.call_end||d.default(c.room_id));d.default(c.room_id)&&c.call_end>0||u?this._outerEmitter.emit(e.EVENT.NEW_INVITATION_RECEIVED,{inviteID:n,inviter:r,groupID:o,inviteeList:i,data:t.data||""}):(o&&s||!o)&&(this._inviteInfoMap.set(n,t),this._outerEmitter.emit(e.EVENT.NEW_INVITATION_RECEIVED,{inviteID:n,inviter:r,groupID:o,inviteeList:i,data:t.data||""}),this._startTimer(t,!1))},e.prototype._onInviteeRejected=function(e){var t=e.inviteID,n=e.inviter,r=e.groupID,i=this._inviteInfoMap.has(t);l.default.log("TSignaling._onInviteeRejected inviteID="+t+" hasInviteID="+i+" inviter="+n+" groupID="+r),(r&&i||!r)&&(this._updateLocalInviteInfo(e),this._outerEmitter.emit(c.default.INVITEE_REJECTED,{inviteID:t,inviter:n,groupID:r,invitee:e.inviteeList[0],data:e.data||""}))},e.prototype._onInviteeAccepted=function(e){var t=e.inviteID,n=e.inviter,r=e.groupID,i=this._inviteInfoMap.has(t);l.default.log("TSignaling._onInviteeAccepted inviteID="+t+" hasInviteID="+i+" inviter="+n+" groupID="+r),(r&&i||!r)&&(this._updateLocalInviteInfo(e),this._outerEmitter.emit(c.default.INVITEE_ACCEPTED,{inviteID:t,inviter:n,groupID:r,invitee:e.inviteeList[0],data:e.data||""}))},e.prototype._onInvitationCancelled=function(e){var t=e.inviteID,n=e.inviter,r=e.groupID,i=this._inviteInfoMap.has(t);l.default.log("TSignaling._onInvitationCancelled inviteID="+t+" hasInviteID="+i+" inviter="+n+" groupID="+r),(r&&i||!r)&&(this._deleteInviteInfoByID(t),this._outerEmitter.emit(c.default.INVITATION_CANCELLED,{inviteID:t,inviter:n,groupID:r,data:e.data||""}))},e.prototype._onInvitationTimeout=function(e){var t=e.inviteID,n=e.inviter,r=e.groupID,i=e.data,o=this._inviteInfoMap.has(t);l.default.log("TSignaling._onInvitationTimeout inviteID="+t+" hasInviteID="+o+" inviter="+n+" groupID="+r),l.default.log("TSignaling._onInvitationTimeout data="+e.data);var a=JSON.parse(i),s=r&&(0===a.call_end||d.default(a.room_id));d.default(a.room_id)&&a.call_end>0||s||(r&&o||!r)&&(this._updateLocalInviteInfo(e),this._outerEmitter.emit(c.default.INVITATION_TIMEOUT,{inviteID:t,inviter:n,groupID:r,inviteeList:e.inviteeList,isSelfTimeout:!1}))},e.prototype._updateLocalInviteInfo=function(e){var t=e.inviteID,n=e.inviter,r=e.inviteeList,i=e.groupID;if(l.default.log("TSignaling._updateLocalInviteInfo inviteID="+t+" inviter="+n+" groupID="+i),i){if(this._inviteInfoMap.has(t)){var o=r[0],a=this._inviteInfoMap.get(t).inviteeList;a.includes(o)&&(a.splice(a.indexOf(o),1),l.default.log("TSignaling._updateLocalInviteInfo remove "+o+" from localInviteeList. "+a.length+" invitees left")),0===a.length&&this._deleteInviteInfoByID(t)}}else this._deleteInviteInfoByID(t)},e.prototype._deleteInviteInfoByID=function(e){this._inviteInfoMap.has(e)&&(l.default.log("TSignaling._deleteInviteInfoByID remove "+e+" from inviteInfoMap."),this._inviteInfoMap.delete(e))},e.prototype._sendCustomMessage=function(e,t,n){return r(this,void 0,void 0,(function(){var r,o,s,c;return i(this,(function(i){return r=t.groupID,o=this._tim.createCustomMessage({to:e,conversationType:r?g.TYPES.CONV_GROUP:g.TYPES.CONV_C2C,priority:g.TYPES.MSG_PRIORITY_HIGH,payload:{data:JSON.stringify(t)}}),t.actionType===a.ActionType.INVITE?(c={title:(s=n||{}).title||"",description:s.description||"您有一个通话请求",androidOPPOChannelID:s.androidOPPOChannelID||"",extension:this._handleOfflineInfo(t,s.extension||"")},l.default.log("TSignaling.offlinePushInfo "+JSON.stringify(c)),[2,this._tim.sendMessage(o,{offlinePushInfo:{title:c.title,description:c.description,androidOPPOChannelID:c.androidOPPOChannelID,extension:c.extension}})]):[2,this._tim.sendMessage(o)]}))}))},e.prototype._handleOfflineInfo=function(e,t){var n={action:e.actionType,call_type:e.groupID?2:1,room_id:e.data.room_id,call_id:e.inviteID,timeout:e.data.timeout,version:4,invited_list:e.inviteeList};e.groupID&&(n.group_id=e.groupID);var r={entity:{action:2,chatType:e.groupID?2:1,content:JSON.stringify(n),sendTime:parseInt(Date.now()/1e3+""),sender:e.inviter,version:1},userData:t||""},i=JSON.stringify(r);return l.default.log("TSignaling._handleOfflineInfo "+i),i},e.EVENT=c.default,e.TYPES=u.default,e}();t.default=v},function(e,t,n){"use strict";var r,i,o;Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorCode=t.BusinessID=t.ActionType=void 0,function(e){e[e.INVITE=1]="INVITE",e[e.CANCEL_INVITE=2]="CANCEL_INVITE",e[e.ACCEPT_INVITE=3]="ACCEPT_INVITE",e[e.REJECT_INVITE=4]="REJECT_INVITE",e[e.INVITE_TIMEOUT=5]="INVITE_TIMEOUT"}(r||(r={})),t.ActionType=r,function(e){e[e.SIGNAL=1]="SIGNAL"}(i||(i={})),t.BusinessID=i,function(e){e[e.ERR_INVALID_PARAMETERS=6017]="ERR_INVALID_PARAMETERS",e[e.ERR_SDK_SIGNALING_INVALID_INVITE_ID=8010]="ERR_SDK_SIGNALING_INVALID_INVITE_ID",e[e.ERR_SDK_SIGNALING_NO_PERMISSION=8011]="ERR_SDK_SIGNALING_NO_PERMISSION"}(o||(o={})),t.ErrorCode=o},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));const r=Function.prototype.apply,i=new WeakMap;function o(e){return i.has(e)||i.set(e,{}),i.get(e)}class a{constructor(e=null,t=console){const n=o(this);return n._events=new Set,n._callbacks={},n._console=t,n._maxListeners=null===e?null:parseInt(e,10),this}_addCallback(e,t,n,r){return this._getCallbacks(e).push({callback:t,context:n,weight:r}),this._getCallbacks(e).sort((e,t)=>e.weight>t.weight),this}_getCallbacks(e){return o(this)._callbacks[e]}_getCallbackIndex(e,t){return this._has(e)?this._getCallbacks(e).findIndex(e=>e.callback===t):null}_achieveMaxListener(e){return null!==o(this)._maxListeners&&o(this)._maxListeners<=this.listenersNumber(e)}_callbackIsExists(e,t,n){const r=this._getCallbackIndex(e,t),i=-1!==r?this._getCallbacks(e)[r]:void 0;return-1!==r&&i&&i.context===n}_has(e){return o(this)._events.has(e)}on(e,t,n=null,r=1){const i=o(this);if("function"!=typeof t)throw new TypeError(t+" is not a function");return this._has(e)?(this._achieveMaxListener(e)&&i._console.warn(`Max listeners (${i._maxListeners}) for event "${e}" is reached!`),this._callbackIsExists(...arguments)&&i._console.warn(`Event "${e}" already has the callback ${t}.`)):(i._events.add(e),i._callbacks[e]=[]),this._addCallback(...arguments),this}once(e,t,n=null,i=1){const o=(...i)=>(this.off(e,o),r.call(t,n,i));return this.on(e,o,n,i)}off(e,t=null){const n=o(this);let r;return this._has(e)&&(null===t?(n._events.delete(e),n._callbacks[e]=null):(r=this._getCallbackIndex(e,t),-1!==r&&(n._callbacks[e].splice(r,1),this.off(...arguments)))),this}emit(e,...t){return this._has(e)&&this._getCallbacks(e).forEach(e=>r.call(e.callback,e.context,t)),this}clear(){const e=o(this);return e._events.clear(),e._callbacks={},this}listenersNumber(e){return this._has(e)?this._getCallbacks(e).length:null}}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";n.r(t);var r=n(0);const i=Object.prototype.hasOwnProperty;t.default=function(e){if(null==e)return!0;if("boolean"==typeof e)return!1;if("number"==typeof e)return 0===e;if("string"==typeof e)return 0===e.length;if("function"==typeof e)return 0===e.length;if(Array.isArray(e))return 0===e.length;if(e instanceof Error)return""===e.message;if(Object(r.f)(e)){for(const t in e)if(i.call(e,t))return!1;return!0}return!!(Object(r.e)(e)||Object(r.g)(e)||Object(r.c)(e))&&0===e.size}},function(e,t,n){"use strict";n.r(t);class r extends Error{constructor(e){super(),this.code=e.code,this.message=e.message,this.data=e.data||{}}}t.default=r},function(e,t,n){"use strict";n.r(t);var r=n(1),i=n(4),o=n.n(i);t.default=class{constructor(){this._funcMap=new Map}defense(e,t,n){if("string"!=typeof e)return null;if(0===e.length)return null;if("function"!=typeof t)return null;if(this._funcMap.has(e)&&this._funcMap.get(e).has(t))return this._funcMap.get(e).get(t);this._funcMap.has(e)||this._funcMap.set(e,new Map);let r=null;return this._funcMap.get(e).has(t)?r=this._funcMap.get(e).get(t):(r=this._pack(e,t,n),this._funcMap.get(e).set(t,r)),r}defenseOnce(e,t,n){return"function"!=typeof t?null:this._pack(e,t,n)}find(e,t){return"string"!=typeof e||0===e.length||"function"!=typeof t?null:this._funcMap.has(e)?this._funcMap.get(e).has(t)?this._funcMap.get(e).get(t):(r.default.log(`SafetyCallback.find: 找不到 func —— ${e}/${""!==t.name?t.name:"[anonymous]"}`),null):(r.default.log(`SafetyCallback.find: 找不到 eventName-${e} 对应的 func`),null)}delete(e,t){return"function"==typeof t&&!!this._funcMap.has(e)&&!!this._funcMap.get(e).has(t)&&(this._funcMap.get(e).delete(t),0===this._funcMap.get(e).size&&this._funcMap.delete(e),!0)}_pack(e,t,n){return function(){try{t.apply(n,Array.from(arguments))}catch(t){const i=Object.values(o.a).indexOf(e),a=Object.keys(o.a)[i];r.default.error(`接入侧事件 EVENT.${a} 对应的回调函数逻辑存在问题,请检查!`,t)}}}}},function(e,t,n){
/**
 * UUID.js - RFC-compliant UUID Generator for JavaScript
 *
 * @file
 * @author  LiosK
 * @version v4.2.5
 * @license Apache License 2.0: Copyright (c) 2010-2020 LiosK
 */
var r;r=function(t){"use strict";function r(){var e=i._getRandomInt;this.timestamp=0,this.sequence=e(14),this.node=1099511627776*(1|e(8))+e(40),this.tick=e(4)}function i(){}return i.generate=function(){var e=i._getRandomInt,t=i._hexAligner;return t(e(32),8)+"-"+t(e(16),4)+"-"+t(16384|e(12),4)+"-"+t(32768|e(14),4)+"-"+t(e(48),12)},i._getRandomInt=function(e){if(e<0||e>53)return NaN;var t=0|1073741824*Math.random();return e>30?t+1073741824*(0|Math.random()*(1<<e-30)):t>>>30-e},i._hexAligner=function(e,t){for(var n=e.toString(16),r=t-n.length,i="0";r>0;r>>>=1,i+=i)1&r&&(n=i+n);return n},i.overwrittenUUID=t,function(){var e=i._getRandomInt;i.useMathRandom=function(){i._getRandomInt=e};var t=null,r=e;"undefined"!=typeof window&&(t=window.crypto||window.msCrypto)?t.getRandomValues&&"undefined"!=typeof Uint32Array&&(r=function(e){if(e<0||e>53)return NaN;var n=new Uint32Array(e>32?2:1);return n=t.getRandomValues(n)||n,e>32?n[0]+4294967296*(n[1]>>>64-e):n[0]>>>32-e}):(t=n(13))&&t.randomBytes&&(r=function(e){if(e<0||e>53)return NaN;var n=t.randomBytes(e>32?8:4),r=n.readUInt32BE(0);return e>32?r+4294967296*(n.readUInt32BE(4)>>>64-e):r>>>32-e}),i._getRandomInt=r}(),i.FIELD_NAMES=["timeLow","timeMid","timeHiAndVersion","clockSeqHiAndReserved","clockSeqLow","node"],i.FIELD_SIZES=[32,16,16,8,8,48],i.genV4=function(){var e=i._getRandomInt;return(new i)._init(e(32),e(16),16384|e(12),128|e(6),e(8),e(48))},i.parse=function(e){var t;if(t=/^\s*(urn:uuid:|\{)?([0-9a-f]{8})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{2})([0-9a-f]{2})-([0-9a-f]{12})(\})?\s*$/i.exec(e)){var n=t[1]||"",r=t[8]||"";if(n+r===""||"{"===n&&"}"===r||"urn:uuid:"===n.toLowerCase()&&""===r)return(new i)._init(parseInt(t[2],16),parseInt(t[3],16),parseInt(t[4],16),parseInt(t[5],16),parseInt(t[6],16),parseInt(t[7],16))}return null},i.prototype._init=function(){var e=i.FIELD_NAMES,t=i.FIELD_SIZES,n=i._binAligner,r=i._hexAligner;this.intFields=new Array(6),this.bitFields=new Array(6),this.hexFields=new Array(6);for(var o=0;o<6;o++){var a=parseInt(arguments[o]||0);this.intFields[o]=this.intFields[e[o]]=a,this.bitFields[o]=this.bitFields[e[o]]=n(a,t[o]),this.hexFields[o]=this.hexFields[e[o]]=r(a,t[o]>>>2)}return this.version=this.intFields.timeHiAndVersion>>>12&15,this.bitString=this.bitFields.join(""),this.hexNoDelim=this.hexFields.join(""),this.hexString=this.hexFields[0]+"-"+this.hexFields[1]+"-"+this.hexFields[2]+"-"+this.hexFields[3]+this.hexFields[4]+"-"+this.hexFields[5],this.urn="urn:uuid:"+this.hexString,this},i._binAligner=function(e,t){for(var n=e.toString(2),r=t-n.length,i="0";r>0;r>>>=1,i+=i)1&r&&(n=i+n);return n},i.prototype.toString=function(){return this.hexString},i.prototype.equals=function(e){if(!(e instanceof i))return!1;for(var t=0;t<6;t++)if(this.intFields[t]!==e.intFields[t])return!1;return!0},i.NIL=(new i)._init(0,0,0,0,0,0),i.genV1=function(){null==i._state&&i.resetState();var e=(new Date).getTime(),t=i._state;e!=t.timestamp?(e<t.timestamp&&t.sequence++,t.timestamp=e,t.tick=i._getRandomInt(4)):Math.random()<i._tsRatio&&t.tick<9984?t.tick+=1+i._getRandomInt(4):t.sequence++;var n=i._getTimeFieldValues(t.timestamp),r=n.low+t.tick,o=4095&n.hi|4096;t.sequence&=16383;var a=t.sequence>>>8|128,s=255&t.sequence;return(new i)._init(r,n.mid,o,a,s,t.node)},i.resetState=function(){i._state=new r},i._tsRatio=1/4,i._state=null,i._getTimeFieldValues=function(e){var t=e-Date.UTC(1582,9,15),n=t/4294967296*1e4&268435455;return{low:1e4*(268435455&t)%4294967296,mid:65535&n,hi:n>>>16,timestamp:t}},"object"==typeof e.exports&&(e.exports=i),i}(r)},function(e,t){},function(t,n){t.exports=e},function(e){e.exports=JSON.parse('{"name":"tsignaling","version":"0.9.0","description":"腾讯云 Web 信令 SDK","main":"./src/index.ts","scripts":{"lint":"./node_modules/.bin/eslint ./src","fix":"./node_modules/.bin/eslint --fix ./src","ts2js":"tsc src/index.ts --outDir build/ts2js","doc":"npm run ts2js && npm run doc:clean && npm run doc:build","doc:build":"./node_modules/.bin/jsdoc -c build/jsdoc/jsdoc.json && node ./build/jsdoc/fix-doc.js","doc:clean":"node ./build/jsdoc/clean-doc.js","build:wx":"cross-env NODE_ENV=wx webpack --config webpack.prod.config.js","build:web":"node node_modules/cross-env/src/bin/cross-env.js NODE_ENV=web node_modules/webpack/bin/webpack.js --config webpack.prod.config.js","build:package":"node build/package-bundle.js","prerelease":"npm run build:web && npm run build:wx && npm run build:package && node ./build/copy.js","start:wx":"cross-env NODE_ENV=wx  webpack-dev-server --config webpack.config.js","start:web":"node node_modules/cross-env/src/bin/cross-env.js NODE_ENV=web node_modules/webpack-dev-server/bin/webpack-dev-server.js --config webpack.dev.config.js","build_withcopy":"npm run build:web && cp dist/npm/tsignaling-js.js ../TIM-demo-web/node_modules/tsignaling/tsignaling-js.js","build_withcopy:mp":"npm run build:wx && cp dist/npm/tsignaling-wx.js ../TIM-demo-mini/static/component/TRTCCalling/utils/tsignaling-wx.js","changelog":"cp CHANGELOG.md build/jsdoc/tutorials/CHANGELOG.md"},"husky":{"hooks":{"pre-commit":"npm run lint"}},"lint-staged":{"*.{.ts,.tsx}":["eslint","git add"]},"keywords":["腾讯云","即时通信","信令"],"author":"","license":"ISC","devDependencies":{"conventional-changelog-cli":"^2.1.1","cross-env":"^7.0.2","fs-extra":"^9.0.1","html-webpack-plugin":"^4.3.0","ts-loader":"^7.0.5","typescript":"^3.9.9","webpack":"^4.43.0","webpack-cli":"^3.3.11","webpack-dev-server":"^3.11.0"},"dependencies":{"@typescript-eslint/eslint-plugin":"^4.22.1","@typescript-eslint/parser":"^4.22.1","EventEmitter":"^1.0.0","docdash-blue":"^1.1.3","eslint":"^5.16.0","eslint-config-google":"^0.13.0","eslint-plugin-classes":"^0.1.1","jsdoc":"^3.6.4","jsdoc-plugin-typescript":"^2.0.5","pretty":"^2.0.0","replace":"^1.2.0","uuidjs":"^4.2.5"}}')}]).default}))},b419:function(e,t,n){var r=n("6d8b"),i=n("2306"),o=n("4319"),a=n("6679"),s=n("fab2"),c=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function u(e,t,n){t[1]>t[0]&&(t=t.slice().reverse());var r=e.coordToPoint([t[0],n]),i=e.coordToPoint([t[1],n]);return{x1:r[0],y1:r[1],x2:i[0],y2:i[1]}}function l(e){var t=e.getRadiusAxis();return t.inverse?0:1}function d(e){var t=e[0],n=e[e.length-1];t&&n&&Math.abs(Math.abs(t.coord-n.coord)-360)<1e-4&&e.pop()}var h=a.extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(e,t){if(this.group.removeAll(),e.get("show")){var n=e.axis,i=n.polar,o=i.getRadiusAxis().getExtent(),a=n.getTicksCoords(),s=n.getMinorTicksCoords(),u=r.map(n.getViewLabels(),(function(e){e=r.clone(e);return e.coord=n.dataToCoord(e.tickValue),e}));d(u),d(a),r.each(c,(function(t){!e.get(t+".show")||n.scale.isBlank()&&"axisLine"!==t||this["_"+t](e,i,a,s,o,u)}),this)}},_axisLine:function(e,t,n,r,o){var a,s=e.getModel("axisLine.lineStyle"),c=l(t),u=c?0:1;a=0===o[u]?new i.Circle({shape:{cx:t.cx,cy:t.cy,r:o[c]},style:s.getLineStyle(),z2:1,silent:!0}):new i.Ring({shape:{cx:t.cx,cy:t.cy,r:o[c],r0:o[u]},style:s.getLineStyle(),z2:1,silent:!0}),a.style.fill=null,this.group.add(a)},_axisTick:function(e,t,n,o,a){var s=e.getModel("axisTick"),c=(s.get("inside")?-1:1)*s.get("length"),d=a[l(t)],h=r.map(n,(function(e){return new i.Line({shape:u(t,[d,d+c],e.coord)})}));this.group.add(i.mergePath(h,{style:r.defaults(s.getModel("lineStyle").getLineStyle(),{stroke:e.get("axisLine.lineStyle.color")})}))},_minorTick:function(e,t,n,o,a){if(o.length){for(var s=e.getModel("axisTick"),c=e.getModel("minorTick"),d=(s.get("inside")?-1:1)*c.get("length"),h=a[l(t)],f=[],p=0;p<o.length;p++)for(var g=0;g<o[p].length;g++)f.push(new i.Line({shape:u(t,[h,h+d],o[p][g].coord)}));this.group.add(i.mergePath(f,{style:r.defaults(c.getModel("lineStyle").getLineStyle(),r.defaults(s.getLineStyle(),{stroke:e.get("axisLine.lineStyle.color")}))}))}},_axisLabel:function(e,t,n,a,c,u){var d=e.getCategories(!0),h=e.getModel("axisLabel"),f=h.get("margin"),p=e.get("triggerEvent");r.each(u,(function(n,r){var a=h,u=n.tickValue,g=c[l(t)],m=t.coordToPoint([g+f,n.coord]),v=t.cx,y=t.cy,_=Math.abs(m[0]-v)/g<.3?"center":m[0]>v?"left":"right",b=Math.abs(m[1]-y)/g<.3?"middle":m[1]>y?"top":"bottom";d&&d[u]&&d[u].textStyle&&(a=new o(d[u].textStyle,h,h.ecModel));var S=new i.Text({silent:s.isLabelSilent(e)});this.group.add(S),i.setTextStyle(S.style,a,{x:m[0],y:m[1],textFill:a.getTextColor()||e.get("axisLine.lineStyle.color"),text:n.formattedLabel,textAlign:_,textVerticalAlign:b}),p&&(S.eventData=s.makeAxisEventDataBase(e),S.eventData.targetType="axisLabel",S.eventData.value=n.rawLabel)}),this)},_splitLine:function(e,t,n,o,a){var s=e.getModel("splitLine"),c=s.getModel("lineStyle"),l=c.get("color"),d=0;l=l instanceof Array?l:[l];for(var h=[],f=0;f<n.length;f++){var p=d++%l.length;h[p]=h[p]||[],h[p].push(new i.Line({shape:u(t,a,n[f].coord)}))}for(f=0;f<h.length;f++)this.group.add(i.mergePath(h[f],{style:r.defaults({stroke:l[f%l.length]},c.getLineStyle()),silent:!0,z:e.get("z")}))},_minorSplitLine:function(e,t,n,r,o){if(r.length){for(var a=e.getModel("minorSplitLine"),s=a.getModel("lineStyle"),c=[],l=0;l<r.length;l++)for(var d=0;d<r[l].length;d++)c.push(new i.Line({shape:u(t,o,r[l][d].coord)}));this.group.add(i.mergePath(c,{style:s.getLineStyle(),silent:!0,z:e.get("z")}))}},_splitArea:function(e,t,n,o,a){if(n.length){var s=e.getModel("splitArea"),c=s.getModel("areaStyle"),u=c.get("color"),l=0;u=u instanceof Array?u:[u];for(var d=[],h=Math.PI/180,f=-n[0].coord*h,p=Math.min(a[0],a[1]),g=Math.max(a[0],a[1]),m=e.get("clockwise"),v=1;v<n.length;v++){var y=l++%u.length;d[y]=d[y]||[],d[y].push(new i.Sector({shape:{cx:t.cx,cy:t.cy,r0:p,r:g,startAngle:f,endAngle:-n[v].coord*h,clockwise:m},silent:!0})),f=-n[v].coord*h}for(v=0;v<d.length;v++)this.group.add(i.mergePath(d[v],{style:r.defaults({fill:u[v%u.length]},c.getAreaStyle()),silent:!0}))}}});e.exports=h},b50d:function(e,t,n){"use strict";var r=n("c532"),i=n("467f"),o=n("7aac"),a=n("30b5"),s=n("83b9"),c=n("c345"),u=n("3934"),l=n("2d83"),d=n("2444"),h=n("7a77");e.exports=function(e){return new Promise((function(t,n){var f,p=e.data,g=e.headers,m=e.responseType;function v(){e.cancelToken&&e.cancelToken.unsubscribe(f),e.signal&&e.signal.removeEventListener("abort",f)}r.isFormData(p)&&delete g["Content-Type"];var y=new XMLHttpRequest;if(e.auth){var _=e.auth.username||"",b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";g.Authorization="Basic "+btoa(_+":"+b)}var S=s(e.baseURL,e.url);function x(){if(y){var r="getAllResponseHeaders"in y?c(y.getAllResponseHeaders()):null,o=m&&"text"!==m&&"json"!==m?y.response:y.responseText,a={data:o,status:y.status,statusText:y.statusText,headers:r,config:e,request:y};i((function(e){t(e),v()}),(function(e){n(e),v()}),a),y=null}}if(y.open(e.method.toUpperCase(),a(S,e.params,e.paramsSerializer),!0),y.timeout=e.timeout,"onloadend"in y?y.onloadend=x:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(x)},y.onabort=function(){y&&(n(l("Request aborted",e,"ECONNABORTED",y)),y=null)},y.onerror=function(){n(l("Network Error",e,null,y)),y=null},y.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||d.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(l(t,e,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",y)),y=null},r.isStandardBrowserEnv()){var w=(e.withCredentials||u(S))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;w&&(g[e.xsrfHeaderName]=w)}"setRequestHeader"in y&&r.forEach(g,(function(e,t){"undefined"===typeof p&&"content-type"===t.toLowerCase()?delete g[t]:y.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(y.withCredentials=!!e.withCredentials),m&&"json"!==m&&(y.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&y.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&y.upload&&y.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(f=function(e){y&&(n(!e||e&&e.type?new h("canceled"):e),y.abort(),y=null)},e.cancelToken&&e.cancelToken.subscribe(f),e.signal&&(e.signal.aborted?f():e.signal.addEventListener("abort",f))),p||(p=null),y.send(p)}))}},b575:function(e,t,n){var r,i,o,a,s,c,u,l,d=n("da84"),h=n("0366"),f=n("06cf").f,p=n("2cf49").set,g=n("1cdc"),m=n("d4c3"),v=n("a4b4"),y=n("605d"),_=d.MutationObserver||d.WebKitMutationObserver,b=d.document,S=d.process,x=d.Promise,w=f(d,"queueMicrotask"),I=w&&w.value;I||(r=function(){var e,t;y&&(e=S.domain)&&e.exit();while(i){t=i.fn,i=i.next;try{t()}catch(n){throw i?a():o=void 0,n}}o=void 0,e&&e.enter()},g||y||v||!_||!b?!m&&x&&x.resolve?(u=x.resolve(void 0),u.constructor=x,l=h(u.then,u),a=function(){l(r)}):y?a=function(){S.nextTick(r)}:(p=h(p,d),a=function(){p(r)}):(s=!0,c=b.createTextNode(""),new _(r).observe(c,{characterData:!0}),a=function(){c.data=s=!s})),e.exports=I||function(e){var t={fn:e,next:void 0};o&&(o.next=t),i||(i=t,a()),o=t}},b5c7:function(e,t,n){var r=n("282b"),i=r([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),o={getBarItemStyle:function(e){var t=i(this,e);if(this.getBorderLineDash){var n=this.getBorderLineDash();n&&(t.lineDash=n)}return t}};e.exports=o},b622:function(e,t,n){var r=n("da84"),i=n("5692"),o=n("1a2d"),a=n("90e3"),s=n("4930"),c=n("fdbf"),u=i("wks"),l=r.Symbol,d=l&&l["for"],h=c?l:l&&l.withoutSetter||a;e.exports=function(e){if(!o(u,e)||!s&&"string"!=typeof u[e]){var t="Symbol."+e;s&&o(l,e)?u[e]=l[e]:u[e]=c&&d?d(t):h(t)}return u[e]}},b64b:function(e,t,n){var r=n("23e7"),i=n("7b0b"),o=n("df75"),a=n("d039"),s=a((function(){o(1)}));r({target:"Object",stat:!0,forced:s},{keys:function(e){return o(i(e))}})},b680:function(e,t,n){"use strict";var r=n("23e7"),i=n("da84"),o=n("e330"),a=n("5926"),s=n("408a"),c=n("1148"),u=n("d039"),l=i.RangeError,d=i.String,h=Math.floor,f=o(c),p=o("".slice),g=o(1..toFixed),m=function(e,t,n){return 0===t?n:t%2===1?m(e,t-1,n*e):m(e*e,t/2,n)},v=function(e){var t=0,n=e;while(n>=4096)t+=12,n/=4096;while(n>=2)t+=1,n/=2;return t},y=function(e,t,n){var r=-1,i=n;while(++r<6)i+=t*e[r],e[r]=i%1e7,i=h(i/1e7)},_=function(e,t){var n=6,r=0;while(--n>=0)r+=e[n],e[n]=h(r/t),r=r%t*1e7},b=function(e){var t=6,n="";while(--t>=0)if(""!==n||0===t||0!==e[t]){var r=d(e[t]);n=""===n?r:n+f("0",7-r.length)+r}return n},S=u((function(){return"0.000"!==g(8e-5,3)||"1"!==g(.9,0)||"1.25"!==g(1.255,2)||"1000000000000000128"!==g(0xde0b6b3a7640080,0)}))||!u((function(){g({})}));r({target:"Number",proto:!0,forced:S},{toFixed:function(e){var t,n,r,i,o=s(this),c=a(e),u=[0,0,0,0,0,0],h="",g="0";if(c<0||c>20)throw l("Incorrect fraction digits");if(o!=o)return"NaN";if(o<=-1e21||o>=1e21)return d(o);if(o<0&&(h="-",o=-o),o>1e-21)if(t=v(o*m(2,69,1))-69,n=t<0?o*m(2,-t,1):o/m(2,t,1),n*=4503599627370496,t=52-t,t>0){y(u,0,n),r=c;while(r>=7)y(u,1e7,0),r-=7;y(u,m(10,r,1),0),r=t-1;while(r>=23)_(u,1<<23),r-=23;_(u,1<<r),y(u,1,1),_(u,2),g=b(u)}else y(u,0,n),y(u,1<<-t,0),g=b(u)+f("0",c);return c>0?(i=g.length,g=h+(i<=c?"0."+f("0",c-i)+g:p(g,0,i-c)+"."+p(g,i-c))):g=h+g,g}})},b6b7:function(e,t,n){var r=n("ebb5"),i=n("4840"),o=r.TYPED_ARRAY_CONSTRUCTOR,a=r.aTypedArrayConstructor;e.exports=function(e){return a(i(e,e[o]))}},b719:function(e,t,n){var r=n("697e7");t.zrender=r;var i=n("1687");t.matrix=i;var o=n("401b");t.vector=o;var a=n("6d8b"),s=n("41ef");t.color=s;var c=n("2306"),u=n("3842");t.number=u;var l=n("eda2");t.format=l;var d=n("88b3");d.throttle;t.throttle=d.throttle;var h=n("1548");t.helper=h;var f=n("bda7");t.parseGeoJSON=f;var p=n("6179");t.List=p;var g=n("4319");t.Model=g;var m=n("84ce");t.Axis=m;var v=n("22d1");t.env=v;var y=f,_={};a.each(["map","each","filter","indexOf","inherits","reduce","filter","bind","curry","isArray","isString","isObject","isFunction","extend","defaults","clone","merge"],(function(e){_[e]=a[e]}));var b={};a.each(["extendShape","extendPath","makePath","makeImage","mergePath","resizePath","createIcon","setHoverStyle","setLabelStyle","setTextStyle","setText","getFont","updateProps","initProps","getTransform","clipPointsByRect","clipRectByRect","registerShape","getShapeClass","Group","Image","Text","Circle","Sector","Ring","Polygon","Polyline","Rect","Line","BezierCurve","Arc","IncrementalDisplayable","CompoundPath","LinearGradient","RadialGradient","BoundingRect"],(function(e){b[e]=c[e]})),t.parseGeoJson=y,t.util=_,t.graphic=b},b727:function(e,t,n){var r=n("0366"),i=n("e330"),o=n("44ad"),a=n("7b0b"),s=n("07fa"),c=n("65f0"),u=i([].push),l=function(e){var t=1==e,n=2==e,i=3==e,l=4==e,d=6==e,h=7==e,f=5==e||d;return function(p,g,m,v){for(var y,_,b=a(p),S=o(b),x=r(g,m),w=s(S),I=0,C=v||c,M=t?C(p,w):n||h?C(p,0):void 0;w>I;I++)if((f||I in S)&&(y=S[I],_=x(y,I,b),e))if(t)M[I]=_;else if(_)switch(e){case 3:return!0;case 5:return y;case 6:return I;case 2:u(M,y)}else switch(e){case 4:return!1;case 7:u(M,y)}return d?-1:i||l?l:M}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},b72d:function(e,t,n){},b7c2:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var r=new Map([["transparent","rgba(0,0,0,0)"],["black","#000000"],["silver","#C0C0C0"],["gray","#808080"],["white","#FFFFFF"],["maroon","#800000"],["red","#FF0000"],["purple","#800080"],["fuchsia","#FF00FF"],["green","#008000"],["lime","#00FF00"],["olive","#808000"],["yellow","#FFFF00"],["navy","#000080"],["blue","#0000FF"],["teal","#008080"],["aqua","#00FFFF"],["aliceblue","#f0f8ff"],["antiquewhite","#faebd7"],["aquamarine","#7fffd4"],["azure","#f0ffff"],["beige","#f5f5dc"],["bisque","#ffe4c4"],["blanchedalmond","#ffebcd"],["blueviolet","#8a2be2"],["brown","#a52a2a"],["burlywood","#deb887"],["cadetblue","#5f9ea0"],["chartreuse","#7fff00"],["chocolate","#d2691e"],["coral","#ff7f50"],["cornflowerblue","#6495ed"],["cornsilk","#fff8dc"],["crimson","#dc143c"],["cyan","#00ffff"],["darkblue","#00008b"],["darkcyan","#008b8b"],["darkgoldenrod","#b8860b"],["darkgray","#a9a9a9"],["darkgreen","#006400"],["darkgrey","#a9a9a9"],["darkkhaki","#bdb76b"],["darkmagenta","#8b008b"],["darkolivegreen","#556b2f"],["darkorange","#ff8c00"],["darkorchid","#9932cc"],["darkred","#8b0000"],["darksalmon","#e9967a"],["darkseagreen","#8fbc8f"],["darkslateblue","#483d8b"],["darkslategray","#2f4f4f"],["darkslategrey","#2f4f4f"],["darkturquoise","#00ced1"],["darkviolet","#9400d3"],["deeppink","#ff1493"],["deepskyblue","#00bfff"],["dimgray","#696969"],["dimgrey","#696969"],["dodgerblue","#1e90ff"],["firebrick","#b22222"],["floralwhite","#fffaf0"],["forestgreen","#228b22"],["gainsboro","#dcdcdc"],["ghostwhite","#f8f8ff"],["gold","#ffd700"],["goldenrod","#daa520"],["greenyellow","#adff2f"],["grey","#808080"],["honeydew","#f0fff0"],["hotpink","#ff69b4"],["indianred","#cd5c5c"],["indigo","#4b0082"],["ivory","#fffff0"],["khaki","#f0e68c"],["lavender","#e6e6fa"],["lavenderblush","#fff0f5"],["lawngreen","#7cfc00"],["lemonchiffon","#fffacd"],["lightblue","#add8e6"],["lightcoral","#f08080"],["lightcyan","#e0ffff"],["lightgoldenrodyellow","#fafad2"],["lightgray","#d3d3d3"],["lightgreen","#90ee90"],["lightgrey","#d3d3d3"],["lightpink","#ffb6c1"],["lightsalmon","#ffa07a"],["lightseagreen","#20b2aa"],["lightskyblue","#87cefa"],["lightslategray","#778899"],["lightslategrey","#778899"],["lightsteelblue","#b0c4de"],["lightyellow","#ffffe0"],["limegreen","#32cd32"],["linen","#faf0e6"],["magenta","#ff00ff"],["mediumaquamarine","#66cdaa"],["mediumblue","#0000cd"],["mediumorchid","#ba55d3"],["mediumpurple","#9370db"],["mediumseagreen","#3cb371"],["mediumslateblue","#7b68ee"],["mediumspringgreen","#00fa9a"],["mediumturquoise","#48d1cc"],["mediumvioletred","#c71585"],["midnightblue","#191970"],["mintcream","#f5fffa"],["mistyrose","#ffe4e1"],["moccasin","#ffe4b5"],["navajowhite","#ffdead"],["oldlace","#fdf5e6"],["olivedrab","#6b8e23"],["orange","#ffa500"],["orangered","#ff4500"],["orchid","#da70d6"],["palegoldenrod","#eee8aa"],["palegreen","#98fb98"],["paleturquoise","#afeeee"],["palevioletred","#db7093"],["papayawhip","#ffefd5"],["peachpuff","#ffdab9"],["peru","#cd853f"],["pink","#ffc0cb"],["plum","#dda0dd"],["powderblue","#b0e0e6"],["rosybrown","#bc8f8f"],["royalblue","#4169e1"],["saddlebrown","#8b4513"],["salmon","#fa8072"],["sandybrown","#f4a460"],["seagreen","#2e8b57"],["seashell","#fff5ee"],["sienna","#a0522d"],["skyblue","#87ceeb"],["slateblue","#6a5acd"],["slategray","#708090"],["slategrey","#708090"],["snow","#fffafa"],["springgreen","#00ff7f"],["steelblue","#4682b4"],["tan","#d2b48c"],["thistle","#d8bfd8"],["tomato","#ff6347"],["turquoise","#40e0d0"],["violet","#ee82ee"],["wheat","#f5deb3"],["whitesmoke","#f5f5f5"],["yellowgreen","#9acd32"]]);t["default"]=r},b809:function(e,t,n){var r=n("6d8b"),i=n("29a8"),o=n("2b17"),a=o.retrieveRawValue;function s(e,t){var n=t.getModel("aria");if(n.get("show"))if(n.get("description"))e.setAttribute("aria-label",n.get("description"));else{var o=0;t.eachSeries((function(e,t){++o}),this);var s,c=n.get("data.maxCount")||10,u=n.get("series.maxCount")||10,l=Math.min(o,u);if(!(o<1)){var d=m();s=d?p(g("general.withTitle"),{title:d}):g("general.withoutTitle");var h=[],f=o>1?"series.multiple.prefix":"series.single.prefix";s+=p(g(f),{seriesCount:o}),t.eachSeries((function(e,t){if(t<l){var n,r=e.get("name"),i="series."+(o>1?"multiple":"single")+".";n=g(r?i+"withName":i+"withoutName"),n=p(n,{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:v(e.subType)});var s=e.getData();window.data=s,s.count()>c?n+=p(g("data.partialData"),{displayCnt:c}):n+=g("data.allData");for(var u=[],d=0;d<s.count();d++)if(d<c){var f=s.getName(d),m=a(s,d);u.push(p(g(f?"data.withName":"data.withoutName"),{name:f,value:m}))}n+=u.join(g("data.separator.middle"))+g("data.separator.end"),h.push(n)}})),s+=h.join(g("series.multiple.separator.middle"))+g("series.multiple.separator.end"),e.setAttribute("aria-label",s)}}function p(e,t){if("string"!==typeof e)return e;var n=e;return r.each(t,(function(e,t){n=n.replace(new RegExp("\\{\\s*"+t+"\\s*\\}","g"),e)})),n}function g(e){var t=n.get(e);if(null==t){for(var r=e.split("."),o=i.aria,a=0;a<r.length;++a)o=o[r[a]];return o}return t}function m(){var e=t.getModel("title").option;return e&&e.length&&(e=e[0]),e&&e.text}function v(e){return i.series.typeNames[e]||"自定义图"}}e.exports=s},b8ec:function(e,t,n){var r=n("3eba");r.registerAction({type:"brush",event:"brush"},(function(e,t){t.eachComponent({mainType:"brush",query:e},(function(t){t.setAreas(e.areas)}))})),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},(function(){})),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},(function(){}))},b980:function(e,t,n){var r=n("d039"),i=n("5c6c");e.exports=!r((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",i(1,7)),7!==e.stack)}))},bb2f:function(e,t,n){var r=n("d039");e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},bb70:function(e,t,n){var r=n("e86a"),i=n("3842"),o=i.parsePercent,a=Math.PI/180;function s(e,t,n,r,i,o,a,s,c,u){function l(t,n,r,i){for(var o=t;o<n;o++){if(e[o].y+r>c+a)break;if(e[o].y+=r,o>t&&o+1<n&&e[o+1].y>e[o].y+e[o].height)return void d(o,r/2)}d(n-1,r/2)}function d(t,n){for(var r=t;r>=0;r--){if(e[r].y-n<c)break;if(e[r].y-=n,r>0&&e[r].y>e[r-1].y+e[r-1].height)break}}function h(e,t,n,r,i,o){for(var a=t?Number.MAX_VALUE:0,s=0,c=e.length;s<c;s++)if("none"===e[s].labelAlignTo){var u=Math.abs(e[s].y-r),l=e[s].len,d=e[s].len2,h=u<i+l?Math.sqrt((i+l+d)*(i+l+d)-u*u):Math.abs(e[s].x-n);t&&h>=a&&(h=a-10),!t&&h<=a&&(h=a+10),e[s].x=n+h*o,a=h}}e.sort((function(e,t){return e.y-t.y}));for(var f,p=0,g=e.length,m=[],v=[],y=0;y<g;y++){if("outer"===e[y].position&&"labelLine"===e[y].labelAlignTo){var _=e[y].x-u;e[y].linePoints[1][0]+=_,e[y].x=u}f=e[y].y-p,f<0&&l(y,g,-f,i),p=e[y].y+e[y].height}a-p<0&&d(g-1,p-a);for(y=0;y<g;y++)e[y].y>=n?v.push(e[y]):m.push(e[y]);h(m,!1,t,n,r,i),h(v,!0,t,n,r,i)}function c(e,t,n,i,o,a,c,l){for(var d=[],h=[],f=Number.MAX_VALUE,p=-Number.MAX_VALUE,g=0;g<e.length;g++)u(e[g])||(e[g].x<t?(f=Math.min(f,e[g].x),d.push(e[g])):(p=Math.max(p,e[g].x),h.push(e[g])));s(h,t,n,i,1,o,a,c,l,p),s(d,t,n,i,-1,o,a,c,l,f);for(g=0;g<e.length;g++){var m=e[g];if(!u(m)){var v=m.linePoints;if(v){var y,_="edge"===m.labelAlignTo,b=m.textRect.width;y=_?m.x<t?v[2][0]-m.labelDistance-c-m.labelMargin:c+o-m.labelMargin-v[2][0]-m.labelDistance:m.x<t?m.x-c-m.bleedMargin:c+o-m.x-m.bleedMargin,y<m.textRect.width&&(m.text=r.truncateText(m.text,y,m.font),"edge"===m.labelAlignTo&&(b=r.getWidth(m.text,m.font)));var S=v[1][0]-v[2][0];_?m.x<t?v[2][0]=c+m.labelMargin+b+m.labelDistance:v[2][0]=c+o-m.labelMargin-b-m.labelDistance:(m.x<t?v[2][0]=m.x+m.labelDistance:v[2][0]=m.x-m.labelDistance,v[1][0]=v[2][0]+S),v[1][1]=v[2][1]=m.y}}}}function u(e){return"center"===e.position}function l(e,t,n,i,s,u){var l,d,h=e.getData(),f=[],p=!1,g=(e.get("minShowLabelAngle")||0)*a;h.each((function(i){var a=h.getItemLayout(i),c=h.getItemModel(i),u=c.getModel("label"),m=u.get("position")||c.get("emphasis.label.position"),v=u.get("distanceToLabelLine"),y=u.get("alignTo"),_=o(u.get("margin"),n),b=u.get("bleedMargin"),S=u.getFont(),x=c.getModel("labelLine"),w=x.get("length");w=o(w,n);var I=x.get("length2");if(I=o(I,n),!(a.angle<g)){var C,M,T,k,E=(a.startAngle+a.endAngle)/2,A=Math.cos(E),D=Math.sin(E);l=a.cx,d=a.cy;var O,R=e.getFormattedLabel(i,"normal")||h.getName(i),L=r.getBoundingRect(R,S,k,"top"),P="inside"===m||"inner"===m;if("center"===m)C=a.cx,M=a.cy,k="center";else{var N=(P?(a.r+a.r0)/2*A:a.r*A)+l,U=(P?(a.r+a.r0)/2*D:a.r*D)+d;if(C=N+3*A,M=U+3*D,!P){var F=N+A*(w+t-a.r),G=U+D*(w+t-a.r),V=F+(A<0?-1:1)*I,j=G;C="edge"===y?A<0?s+_:s+n-_:V+(A<0?-v:v),M=j,T=[[N,U],[F,G],[V,j]]}k=P?"center":"edge"===y?A>0?"right":"left":A>0?"left":"right"}var B=u.get("rotate");O="number"===typeof B?B*(Math.PI/180):B?A<0?-E+Math.PI:-E:0,p=!!O,a.label={x:C,y:M,position:m,height:L.height,len:w,len2:I,linePoints:T,textAlign:k,verticalAlign:"middle",rotation:O,inside:P,labelDistance:v,labelAlignTo:y,labelMargin:_,bleedMargin:b,textRect:L,text:R,font:S},P||f.push(a.label)}})),!p&&e.get("avoidLabelOverlap")&&c(f,l,d,t,n,i,s,u)}e.exports=l},bc3a:function(e,t,n){e.exports=n("cee4")},bc5f:function(e,t,n){var r=n("6cb7");r.registerSubTypeDefaulter("visualMap",(function(e){return e.categories||(e.pieces?e.pieces.length>0:e.splitNumber>0)&&!e.calculable?"piecewise":"continuous"}))},bc96:function(e,t,n){},bcaa:function(e,t,n){var r=n("4ab1"),i=n("6d8b");function o(e,t){r.call(this,e,t,["filter"],"__filter_in_use__","_shadowDom")}function a(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY||e.textShadowBlur||e.textShadowOffsetX||e.textShadowOffsetY)}i.inherits(o,r),o.prototype.addWithoutUpdate=function(e,t){if(t&&a(t.style)){var n;if(t._shadowDom){n=t._shadowDom;var r=this.getDefs(!0);r.contains(t._shadowDom)||this.addDom(n)}else n=this.add(t);this.markUsed(t);var i=n.getAttribute("id");e.style.filter="url(#"+i+")"}},o.prototype.add=function(e){var t=this.createElement("filter");return e._shadowDomId=e._shadowDomId||this.nextId++,t.setAttribute("id","zr"+this._zrId+"-shadow-"+e._shadowDomId),this.updateDom(e,t),this.addDom(t),t},o.prototype.update=function(e,t){var n=t.style;if(a(n)){var i=this;r.prototype.update.call(this,t,(function(){i.updateDom(t,t._shadowDom)}))}else this.remove(e,t)},o.prototype.remove=function(e,t){null!=t._shadowDomId&&(this.removeDom(e),e.style.filter="")},o.prototype.updateDom=function(e,t){var n=t.getElementsByTagName("feDropShadow");n=0===n.length?this.createElement("feDropShadow"):n[0];var r,i,o,a,s=e.style,c=e.scale&&e.scale[0]||1,u=e.scale&&e.scale[1]||1;if(s.shadowBlur||s.shadowOffsetX||s.shadowOffsetY)r=s.shadowOffsetX||0,i=s.shadowOffsetY||0,o=s.shadowBlur,a=s.shadowColor;else{if(!s.textShadowBlur)return void this.removeDom(t,s);r=s.textShadowOffsetX||0,i=s.textShadowOffsetY||0,o=s.textShadowBlur,a=s.textShadowColor}n.setAttribute("dx",r/c),n.setAttribute("dy",i/u),n.setAttribute("flood-color",a);var l=o/2/c,d=o/2/u,h=l+" "+d;n.setAttribute("stdDeviation",h),t.setAttribute("x","-100%"),t.setAttribute("y","-100%"),t.setAttribute("width",Math.ceil(o/2*200)+"%"),t.setAttribute("height",Math.ceil(o/2*200)+"%"),t.appendChild(n),e._shadowDom=t},o.prototype.markUsed=function(e){e._shadowDom&&r.prototype.markUsed.call(this,e._shadowDom)};var s=o;e.exports=s},bcbe:function(e,t,n){var r=n("6d8b"),i=n("fab2"),o=n("2306"),a=n("edb9"),s=n("6679"),c=n("58df"),u=c.rectCoordAxisBuildSplitArea,l=c.rectCoordAxisHandleRemove,d=["axisLine","axisTickLabel","axisName"],h=["splitArea","splitLine"],f=s.extend({type:"singleAxis",axisPointerClass:"SingleAxisPointer",render:function(e,t,n,s){var c=this.group;c.removeAll();var u=this._axisGroup;this._axisGroup=new o.Group;var l=a.layout(e),p=new i(e,l);r.each(d,p.add,p),c.add(this._axisGroup),c.add(p.getGroup()),r.each(h,(function(t){e.get(t+".show")&&this["_"+t](e)}),this),o.groupTransition(u,this._axisGroup,e),f.superCall(this,"render",e,t,n,s)},remove:function(){l(this)},_splitLine:function(e){var t=e.axis;if(!t.scale.isBlank()){var n=e.getModel("splitLine"),r=n.getModel("lineStyle"),i=r.get("width"),a=r.get("color");a=a instanceof Array?a:[a];for(var s=e.coordinateSystem.getRect(),c=t.isHorizontal(),u=[],l=0,d=t.getTicksCoords({tickModel:n}),h=[],f=[],p=0;p<d.length;++p){var g=t.toGlobalCoord(d[p].coord);c?(h[0]=g,h[1]=s.y,f[0]=g,f[1]=s.y+s.height):(h[0]=s.x,h[1]=g,f[0]=s.x+s.width,f[1]=g);var m=l++%a.length;u[m]=u[m]||[],u[m].push(new o.Line({subPixelOptimize:!0,shape:{x1:h[0],y1:h[1],x2:f[0],y2:f[1]},style:{lineWidth:i},silent:!0}))}for(p=0;p<u.length;++p)this.group.add(o.mergePath(u[p],{style:{stroke:a[p%a.length],lineDash:r.getLineDash(i),lineWidth:i},silent:!0}))}},_splitArea:function(e){u(this,this._axisGroup,e,e)}}),p=f;e.exports=p},bd49:function(e,t,n){},bd6b:function(e,t,n){var r=n("06ad"),i=n("4942"),o=n("6d8b"),a=o.isString,s=o.isFunction,c=o.isObject,u=o.isArrayLike,l=o.indexOf,d=function(){this.animators=[]};function h(e,t,n,r,i,o,c,u){a(r)?(o=i,i=r,r=0):s(i)?(o=i,i="linear",r=0):s(r)?(o=r,r=0):s(n)?(o=n,n=500):n||(n=500),e.stopAnimation(),f(e,"",e,t,n,r,u);var l=e.animators.slice(),d=l.length;function h(){d--,d||o&&o()}d||o&&o();for(var p=0;p<l.length;p++)l[p].done(h).start(i,c)}function f(e,t,n,r,i,o,a){var s={},l=0;for(var d in r)r.hasOwnProperty(d)&&(null!=n[d]?c(r[d])&&!u(r[d])?f(e,t?t+"."+d:d,n[d],r[d],i,o,a):(a?(s[d]=n[d],p(e,t,d,r[d])):s[d]=r[d],l++):null==r[d]||a||p(e,t,d,r[d]));l>0&&e.animate(t,!1).when(null==i?500:i,s).delay(o||0)}function p(e,t,n,r){if(t){var i={};i[t]={},i[t][n]=r,e.attr(i)}else e.attr(n,r)}d.prototype={constructor:d,animate:function(e,t){var n,o=!1,a=this,s=this.__zr;if(e){var c=e.split("."),u=a;o="shape"===c[0];for(var d=0,h=c.length;d<h;d++)u&&(u=u[c[d]]);u&&(n=u)}else n=a;if(n){var f=a.animators,p=new r(n,t);return p.during((function(e){a.dirty(o)})).done((function(){f.splice(l(f,p),1)})),f.push(p),s&&s.animation.addAnimator(p),p}i('Property "'+e+'" is not existed in element '+a.id)},stopAnimation:function(e){for(var t=this.animators,n=t.length,r=0;r<n;r++)t[r].stop(e);return t.length=0,this},animateTo:function(e,t,n,r,i,o){h(this,e,t,n,r,i,o)},animateFrom:function(e,t,n,r,i,o){h(this,e,t,n,r,i,o,!0)}};var g=d;e.exports=g},bd92:function(e,t,n){var r=n("6d8b"),i=n("4f85"),o=n("e468"),a=o.seriesModelMixin,s=i.extend({type:"series.candlestick",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,clip:!0,itemStyle:{color:"#c23531",color0:"#314656",borderWidth:1,borderColor:"#c23531",borderColor0:"#314656"},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationUpdate:!1,animationEasing:"linear",animationDuration:300},getShadowDim:function(){return"open"},brushSelector:function(e,t,n){var r=t.getItemLayout(e);return r&&n.rect(r.brushRect)}});r.mixin(s,a,!0);var c=s;e.exports=c},bd9e:function(e,t,n){var r=n("4e08"),i=(r.__DEV__,n("6d8b")),o=n("2306"),a=n("e0d3"),s=n("f4a2"),c=i.each,u=i.indexOf,l=i.curry,d=["dataToPoint","pointToData"],h=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"];function f(e,t,n){var r=this._targetInfoList=[],i={},o=m(t,e);c(v,(function(e,t){(!n||!n.include||u(n.include,t)>=0)&&e(o,r,i)}))}var p=f.prototype;function g(e){return e[0]>e[1]&&e.reverse(),e}function m(e,t){return a.parseFinder(e,t,{includeMainTypes:h})}p.setOutputRanges=function(e,t){this.matchOutputRanges(e,t,(function(e,t,n){if((e.coordRanges||(e.coordRanges=[])).push(t),!e.coordRange){e.coordRange=t;var r=b[e.brushType](0,n,t);e.__rangeOffset={offset:x[e.brushType](r.values,e.range,[1,1]),xyMinMax:r.xyMinMax}}}))},p.matchOutputRanges=function(e,t,n){c(e,(function(e){var r=this.findTargetInfo(e,t);r&&!0!==r&&i.each(r.coordSyses,(function(r){var i=b[e.brushType](1,r,e.range);n(e,i.values,r,t)}))}),this)},p.setInputRanges=function(e,t){c(e,(function(e){var n=this.findTargetInfo(e,t);if(e.range=e.range||[],n&&!0!==n){e.panelId=n.panelId;var r=b[e.brushType](0,n.coordSys,e.coordRange),i=e.__rangeOffset;e.range=i?x[e.brushType](r.values,i.offset,I(r.xyMinMax,i.xyMinMax)):r.values}}),this)},p.makePanelOpts=function(e,t){return i.map(this._targetInfoList,(function(n){var r=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t&&t(n),clipPath:s.makeRectPanelClipPath(r),isTargetByCursor:s.makeRectIsTargetByCursor(r,e,n.coordSysModel),getLinearBrushOtherExtent:s.makeLinearBrushOtherExtent(r)}}))},p.controlSeries=function(e,t,n){var r=this.findTargetInfo(e,n);return!0===r||r&&u(r.coordSyses,t.coordinateSystem)>=0},p.findTargetInfo=function(e,t){for(var n=this._targetInfoList,r=m(t,e),i=0;i<n.length;i++){var o=n[i],a=e.panelId;if(a){if(o.panelId===a)return o}else for(i=0;i<y.length;i++)if(y[i](r,o))return o}return!0};var v={grid:function(e,t){var n=e.xAxisModels,r=e.yAxisModels,o=e.gridModels,a=i.createHashMap(),s={},l={};(n||r||o)&&(c(n,(function(e){var t=e.axis.grid.model;a.set(t.id,t),s[t.id]=!0})),c(r,(function(e){var t=e.axis.grid.model;a.set(t.id,t),l[t.id]=!0})),c(o,(function(e){a.set(e.id,e),s[e.id]=!0,l[e.id]=!0})),a.each((function(e){var i=e.coordinateSystem,o=[];c(i.getCartesians(),(function(e,t){(u(n,e.getAxis("x").model)>=0||u(r,e.getAxis("y").model)>=0)&&o.push(e)})),t.push({panelId:"grid--"+e.id,gridModel:e,coordSysModel:e,coordSys:o[0],coordSyses:o,getPanelRect:_.grid,xAxisDeclared:s[e.id],yAxisDeclared:l[e.id]})})))},geo:function(e,t){c(e.geoModels,(function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:_.geo})}))}},y=[function(e,t){var n=e.xAxisModel,r=e.yAxisModel,i=e.gridModel;return!i&&n&&(i=n.axis.grid.model),!i&&r&&(i=r.axis.grid.model),i&&i===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],_={grid:function(){return this.coordSys.grid.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(o.getTransform(e)),t}},b={lineX:l(S,0),lineY:l(S,1),rect:function(e,t,n){var r=t[d[e]]([n[0][0],n[1][0]]),i=t[d[e]]([n[0][1],n[1][1]]),o=[g([r[0],i[0]]),g([r[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,n){var r=[[1/0,-1/0],[1/0,-1/0]],o=i.map(n,(function(n){var i=t[d[e]](n);return r[0][0]=Math.min(r[0][0],i[0]),r[1][0]=Math.min(r[1][0],i[1]),r[0][1]=Math.max(r[0][1],i[0]),r[1][1]=Math.max(r[1][1],i[1]),i}));return{values:o,xyMinMax:r}}};function S(e,t,n,r){var o=n.getAxis(["x","y"][e]),a=g(i.map([0,1],(function(e){return t?o.coordToData(o.toLocalCoord(r[e])):o.toGlobalCoord(o.dataToCoord(r[e]))}))),s=[];return s[e]=a,s[1-e]=[NaN,NaN],{values:a,xyMinMax:s}}var x={lineX:l(w,0),lineY:l(w,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return i.map(e,(function(e,r){return[e[0]-n[0]*t[r][0],e[1]-n[1]*t[r][1]]}))}};function w(e,t,n,r){return[t[0]-r[e]*n[0],t[1]-r[e]*n[1]]}function I(e,t){var n=C(e),r=C(t),i=[n[0]/r[0],n[1]/r[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function C(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var M=f;e.exports=M},bda7:function(e,t,n){var r=n("6d8b"),i=n("f279");function o(e){if(!e.UTF8Encoding)return e;var t=e.UTF8Scale;null==t&&(t=1024);for(var n=e.features,r=0;r<n.length;r++)for(var i=n[r],o=i.geometry,s=o.coordinates,c=o.encodeOffsets,u=0;u<s.length;u++){var l=s[u];if("Polygon"===o.type)s[u]=a(l,c[u],t);else if("MultiPolygon"===o.type)for(var d=0;d<l.length;d++){var h=l[d];l[d]=a(h,c[u][d],t)}}return e.UTF8Encoding=!1,e}function a(e,t,n){for(var r=[],i=t[0],o=t[1],a=0;a<e.length;a+=2){var s=e.charCodeAt(a)-64,c=e.charCodeAt(a+1)-64;s=s>>1^-(1&s),c=c>>1^-(1&c),s+=i,c+=o,i=s,o=c,r.push([s/n,c/n])}return r}function s(e,t){return o(e),r.map(r.filter(e.features,(function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0})),(function(e){var n=e.properties,o=e.geometry,a=o.coordinates,s=[];"Polygon"===o.type&&s.push({type:"polygon",exterior:a[0],interiors:a.slice(1)}),"MultiPolygon"===o.type&&r.each(a,(function(e){e[0]&&s.push({type:"polygon",exterior:e[0],interiors:e.slice(1)})}));var c=new i(n[t||"name"],s,n.cp);return c.properties=n,c}))}e.exports=s},bdc0:function(e,t,n){var r=n("3eba");n("d2a5"),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},(function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])}))}))},becb:function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.filterNonNumber=s,t.deepMerge=c,t.mulAdd=u,t.mergeSameStackData=l,t.getTwoPointDistance=d,t.getLinearGradientColor=h,t.getPolylineLength=f,t.getPointToLineDistance=p,t.initNeedSeries=g,t.radianToAngle=m;var i=r(n("448a")),o=r(n("7037")),a=n("5557");function s(e){return e.filter((function(e){return"number"===typeof e}))}function c(e,t){for(var n in t)e[n]&&"object"===(0,o["default"])(e[n])?c(e[n],t[n]):"object"!==(0,o["default"])(t[n])?e[n]=t[n]:e[n]=(0,a.deepClone)(t[n],!0);return e}function u(e){return e=s(e),e.reduce((function(e,t){return e+t}),0)}function l(e,t){var n=e.stack;if(!n)return(0,i["default"])(e.data);var r=t.filter((function(e){var t=e.stack;return t===n})),o=r.findIndex((function(t){var n=t.data;return n===e.data})),a=r.splice(0,o+1).map((function(e){var t=e.data;return t})),s=a[0].length;return new Array(s).fill(0).map((function(e,t){return u(a.map((function(e){return e[t]})))}))}function d(e,t){var n=Math.abs(e[0]-t[0]),r=Math.abs(e[1]-t[1]);return Math.sqrt(n*n+r*r)}function h(e,t,n,r){if(e&&t&&n&&r.length){var o=r;"string"===typeof o&&(o=[r,r]);var a=e.createLinearGradient.apply(e,(0,i["default"])(t).concat((0,i["default"])(n))),s=1/(o.length-1);return o.forEach((function(e,t){return a.addColorStop(s*t,e)})),a}}function f(e){var t=new Array(e.length-1).fill(0).map((function(t,n){return[e[n],e[n+1]]})),n=t.map((function(e){return d.apply(void 0,(0,i["default"])(e))}));return u(n)}function p(e,t,n){var r=d(e,t),i=d(e,n),o=d(t,n);return.5*Math.sqrt((r+i+o)*(r+i-o)*(r+o-i)*(i+o-r))/o}function g(e,t,n){return e=e.filter((function(e){var t=e.type;return t===n})),e=e.map((function(e){return c((0,a.deepClone)(t,!0),e)})),e.filter((function(e){var t=e.show;return t}))}function m(e){return e/Math.PI*180}},bf19:function(e,t,n){"use strict";var r=n("23e7"),i=n("c65b");r({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return i(URL.prototype.toString,this)}})},bf9b:function(e,t,n){var r=n("3eba"),i=n("d81e"),o=i.updateCenterAndZoom;r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var n=e.dataIndex,r=t.getData().tree,i=r.getNodeByDataIndex(n);i.isExpand=!i.isExpand}))})),r.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var n=t.coordinateSystem,r=o(n,e);t.setCenter&&t.setCenter(r.center),t.setZoom&&t.setZoom(r.zoom)}))}))},c037:function(e,t,n){var r=n("3eba"),i=n("6d8b");n("f7c6"),n("1ab3");var o=n("7782"),a=n("98e7"),s=n("292e"),c=n("d3f4");o("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]),r.registerVisual(a("pie")),r.registerLayout(i.curry(s,"pie")),r.registerProcessor(c("pie"))},c04e:function(e,t,n){var r=n("da84"),i=n("c65b"),o=n("861d"),a=n("d9b5"),s=n("dc4a"),c=n("485a"),u=n("b622"),l=r.TypeError,d=u("toPrimitive");e.exports=function(e,t){if(!o(e)||a(e))return e;var n,r=s(e,d);if(r){if(void 0===t&&(t="default"),n=i(r,e,t),!o(n)||a(n))return n;throw l("Can't convert object to primitive value")}return void 0===t&&(t="number"),c(e,t)}},c098:function(e,t,n){e.exports=n("d4af")},c135:function(e,t){function n(e){if(Array.isArray(e))return e}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},c19f:function(e,t,n){"use strict";var r=n("23e7"),i=n("da84"),o=n("621a"),a=n("2626"),s="ArrayBuffer",c=o[s],u=i[s];r({global:!0,forced:u!==c},{ArrayBuffer:c}),a(s)},c1ac:function(e,t,n){"use strict";var r=n("ebb5"),i=n("b727").filter,o=n("1448"),a=r.aTypedArray,s=r.exportTypedArrayMethod;s("filter",(function(e){var t=i(a(this),e,arguments.length>1?arguments[1]:void 0);return o(this,t)}))},c240:function(e,t,n){function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n("d9e2"),e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},c263:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=55)}([function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var c,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(c=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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=c):i&&(c=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(e,t){return c.call(t),l(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},function(e,t){e.exports=n("d940")},function(e,t){e.exports=n("5924")},function(e,t){e.exports=n("8122")},function(e,t){e.exports=n("d010")},function(e,t){e.exports=n("e974")},function(e,t){e.exports=n("6b7c")},function(e,t){e.exports=n("2b0e")},,function(e,t){e.exports=n("7f4d")},function(e,t){e.exports=n("f3ad")},,function(e,t){e.exports=n("417f")},,function(e,t){e.exports=n("eedf")},function(e,t){e.exports=n("14e9")},,,,,,,,,,,,function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":function(t){e.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-time-panel el-popper",class:e.popperClass},[n("div",{staticClass:"el-time-panel__content",class:{"has-seconds":e.showSeconds}},[n("time-spinner",{ref:"spinner",attrs:{"arrow-control":e.useArrow,"show-seconds":e.showSeconds,"am-pm-mode":e.amPmMode,date:e.date},on:{change:e.handleChange,"select-range":e.setSelectionRange}})],1),n("div",{staticClass:"el-time-panel__footer"},[n("button",{staticClass:"el-time-panel__btn cancel",attrs:{type:"button"},on:{click:e.handleCancel}},[e._v(e._s(e.t("el.datepicker.cancel")))]),n("button",{staticClass:"el-time-panel__btn",class:{confirm:!e.disabled},attrs:{type:"button"},on:{click:function(t){e.handleConfirm()}}},[e._v(e._s(e.t("el.datepicker.confirm")))])])])])},i=[];r._withStripped=!0;var o=n(1),a=n(6),s=n.n(a),c=n(34),u={mixins:[s.a],components:{TimeSpinner:c["a"]},props:{visible:Boolean,timeArrowControl:Boolean},watch:{visible:function(e){var t=this;e?(this.oldValue=this.value,this.$nextTick((function(){return t.$refs.spinner.emitSelectRange("hours")}))):this.needInitAdjust=!0},value:function(e){var t=this,n=void 0;e instanceof Date?n=Object(o["limitTimeRange"])(e,this.selectableRange,this.format):e||(n=this.defaultValue?new Date(this.defaultValue):new Date),this.date=n,this.visible&&this.needInitAdjust&&(this.$nextTick((function(e){return t.adjustSpinners()})),this.needInitAdjust=!1)},selectableRange:function(e){this.$refs.spinner.selectableRange=e},defaultValue:function(e){Object(o["isDate"])(this.value)||(this.date=e?new Date(e):new Date)}},data:function(){return{popperClass:"",format:"HH:mm:ss",value:"",defaultValue:null,date:new Date,oldValue:new Date,selectableRange:[],selectionRange:[0,2],disabled:!1,arrowControl:!1,needInitAdjust:!0}},computed:{showSeconds:function(){return-1!==(this.format||"").indexOf("ss")},useArrow:function(){return this.arrowControl||this.timeArrowControl||!1},amPmMode:function(){return-1!==(this.format||"").indexOf("A")?"A":-1!==(this.format||"").indexOf("a")?"a":""}},methods:{handleCancel:function(){this.$emit("pick",this.oldValue,!1)},handleChange:function(e){this.visible&&(this.date=Object(o["clearMilliseconds"])(e),this.isValidValue(this.date)&&this.$emit("pick",this.date,!0))},setSelectionRange:function(e,t){this.$emit("select-range",e,t),this.selectionRange=[e,t]},handleConfirm:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments[1];if(!t){var n=Object(o["clearMilliseconds"])(Object(o["limitTimeRange"])(this.date,this.selectableRange,this.format));this.$emit("pick",n,e,t)}},handleKeydown:function(e){var t=e.keyCode,n={38:-1,40:1,37:-1,39:1};if(37===t||39===t){var r=n[t];return this.changeSelectionRange(r),void e.preventDefault()}if(38===t||40===t){var i=n[t];return this.$refs.spinner.scrollDown(i),void e.preventDefault()}},isValidValue:function(e){return Object(o["timeWithinRange"])(e,this.selectableRange,this.format)},adjustSpinners:function(){return this.$refs.spinner.adjustSpinners()},changeSelectionRange:function(e){var t=[0,3].concat(this.showSeconds?[6]:[]),n=["hours","minutes"].concat(this.showSeconds?["seconds"]:[]),r=t.indexOf(this.selectionRange[0]),i=(r+e+t.length)%t.length;this.$refs.spinner.emitSelectRange(n[i])}},mounted:function(){var e=this;this.$nextTick((function(){return e.handleConfirm(!0,!0)})),this.$emit("mounted")}},l=u,d=n(0),h=Object(d["a"])(l,r,i,!1,null,null,null);h.options.__file="packages/date-picker/src/panel/time.vue";t["a"]=h.exports},,,function(e,t,n){"use strict";var r=n(2);t["a"]={bind:function(e,t,n){var i=null,o=void 0,a=function(){return n.context[t.expression].apply()},s=function(){Date.now()-o<100&&a(),clearInterval(i),i=null};Object(r["on"])(e,"mousedown",(function(e){0===e.button&&(o=Date.now(),Object(r["once"])(document,"mouseup",s),clearInterval(i),i=setInterval(a,100))}))}}},,function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.ranged?n("div",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleClose,expression:"handleClose"}],ref:"reference",staticClass:"el-date-editor el-range-editor el-input__inner",class:["el-date-editor--"+e.type,e.pickerSize?"el-range-editor--"+e.pickerSize:"",e.pickerDisabled?"is-disabled":"",e.pickerVisible?"is-active":""],on:{click:e.handleRangeClick,mouseenter:e.handleMouseEnter,mouseleave:function(t){e.showClose=!1},keydown:e.handleKeydown}},[n("i",{class:["el-input__icon","el-range__icon",e.triggerClass]}),n("input",e._b({staticClass:"el-range-input",attrs:{autocomplete:"off",placeholder:e.startPlaceholder,disabled:e.pickerDisabled,readonly:!e.editable||e.readonly,name:e.name&&e.name[0]},domProps:{value:e.displayValue&&e.displayValue[0]},on:{input:e.handleStartInput,change:e.handleStartChange,focus:e.handleFocus}},"input",e.firstInputId,!1)),e._t("range-separator",[n("span",{staticClass:"el-range-separator"},[e._v(e._s(e.rangeSeparator))])]),n("input",e._b({staticClass:"el-range-input",attrs:{autocomplete:"off",placeholder:e.endPlaceholder,disabled:e.pickerDisabled,readonly:!e.editable||e.readonly,name:e.name&&e.name[1]},domProps:{value:e.displayValue&&e.displayValue[1]},on:{input:e.handleEndInput,change:e.handleEndChange,focus:e.handleFocus}},"input",e.secondInputId,!1)),e.haveTrigger?n("i",{staticClass:"el-input__icon el-range__close-icon",class:[e.showClose?""+e.clearIcon:""],on:{click:e.handleClickIcon}}):e._e()],2):n("el-input",e._b({directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleClose,expression:"handleClose"}],ref:"reference",staticClass:"el-date-editor",class:"el-date-editor--"+e.type,attrs:{readonly:!e.editable||e.readonly||"dates"===e.type||"week"===e.type,disabled:e.pickerDisabled,size:e.pickerSize,name:e.name,placeholder:e.placeholder,value:e.displayValue,validateEvent:!1},on:{focus:e.handleFocus,input:function(t){return e.userInput=t},change:e.handleChange},nativeOn:{keydown:function(t){return e.handleKeydown(t)},mouseenter:function(t){return e.handleMouseEnter(t)},mouseleave:function(t){e.showClose=!1}}},"el-input",e.firstInputId,!1),[n("i",{staticClass:"el-input__icon",class:e.triggerClass,attrs:{slot:"prefix"},on:{click:e.handleFocus},slot:"prefix"}),e.haveTrigger?n("i",{staticClass:"el-input__icon",class:[e.showClose?""+e.clearIcon:""],attrs:{slot:"suffix"},on:{click:e.handleClickIcon},slot:"suffix"}):e._e()])},i=[];r._withStripped=!0;var o=n(7),a=n.n(o),s=n(12),c=n.n(s),u=n(1),l=n(5),d=n.n(l),h=n(4),f=n.n(h),p=n(10),g=n.n(p),m=n(9),v=n.n(m),y={props:{appendToBody:d.a.props.appendToBody,offset:d.a.props.offset,boundariesPadding:d.a.props.boundariesPadding,arrowOffset:d.a.props.arrowOffset},methods:d.a.methods,data:function(){return v()({visibleArrow:!0},d.a.data)},beforeDestroy:d.a.beforeDestroy},_={date:"yyyy-MM-dd",month:"yyyy-MM",datetime:"yyyy-MM-dd HH:mm:ss",time:"HH:mm:ss",week:"yyyywWW",timerange:"HH:mm:ss",daterange:"yyyy-MM-dd",monthrange:"yyyy-MM",datetimerange:"yyyy-MM-dd HH:mm:ss",year:"yyyy"},b=["date","datetime","time","time-select","week","month","year","daterange","monthrange","timerange","datetimerange","dates"],S=function(e,t){return"timestamp"===t?e.getTime():Object(u["formatDate"])(e,t)},x=function(e,t){return"timestamp"===t?new Date(Number(e)):Object(u["parseDate"])(e,t)},w=function(e,t){if(Array.isArray(e)&&2===e.length){var n=e[0],r=e[1];if(n&&r)return[S(n,t),S(r,t)]}return""},I=function(e,t,n){if(Array.isArray(e)||(e=e.split(n)),2===e.length){var r=e[0],i=e[1];return[x(r,t),x(i,t)]}return[]},C={default:{formatter:function(e){return e?""+e:""},parser:function(e){return void 0===e||""===e?null:e}},week:{formatter:function(e,t){var n=Object(u["getWeekNumber"])(e),r=e.getMonth(),i=new Date(e);1===n&&11===r&&(i.setHours(0,0,0,0),i.setDate(i.getDate()+3-(i.getDay()+6)%7));var o=Object(u["formatDate"])(i,t);return o=/WW/.test(o)?o.replace(/WW/,n<10?"0"+n:n):o.replace(/W/,n),o},parser:function(e,t){return C.date.parser(e,t)}},date:{formatter:S,parser:x},datetime:{formatter:S,parser:x},daterange:{formatter:w,parser:I},monthrange:{formatter:w,parser:I},datetimerange:{formatter:w,parser:I},timerange:{formatter:w,parser:I},time:{formatter:S,parser:x},month:{formatter:S,parser:x},year:{formatter:S,parser:x},number:{formatter:function(e){return e?""+e:""},parser:function(e){var t=Number(e);return isNaN(e)?null:t}},dates:{formatter:function(e,t){return e.map((function(e){return S(e,t)}))},parser:function(e,t){return("string"===typeof e?e.split(", "):e).map((function(e){return e instanceof Date?e:x(e,t)}))}}},M={left:"bottom-start",center:"bottom",right:"bottom-end"},T=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"-";if(!e)return null;var i=(C[n]||C["default"]).parser,o=t||_[n];return i(e,o,r)},k=function(e,t,n){if(!e)return null;var r=(C[n]||C["default"]).formatter,i=t||_[n];return r(e,i)},E=function(e,t){var n=function(e,t){var n=e instanceof Date,r=t instanceof Date;return n&&r?e.getTime()===t.getTime():!n&&!r&&e===t},r=e instanceof Array,i=t instanceof Array;return r&&i?e.length===t.length&&e.every((function(e,r){return n(e,t[r])})):!r&&!i&&n(e,t)},A=function(e){return"string"===typeof e||e instanceof String},D=function(e){return null===e||void 0===e||A(e)||Array.isArray(e)&&2===e.length&&e.every(A)},O={mixins:[f.a,y],inject:{elForm:{default:""},elFormItem:{default:""}},props:{size:String,format:String,valueFormat:String,readonly:Boolean,placeholder:String,startPlaceholder:String,endPlaceholder:String,prefixIcon:String,clearIcon:{type:String,default:"el-icon-circle-close"},name:{default:"",validator:D},disabled:Boolean,clearable:{type:Boolean,default:!0},id:{default:"",validator:D},popperClass:String,editable:{type:Boolean,default:!0},align:{type:String,default:"left"},value:{},defaultValue:{},defaultTime:{},rangeSeparator:{default:"-"},pickerOptions:{},unlinkPanels:Boolean,validateEvent:{type:Boolean,default:!0}},components:{ElInput:g.a},directives:{Clickoutside:c.a},data:function(){return{pickerVisible:!1,showClose:!1,userInput:null,valueOnOpen:null,unwatchPickerOptions:null}},watch:{pickerVisible:function(e){this.readonly||this.pickerDisabled||(e?(this.showPicker(),this.valueOnOpen=Array.isArray(this.value)?[].concat(this.value):this.value):(this.hidePicker(),this.emitChange(this.value),this.userInput=null,this.validateEvent&&this.dispatch("ElFormItem","el.form.blur"),this.$emit("blur",this),this.blur()))},parsedValue:{immediate:!0,handler:function(e){this.picker&&(this.picker.value=e)}},defaultValue:function(e){this.picker&&(this.picker.defaultValue=e)},value:function(e,t){E(e,t)||this.pickerVisible||!this.validateEvent||this.dispatch("ElFormItem","el.form.change",e)}},computed:{ranged:function(){return this.type.indexOf("range")>-1},reference:function(){var e=this.$refs.reference;return e.$el||e},refInput:function(){return this.reference?[].slice.call(this.reference.querySelectorAll("input")):[]},valueIsEmpty:function(){var e=this.value;if(Array.isArray(e)){for(var t=0,n=e.length;t<n;t++)if(e[t])return!1}else if(e)return!1;return!0},triggerClass:function(){return this.prefixIcon||(-1!==this.type.indexOf("time")?"el-icon-time":"el-icon-date")},selectionMode:function(){return"week"===this.type?"week":"month"===this.type?"month":"year"===this.type?"year":"dates"===this.type?"dates":"day"},haveTrigger:function(){return"undefined"!==typeof this.showTrigger?this.showTrigger:-1!==b.indexOf(this.type)},displayValue:function(){var e=k(this.parsedValue,this.format,this.type,this.rangeSeparator);return Array.isArray(this.userInput)?[this.userInput[0]||e&&e[0]||"",this.userInput[1]||e&&e[1]||""]:null!==this.userInput?this.userInput:e?"dates"===this.type?e.join(", "):e:""},parsedValue:function(){if(!this.value)return this.value;if("time-select"===this.type)return this.value;var e=Object(u["isDateObject"])(this.value)||Array.isArray(this.value)&&this.value.every(u["isDateObject"]);return e?this.value:this.valueFormat?T(this.value,this.valueFormat,this.type,this.rangeSeparator)||this.value:Array.isArray(this.value)?this.value.map((function(e){return new Date(e)})):new Date(this.value)},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},pickerSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},pickerDisabled:function(){return this.disabled||(this.elForm||{}).disabled},firstInputId:function(){var e={},t=void 0;return t=this.ranged?this.id&&this.id[0]:this.id,t&&(e.id=t),e},secondInputId:function(){var e={},t=void 0;return this.ranged&&(t=this.id&&this.id[1]),t&&(e.id=t),e}},created:function(){this.popperOptions={boundariesPadding:0,gpuAcceleration:!1},this.placement=M[this.align]||M.left,this.$on("fieldReset",this.handleFieldReset)},methods:{focus:function(){this.ranged?this.handleFocus():this.$refs.reference.focus()},blur:function(){this.refInput.forEach((function(e){return e.blur()}))},parseValue:function(e){var t=Object(u["isDateObject"])(e)||Array.isArray(e)&&e.every(u["isDateObject"]);return this.valueFormat&&!t&&T(e,this.valueFormat,this.type,this.rangeSeparator)||e},formatToValue:function(e){var t=Object(u["isDateObject"])(e)||Array.isArray(e)&&e.every(u["isDateObject"]);return this.valueFormat&&t?k(e,this.valueFormat,this.type,this.rangeSeparator):e},parseString:function(e){var t=Array.isArray(e)?this.type:this.type.replace("range","");return T(e,this.format,t)},formatToString:function(e){var t=Array.isArray(e)?this.type:this.type.replace("range","");return k(e,this.format,t)},handleMouseEnter:function(){this.readonly||this.pickerDisabled||!this.valueIsEmpty&&this.clearable&&(this.showClose=!0)},handleChange:function(){if(this.userInput){var e=this.parseString(this.displayValue);e&&(this.picker.value=e,this.isValidValue(e)&&(this.emitInput(e),this.userInput=null))}""===this.userInput&&(this.emitInput(null),this.emitChange(null),this.userInput=null)},handleStartInput:function(e){this.userInput?this.userInput=[e.target.value,this.userInput[1]]:this.userInput=[e.target.value,null]},handleEndInput:function(e){this.userInput?this.userInput=[this.userInput[0],e.target.value]:this.userInput=[null,e.target.value]},handleStartChange:function(e){var t=this.parseString(this.userInput&&this.userInput[0]);if(t){this.userInput=[this.formatToString(t),this.displayValue[1]];var n=[t,this.picker.value&&this.picker.value[1]];this.picker.value=n,this.isValidValue(n)&&(this.emitInput(n),this.userInput=null)}},handleEndChange:function(e){var t=this.parseString(this.userInput&&this.userInput[1]);if(t){this.userInput=[this.displayValue[0],this.formatToString(t)];var n=[this.picker.value&&this.picker.value[0],t];this.picker.value=n,this.isValidValue(n)&&(this.emitInput(n),this.userInput=null)}},handleClickIcon:function(e){this.readonly||this.pickerDisabled||(this.showClose?(this.valueOnOpen=this.value,e.stopPropagation(),this.emitInput(null),this.emitChange(null),this.showClose=!1,this.picker&&"function"===typeof this.picker.handleClear&&this.picker.handleClear()):this.pickerVisible=!this.pickerVisible)},handleClose:function(){if(this.pickerVisible&&(this.pickerVisible=!1,"dates"===this.type)){var e=T(this.valueOnOpen,this.valueFormat,this.type,this.rangeSeparator)||this.valueOnOpen;this.emitInput(e)}},handleFieldReset:function(e){this.userInput=""===e?null:e},handleFocus:function(){var e=this.type;-1===b.indexOf(e)||this.pickerVisible||(this.pickerVisible=!0),this.$emit("focus",this)},handleKeydown:function(e){var t=this,n=e.keyCode;return 27===n?(this.pickerVisible=!1,void e.stopPropagation()):9!==n?13===n?((""===this.userInput||this.isValidValue(this.parseString(this.displayValue)))&&(this.handleChange(),this.pickerVisible=this.picker.visible=!1,this.blur()),void e.stopPropagation()):void(this.userInput?e.stopPropagation():this.picker&&this.picker.handleKeydown&&this.picker.handleKeydown(e)):void(this.ranged?setTimeout((function(){-1===t.refInput.indexOf(document.activeElement)&&(t.pickerVisible=!1,t.blur(),e.stopPropagation())}),0):(this.handleChange(),this.pickerVisible=this.picker.visible=!1,this.blur(),e.stopPropagation()))},handleRangeClick:function(){var e=this.type;-1===b.indexOf(e)||this.pickerVisible||(this.pickerVisible=!0),this.$emit("focus",this)},hidePicker:function(){this.picker&&(this.picker.resetView&&this.picker.resetView(),this.pickerVisible=this.picker.visible=!1,this.destroyPopper())},showPicker:function(){var e=this;this.$isServer||(this.picker||this.mountPicker(),this.pickerVisible=this.picker.visible=!0,this.updatePopper(),this.picker.value=this.parsedValue,this.picker.resetView&&this.picker.resetView(),this.$nextTick((function(){e.picker.adjustSpinners&&e.picker.adjustSpinners()})))},mountPicker:function(){var e=this;this.picker=new a.a(this.panel).$mount(),this.picker.defaultValue=this.defaultValue,this.picker.defaultTime=this.defaultTime,this.picker.popperClass=this.popperClass,this.popperElm=this.picker.$el,this.picker.width=this.reference.getBoundingClientRect().width,this.picker.showTime="datetime"===this.type||"datetimerange"===this.type,this.picker.selectionMode=this.selectionMode,this.picker.unlinkPanels=this.unlinkPanels,this.picker.arrowControl=this.arrowControl||this.timeArrowControl||!1,this.$watch("format",(function(t){e.picker.format=t}));var t=function(){var t=e.pickerOptions;if(t&&t.selectableRange){var n=t.selectableRange,r=C.datetimerange.parser,i=_.timerange;n=Array.isArray(n)?n:[n],e.picker.selectableRange=n.map((function(t){return r(t,i,e.rangeSeparator)}))}for(var o in t)t.hasOwnProperty(o)&&"selectableRange"!==o&&(e.picker[o]=t[o]);e.format&&(e.picker.format=e.format)};t(),this.unwatchPickerOptions=this.$watch("pickerOptions",(function(){return t()}),{deep:!0}),this.$el.appendChild(this.picker.$el),this.picker.resetView&&this.picker.resetView(),this.picker.$on("dodestroy",this.doDestroy),this.picker.$on("pick",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.userInput=null,e.pickerVisible=e.picker.visible=n,e.emitInput(t),e.picker.resetView&&e.picker.resetView()})),this.picker.$on("select-range",(function(t,n,r){0!==e.refInput.length&&(r&&"min"!==r?"max"===r&&(e.refInput[1].setSelectionRange(t,n),e.refInput[1].focus()):(e.refInput[0].setSelectionRange(t,n),e.refInput[0].focus()))}))},unmountPicker:function(){this.picker&&(this.picker.$destroy(),this.picker.$off(),"function"===typeof this.unwatchPickerOptions&&this.unwatchPickerOptions(),this.picker.$el.parentNode.removeChild(this.picker.$el))},emitChange:function(e){E(e,this.valueOnOpen)||(this.$emit("change",e),this.valueOnOpen=e,this.validateEvent&&this.dispatch("ElFormItem","el.form.change",e))},emitInput:function(e){var t=this.formatToValue(e);E(this.value,t)||this.$emit("input",t)},isValidValue:function(e){return this.picker||this.mountPicker(),!this.picker.isValidValue||e&&this.picker.isValidValue(e)}}},R=O,L=n(0),P=Object(L["a"])(R,r,i,!1,null,null,null);P.options.__file="packages/date-picker/src/picker.vue";t["a"]=P.exports},,function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"el-time-spinner",class:{"has-seconds":e.showSeconds}},[e.arrowControl?e._e():[n("el-scrollbar",{ref:"hours",staticClass:"el-time-spinner__wrapper",attrs:{"wrap-style":"max-height: inherit;","view-class":"el-time-spinner__list",noresize:"",tag:"ul"},nativeOn:{mouseenter:function(t){e.emitSelectRange("hours")},mousemove:function(t){e.adjustCurrentSpinner("hours")}}},e._l(e.hoursList,(function(t,r){return n("li",{key:r,staticClass:"el-time-spinner__item",class:{active:r===e.hours,disabled:t},on:{click:function(n){e.handleClick("hours",{value:r,disabled:t})}}},[e._v(e._s(("0"+(e.amPmMode?r%12||12:r)).slice(-2))+e._s(e.amPm(r)))])})),0),n("el-scrollbar",{ref:"minutes",staticClass:"el-time-spinner__wrapper",attrs:{"wrap-style":"max-height: inherit;","view-class":"el-time-spinner__list",noresize:"",tag:"ul"},nativeOn:{mouseenter:function(t){e.emitSelectRange("minutes")},mousemove:function(t){e.adjustCurrentSpinner("minutes")}}},e._l(e.minutesList,(function(t,r){return n("li",{key:r,staticClass:"el-time-spinner__item",class:{active:r===e.minutes,disabled:!t},on:{click:function(t){e.handleClick("minutes",{value:r,disabled:!1})}}},[e._v(e._s(("0"+r).slice(-2)))])})),0),n("el-scrollbar",{directives:[{name:"show",rawName:"v-show",value:e.showSeconds,expression:"showSeconds"}],ref:"seconds",staticClass:"el-time-spinner__wrapper",attrs:{"wrap-style":"max-height: inherit;","view-class":"el-time-spinner__list",noresize:"",tag:"ul"},nativeOn:{mouseenter:function(t){e.emitSelectRange("seconds")},mousemove:function(t){e.adjustCurrentSpinner("seconds")}}},e._l(60,(function(t,r){return n("li",{key:r,staticClass:"el-time-spinner__item",class:{active:r===e.seconds},on:{click:function(t){e.handleClick("seconds",{value:r,disabled:!1})}}},[e._v(e._s(("0"+r).slice(-2)))])})),0)],e.arrowControl?[n("div",{staticClass:"el-time-spinner__wrapper is-arrow",on:{mouseenter:function(t){e.emitSelectRange("hours")}}},[n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.decrease,expression:"decrease"}],staticClass:"el-time-spinner__arrow el-icon-arrow-up"}),n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.increase,expression:"increase"}],staticClass:"el-time-spinner__arrow el-icon-arrow-down"}),n("ul",{ref:"hours",staticClass:"el-time-spinner__list"},e._l(e.arrowHourList,(function(t,r){return n("li",{key:r,staticClass:"el-time-spinner__item",class:{active:t===e.hours,disabled:e.hoursList[t]}},[e._v(e._s(void 0===t?"":("0"+(e.amPmMode?t%12||12:t)).slice(-2)+e.amPm(t)))])})),0)]),n("div",{staticClass:"el-time-spinner__wrapper is-arrow",on:{mouseenter:function(t){e.emitSelectRange("minutes")}}},[n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.decrease,expression:"decrease"}],staticClass:"el-time-spinner__arrow el-icon-arrow-up"}),n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.increase,expression:"increase"}],staticClass:"el-time-spinner__arrow el-icon-arrow-down"}),n("ul",{ref:"minutes",staticClass:"el-time-spinner__list"},e._l(e.arrowMinuteList,(function(t,r){return n("li",{key:r,staticClass:"el-time-spinner__item",class:{active:t===e.minutes}},[e._v("\n          "+e._s(void 0===t?"":("0"+t).slice(-2))+"\n        ")])})),0)]),e.showSeconds?n("div",{staticClass:"el-time-spinner__wrapper is-arrow",on:{mouseenter:function(t){e.emitSelectRange("seconds")}}},[n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.decrease,expression:"decrease"}],staticClass:"el-time-spinner__arrow el-icon-arrow-up"}),n("i",{directives:[{name:"repeat-click",rawName:"v-repeat-click",value:e.increase,expression:"increase"}],staticClass:"el-time-spinner__arrow el-icon-arrow-down"}),n("ul",{ref:"seconds",staticClass:"el-time-spinner__list"},e._l(e.arrowSecondList,(function(t,r){return n("li",{key:r,staticClass:"el-time-spinner__item",class:{active:t===e.seconds}},[e._v("\n          "+e._s(void 0===t?"":("0"+t).slice(-2))+"\n        ")])})),0)]):e._e()]:e._e()],2)},i=[];r._withStripped=!0;var o=n(1),a=n(15),s=n.n(a),c=n(30),u={components:{ElScrollbar:s.a},directives:{repeatClick:c["a"]},props:{date:{},defaultValue:{},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:String,default:""}},computed:{hours:function(){return this.date.getHours()},minutes:function(){return this.date.getMinutes()},seconds:function(){return this.date.getSeconds()},hoursList:function(){return Object(o["getRangeHours"])(this.selectableRange)},minutesList:function(){return Object(o["getRangeMinutes"])(this.selectableRange,this.hours)},arrowHourList:function(){var e=this.hours;return[e>0?e-1:void 0,e,e<23?e+1:void 0]},arrowMinuteList:function(){var e=this.minutes;return[e>0?e-1:void 0,e,e<59?e+1:void 0]},arrowSecondList:function(){var e=this.seconds;return[e>0?e-1:void 0,e,e<59?e+1:void 0]}},data:function(){return{selectableRange:[],currentScrollbar:null}},mounted:function(){var e=this;this.$nextTick((function(){!e.arrowControl&&e.bindScrollEvent()}))},methods:{increase:function(){this.scrollDown(1)},decrease:function(){this.scrollDown(-1)},modifyDateField:function(e,t){switch(e){case"hours":this.$emit("change",Object(o["modifyTime"])(this.date,t,this.minutes,this.seconds));break;case"minutes":this.$emit("change",Object(o["modifyTime"])(this.date,this.hours,t,this.seconds));break;case"seconds":this.$emit("change",Object(o["modifyTime"])(this.date,this.hours,this.minutes,t));break}},handleClick:function(e,t){var n=t.value,r=t.disabled;r||(this.modifyDateField(e,n),this.emitSelectRange(e),this.adjustSpinner(e,n))},emitSelectRange:function(e){"hours"===e?this.$emit("select-range",0,2):"minutes"===e?this.$emit("select-range",3,5):"seconds"===e&&this.$emit("select-range",6,8),this.currentScrollbar=e},bindScrollEvent:function(){var e=this,t=function(t){e.$refs[t].wrap.onscroll=function(n){e.handleScroll(t,n)}};t("hours"),t("minutes"),t("seconds")},handleScroll:function(e){var t=Math.min(Math.round((this.$refs[e].wrap.scrollTop-(.5*this.scrollBarHeight(e)-10)/this.typeItemHeight(e)+3)/this.typeItemHeight(e)),"hours"===e?23:59);this.modifyDateField(e,t)},adjustSpinners:function(){this.adjustSpinner("hours",this.hours),this.adjustSpinner("minutes",this.minutes),this.adjustSpinner("seconds",this.seconds)},adjustCurrentSpinner:function(e){this.adjustSpinner(e,this[e])},adjustSpinner:function(e,t){if(!this.arrowControl){var n=this.$refs[e].wrap;n&&(n.scrollTop=Math.max(0,t*this.typeItemHeight(e)))}},scrollDown:function(e){var t=this;this.currentScrollbar||this.emitSelectRange("hours");var n=this.currentScrollbar,r=this.hoursList,i=this[n];if("hours"===this.currentScrollbar){var o=Math.abs(e);e=e>0?1:-1;var a=r.length;while(a--&&o)i=(i+e+r.length)%r.length,r[i]||o--;if(r[i])return}else i=(i+e+60)%60;this.modifyDateField(n,i),this.adjustSpinner(n,i),this.$nextTick((function(){return t.emitSelectRange(t.currentScrollbar)}))},amPm:function(e){var t="a"===this.amPmMode.toLowerCase();if(!t)return"";var n="A"===this.amPmMode,r=e<12?" am":" pm";return n&&(r=r.toUpperCase()),r},typeItemHeight:function(e){return this.$refs[e].$el.querySelector("li").offsetHeight},scrollBarHeight:function(e){return this.$refs[e].$el.offsetHeight}}},l=u,d=n(0),h=Object(d["a"])(l,r,i,!1,null,null,null);h.options.__file="packages/date-picker/src/basic/time-spinner.vue";t["a"]=h.exports},,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var r=n(32),i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-enter":e.handleEnter,"after-leave":e.handleLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-picker-panel el-date-picker el-popper",class:[{"has-sidebar":e.$slots.sidebar||e.shortcuts,"has-time":e.showTime},e.popperClass]},[n("div",{staticClass:"el-picker-panel__body-wrapper"},[e._t("sidebar"),e.shortcuts?n("div",{staticClass:"el-picker-panel__sidebar"},e._l(e.shortcuts,(function(t,r){return n("button",{key:r,staticClass:"el-picker-panel__shortcut",attrs:{type:"button"},on:{click:function(n){e.handleShortcutClick(t)}}},[e._v(e._s(t.text))])})),0):e._e(),n("div",{staticClass:"el-picker-panel__body"},[e.showTime?n("div",{staticClass:"el-date-picker__time-header"},[n("span",{staticClass:"el-date-picker__editor-wrap"},[n("el-input",{attrs:{placeholder:e.t("el.datepicker.selectDate"),value:e.visibleDate,size:"small"},on:{input:function(t){return e.userInputDate=t},change:e.handleVisibleDateChange}})],1),n("span",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleTimePickClose,expression:"handleTimePickClose"}],staticClass:"el-date-picker__editor-wrap"},[n("el-input",{ref:"input",attrs:{placeholder:e.t("el.datepicker.selectTime"),value:e.visibleTime,size:"small"},on:{focus:function(t){e.timePickerVisible=!0},input:function(t){return e.userInputTime=t},change:e.handleVisibleTimeChange}}),n("time-picker",{ref:"timepicker",attrs:{"time-arrow-control":e.arrowControl,visible:e.timePickerVisible},on:{pick:e.handleTimePick,mounted:e.proxyTimePickerDataProperties}})],1)]):e._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:"time"!==e.currentView,expression:"currentView !== 'time'"}],staticClass:"el-date-picker__header",class:{"el-date-picker__header--bordered":"year"===e.currentView||"month"===e.currentView}},[n("button",{staticClass:"el-picker-panel__icon-btn el-date-picker__prev-btn el-icon-d-arrow-left",attrs:{type:"button","aria-label":e.t("el.datepicker.prevYear")},on:{click:e.prevYear}}),n("button",{directives:[{name:"show",rawName:"v-show",value:"date"===e.currentView,expression:"currentView === 'date'"}],staticClass:"el-picker-panel__icon-btn el-date-picker__prev-btn el-icon-arrow-left",attrs:{type:"button","aria-label":e.t("el.datepicker.prevMonth")},on:{click:e.prevMonth}}),n("span",{staticClass:"el-date-picker__header-label",attrs:{role:"button"},on:{click:e.showYearPicker}},[e._v(e._s(e.yearLabel))]),n("span",{directives:[{name:"show",rawName:"v-show",value:"date"===e.currentView,expression:"currentView === 'date'"}],staticClass:"el-date-picker__header-label",class:{active:"month"===e.currentView},attrs:{role:"button"},on:{click:e.showMonthPicker}},[e._v(e._s(e.t("el.datepicker.month"+(e.month+1))))]),n("button",{staticClass:"el-picker-panel__icon-btn el-date-picker__next-btn el-icon-d-arrow-right",attrs:{type:"button","aria-label":e.t("el.datepicker.nextYear")},on:{click:e.nextYear}}),n("button",{directives:[{name:"show",rawName:"v-show",value:"date"===e.currentView,expression:"currentView === 'date'"}],staticClass:"el-picker-panel__icon-btn el-date-picker__next-btn el-icon-arrow-right",attrs:{type:"button","aria-label":e.t("el.datepicker.nextMonth")},on:{click:e.nextMonth}})]),n("div",{staticClass:"el-picker-panel__content"},[n("date-table",{directives:[{name:"show",rawName:"v-show",value:"date"===e.currentView,expression:"currentView === 'date'"}],attrs:{"selection-mode":e.selectionMode,"first-day-of-week":e.firstDayOfWeek,value:e.value,"default-value":e.defaultValue?new Date(e.defaultValue):null,date:e.date,"cell-class-name":e.cellClassName,"disabled-date":e.disabledDate},on:{pick:e.handleDatePick}}),n("year-table",{directives:[{name:"show",rawName:"v-show",value:"year"===e.currentView,expression:"currentView === 'year'"}],attrs:{value:e.value,"default-value":e.defaultValue?new Date(e.defaultValue):null,date:e.date,"disabled-date":e.disabledDate},on:{pick:e.handleYearPick}}),n("month-table",{directives:[{name:"show",rawName:"v-show",value:"month"===e.currentView,expression:"currentView === 'month'"}],attrs:{value:e.value,"default-value":e.defaultValue?new Date(e.defaultValue):null,date:e.date,"disabled-date":e.disabledDate},on:{pick:e.handleMonthPick}})],1)])],2),n("div",{directives:[{name:"show",rawName:"v-show",value:e.footerVisible&&"date"===e.currentView,expression:"footerVisible && currentView === 'date'"}],staticClass:"el-picker-panel__footer"},[n("el-button",{directives:[{name:"show",rawName:"v-show",value:"dates"!==e.selectionMode,expression:"selectionMode !== 'dates'"}],staticClass:"el-picker-panel__link-btn",attrs:{size:"mini",type:"text"},on:{click:e.changeToNow}},[e._v("\n        "+e._s(e.t("el.datepicker.now"))+"\n      ")]),n("el-button",{staticClass:"el-picker-panel__link-btn",attrs:{plain:"",size:"mini"},on:{click:e.confirm}},[e._v("\n        "+e._s(e.t("el.datepicker.confirm"))+"\n      ")])],1)])])},o=[];i._withStripped=!0;var a=n(1),s=n(12),c=n.n(s),u=n(6),l=n.n(u),d=n(10),h=n.n(d),f=n(14),p=n.n(f),g=n(27),m=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("table",{staticClass:"el-year-table",on:{click:e.handleYearTableClick}},[n("tbody",[n("tr",[n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+0)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+1)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+1))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+2)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+2))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+3)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+3))])])]),n("tr",[n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+4)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+4))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+5)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+5))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+6)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+6))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+7)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+7))])])]),n("tr",[n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+8)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+8))])]),n("td",{staticClass:"available",class:e.getCellStyle(e.startYear+9)},[n("a",{staticClass:"cell"},[e._v(e._s(e.startYear+9))])]),n("td"),n("td")])])])},v=[];m._withStripped=!0;var y=n(2),_=n(3),b=function(e){var t=Object(a["getDayCountOfYear"])(e),n=new Date(e,0,1);return Object(a["range"])(t).map((function(e){return Object(a["nextDate"])(n,e)}))},S={props:{disabledDate:{},value:{},defaultValue:{validator:function(e){return null===e||e instanceof Date&&Object(a["isDate"])(e)}},date:{}},computed:{startYear:function(){return 10*Math.floor(this.date.getFullYear()/10)}},methods:{getCellStyle:function(e){var t={},n=new Date;return t.disabled="function"===typeof this.disabledDate&&b(e).every(this.disabledDate),t.current=Object(_["arrayFindIndex"])(Object(_["coerceTruthyValueToArray"])(this.value),(function(t){return t.getFullYear()===e}))>=0,t.today=n.getFullYear()===e,t.default=this.defaultValue&&this.defaultValue.getFullYear()===e,t},handleYearTableClick:function(e){var t=e.target;if("A"===t.tagName){if(Object(y["hasClass"])(t.parentNode,"disabled"))return;var n=t.textContent||t.innerText;this.$emit("pick",Number(n))}}}},x=S,w=n(0),I=Object(w["a"])(x,m,v,!1,null,null,null);I.options.__file="packages/date-picker/src/basic/year-table.vue";var C=I.exports,M=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("table",{staticClass:"el-month-table",on:{click:e.handleMonthTableClick,mousemove:e.handleMouseMove}},[n("tbody",e._l(e.rows,(function(t,r){return n("tr",{key:r},e._l(t,(function(t,r){return n("td",{key:r,class:e.getCellStyle(t)},[n("div",[n("a",{staticClass:"cell"},[e._v(e._s(e.t("el.datepicker.months."+e.months[t.text])))])])])})),0)})),0)])},T=[];M._withStripped=!0;var k=function(e,t){var n=Object(a["getDayCountOfMonth"])(e,t),r=new Date(e,t,1);return Object(a["range"])(n).map((function(e){return Object(a["nextDate"])(r,e)}))},E=function(e){return new Date(e.getFullYear(),e.getMonth())},A=function(e){return"number"===typeof e||"string"===typeof e?E(new Date(e)).getTime():e instanceof Date?E(e).getTime():NaN},D={props:{disabledDate:{},value:{},selectionMode:{default:"month"},minDate:{},maxDate:{},defaultValue:{validator:function(e){return null===e||Object(a["isDate"])(e)||Array.isArray(e)&&e.every(a["isDate"])}},date:{},rangeState:{default:function(){return{endDate:null,selecting:!1}}}},mixins:[l.a],watch:{"rangeState.endDate":function(e){this.markRange(this.minDate,e)},minDate:function(e,t){A(e)!==A(t)&&this.markRange(this.minDate,this.maxDate)},maxDate:function(e,t){A(e)!==A(t)&&this.markRange(this.minDate,this.maxDate)}},data:function(){return{months:["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"],tableRows:[[],[],[]],lastRow:null,lastColumn:null}},methods:{cellMatchesDate:function(e,t){var n=new Date(t);return this.date.getFullYear()===n.getFullYear()&&Number(e.text)===n.getMonth()},getCellStyle:function(e){var t=this,n={},r=this.date.getFullYear(),i=new Date,o=e.text,a=this.defaultValue?Array.isArray(this.defaultValue)?this.defaultValue:[this.defaultValue]:[];return n.disabled="function"===typeof this.disabledDate&&k(r,o).every(this.disabledDate),n.current=Object(_["arrayFindIndex"])(Object(_["coerceTruthyValueToArray"])(this.value),(function(e){return e.getFullYear()===r&&e.getMonth()===o}))>=0,n.today=i.getFullYear()===r&&i.getMonth()===o,n.default=a.some((function(n){return t.cellMatchesDate(e,n)})),e.inRange&&(n["in-range"]=!0,e.start&&(n["start-date"]=!0),e.end&&(n["end-date"]=!0)),n},getMonthOfCell:function(e){var t=this.date.getFullYear();return new Date(t,e,1)},markRange:function(e,t){e=A(e),t=A(t)||e;var n=[Math.min(e,t),Math.max(e,t)];e=n[0],t=n[1];for(var r=this.rows,i=0,o=r.length;i<o;i++)for(var a=r[i],s=0,c=a.length;s<c;s++){var u=a[s],l=4*i+s,d=new Date(this.date.getFullYear(),l).getTime();u.inRange=e&&d>=e&&d<=t,u.start=e&&d===e,u.end=t&&d===t}},handleMouseMove:function(e){if(this.rangeState.selecting){var t=e.target;if("A"===t.tagName&&(t=t.parentNode.parentNode),"DIV"===t.tagName&&(t=t.parentNode),"TD"===t.tagName){var n=t.parentNode.rowIndex,r=t.cellIndex;this.rows[n][r].disabled||n===this.lastRow&&r===this.lastColumn||(this.lastRow=n,this.lastColumn=r,this.$emit("changerange",{minDate:this.minDate,maxDate:this.maxDate,rangeState:{selecting:!0,endDate:this.getMonthOfCell(4*n+r)}}))}}},handleMonthTableClick:function(e){var t=e.target;if("A"===t.tagName&&(t=t.parentNode.parentNode),"DIV"===t.tagName&&(t=t.parentNode),"TD"===t.tagName&&!Object(y["hasClass"])(t,"disabled")){var n=t.cellIndex,r=t.parentNode.rowIndex,i=4*r+n,o=this.getMonthOfCell(i);"range"===this.selectionMode?this.rangeState.selecting?(o>=this.minDate?this.$emit("pick",{minDate:this.minDate,maxDate:o}):this.$emit("pick",{minDate:o,maxDate:this.minDate}),this.rangeState.selecting=!1):(this.$emit("pick",{minDate:o,maxDate:null}),this.rangeState.selecting=!0):this.$emit("pick",i)}}},computed:{rows:function(){for(var e=this,t=this.tableRows,n=this.disabledDate,r=[],i=A(new Date),o=0;o<3;o++)for(var a=t[o],s=function(t){var s=a[t];s||(s={row:o,column:t,type:"normal",inRange:!1,start:!1,end:!1}),s.type="normal";var c=4*o+t,u=new Date(e.date.getFullYear(),c).getTime();s.inRange=u>=A(e.minDate)&&u<=A(e.maxDate),s.start=e.minDate&&u===A(e.minDate),s.end=e.maxDate&&u===A(e.maxDate);var l=u===i;l&&(s.type="today"),s.text=c;var d=new Date(u);s.disabled="function"===typeof n&&n(d),s.selected=Object(_["arrayFind"])(r,(function(e){return e.getTime()===d.getTime()})),e.$set(a,t,s)},c=0;c<4;c++)s(c);return t}}},O=D,R=Object(w["a"])(O,M,T,!1,null,null,null);R.options.__file="packages/date-picker/src/basic/month-table.vue";var L=R.exports,P=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("table",{staticClass:"el-date-table",class:{"is-week-mode":"week"===e.selectionMode},attrs:{cellspacing:"0",cellpadding:"0"},on:{click:e.handleClick,mousemove:e.handleMouseMove}},[n("tbody",[n("tr",[e.showWeekNumber?n("th",[e._v(e._s(e.t("el.datepicker.week")))]):e._e(),e._l(e.WEEKS,(function(t,r){return n("th",{key:r},[e._v(e._s(e.t("el.datepicker.weeks."+t)))])}))],2),e._l(e.rows,(function(t,r){return n("tr",{key:r,staticClass:"el-date-table__row",class:{current:e.isWeekActive(t[1])}},e._l(t,(function(t,r){return n("td",{key:r,class:e.getCellClasses(t)},[n("div",[n("span",[e._v("\n          "+e._s(t.text)+"\n        ")])])])})),0)}))],2)])},N=[];P._withStripped=!0;var U=["sun","mon","tue","wed","thu","fri","sat"],F=function(e){return"number"===typeof e||"string"===typeof e?Object(a["clearTime"])(new Date(e)).getTime():e instanceof Date?Object(a["clearTime"])(e).getTime():NaN},G=function(e,t){var n="function"===typeof t?Object(_["arrayFindIndex"])(e,t):e.indexOf(t);return n>=0?[].concat(e.slice(0,n),e.slice(n+1)):e},V={mixins:[l.a],props:{firstDayOfWeek:{default:7,type:Number,validator:function(e){return e>=1&&e<=7}},value:{},defaultValue:{validator:function(e){return null===e||Object(a["isDate"])(e)||Array.isArray(e)&&e.every(a["isDate"])}},date:{},selectionMode:{default:"day"},showWeekNumber:{type:Boolean,default:!1},disabledDate:{},cellClassName:{},minDate:{},maxDate:{},rangeState:{default:function(){return{endDate:null,selecting:!1}}}},computed:{offsetDay:function(){var e=this.firstDayOfWeek;return e>3?7-e:-e},WEEKS:function(){var e=this.firstDayOfWeek;return U.concat(U).slice(e,e+7)},year:function(){return this.date.getFullYear()},month:function(){return this.date.getMonth()},startDate:function(){return Object(a["getStartDateOfMonth"])(this.year,this.month)},rows:function(){var e=this,t=new Date(this.year,this.month,1),n=Object(a["getFirstDayOfMonth"])(t),r=Object(a["getDayCountOfMonth"])(t.getFullYear(),t.getMonth()),i=Object(a["getDayCountOfMonth"])(t.getFullYear(),0===t.getMonth()?11:t.getMonth()-1);n=0===n?7:n;for(var o=this.offsetDay,s=this.tableRows,c=1,u=this.startDate,l=this.disabledDate,d=this.cellClassName,h="dates"===this.selectionMode?Object(_["coerceTruthyValueToArray"])(this.value):[],f=F(new Date),p=0;p<6;p++){var g=s[p];this.showWeekNumber&&(g[0]||(g[0]={type:"week",text:Object(a["getWeekNumber"])(Object(a["nextDate"])(u,7*p+1))}));for(var m=function(t){var s=g[e.showWeekNumber?t+1:t];s||(s={row:p,column:t,type:"normal",inRange:!1,start:!1,end:!1}),s.type="normal";var m=7*p+t,v=Object(a["nextDate"])(u,m-o).getTime();s.inRange=v>=F(e.minDate)&&v<=F(e.maxDate),s.start=e.minDate&&v===F(e.minDate),s.end=e.maxDate&&v===F(e.maxDate);var y=v===f;if(y&&(s.type="today"),p>=0&&p<=1){var b=n+o<0?7+n+o:n+o;t+7*p>=b?s.text=c++:(s.text=i-(b-t%7)+1+7*p,s.type="prev-month")}else c<=r?s.text=c++:(s.text=c++-r,s.type="next-month");var S=new Date(v);s.disabled="function"===typeof l&&l(S),s.selected=Object(_["arrayFind"])(h,(function(e){return e.getTime()===S.getTime()})),s.customClass="function"===typeof d&&d(S),e.$set(g,e.showWeekNumber?t+1:t,s)},v=0;v<7;v++)m(v);if("week"===this.selectionMode){var y=this.showWeekNumber?1:0,b=this.showWeekNumber?7:6,S=this.isWeekActive(g[y+1]);g[y].inRange=S,g[y].start=S,g[b].inRange=S,g[b].end=S}}return s}},watch:{"rangeState.endDate":function(e){this.markRange(this.minDate,e)},minDate:function(e,t){F(e)!==F(t)&&this.markRange(this.minDate,this.maxDate)},maxDate:function(e,t){F(e)!==F(t)&&this.markRange(this.minDate,this.maxDate)}},data:function(){return{tableRows:[[],[],[],[],[],[]],lastRow:null,lastColumn:null}},methods:{cellMatchesDate:function(e,t){var n=new Date(t);return this.year===n.getFullYear()&&this.month===n.getMonth()&&Number(e.text)===n.getDate()},getCellClasses:function(e){var t=this,n=this.selectionMode,r=this.defaultValue?Array.isArray(this.defaultValue)?this.defaultValue:[this.defaultValue]:[],i=[];return"normal"!==e.type&&"today"!==e.type||e.disabled?i.push(e.type):(i.push("available"),"today"===e.type&&i.push("today")),"normal"===e.type&&r.some((function(n){return t.cellMatchesDate(e,n)}))&&i.push("default"),"day"!==n||"normal"!==e.type&&"today"!==e.type||!this.cellMatchesDate(e,this.value)||i.push("current"),!e.inRange||"normal"!==e.type&&"today"!==e.type&&"week"!==this.selectionMode||(i.push("in-range"),e.start&&i.push("start-date"),e.end&&i.push("end-date")),e.disabled&&i.push("disabled"),e.selected&&i.push("selected"),e.customClass&&i.push(e.customClass),i.join(" ")},getDateOfCell:function(e,t){var n=7*e+(t-(this.showWeekNumber?1:0))-this.offsetDay;return Object(a["nextDate"])(this.startDate,n)},isWeekActive:function(e){if("week"!==this.selectionMode)return!1;var t=new Date(this.year,this.month,1),n=t.getFullYear(),r=t.getMonth();if("prev-month"===e.type&&(t.setMonth(0===r?11:r-1),t.setFullYear(0===r?n-1:n)),"next-month"===e.type&&(t.setMonth(11===r?0:r+1),t.setFullYear(11===r?n+1:n)),t.setDate(parseInt(e.text,10)),Object(a["isDate"])(this.value)){var i=(this.value.getDay()-this.firstDayOfWeek+7)%7-1,o=Object(a["prevDate"])(this.value,i);return o.getTime()===t.getTime()}return!1},markRange:function(e,t){e=F(e),t=F(t)||e;var n=[Math.min(e,t),Math.max(e,t)];e=n[0],t=n[1];for(var r=this.startDate,i=this.rows,o=0,s=i.length;o<s;o++)for(var c=i[o],u=0,l=c.length;u<l;u++)if(!this.showWeekNumber||0!==u){var d=c[u],h=7*o+u+(this.showWeekNumber?-1:0),f=Object(a["nextDate"])(r,h-this.offsetDay).getTime();d.inRange=e&&f>=e&&f<=t,d.start=e&&f===e,d.end=t&&f===t}},handleMouseMove:function(e){if(this.rangeState.selecting){var t=e.target;if("SPAN"===t.tagName&&(t=t.parentNode.parentNode),"DIV"===t.tagName&&(t=t.parentNode),"TD"===t.tagName){var n=t.parentNode.rowIndex-1,r=t.cellIndex;this.rows[n][r].disabled||n===this.lastRow&&r===this.lastColumn||(this.lastRow=n,this.lastColumn=r,this.$emit("changerange",{minDate:this.minDate,maxDate:this.maxDate,rangeState:{selecting:!0,endDate:this.getDateOfCell(n,r)}}))}}},handleClick:function(e){var t=e.target;if("SPAN"===t.tagName&&(t=t.parentNode.parentNode),"DIV"===t.tagName&&(t=t.parentNode),"TD"===t.tagName){var n=t.parentNode.rowIndex-1,r="week"===this.selectionMode?1:t.cellIndex,i=this.rows[n][r];if(!i.disabled&&"week"!==i.type){var o=this.getDateOfCell(n,r);if("range"===this.selectionMode)this.rangeState.selecting?(o>=this.minDate?this.$emit("pick",{minDate:this.minDate,maxDate:o}):this.$emit("pick",{minDate:o,maxDate:this.minDate}),this.rangeState.selecting=!1):(this.$emit("pick",{minDate:o,maxDate:null}),this.rangeState.selecting=!0);else if("day"===this.selectionMode)this.$emit("pick",o);else if("week"===this.selectionMode){var s=Object(a["getWeekNumber"])(o),c=o.getFullYear()+"w"+s;this.$emit("pick",{year:o.getFullYear(),week:s,value:c,date:o})}else if("dates"===this.selectionMode){var u=this.value||[],l=i.selected?G(u,(function(e){return e.getTime()===o.getTime()})):[].concat(u,[o]);this.$emit("pick",l)}}}}}},j=V,B=Object(w["a"])(j,P,N,!1,null,null,null);B.options.__file="packages/date-picker/src/basic/date-table.vue";var z=B.exports,H={mixins:[l.a],directives:{Clickoutside:c.a},watch:{showTime:function(e){var t=this;e&&this.$nextTick((function(e){var n=t.$refs.input.$el;n&&(t.pickerWidth=n.getBoundingClientRect().width+10)}))},value:function(e){"dates"===this.selectionMode&&this.value||(Object(a["isDate"])(e)?this.date=new Date(e):this.date=this.getDefaultValue())},defaultValue:function(e){Object(a["isDate"])(this.value)||(this.date=e?new Date(e):new Date)},timePickerVisible:function(e){var t=this;e&&this.$nextTick((function(){return t.$refs.timepicker.adjustSpinners()}))},selectionMode:function(e){"month"===e?"year"===this.currentView&&"month"===this.currentView||(this.currentView="month"):"dates"===e&&(this.currentView="date")}},methods:{proxyTimePickerDataProperties:function(){var e=this,t=function(t){e.$refs.timepicker.format=t},n=function(t){e.$refs.timepicker.value=t},r=function(t){e.$refs.timepicker.date=t},i=function(t){e.$refs.timepicker.selectableRange=t};this.$watch("value",n),this.$watch("date",r),this.$watch("selectableRange",i),t(this.timeFormat),n(this.value),r(this.date),i(this.selectableRange)},handleClear:function(){this.date=this.getDefaultValue(),this.$emit("pick",null)},emit:function(e){for(var t=this,n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];if(e)if(Array.isArray(e)){var o=e.map((function(e){return t.showTime?Object(a["clearMilliseconds"])(e):Object(a["clearTime"])(e)}));this.$emit.apply(this,["pick",o].concat(r))}else this.$emit.apply(this,["pick",this.showTime?Object(a["clearMilliseconds"])(e):Object(a["clearTime"])(e)].concat(r));else this.$emit.apply(this,["pick",e].concat(r));this.userInputDate=null,this.userInputTime=null},showMonthPicker:function(){this.currentView="month"},showYearPicker:function(){this.currentView="year"},prevMonth:function(){this.date=Object(a["prevMonth"])(this.date)},nextMonth:function(){this.date=Object(a["nextMonth"])(this.date)},prevYear:function(){"year"===this.currentView?this.date=Object(a["prevYear"])(this.date,10):this.date=Object(a["prevYear"])(this.date)},nextYear:function(){"year"===this.currentView?this.date=Object(a["nextYear"])(this.date,10):this.date=Object(a["nextYear"])(this.date)},handleShortcutClick:function(e){e.onClick&&e.onClick(this)},handleTimePick:function(e,t,n){if(Object(a["isDate"])(e)){var r=this.value?Object(a["modifyTime"])(this.value,e.getHours(),e.getMinutes(),e.getSeconds()):Object(a["modifyWithTimeString"])(this.getDefaultValue(),this.defaultTime);this.date=r,this.emit(this.date,!0)}else this.emit(e,!0);n||(this.timePickerVisible=t)},handleTimePickClose:function(){this.timePickerVisible=!1},handleMonthPick:function(e){"month"===this.selectionMode?(this.date=Object(a["modifyDate"])(this.date,this.year,e,1),this.emit(this.date)):(this.date=Object(a["changeYearMonthAndClampDate"])(this.date,this.year,e),this.currentView="date")},handleDatePick:function(e){if("day"===this.selectionMode){var t=this.value?Object(a["modifyDate"])(this.value,e.getFullYear(),e.getMonth(),e.getDate()):Object(a["modifyWithTimeString"])(e,this.defaultTime);this.checkDateWithinRange(t)||(t=Object(a["modifyDate"])(this.selectableRange[0][0],e.getFullYear(),e.getMonth(),e.getDate())),this.date=t,this.emit(this.date,this.showTime)}else"week"===this.selectionMode?this.emit(e.date):"dates"===this.selectionMode&&this.emit(e,!0)},handleYearPick:function(e){"year"===this.selectionMode?(this.date=Object(a["modifyDate"])(this.date,e,0,1),this.emit(this.date)):(this.date=Object(a["changeYearMonthAndClampDate"])(this.date,e,this.month),this.currentView="month")},changeToNow:function(){this.disabledDate&&this.disabledDate(new Date)||!this.checkDateWithinRange(new Date)||(this.date=new Date,this.emit(this.date))},confirm:function(){if("dates"===this.selectionMode)this.emit(this.value);else{var e=this.value?this.value:Object(a["modifyWithTimeString"])(this.getDefaultValue(),this.defaultTime);this.date=new Date(e),this.emit(e)}},resetView:function(){"month"===this.selectionMode?this.currentView="month":"year"===this.selectionMode?this.currentView="year":this.currentView="date"},handleEnter:function(){document.body.addEventListener("keydown",this.handleKeydown)},handleLeave:function(){this.$emit("dodestroy"),document.body.removeEventListener("keydown",this.handleKeydown)},handleKeydown:function(e){var t=e.keyCode,n=[38,40,37,39];this.visible&&!this.timePickerVisible&&(-1!==n.indexOf(t)&&(this.handleKeyControl(t),e.stopPropagation(),e.preventDefault()),13===t&&null===this.userInputDate&&null===this.userInputTime&&this.emit(this.date,!1))},handleKeyControl:function(e){var t={year:{38:-4,40:4,37:-1,39:1,offset:function(e,t){return e.setFullYear(e.getFullYear()+t)}},month:{38:-4,40:4,37:-1,39:1,offset:function(e,t){return e.setMonth(e.getMonth()+t)}},week:{38:-1,40:1,37:-1,39:1,offset:function(e,t){return e.setDate(e.getDate()+7*t)}},day:{38:-7,40:7,37:-1,39:1,offset:function(e,t){return e.setDate(e.getDate()+t)}}},n=this.selectionMode,r=31536e6,i=this.date.getTime(),o=new Date(this.date.getTime());while(Math.abs(i-o.getTime())<=r){var a=t[n];if(a.offset(o,a[e]),"function"!==typeof this.disabledDate||!this.disabledDate(o)){this.date=o,this.$emit("pick",o,!0);break}}},handleVisibleTimeChange:function(e){var t=Object(a["parseDate"])(e,this.timeFormat);t&&this.checkDateWithinRange(t)&&(this.date=Object(a["modifyDate"])(t,this.year,this.month,this.monthDate),this.userInputTime=null,this.$refs.timepicker.value=this.date,this.timePickerVisible=!1,this.emit(this.date,!0))},handleVisibleDateChange:function(e){var t=Object(a["parseDate"])(e,this.dateFormat);if(t){if("function"===typeof this.disabledDate&&this.disabledDate(t))return;this.date=Object(a["modifyTime"])(t,this.date.getHours(),this.date.getMinutes(),this.date.getSeconds()),this.userInputDate=null,this.resetView(),this.emit(this.date,!0)}},isValidValue:function(e){return e&&!isNaN(e)&&("function"!==typeof this.disabledDate||!this.disabledDate(e))&&this.checkDateWithinRange(e)},getDefaultValue:function(){return this.defaultValue?new Date(this.defaultValue):new Date},checkDateWithinRange:function(e){return!(this.selectableRange.length>0)||Object(a["timeWithinRange"])(e,this.selectableRange,this.format||"HH:mm:ss")}},components:{TimePicker:g["a"],YearTable:C,MonthTable:L,DateTable:z,ElInput:h.a,ElButton:p.a},data:function(){return{popperClass:"",date:new Date,value:"",defaultValue:null,defaultTime:null,showTime:!1,selectionMode:"day",shortcuts:"",visible:!1,currentView:"date",disabledDate:"",cellClassName:"",selectableRange:[],firstDayOfWeek:7,showWeekNumber:!1,timePickerVisible:!1,format:"",arrowControl:!1,userInputDate:null,userInputTime:null}},computed:{year:function(){return this.date.getFullYear()},month:function(){return this.date.getMonth()},week:function(){return Object(a["getWeekNumber"])(this.date)},monthDate:function(){return this.date.getDate()},footerVisible:function(){return this.showTime||"dates"===this.selectionMode},visibleTime:function(){return null!==this.userInputTime?this.userInputTime:Object(a["formatDate"])(this.value||this.defaultValue,this.timeFormat)},visibleDate:function(){return null!==this.userInputDate?this.userInputDate:Object(a["formatDate"])(this.value||this.defaultValue,this.dateFormat)},yearLabel:function(){var e=this.t("el.datepicker.year");if("year"===this.currentView){var t=10*Math.floor(this.year/10);return e?t+" "+e+" - "+(t+9)+" "+e:t+" - "+(t+9)}return this.year+" "+e},timeFormat:function(){return this.format?Object(a["extractTimeFormat"])(this.format):"HH:mm:ss"},dateFormat:function(){return this.format?Object(a["extractDateFormat"])(this.format):"yyyy-MM-dd"}}},W=H,q=Object(w["a"])(W,i,o,!1,null,null,null);q.options.__file="packages/date-picker/src/panel/date.vue";var $=q.exports,K=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":function(t){e.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-picker-panel el-date-range-picker el-popper",class:[{"has-sidebar":e.$slots.sidebar||e.shortcuts,"has-time":e.showTime},e.popperClass]},[n("div",{staticClass:"el-picker-panel__body-wrapper"},[e._t("sidebar"),e.shortcuts?n("div",{staticClass:"el-picker-panel__sidebar"},e._l(e.shortcuts,(function(t,r){return n("button",{key:r,staticClass:"el-picker-panel__shortcut",attrs:{type:"button"},on:{click:function(n){e.handleShortcutClick(t)}}},[e._v(e._s(t.text))])})),0):e._e(),n("div",{staticClass:"el-picker-panel__body"},[e.showTime?n("div",{staticClass:"el-date-range-picker__time-header"},[n("span",{staticClass:"el-date-range-picker__editors-wrap"},[n("span",{staticClass:"el-date-range-picker__time-picker-wrap"},[n("el-input",{ref:"minInput",staticClass:"el-date-range-picker__editor",attrs:{size:"small",disabled:e.rangeState.selecting,placeholder:e.t("el.datepicker.startDate"),value:e.minVisibleDate},on:{input:function(t){return e.handleDateInput(t,"min")},change:function(t){return e.handleDateChange(t,"min")}}})],1),n("span",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleMinTimeClose,expression:"handleMinTimeClose"}],staticClass:"el-date-range-picker__time-picker-wrap"},[n("el-input",{staticClass:"el-date-range-picker__editor",attrs:{size:"small",disabled:e.rangeState.selecting,placeholder:e.t("el.datepicker.startTime"),value:e.minVisibleTime},on:{focus:function(t){e.minTimePickerVisible=!0},input:function(t){return e.handleTimeInput(t,"min")},change:function(t){return e.handleTimeChange(t,"min")}}}),n("time-picker",{ref:"minTimePicker",attrs:{"time-arrow-control":e.arrowControl,visible:e.minTimePickerVisible},on:{pick:e.handleMinTimePick,mounted:function(t){e.$refs.minTimePicker.format=e.timeFormat}}})],1)]),n("span",{staticClass:"el-icon-arrow-right"}),n("span",{staticClass:"el-date-range-picker__editors-wrap is-right"},[n("span",{staticClass:"el-date-range-picker__time-picker-wrap"},[n("el-input",{staticClass:"el-date-range-picker__editor",attrs:{size:"small",disabled:e.rangeState.selecting,placeholder:e.t("el.datepicker.endDate"),value:e.maxVisibleDate,readonly:!e.minDate},on:{input:function(t){return e.handleDateInput(t,"max")},change:function(t){return e.handleDateChange(t,"max")}}})],1),n("span",{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:e.handleMaxTimeClose,expression:"handleMaxTimeClose"}],staticClass:"el-date-range-picker__time-picker-wrap"},[n("el-input",{staticClass:"el-date-range-picker__editor",attrs:{size:"small",disabled:e.rangeState.selecting,placeholder:e.t("el.datepicker.endTime"),value:e.maxVisibleTime,readonly:!e.minDate},on:{focus:function(t){e.minDate&&(e.maxTimePickerVisible=!0)},input:function(t){return e.handleTimeInput(t,"max")},change:function(t){return e.handleTimeChange(t,"max")}}}),n("time-picker",{ref:"maxTimePicker",attrs:{"time-arrow-control":e.arrowControl,visible:e.maxTimePickerVisible},on:{pick:e.handleMaxTimePick,mounted:function(t){e.$refs.maxTimePicker.format=e.timeFormat}}})],1)])]):e._e(),n("div",{staticClass:"el-picker-panel__content el-date-range-picker__content is-left"},[n("div",{staticClass:"el-date-range-picker__header"},[n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-left",attrs:{type:"button"},on:{click:e.leftPrevYear}}),n("button",{staticClass:"el-picker-panel__icon-btn el-icon-arrow-left",attrs:{type:"button"},on:{click:e.leftPrevMonth}}),e.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-right",class:{"is-disabled":!e.enableYearArrow},attrs:{type:"button",disabled:!e.enableYearArrow},on:{click:e.leftNextYear}}):e._e(),e.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-arrow-right",class:{"is-disabled":!e.enableMonthArrow},attrs:{type:"button",disabled:!e.enableMonthArrow},on:{click:e.leftNextMonth}}):e._e(),n("div",[e._v(e._s(e.leftLabel))])]),n("date-table",{attrs:{"selection-mode":"range",date:e.leftDate,"default-value":e.defaultValue,"min-date":e.minDate,"max-date":e.maxDate,"range-state":e.rangeState,"disabled-date":e.disabledDate,"cell-class-name":e.cellClassName,"first-day-of-week":e.firstDayOfWeek},on:{changerange:e.handleChangeRange,pick:e.handleRangePick}})],1),n("div",{staticClass:"el-picker-panel__content el-date-range-picker__content is-right"},[n("div",{staticClass:"el-date-range-picker__header"},[e.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-left",class:{"is-disabled":!e.enableYearArrow},attrs:{type:"button",disabled:!e.enableYearArrow},on:{click:e.rightPrevYear}}):e._e(),e.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-arrow-left",class:{"is-disabled":!e.enableMonthArrow},attrs:{type:"button",disabled:!e.enableMonthArrow},on:{click:e.rightPrevMonth}}):e._e(),n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-right",attrs:{type:"button"},on:{click:e.rightNextYear}}),n("button",{staticClass:"el-picker-panel__icon-btn el-icon-arrow-right",attrs:{type:"button"},on:{click:e.rightNextMonth}}),n("div",[e._v(e._s(e.rightLabel))])]),n("date-table",{attrs:{"selection-mode":"range",date:e.rightDate,"default-value":e.defaultValue,"min-date":e.minDate,"max-date":e.maxDate,"range-state":e.rangeState,"disabled-date":e.disabledDate,"cell-class-name":e.cellClassName,"first-day-of-week":e.firstDayOfWeek},on:{changerange:e.handleChangeRange,pick:e.handleRangePick}})],1)])],2),e.showTime?n("div",{staticClass:"el-picker-panel__footer"},[n("el-button",{staticClass:"el-picker-panel__link-btn",attrs:{size:"mini",type:"text"},on:{click:e.handleClear}},[e._v("\n        "+e._s(e.t("el.datepicker.clear"))+"\n      ")]),n("el-button",{staticClass:"el-picker-panel__link-btn",attrs:{plain:"",size:"mini",disabled:e.btnDisabled},on:{click:function(t){e.handleConfirm(!1)}}},[e._v("\n        "+e._s(e.t("el.datepicker.confirm"))+"\n      ")])],1):e._e()])])},Y=[];K._withStripped=!0;var J=function(e){return Array.isArray(e)?[new Date(e[0]),new Date(e[1])]:e?[new Date(e),Object(a["nextDate"])(new Date(e),1)]:[new Date,Object(a["nextDate"])(new Date,1)]},X={mixins:[l.a],directives:{Clickoutside:c.a},computed:{btnDisabled:function(){return!(this.minDate&&this.maxDate&&!this.selecting&&this.isValidValue([this.minDate,this.maxDate]))},leftLabel:function(){return this.leftDate.getFullYear()+" "+this.t("el.datepicker.year")+" "+this.t("el.datepicker.month"+(this.leftDate.getMonth()+1))},rightLabel:function(){return this.rightDate.getFullYear()+" "+this.t("el.datepicker.year")+" "+this.t("el.datepicker.month"+(this.rightDate.getMonth()+1))},leftYear:function(){return this.leftDate.getFullYear()},leftMonth:function(){return this.leftDate.getMonth()},leftMonthDate:function(){return this.leftDate.getDate()},rightYear:function(){return this.rightDate.getFullYear()},rightMonth:function(){return this.rightDate.getMonth()},rightMonthDate:function(){return this.rightDate.getDate()},minVisibleDate:function(){return null!==this.dateUserInput.min?this.dateUserInput.min:this.minDate?Object(a["formatDate"])(this.minDate,this.dateFormat):""},maxVisibleDate:function(){return null!==this.dateUserInput.max?this.dateUserInput.max:this.maxDate||this.minDate?Object(a["formatDate"])(this.maxDate||this.minDate,this.dateFormat):""},minVisibleTime:function(){return null!==this.timeUserInput.min?this.timeUserInput.min:this.minDate?Object(a["formatDate"])(this.minDate,this.timeFormat):""},maxVisibleTime:function(){return null!==this.timeUserInput.max?this.timeUserInput.max:this.maxDate||this.minDate?Object(a["formatDate"])(this.maxDate||this.minDate,this.timeFormat):""},timeFormat:function(){return this.format?Object(a["extractTimeFormat"])(this.format):"HH:mm:ss"},dateFormat:function(){return this.format?Object(a["extractDateFormat"])(this.format):"yyyy-MM-dd"},enableMonthArrow:function(){var e=(this.leftMonth+1)%12,t=this.leftMonth+1>=12?1:0;return this.unlinkPanels&&new Date(this.leftYear+t,e)<new Date(this.rightYear,this.rightMonth)},enableYearArrow:function(){return this.unlinkPanels&&12*this.rightYear+this.rightMonth-(12*this.leftYear+this.leftMonth+1)>=12}},data:function(){return{popperClass:"",value:[],defaultValue:null,defaultTime:null,minDate:"",maxDate:"",leftDate:new Date,rightDate:Object(a["nextMonth"])(new Date),rangeState:{endDate:null,selecting:!1,row:null,column:null},showTime:!1,shortcuts:"",visible:"",disabledDate:"",cellClassName:"",firstDayOfWeek:7,minTimePickerVisible:!1,maxTimePickerVisible:!1,format:"",arrowControl:!1,unlinkPanels:!1,dateUserInput:{min:null,max:null},timeUserInput:{min:null,max:null}}},watch:{minDate:function(e){var t=this;this.dateUserInput.min=null,this.timeUserInput.min=null,this.$nextTick((function(){if(t.$refs.maxTimePicker&&t.maxDate&&t.maxDate<t.minDate){var e="HH:mm:ss";t.$refs.maxTimePicker.selectableRange=[[Object(a["parseDate"])(Object(a["formatDate"])(t.minDate,e),e),Object(a["parseDate"])("23:59:59",e)]]}})),e&&this.$refs.minTimePicker&&(this.$refs.minTimePicker.date=e,this.$refs.minTimePicker.value=e)},maxDate:function(e){this.dateUserInput.max=null,this.timeUserInput.max=null,e&&this.$refs.maxTimePicker&&(this.$refs.maxTimePicker.date=e,this.$refs.maxTimePicker.value=e)},minTimePickerVisible:function(e){var t=this;e&&this.$nextTick((function(){t.$refs.minTimePicker.date=t.minDate,t.$refs.minTimePicker.value=t.minDate,t.$refs.minTimePicker.adjustSpinners()}))},maxTimePickerVisible:function(e){var t=this;e&&this.$nextTick((function(){t.$refs.maxTimePicker.date=t.maxDate,t.$refs.maxTimePicker.value=t.maxDate,t.$refs.maxTimePicker.adjustSpinners()}))},value:function(e){if(e){if(Array.isArray(e))if(this.minDate=Object(a["isDate"])(e[0])?new Date(e[0]):null,this.maxDate=Object(a["isDate"])(e[1])?new Date(e[1]):null,this.minDate)if(this.leftDate=this.minDate,this.unlinkPanels&&this.maxDate){var t=this.minDate.getFullYear(),n=this.minDate.getMonth(),r=this.maxDate.getFullYear(),i=this.maxDate.getMonth();this.rightDate=t===r&&n===i?Object(a["nextMonth"])(this.maxDate):this.maxDate}else this.rightDate=Object(a["nextMonth"])(this.leftDate);else this.leftDate=J(this.defaultValue)[0],this.rightDate=Object(a["nextMonth"])(this.leftDate)}else this.minDate=null,this.maxDate=null},defaultValue:function(e){if(!Array.isArray(this.value)){var t=J(e),n=t[0],r=t[1];this.leftDate=n,this.rightDate=e&&e[1]&&this.unlinkPanels?r:Object(a["nextMonth"])(this.leftDate)}}},methods:{handleClear:function(){this.minDate=null,this.maxDate=null,this.leftDate=J(this.defaultValue)[0],this.rightDate=Object(a["nextMonth"])(this.leftDate),this.$emit("pick",null)},handleChangeRange:function(e){this.minDate=e.minDate,this.maxDate=e.maxDate,this.rangeState=e.rangeState},handleDateInput:function(e,t){if(this.dateUserInput[t]=e,e.length===this.dateFormat.length){var n=Object(a["parseDate"])(e,this.dateFormat);if(n){if("function"===typeof this.disabledDate&&this.disabledDate(new Date(n)))return;"min"===t?(this.minDate=Object(a["modifyDate"])(this.minDate||new Date,n.getFullYear(),n.getMonth(),n.getDate()),this.leftDate=new Date(n),this.unlinkPanels||(this.rightDate=Object(a["nextMonth"])(this.leftDate))):(this.maxDate=Object(a["modifyDate"])(this.maxDate||new Date,n.getFullYear(),n.getMonth(),n.getDate()),this.rightDate=new Date(n),this.unlinkPanels||(this.leftDate=Object(a["prevMonth"])(n)))}}},handleDateChange:function(e,t){var n=Object(a["parseDate"])(e,this.dateFormat);n&&("min"===t?(this.minDate=Object(a["modifyDate"])(this.minDate,n.getFullYear(),n.getMonth(),n.getDate()),this.minDate>this.maxDate&&(this.maxDate=this.minDate)):(this.maxDate=Object(a["modifyDate"])(this.maxDate,n.getFullYear(),n.getMonth(),n.getDate()),this.maxDate<this.minDate&&(this.minDate=this.maxDate)))},handleTimeInput:function(e,t){var n=this;if(this.timeUserInput[t]=e,e.length===this.timeFormat.length){var r=Object(a["parseDate"])(e,this.timeFormat);r&&("min"===t?(this.minDate=Object(a["modifyTime"])(this.minDate,r.getHours(),r.getMinutes(),r.getSeconds()),this.$nextTick((function(e){return n.$refs.minTimePicker.adjustSpinners()}))):(this.maxDate=Object(a["modifyTime"])(this.maxDate,r.getHours(),r.getMinutes(),r.getSeconds()),this.$nextTick((function(e){return n.$refs.maxTimePicker.adjustSpinners()}))))}},handleTimeChange:function(e,t){var n=Object(a["parseDate"])(e,this.timeFormat);n&&("min"===t?(this.minDate=Object(a["modifyTime"])(this.minDate,n.getHours(),n.getMinutes(),n.getSeconds()),this.minDate>this.maxDate&&(this.maxDate=this.minDate),this.$refs.minTimePicker.value=this.minDate,this.minTimePickerVisible=!1):(this.maxDate=Object(a["modifyTime"])(this.maxDate,n.getHours(),n.getMinutes(),n.getSeconds()),this.maxDate<this.minDate&&(this.minDate=this.maxDate),this.$refs.maxTimePicker.value=this.minDate,this.maxTimePickerVisible=!1))},handleRangePick:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this.defaultTime||[],i=Object(a["modifyWithTimeString"])(e.minDate,r[0]),o=Object(a["modifyWithTimeString"])(e.maxDate,r[1]);this.maxDate===o&&this.minDate===i||(this.onPick&&this.onPick(e),this.maxDate=o,this.minDate=i,setTimeout((function(){t.maxDate=o,t.minDate=i}),10),n&&!this.showTime&&this.handleConfirm())},handleShortcutClick:function(e){e.onClick&&e.onClick(this)},handleMinTimePick:function(e,t,n){this.minDate=this.minDate||new Date,e&&(this.minDate=Object(a["modifyTime"])(this.minDate,e.getHours(),e.getMinutes(),e.getSeconds())),n||(this.minTimePickerVisible=t),(!this.maxDate||this.maxDate&&this.maxDate.getTime()<this.minDate.getTime())&&(this.maxDate=new Date(this.minDate))},handleMinTimeClose:function(){this.minTimePickerVisible=!1},handleMaxTimePick:function(e,t,n){this.maxDate&&e&&(this.maxDate=Object(a["modifyTime"])(this.maxDate,e.getHours(),e.getMinutes(),e.getSeconds())),n||(this.maxTimePickerVisible=t),this.maxDate&&this.minDate&&this.minDate.getTime()>this.maxDate.getTime()&&(this.minDate=new Date(this.maxDate))},handleMaxTimeClose:function(){this.maxTimePickerVisible=!1},leftPrevYear:function(){this.leftDate=Object(a["prevYear"])(this.leftDate),this.unlinkPanels||(this.rightDate=Object(a["nextMonth"])(this.leftDate))},leftPrevMonth:function(){this.leftDate=Object(a["prevMonth"])(this.leftDate),this.unlinkPanels||(this.rightDate=Object(a["nextMonth"])(this.leftDate))},rightNextYear:function(){this.unlinkPanels?this.rightDate=Object(a["nextYear"])(this.rightDate):(this.leftDate=Object(a["nextYear"])(this.leftDate),this.rightDate=Object(a["nextMonth"])(this.leftDate))},rightNextMonth:function(){this.unlinkPanels?this.rightDate=Object(a["nextMonth"])(this.rightDate):(this.leftDate=Object(a["nextMonth"])(this.leftDate),this.rightDate=Object(a["nextMonth"])(this.leftDate))},leftNextYear:function(){this.leftDate=Object(a["nextYear"])(this.leftDate)},leftNextMonth:function(){this.leftDate=Object(a["nextMonth"])(this.leftDate)},rightPrevYear:function(){this.rightDate=Object(a["prevYear"])(this.rightDate)},rightPrevMonth:function(){this.rightDate=Object(a["prevMonth"])(this.rightDate)},handleConfirm:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isValidValue([this.minDate,this.maxDate])&&this.$emit("pick",[this.minDate,this.maxDate],e)},isValidValue:function(e){return Array.isArray(e)&&e&&e[0]&&e[1]&&Object(a["isDate"])(e[0])&&Object(a["isDate"])(e[1])&&e[0].getTime()<=e[1].getTime()&&("function"!==typeof this.disabledDate||!this.disabledDate(e[0])&&!this.disabledDate(e[1]))},resetView:function(){this.minDate&&null==this.maxDate&&(this.rangeState.selecting=!1),this.minDate=this.value&&Object(a["isDate"])(this.value[0])?new Date(this.value[0]):null,this.maxDate=this.value&&Object(a["isDate"])(this.value[0])?new Date(this.value[1]):null}},components:{TimePicker:g["a"],DateTable:z,ElInput:h.a,ElButton:p.a}},Z=X,Q=Object(w["a"])(Z,K,Y,!1,null,null,null);Q.options.__file="packages/date-picker/src/panel/date-range.vue";var ee=Q.exports,te=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":function(t){e.$emit("dodestroy")}}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-picker-panel el-date-range-picker el-popper",class:[{"has-sidebar":e.$slots.sidebar||e.shortcuts},e.popperClass]},[n("div",{staticClass:"el-picker-panel__body-wrapper"},[e._t("sidebar"),e.shortcuts?n("div",{staticClass:"el-picker-panel__sidebar"},e._l(e.shortcuts,(function(t,r){return n("button",{key:r,staticClass:"el-picker-panel__shortcut",attrs:{type:"button"},on:{click:function(n){e.handleShortcutClick(t)}}},[e._v(e._s(t.text))])})),0):e._e(),n("div",{staticClass:"el-picker-panel__body"},[n("div",{staticClass:"el-picker-panel__content el-date-range-picker__content is-left"},[n("div",{staticClass:"el-date-range-picker__header"},[n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-left",attrs:{type:"button"},on:{click:e.leftPrevYear}}),e.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-right",class:{"is-disabled":!e.enableYearArrow},attrs:{type:"button",disabled:!e.enableYearArrow},on:{click:e.leftNextYear}}):e._e(),n("div",[e._v(e._s(e.leftLabel))])]),n("month-table",{attrs:{"selection-mode":"range",date:e.leftDate,"default-value":e.defaultValue,"min-date":e.minDate,"max-date":e.maxDate,"range-state":e.rangeState,"disabled-date":e.disabledDate},on:{changerange:e.handleChangeRange,pick:e.handleRangePick}})],1),n("div",{staticClass:"el-picker-panel__content el-date-range-picker__content is-right"},[n("div",{staticClass:"el-date-range-picker__header"},[e.unlinkPanels?n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-left",class:{"is-disabled":!e.enableYearArrow},attrs:{type:"button",disabled:!e.enableYearArrow},on:{click:e.rightPrevYear}}):e._e(),n("button",{staticClass:"el-picker-panel__icon-btn el-icon-d-arrow-right",attrs:{type:"button"},on:{click:e.rightNextYear}}),n("div",[e._v(e._s(e.rightLabel))])]),n("month-table",{attrs:{"selection-mode":"range",date:e.rightDate,"default-value":e.defaultValue,"min-date":e.minDate,"max-date":e.maxDate,"range-state":e.rangeState,"disabled-date":e.disabledDate},on:{changerange:e.handleChangeRange,pick:e.handleRangePick}})],1)])],2)])])},ne=[];te._withStripped=!0;var re=function(e){return Array.isArray(e)?[new Date(e[0]),new Date(e[1])]:e?[new Date(e),Object(a["nextMonth"])(new Date(e))]:[new Date,Object(a["nextMonth"])(new Date)]},ie={mixins:[l.a],directives:{Clickoutside:c.a},computed:{btnDisabled:function(){return!(this.minDate&&this.maxDate&&!this.selecting&&this.isValidValue([this.minDate,this.maxDate]))},leftLabel:function(){return this.leftDate.getFullYear()+" "+this.t("el.datepicker.year")},rightLabel:function(){return this.rightDate.getFullYear()+" "+this.t("el.datepicker.year")},leftYear:function(){return this.leftDate.getFullYear()},rightYear:function(){return this.rightDate.getFullYear()===this.leftDate.getFullYear()?this.leftDate.getFullYear()+1:this.rightDate.getFullYear()},enableYearArrow:function(){return this.unlinkPanels&&this.rightYear>this.leftYear+1}},data:function(){return{popperClass:"",value:[],defaultValue:null,defaultTime:null,minDate:"",maxDate:"",leftDate:new Date,rightDate:Object(a["nextYear"])(new Date),rangeState:{endDate:null,selecting:!1,row:null,column:null},shortcuts:"",visible:"",disabledDate:"",format:"",arrowControl:!1,unlinkPanels:!1}},watch:{value:function(e){if(e){if(Array.isArray(e))if(this.minDate=Object(a["isDate"])(e[0])?new Date(e[0]):null,this.maxDate=Object(a["isDate"])(e[1])?new Date(e[1]):null,this.minDate)if(this.leftDate=this.minDate,this.unlinkPanels&&this.maxDate){var t=this.minDate.getFullYear(),n=this.maxDate.getFullYear();this.rightDate=t===n?Object(a["nextYear"])(this.maxDate):this.maxDate}else this.rightDate=Object(a["nextYear"])(this.leftDate);else this.leftDate=re(this.defaultValue)[0],this.rightDate=Object(a["nextYear"])(this.leftDate)}else this.minDate=null,this.maxDate=null},defaultValue:function(e){if(!Array.isArray(this.value)){var t=re(e),n=t[0],r=t[1];this.leftDate=n,this.rightDate=e&&e[1]&&n.getFullYear()!==r.getFullYear()&&this.unlinkPanels?r:Object(a["nextYear"])(this.leftDate)}}},methods:{handleClear:function(){this.minDate=null,this.maxDate=null,this.leftDate=re(this.defaultValue)[0],this.rightDate=Object(a["nextYear"])(this.leftDate),this.$emit("pick",null)},handleChangeRange:function(e){this.minDate=e.minDate,this.maxDate=e.maxDate,this.rangeState=e.rangeState},handleRangePick:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this.defaultTime||[],i=Object(a["modifyWithTimeString"])(e.minDate,r[0]),o=Object(a["modifyWithTimeString"])(e.maxDate,r[1]);this.maxDate===o&&this.minDate===i||(this.onPick&&this.onPick(e),this.maxDate=o,this.minDate=i,setTimeout((function(){t.maxDate=o,t.minDate=i}),10),n&&this.handleConfirm())},handleShortcutClick:function(e){e.onClick&&e.onClick(this)},leftPrevYear:function(){this.leftDate=Object(a["prevYear"])(this.leftDate),this.unlinkPanels||(this.rightDate=Object(a["prevYear"])(this.rightDate))},rightNextYear:function(){this.unlinkPanels||(this.leftDate=Object(a["nextYear"])(this.leftDate)),this.rightDate=Object(a["nextYear"])(this.rightDate)},leftNextYear:function(){this.leftDate=Object(a["nextYear"])(this.leftDate)},rightPrevYear:function(){this.rightDate=Object(a["prevYear"])(this.rightDate)},handleConfirm:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isValidValue([this.minDate,this.maxDate])&&this.$emit("pick",[this.minDate,this.maxDate],e)},isValidValue:function(e){return Array.isArray(e)&&e&&e[0]&&e[1]&&Object(a["isDate"])(e[0])&&Object(a["isDate"])(e[1])&&e[0].getTime()<=e[1].getTime()&&("function"!==typeof this.disabledDate||!this.disabledDate(e[0])&&!this.disabledDate(e[1]))},resetView:function(){this.minDate=this.value&&Object(a["isDate"])(this.value[0])?new Date(this.value[0]):null,this.maxDate=this.value&&Object(a["isDate"])(this.value[0])?new Date(this.value[1]):null}},components:{MonthTable:L,ElInput:h.a,ElButton:p.a}},oe=ie,ae=Object(w["a"])(oe,te,ne,!1,null,null,null);ae.options.__file="packages/date-picker/src/panel/month-range.vue";var se=ae.exports,ce=function(e){return"daterange"===e||"datetimerange"===e?ee:"monthrange"===e?se:$},ue={mixins:[r["a"]],name:"ElDatePicker",props:{type:{type:String,default:"date"},timeArrowControl:Boolean},watch:{type:function(e){this.picker?(this.unmountPicker(),this.panel=ce(e),this.mountPicker()):this.panel=ce(e)}},created:function(){this.panel=ce(this.type)},install:function(e){e.component(ue.name,ue)}};t["default"]=ue}])},c280:function(e,t,n){},c2be:function(e,t,n){var r=n("2306"),i=r.extendShape,o=i({type:"sausage",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r0||0,0),o=Math.max(t.r,0),a=.5*(o-i),s=i+a,c=t.startAngle,u=t.endAngle,l=t.clockwise,d=Math.cos(c),h=Math.sin(c),f=Math.cos(u),p=Math.sin(u),g=l?u-c<2*Math.PI:c-u<2*Math.PI;g&&(e.moveTo(d*i+n,h*i+r),e.arc(d*s+n,h*s+r,a,-Math.PI+c,c,!l)),e.arc(n,r,o,c,u,!l),e.moveTo(f*o+n,p*o+r),e.arc(f*s+n,p*s+r,a,u-2*Math.PI,u-Math.PI,!l),0!==i&&(e.arc(n,r,i,u,c,l),e.moveTo(d*i+n,p*i+r)),e.closePath()}});e.exports=o},c2ca:function(e,t,n){},c2dd:function(e,t,n){var r=n("3eba"),i=n("6d8b"),o=n("fc82"),a=n("10cc"),s=a.layoutCovers,c=r.extendComponentView({type:"brush",init:function(e,t){this.ecModel=e,this.api=t,this.model,(this._brushController=new o(t.getZr())).on("brush",i.bind(this._onBrush,this)).mount()},render:function(e){return this.model=e,u.apply(this,arguments)},updateTransform:function(e,t){return s(t),u.apply(this,arguments)},updateView:u,dispose:function(){this._brushController.dispose()},_onBrush:function(e,t){var n=this.model.id;this.model.brushTargetManager.setOutputRanges(e,this.ecModel),(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:i.clone(e),$from:n}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:i.clone(e),$from:n})}});function u(e,t,n,r){(!r||r.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(n)).enableBrush(e.brushOption).updateCovers(e.areas.slice())}e.exports=c},c345:function(e,t,n){"use strict";var r=n("c532"),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,a={};return e?(r.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(a[t]&&i.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},c401:function(e,t,n){"use strict";var r=n("c532"),i=n("2444");e.exports=function(e,t,n){var o=this||i;return r.forEach(n,(function(n){e=n.call(o,e,t)})),e}},c423:function(e,t,n){},c430:function(e,t){e.exports=!1},c4a3:function(e,t){function n(e,t){this.getAllNames=function(){var e=t();return e.mapArray(e.getName)},this.containName=function(e){var n=t();return n.indexOfName(e)>=0},this.indexOfName=function(t){var n=e();return n.indexOfName(t)},this.getItemVisual=function(t,n){var r=e();return r.getItemVisual(t,n)}}var r=n;e.exports=r},c515:function(e,t,n){n("849b"),n("8459"),n("b006")},c526:function(e,t){var n={axisPointer:1,tooltip:1,brush:1};function r(e,t,r){var i=t.getComponentByElement(e.topTarget),o=i&&i.coordinateSystem;return i&&i!==r&&!n[i.mainType]&&o&&o.model!==r}t.onIrrelevantElement=r},c532:function(e,t,n){"use strict";var r=n("1d2b"),i=Object.prototype.toString;function o(e){return Array.isArray(e)}function a(e){return"undefined"===typeof e}function s(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function c(e){return"[object ArrayBuffer]"===i.call(e)}function u(e){return"[object FormData]"===i.call(e)}function l(e){var t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&c(e.buffer),t}function d(e){return"string"===typeof e}function h(e){return"number"===typeof e}function f(e){return null!==e&&"object"===typeof e}function p(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function g(e){return"[object Date]"===i.call(e)}function m(e){return"[object File]"===i.call(e)}function v(e){return"[object Blob]"===i.call(e)}function y(e){return"[object Function]"===i.call(e)}function _(e){return f(e)&&y(e.pipe)}function b(e){return"[object URLSearchParams]"===i.call(e)}function S(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function x(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function w(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),o(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}function I(){var e={};function t(t,n){p(e[n])&&p(t)?e[n]=I(e[n],t):p(t)?e[n]=I({},t):o(t)?e[n]=t.slice():e[n]=t}for(var n=0,r=arguments.length;n<r;n++)w(arguments[n],t);return e}function C(e,t,n){return w(t,(function(t,i){e[i]=n&&"function"===typeof t?r(t,n):t})),e}function M(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}e.exports={isArray:o,isArrayBuffer:c,isBuffer:s,isFormData:u,isArrayBufferView:l,isString:d,isNumber:h,isObject:f,isPlainObject:p,isUndefined:a,isDate:g,isFile:m,isBlob:v,isFunction:y,isStream:_,isURLSearchParams:b,isStandardBrowserEnv:x,forEach:w,merge:I,extend:C,trim:S,stripBOM:M}},c533:function(e,t){var n=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],r={color:n,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],n]};e.exports=r},c607:function(e,t,n){var r=n("da84"),i=n("83ab"),o=n("fce3"),a=n("c6b6"),s=n("9bf2").f,c=n("69f3").get,u=RegExp.prototype,l=r.TypeError;i&&o&&s(u,"dotAll",{configurable:!0,get:function(){if(this!==u){if("RegExp"===a(this))return!!c(this).dotAll;throw l("Incompatible receiver, RegExp required")}}})},c62c:function(e,t,n){var r=n("6d8b"),i=n("6cb7"),o=n("9e47"),a=n("2023"),s=i.extend({type:"singleAxis",layoutMode:"box",axis:null,coordinateSystem:null,getCoordSysModel:function(){return this}}),c={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}};function u(e,t){return t.type||(t.data?"category":"value")}r.merge(s.prototype,a),o("single",s,u,c);var l=s;e.exports=l},c65b:function(e,t,n){var r=n("40d5"),i=Function.prototype.call;e.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},c6b6:function(e,t,n){var r=n("e330"),i=r({}.toString),o=r("".slice);e.exports=function(e){return o(i(e),8,-1)}},c6cd:function(e,t,n){var r=n("da84"),i=n("ce4e"),o="__core-js_shared__",a=r[o]||i(o,{});e.exports=a},c740:function(e,t,n){"use strict";var r=n("23e7"),i=n("b727").findIndex,o=n("44d2"),a="findIndex",s=!0;a in[]&&Array(1)[a]((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o(a)},c770:function(e,t,n){var r=n("e330"),i=r("".replace),o=function(e){return String(Error(e).stack)}("zxcasd"),a=/\n\s*at [^:]*:[^\n]*/,s=a.test(o);e.exports=function(e,t){if(s&&"string"==typeof e)while(t--)e=i(e,a,"");return e}},c775:function(e,t,n){var r=n("2b17"),i=r.retrieveRawValue;function o(e,t){var n=e.mapDimension("defaultedLabel",!0),r=n.length;if(1===r)return i(e,t,n[0]);if(r){for(var o=[],a=0;a<n.length;a++){var s=i(e,t,n[a]);o.push(s)}return o.join(" ")}}t.getDefaultLabel=o},c7a2:function(e,t,n){var r=n("cbe5"),i=n("5693"),o=n("9cf9"),a=o.subPixelOptimizeRect,s={},c=r.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(e,t){var n,r,o,c;this.subPixelOptimize?(a(s,t,this.style),n=s.x,r=s.y,o=s.width,c=s.height,s.r=t.r,t=s):(n=t.x,r=t.y,o=t.width,c=t.height),t.r?i.buildPath(e,t):e.rect(n,r,o,c),e.closePath()}});e.exports=c},c7c8:function(e,t,n){},c8af:function(e,t,n){"use strict";var r=n("c532");e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},c8d2:function(e,t,n){var r=n("5e77").PROPER,i=n("d039"),o=n("5899"),a="​…᠎";e.exports=function(e){return i((function(){return!!o[e]()||a[e]()!==a||r&&o[e].name!==e}))}},c8ef:function(e,t,n){var r=n("6d8b"),i=n("a15a"),o=i.createSymbol,a=n("2306"),s=a.Group,c=n("3842"),u=c.parsePercent,l=n("1418"),d=3;function h(e){return r.isArray(e)||(e=[+e,+e]),e}function f(e,t){var n=t.rippleEffectColor||t.color;e.eachChild((function(e){e.attr({z:t.z,zlevel:t.zlevel,style:{stroke:"stroke"===t.brushType?n:null,fill:"fill"===t.brushType?n:null}})}))}function p(e,t){s.call(this);var n=new l(e,t),r=new s;this.add(n),this.add(r),r.beforeUpdate=function(){this.attr(n.getScale())},this.updateData(e,t)}var g=p.prototype;g.stopEffectAnimation=function(){this.childAt(1).removeAll()},g.startEffectAnimation=function(e){for(var t=e.symbolType,n=e.color,r=this.childAt(1),i=0;i<d;i++){var a=o(t,-1,-1,2,2,n);a.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scale:[.5,.5]});var s=-i/d*e.period+e.effectOffset;a.animate("",!0).when(e.period,{scale:[e.rippleScale/2,e.rippleScale/2]}).delay(s).start(),a.animateStyle(!0).when(e.period,{opacity:0}).delay(s).start(),r.add(a)}f(r,e)},g.updateEffectAnimation=function(e){for(var t=this._effectCfg,n=this.childAt(1),r=["symbolType","period","rippleScale"],i=0;i<r.length;i++){var o=r[i];if(t[o]!==e[o])return this.stopEffectAnimation(),void this.startEffectAnimation(e)}f(n,e)},g.highlight=function(){this.trigger("emphasis")},g.downplay=function(){this.trigger("normal")},g.updateData=function(e,t){var n=e.hostModel;this.childAt(0).updateData(e,t);var r=this.childAt(1),i=e.getItemModel(t),o=e.getItemVisual(t,"symbol"),a=h(e.getItemVisual(t,"symbolSize")),s=e.getItemVisual(t,"color");r.attr("scale",a),r.traverse((function(e){e.attr({fill:s})}));var c=i.getShallow("symbolOffset");if(c){var l=r.position;l[0]=u(c[0],a[0]),l[1]=u(c[1],a[1])}var d=e.getItemVisual(t,"symbolRotate");r.rotation=(d||0)*Math.PI/180||0;var f={};if(f.showEffectOn=n.get("showEffectOn"),f.rippleScale=i.get("rippleEffect.scale"),f.brushType=i.get("rippleEffect.brushType"),f.period=1e3*i.get("rippleEffect.period"),f.effectOffset=t/e.count(),f.z=i.getShallow("z")||0,f.zlevel=i.getShallow("zlevel")||0,f.symbolType=o,f.color=s,f.rippleEffectColor=i.get("rippleEffect.color"),this.off("mouseover").off("mouseout").off("emphasis").off("normal"),"render"===f.showEffectOn)this._effectCfg?this.updateEffectAnimation(f):this.startEffectAnimation(f),this._effectCfg=f;else{this._effectCfg=null,this.stopEffectAnimation();var p=this.childAt(0),g=function(){p.highlight(),"render"!==f.showEffectOn&&this.startEffectAnimation(f)},m=function(){p.downplay(),"render"!==f.showEffectOn&&this.stopEffectAnimation()};this.on("mouseover",g,this).on("mouseout",m,this).on("emphasis",g,this).on("normal",m,this)}this._effectCfg=f},g.fadeOut=function(e){this.off("mouseover").off("mouseout").off("emphasis").off("normal"),e&&e()},r.inherits(p,s);var m=p;e.exports=m},c92f:function(e,t,n){var r=n("3041"),i=r.parseSVG,o=r.makeViewBoxTransform,a=n("e1fc"),s=n("c7a2"),c=n("6d8b"),u=c.assert,l=c.createHashMap,d=n("9850"),h=n("e0d3"),f=h.makeInner,p=f(),g={load:function(e,t){var n=p(t).originRoot;if(n)return{root:n,boundingRect:p(t).boundingRect};var r=m(t);return p(t).originRoot=r.root,p(t).boundingRect=r.boundingRect,r},makeGraphic:function(e,t,n){var r=p(t),i=r.rootMap||(r.rootMap=l()),o=i.get(n);if(o)return o;var a=r.originRoot,s=r.boundingRect;return r.originRootHostKey?o=m(t,s).root:(r.originRootHostKey=n,o=a),i.set(n,o)},removeGraphic:function(e,t,n){var r=p(t),i=r.rootMap;i&&i.removeKey(n),n===r.originRootHostKey&&(r.originRootHostKey=null)}};function m(e,t){var n,r,c=e.svgXML;try{n=c&&i(c,{ignoreViewBox:!0,ignoreRootClip:!0})||{},r=n.root,u(null!=r)}catch(m){throw new Error("Invalid svg format\n"+m.message)}var l=n.width,h=n.height,f=n.viewBoxRect;if(t||(t=null==l||null==h?r.getBoundingRect():new d(0,0,0,0),null!=l&&(t.width=l),null!=h&&(t.height=h)),f){var p=o(f,t.width,t.height),g=r;r=new a,r.add(g),g.scale=p.scale,g.position=p.position}return r.setClipPath(new s({shape:t.plain()})),{root:r,boundingRect:t}}e.exports=g},c930:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.yAxisConfig=t.xAxisConfig=void 0;var r={name:"",show:!0,position:"bottom",nameGap:15,nameLocation:"end",nameTextStyle:{fill:"#333",fontSize:10},min:"20%",max:"20%",interval:null,minInterval:null,maxInterval:null,boundaryGap:null,splitNumber:5,axisLine:{show:!0,style:{stroke:"#333",lineWidth:1}},axisTick:{show:!0,style:{stroke:"#333",lineWidth:1}},axisLabel:{show:!0,formatter:null,style:{fill:"#333",fontSize:10,rotate:0}},splitLine:{show:!1,style:{stroke:"#d4d4d4",lineWidth:1}},rLevel:-20,animationCurve:"easeOutCubic",animationFrame:50};t.xAxisConfig=r;var i={name:"",show:!0,position:"left",nameGap:15,nameLocation:"end",nameTextStyle:{fill:"#333",fontSize:10},min:"20%",max:"20%",interval:null,minInterval:null,maxInterval:null,boundaryGap:null,splitNumber:5,axisLine:{show:!0,style:{stroke:"#333",lineWidth:1}},axisTick:{show:!0,style:{stroke:"#333",lineWidth:1}},axisLabel:{show:!0,formatter:null,style:{fill:"#333",fontSize:10,rotate:0}},splitLine:{show:!0,style:{stroke:"#d4d4d4",lineWidth:1}},rLevel:-20,animationCurve:"easeOutCubic",animationFrame:50};t.yAxisConfig=i},c965:function(e,t,n){var r=n("2306"),i=n("a15a"),o=i.createSymbol,a=n("392f"),s=4,c=r.extendShape({shape:{points:null},symbolProxy:null,softClipShape:null,buildPath:function(e,t){var n=t.points,r=t.size,i=this.symbolProxy,o=i.shape,a=e.getContext?e.getContext():e,c=a&&r[0]<s;if(!c)for(var u=0;u<n.length;){var l=n[u++],d=n[u++];isNaN(l)||isNaN(d)||(this.softClipShape&&!this.softClipShape.contain(l,d)||(o.x=l-r[0]/2,o.y=d-r[1]/2,o.width=r[0],o.height=r[1],i.buildPath(e,o,!0)))}},afterBrush:function(e){var t=this.shape,n=t.points,r=t.size,i=r[0]<s;if(i){this.setTransform(e);for(var o=0;o<n.length;){var a=n[o++],c=n[o++];isNaN(a)||isNaN(c)||(this.softClipShape&&!this.softClipShape.contain(a,c)||e.fillRect(a-r[0]/2,c-r[1]/2,r[0],r[1]))}this.restoreTransform(e)}},findDataIndex:function(e,t){for(var n=this.shape,r=n.points,i=n.size,o=Math.max(i[0],4),a=Math.max(i[1],4),s=r.length/2-1;s>=0;s--){var c=2*s,u=r[c]-o/2,l=r[c+1]-a/2;if(e>=u&&t>=l&&e<=u+o&&t<=l+a)return s}return-1}});function u(){this.group=new r.Group}var l=u.prototype;l.isPersistent=function(){return!this._incremental},l.updateData=function(e,t){this.group.removeAll();var n=new c({rectHover:!0,cursor:"default"});n.setShape({points:e.getLayout("symbolPoints")}),this._setCommon(n,e,!1,t),this.group.add(n),this._incremental=null},l.updateLayout=function(e){if(!this._incremental){var t=e.getLayout("symbolPoints");this.group.eachChild((function(e){if(null!=e.startIndex){var n=2*(e.endIndex-e.startIndex),r=4*e.startIndex*2;t=new Float32Array(t.buffer,r,n)}e.setShape("points",t)}))}},l.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clearIncremental(),e.count()>2e6?(this._incremental||(this._incremental=new a({silent:!0})),this.group.add(this._incremental)):this._incremental=null},l.incrementalUpdate=function(e,t,n){var r;this._incremental?(r=new c,this._incremental.addDisplayable(r,!0)):(r=new c({rectHover:!0,cursor:"default",startIndex:e.start,endIndex:e.end}),r.incremental=!0,this.group.add(r)),r.setShape({points:t.getLayout("symbolPoints")}),this._setCommon(r,t,!!this._incremental,n)},l._setCommon=function(e,t,n,r){var i=t.hostModel;r=r||{};var a=t.getVisual("symbolSize");e.setShape("size",a instanceof Array?a:[a,a]),e.softClipShape=r.clipShape||null,e.symbolProxy=o(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var c=e.shape.size[0]<s;e.useStyle(i.getModel("itemStyle").getItemStyle(c?["color","shadowBlur","shadowColor"]:["color"]));var u=t.getVisual("color");u&&e.setColor(u),n||(e.seriesIndex=i.seriesIndex,e.on("mousemove",(function(t){e.dataIndex=null;var n=e.findDataIndex(t.offsetX,t.offsetY);n>=0&&(e.dataIndex=n+(e.startIndex||0))})))},l.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},l._clearIncremental=function(){var e=this._incremental;e&&e.clearDisplaybles()};var d=u;e.exports=d},c973:function(e,t,n){function r(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var a=e.apply(t,n);function s(e){r(a,i,o,s,c,"next",e)}function c(e){r(a,i,o,s,c,"throw",e)}s(void 0)}))}}n("d3b7"),e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},ca29:function(e,t,n){var r=n("6d9a"),i=r.eachAfter,o=r.eachBefore,a=n("22da"),s=a.init,c=a.firstWalk,u=a.secondWalk,l=a.separation,d=a.radialCoordinate,h=a.getViewRect;function f(e,t){e.eachSeriesByType("tree",(function(e){p(e,t)}))}function p(e,t){var n=h(e,t);e.layoutInfo=n;var r=e.get("layout"),a=0,f=0,p=null;"radial"===r?(a=2*Math.PI,f=Math.min(n.height,n.width)/2,p=l((function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth}))):(a=n.width,f=n.height,p=l());var g=e.getData().tree.root,m=g.children[0];if(m){s(g),i(m,c,p),g.hierNode.modifier=-m.hierNode.prelim,o(m,u);var v=m,y=m,_=m;o(m,(function(e){var t=e.getLayout().x;t<v.getLayout().x&&(v=e),t>y.getLayout().x&&(y=e),e.depth>_.depth&&(_=e)}));var b=v===y?1:p(v,y)/2,S=b-v.getLayout().x,x=0,w=0,I=0,C=0;if("radial"===r)x=a/(y.getLayout().x+b+S),w=f/(_.depth-1||1),o(m,(function(e){I=(e.getLayout().x+S)*x,C=(e.depth-1)*w;var t=d(I,C);e.setLayout({x:t.x,y:t.y,rawX:I,rawY:C},!0)}));else{var M=e.getOrient();"RL"===M||"LR"===M?(w=f/(y.getLayout().x+b+S),x=a/(_.depth-1||1),o(m,(function(e){C=(e.getLayout().x+S)*w,I="LR"===M?(e.depth-1)*x:a-(e.depth-1)*x,e.setLayout({x:I,y:C},!0)}))):"TB"!==M&&"BT"!==M||(x=a/(y.getLayout().x+b+S),w=f/(_.depth-1||1),o(m,(function(e){I=(e.getLayout().x+S)*x,C="TB"===M?(e.depth-1)*w:f-(e.depth-1)*w,e.setLayout({x:I,y:C},!0)})))}}}e.exports=f},ca84:function(e,t,n){var r=n("e330"),i=n("1a2d"),o=n("fc6a"),a=n("4d64").indexOf,s=n("d012"),c=r([].push);e.exports=function(e,t){var n,r=o(e),u=0,l=[];for(n in r)!i(s,n)&&i(r,n)&&c(l,n);while(t.length>u)i(r,n=t[u++])&&(~a(l,n)||c(l,n));return l}},ca91:function(e,t,n){"use strict";var r=n("ebb5"),i=n("d58f").left,o=r.aTypedArray,a=r.exportTypedArrayMethod;a("reduce",(function(e){var t=arguments.length;return i(o(this),e,t,t>1?arguments[1]:void 0)}))},ca98:function(e,t,n){var r=n("6d8b"),i=n("e0d3"),o=n("6cb7"),a=r.each,s=r.clone,c=r.map,u=r.merge,l=/^(min|max)?(.+)$/;function d(e){this._api=e,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}function h(e,t,n){var i,o,s=[],c=[],u=e.timeline;if(e.baseOption&&(o=e.baseOption),(u||e.options)&&(o=o||{},s=(e.options||[]).slice()),e.media){o=o||{};var l=e.media;a(l,(function(e){e&&e.option&&(e.query?c.push(e):i||(i=e))}))}return o||(o=e),o.timeline||(o.timeline=u),a([o].concat(s).concat(r.map(c,(function(e){return e.option}))),(function(e){a(t,(function(t){t(e,n)}))})),{baseOption:o,timelineOptions:s,mediaDefault:i,mediaList:c}}function f(e,t,n){var i={width:t,height:n,aspectratio:t/n},o=!0;return r.each(e,(function(e,t){var n=t.match(l);if(n&&n[1]&&n[2]){var r=n[1],a=n[2].toLowerCase();p(i[a],e,r)||(o=!1)}})),o}function p(e,t,n){return"min"===n?e>=t:"max"===n?e<=t:e===t}function g(e,t){return e.join(",")===t.join(",")}function m(e,t){t=t||{},a(t,(function(t,n){if(null!=t){var r=e[n];if(o.hasClass(n)){t=i.normalizeToArray(t),r=i.normalizeToArray(r);var a=i.mappingToExists(r,t);e[n]=c(a,(function(e){return e.option&&e.exist?u(e.exist,e.option,!0):e.exist||e.option}))}else e[n]=u(r,t,!0)}}))}d.prototype={constructor:d,setOption:function(e,t){e&&r.each(i.normalizeToArray(e.series),(function(e){e&&e.data&&r.isTypedArray(e.data)&&r.setAsPrimitive(e.data)})),e=s(e);var n=this._optionBackup,o=h.call(this,e,t,!n);this._newBaseOption=o.baseOption,n?(m(n.baseOption,o.baseOption),o.timelineOptions.length&&(n.timelineOptions=o.timelineOptions),o.mediaList.length&&(n.mediaList=o.mediaList),o.mediaDefault&&(n.mediaDefault=o.mediaDefault)):this._optionBackup=o},mountOption:function(e){var t=this._optionBackup;return this._timelineOptions=c(t.timelineOptions,s),this._mediaList=c(t.mediaList,s),this._mediaDefault=s(t.mediaDefault),this._currentMediaIndices=[],s(e?t.baseOption:this._newBaseOption)},getTimelineOption:function(e){var t,n=this._timelineOptions;if(n.length){var r=e.getComponent("timeline");r&&(t=s(n[r.getCurrentIndex()],!0))}return t},getMediaOption:function(e){var t=this._api.getWidth(),n=this._api.getHeight(),r=this._mediaList,i=this._mediaDefault,o=[],a=[];if(!r.length&&!i)return a;for(var u=0,l=r.length;u<l;u++)f(r[u].query,t,n)&&o.push(u);return!o.length&&i&&(o=[-1]),o.length&&!g(o,this._currentMediaIndices)&&(a=c(o,(function(e){return s(-1===e?i.option:r[e].option)}))),this._currentMediaIndices=o,a}};var v=d;e.exports=v},caad:function(e,t,n){"use strict";var r=n("23e7"),i=n("4d64").includes,o=n("44d2");r({target:"Array",proto:!0},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("includes")},cb11:function(e,t,n){var r=n("cbe5"),i=n("9cf9"),o=i.subPixelOptimizeLine,a={},s=r.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(e,t){var n,r,i,s;this.subPixelOptimize?(o(a,t,this.style),n=a.x1,r=a.y1,i=a.x2,s=a.y2):(n=t.x1,r=t.y1,i=t.x2,s=t.y2);var c=t.percent;0!==c&&(e.moveTo(n,r),c<1&&(i=n*(1-c)+i*c,s=r*(1-c)+s*c),e.lineTo(i,s))},pointAt:function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]}});e.exports=s},cb29:function(e,t,n){var r=n("23e7"),i=n("81d5"),o=n("44d2");r({target:"Array",proto:!0},{fill:i}),o("fill")},cb69:function(e,t,n){var r=n("3301"),i=n("4f85"),o=i.extend({type:"series.scatter",dependencies:["grid","polar","geo","singleAxis","calendar"],getInitialData:function(e,t){return r(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",getProgressive:function(){var e=this.option.progressive;return null==e?this.option.large?5e3:this.get("progressive"):e},getProgressiveThreshold:function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?1e4:this.get("progressiveThreshold"):e},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},clip:!0}});e.exports=o},cb6d:function(e,t){function n(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this)}function r(e,t){return{target:e,topTarget:t&&t.topTarget}}n.prototype={constructor:n,_dragStart:function(e){var t=e.target;while(t&&!t.draggable)t=t.parent;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.dispatchToElement(r(t,e),"dragstart",e.event))},_drag:function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,i=e.offsetY,o=n-this._x,a=i-this._y;this._x=n,this._y=i,t.drift(o,a,e),this.dispatchToElement(r(t,e),"drag",e.event);var s=this.findHover(n,i,t).target,c=this._dropTarget;this._dropTarget=s,t!==s&&(c&&s!==c&&this.dispatchToElement(r(c,e),"dragleave",e.event),s&&s!==c&&this.dispatchToElement(r(s,e),"dragenter",e.event))}},_dragEnd:function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.dispatchToElement(r(t,e),"dragend",e.event),this._dropTarget&&this.dispatchToElement(r(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null}};var i=n;e.exports=i},cb70:function(e,t,n){},cb73:function(e,t,n){var r=n("3842"),i=r.parsePercent,o=n("6d8b"),a=Math.PI/180;function s(e,t,n,r){t.eachSeriesByType(e,(function(e){var t=e.get("center"),r=e.get("radius");o.isArray(r)||(r=[0,r]),o.isArray(t)||(t=[t,t]);var s=n.getWidth(),u=n.getHeight(),l=Math.min(s,u),d=i(t[0],s),h=i(t[1],u),f=i(r[0],l/2),p=i(r[1],l/2),g=-e.get("startAngle")*a,m=e.get("minAngle")*a,v=e.getData().tree.root,y=e.getViewRoot(),_=y.depth,b=e.get("sort");null!=b&&c(y,b);var S=0;o.each(y.children,(function(e){!isNaN(e.getValue())&&S++}));var x=y.getValue(),w=Math.PI/(x||S)*2,I=y.depth>0,C=y.height-(I?-1:1),M=(p-f)/(C||1),T=e.get("clockwise"),k=e.get("stillShowZeroSum"),E=T?1:-1,A=function(e,t){if(e){var n=t;if(e!==v){var r=e.getValue(),a=0===x&&k?w:r*w;a<m&&(a=m),n=t+E*a;var s=e.depth-_-(I?-1:1),c=f+M*s,u=f+M*(s+1),p=e.getModel();null!=p.get("r0")&&(c=i(p.get("r0"),l/2)),null!=p.get("r")&&(u=i(p.get("r"),l/2)),e.setLayout({angle:a,startAngle:t,endAngle:n,clockwise:T,cx:d,cy:h,r0:c,r:u})}if(e.children&&e.children.length){var g=0;o.each(e.children,(function(e){g+=A(e,t+g)}))}return n-t}};if(I){var D=f,O=f+M,R=2*Math.PI;v.setLayout({angle:R,startAngle:g,endAngle:g+R,clockwise:T,cx:d,cy:h,r0:D,r:O})}A(y,g)}))}function c(e,t){var n=e.children||[];e.children=u(n,t),n.length&&o.each(e.children,(function(e){c(e,t)}))}function u(e,t){if("function"===typeof t)return e.sort(t);var n="asc"===t;return e.sort((function(e,t){var r=(e.getValue()-t.getValue())*(n?1:-1);return 0===r?(e.dataIndex-t.dataIndex)*(n?-1:1):r}))}e.exports=s},cb8f:function(e,t,n){var r=n("3eba"),i=n("6d8b"),o=n("cd33"),a=n("eb6b");n("48ac"),n("d4b1"),n("4a9d"),r.registerPreprocessor((function(e){if(e){(!e.axisPointer||0===e.axisPointer.length)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!i.isArray(t)&&(e.axisPointer.link=[t])}})),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,(function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=o.collect(e,t)})),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},a)},cbb0:function(e,t,n){var r=n("6d8b"),i=n("f934"),o=i.getLayoutRect;function a(e,t,n){var r=e.option,i=r.align;if(null!=i&&"auto"!==i)return i;for(var a={width:t.getWidth(),height:t.getHeight()},s="horizontal"===r.orient?1:0,c=[["left","right","width"],["top","bottom","height"]],u=c[s],l=[0,null,10],d={},h=0;h<3;h++)d[c[1-s][h]]=l[h],d[u[h]]=2===h?n[0]:r[u[h]];var f=[["x","width",3],["y","height",0]][s],p=o(d,a,r.padding);return u[(p.margin[f[2]]||0)+p[f[0]]+.5*p[f[1]]<.5*a[f[1]]?0:1]}function s(e,t){return r.each(e||[],(function(e){null!=e.dataIndex&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")})),e}t.getItemAlign=a,t.makeHighDownBatch=s},cbe5:function(e,t,n){var r=n("19eb"),i=n("6d8b"),o=n("20c8"),a=n("d833"),s=n("dc2f"),c=s.prototype.getCanvasPattern,u=Math.abs,l=new o(!0);function d(e){r.call(this,e),this.path=null}d.prototype={constructor:d,type:"path",__dirtyPath:!0,strokeContainThreshold:5,segmentIgnoreThreshold:0,subPixelOptimize:!1,brush:function(e,t){var n,r=this.style,i=this.path||l,o=r.hasStroke(),a=r.hasFill(),s=r.fill,u=r.stroke,d=a&&!!s.colorStops,h=o&&!!u.colorStops,f=a&&!!s.image,p=o&&!!u.image;(r.bind(e,this,t),this.setTransform(e),this.__dirty)&&(d&&(n=n||this.getBoundingRect(),this._fillGradient=r.getGradient(e,s,n)),h&&(n=n||this.getBoundingRect(),this._strokeGradient=r.getGradient(e,u,n)));d?e.fillStyle=this._fillGradient:f&&(e.fillStyle=c.call(s,e)),h?e.strokeStyle=this._strokeGradient:p&&(e.strokeStyle=c.call(u,e));var g=r.lineDash,m=r.lineDashOffset,v=!!e.setLineDash,y=this.getGlobalScale();if(i.setScale(y[0],y[1],this.segmentIgnoreThreshold),this.__dirtyPath||g&&!v&&o?(i.beginPath(e),g&&!v&&(i.setLineDash(g),i.setLineDashOffset(m)),this.buildPath(i,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(e.beginPath(),this.path.rebuildPath(e)),a)if(null!=r.fillOpacity){var _=e.globalAlpha;e.globalAlpha=r.fillOpacity*r.opacity,i.fill(e),e.globalAlpha=_}else i.fill(e);if(g&&v&&(e.setLineDash(g),e.lineDashOffset=m),o)if(null!=r.strokeOpacity){_=e.globalAlpha;e.globalAlpha=r.strokeOpacity*r.opacity,i.stroke(e),e.globalAlpha=_}else i.stroke(e);g&&v&&e.setLineDash([]),null!=r.text&&(this.restoreTransform(e),this.drawRectText(e,this.getBoundingRect()))},buildPath:function(e,t,n){},createPathProxy:function(){this.path=new o},getBoundingRect:function(){var e=this._rect,t=this.style,n=!e;if(n){var r=this.path;r||(r=this.path=new o),this.__dirtyPath&&(r.beginPath(),this.buildPath(r,this.shape,!1)),e=r.getBoundingRect()}if(this._rect=e,t.hasStroke()){var i=this._rectWithStroke||(this._rectWithStroke=e.clone());if(this.__dirty||n){i.copy(e);var a=t.lineWidth,s=t.strokeNoScale?this.getLineScale():1;t.hasFill()||(a=Math.max(a,this.strokeContainThreshold||4)),s>1e-10&&(i.width+=a/s,i.height+=a/s,i.x-=a/s/2,i.y-=a/s/2)}return i}return e},contain:function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var o=this.path.data;if(i.hasStroke()){var s=i.lineWidth,c=i.strokeNoScale?this.getLineScale():1;if(c>1e-10&&(i.hasFill()||(s=Math.max(s,this.strokeContainThreshold)),a.containStroke(o,s/c,e,t)))return!0}if(i.hasFill())return a.contain(o,e,t)}return!1},dirty:function(e){null==e&&(e=!0),e&&(this.__dirtyPath=e,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(e){return this.animate("shape",e)},attrKV:function(e,t){"shape"===e?(this.setShape(t),this.__dirtyPath=!0,this._rect=null):r.prototype.attrKV.call(this,e,t)},setShape:function(e,t){var n=this.shape;if(n){if(i.isObject(e))for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);else n[e]=t;this.dirty(!0)}return this},getLineScale:function(){var e=this.transform;return e&&u(e[0]-1)>1e-10&&u(e[3]-1)>1e-10?Math.sqrt(u(e[0]*e[3]-e[2]*e[1])):1}},d.extend=function(e){var t=function(t){d.call(this,t),e.style&&this.style.extendFrom(e.style,!1);var n=e.shape;if(n){this.shape=this.shape||{};var r=this.shape;for(var i in n)!r.hasOwnProperty(i)&&n.hasOwnProperty(i)&&(r[i]=n[i])}e.init&&e.init.call(this,t)};for(var n in i.inherits(t,d),e)"style"!==n&&"shape"!==n&&(t.prototype[n]=e[n]);return t},i.inherits(d,r);var h=d;e.exports=h},cbe9:function(e,t,n){var r=n("6d8b"),i=n("9850"),o=n("cf7e");function a(e){o.call(this,e)}a.prototype={constructor:a,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},containPoint:function(e){var t=this.getAxis("x"),n=this.getAxis("y");return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},containData:function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},dataToPoint:function(e,t,n){var r=this.getAxis("x"),i=this.getAxis("y");return n=n||[],n[0]=r.toGlobalCoord(r.dataToCoord(e[0])),n[1]=i.toGlobalCoord(i.dataToCoord(e[1])),n},clampData:function(e,t){var n=this.getAxis("x").scale,r=this.getAxis("y").scale,i=n.getExtent(),o=r.getExtent(),a=n.parse(e[0]),s=r.parse(e[1]);return t=t||[],t[0]=Math.min(Math.max(Math.min(i[0],i[1]),a),Math.max(i[0],i[1])),t[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),t},pointToData:function(e,t){var n=this.getAxis("x"),r=this.getAxis("y");return t=t||[],t[0]=n.coordToData(n.toLocalCoord(e[0])),t[1]=r.coordToData(r.toLocalCoord(e[1])),t},getOtherAxis:function(e){return this.getAxis("x"===e.dim?"y":"x")},getArea:function(){var e=this.getAxis("x").getGlobalExtent(),t=this.getAxis("y").getGlobalExtent(),n=Math.min(e[0],e[1]),r=Math.min(t[0],t[1]),o=Math.max(e[0],e[1])-n,a=Math.max(t[0],t[1])-r,s=new i(n,r,o,a);return s}},r.inherits(a,o);var s=a;e.exports=s},cc12:function(e,t,n){var r=n("da84"),i=n("861d"),o=r.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},cc39:function(e,t,n){var r=n("6d8b"),i=n("3842"),o=n("50e5"),a=n("ef6a"),s=r.each,c=i.asc,u=function(e,t,n,r){this._dimName=e,this._axisIndex=t,this._valueWindow,this._percentWindow,this._dataExtent,this._minMaxSpan,this.ecModel=r,this._dataZoomModel=n};function l(e,t,n){var r=[1/0,-1/0];return s(n,(function(e){var n=e.getData();n&&s(n.mapDimension(t,!0),(function(e){var t=n.getApproximateExtent(e);t[0]<r[0]&&(r[0]=t[0]),t[1]>r[1]&&(r[1]=t[1])}))})),r[1]<r[0]&&(r=[NaN,NaN]),d(e,r),r}function d(e,t){var n=e.getAxisModel(),r=n.getMin(!0),i="category"===n.get("type"),o=i&&n.getCategories().length;null!=r&&"dataMin"!==r&&"function"!==typeof r?t[0]=r:i&&(t[0]=o>0?0:NaN);var a=n.getMax(!0);return null!=a&&"dataMax"!==a&&"function"!==typeof a?t[1]=a:i&&(t[1]=o>0?o-1:NaN),n.get("scale",!0)||(t[0]>0&&(t[0]=0),t[1]<0&&(t[1]=0)),t}function h(e,t){var n=e.getAxisModel(),r=e._percentWindow,o=e._valueWindow;if(r){var a=i.getPixelPrecision(o,[0,500]);a=Math.min(a,20);var s=t||0===r[0]&&100===r[1];n.setRange(s?null:+o[0].toFixed(a),s?null:+o[1].toFixed(a))}}function f(e){var t=e._minMaxSpan={},n=e._dataZoomModel,r=e._dataExtent;s(["min","max"],(function(o){var a=n.get(o+"Span"),s=n.get(o+"ValueSpan");null!=s&&(s=e.getAxisModel().axis.scale.parse(s)),null!=s?a=i.linearMap(r[0]+s,r,[0,100],!0):null!=a&&(s=i.linearMap(a,[0,100],r,!0)-r[0]),t[o+"Span"]=a,t[o+"ValueSpan"]=s}))}u.prototype={constructor:u,hostedBy:function(e){return this._dataZoomModel===e},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var e=[],t=this.ecModel;return t.eachSeries((function(n){if(o.isCoordSupported(n.get("coordinateSystem"))){var r=this._dimName,i=t.queryComponents({mainType:r+"Axis",index:n.get(r+"AxisIndex"),id:n.get(r+"AxisId")})[0];this._axisIndex===(i&&i.componentIndex)&&e.push(n)}}),this),e},getAxisModel:function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var e,t,n,r=this._dimName,i=this.ecModel,o=this.getAxisModel(),a="x"===r||"y"===r;return a?(t="gridIndex",e="x"===r?"y":"x"):(t="polarIndex",e="angle"===r?"radius":"angle"),i.eachComponent(e+"Axis",(function(e){(e.get(t)||0)===(o.get(t)||0)&&(n=e)})),n},getMinMaxSpan:function(){return r.clone(this._minMaxSpan)},calculateDataWindow:function(e){var t,n=this._dataExtent,r=this.getAxisModel(),o=r.axis.scale,u=this._dataZoomModel.getRangePropMode(),l=[0,100],d=[],h=[];s(["start","end"],(function(r,a){var s=e[r],c=e[r+"Value"];"percent"===u[a]?(null==s&&(s=l[a]),c=o.parse(i.linearMap(s,l,n))):(t=!0,c=null==c?n[a]:o.parse(c),s=i.linearMap(c,n,l)),h[a]=c,d[a]=s})),c(h),c(d);var f=this._minMaxSpan;function p(e,t,n,r,s){var c=s?"Span":"ValueSpan";a(0,e,n,"all",f["min"+c],f["max"+c]);for(var u=0;u<2;u++)t[u]=i.linearMap(e[u],n,r,!0),s&&(t[u]=o.parse(t[u]))}return t?p(h,d,n,l,!1):p(d,h,l,n,!0),{valueWindow:h,percentWindow:d}},reset:function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=l(this,this._dimName,t),f(this);var n=this.calculateDataWindow(e.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,h(this)}},restore:function(e){e===this._dataZoomModel&&(this._valueWindow=this._percentWindow=null,h(this,!0))},filterData:function(e,t){if(e===this._dataZoomModel){var n=this._dimName,r=this.getTargetSeriesModels(),i=e.get("filterMode"),o=this._valueWindow;"none"!==i&&s(r,(function(e){var t=e.getData(),r=t.mapDimension(n,!0);r.length&&("weakFilter"===i?t.filterSelf((function(e){for(var n,i,a,s=0;s<r.length;s++){var c=t.get(r[s],e),u=!isNaN(c),l=c<o[0],d=c>o[1];if(u&&!l&&!d)return!0;u&&(a=!0),l&&(n=!0),d&&(i=!0)}return a&&n&&i})):s(r,(function(n){if("empty"===i)e.setData(t=t.map(n,(function(e){return a(e)?e:NaN})));else{var r={};r[n]=o,t.selectRange(r)}})),s(r,(function(e){t.setApproximateExtent(o,e)})))}))}function a(e){return e>=o[0]&&e<=o[1]}}};var p=u;e.exports=p},cc6d:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.gaugeConfig=void 0;var r={show:!0,name:"",radius:"60%",center:["50%","50%"],startAngle:-Math.PI/4*5,endAngle:Math.PI/4,min:0,max:100,splitNum:5,arcLineWidth:15,data:[],dataItemStyle:{},axisTick:{show:!0,tickLength:6,style:{stroke:"#999",lineWidth:1}},axisLabel:{show:!0,data:[],formatter:null,labelGap:5,style:{}},pointer:{show:!0,valueIndex:0,style:{scale:[1,1],fill:"#fb7293"}},details:{show:!1,formatter:null,offset:[0,0],valueToFixed:0,position:"center",style:{fontSize:20,fontWeight:"bold",textAlign:"center",textBaseline:"middle"}},backgroundArc:{show:!0,style:{stroke:"#e0e0e0"}},rLevel:10,animationCurve:"easeOutCubic",animationFrame:50};t.gaugeConfig=r},cca6:function(e,t,n){var r=n("23e7"),i=n("60da");r({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},cccd:function(e,t,n){var r=n("e0d3"),i=r.makeInner;function o(){var e=i();return function(t){var n=e(t),r=t.pipelineContext,i=n.large,o=n.progressiveRender,a=n.large=r&&r.large,s=n.progressiveRender=r&&r.progressiveRender;return!!(i^a||o^s)&&"reset"}}e.exports=o},cd12:function(e,t,n){n("01ed"),n("4a9d"),n("cb8f")},cd26:function(e,t,n){"use strict";var r=n("ebb5"),i=r.aTypedArray,o=r.exportTypedArrayMethod,a=Math.floor;o("reverse",(function(){var e,t=this,n=i(t).length,r=a(n/2),o=0;while(o<r)e=t[o],t[o++]=t[--n],t[n]=e;return t}))},cd33:function(e,t,n){var r=n("6d8b"),i=n("4319"),o=r.each,a=r.curry;function s(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return c(n,e,t),n.seriesInvolved&&l(n,e),n}function c(e,t,n){var r=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),s=i.get("link",!0)||[],c=[];o(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var l=v(n.model),h=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=n;var f=n.model,p=f.getModel("tooltip",r);if(o(n.getAxes(),a(b,!1,null)),n.getTooltipAxes&&r&&p.get("show")){var g="axis"===p.get("trigger"),y="cross"===p.get("axisPointer.type"),_=n.getTooltipAxes(p.get("axisPointer.axis"));(g||y)&&o(_.baseAxes,a(b,!y||"cross",g)),y&&o(_.otherAxes,a(b,"cross",!1))}}function b(r,o,a){var l=a.model.getModel("axisPointer",i),f=l.get("show");if(f&&("auto"!==f||r||m(l))){null==o&&(o=l.get("triggerTooltip")),l=r?u(a,p,i,t,r,o):l;var g=l.get("snap"),y=v(a.model),_=o||g||"category"===a.type,b=e.axesInfo[y]={key:y,axis:a,coordSys:n,axisPointerModel:l,triggerTooltip:o,involveSeries:_,snap:g,useHandle:m(l),seriesModels:[]};h[y]=b,e.seriesInvolved|=_;var S=d(s,a);if(null!=S){var x=c[S]||(c[S]={axesInfo:{}});x.axesInfo[y]=b,x.mapper=s[S].mapper,b.linkGroup=x}}}}))}function u(e,t,n,a,s,c){var u=t.getModel("axisPointer"),l={};o(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],(function(e){l[e]=r.clone(u.get(e))})),l.snap="category"!==e.type&&!!c,"cross"===u.get("type")&&(l.type="line");var d=l.label||(l.label={});if(null==d.show&&(d.show=!1),"cross"===s){var h=u.get("label.show");if(d.show=null==h||h,!c){var f=l.lineStyle=u.get("crossStyle");f&&r.defaults(d,f.textStyle)}}return e.model.getModel("axisPointer",new i(l,n,a))}function l(e,t){t.eachSeries((function(t){var n=t.coordinateSystem,r=t.get("tooltip.trigger",!0),i=t.get("tooltip.show",!0);n&&"none"!==r&&!1!==r&&"item"!==r&&!1!==i&&!1!==t.get("axisPointer.show",!0)&&o(e.coordSysAxesInfo[v(n.model)],(function(e){var r=e.axis;n.getAxis(r.dim)===r&&(e.seriesModels.push(t),null==e.seriesDataCount&&(e.seriesDataCount=0),e.seriesDataCount+=t.getData().count())}))}),this)}function d(e,t){for(var n=t.model,r=t.dim,i=0;i<e.length;i++){var o=e[i]||{};if(h(o[r+"AxisId"],n.id)||h(o[r+"AxisIndex"],n.componentIndex)||h(o[r+"AxisName"],n.name))return i}}function h(e,t){return"all"===e||r.isArray(e)&&r.indexOf(e,t)>=0||e===t}function f(e){var t=p(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=r.parse(a));var s=m(n);null==o&&(i.status=s?"show":"hide");var c=r.getExtent().slice();c[0]>c[1]&&c.reverse(),(null==a||a>c[1])&&(a=c[1]),a<c[0]&&(a=c[0]),i.value=a,s&&(i.status=t.axis.scale.isBlank()?"hide":"show")}}function p(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[v(e)]}function g(e){var t=p(e);return t&&t.axisPointerModel}function m(e){return!!e.get("handle.show")}function v(e){return e.type+"||"+e.id}t.collect=s,t.fixValue=f,t.getAxisInfo=p,t.getAxisPointerModel=g,t.makeKey=v},cd84:function(e,t,n){var r=n("6d8b"),i=256;function o(){var e=r.createCanvas();this.canvas=e,this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={}}o.prototype={update:function(e,t,n,r,o,a){var s=this._getBrush(),c=this._getGradient(e,o,"inRange"),u=this._getGradient(e,o,"outOfRange"),l=this.pointSize+this.blurSize,d=this.canvas,h=d.getContext("2d"),f=e.length;d.width=t,d.height=n;for(var p=0;p<f;++p){var g=e[p],m=g[0],v=g[1],y=g[2],_=r(y);h.globalAlpha=_,h.drawImage(s,m-l,v-l)}if(!d.width||!d.height)return d;var b=h.getImageData(0,0,d.width,d.height),S=b.data,x=0,w=S.length,I=this.minOpacity,C=this.maxOpacity,M=C-I;while(x<w){_=S[x+3]/256;var T=4*Math.floor(_*(i-1));if(_>0){var k=a(_)?c:u;_>0&&(_=_*M+I),S[x++]=k[T],S[x++]=k[T+1],S[x++]=k[T+2],S[x++]=k[T+3]*_*256}else x+=4}return h.putImageData(b,0,0),d},_getBrush:function(){var e=this._brushCanvas||(this._brushCanvas=r.createCanvas()),t=this.pointSize+this.blurSize,n=2*t;e.width=n,e.height=n;var i=e.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-t,t,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),e},_getGradient:function(e,t,n){for(var r=this._gradientPixels,i=r[n]||(r[n]=new Uint8ClampedArray(1024)),o=[0,0,0,0],a=0,s=0;s<256;s++)t[n](s/255,!0,o),i[a++]=o[0],i[a++]=o[1],i[a++]=o[2],i[a++]=o[3];return i}};var a=o;e.exports=a},cdaa:function(e,t,n){var r=n("607d"),i=r.addEventListener,o=r.removeEventListener,a=r.normalizeEvent,s=r.getNativeEvent,c=n("6d8b"),u=n("1fab"),l=n("22d1"),d=300,h=l.domSupported,f=function(){var e=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=c.map(e,(function(e){var t=e.replace("mouse","pointer");return n.hasOwnProperty(t)?t:e}));return{mouse:e,touch:t,pointer:r}}(),p={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]};function g(e){return"mousewheel"===e&&l.browser.firefox?"DOMMouseScroll":e}function m(e){var t=e.pointerType;return"pen"===t||"touch"===t}function v(e){e.touching=!0,null!=e.touchTimer&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout((function(){e.touching=!1,e.touchTimer=null}),700)}function y(e){e&&(e.zrByTouch=!0)}function _(e,t){return a(e.dom,new S(e,t),!0)}function b(e,t){var n=t,r=!1;while(n&&9!==n.nodeType&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot))n=n.parentNode;return r}function S(e,t){this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}var x=S.prototype;x.stopPropagation=x.stopImmediatePropagation=x.preventDefault=c.noop;var w={mousedown:function(e){e=a(this.dom,e),this._mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=a(this.dom,e);var t=this._mayPointerCapture;!t||e.zrX===t[0]&&e.zrY===t[1]||E(this,!0),this.trigger("mousemove",e)},mouseup:function(e){e=a(this.dom,e),E(this,!1),this.trigger("mouseup",e)},mouseout:function(e){e=a(this.dom,e),this._pointerCapturing&&(e.zrEventControl="no_globalout");var t=e.toElement||e.relatedTarget;e.zrIsToLocalDOM=b(this,t),this.trigger("mouseout",e)},touchstart:function(e){e=a(this.dom,e),y(e),this._lastTouchMoment=new Date,this.handler.processGesture(e,"start"),w.mousemove.call(this,e),w.mousedown.call(this,e)},touchmove:function(e){e=a(this.dom,e),y(e),this.handler.processGesture(e,"change"),w.mousemove.call(this,e)},touchend:function(e){e=a(this.dom,e),y(e),this.handler.processGesture(e,"end"),w.mouseup.call(this,e),+new Date-this._lastTouchMoment<d&&w.click.call(this,e)},pointerdown:function(e){w.mousedown.call(this,e)},pointermove:function(e){m(e)||w.mousemove.call(this,e)},pointerup:function(e){w.mouseup.call(this,e)},pointerout:function(e){m(e)||w.mouseout.call(this,e)}};c.each(["click","mousewheel","dblclick","contextmenu"],(function(e){w[e]=function(t){t=a(this.dom,t),this.trigger(e,t)}}));var I={pointermove:function(e){m(e)||I.mousemove.call(this,e)},pointerup:function(e){I.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this._pointerCapturing;E(this,!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function C(e,t){var n=t.domHandlers;l.pointerEventsSupported?c.each(f.pointer,(function(r){T(t,r,(function(t){n[r].call(e,t)}))})):(l.touchEventsSupported&&c.each(f.touch,(function(r){T(t,r,(function(i){n[r].call(e,i),v(t)}))})),c.each(f.mouse,(function(r){T(t,r,(function(i){i=s(i),t.touching||n[r].call(e,i)}))})))}function M(e,t){function n(n){function r(r){r=s(r),b(e,r.target)||(r=_(e,r),t.domHandlers[n].call(e,r))}T(t,n,r,{capture:!0})}l.pointerEventsSupported?c.each(p.pointer,n):l.touchEventsSupported||c.each(p.mouse,n)}function T(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,i(e.domTarget,g(t),n,r)}function k(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&o(e.domTarget,g(n),t[n],e.listenerOpts[n]);e.mounted={}}function E(e,t){if(e._mayPointerCapture=null,h&&e._pointerCapturing^t){e._pointerCapturing=t;var n=e._globalHandlerScope;t?M(e,n):k(n)}}function A(e,t){this.domTarget=e,this.domHandlers=t,this.mounted={},this.listenerOpts={},this.touchTimer=null,this.touching=!1}function D(e,t){u.call(this),this.dom=e,this.painterRoot=t,this._localHandlerScope=new A(e,w),h&&(this._globalHandlerScope=new A(document,I)),this._pointerCapturing=!1,this._mayPointerCapture=null,C(this,this._localHandlerScope)}var O=D.prototype;O.dispose=function(){k(this._localHandlerScope),h&&k(this._globalHandlerScope)},O.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},c.mixin(D,u);var R=D;e.exports=R},cdf9:function(e,t,n){var r=n("825a"),i=n("861d"),o=n("f069");e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e),a=n.resolve;return a(t),n.promise}},ce4e:function(e,t,n){var r=n("da84"),i=Object.defineProperty;e.exports=function(e,t){try{i(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},cee1:function(e,t,n){var r=n("6d8b");function i(e){var t={};e.eachSeriesByType("map",(function(n){var i=n.getMapType();if(!n.getHostGeoModel()&&!t[i]){var o={};r.each(n.seriesGroup,(function(t){var n=t.coordinateSystem,r=t.originalData;t.get("showLegendSymbol")&&e.getComponent("legend")&&r.each(r.mapDimension("value"),(function(e,t){var i=r.getName(t),a=n.getRegion(i);if(a&&!isNaN(e)){var s=o[i]||0,c=n.dataToPoint(a.center);o[i]=s+1,r.setItemLayout(t,{point:c,offset:s})}}))}));var a=n.getData();a.each((function(e){var t=a.getName(e),n=a.getItemLayout(e)||{};n.showLabel=!o[t],a.setItemLayout(e,n)})),t[i]=!0}}))}e.exports=i},cee4:function(e,t,n){"use strict";var r=n("c532"),i=n("1d2b"),o=n("0a06"),a=n("4a7b"),s=n("2444");function c(e){var t=new o(e),n=i(o.prototype.request,t);return r.extend(n,o.prototype,t),r.extend(n,t),n.create=function(t){return c(a(e,t))},n}var u=c(s);u.Axios=o,u.Cancel=n("7a77"),u.CancelToken=n("8df4"),u.isCancel=n("2e67"),u.VERSION=n("5cce").version,u.all=function(e){return Promise.all(e)},u.spread=n("0df6"),u.isAxiosError=n("5f02"),e.exports=u,e.exports.default=u},cf7e:function(e,t,n){var r=n("6d8b");function i(e){return this._axes[e]}var o=function(e){this._axes={},this._dimList=[],this.name=e||""};o.prototype={constructor:o,type:"cartesian",getAxis:function(e){return this._axes[e]},getAxes:function(){return r.map(this._dimList,i,this)},getAxesByScale:function(e){return e=e.toLowerCase(),r.filter(this.getAxes(),(function(t){return t.scale.type===e}))},addAxis:function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},dataToCoord:function(e){return this._dataCoordConvert(e,"dataToCoord")},coordToData:function(e){return this._dataCoordConvert(e,"coordToData")},_dataCoordConvert:function(e,t){for(var n=this._dimList,r=e instanceof Array?[]:{},i=0;i<n.length;i++){var o=n[i],a=this._axes[o];r[o]=a[t](e[o])}return r}};var a=o;e.exports=a},cfc3:function(e,t,n){var r=n("74e8");r("Float32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},d010:function(e,t,n){"use strict";function r(e,t,n){this.$children.forEach((function(i){var o=i.$options.componentName;o===e?i.$emit.apply(i,[t].concat(n)):r.apply(i,[e,t].concat([n]))}))}t.__esModule=!0,t.default={methods:{dispatch:function(e,t,n){var r=this.$parent||this.$root,i=r.$options.componentName;while(r&&(!i||i!==e))r=r.$parent,r&&(i=r.$options.componentName);r&&r.$emit.apply(r,[t].concat(n))},broadcast:function(e,t,n){r.call(this,e,t,n)}}}},d012:function(e,t){e.exports={}},d01c:function(e,t,n){var r=n("4f85"),i=n("237f"),o=n("eda2"),a=o.encodeHTML,s=n("4319"),c=n("4e08"),u=(c.__DEV__,r.extend({type:"series.sankey",layoutInfo:null,levelModels:null,getInitialData:function(e,t){for(var n=e.edges||e.links,r=e.data||e.nodes,o=e.levels,a=this.levelModels={},c=0;c<o.length;c++)null!=o[c].depth&&o[c].depth>=0&&(a[o[c].depth]=new s(o[c],this,t));if(r&&n){var u=i(r,n,this,!0,l);return u.data}function l(e,t){e.wrapMethod("getItemModel",(function(e,t){return e.customizeGetParent((function(e){var n=this.parentModel,r=n.getData().getItemLayout(t).depth,i=n.levelModels[r];return i||this.parentModel})),e})),t.wrapMethod("getItemModel",(function(e,t){return e.customizeGetParent((function(e){var n=this.parentModel,r=n.getGraph().getEdgeByIndex(t),i=r.node1.getLayout().depth,o=n.levelModels[i];return o||this.parentModel})),e}))}},setNodePosition:function(e,t){var n=this.option.data[e];n.localX=t[0],n.localY=t[1]},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},formatTooltip:function(e,t,n){if("edge"===n){var r=this.getDataParams(e,n),i=r.data,o=i.source+" -- "+i.target;return r.value&&(o+=" : "+r.value),a(o)}if("node"===n){var s=this.getGraph().getNodeByIndex(e),c=s.getLayout().value,l=this.getDataParams(e,n).data.name;if(c)o=l+" : "+c;return a(o)}return u.superCall(this,"formatTooltip",e,t)},optionUpdated:function(){var e=this.option;!0===e.focusNodeAdjacency&&(e.focusNodeAdjacency="allEdges")},getDataParams:function(e,t){var n=u.superCall(this,"getDataParams",e,t);if(null==n.value&&"node"===t){var r=this.getGraph().getNodeByIndex(e),i=r.getLayout().value;n.value=i}return n},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",layout:null,left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,focusNodeAdjacency:!1,layoutIterations:32,label:{show:!0,position:"right",color:"#000",fontSize:12},levels:[],nodeAlign:"justify",itemStyle:{borderWidth:1,borderColor:"#333"},lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},animationEasing:"linear",animationDuration:1e3}})),l=u;e.exports=l},d039:function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},d066:function(e,t,n){var r=n("da84"),i=n("1626"),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e]):r[e]&&r[e][t]}},d070:function(e,t,n){var r=n("3eba"),i=n("6d8b");function o(e,t){t.update="updateView",r.registerAction(t,(function(t,n){var r={};return n.eachComponent({mainType:"geo",query:t},(function(n){n[e](t.name);var o=n.coordinateSystem;i.each(o.regions,(function(e){r[e.name]=n.isSelected(e.name)||!1}))})),{selected:r,name:t.name}}))}n("1f1a5"),n("eeea"),n("7661"),n("49e8"),o("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),o("select",{type:"geoSelect",event:"geoselected"}),o("unSelect",{type:"geoUnSelect",event:"geounselected"})},d090:function(e,t,n){var r=n("6d8b"),i=n("f934"),o=n("3842"),a=n("2039"),s=864e5;function c(e,t,n){this._model=e}function u(e,t,n,r){var i=n.calendarModel,o=n.seriesModel,a=i?i.coordinateSystem:o?o.coordinateSystem:null;return a===this?a[e](r):null}c.prototype={constructor:c,type:"calendar",dimensions:["time","value"],getDimensionsInfo:function(){return[{name:"time",type:"time"},"value"]},getRangeInfo:function(){return this._rangeInfo},getModel:function(){return this._model},getRect:function(){return this._rect},getCellWidth:function(){return this._sw},getCellHeight:function(){return this._sh},getOrient:function(){return this._orient},getFirstDayOfWeek:function(){return this._firstDayOfWeek},getDateInfo:function(e){e=o.parseDate(e);var t=e.getFullYear(),n=e.getMonth()+1;n=n<10?"0"+n:n;var r=e.getDate();r=r<10?"0"+r:r;var i=e.getDay();return i=Math.abs((i+7-this.getFirstDayOfWeek())%7),{y:t,m:n,d:r,day:i,time:e.getTime(),formatedDate:t+"-"+n+"-"+r,date:e}},getNextNDay:function(e,t){return t=t||0,0===t||(e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+t)),this.getDateInfo(e)},update:function(e,t){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,o=["width","height"],a=this._model.get("cellSize").slice(),s=this._model.getBoxLayoutParams(),c="horizontal"===this._orient?[n,7]:[7,n];r.each([0,1],(function(e){d(a,e)&&(s[o[e]]=a[e]*c[e])}));var u={width:t.getWidth(),height:t.getHeight()},l=this._rect=i.getLayoutRect(s,u);function d(e,t){return null!=e[t]&&"auto"!==e[t]}r.each([0,1],(function(e){d(a,e)||(a[e]=l[o[e]]/c[e])})),this._sw=a[0],this._sh=a[1]},dataToPoint:function(e,t){r.isArray(e)&&(e=e[0]),null==t&&(t=!0);var n=this.getDateInfo(e),i=this._rangeInfo,o=n.formatedDate;if(t&&!(n.time>=i.start.time&&n.time<i.end.time+s))return[NaN,NaN];var a=n.day,c=this._getRangeInfo([i.start.time,o]).nthWeek;return"vertical"===this._orient?[this._rect.x+a*this._sw+this._sw/2,this._rect.y+c*this._sh+this._sh/2]:[this._rect.x+c*this._sw+this._sw/2,this._rect.y+a*this._sh+this._sh/2]},pointToData:function(e){var t=this.pointToDate(e);return t&&t.time},dataToRect:function(e,t){var n=this.dataToPoint(e,t);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},pointToDate:function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,n=Math.floor((e[1]-this._rect.y)/this._sh)+1,r=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,t-1,r):this._getDateByWeeksAndDay(t,n-1,r)},convertToPixel:r.curry(u,"dataToPoint"),convertFromPixel:r.curry(u,"pointToData"),_initRangeOption:function(){var e=this._model.get("range"),t=e;if(r.isArray(t)&&1===t.length&&(t=t[0]),/^\d{4}$/.test(t)&&(e=[t+"-01-01",t+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(t)){var n=this.getDateInfo(t),i=n.date;i.setMonth(i.getMonth()+1);var o=this.getNextNDay(i,-1);e=[n.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(t)&&(e=[t,t]);var a=this._getRangeInfo(e);return a.start.time>a.end.time&&e.reverse(),e},_getRangeInfo:function(e){var t;e=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],e[0].time>e[1].time&&(t=!0,e.reverse());var n=Math.floor(e[1].time/s)-Math.floor(e[0].time/s)+1,r=new Date(e[0].time),i=r.getDate(),o=e[1].date.getDate();r.setDate(i+n-1);var a=r.getDate();if(a!==o){var c=r.getTime()-e[1].time>0?1:-1;while((a=r.getDate())!==o&&(r.getTime()-e[1].time)*c>0)n-=c,r.setDate(a-c)}var u=Math.floor((n+e[0].day+6)/7),l=t?1-u:u-1;return t&&e.reverse(),{range:[e[0].formatedDate,e[1].formatedDate],start:e[0],end:e[1],allDay:n,weeks:u,nthWeek:l,fweek:e[0].day,lweek:e[1].day}},_getDateByWeeksAndDay:function(e,t,n){var r=this._getRangeInfo(n);if(e>r.weeks||0===e&&t<r.fweek||e===r.weeks&&t>r.lweek)return!1;var i=7*(e-1)-r.fweek+t,o=new Date(r.start.time);return o.setDate(r.start.d+i),this.getDateInfo(o)}},c.dimensions=c.prototype.dimensions,c.getDimensionsInfo=c.prototype.getDimensionsInfo,c.create=function(e,t){var n=[];return e.eachComponent("calendar",(function(r){var i=new c(r,e,t);n.push(i),r.coordinateSystem=i})),e.eachSeries((function(e){"calendar"===e.get("coordinateSystem")&&(e.coordinateSystem=n[e.get("calendarIndex")||0])})),n},a.register("calendar",c);var l=c;e.exports=l},d0b5:function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var i=r(n("448a")),o=r(n("970b")),a=n("53b8"),s=n("5557"),c=function e(t){(0,o["default"])(this,e),this.colorProcessor(t);var n={fill:[0,0,0,1],stroke:[0,0,0,0],opacity:1,lineCap:null,lineJoin:null,lineDash:null,lineDashOffset:null,shadowBlur:0,shadowColor:[0,0,0,0],shadowOffsetX:0,shadowOffsetY:0,lineWidth:0,graphCenter:null,scale:null,rotate:null,translate:null,hoverCursor:"pointer",fontStyle:"normal",fontVarient:"normal",fontWeight:"normal",fontSize:10,fontFamily:"Arial",textAlign:"center",textBaseline:"middle",gradientColor:null,gradientType:"linear",gradientParams:null,gradientWith:"stroke",gradientStops:"auto",colors:null};Object.assign(this,n,t)};function u(e,t){e.save();var n=t.graphCenter,r=t.rotate,o=t.scale,a=t.translate;n instanceof Array&&(e.translate.apply(e,(0,i["default"])(n)),r&&e.rotate(r*Math.PI/180),o instanceof Array&&e.scale.apply(e,(0,i["default"])(o)),a&&e.translate.apply(e,(0,i["default"])(a)),e.translate(-n[0],-n[1]))}t["default"]=c,c.prototype.colorProcessor=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t?a.getColorFromRgbValue:a.getRgbaValue,r=["fill","stroke","shadowColor"],i=Object.keys(e),o=i.filter((function(e){return r.find((function(t){return t===e}))}));o.forEach((function(t){return e[t]=n(e[t])}));var s=e.gradientColor,c=e.colors;if(s&&(e.gradientColor=s.map((function(e){return n(e)}))),c){var u=Object.keys(c);u.forEach((function(e){return c[e]=n(c[e])}))}},c.prototype.initStyle=function(e){u(e,this),d(e,this),h(e,this)};var l=["lineCap","lineJoin","lineDashOffset","shadowOffsetX","shadowOffsetY","lineWidth","textAlign","textBaseline"];function d(e,t){var n=t.fill,r=t.stroke,o=t.shadowColor,s=t.opacity;l.forEach((function(n){(n||"number"===typeof n)&&(e[n]=t[n])})),n=(0,i["default"])(n),r=(0,i["default"])(r),o=(0,i["default"])(o),n[3]*=s,r[3]*=s,o[3]*=s,e.fillStyle=(0,a.getColorFromRgbValue)(n),e.strokeStyle=(0,a.getColorFromRgbValue)(r),e.shadowColor=(0,a.getColorFromRgbValue)(o);var c=t.lineDash,u=t.shadowBlur;c&&(c=c.map((function(e){return e>=0?e:0})),e.setLineDash(c)),"number"===typeof u&&(e.shadowBlur=u>0?u:.001);var d=t.fontStyle,h=t.fontVarient,f=t.fontWeight,p=t.fontSize,g=t.fontFamily;e.font=d+" "+h+" "+f+" "+p+"px "+g}function h(e,t){if(f(t)){var n=t.gradientColor,r=t.gradientParams,o=t.gradientType,s=t.gradientWith,c=t.gradientStops,u=t.opacity;n=n.map((function(e){var t=e[3]*u,n=(0,i["default"])(e);return n[3]=t,n})),n=n.map((function(e){return(0,a.getColorFromRgbValue)(e)})),"auto"===c&&(c=p(n));var l=e["create".concat(o.slice(0,1).toUpperCase()+o.slice(1),"Gradient")].apply(e,(0,i["default"])(r));c.forEach((function(e,t){return l.addColorStop(e,n[t])})),e["".concat(s,"Style")]=l}}function f(e){var t=e.gradientColor,n=e.gradientParams,r=e.gradientType,i=e.gradientWith,o=e.gradientStops;if(!t||!n)return!1;if(1===t.length)return console.warn("The gradient needs to provide at least two colors"),!1;if("linear"!==r&&"radial"!==r)return console.warn("GradientType only supports linear or radial, current value is "+r),!1;var a=n.length;return"linear"===r&&4!==a||"radial"===r&&6!==a?(console.warn("The expected length of gradientParams is "+("linear"===r?"4":"6")),!1):"fill"!==i&&"stroke"!==i?(console.warn("GradientWith only supports fill or stroke, current value is "+i),!1):"auto"===o||o instanceof Array||(console.warn("gradientStops only supports 'auto' or Number Array ([0, .5, 1]), current value is "+o),!1)}function p(e){var t=1/(e.length-1);return e.map((function(e,n){return t*n}))}c.prototype.restoreTransform=function(e){e.restore()},c.prototype.update=function(e){this.colorProcessor(e),Object.assign(this,e)},c.prototype.getStyle=function(){var e=(0,s.deepClone)(this,!0);return this.colorProcessor(e,!0),e}},d139:function(e,t,n){"use strict";var r=n("ebb5"),i=n("b727").find,o=r.aTypedArray,a=r.exportTypedArrayMethod;a("find",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},d15d:function(e,t,n){var r=n("6d8b"),i=r.createHashMap,o=r.each;function a(e){var t=i();e.eachSeries((function(e){var n=e.get("stack");if(n){var r=t.get(n)||t.set(n,[]),i=e.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:e};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;r.length&&i.setCalculationInfo("stackedOnSeries",r[r.length-1].seriesModel),r.push(o)}})),t.each(s)}function s(e){o(e,(function(t,n){var r=[],i=[NaN,NaN],o=[t.stackResultDimension,t.stackedOverDimension],a=t.data,s=t.isStackedByIndex,c=a.map(o,(function(o,c,u){var l,d,h=a.get(t.stackedDimension,u);if(isNaN(h))return i;s?d=a.getRawIndex(u):l=a.get(t.stackedByDimension,u);for(var f=NaN,p=n-1;p>=0;p--){var g=e[p];if(s||(d=g.data.rawIndexOf(g.stackedByDimension,l)),d>=0){var m=g.data.getByRawIndex(g.stackResultDimension,d);if(h>=0&&m>0||h<=0&&m<0){h+=m,f=m;break}}}return r[0]=h,r[1]=f,r}));a.hostModel.setData(c),t.data=c}))}e.exports=a},d1e7:function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},d28b:function(e,t,n){var r=n("746f");r("iterator")},d28f:function(e,t,n){var r=n("3eba");n("84d5"),n("4650"),n("5e97");var i=n("903c"),o=n("6cb7");r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,i),o.registerSubTypeDefaulter("legend",(function(){return"plain"}))},d2a5:function(e,t,n){var r=n("3eba");r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},(function(){})),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},(function(){}))},d2bb:function(e,t,n){var r=n("e330"),i=n("825a"),o=n("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),e(n,[]),t=n instanceof Array}catch(a){}return function(n,r){return i(n),o(r),t?e(n,r):n.__proto__=r,n}}():void 0)},d2cf:function(e,t,n){var r=n("6d8b"),i=n("401b"),o=n("cb6d"),a=n("1fab"),s=n("607d"),c=n("0b44"),u="silent";function l(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:d}}function d(){s.stop(this.event)}function h(){}h.prototype.dispose=function(){};var f=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],p=function(e,t,n,r){a.call(this),this.storage=e,this.painter=t,this.painterRoot=r,n=n||new h,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,o.call(this),this.setHandlerProxy(n)};function g(e,t,n){if(e[e.rectHover?"rectContain":"contain"](t,n)){var r,i=e;while(i){if(i.clipPath&&!i.clipPath.contain(t,n))return!1;i.silent&&(r=!0),i=i.parent}return!r||u}return!1}function m(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}p.prototype={constructor:p,setHandlerProxy:function(e){this.proxy&&this.proxy.dispose(),e&&(r.each(f,(function(t){e.on&&e.on(t,this[t],this)}),this),e.handler=this),this.proxy=e},mousemove:function(e){var t=e.zrX,n=e.zrY,r=m(this,t,n),i=this._hovered,o=i.target;o&&!o.__zr&&(i=this.findHover(i.x,i.y),o=i.target);var a=this._hovered=r?{x:t,y:n}:this.findHover(t,n),s=a.target,c=this.proxy;c.setCursor&&c.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(i,"mouseout",e),this.dispatchToElement(a,"mousemove",e),s&&s!==o&&this.dispatchToElement(a,"mouseover",e)},mouseout:function(e){var t=e.zrEventControl,n=e.zrIsToLocalDOM;"only_globalout"!==t&&this.dispatchToElement(this._hovered,"mouseout",e),"no_globalout"!==t&&!n&&this.trigger("globalout",{type:"globalout",event:e})},resize:function(e){this._hovered={}},dispatch:function(e,t){var n=this[e];n&&n.call(this,t)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},dispatchToElement:function(e,t,n){e=e||{};var r=e.target;if(!r||!r.silent){var i="on"+t,o=l(t,e,n);while(r)if(r[i]&&(o.cancelBubble=r[i].call(r,o)),r.trigger(t,o),r=r.parent,o.cancelBubble)break;o.cancelBubble||(this.trigger(t,o),this.painter&&this.painter.eachOtherLayer((function(e){"function"===typeof e[i]&&e[i].call(e,o),e.trigger&&e.trigger(t,o)})))}},findHover:function(e,t,n){for(var r=this.storage.getDisplayList(),i={x:e,y:t},o=r.length-1;o>=0;o--){var a;if(r[o]!==n&&!r[o].ignore&&(a=g(r[o],e,t))&&(!i.topTarget&&(i.topTarget=r[o]),a!==u)){i.target=r[o];break}}return i},processGesture:function(e,t){this._gestureMgr||(this._gestureMgr=new c);var n=this._gestureMgr;"start"===t&&n.clear();var r=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if("end"===t&&n.clear(),r){var i=r.type;e.gestureEvent=i,this.dispatchToElement({target:r.target},i,r.event)}}},r.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(e){p.prototype[e]=function(t){var n,r,o=t.zrX,a=t.zrY,s=m(this,o,a);if("mouseup"===e&&s||(n=this.findHover(o,a),r=n.target),"mousedown"===e)this._downEl=r,this._downPoint=[t.zrX,t.zrY],this._upEl=r;else if("mouseup"===e)this._upEl=r;else if("click"===e){if(this._downEl!==this._upEl||!this._downPoint||i.dist(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,e,t)}})),r.mixin(p,a),r.mixin(p,o);var v=p;e.exports=v},d357:function(e,t,n){var r=n("6d8b"),i=r.each,o=n("1c5f"),a=o.simpleLayout,s=o.simpleLayoutEdge;function c(e,t){e.eachSeriesByType("graph",(function(e){var t=e.get("layout"),n=e.coordinateSystem;if(n&&"view"!==n.type){var r=e.getData(),o=[];i(n.dimensions,(function(e){o=o.concat(r.mapDimension(e,!0))}));for(var c=0;c<r.count();c++){for(var u=[],l=!1,d=0;d<o.length;d++){var h=r.get(o[d],c);isNaN(h)||(l=!0),u.push(h)}l?r.setItemLayout(c,n.dataToPoint(u)):r.setItemLayout(c,[NaN,NaN])}s(r.graph,e)}else t&&"none"!==t||a(e)}))}e.exports=c},d397:function(e,t,n){"use strict";function r(e){return void 0!==e&&null!==e}function i(e){var t=/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi;return t.test(e)}t.__esModule=!0,t.isDef=r,t.isKorean=i},d3a0:function(e,t,n){var r=n("3eba"),i=n("6d8b"),o=n("29a8"),a=n("2145"),s=o.toolbox.magicType,c="__ec_magicType_stack__";function u(e){this.model=e}u.defaultOption={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:i.clone(s.title),option:{},seriesIndex:{}};var l=u.prototype;l.getIcons=function(){var e=this.model,t=e.get("icon"),n={};return i.each(e.get("type"),(function(e){t[e]&&(n[e]=t[e])})),n};var d={line:function(e,t,n,r){if("bar"===e)return i.merge({id:t,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get("option.line")||{},!0)},bar:function(e,t,n,r){if("line"===e)return i.merge({id:t,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get("option.bar")||{},!0)},stack:function(e,t,n,r){var o=n.get("stack")===c;if("line"===e||"bar"===e)return r.setIconStatus("stack",o?"normal":"emphasis"),i.merge({id:t,stack:o?"":c},r.get("option.stack")||{},!0)}},h=[["line","bar"],["stack"]];l.onclick=function(e,t,n){var r=this.model,o=r.get("seriesIndex."+n);if(d[n]){var a,u={series:[]},l=function(t){var o=t.subType,a=t.id,s=d[n](o,a,t,r);s&&(i.defaults(s,t.option),u.series.push(s));var c=t.coordinateSystem;if(c&&"cartesian2d"===c.type&&("line"===n||"bar"===n)){var l=c.getAxesByScale("ordinal")[0];if(l){var h=l.dim,f=h+"Axis",p=e.queryComponents({mainType:f,index:t.get(name+"Index"),id:t.get(name+"Id")})[0],g=p.componentIndex;u[f]=u[f]||[];for(var m=0;m<=g;m++)u[f][g]=u[f][g]||{};u[f][g].boundaryGap="bar"===n}}};if(i.each(h,(function(e){i.indexOf(e,n)>=0&&i.each(e,(function(e){r.setIconStatus(e,"normal")}))})),r.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:null==o?null:{seriesIndex:o}},l),"stack"===n){var f=u.series&&u.series[0]&&u.series[0].stack===c;a=f?i.merge({stack:s.title.tiled},s.title):i.clone(s.title)}t.dispatchAction({type:"changeMagicType",currentType:n,newOption:u,newTitle:a,featureName:"magicType"})}},r.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(e,t){t.mergeOption(e.newOption)})),a.register("magicType",u);var f=u;e.exports=f},d3a4:function(e,t,n){var r,i=n("22d1"),o="urn:schemas-microsoft-com:vml",a="undefined"===typeof window?null:window,s=!1,c=a&&a.document;function u(e){return r(e)}if(c&&!i.canvasSupported)try{!c.namespaces.zrvml&&c.namespaces.add("zrvml",o),r=function(e){return c.createElement("<zrvml:"+e+' class="zrvml">')}}catch(d){r=function(e){return c.createElement("<"+e+' xmlns="'+o+'" class="zrvml">')}}function l(){if(!s&&c){s=!0;var e=c.styleSheets;e.length<31?c.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):e[0].addRule(".zrvml","behavior:url(#default#VML)")}}t.doc=c,t.createNode=u,t.initVML=l},d3b7:function(e,t,n){var r=n("00ee"),i=n("6eeb"),o=n("b041");r||i(Object.prototype,"toString",o,{unsafe:!0})},d3f4:function(e,t){function n(e){return{seriesType:e,reset:function(e,t){var n=t.findComponents({mainType:"legend"});if(n&&n.length){var r=e.getData();r.filterSelf((function(e){for(var t=r.getName(e),i=0;i<n.length;i++)if(!n[i].isSelected(t))return!1;return!0}))}}}}e.exports=n},d44e:function(e,t,n){var r=n("9bf2").f,i=n("1a2d"),o=n("b622"),a=o("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!i(e,a)&&r(e,a,{configurable:!0,value:t})}},d498:function(e,t,n){var r=n("cbe5"),i=n("4fac"),o=r.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(e,t){i.buildPath(e,t,!1)}});e.exports=o},d4af:function(e,t,n){"use strict";var r=n("8eb7"),i=n("7b3e"),o=10,a=40,s=800;function c(e){var t=0,n=0,r=0,i=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=t*o,i=n*o,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||i)&&e.deltaMode&&(1==e.deltaMode?(r*=a,i*=a):(r*=s,i*=s)),r&&!t&&(t=r<1?-1:1),i&&!n&&(n=i<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:i}}c.getEventType=function(){return r.firefox()?"DOMMouseScroll":i("wheel")?"wheel":"mousewheel"},e.exports=c},d4b1:function(e,t,n){var r=n("3eba"),i=n("17d6"),o=r.extendComponentView({type:"axisPointer",render:function(e,t,n){var r=t.getComponent("tooltip"),o=e.get("triggerOn")||r&&r.get("triggerOn")||"mousemove|click";i.register("axisPointer",n,(function(e,t,n){"none"!==o&&("leave"===e||o.indexOf(e)>=0)&&n({type:"updateAxisPointer",currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})}))},remove:function(e,t){i.unregister(t.getZr(),"axisPointer"),o.superApply(this._model,"remove",arguments)},dispose:function(e,t){i.unregister("axisPointer",t),o.superApply(this._model,"dispose",arguments)}}),a=o;e.exports=a},d4c3:function(e,t,n){var r=n("342f"),i=n("da84");e.exports=/ipad|iphone|ipod/i.test(r)&&void 0!==i.Pebble},d4c6:function(e,t,n){var r=n("cbe5"),i=r.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var e=this.__dirtyPath,t=this.shape.paths,n=0;n<t.length;n++)e=e||t[n].__dirtyPath;this.__dirtyPath=e,this.__dirty=this.__dirty||e},beforeBrush:function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(t[0],t[1],e[n].segmentIgnoreThreshold)},buildPath:function(e,t){for(var n=t.paths||[],r=0;r<n.length;r++)n[r].buildPath(e,n[r].shape,!0)},afterBrush:function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),r.prototype.getBoundingRect.call(this)}});e.exports=i},d4d1:function(e,t,n){var r=n("cbe5"),i=n("401b"),o=n("897a"),a=i.min,s=i.max,c=i.scaleAndAdd,u=i.copy,l=[],d=[],h=[];function f(e){return isNaN(e[0])||isNaN(e[1])}function p(e,t,n,r,i,o,a,s,c,u,l){return"none"!==u&&u?g.apply(this,arguments):m.apply(this,arguments)}function g(e,t,n,r,i,o,a,s,c,l,p){for(var g=0,m=n,v=0;v<r;v++){var y=t[m];if(m>=i||m<0)break;if(f(y)){if(p){m+=o;continue}break}if(m===n)e[o>0?"moveTo":"lineTo"](y[0],y[1]);else if(c>0){var _=t[g],b="y"===l?1:0,S=(y[b]-_[b])*c;u(d,_),d[b]=_[b]+S,u(h,y),h[b]=y[b]-S,e.bezierCurveTo(d[0],d[1],h[0],h[1],y[0],y[1])}else e.lineTo(y[0],y[1]);g=m,m+=o}return v}function m(e,t,n,r,o,p,g,m,v,y,_){for(var b=0,S=n,x=0;x<r;x++){var w=t[S];if(S>=o||S<0)break;if(f(w)){if(_){S+=p;continue}break}if(S===n)e[p>0?"moveTo":"lineTo"](w[0],w[1]),u(d,w);else if(v>0){var I=S+p,C=t[I];if(_)while(C&&f(t[I]))I+=p,C=t[I];var M=.5,T=t[b];C=t[I];if(!C||f(C))u(h,w);else{var k,E;if(f(C)&&!_&&(C=w),i.sub(l,C,T),"x"===y||"y"===y){var A="x"===y?0:1;k=Math.abs(w[A]-T[A]),E=Math.abs(w[A]-C[A])}else k=i.dist(w,T),E=i.dist(w,C);M=E/(E+k),c(h,w,l,-v*(1-M))}a(d,d,m),s(d,d,g),a(h,h,m),s(h,h,g),e.bezierCurveTo(d[0],d[1],h[0],h[1],w[0],w[1]),c(d,w,l,v*M)}else e.lineTo(w[0],w[1]);b=S,S+=p}return x}function v(e,t){var n=[1/0,1/0],r=[-1/0,-1/0];if(t)for(var i=0;i<e.length;i++){var o=e[i];o[0]<n[0]&&(n[0]=o[0]),o[1]<n[1]&&(n[1]=o[1]),o[0]>r[0]&&(r[0]=o[0]),o[1]>r[1]&&(r[1]=o[1])}return{min:t?n:r,max:t?r:n}}var y=r.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},brush:o(r.prototype.brush),buildPath:function(e,t){var n=t.points,r=0,i=n.length,o=v(n,t.smoothConstraint);if(t.connectNulls){for(;i>0;i--)if(!f(n[i-1]))break;for(;r<i;r++)if(!f(n[r]))break}while(r<i)r+=p(e,n,r,i,i,1,o.min,o.max,t.smooth,t.smoothMonotone,t.connectNulls)+1}}),_=r.extend({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},brush:o(r.prototype.brush),buildPath:function(e,t){var n=t.points,r=t.stackedOnPoints,i=0,o=n.length,a=t.smoothMonotone,s=v(n,t.smoothConstraint),c=v(r,t.smoothConstraint);if(t.connectNulls){for(;o>0;o--)if(!f(n[o-1]))break;for(;i<o;i++)if(!f(n[i]))break}while(i<o){var u=p(e,n,i,o,o,1,s.min,s.max,t.smooth,a,t.connectNulls);p(e,r,i+u-1,u,o,-1,c.min,c.max,t.stackedOnSmooth,a,t.connectNulls),i+=u+1,e.closePath()}}});t.Polyline=y,t.Polygon=_},d51b:function(e,t){var n=function(){this.head=null,this.tail=null,this._len=0},r=n.prototype;r.insert=function(e){var t=new i(e);return this.insertEntry(t),t},r.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},r.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},r.len=function(){return this._len},r.clear=function(){this.head=this.tail=null,this._len=0};var i=function(e){this.value=e,this.next,this.prev},o=function(e){this._list=new n,this._map={},this._maxSize=e||10,this._lastRemovedEntry=null},a=o.prototype;a.put=function(e,t){var n=this._list,r=this._map,o=null;if(null==r[e]){var a=n.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var c=n.head;n.remove(c),delete r[c.key],o=c.value,this._lastRemovedEntry=c}s?s.value=t:s=new i(t),s.key=e,n.insertEntry(s),r[e]=s}return o},a.get=function(e){var t=this._map[e],n=this._list;if(null!=t)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},a.clear=function(){this._list.clear(),this._map={}};var s=o;e.exports=s},d51d:function(e,t,n){},d58f:function(e,t,n){var r=n("da84"),i=n("59ed"),o=n("7b0b"),a=n("44ad"),s=n("07fa"),c=r.TypeError,u=function(e){return function(t,n,r,u){i(n);var l=o(t),d=a(l),h=s(l),f=e?h-1:0,p=e?-1:1;if(r<2)while(1){if(f in d){u=d[f],f+=p;break}if(f+=p,e?f<0:h<=f)throw c("Reduce of empty array with no initial value")}for(;e?f>=0:h>f;f+=p)f in d&&(u=n(u,d[f],f,l));return u}};e.exports={left:u(!1),right:u(!0)}},d5b7:function(e,t,n){var r=n("de00"),i=n("1fab"),o=n("0cde"),a=n("bd6b"),s=n("6d8b"),c=function(e){o.call(this,e),i.call(this,e),a.call(this,e),this.id=e.id||r()};c.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(e,t){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=e,n[5]+=t,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(e,t){},attrKV:function(e,t){if("position"===e||"scale"===e||"origin"===e){if(t){var n=this[e];n||(n=this[e]=[]),n[0]=t[0],n[1]=t[1]}}else this[e]=t},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(e,t){if("string"===typeof e)this.attrKV(e,t);else if(s.isObject(e))for(var n in e)e.hasOwnProperty(n)&&this.attrKV(n,e[n]);return this.dirty(!1),this},setClipPath:function(e){var t=this.__zr;t&&e.addSelfToZr(t),this.clipPath&&this.clipPath!==e&&this.removeClipPath(),this.clipPath=e,e.__zr=t,e.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var e=this.clipPath;e&&(e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this.clipPath&&this.clipPath.addSelfToZr(e)},removeSelfFromZr:function(e){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this.clipPath&&this.clipPath.removeSelfFromZr(e)}},s.mixin(c,a),s.mixin(c,o),s.mixin(c,i);var u=c;e.exports=u},d5d6:function(e,t,n){"use strict";var r=n("ebb5"),i=n("b727").forEach,o=r.aTypedArray,a=r.exportTypedArrayMethod;a("forEach",(function(e){i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},d6d6:function(e,t,n){var r=n("da84"),i=r.TypeError;e.exports=function(e,t){if(e<t)throw i("Not enough arguments");return e}},d6d9:function(e,t,n){var r=n("3014"),i=r.extend({type:"series.pictorialBar",dependencies:["grid"],defaultOption:{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,hoverAnimation:!1},getInitialData:function(e){return e.stack=null,i.superApply(this,"getInitialData",arguments)}}),o=i;e.exports=o},d6ef:function(e,t,n){var r=n("3eba"),i={type:"selectDataRange",event:"dataRangeSelected",update:"update"};r.registerAction(i,(function(e,t){t.eachComponent({mainType:"visualMap",query:e},(function(t){t.setSelected(e.selected)}))}))},d716:function(e,t,n){var r=n("3eba"),i=n("6d8b");n("aa01"),n("340d"),n("44fb");var o=n("98e7"),a=n("cb73"),s=n("d3f4");r.registerVisual(i.curry(o,"sunburst")),r.registerLayout(i.curry(a,"sunburst")),r.registerProcessor(i.curry(s,"sunburst"))},d747:function(e,t,n){var r=n("3eba"),i=n("d81e"),o=i.updateCenterAndZoom;n("d2a5");var a={type:"graphRoam",event:"graphRoam",update:"none"};r.registerAction(a,(function(e,t){t.eachComponent({mainType:"series",query:e},(function(t){var n=t.coordinateSystem,r=o(n,e);t.setCenter&&t.setCenter(r.center),t.setZoom&&t.setZoom(r.zoom)}))}))},d784:function(e,t,n){"use strict";n("ac1f");var r=n("e330"),i=n("6eeb"),o=n("9263"),a=n("d039"),s=n("b622"),c=n("9112"),u=s("species"),l=RegExp.prototype;e.exports=function(e,t,n,d){var h=s(e),f=!a((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),p=f&&!a((function(){var t=!1,n=/a/;return"split"===e&&(n={},n.constructor={},n.constructor[u]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return t=!0,null},n[h](""),!t}));if(!f||!p||n){var g=r(/./[h]),m=t(h,""[e],(function(e,t,n,i,a){var s=r(e),c=t.exec;return c===o||c===l.exec?f&&!a?{done:!0,value:g(t,n,i)}:{done:!0,value:s(n,t,i)}:{done:!1}}));i(String.prototype,e,m[0]),i(l,h,m[1])}d&&c(l[h],"sham",!0)}},d7d1:function(e,t,n){"use strict";var r;(function(i){var o={},a=/d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,s="\\d\\d?",c="\\d{3}",u="\\d{4}",l="[^\\s]+",d=/\[([^]*?)\]/gm,h=function(){};function f(e){return e.replace(/[|\\{()[^$+*?.-]/g,"\\$&")}function p(e,t){for(var n=[],r=0,i=e.length;r<i;r++)n.push(e[r].substr(0,t));return n}function g(e){return function(t,n,r){var i=r[e].indexOf(n.charAt(0).toUpperCase()+n.substr(1).toLowerCase());~i&&(t.month=i)}}function m(e,t){e=String(e),t=t||2;while(e.length<t)e="0"+e;return e}var v=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],y=["January","February","March","April","May","June","July","August","September","October","November","December"],_=p(y,3),b=p(v,3);o.i18n={dayNamesShort:b,dayNames:v,monthNamesShort:_,monthNames:y,amPm:["am","pm"],DoFn:function(e){return e+["th","st","nd","rd"][e%10>3?0:(e-e%10!==10)*e%10]}};var S={D:function(e){return e.getDay()},DD:function(e){return m(e.getDay())},Do:function(e,t){return t.DoFn(e.getDate())},d:function(e){return e.getDate()},dd:function(e){return m(e.getDate())},ddd:function(e,t){return t.dayNamesShort[e.getDay()]},dddd:function(e,t){return t.dayNames[e.getDay()]},M:function(e){return e.getMonth()+1},MM:function(e){return m(e.getMonth()+1)},MMM:function(e,t){return t.monthNamesShort[e.getMonth()]},MMMM:function(e,t){return t.monthNames[e.getMonth()]},yy:function(e){return m(String(e.getFullYear()),4).substr(2)},yyyy:function(e){return m(e.getFullYear(),4)},h:function(e){return e.getHours()%12||12},hh:function(e){return m(e.getHours()%12||12)},H:function(e){return e.getHours()},HH:function(e){return m(e.getHours())},m:function(e){return e.getMinutes()},mm:function(e){return m(e.getMinutes())},s:function(e){return e.getSeconds()},ss:function(e){return m(e.getSeconds())},S:function(e){return Math.round(e.getMilliseconds()/100)},SS:function(e){return m(Math.round(e.getMilliseconds()/10),2)},SSS:function(e){return m(e.getMilliseconds(),3)},a:function(e,t){return e.getHours()<12?t.amPm[0]:t.amPm[1]},A:function(e,t){return e.getHours()<12?t.amPm[0].toUpperCase():t.amPm[1].toUpperCase()},ZZ:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+m(100*Math.floor(Math.abs(t)/60)+Math.abs(t)%60,4)}},x={d:[s,function(e,t){e.day=t}],Do:[s+l,function(e,t){e.day=parseInt(t,10)}],M:[s,function(e,t){e.month=t-1}],yy:[s,function(e,t){var n=new Date,r=+(""+n.getFullYear()).substr(0,2);e.year=""+(t>68?r-1:r)+t}],h:[s,function(e,t){e.hour=t}],m:[s,function(e,t){e.minute=t}],s:[s,function(e,t){e.second=t}],yyyy:[u,function(e,t){e.year=t}],S:["\\d",function(e,t){e.millisecond=100*t}],SS:["\\d{2}",function(e,t){e.millisecond=10*t}],SSS:[c,function(e,t){e.millisecond=t}],D:[s,h],ddd:[l,h],MMM:[l,g("monthNamesShort")],MMMM:[l,g("monthNames")],a:[l,function(e,t,n){var r=t.toLowerCase();r===n.amPm[0]?e.isPm=!1:r===n.amPm[1]&&(e.isPm=!0)}],ZZ:["[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z",function(e,t){var n,r=(t+"").match(/([+-]|\d\d)/gi);r&&(n=60*r[1]+parseInt(r[2],10),e.timezoneOffset="+"===r[0]?n:-n)}]};x.dd=x.d,x.dddd=x.ddd,x.DD=x.D,x.mm=x.m,x.hh=x.H=x.HH=x.h,x.MM=x.M,x.ss=x.s,x.A=x.a,o.masks={default:"ddd MMM dd yyyy HH:mm:ss",shortDate:"M/D/yy",mediumDate:"MMM d, yyyy",longDate:"MMMM d, yyyy",fullDate:"dddd, MMMM d, yyyy",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},o.format=function(e,t,n){var r=n||o.i18n;if("number"===typeof e&&(e=new Date(e)),"[object Date]"!==Object.prototype.toString.call(e)||isNaN(e.getTime()))throw new Error("Invalid Date in fecha.format");t=o.masks[t]||t||o.masks["default"];var i=[];return t=t.replace(d,(function(e,t){return i.push(t),"@@@"})),t=t.replace(a,(function(t){return t in S?S[t](e,r):t.slice(1,t.length-1)})),t.replace(/@@@/g,(function(){return i.shift()}))},o.parse=function(e,t,n){var r=n||o.i18n;if("string"!==typeof t)throw new Error("Invalid format in fecha.parse");if(t=o.masks[t]||t,e.length>1e3)return null;var i={},s=[],c=[];t=t.replace(d,(function(e,t){return c.push(t),"@@@"}));var u=f(t).replace(a,(function(e){if(x[e]){var t=x[e];return s.push(t[1]),"("+t[0]+")"}return e}));u=u.replace(/@@@/g,(function(){return c.shift()}));var l=e.match(new RegExp(u,"i"));if(!l)return null;for(var h=1;h<l.length;h++)s[h-1](i,l[h],r);var p,g=new Date;return!0===i.isPm&&null!=i.hour&&12!==+i.hour?i.hour=+i.hour+12:!1===i.isPm&&12===+i.hour&&(i.hour=0),null!=i.timezoneOffset?(i.minute=+(i.minute||0)-+i.timezoneOffset,p=new Date(Date.UTC(i.year||g.getFullYear(),i.month||0,i.day||1,i.hour||0,i.minute||0,i.second||0,i.millisecond||0))):p=new Date(i.year||g.getFullYear(),i.month||0,i.day||1,i.hour||0,i.minute||0,i.second||0,i.millisecond||0),p},e.exports?e.exports=o:(r=function(){return o}.call(t,n,t,e),void 0===r||(e.exports=r))})()},d81d:function(e,t,n){"use strict";var r=n("23e7"),i=n("b727").map,o=n("1dde"),a=o("map");r({target:"Array",proto:!0,forced:!a},{map:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},d81e:function(e,t){function n(e,t,n){var r=e.getZoom(),i=e.getCenter(),o=t.zoom,a=e.dataToPoint(i);if(null!=t.dx&&null!=t.dy){a[0]-=t.dx,a[1]-=t.dy;i=e.pointToData(a);e.setCenter(i)}if(null!=o){if(n){var s=n.min||0,c=n.max||1/0;o=Math.max(Math.min(r*o,c),s)/r}e.scale[0]*=o,e.scale[1]*=o;var u=e.position,l=(t.originX-u[0])*(o-1),d=(t.originY-u[1])*(o-1);u[0]-=l,u[1]-=d,e.updateTransform();i=e.pointToData(a);e.setCenter(i),e.setZoom(o*r)}return{center:e.getCenter(),zoom:e.getZoom()}}t.updateCenterAndZoom=n},d833:function(e,t,n){var r=n("20c8"),i=n("9680"),o=n("e7d2"),a=n("68ab"),s=n("9f51"),c=n("857d"),u=c.normalizeRadian,l=n("4a3f"),d=n("8728"),h=r.CMD,f=2*Math.PI,p=1e-4;function g(e,t){return Math.abs(e-t)<p}var m=[-1,-1,-1],v=[-1,-1];function y(){var e=v[0];v[0]=v[1],v[1]=e}function _(e,t,n,r,i,o,a,s,c,u){if(u>t&&u>r&&u>o&&u>s||u<t&&u<r&&u<o&&u<s)return 0;var d=l.cubicRootAt(t,r,o,s,u,m);if(0===d)return 0;for(var h,f,p=0,g=-1,_=0;_<d;_++){var b=m[_],S=0===b||1===b?.5:1,x=l.cubicAt(e,n,i,a,b);x<c||(g<0&&(g=l.cubicExtrema(t,r,o,s,v),v[1]<v[0]&&g>1&&y(),h=l.cubicAt(t,r,o,s,v[0]),g>1&&(f=l.cubicAt(t,r,o,s,v[1]))),2===g?b<v[0]?p+=h<t?S:-S:b<v[1]?p+=f<h?S:-S:p+=s<f?S:-S:b<v[0]?p+=h<t?S:-S:p+=s<h?S:-S)}return p}function b(e,t,n,r,i,o,a,s){if(s>t&&s>r&&s>o||s<t&&s<r&&s<o)return 0;var c=l.quadraticRootAt(t,r,o,s,m);if(0===c)return 0;var u=l.quadraticExtremum(t,r,o);if(u>=0&&u<=1){for(var d=0,h=l.quadraticAt(t,r,o,u),f=0;f<c;f++){var p=0===m[f]||1===m[f]?.5:1,g=l.quadraticAt(e,n,i,m[f]);g<a||(m[f]<u?d+=h<t?p:-p:d+=o<h?p:-p)}return d}p=0===m[0]||1===m[0]?.5:1,g=l.quadraticAt(e,n,i,m[0]);return g<a?0:o<t?p:-p}function S(e,t,n,r,i,o,a,s){if(s-=t,s>n||s<-n)return 0;var c=Math.sqrt(n*n-s*s);m[0]=-c,m[1]=c;var l=Math.abs(r-i);if(l<1e-4)return 0;if(l%f<1e-4){r=0,i=f;var d=o?1:-1;return a>=m[0]+e&&a<=m[1]+e?d:0}if(o){c=r;r=u(i),i=u(c)}else r=u(r),i=u(i);r>i&&(i+=f);for(var h=0,p=0;p<2;p++){var g=m[p];if(g+e>a){var v=Math.atan2(s,g);d=o?1:-1;v<0&&(v=f+v),(v>=r&&v<=i||v+f>=r&&v+f<=i)&&(v>Math.PI/2&&v<1.5*Math.PI&&(d=-d),h+=d)}}return h}function x(e,t,n,r,c){for(var u=0,l=0,f=0,p=0,m=0,v=0;v<e.length;){var y=e[v++];switch(y===h.M&&v>1&&(n||(u+=d(l,f,p,m,r,c))),1===v&&(l=e[v],f=e[v+1],p=l,m=f),y){case h.M:p=e[v++],m=e[v++],l=p,f=m;break;case h.L:if(n){if(i.containStroke(l,f,e[v],e[v+1],t,r,c))return!0}else u+=d(l,f,e[v],e[v+1],r,c)||0;l=e[v++],f=e[v++];break;case h.C:if(n){if(o.containStroke(l,f,e[v++],e[v++],e[v++],e[v++],e[v],e[v+1],t,r,c))return!0}else u+=_(l,f,e[v++],e[v++],e[v++],e[v++],e[v],e[v+1],r,c)||0;l=e[v++],f=e[v++];break;case h.Q:if(n){if(a.containStroke(l,f,e[v++],e[v++],e[v],e[v+1],t,r,c))return!0}else u+=b(l,f,e[v++],e[v++],e[v],e[v+1],r,c)||0;l=e[v++],f=e[v++];break;case h.A:var x=e[v++],w=e[v++],I=e[v++],C=e[v++],M=e[v++],T=e[v++];v+=1;var k=1-e[v++],E=Math.cos(M)*I+x,A=Math.sin(M)*C+w;v>1?u+=d(l,f,E,A,r,c):(p=E,m=A);var D=(r-x)*C/I+x;if(n){if(s.containStroke(x,w,C,M,M+T,k,t,D,c))return!0}else u+=S(x,w,C,M,M+T,k,D,c);l=Math.cos(M+T)*I+x,f=Math.sin(M+T)*C+w;break;case h.R:p=l=e[v++],m=f=e[v++];var O=e[v++],R=e[v++];E=p+O,A=m+R;if(n){if(i.containStroke(p,m,E,m,t,r,c)||i.containStroke(E,m,E,A,t,r,c)||i.containStroke(E,A,p,A,t,r,c)||i.containStroke(p,A,p,m,t,r,c))return!0}else u+=d(E,m,E,A,r,c),u+=d(p,A,p,m,r,c);break;case h.Z:if(n){if(i.containStroke(l,f,p,m,t,r,c))return!0}else u+=d(l,f,p,m,r,c);l=p,f=m;break}}return n||g(f,m)||(u+=d(l,f,p,m,r,c)||0),0!==u}function w(e,t,n){return x(e,0,!1,t,n)}function I(e,t,n,r){return x(e,t,!0,n,r)}t.contain=w,t.containStroke=I},d86b:function(e,t,n){var r=n("d039");e.exports=r((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},d925:function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},d940:function(e,t,n){"use strict";t.__esModule=!0,t.validateRangeInOneMonth=t.extractTimeFormat=t.extractDateFormat=t.nextYear=t.prevYear=t.nextMonth=t.prevMonth=t.changeYearMonthAndClampDate=t.timeWithinRange=t.limitTimeRange=t.clearMilliseconds=t.clearTime=t.modifyWithTimeString=t.modifyTime=t.modifyDate=t.range=t.getRangeMinutes=t.getMonthDays=t.getPrevMonthLastDays=t.getRangeHours=t.getWeekNumber=t.getStartDateOfMonth=t.nextDate=t.prevDate=t.getFirstDayOfMonth=t.getDayCountOfYear=t.getDayCountOfMonth=t.parseDate=t.formatDate=t.isDateObject=t.isDate=t.toDate=t.getI18nSettings=void 0;var r=n("d7d1"),i=a(r),o=n("4897");function a(e){return e&&e.__esModule?e:{default:e}}var s=["sun","mon","tue","wed","thu","fri","sat"],c=["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"],u=function(e,t){for(var n=[],r=e;r<=t;r++)n.push(r);return n},l=t.getI18nSettings=function(){return{dayNamesShort:s.map((function(e){return(0,o.t)("el.datepicker.weeks."+e)})),dayNames:s.map((function(e){return(0,o.t)("el.datepicker.weeks."+e)})),monthNamesShort:c.map((function(e){return(0,o.t)("el.datepicker.months."+e)})),monthNames:c.map((function(e,t){return(0,o.t)("el.datepicker.month"+(t+1))})),amPm:["am","pm"]}},d=t.toDate=function(e){return h(e)?new Date(e):null},h=t.isDate=function(e){return null!==e&&void 0!==e&&(!isNaN(new Date(e).getTime())&&!Array.isArray(e))},f=(t.isDateObject=function(e){return e instanceof Date},t.formatDate=function(e,t){return e=d(e),e?i.default.format(e,t||"yyyy-MM-dd",l()):""},t.parseDate=function(e,t){return i.default.parse(e,t||"yyyy-MM-dd",l())}),p=t.getDayCountOfMonth=function(e,t){return 3===t||5===t||8===t||10===t?30:1===t?e%4===0&&e%100!==0||e%400===0?29:28:31},g=(t.getDayCountOfYear=function(e){var t=e%400===0||e%100!==0&&e%4===0;return t?366:365},t.getFirstDayOfMonth=function(e){var t=new Date(e.getTime());return t.setDate(1),t.getDay()},t.prevDate=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Date(e.getFullYear(),e.getMonth(),e.getDate()-t)});t.nextDate=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return new Date(e.getFullYear(),e.getMonth(),e.getDate()+t)},t.getStartDateOfMonth=function(e,t){var n=new Date(e,t,1),r=n.getDay();return g(n,0===r?7:r)},t.getWeekNumber=function(e){if(!h(e))return null;var t=new Date(e.getTime());t.setHours(0,0,0,0),t.setDate(t.getDate()+3-(t.getDay()+6)%7);var n=new Date(t.getFullYear(),0,4);return 1+Math.round(((t.getTime()-n.getTime())/864e5-3+(n.getDay()+6)%7)/7)},t.getRangeHours=function(e){var t=[],n=[];if((e||[]).forEach((function(e){var t=e.map((function(e){return e.getHours()}));n=n.concat(u(t[0],t[1]))})),n.length)for(var r=0;r<24;r++)t[r]=-1===n.indexOf(r);else for(var i=0;i<24;i++)t[i]=!1;return t},t.getPrevMonthLastDays=function(e,t){if(t<=0)return[];var n=new Date(e.getTime());n.setDate(0);var r=n.getDate();return v(t).map((function(e,n){return r-(t-n-1)}))},t.getMonthDays=function(e){var t=new Date(e.getFullYear(),e.getMonth()+1,0),n=t.getDate();return v(n).map((function(e,t){return t+1}))};function m(e,t,n,r){for(var i=t;i<n;i++)e[i]=r}t.getRangeMinutes=function(e,t){var n=new Array(60);return e.length>0?e.forEach((function(e){var r=e[0],i=e[1],o=r.getHours(),a=r.getMinutes(),s=i.getHours(),c=i.getMinutes();o===t&&s!==t?m(n,a,60,!0):o===t&&s===t?m(n,a,c+1,!0):o!==t&&s===t?m(n,0,c+1,!0):o<t&&s>t&&m(n,0,60,!0)})):m(n,0,60,!0),n};var v=t.range=function(e){return Array.apply(null,{length:e}).map((function(e,t){return t}))},y=t.modifyDate=function(e,t,n,r){return new Date(t,n,r,e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())},_=t.modifyTime=function(e,t,n,r){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),t,n,r,e.getMilliseconds())},b=(t.modifyWithTimeString=function(e,t){return null!=e&&t?(t=f(t,"HH:mm:ss"),_(e,t.getHours(),t.getMinutes(),t.getSeconds())):e},t.clearTime=function(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())},t.clearMilliseconds=function(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),0)},t.limitTimeRange=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"HH:mm:ss";if(0===t.length)return e;var r=function(e){return i.default.parse(i.default.format(e,n),n)},o=r(e),a=t.map((function(e){return e.map(r)}));if(a.some((function(e){return o>=e[0]&&o<=e[1]})))return e;var s=a[0][0],c=a[0][0];a.forEach((function(e){s=new Date(Math.min(e[0],s)),c=new Date(Math.max(e[1],s))}));var u=o<s?s:c;return y(u,e.getFullYear(),e.getMonth(),e.getDate())}),S=(t.timeWithinRange=function(e,t,n){var r=b(e,t,n);return r.getTime()===e.getTime()},t.changeYearMonthAndClampDate=function(e,t,n){var r=Math.min(e.getDate(),p(t,n));return y(e,t,n,r)});t.prevMonth=function(e){var t=e.getFullYear(),n=e.getMonth();return 0===n?S(e,t-1,11):S(e,t,n-1)},t.nextMonth=function(e){var t=e.getFullYear(),n=e.getMonth();return 11===n?S(e,t+1,0):S(e,t,n+1)},t.prevYear=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=e.getFullYear(),r=e.getMonth();return S(e,n-t,r)},t.nextYear=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=e.getFullYear(),r=e.getMonth();return S(e,n+t,r)},t.extractDateFormat=function(e){return e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim()},t.extractTimeFormat=function(e){return e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?y{2,4}/g,"").trim()},t.validateRangeInOneMonth=function(e,t){return e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}},d998:function(e,t,n){var r=n("342f");e.exports=/MSIE|Trident/.test(r)},d9b5:function(e,t,n){var r=n("da84"),i=n("d066"),o=n("1626"),a=n("3a9b"),s=n("fdbf"),c=r.Object;e.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=i("Symbol");return o(t)&&a(t.prototype,c(e))}},d9d0:function(e,t,n){var r=n("6d8b"),i=n("1687"),o=n("f934"),a=n("697e"),s=n("0f55"),c=n("2306"),u=n("3842"),l=n("ef6a"),d=r.each,h=Math.min,f=Math.max,p=Math.floor,g=Math.ceil,m=u.round,v=Math.PI;function y(e,t,n){this._axesMap=r.createHashMap(),this._axesLayout={},this.dimensions=e.dimensions,this._rect,this._model=e,this._init(e,t,n)}function _(e,t){return h(f(e,t[0]),t[1])}function b(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function S(e,t){var n,r,i=t.layoutLength,o=t.axisExpandWidth,a=t.axisCount,s=t.axisCollapseWidth,c=t.winInnerIndices,u=s,l=!1;return e<c[0]?(n=e*s,r=s):e<=c[1]?(n=t.axisExpandWindow0Pos+e*o-t.axisExpandWindow[0],u=o,l=!0):(n=i-(a-1-e)*s,r=s),{position:n,axisNameAvailableWidth:u,axisLabelShow:l,nameTruncateMaxWidth:r}}y.prototype={type:"parallel",constructor:y,_init:function(e,t,n){var r=e.dimensions,i=e.parallelAxisIndex;d(r,(function(e,n){var r=i[n],o=t.getComponent("parallelAxis",r),c=this._axesMap.set(e,new s(e,a.createScaleByModel(o),[0,0],o.get("type"),r)),u="category"===c.type;c.onBand=u&&o.get("boundaryGap"),c.inverse=o.get("inverse"),o.axis=c,c.model=o,c.coordinateSystem=o.coordinateSystem=this}),this)},update:function(e,t){this._updateAxesFromSeries(this._model,e)},containPoint:function(e){var t=this._makeLayoutInfo(),n=t.axisBase,r=t.layoutBase,i=t.pixelDimIndex,o=e[1-i],a=e[i];return o>=n&&o<=n+t.axisLength&&a>=r&&a<=r+t.layoutLength},getModel:function(){return this._model},_updateAxesFromSeries:function(e,t){t.eachSeries((function(n){if(e.contains(n,t)){var r=n.getData();d(this.dimensions,(function(e){var t=this._axesMap.get(e);t.scale.unionExtentFromData(r,r.mapDimension(e)),a.niceScaleExtent(t.scale,t.model)}),this)}}),this)},resize:function(e,t){this._rect=o.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},getRect:function(){return this._rect},_makeLayoutInfo:function(){var e,t=this._model,n=this._rect,r=["x","y"],i=["width","height"],o=t.get("layout"),a="horizontal"===o?0:1,s=n[i[a]],c=[0,s],u=this.dimensions.length,l=_(t.get("axisExpandWidth"),c),d=_(t.get("axisExpandCount")||0,[0,u]),h=t.get("axisExpandable")&&u>3&&u>d&&d>1&&l>0&&s>0,f=t.get("axisExpandWindow");if(f)e=_(f[1]-f[0],c),f[1]=f[0]+e;else{e=_(l*(d-1),c);var v=t.get("axisExpandCenter")||p(u/2);f=[l*v-e/2],f[1]=f[0]+e}var y=(s-e)/(u-d);y<3&&(y=0);var b=[p(m(f[0]/l,1))+1,g(m(f[1]/l,1))-1],S=y/l*f[0];return{layout:o,pixelDimIndex:a,layoutBase:n[r[a]],layoutLength:s,axisBase:n[r[1-a]],axisLength:n[i[1-a]],axisExpandable:h,axisExpandWidth:l,axisCollapseWidth:y,axisExpandWindow:f,axisCount:u,winInnerIndices:b,axisExpandWindow0Pos:S}},_layoutAxes:function(){var e=this._rect,t=this._axesMap,n=this.dimensions,r=this._makeLayoutInfo(),o=r.layout;t.each((function(e){var t=[0,r.axisLength],n=e.inverse?1:0;e.setExtent(t[n],t[1-n])})),d(n,(function(t,n){var a=(r.axisExpandable?S:b)(n,r),s={horizontal:{x:a.position,y:r.axisLength},vertical:{x:0,y:a.position}},c={horizontal:v/2,vertical:0},u=[s[o].x+e.x,s[o].y+e.y],l=c[o],d=i.create();i.rotate(d,d,l),i.translate(d,d,u),this._axesLayout[t]={position:u,rotation:l,transform:d,axisNameAvailableWidth:a.axisNameAvailableWidth,axisLabelShow:a.axisLabelShow,nameTruncateMaxWidth:a.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},getAxis:function(e){return this._axesMap.get(e)},dataToPoint:function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},eachActiveState:function(e,t,n,i){null==n&&(n=0),null==i&&(i=e.count());var o=this._axesMap,a=this.dimensions,s=[],c=[];r.each(a,(function(t){s.push(e.mapDimension(t)),c.push(o.get(t).model)}));for(var u=this.hasAxisBrushed(),l=n;l<i;l++){var d;if(u){d="active";for(var h=e.getValues(s,l),f=0,p=a.length;f<p;f++){var g=c[f].getActiveState(h[f]);if("inactive"===g){d="inactive";break}}}else d="normal";t(d,l)}},hasAxisBrushed:function(){for(var e=this.dimensions,t=this._axesMap,n=!1,r=0,i=e.length;r<i;r++)"normal"!==t.get(e[r]).model.getActiveState()&&(n=!0);return n},axisCoordToPoint:function(e,t){var n=this._axesLayout[t];return c.applyTransform([e,0],n.transform)},getAxisLayout:function(e){return r.clone(this._axesLayout[e])},getSlidedAxisExpandWindow:function(e){var t=this._makeLayoutInfo(),n=t.pixelDimIndex,r=t.axisExpandWindow.slice(),i=r[1]-r[0],o=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:r};var a,s=e[n]-t.layoutBase-t.axisExpandWindow0Pos,c="slide",u=t.axisCollapseWidth,d=this._model.get("axisExpandSlideTriggerArea"),p=null!=d[0];if(u)p&&u&&s<i*d[0]?(c="jump",a=s-i*d[2]):p&&u&&s>i*(1-d[0])?(c="jump",a=s-i*(1-d[2])):(a=s-i*d[1])>=0&&(a=s-i*(1-d[1]))<=0&&(a=0),a*=t.axisExpandWidth/u,a?l(a,r,o,"all"):c="none";else{i=r[1]-r[0];var g=o[1]*s/i;r=[f(0,g-i/2)],r[1]=h(o[1],r[0]+i),r[0]=r[1]-i}return{axisExpandWindow:r,behavior:c}}};var x=y;e.exports=x},d9e2:function(e,t,n){var r=n("23e7"),i=n("da84"),o=n("2ba4"),a=n("e5cb"),s="WebAssembly",c=i[s],u=7!==Error("e",{cause:7}).cause,l=function(e,t){var n={};n[e]=a(e,t,u),r({global:!0,forced:u},n)},d=function(e,t){if(c&&c[e]){var n={};n[e]=a(s+"."+e,t,u),r({target:s,stat:!0,forced:u},n)}};l("Error",(function(e){return function(t){return o(e,this,arguments)}})),l("EvalError",(function(e){return function(t){return o(e,this,arguments)}})),l("RangeError",(function(e){return function(t){return o(e,this,arguments)}})),l("ReferenceError",(function(e){return function(t){return o(e,this,arguments)}})),l("SyntaxError",(function(e){return function(t){return o(e,this,arguments)}})),l("TypeError",(function(e){return function(t){return o(e,this,arguments)}})),l("URIError",(function(e){return function(t){return o(e,this,arguments)}})),d("CompileError",(function(e){return function(t){return o(e,this,arguments)}})),d("LinkError",(function(e){return function(t){return o(e,this,arguments)}})),d("RuntimeError",(function(e){return function(t){return o(e,this,arguments)}}))},d9f1:function(e,t,n){var r=n("6d8b"),i=n("6cb7"),o=n("9e47"),a=n("2023"),s=i.extend({type:"polarAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"polar",index:this.option.polarIndex,id:this.option.polarId})[0]}});r.merge(s.prototype,a);var c={angle:{startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}},radius:{splitNumber:5}};function u(e,t){return t.type||(t.data?"category":"value")}o("angle",s,u,c.angle),o("radius",s,u,c.radius)},d9fc:function(e,t,n){var r=n("cbe5"),i=r.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(e,t,n){n&&e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,2*Math.PI,!0)}});e.exports=i},da84:function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(this,n("c8ba"))},dae1:function(e,t,n){var r=n("3eba");n("928d"),n("b369"),n("4411");var i=n("90c2"),o=n("9ca8");r.registerVisual(i),r.registerLayout(o)},db0e:function(e,t,n){var r=n("3eba");n("a8c6"),n("8344"),r.registerPreprocessor((function(e){e.markPoint=e.markPoint||{}}))},db9e:function(e,t,n){var r=n("3eba"),i=n("6d8b"),o=n("e86a"),a=n("2145"),s=n("2306"),c=n("4319"),u=n("80f0"),l=n("7919"),d=r.extendComponentView({type:"toolbox",render:function(e,t,n,r){var d=this.group;if(d.removeAll(),e.get("show")){var f=+e.get("itemSize"),p=e.get("feature")||{},g=this._features||(this._features={}),m=[];i.each(p,(function(e,t){m.push(t)})),new u(this._featureNames||[],m).add(v).update(v).remove(i.curry(v,null)).execute(),this._featureNames=m,l.layout(d,e,n),d.add(l.makeBackground(d.getBoundingRect(),e)),d.eachChild((function(e){var t=e.__title,r=e.hoverStyle;if(r&&t){var i=o.getBoundingRect(t,o.makeFont(r)),a=e.position[0]+d.position[0],s=e.position[1]+d.position[1]+f,c=!1;s+i.height>n.getHeight()&&(r.textPosition="top",c=!0);var u=c?-5-i.height:f+8;a+i.width/2>n.getWidth()?(r.textPosition=["100%",u],r.textAlign="right"):a-i.width/2<0&&(r.textPosition=[0,u],r.textAlign="left")}}))}function v(i,o){var s,u=m[i],l=m[o],d=p[u],f=new c(d,e,e.ecModel);if(r&&null!=r.newTitle&&r.featureName===u&&(d.title=r.newTitle),u&&!l){if(h(u))s={model:f,onclick:f.option.onclick,featureName:u};else{var v=a.get(u);if(!v)return;s=new v(f,t,n)}g[u]=s}else{if(s=g[l],!s)return;s.model=f,s.ecModel=t,s.api=n}u||!l?f.get("show")&&!s.unusable?(y(f,s,u),f.setIconStatus=function(e,t){var n=this.option,r=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,r[e]&&r[e].trigger(t)},s.render&&s.render(f,t,n,r)):s.remove&&s.remove(t,n):s.dispose&&s.dispose(t,n)}function y(r,o,a){var c=r.getModel("iconStyle"),u=r.getModel("emphasis.iconStyle"),l=o.getIcons?o.getIcons():r.get("icon"),h=r.get("title")||{};if("string"===typeof l){var p=l,g=h;l={},h={},l[a]=p,h[a]=g}var m=r.iconPaths={};i.each(l,(function(a,l){var p=s.createIcon(a,{},{x:-f/2,y:-f/2,width:f,height:f});p.setStyle(c.getItemStyle()),p.hoverStyle=u.getItemStyle(),p.setStyle({text:h[l],textAlign:u.get("textAlign"),textBorderRadius:u.get("textBorderRadius"),textPadding:u.get("textPadding"),textFill:null});var g=e.getModel("tooltip");g&&g.get("show")&&p.attr("tooltip",i.extend({content:h[l],formatter:g.get("formatter",!0)||function(){return h[l]},formatterParams:{componentType:"toolbox",name:l,title:h[l],$vars:["name","title"]},position:g.get("position",!0)||"bottom"},g.option)),s.setHoverStyle(p),e.get("showTitle")&&(p.__title=h[l],p.on("mouseover",(function(){var t=u.getItemStyle(),n="vertical"===e.get("orient")?null==e.get("right")?"right":"left":null==e.get("bottom")?"bottom":"top";p.setStyle({textFill:u.get("textFill")||t.fill||t.stroke||"#000",textBackgroundColor:u.get("textBackgroundColor"),textPosition:u.get("textPosition")||n})})).on("mouseout",(function(){p.setStyle({textFill:null,textBackgroundColor:null})}))),p.trigger(r.get("iconStatus."+l)||"normal"),d.add(p),p.on("click",i.bind(o.onclick,o,t,n,l)),m[l]=p}))}},updateView:function(e,t,n,r){i.each(this._features,(function(e){e.updateView&&e.updateView(e.model,t,n,r)}))},remove:function(e,t){i.each(this._features,(function(n){n.remove&&n.remove(e,t)})),this.group.removeAll()},dispose:function(e,t){i.each(this._features,(function(n){n.dispose&&n.dispose(e,t)}))}});function h(e){return 0===e.indexOf("my")}e.exports=d},dbb4:function(e,t,n){var r=n("23e7"),i=n("83ab"),o=n("56ef"),a=n("fc6a"),s=n("06cf"),c=n("8418");r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(e){var t,n,r=a(e),i=s.f,u=o(r),l={},d=0;while(u.length>d)n=i(r,t=u[d++]),void 0!==n&&c(l,t,n);return l}})},dbbf:function(e,t,n){},dc20:function(e,t,n){var r=n("8727"),i=r.createElement,o=n("6d8b"),a=n("4942"),s=n("cbe5"),c=n("0da8"),u=n("76a5"),l=n("0c12"),d=n("b16f"),h=n("9fa3"),f=n("bcaa"),p=n("3f8e"),g=p.path,m=p.image,v=p.text;function y(e){return parseInt(e,10)}function _(e){return e instanceof s?g:e instanceof c?m:e instanceof u?v:g}function b(e,t){return t&&e&&t.parentNode!==e}function S(e,t,n){if(b(e,t)&&n){var r=n.nextSibling;r?e.insertBefore(t,r):e.appendChild(t)}}function x(e,t){if(b(e,t)){var n=e.firstChild;n?e.insertBefore(t,n):e.appendChild(t)}}function w(e,t){t&&e&&t.parentNode===e&&e.removeChild(t)}function I(e){return e.__textSvgEl}function C(e){return e.__svgEl}var M=function(e,t,n,r){this.root=e,this.storage=t,this._opts=n=o.extend({},n||{});var a=i("svg");a.setAttribute("xmlns","http://www.w3.org/2000/svg"),a.setAttribute("version","1.1"),a.setAttribute("baseProfile","full"),a.style.cssText="user-select:none;position:absolute;left:0;top:0;";var s=i("g");a.appendChild(s);var c=i("g");a.appendChild(c),this.gradientManager=new d(r,c),this.clipPathManager=new h(r,c),this.shadowManager=new f(r,c);var u=document.createElement("div");u.style.cssText="overflow:hidden;position:relative",this._svgDom=a,this._svgRoot=c,this._backgroundRoot=s,this._viewport=u,e.appendChild(u),u.appendChild(a),this.resize(n.width,n.height),this._visibleList=[]};function T(e){return function(){a('In SVG mode painter not support method "'+e+'"')}}M.prototype={constructor:M,getType:function(){return"svg"},getViewportRoot:function(){return this._viewport},getSvgDom:function(){return this._svgDom},getSvgRoot:function(){return this._svgRoot},getViewportRootOffset:function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},refresh:function(){var e=this.storage.getDisplayList(!0);this._paintList(e)},setBackgroundColor:function(e){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var t=i("rect");t.setAttribute("width",this.getWidth()),t.setAttribute("height",this.getHeight()),t.setAttribute("x",0),t.setAttribute("y",0),t.setAttribute("id",0),t.style.fill=e,this._backgroundRoot.appendChild(t),this._backgroundNode=t},_paintList:function(e){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var t,n=this._svgRoot,r=this._visibleList,i=e.length,o=[];for(t=0;t<i;t++){var a=e[t],s=_(a),c=C(a)||I(a);a.invisible||(a.__dirty&&(s&&s.brush(a),this.clipPathManager.update(a),a.style&&(this.gradientManager.update(a.style.fill),this.gradientManager.update(a.style.stroke),this.shadowManager.update(c,a)),a.__dirty=!1),o.push(a))}var u,d=l(r,o);for(t=0;t<d.length;t++){var h=d[t];if(h.removed)for(var f=0;f<h.count;f++){a=r[h.indices[f]],c=C(a);var p=I(a);w(n,c),w(n,p)}}for(t=0;t<d.length;t++){h=d[t];if(h.added)for(f=0;f<h.count;f++){a=o[h.indices[f]],c=C(a),p=I(a);u?S(n,c,u):x(n,c),c?S(n,p,c):u?S(n,p,u):x(n,p),S(n,p,c),u=p||c||u,this.gradientManager.addWithoutUpdate(c||p,a),this.shadowManager.addWithoutUpdate(c||p,a),this.clipPathManager.markUsed(a)}else if(!h.removed)for(f=0;f<h.count;f++){a=o[h.indices[f]],c=C(a),p=I(a),c=C(a),p=I(a);this.gradientManager.markUsed(a),this.gradientManager.addWithoutUpdate(c||p,a),this.shadowManager.markUsed(a),this.shadowManager.addWithoutUpdate(c||p,a),this.clipPathManager.markUsed(a),p&&S(n,p,c),u=c||p||u}}this.gradientManager.removeUnused(),this.clipPathManager.removeUnused(),this.shadowManager.removeUnused(),this._visibleList=o},_getDefs:function(e){var t=this._svgDom,n=t.getElementsByTagName("defs");if(0===n.length){if(e){n=t.insertBefore(i("defs"),t.firstChild);return n.contains||(n.contains=function(e){var t=n.children;if(!t)return!1;for(var r=t.length-1;r>=0;--r)if(t[r]===e)return!0;return!1}),n}return null}return n[0]},resize:function(e,t){var n=this._viewport;n.style.display="none";var r=this._opts;if(null!=e&&(r.width=e),null!=t&&(r.height=t),e=this._getSize(0),t=this._getSize(1),n.style.display="",this._width!==e||this._height!==t){this._width=e,this._height=t;var i=n.style;i.width=e+"px",i.height=t+"px";var o=this._svgDom;o.setAttribute("width",e),o.setAttribute("height",t)}this._backgroundNode&&(this._backgroundNode.setAttribute("width",e),this._backgroundNode.setAttribute("height",t))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(e){var t=this._opts,n=["width","height"][e],r=["clientWidth","clientHeight"][e],i=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(null!=t[n]&&"auto"!==t[n])return parseFloat(t[n]);var a=this.root,s=document.defaultView.getComputedStyle(a);return(a[r]||y(s[n])||y(a.style[n]))-(y(s[i])||0)-(y(s[o])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},toDataURL:function(){this.refresh();var e=encodeURIComponent(this._svgDom.outerHTML.replace(/></g,">\n\r<"));return"data:image/svg+xml;charset=UTF-8,"+e}},o.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],(function(e){M.prototype[e]=T(e)}));var k=M;e.exports=k},dc2f:function(e,t){var n=function(e,t){this.image=e,this.repeat=t,this.type="pattern"};n.prototype.getCanvasPattern=function(e){return e.createPattern(this.image,this.repeat||"repeat")};var r=n;e.exports=r},dc4a:function(e,t,n){var r=n("59ed");e.exports=function(e,t){var n=e[t];return null==n?void 0:r(n)}},dca8:function(e,t,n){var r=n("23e7"),i=n("bb2f"),o=n("d039"),a=n("861d"),s=n("f183").onFreeze,c=Object.freeze,u=o((function(){c(1)}));r({target:"Object",stat:!0,forced:u,sham:!i},{freeze:function(e){return c&&a(e)?c(s(e)):e}})},dcb3:function(e,t,n){var r=n("6d8b"),i=n("625e"),o=n("2306"),a=n("cd33"),s=n("607d"),c=n("88b3"),u=n("e0d3"),l=u.makeInner,d=l(),h=r.clone,f=r.bind;function p(){}function g(e,t,n,r){m(d(n).lastProp,r)||(d(n).lastProp=r,t?o.updateProps(n,r,e):(n.stopAnimation(),n.attr(r)))}function m(e,t){if(r.isObject(e)&&r.isObject(t)){var n=!0;return r.each(t,(function(t,r){n=n&&m(e[r],t)})),!!n}return e===t}function v(e,t){e[t.get("label.show")?"show":"hide"]()}function y(e){return{position:e.position.slice(),rotation:e.rotation||0}}function _(e,t,n){var r=t.get("z"),i=t.get("zlevel");e&&e.traverse((function(e){"group"!==e.type&&(null!=r&&(e.z=r),null!=i&&(e.zlevel=i),e.silent=n)}))}p.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(e,t,n,i){var a=t.get("value"),s=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,i||this._lastValue!==a||this._lastStatus!==s){this._lastValue=a,this._lastStatus=s;var c=this._group,u=this._handle;if(!s||"hide"===s)return c&&c.hide(),void(u&&u.hide());c&&c.show(),u&&u.show();var l={};this.makeElOption(l,a,e,t,n);var d=l.graphicKey;d!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=d;var h=this._moveAnimation=this.determineAnimation(e,t);if(c){var f=r.curry(g,t,h);this.updatePointerEl(c,l,f,t),this.updateLabelEl(c,l,f,t)}else c=this._group=new o.Group,this.createPointerEl(c,l,e,t),this.createLabelEl(c,l,e,t),n.getZr().add(c);_(c,t,!0),this._renderHandle(a)}},remove:function(e){this.clear(e)},dispose:function(e){this.clear(e)},determineAnimation:function(e,t){var n=t.get("animation"),r=e.axis,i="category"===r.type,o=t.get("snap");if(!o&&!i)return!1;if("auto"===n||null==n){var s=this.animationThreshold;if(i&&r.getBandWidth()>s)return!0;if(o){var c=a.getAxisInfo(e).seriesDataCount,u=r.getExtent();return Math.abs(u[0]-u[1])/c>s}return!1}return!0===n},makeElOption:function(e,t,n,r,i){},createPointerEl:function(e,t,n,r){var i=t.pointer;if(i){var a=d(e).pointerEl=new o[i.type](h(t.pointer));e.add(a)}},createLabelEl:function(e,t,n,r){if(t.label){var i=d(e).labelEl=new o.Rect(h(t.label));e.add(i),v(i,r)}},updatePointerEl:function(e,t,n){var r=d(e).pointerEl;r&&t.pointer&&(r.setStyle(t.pointer.style),n(r,{shape:t.pointer.shape}))},updateLabelEl:function(e,t,n,r){var i=d(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{shape:t.label.shape,position:t.label.position}),v(i,r))},_renderHandle:function(e){if(!this._dragging&&this.updateHandleTransform){var t,n=this._axisPointerModel,i=this._api.getZr(),a=this._handle,u=n.getModel("handle"),l=n.get("status");if(!u.get("show")||!l||"hide"===l)return a&&i.remove(a),void(this._handle=null);this._handle||(t=!0,a=this._handle=o.createIcon(u.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(e){s.stop(e.event)},onmousedown:f(this._onHandleDragMove,this,0,0),drift:f(this._onHandleDragMove,this),ondragend:f(this._onHandleDragEnd,this)}),i.add(a)),_(a,n,!1);var d=["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];a.setStyle(u.getItemStyle(null,d));var h=u.get("size");r.isArray(h)||(h=[h,h]),a.attr("scale",[h[0]/2,h[1]/2]),c.createOrUpdate(this,"_doDispatchAxisPointer",u.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,t)}},_moveHandleToValue:function(e,t){g(this._axisPointerModel,!t&&this._moveAnimation,this._handle,y(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(e,t){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(y(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(y(r)),d(n).lastProp=null,this._doDispatchAxisPointer()}},_doDispatchAxisPointer:function(){var e=this._handle;if(e){var t=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},_onHandleDragEnd:function(e){this._dragging=!1;var t=this._handle;if(t){var n=this._axisPointerModel.get("value");this._moveHandleToValue(n),this._api.dispatchAction({type:"hideTip"})}},getHandleTransform:null,updateHandleTransform:null,clear:function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,r=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),r&&t.remove(r),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}},p.prototype.constructor=p,i.enableClassExtend(p);var b=p;e.exports=b},dcdc:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=120)}({0:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var c,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(c=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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=c):i&&(c=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(e,t){return c.call(t),l(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},120:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{staticClass:"el-checkbox",class:[e.border&&e.checkboxSize?"el-checkbox--"+e.checkboxSize:"",{"is-disabled":e.isDisabled},{"is-bordered":e.border},{"is-checked":e.isChecked}],attrs:{id:e.id}},[n("span",{staticClass:"el-checkbox__input",class:{"is-disabled":e.isDisabled,"is-checked":e.isChecked,"is-indeterminate":e.indeterminate,"is-focus":e.focus},attrs:{tabindex:!!e.indeterminate&&0,role:!!e.indeterminate&&"checkbox","aria-checked":!!e.indeterminate&&"mixed"}},[n("span",{staticClass:"el-checkbox__inner"}),e.trueLabel||e.falseLabel?n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"el-checkbox__original",attrs:{type:"checkbox","aria-hidden":e.indeterminate?"true":"false",name:e.name,disabled:e.isDisabled,"true-value":e.trueLabel,"false-value":e.falseLabel},domProps:{checked:Array.isArray(e.model)?e._i(e.model,null)>-1:e._q(e.model,e.trueLabel)},on:{change:[function(t){var n=e.model,r=t.target,i=r.checked?e.trueLabel:e.falseLabel;if(Array.isArray(n)){var o=null,a=e._i(n,o);r.checked?a<0&&(e.model=n.concat([o])):a>-1&&(e.model=n.slice(0,a).concat(n.slice(a+1)))}else e.model=i},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"el-checkbox__original",attrs:{type:"checkbox","aria-hidden":e.indeterminate?"true":"false",disabled:e.isDisabled,name:e.name},domProps:{value:e.label,checked:Array.isArray(e.model)?e._i(e.model,e.label)>-1:e.model},on:{change:[function(t){var n=e.model,r=t.target,i=!!r.checked;if(Array.isArray(n)){var o=e.label,a=e._i(n,o);r.checked?a<0&&(e.model=n.concat([o])):a>-1&&(e.model=n.slice(0,a).concat(n.slice(a+1)))}else e.model=i},e.handleChange],focus:function(t){e.focus=!0},blur:function(t){e.focus=!1}}})]),e.$slots.default||e.label?n("span",{staticClass:"el-checkbox__label"},[e._t("default"),e.$slots.default?e._e():[e._v(e._s(e.label))]],2):e._e()])},i=[];r._withStripped=!0;var o=n(4),a=n.n(o),s={name:"ElCheckbox",mixins:[a.a],inject:{elForm:{default:""},elFormItem:{default:""}},componentName:"ElCheckbox",data:function(){return{selfModel:!1,focus:!1,isLimitExceeded:!1}},computed:{model:{get:function(){return this.isGroup?this.store:void 0!==this.value?this.value:this.selfModel},set:function(e){this.isGroup?(this.isLimitExceeded=!1,void 0!==this._checkboxGroup.min&&e.length<this._checkboxGroup.min&&(this.isLimitExceeded=!0),void 0!==this._checkboxGroup.max&&e.length>this._checkboxGroup.max&&(this.isLimitExceeded=!0),!1===this.isLimitExceeded&&this.dispatch("ElCheckboxGroup","input",[e])):(this.$emit("input",e),this.selfModel=e)}},isChecked:function(){return"[object Boolean]"==={}.toString.call(this.model)?this.model:Array.isArray(this.model)?this.model.indexOf(this.label)>-1:null!==this.model&&void 0!==this.model?this.model===this.trueLabel:void 0},isGroup:function(){var e=this.$parent;while(e){if("ElCheckboxGroup"===e.$options.componentName)return this._checkboxGroup=e,!0;e=e.$parent}return!1},store:function(){return this._checkboxGroup?this._checkboxGroup.value:this.value},isLimitDisabled:function(){var e=this._checkboxGroup,t=e.max,n=e.min;return!(!t&&!n)&&this.model.length>=t&&!this.isChecked||this.model.length<=n&&this.isChecked},isDisabled:function(){return this.isGroup?this._checkboxGroup.disabled||this.disabled||(this.elForm||{}).disabled||this.isLimitDisabled:this.disabled||(this.elForm||{}).disabled},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxSize:function(){var e=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup&&this._checkboxGroup.checkboxGroupSize||e}},props:{value:{},label:{},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:String,trueLabel:[String,Number],falseLabel:[String,Number],id:String,controls:String,border:Boolean,size:String},methods:{addToStore:function(){Array.isArray(this.model)&&-1===this.model.indexOf(this.label)?this.model.push(this.label):this.model=this.trueLabel||!0},handleChange:function(e){var t=this;if(!this.isLimitExceeded){var n=void 0;n=e.target.checked?void 0===this.trueLabel||this.trueLabel:void 0!==this.falseLabel&&this.falseLabel,this.$emit("change",n,e),this.$nextTick((function(){t.isGroup&&t.dispatch("ElCheckboxGroup","change",[t._checkboxGroup.value])}))}}},created:function(){this.checked&&this.addToStore()},mounted:function(){this.indeterminate&&this.$el.setAttribute("aria-controls",this.controls)},watch:{value:function(e){this.dispatch("ElFormItem","el.form.change",e)}}},c=s,u=n(0),l=Object(u["a"])(c,r,i,!1,null,null,null);l.options.__file="packages/checkbox/src/checkbox.vue";var d=l.exports;d.install=function(e){e.component(d.name,d)};t["default"]=d},4:function(e,t){e.exports=n("d010")}})},dcea:function(e,t,n){var r=n("6d8b"),i=n("e887"),o=n("2306"),a=n("cbe5"),s=["itemStyle"],c=["emphasis","itemStyle"],u=i.extend({type:"boxplot",render:function(e,t,n){var r=e.getData(),i=this.group,o=this._data;this._data||i.removeAll();var a="horizontal"===e.get("layout")?1:0;r.diff(o).add((function(e){if(r.hasValue(e)){var t=r.getItemLayout(e),n=d(t,r,e,a,!0);r.setItemGraphicEl(e,n),i.add(n)}})).update((function(e,t){var n=o.getItemGraphicEl(t);if(r.hasValue(e)){var s=r.getItemLayout(e);n?h(s,n,r,e):n=d(s,r,e,a),i.add(n),r.setItemGraphicEl(e,n)}else i.remove(n)})).remove((function(e){var t=o.getItemGraphicEl(e);t&&i.remove(t)})).execute(),this._data=r},remove:function(e){var t=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(e){e&&t.remove(e)}))},dispose:r.noop}),l=a.extend({type:"boxplotBoxPath",shape:{},buildPath:function(e,t){var n=t.points,r=0;for(e.moveTo(n[r][0],n[r][1]),r++;r<4;r++)e.lineTo(n[r][0],n[r][1]);for(e.closePath();r<n.length;r++)e.moveTo(n[r][0],n[r][1]),r++,e.lineTo(n[r][0],n[r][1])}});function d(e,t,n,r,i){var o=e.ends,a=new l({shape:{points:i?f(o,r,e):o}});return h(e,a,t,n,i),a}function h(e,t,n,r,i){var a=n.hostModel,u=o[i?"initProps":"updateProps"];u(t,{shape:{points:e.ends}},a,r);var l=n.getItemModel(r),d=l.getModel(s),h=n.getItemVisual(r,"color"),f=d.getItemStyle(["borderColor"]);f.stroke=h,f.strokeNoScale=!0,t.useStyle(f),t.z2=100;var p=l.getModel(c).getItemStyle();o.setHoverStyle(t,p)}function f(e,t,n){return r.map(e,(function(e){return e=e.slice(),e[t]=n.initBaseline,e}))}var p=u;e.exports=p},dd39:function(e,t,n){n("6932"),n("3a56"),n("7dcf"),n("414c"),n("4b08"),n("2c17"),n("9e87")},dd7e:function(e,t,n){var r=n("6d8b"),i=n("edaf"),o=n("38a2"),a=i.extend({type:"timeline.slider",defaultOption:{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"emptyCircle",symbolSize:10,lineStyle:{show:!0,width:2,color:"#304654"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#304654"},itemStyle:{color:"#304654",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:13,color:"#c23531",borderWidth:5,borderColor:"rgba(194,53,49, 0.5)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:22,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"path://M18.6,50.8l22.5-22.5c0.2-0.2,0.3-0.4,0.3-0.7c0-0.3-0.1-0.5-0.3-0.7L18.7,4.4c-0.1-0.1-0.2-0.3-0.2-0.5 c0-0.4,0.3-0.8,0.8-0.8c0.2,0,0.5,0.1,0.6,0.3l23.5,23.5l0,0c0.2,0.2,0.3,0.4,0.3,0.7c0,0.3-0.1,0.5-0.3,0.7l-0.1,0.1L19.7,52 c-0.1,0.1-0.3,0.2-0.5,0.2c-0.4,0-0.8-0.3-0.8-0.8C18.4,51.2,18.5,51,18.6,50.8z",prevIcon:"path://M43,52.8L20.4,30.3c-0.2-0.2-0.3-0.4-0.3-0.7c0-0.3,0.1-0.5,0.3-0.7L42.9,6.4c0.1-0.1,0.2-0.3,0.2-0.5 c0-0.4-0.3-0.8-0.8-0.8c-0.2,0-0.5,0.1-0.6,0.3L18.3,28.8l0,0c-0.2,0.2-0.3,0.4-0.3,0.7c0,0.3,0.1,0.5,0.3,0.7l0.1,0.1L41.9,54 c0.1,0.1,0.3,0.2,0.5,0.2c0.4,0,0.8-0.3,0.8-0.8C43.2,53.2,43.1,53,43,52.8z",color:"#304654",borderColor:"#304654",borderWidth:1},emphasis:{label:{show:!0,color:"#c23531"},itemStyle:{color:"#c23531"},controlStyle:{color:"#c23531",borderColor:"#c23531",borderWidth:2}},data:[]}});r.mixin(a,o);var s=a;e.exports=s},ddb0:function(e,t,n){var r=n("da84"),i=n("fdbc"),o=n("785a"),a=n("e260"),s=n("9112"),c=n("b622"),u=c("iterator"),l=c("toStringTag"),d=a.values,h=function(e,t){if(e){if(e[u]!==d)try{s(e,u,d)}catch(r){e[u]=d}if(e[l]||s(e,l,t),i[t])for(var n in a)if(e[n]!==a[n])try{s(e,n,a[n])}catch(r){e[n]=a[n]}}};for(var f in i)h(r[f]&&r[f].prototype,f);h(o,"DOMTokenList")},dded:function(e,t,n){var r=n("6d8b"),i=n("42e5"),o=function(e,t,n,r,o){this.x=null==e?.5:e,this.y=null==t?.5:t,this.r=null==n?.5:n,this.type="radial",this.global=o||!1,i.call(this,r)};o.prototype={constructor:o},r.inherits(o,i);var a=o;e.exports=a},de00:function(e,t){var n=2311;function r(){return n++}e.exports=r},de1c:function(e,t){var n={getBoxLayoutParams:function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}}};e.exports=n},de6e:function(e,t){function n(e){return e instanceof Array||(e=[e,e]),e}function r(e){e.eachSeriesByType("graph",(function(e){var t=e.getGraph(),r=e.getEdgeData(),i=n(e.get("edgeSymbol")),o=n(e.get("edgeSymbolSize")),a="lineStyle.color".split("."),s="lineStyle.opacity".split(".");r.setVisual("fromSymbol",i&&i[0]),r.setVisual("toSymbol",i&&i[1]),r.setVisual("fromSymbolSize",o&&o[0]),r.setVisual("toSymbolSize",o&&o[1]),r.setVisual("color",e.get(a)),r.setVisual("opacity",e.get(s)),r.each((function(e){var i=r.getItemModel(e),o=t.getEdgeByIndex(e),c=n(i.getShallow("symbol",!0)),u=n(i.getShallow("symbolSize",!0)),l=i.get(a),d=i.get(s);switch(l){case"source":l=o.node1.getVisual("color");break;case"target":l=o.node2.getVisual("color");break}c[0]&&o.setVisual("fromSymbol",c[0]),c[1]&&o.setVisual("toSymbol",c[1]),u[0]&&o.setVisual("fromSymbolSize",u[0]),u[1]&&o.setVisual("toSymbolSize",u[1]),o.setVisual("color",l),o.setVisual("opacity",d)}))}))}e.exports=r},defb:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=100)}({0:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var c,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(c=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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=c):i&&(c=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(e,t){return c.call(t),l(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},100:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-zoom-in-top"},on:{"after-leave":e.doDestroy}},[n("ul",{directives:[{name:"show",rawName:"v-show",value:e.showPopper,expression:"showPopper"}],staticClass:"el-dropdown-menu el-popper",class:[e.size&&"el-dropdown-menu--"+e.size]},[e._t("default")],2)])},i=[];r._withStripped=!0;var o=n(5),a=n.n(o),s={name:"ElDropdownMenu",componentName:"ElDropdownMenu",mixins:[a.a],props:{visibleArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:0}},data:function(){return{size:this.dropdown.dropdownSize}},inject:["dropdown"],created:function(){var e=this;this.$on("updatePopper",(function(){e.showPopper&&e.updatePopper()})),this.$on("visible",(function(t){e.showPopper=t}))},mounted:function(){this.dropdown.popperElm=this.popperElm=this.$el,this.referenceElm=this.dropdown.$el,this.dropdown.initDomOperation()},watch:{"dropdown.placement":{immediate:!0,handler:function(e){this.currentPlacement=e}}}},c=s,u=n(0),l=Object(u["a"])(c,r,i,!1,null,null,null);l.options.__file="packages/dropdown/src/dropdown-menu.vue";var d=l.exports;d.install=function(e){e.component(d.name,d)};t["default"]=d},5:function(e,t){e.exports=n("e974")}})},df33:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=92)}({0:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var c,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(c=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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=c):i&&(c=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(e,t){return c.call(t),l(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},11:function(e,t){e.exports=n("2bb5")},13:function(e,t){e.exports=n("5128")},4:function(e,t){e.exports=n("d010")},92:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"dialog-fade"},on:{"after-enter":e.afterEnter,"after-leave":e.afterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-dialog__wrapper",on:{click:function(t){return t.target!==t.currentTarget?null:e.handleWrapperClick(t)}}},[n("div",{key:e.key,ref:"dialog",class:["el-dialog",{"is-fullscreen":e.fullscreen,"el-dialog--center":e.center},e.customClass],style:e.style,attrs:{role:"dialog","aria-modal":"true","aria-label":e.title||"dialog"}},[n("div",{staticClass:"el-dialog__header"},[e._t("title",[n("span",{staticClass:"el-dialog__title"},[e._v(e._s(e.title))])]),e.showClose?n("button",{staticClass:"el-dialog__headerbtn",attrs:{type:"button","aria-label":"Close"},on:{click:e.handleClose}},[n("i",{staticClass:"el-dialog__close el-icon el-icon-close"})]):e._e()],2),e.rendered?n("div",{staticClass:"el-dialog__body"},[e._t("default")],2):e._e(),e.$slots.footer?n("div",{staticClass:"el-dialog__footer"},[e._t("footer")],2):e._e()])])])},i=[];r._withStripped=!0;var o=n(13),a=n.n(o),s=n(11),c=n.n(s),u=n(4),l=n.n(u),d={name:"ElDialog",mixins:[a.a,l.a,c.a],props:{title:{type:String,default:""},modal:{type:Boolean,default:!0},modalAppendToBody:{type:Boolean,default:!0},appendToBody:{type:Boolean,default:!1},lockScroll:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},width:String,fullscreen:Boolean,customClass:{type:String,default:""},top:{type:String,default:"15vh"},beforeClose:Function,center:{type:Boolean,default:!1},destroyOnClose:Boolean},data:function(){return{closed:!1,key:0}},watch:{visible:function(e){var t=this;e?(this.closed=!1,this.$emit("open"),this.$el.addEventListener("scroll",this.updatePopper),this.$nextTick((function(){t.$refs.dialog.scrollTop=0})),this.appendToBody&&document.body.appendChild(this.$el)):(this.$el.removeEventListener("scroll",this.updatePopper),this.closed||this.$emit("close"),this.destroyOnClose&&this.$nextTick((function(){t.key++})))}},computed:{style:function(){var e={};return this.fullscreen||(e.marginTop=this.top,this.width&&(e.width=this.width)),e}},methods:{getMigratingConfig:function(){return{props:{size:"size is removed."}}},handleWrapperClick:function(){this.closeOnClickModal&&this.handleClose()},handleClose:function(){"function"===typeof this.beforeClose?this.beforeClose(this.hide):this.hide()},hide:function(e){!1!==e&&(this.$emit("update:visible",!1),this.$emit("close"),this.closed=!0)},updatePopper:function(){this.broadcast("ElSelectDropdown","updatePopper"),this.broadcast("ElDropdownMenu","updatePopper")},afterEnter:function(){this.$emit("opened")},afterLeave:function(){this.$emit("closed")}},mounted:function(){this.visible&&(this.rendered=!0,this.open(),this.appendToBody&&document.body.appendChild(this.$el))},destroyed:function(){this.appendToBody&&this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)}},h=d,f=n(0),p=Object(f["a"])(h,r,i,!1,null,null,null);p.options.__file="packages/dialog/src/component.vue";var g=p.exports;g.install=function(e){e.component(g.name,g)};t["default"]=g}})},df3a:function(e,t,n){var r=n("6d8b"),i=n("6cb7"),o=n("282b"),a=n("9e47"),s=n("3842"),c=n("2023"),u=i.extend({type:"baseParallelAxis",axis:null,activeIntervals:[],getAreaSelectStyle:function(){return o([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},setActiveIntervals:function(e){var t=this.activeIntervals=r.clone(e);if(t)for(var n=t.length-1;n>=0;n--)s.asc(t[n])},getActiveState:function(e){var t=this.activeIntervals;if(!t.length)return"normal";if(null==e||isNaN(e))return"inactive";if(1===t.length){var n=t[0];if(n[0]<=e&&e<=n[1])return"active"}else for(var r=0,i=t.length;r<i;r++)if(t[r][0]<=e&&e<=t[r][1])return"active";return"inactive"}}),l={type:"value",dim:null,areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function d(e,t){return t.type||(t.data?"category":"value")}r.merge(u.prototype,c),a("parallel",u,d,l);var h=u;e.exports=h},df70:function(e,t,n){var r=n("3eba"),i=n("6fda"),o=n("29a8"),a=n("2145"),s=o.toolbox.restore;function c(e){this.model=e}c.defaultOption={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:s.title};var u=c.prototype;u.onclick=function(e,t,n){i.clear(e),t.dispatchAction({type:"restore",from:this.uid})},a.register("restore",c),r.registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(e,t){t.resetOption("recreate")}));var l=c;e.exports=l},df75:function(e,t,n){var r=n("ca84"),i=n("7839");e.exports=Object.keys||function(e){return r(e,i)}},df7c:function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e){"string"!==typeof e&&(e+="");var t,n=0,r=-1,i=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!i){n=t+1;break}}else-1===r&&(i=!1,r=t+1);return-1===r?"":e.slice(n,r)}function i(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}t.resolve=function(){for(var t="",r=!1,o=arguments.length-1;o>=-1&&!r;o--){var a=o>=0?arguments[o]:e.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,r="/"===a.charAt(0))}return t=n(i(t.split("/"),(function(e){return!!e})),!r).join("/"),(r?"/":"")+t||"."},t.normalize=function(e){var r=t.isAbsolute(e),a="/"===o(e,-1);return e=n(i(e.split("/"),(function(e){return!!e})),!r).join("/"),e||r||(e="."),e&&a&&(e+="/"),(r?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(i(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t<e.length;t++)if(""!==e[t])break;for(var n=e.length-1;n>=0;n--)if(""!==e[n])break;return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var i=r(e.split("/")),o=r(n.split("/")),a=Math.min(i.length,o.length),s=a,c=0;c<a;c++)if(i[c]!==o[c]){s=c;break}var u=[];for(c=s;c<i.length;c++)u.push("..");return u=u.concat(o.slice(s)),u.join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!==typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,i=!0,o=e.length-1;o>=1;--o)if(t=e.charCodeAt(o),47===t){if(!i){r=o;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=r(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,n=0,r=-1,i=!0,o=0,a=e.length-1;a>=0;--a){var s=e.charCodeAt(a);if(47!==s)-1===r&&(i=!1,r=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1);else if(!i){n=a+1;break}}return-1===t||-1===r||0===o||1===o&&t===r-1&&t===n+1?"":e.slice(t,r)};var o="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n("4362"))},df83:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=t.easeInOutBounce=t.easeOutBounce=t.easeInBounce=t.easeInOutElastic=t.easeOutElastic=t.easeInElastic=t.easeInOutBack=t.easeOutBack=t.easeInBack=t.easeInOutQuint=t.easeOutQuint=t.easeInQuint=t.easeInOutQuart=t.easeOutQuart=t.easeInQuart=t.easeInOutCubic=t.easeOutCubic=t.easeInCubic=t.easeInOutQuad=t.easeOutQuad=t.easeInQuad=t.easeInOutSine=t.easeOutSine=t.easeInSine=t.linear=void 0;var r=[[[0,1],"",[.33,.67]],[[1,0],[.67,.33]]];t.linear=r;var i=[[[0,1]],[[.538,.564],[.169,.912],[.88,.196]],[[1,0]]];t.easeInSine=i;var o=[[[0,1]],[[.444,.448],[.169,.736],[.718,.16]],[[1,0]]];t.easeOutSine=o;var a=[[[0,1]],[[.5,.5],[.2,1],[.8,0]],[[1,0]]];t.easeInOutSine=a;var s=[[[0,1]],[[.55,.584],[.231,.904],[.868,.264]],[[1,0]]];t.easeInQuad=s;var c=[[[0,1]],[[.413,.428],[.065,.816],[.76,.04]],[[1,0]]];t.easeOutQuad=c;var u=[[[0,1]],[[.5,.5],[.3,.9],[.7,.1]],[[1,0]]];t.easeInOutQuad=u;var l=[[[0,1]],[[.679,.688],[.366,.992],[.992,.384]],[[1,0]]];t.easeInCubic=l;var d=[[[0,1]],[[.321,.312],[.008,.616],[.634,.008]],[[1,0]]];t.easeOutCubic=d;var h=[[[0,1]],[[.5,.5],[.3,1],[.7,0]],[[1,0]]];t.easeInOutCubic=h;var f=[[[0,1]],[[.812,.74],[.611,.988],[1.013,.492]],[[1,0]]];t.easeInQuart=f;var p=[[[0,1]],[[.152,.244],[.001,.448],[.285,-.02]],[[1,0]]];t.easeOutQuart=p;var g=[[[0,1]],[[.5,.5],[.4,1],[.6,0]],[[1,0]]];t.easeInOutQuart=g;var m=[[[0,1]],[[.857,.856],[.714,1],[1,.712]],[[1,0]]];t.easeInQuint=m;var v=[[[0,1]],[[.108,.2],[.001,.4],[.214,-.012]],[[1,0]]];t.easeOutQuint=v;var y=[[[0,1]],[[.5,.5],[.5,1],[.5,0]],[[1,0]]];t.easeInOutQuint=y;var _=[[[0,1]],[[.667,.896],[.38,1.184],[.955,.616]],[[1,0]]];t.easeInBack=_;var b=[[[0,1]],[[.335,.028],[.061,.22],[.631,-.18]],[[1,0]]];t.easeOutBack=b;var S=[[[0,1]],[[.5,.5],[.4,1.4],[.6,-.4]],[[1,0]]];t.easeInOutBack=S;var x=[[[0,1]],[[.474,.964],[.382,.988],[.557,.952]],[[.619,1.076],[.565,1.088],[.669,1.08]],[[.77,.916],[.712,.924],[.847,.904]],[[.911,1.304],[.872,1.316],[.961,1.34]],[[1,0]]];t.easeInElastic=x;var w=[[[0,1]],[[.073,-.32],[.034,-.328],[.104,-.344]],[[.191,.092],[.11,.06],[.256,.08]],[[.31,-.076],[.26,-.068],[.357,-.076]],[[.432,.032],[.362,.028],[.683,-.004]],[[1,0]]];t.easeOutElastic=w;var I=[[[0,1]],[[.21,.94],[.167,.884],[.252,.98]],[[.299,1.104],[.256,1.092],[.347,1.108]],[[.5,.496],[.451,.672],[.548,.324]],[[.696,-.108],[.652,-.112],[.741,-.124]],[[.805,.064],[.756,.012],[.866,.096]],[[1,0]]];t.easeInOutElastic=I;var C=[[[0,1]],[[.148,1],[.075,.868],[.193,.848]],[[.326,1],[.276,.836],[.405,.712]],[[.6,1],[.511,.708],[.671,.348]],[[1,0]]];t.easeInBounce=C;var M=[[[0,1]],[[.357,.004],[.27,.592],[.376,.252]],[[.604,-.004],[.548,.312],[.669,.184]],[[.82,0],[.749,.184],[.905,.132]],[[1,0]]];t.easeOutBounce=M;var T=[[[0,1]],[[.102,1],[.05,.864],[.117,.86]],[[.216,.996],[.208,.844],[.227,.808]],[[.347,.996],[.343,.8],[.48,.292]],[[.635,.004],[.511,.676],[.656,.208]],[[.787,0],[.76,.2],[.795,.144]],[[.905,-.004],[.899,.164],[.944,.144]],[[1,0]]];t.easeInOutBounce=T;var k=new Map([["linear",r],["easeInSine",i],["easeOutSine",o],["easeInOutSine",a],["easeInQuad",s],["easeOutQuad",c],["easeInOutQuad",u],["easeInCubic",l],["easeOutCubic",d],["easeInOutCubic",h],["easeInQuart",f],["easeOutQuart",p],["easeInOutQuart",g],["easeInQuint",m],["easeOutQuint",v],["easeInOutQuint",y],["easeInBack",_],["easeOutBack",b],["easeInOutBack",S],["easeInElastic",x],["easeOutElastic",w],["easeInOutElastic",I],["easeInBounce",C],["easeOutBounce",M],["easeInOutBounce",T]]);t["default"]=k},dfb9:function(e,t,n){var r=n("07fa");e.exports=function(e,t){var n=0,i=r(t),o=new e(i);while(i>n)o[n]=t[n++];return o}},e01a:function(e,t,n){"use strict";var r=n("23e7"),i=n("83ab"),o=n("da84"),a=n("e330"),s=n("1a2d"),c=n("1626"),u=n("3a9b"),l=n("577e"),d=n("9bf2").f,h=n("e893"),f=o.Symbol,p=f&&f.prototype;if(i&&c(f)&&(!("description"in p)||void 0!==f().description)){var g={},m=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:l(arguments[0]),t=u(p,this)?new f(e):void 0===e?f():f(e);return""===e&&(g[t]=!0),t};h(m,f),m.prototype=p,p.constructor=m;var v="Symbol(test)"==String(f("test")),y=a(p.toString),_=a(p.valueOf),b=/^Symbol\((.*)\)[^)]+$/,S=a("".replace),x=a("".slice);d(p,"description",{configurable:!0,get:function(){var e=_(this),t=y(e);if(s(g,e))return"";var n=v?x(t,7,-1):S(t,b,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:m})}},e057:function(e,t,n){var r=n("4e08"),i=(r.__DEV__,n("6d8b")),o=n("2306"),a=n("c775"),s=a.getDefaultLabel,c=n("3301"),u=n("9d57"),l=u.getLayoutOnAxis,d=n("80f0"),h=n("4f85"),f=n("4319"),p=n("e887"),g=n("b0af"),m=g.createClipPath,v=n("aa3e"),y=n("00d8"),_=n("307b"),b=n("eaeb"),S=n("471e"),x=o.CACHED_LABEL_STYLE_PROPERTIES,w=["itemStyle"],I=["emphasis","itemStyle"],C=["label"],M=["emphasis","label"],T="e\0\0",k={cartesian2d:v,geo:y,singleAxis:_,polar:b,calendar:S};function E(e){var t,n=e.type;if("path"===n){var r=e.shape,i=null!=r.width&&null!=r.height?{x:r.x||0,y:r.y||0,width:r.width,height:r.height}:null,a=z(r);t=o.makePath(a,null,i,r.layout||"center"),t.__customPathData=a}else if("image"===n)t=new o.Image({}),t.__customImagePath=e.style.image;else if("text"===n)t=new o.Text({}),t.__customText=e.style.text;else if("group"===n)t=new o.Group;else{if("compoundPath"===n)throw new Error('"compoundPath" is not supported yet.');var s=o.getShapeClass(n);t=new s}return t.__customGraphicType=n,t.name=e.name,t}function A(e,t,n,r,a,s,c){var u={},l=n.style||{};if(n.shape&&(u.shape=i.clone(n.shape)),n.position&&(u.position=n.position.slice()),n.scale&&(u.scale=n.scale.slice()),n.origin&&(u.origin=n.origin.slice()),n.rotation&&(u.rotation=n.rotation),"image"===e.type&&n.style){var d=u.style={};i.each(["x","y","width","height"],(function(t){D(t,d,l,e.style,s)}))}if("text"===e.type&&n.style){d=u.style={};i.each(["x","y"],(function(t){D(t,d,l,e.style,s)})),!l.hasOwnProperty("textFill")&&l.fill&&(l.textFill=l.fill),!l.hasOwnProperty("textStroke")&&l.stroke&&(l.textStroke=l.stroke)}if("group"!==e.type&&(e.useStyle(l),s)){e.style.opacity=0;var h=l.opacity;null==h&&(h=1),o.initProps(e,{style:{opacity:h}},r,t)}s?e.attr(u):o.updateProps(e,u,r,t),n.hasOwnProperty("z2")&&e.attr("z2",n.z2||0),n.hasOwnProperty("silent")&&e.attr("silent",n.silent),n.hasOwnProperty("invisible")&&e.attr("invisible",n.invisible),n.hasOwnProperty("ignore")&&e.attr("ignore",n.ignore),n.hasOwnProperty("info")&&e.attr("info",n.info);var f=n.styleEmphasis;o.setElementHoverStyle(e,f),c&&o.setAsHighDownDispatcher(e,!1!==f)}function D(e,t,n,r,i){null==n[e]||i||(t[e]=n[e],n[e]=r[e])}function O(e,t,n,r){var a=e.get("renderItem"),c=e.coordinateSystem,u={};c&&(u=c.prepareCustoms?c.prepareCustoms():k[c.type](c));var d,h,f,p,g,m=i.defaults({getWidth:r.getWidth,getHeight:r.getHeight,getZr:r.getZr,getDevicePixelRatio:r.getDevicePixelRatio,value:b,style:S,styleEmphasis:x,visual:T,barLayout:E,currentSeriesIndices:A,font:D},u.api||{}),v={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:u.coordSys,dataInsideLength:t.count(),encode:R(e.getData())},y=!0;return function(e,n){return d=e,y=!0,a&&a(i.defaults({dataIndexInside:e,dataIndex:t.getRawIndex(e),actionType:n?n.type:null},v),m)};function _(e){null==e&&(e=d),y&&(h=t.getItemModel(e),f=h.getModel(C),p=h.getModel(M),g=t.getItemVisual(e,"color"),y=!1)}function b(e,n){return null==n&&(n=d),t.get(t.getDimension(e||0),n)}function S(n,r){null==r&&(r=d),_(r);var a=h.getModel(w).getItemStyle();null!=g&&(a.fill=g);var c=t.getItemVisual(r,"opacity");null!=c&&(a.opacity=c);var u=n?V(n,f):f;return o.setTextStyle(a,u,null,{autoColor:g,isRectText:!0}),a.text=u.getShallow("show")?i.retrieve2(e.getFormattedLabel(r,"normal"),s(t,r)):null,n&&j(a,n),a}function x(n,r){null==r&&(r=d),_(r);var a=h.getModel(I).getItemStyle(),c=n?V(n,p):p;return o.setTextStyle(a,c,null,{isRectText:!0},!0),a.text=c.getShallow("show")?i.retrieve3(e.getFormattedLabel(r,"emphasis"),e.getFormattedLabel(r,"normal"),s(t,r)):null,n&&j(a,n),a}function T(e,n){return null==n&&(n=d),t.getItemVisual(n,e)}function E(e){if(c.getBaseAxis){var t=c.getBaseAxis();return l(i.defaults({axis:t},e),r)}}function A(){return n.getCurrentSeriesIndices()}function D(e){return o.getFont(e,n)}}function R(e){var t={};return i.each(e.dimensions,(function(n,r){var i=e.getDimensionInfo(n);if(!i.isExtraCoord){var o=i.coordDim,a=t[o]=t[o]||[];a[i.coordDimIndex]=r}})),t}function L(e,t,n,r,i,o){return e=P(e,t,n,r,i,o,!0),e&&o.setItemGraphicEl(t,e),e}function P(e,t,n,r,i,o,a){var s=!n;n=n||{};var c=n.type,u=n.shape,l=n.style;if(e&&(s||null!=c&&c!==e.__customGraphicType||"path"===c&&H(u)&&z(u)!==e.__customPathData||"image"===c&&W(l,"image")&&l.image!==e.__customImagePath||"text"===c&&W(u,"text")&&l.text!==e.__customText)&&(i.remove(e),e=null),!s){var d=!e;return!e&&(e=E(n)),A(e,t,n,r,o,d,a),"group"===c&&N(e,t,n,r,o),i.add(e),e}}function N(e,t,n,r,i){var o=n.children,a=o?o.length:0,s=n.$mergeChildren,c="byName"===s||n.diffChildrenByName,u=!1===s;if(a||c||u)if(c)U({oldChildren:e.children()||[],newChildren:o||[],dataIndex:t,animatableModel:r,group:e,data:i});else{u&&e.removeAll();for(var l=0;l<a;l++)o[l]&&P(e.childAt(l),t,o[l],r,e,i)}}function U(e){new d(e.oldChildren,e.newChildren,F,F,e).add(G).update(G).remove(B).execute()}function F(e,t){var n=e&&e.name;return null!=n?n:T+t}function G(e,t){var n=this.context,r=null!=e?n.newChildren[e]:null,i=null!=t?n.oldChildren[t]:null;P(i,n.dataIndex,r,n.animatableModel,n.group,n.data)}function V(e,t){var n=new f({},t);return i.each(x,(function(t,r){e.hasOwnProperty(t)&&(n.option[r]=e[t])})),n}function j(e,t){for(var n in t)!t.hasOwnProperty(n)&&x.hasOwnProperty(n)||(e[n]=t[n])}function B(e){var t=this.context,n=t.oldChildren[e];n&&t.group.remove(n)}function z(e){return e&&(e.pathData||e.d)}function H(e){return e&&(e.hasOwnProperty("pathData")||e.hasOwnProperty("d"))}function W(e,t){return e&&e.hasOwnProperty(t)}h.extend({type:"series.custom",dependencies:["grid","polar","geo","singleAxis","calendar"],defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,useTransform:!0,clip:!1},getInitialData:function(e,t){return c(this.getSource(),this)},getDataParams:function(e,t,n){var r=h.prototype.getDataParams.apply(this,arguments);return n&&(r.info=n.info),r}}),p.extend({type:"custom",_data:null,render:function(e,t,n,r){var i=this._data,o=e.getData(),a=this.group,s=O(e,o,t,n);o.diff(i).add((function(t){L(null,t,s(t,r),e,a,o)})).update((function(t,n){var c=i.getItemGraphicEl(n);L(c,t,s(t,r),e,a,o)})).remove((function(e){var t=i.getItemGraphicEl(e);t&&a.remove(t)})).execute();var c=e.get("clip",!0)?m(e.coordinateSystem,!1,e):null;c?a.setClipPath(c):a.removeClipPath(),this._data=o},incrementalPrepareRender:function(e,t,n){this.group.removeAll(),this._data=null},incrementalRender:function(e,t,n,r,i){var o=t.getData(),a=O(t,o,n,r);function s(e){e.isGroup||(e.incremental=!0,e.useHoverLayer=!0)}for(var c=e.start;c<e.end;c++){var u=L(null,c,a(c,i),t,this.group,o);u.traverse(s)}},dispose:i.noop,filterForExposedEvent:function(e,t,n,r){var i=t.element;if(null==i||n.name===i)return!0;while((n=n.parent)&&n!==this.group)if(n.name===i)return!0;return!1}})},e073:function(e,t,n){var r=n("6d8b"),i=n("e86a"),o=n("e0d3"),a=o.makeInner,s=n("697e"),c=s.makeLabelFormatter,u=s.getOptionCategoryInterval,l=s.shouldShowAllLabels,d=a();function h(e){return"category"===e.type?p(e):v(e)}function f(e,t){return"category"===e.type?m(e,t):{ticks:e.scale.getTicks()}}function p(e){var t=e.getLabelModel(),n=g(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function g(e,t){var n,i,o=y(e,"labels"),a=u(t),s=_(o,a);return s||(r.isFunction(a)?n=C(e,a):(i="auto"===a?S(e):a,n=I(e,i)),b(o,a,{labels:n,labelCategoryInterval:i}))}function m(e,t){var n,i,o=y(e,"ticks"),a=u(t),s=_(o,a);if(s)return s;if(t.get("show")&&!e.scale.isBlank()||(n=[]),r.isFunction(a))n=C(e,a,!0);else if("auto"===a){var c=g(e,e.getLabelModel());i=c.labelCategoryInterval,n=r.map(c.labels,(function(e){return e.tickValue}))}else i=a,n=I(e,i,!0);return b(o,a,{ticks:n,tickCategoryInterval:i})}function v(e){var t=e.scale.getTicks(),n=c(e);return{labels:r.map(t,(function(t,r){return{formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tickValue:t}}))}}function y(e,t){return d(e)[t]||(d(e)[t]=[])}function _(e,t){for(var n=0;n<e.length;n++)if(e[n].key===t)return e[n].value}function b(e,t,n){return e.push({key:t,value:n}),n}function S(e){var t=d(e).autoInterval;return null!=t?t:d(e).autoInterval=e.calculateCategoryInterval()}function x(e){var t=w(e),n=c(e),r=(t.axisRotate-t.labelRotate)/180*Math.PI,o=e.scale,a=o.getExtent(),s=o.count();if(a[1]-a[0]<1)return 0;var u=1;s>40&&(u=Math.max(1,Math.floor(s/40)));for(var l=a[0],h=e.dataToCoord(l+1)-e.dataToCoord(l),f=Math.abs(h*Math.cos(r)),p=Math.abs(h*Math.sin(r)),g=0,m=0;l<=a[1];l+=u){var v=0,y=0,_=i.getBoundingRect(n(l),t.font,"center","top");v=1.3*_.width,y=1.3*_.height,g=Math.max(g,v,7),m=Math.max(m,y,7)}var b=g/f,S=m/p;isNaN(b)&&(b=1/0),isNaN(S)&&(S=1/0);var x=Math.max(0,Math.floor(Math.min(b,S))),I=d(e.model),C=e.getExtent(),M=I.lastAutoInterval,T=I.lastTickCount;return null!=M&&null!=T&&Math.abs(M-x)<=1&&Math.abs(T-s)<=1&&M>x&&I.axisExtend0===C[0]&&I.axisExtend1===C[1]?x=M:(I.lastTickCount=s,I.lastAutoInterval=x,I.axisExtend0=C[0],I.axisExtend1=C[1]),x}function w(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function I(e,t,n){var r=c(e),i=e.scale,o=i.getExtent(),a=e.getLabelModel(),s=[],u=Math.max((t||0)+1,1),d=o[0],h=i.count();0!==d&&u>1&&h/u>2&&(d=Math.round(Math.ceil(d/u)*u));var f=l(e),p=a.get("showMinLabel")||f,g=a.get("showMaxLabel")||f;p&&d!==o[0]&&v(o[0]);for(var m=d;m<=o[1];m+=u)v(m);function v(e){s.push(n?e:{formattedLabel:r(e),rawLabel:i.getLabel(e),tickValue:e})}return g&&m-u!==o[1]&&v(o[1]),s}function C(e,t,n){var i=e.scale,o=c(e),a=[];return r.each(i.getTicks(),(function(e){var r=i.getLabel(e);t(e,r)&&a.push(n?e:{formattedLabel:o(e),rawLabel:r,tickValue:e})})),a}t.createAxisLabels=h,t.createAxisTicks=f,t.calculateCategoryInterval=x},e0d3:function(e,t,n){var r=n("6d8b"),i=n("22d1"),o=r.each,a=r.isObject,s=r.isArray,c="series\0";function u(e){return e instanceof Array?e:null==e?[]:[e]}function l(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var r=0,i=n.length;r<i;r++){var o=n[r];!e.emphasis[t].hasOwnProperty(o)&&e[t].hasOwnProperty(o)&&(e.emphasis[t][o]=e[t][o])}}}var d=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function h(e){return!a(e)||s(e)||e instanceof Date?e:e.value}function f(e){return a(e)&&!(e instanceof Array)}function p(e,t){t=(t||[]).slice();var n=r.map(e||[],(function(e,t){return{exist:e}}));return o(t,(function(e,r){if(a(e)){for(var i=0;i<n.length;i++)if(!n[i].option&&null!=e.id&&n[i].exist.id===e.id+"")return n[i].option=e,void(t[r]=null);for(i=0;i<n.length;i++){var o=n[i].exist;if(!n[i].option&&(null==o.id||null==e.id)&&null!=e.name&&!v(e)&&!v(o)&&o.name===e.name+"")return n[i].option=e,void(t[r]=null)}}})),o(t,(function(e,t){if(a(e)){for(var r=0;r<n.length;r++){var i=n[r].exist;if(!n[r].option&&!v(i)&&null==e.id){n[r].option=e;break}}r>=n.length&&n.push({option:e})}})),n}function g(e){var t=r.createHashMap();o(e,(function(e,n){var r=e.exist;r&&t.set(r.id,e)})),o(e,(function(e,n){var i=e.option;r.assert(!i||null==i.id||!t.get(i.id)||t.get(i.id)===e,"id duplicates: "+(i&&i.id)),i&&null!=i.id&&t.set(i.id,e),!e.keyInfo&&(e.keyInfo={})})),o(e,(function(e,n){var r=e.exist,i=e.option,o=e.keyInfo;if(a(i)){if(o.name=null!=i.name?i.name+"":r?r.name:c+n,r)o.id=r.id;else if(null!=i.id)o.id=i.id+"";else{var s=0;do{o.id="\0"+o.name+"\0"+s++}while(t.get(o.id))}t.set(o.id,e)}}))}function m(e){var t=e.name;return!(!t||!t.indexOf(c))}function v(e){return a(e)&&e.id&&0===(e.id+"").indexOf("\0_ec_\0")}function y(e,t){var n={},r={};return i(e||[],n),i(t||[],r,n),[o(n),o(r)];function i(e,t,n){for(var r=0,i=e.length;r<i;r++)for(var o=e[r].seriesId,a=u(e[r].dataIndex),s=n&&n[o],c=0,l=a.length;c<l;c++){var d=a[c];s&&s[d]?s[d]=null:(t[o]||(t[o]={}))[d]=1}}function o(e,t){var n=[];for(var r in e)if(e.hasOwnProperty(r)&&null!=e[r])if(t)n.push(+r);else{var i=o(e[r],!0);i.length&&n.push({seriesId:r,dataIndex:i})}return n}}function _(e,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?r.isArray(t.dataIndex)?r.map(t.dataIndex,(function(t){return e.indexOfRawIndex(t)})):e.indexOfRawIndex(t.dataIndex):null!=t.name?r.isArray(t.name)?r.map(t.name,(function(t){return e.indexOfName(t)})):e.indexOfName(t.name):void 0}function b(){var e="__\0ec_inner_"+S+++"_"+Math.random().toFixed(5);return function(t){return t[e]||(t[e]={})}}var S=0;function x(e,t,n){if(r.isString(t)){var i={};i[t+"Index"]=0,t=i}var a=n&&n.defaultMainType;!a||w(t,a+"Index")||w(t,a+"Id")||w(t,a+"Name")||(t[a+"Index"]=0);var s={};return o(t,(function(i,o){i=t[o];if("dataIndex"!==o&&"dataIndexInside"!==o){var a=o.match(/^(\w+)(Index|Id|Name)$/)||[],c=a[1],u=(a[2]||"").toLowerCase();if(!(!c||!u||null==i||"index"===u&&"none"===i||n&&n.includeMainTypes&&r.indexOf(n.includeMainTypes,c)<0)){var l={mainType:c};"index"===u&&"all"===i||(l[u]=i);var d=e.queryComponents(l);s[c+"Models"]=d,s[c+"Model"]=d[0]}}else s[o]=i})),s}function w(e,t){return e&&e.hasOwnProperty(t)}function I(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function C(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function M(e){return"auto"===e?i.domSupported?"html":"richText":e||"html"}function T(e,t){var n=r.createHashMap(),i=[];return r.each(e,(function(e){var r=t(e);(n.get(r)||(i.push(r),n.set(r,[]))).push(e)})),{keys:i,buckets:n}}t.normalizeToArray=u,t.defaultEmphasis=l,t.TEXT_STYLE_OPTIONS=d,t.getDataItemValue=h,t.isDataItemOption=f,t.mappingToExists=p,t.makeIdAndName=g,t.isNameSpecified=m,t.isIdInner=v,t.compressBatches=y,t.queryDataIndex=_,t.makeInner=b,t.parseFinder=x,t.setAttribute=I,t.getAttribute=C,t.getTooltipRenderMode=M,t.groupData=T},e0d8:function(e,t,n){var r=n("625e");function i(e){this._setting=e||{},this._extent=[1/0,-1/0],this._interval=0,this.init&&this.init.apply(this,arguments)}i.prototype.parse=function(e){return e},i.prototype.getSetting=function(e){return this._setting[e]},i.prototype.contain=function(e){var t=this._extent;return e>=t[0]&&e<=t[1]},i.prototype.normalize=function(e){var t=this._extent;return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])},i.prototype.scale=function(e){var t=this._extent;return e*(t[1]-t[0])+t[0]},i.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},i.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},i.prototype.getExtent=function(){return this._extent.slice()},i.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t)},i.prototype.isBlank=function(){return this._isBlank},i.prototype.setBlank=function(e){this._isBlank=e},i.prototype.getLabel=null,r.enableClassExtend(i),r.enableClassManagement(i,{registerWhenExtend:!0});var o=i;e.exports=o},e11f:function(e,t,n){},e163:function(e,t,n){var r=n("da84"),i=n("1a2d"),o=n("1626"),a=n("7b0b"),s=n("f772"),c=n("e177"),u=s("IE_PROTO"),l=r.Object,d=l.prototype;e.exports=c?l.getPrototypeOf:function(e){var t=a(e);if(i(t,u))return t[u];var n=t.constructor;return o(n)&&t instanceof n?n.prototype:t instanceof l?d:null}},e169:function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.drawPolylinePath=o,t.drawBezierCurvePath=a,t["default"]=void 0;var i=r(n("448a"));function o(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!e||t.length<2)return!1;n&&e.beginPath(),t.forEach((function(t,n){return t&&(0===n?e.moveTo.apply(e,(0,i["default"])(t)):e.lineTo.apply(e,(0,i["default"])(t)))})),r&&e.closePath()}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(!e||!t)return!1;r&&e.beginPath(),n&&e.moveTo.apply(e,(0,i["default"])(n)),t.forEach((function(t){return t&&e.bezierCurveTo.apply(e,(0,i["default"])(t[0]).concat((0,i["default"])(t[1]),(0,i["default"])(t[2])))})),o&&e.closePath()}var s={drawPolylinePath:o,drawBezierCurvePath:a};t["default"]=s},e177:function(e,t,n){var r=n("d039");e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},e1fc:function(e,t,n){var r=n("6d8b"),i=n("d5b7"),o=n("9850"),a=function(e){for(var t in e=e||{},i.call(this,e),e)e.hasOwnProperty(t)&&(this[t]=e[t]);this._children=[],this.__storage=null,this.__dirty=!0};a.prototype={constructor:a,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(e){return this._children[e]},childOfName:function(e){for(var t=this._children,n=0;n<t.length;n++)if(t[n].name===e)return t[n]},childCount:function(){return this._children.length},add:function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},addBefore:function(e,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var n=this._children,r=n.indexOf(t);r>=0&&(n.splice(r,0,e),this._doAdd(e))}return this},_doAdd:function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__storage,n=this.__zr;t&&t!==e.__storage&&(t.addToStorage(e),e instanceof a&&e.addChildrenToStorage(t)),n&&n.refresh()},remove:function(e){var t=this.__zr,n=this.__storage,i=this._children,o=r.indexOf(i,e);return o<0||(i.splice(o,1),e.parent=null,n&&(n.delFromStorage(e),e instanceof a&&e.delChildrenFromStorage(n)),t&&t.refresh()),this},removeAll:function(){var e,t,n=this._children,r=this.__storage;for(t=0;t<n.length;t++)e=n[t],r&&(r.delFromStorage(e),e instanceof a&&e.delChildrenFromStorage(r)),e.parent=null;return n.length=0,this},eachChild:function(e,t){for(var n=this._children,r=0;r<n.length;r++){var i=n[r];e.call(t,i,r)}return this},traverse:function(e,t){for(var n=0;n<this._children.length;n++){var r=this._children[n];e.call(t,r),"group"===r.type&&r.traverse(e,t)}return this},addChildrenToStorage:function(e){for(var t=0;t<this._children.length;t++){var n=this._children[t];e.addToStorage(n),n instanceof a&&n.addChildrenToStorage(e)}},delChildrenFromStorage:function(e){for(var t=0;t<this._children.length;t++){var n=this._children[t];e.delFromStorage(n),n instanceof a&&n.delChildrenFromStorage(e)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(e){for(var t=null,n=new o(0,0,0,0),r=e||this._children,i=[],a=0;a<r.length;a++){var s=r[a];if(!s.ignore&&!s.invisible){var c=s.getBoundingRect(),u=s.getLocalTransform(i);u?(n.copy(c),n.applyTransform(u),t=t||n.clone(),t.union(n)):(t=t||c.clone(),t.union(c))}}return t||n}},r.inherits(a,i);var s=a;e.exports=s},e23e:function(e,t,n){"use strict";(function(t){!function(t,n){e.exports=n()}(0,(function(){var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof t?t:"undefined"!=typeof self?self:{};function n(e,t){return e(t={exports:{}},t.exports),t.exports}var r=function(e){return e&&e.Math==Math&&e},i=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||Function("return this")(),o=function(e){try{return!!e()}catch(n){return!0}},a=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),s={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,u={f:c&&!s.call({1:2},1)?function(e){var t=c(this,e);return!!t&&t.enumerable}:s},l=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},d={}.toString,h=function(e){return d.call(e).slice(8,-1)},f="".split,p=o((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==h(e)?f.call(e,""):Object(e)}:Object,g=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},m=function(e){return p(g(e))},v=function(e){return"object"==typeof e?null!==e:"function"==typeof e},y=function(e,t){if(!v(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!v(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!v(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!v(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},_={}.hasOwnProperty,b=function(e,t){return _.call(e,t)},S=i.document,x=v(S)&&v(S.createElement),w=function(e){return x?S.createElement(e):{}},I=!a&&!o((function(){return 7!=Object.defineProperty(w("div"),"a",{get:function(){return 7}}).a})),C=Object.getOwnPropertyDescriptor,M={f:a?C:function(e,t){if(e=m(e),t=y(t,!0),I)try{return C(e,t)}catch(r){}if(b(e,t))return l(!u.f.call(e,t),e[t])}},T=function(e){if(!v(e))throw TypeError(String(e)+" is not an object");return e},k=Object.defineProperty,E={f:a?k:function(e,t,n){if(T(e),t=y(t,!0),T(n),I)try{return k(e,t,n)}catch(i){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},A=a?function(e,t,n){return E.f(e,t,l(1,n))}:function(e,t,n){return e[t]=n,e},D=function(e,t){try{A(i,e,t)}catch(r){i[e]=t}return t},O=i["__core-js_shared__"]||D("__core-js_shared__",{}),R=Function.toString;"function"!=typeof O.inspectSource&&(O.inspectSource=function(e){return R.call(e)});var L,P,N,U=O.inspectSource,F=i.WeakMap,G="function"==typeof F&&/native code/.test(U(F)),V=n((function(e){(e.exports=function(e,t){return O[e]||(O[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.4",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),j=0,B=Math.random(),z=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++j+B).toString(36)},H=V("keys"),W=function(e){return H[e]||(H[e]=z(e))},q={},$=i.WeakMap;if(G){var K=new $,Y=K.get,J=K.has,X=K.set;L=function(e,t){return X.call(K,e,t),t},P=function(e){return Y.call(K,e)||{}},N=function(e){return J.call(K,e)}}else{var Z=W("state");q[Z]=!0,L=function(e,t){return A(e,Z,t),t},P=function(e){return b(e,Z)?e[Z]:{}},N=function(e){return b(e,Z)}}var Q={set:L,get:P,has:N,enforce:function(e){return N(e)?P(e):L(e,{})},getterFor:function(e){return function(t){var n;if(!v(t)||(n=P(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},ee=n((function(e){var t=Q.get,n=Q.enforce,r=String(String).split("String");(e.exports=function(e,t,o,a){var s=!!a&&!!a.unsafe,c=!!a&&!!a.enumerable,u=!!a&&!!a.noTargetGet;"function"==typeof o&&("string"!=typeof t||b(o,"name")||A(o,"name",t),n(o).source=r.join("string"==typeof t?t:"")),e!==i?(s?!u&&e[t]&&(c=!0):delete e[t],c?e[t]=o:A(e,t,o)):c?e[t]=o:D(t,o)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||U(this)}))})),te=i,ne=function(e){return"function"==typeof e?e:void 0},re=function(e,t){return arguments.length<2?ne(te[e])||ne(i[e]):te[e]&&te[e][t]||i[e]&&i[e][t]},ie=Math.ceil,oe=Math.floor,ae=function(e){return isNaN(e=+e)?0:(e>0?oe:ie)(e)},se=Math.min,ce=function(e){return e>0?se(ae(e),9007199254740991):0},ue=Math.max,le=Math.min,de=function(e,t){var n=ae(e);return n<0?ue(n+t,0):le(n,t)},he=function(e){return function(t,n,r){var i,o=m(t),a=ce(o.length),s=de(r,a);if(e&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},fe={includes:he(!0),indexOf:he(!1)},pe=fe.indexOf,ge=function(e,t){var n,r=m(e),i=0,o=[];for(n in r)!b(q,n)&&b(r,n)&&o.push(n);for(;t.length>i;)b(r,n=t[i++])&&(~pe(o,n)||o.push(n));return o},me=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ve=me.concat("length","prototype"),ye={f:Object.getOwnPropertyNames||function(e){return ge(e,ve)}},_e={f:Object.getOwnPropertySymbols},be=re("Reflect","ownKeys")||function(e){var t=ye.f(T(e)),n=_e.f;return n?t.concat(n(e)):t},Se=function(e,t){for(var n=be(t),r=E.f,i=M.f,o=0;o<n.length;o++){var a=n[o];b(e,a)||r(e,a,i(t,a))}},xe=/#|\.prototype\./,we=function(e,t){var n=Ce[Ie(e)];return n==Te||n!=Me&&("function"==typeof t?o(t):!!t)},Ie=we.normalize=function(e){return String(e).replace(xe,".").toLowerCase()},Ce=we.data={},Me=we.NATIVE="N",Te=we.POLYFILL="P",ke=we,Ee=M.f,Ae=function(e,t){var n,r,o,a,s,c=e.target,u=e.global,l=e.stat;if(n=u?i:l?i[c]||D(c,{}):(i[c]||{}).prototype)for(r in t){if(a=t[r],o=e.noTargetGet?(s=Ee(n,r))&&s.value:n[r],!ke(u?r:c+(l?".":"#")+r,e.forced)&&void 0!==o){if(typeof a==typeof o)continue;Se(a,o)}(e.sham||o&&o.sham)&&A(a,"sham",!0),ee(n,r,a,e)}},De=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e},Oe=function(e,t,n){if(De(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}},Re=function(e){return Object(g(e))},Le=Array.isArray||function(e){return"Array"==h(e)},Pe=!!Object.getOwnPropertySymbols&&!o((function(){return!String(Symbol())})),Ne=Pe&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ue=V("wks"),Fe=i.Symbol,Ge=Ne?Fe:Fe&&Fe.withoutSetter||z,Ve=function(e){return b(Ue,e)||(Pe&&b(Fe,e)?Ue[e]=Fe[e]:Ue[e]=Ge("Symbol."+e)),Ue[e]},je=Ve("species"),Be=function(e,t){var n;return Le(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!Le(n.prototype)?v(n)&&null===(n=n[je])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)},ze=[].push,He=function(e){var t=1==e,n=2==e,r=3==e,i=4==e,o=6==e,a=5==e||o;return function(s,c,u,l){for(var d,h,f=Re(s),g=p(f),m=Oe(c,u,3),v=ce(g.length),y=0,_=l||Be,b=t?_(s,v):n?_(s,0):void 0;v>y;y++)if((a||y in g)&&(h=m(d=g[y],y,f),e))if(t)b[y]=h;else if(h)switch(e){case 3:return!0;case 5:return d;case 6:return y;case 2:ze.call(b,d)}else if(i)return!1;return o?-1:r||i?i:b}},We={forEach:He(0),map:He(1),filter:He(2),some:He(3),every:He(4),find:He(5),findIndex:He(6)},qe=function(e,t){var n=[][e];return!!n&&o((function(){n.call(null,t||function(){throw 1},1)}))},$e=Object.defineProperty,Ke={},Ye=function(e){throw e},Je=function(e,t){if(b(Ke,e))return Ke[e];t||(t={});var n=[][e],r=!!b(t,"ACCESSORS")&&t.ACCESSORS,i=b(t,0)?t[0]:Ye,s=b(t,1)?t[1]:void 0;return Ke[e]=!!n&&!o((function(){if(r&&!a)return!0;var e={length:-1};r?$e(e,1,{enumerable:!0,get:Ye}):e[1]=1,n.call(e,i,s)}))},Xe=We.forEach,Ze=qe("forEach"),Qe=Je("forEach"),et=Ze&&Qe?[].forEach:function(e){return Xe(this,e,arguments.length>1?arguments[1]:void 0)};Ae({target:"Array",proto:!0,forced:[].forEach!=et},{forEach:et});var nt=function(e,t,n,r){try{return r?t(T(n)[0],n[1]):t(n)}catch(a){var i=e.return;throw void 0!==i&&T(i.call(e)),a}},rt={},it=Ve("iterator"),ot=Array.prototype,at=function(e){return void 0!==e&&(rt.Array===e||ot[it]===e)},st=function(e,t,n){var r=y(t);r in e?E.f(e,r,l(0,n)):e[r]=n},ct={};ct[Ve("toStringTag")]="z";var ut="[object z]"===String(ct),lt=Ve("toStringTag"),dt="Arguments"==h(function(){return arguments}()),ht=ut?h:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=Object(e),lt))?n:dt?h(t):"Object"==(r=h(t))&&"function"==typeof t.callee?"Arguments":r},ft=Ve("iterator"),pt=function(e){if(null!=e)return e[ft]||e["@@iterator"]||rt[ht(e)]},gt=function(e){var t,n,r,i,o,a,s=Re(e),c="function"==typeof this?this:Array,u=arguments.length,l=u>1?arguments[1]:void 0,d=void 0!==l,h=pt(s),f=0;if(d&&(l=Oe(l,u>2?arguments[2]:void 0,2)),null==h||c==Array&&at(h))for(n=new c(t=ce(s.length));t>f;f++)a=d?l(s[f],f):s[f],st(n,f,a);else for(o=(i=h.call(s)).next,n=new c;!(r=o.call(i)).done;f++)a=d?nt(i,l,[r.value,f],!0):r.value,st(n,f,a);return n.length=f,n},mt=Ve("iterator"),vt=!1;try{var yt=0,_t={next:function(){return{done:!!yt++}},return:function(){vt=!0}};_t[mt]=function(){return this},Array.from(_t,(function(){throw 2}))}catch(aS){}var bt=function(e,t){if(!t&&!vt)return!1;var n=!1;try{var r={};r[mt]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(aS){}return n},St=!bt((function(e){Array.from(e)}));Ae({target:"Array",stat:!0,forced:St},{from:gt});var xt,wt=Object.keys||function(e){return ge(e,me)},It=a?Object.defineProperties:function(e,t){T(e);for(var n,r=wt(t),i=r.length,o=0;i>o;)E.f(e,n=r[o++],t[n]);return e},Ct=re("document","documentElement"),Mt=W("IE_PROTO"),Tt=function(){},kt=function(e){return"<script>"+e+"<\/script>"},Et=function(){try{xt=document.domain&&new ActiveXObject("htmlfile")}catch(aS){}var e,t;Et=xt?function(e){e.write(kt("")),e.close();var t=e.parentWindow.Object;return e=null,t}(xt):((t=w("iframe")).style.display="none",Ct.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(kt("document.F=Object")),e.close(),e.F);for(var n=me.length;n--;)delete Et.prototype[me[n]];return Et()};q[Mt]=!0;var At=Object.create||function(e,t){var n;return null!==e?(Tt.prototype=T(e),n=new Tt,Tt.prototype=null,n[Mt]=e):n=Et(),void 0===t?n:It(n,t)};Ae({target:"Object",stat:!0,sham:!a},{create:At});var Dt=o((function(){wt(1)}));Ae({target:"Object",stat:!0,forced:Dt},{keys:function(e){return wt(Re(e))}});var Ot="\t\n\v\f\r                 \u2028\u2029\ufeff",Rt="["+Ot+"]",Lt=RegExp("^"+Rt+Rt+"*"),Pt=RegExp(Rt+Rt+"*$"),Nt=function(e){return function(t){var n=String(g(t));return 1&e&&(n=n.replace(Lt,"")),2&e&&(n=n.replace(Pt,"")),n}},Ut={start:Nt(1),end:Nt(2),trim:Nt(3)},Ft=Ut.trim,Gt=i.parseInt,Vt=/^[+-]?0[Xx]/,jt=8!==Gt(Ot+"08")||22!==Gt(Ot+"0x16")?function(e,t){var n=Ft(String(e));return Gt(n,t>>>0||(Vt.test(n)?16:10))}:Gt;Ae({global:!0,forced:parseInt!=jt},{parseInt:jt});var Bt,zt,Ht,Wt=function(e){return function(t,n){var r,i,o=String(g(t)),a=ae(n),s=o.length;return a<0||a>=s?e?"":void 0:(r=o.charCodeAt(a))<55296||r>56319||a+1===s||(i=o.charCodeAt(a+1))<56320||i>57343?e?o.charAt(a):r:e?o.slice(a,a+2):i-56320+(r-55296<<10)+65536}},qt={codeAt:Wt(!1),charAt:Wt(!0)},$t=!o((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Kt=W("IE_PROTO"),Yt=Object.prototype,Jt=$t?Object.getPrototypeOf:function(e){return e=Re(e),b(e,Kt)?e[Kt]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?Yt:null},Xt=Ve("iterator"),Zt=!1;[].keys&&("next"in(Ht=[].keys())?(zt=Jt(Jt(Ht)))!==Object.prototype&&(Bt=zt):Zt=!0),null==Bt&&(Bt={}),b(Bt,Xt)||A(Bt,Xt,(function(){return this}));var Qt={IteratorPrototype:Bt,BUGGY_SAFARI_ITERATORS:Zt},en=E.f,tn=Ve("toStringTag"),nn=function(e,t,n){e&&!b(e=n?e:e.prototype,tn)&&en(e,tn,{configurable:!0,value:t})},rn=Qt.IteratorPrototype,on=function(){return this},an=function(e,t,n){var r=t+" Iterator";return e.prototype=At(rn,{next:l(1,n)}),nn(e,r,!1),rt[r]=on,e},sn=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(aS){}return function(n,r){return T(n),function(e){if(!v(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype")}(r),t?e.call(n,r):n.__proto__=r,n}}():void 0),cn=Qt.IteratorPrototype,un=Qt.BUGGY_SAFARI_ITERATORS,ln=Ve("iterator"),dn=function(){return this},hn=function(e,t,n,r,i,o,a){an(n,t,r);var s,c,u,l=function(e){if(e===i&&g)return g;if(!un&&e in f)return f[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},d=t+" Iterator",h=!1,f=e.prototype,p=f[ln]||f["@@iterator"]||i&&f[i],g=!un&&p||l(i),m="Array"==t&&f.entries||p;if(m&&(s=Jt(m.call(new e)),cn!==Object.prototype&&s.next&&(Jt(s)!==cn&&(sn?sn(s,cn):"function"!=typeof s[ln]&&A(s,ln,dn)),nn(s,d,!0))),"values"==i&&p&&"values"!==p.name&&(h=!0,g=function(){return p.call(this)}),f[ln]!==g&&A(f,ln,g),rt[t]=g,i)if(c={values:l("values"),keys:o?g:l("keys"),entries:l("entries")},a)for(u in c)(un||h||!(u in f))&&ee(f,u,c[u]);else Ae({target:t,proto:!0,forced:un||h},c);return c},fn=qt.charAt,pn=Q.set,gn=Q.getterFor("String Iterator");hn(String,"String",(function(e){pn(this,{type:"String Iterator",string:String(e),index:0})}),(function(){var e,t=gn(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=fn(n,r),t.index+=e.length,{value:e,done:!1})}));var mn={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0};for(var vn in mn){var yn=i[vn],_n=yn&&yn.prototype;if(_n&&_n.forEach!==et)try{A(_n,"forEach",et)}catch(aS){_n.forEach=et}}function bn(e){return(bn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Sn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function wn(e,t,n){return t&&xn(e.prototype,t),n&&xn(e,n),e}function In(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cn(Object(n),!0).forEach((function(t){In(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Tn(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&En(e,t)}function kn(e){return(kn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function En(e,t){return(En=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function An(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function Dn(e,t,n){return(Dn=An()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&En(i,n.prototype),i}).apply(null,arguments)}function On(e){var t="function"==typeof Map?new Map:void 0;return(On=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return Dn(e,arguments,kn(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),En(r,e)})(e)}function Rn(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Ln(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pn(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?Ln(e):t}function Nn(e){return function(){var t,n=kn(e);if(An()){var r=kn(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return Pn(this,t)}}function Un(e,t){return Gn(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(e,t)||jn(e,t)||zn()}function Fn(e){return function(e){if(Array.isArray(e))return Bn(e)}(e)||Vn(e)||jn(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gn(e){if(Array.isArray(e))return e}function Vn(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function jn(e,t){if(e){if("string"==typeof e)return Bn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bn(e,t):void 0}}function Bn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function zn(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Hn(e){if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=jn(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,i,o=!0,a=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return o=e.done,e},e:function(e){a=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(a)throw i}}}}var Wn,qn,$n={SDK_READY:"sdkStateReady",SDK_NOT_READY:"sdkStateNotReady",SDK_DESTROY:"sdkDestroy",MESSAGE_RECEIVED:"onMessageReceived",MESSAGE_MODIFIED:"onMessageModified",MESSAGE_REVOKED:"onMessageRevoked",MESSAGE_READ_BY_PEER:"onMessageReadByPeer",MESSAGE_READ_RECEIPT_RECEIVED:"onMessageReadReceiptReceived",CONVERSATION_LIST_UPDATED:"onConversationListUpdated",GROUP_LIST_UPDATED:"onGroupListUpdated",GROUP_SYSTEM_NOTICE_RECEIVED:"receiveGroupSystemNotice",GROUP_ATTRIBUTES_UPDATED:"groupAttributesUpdated",PROFILE_UPDATED:"onProfileUpdated",BLACKLIST_UPDATED:"blacklistUpdated",FRIEND_LIST_UPDATED:"onFriendListUpdated",FRIEND_GROUP_LIST_UPDATED:"onFriendGroupListUpdated",FRIEND_APPLICATION_LIST_UPDATED:"onFriendApplicationListUpdated",KICKED_OUT:"kickedOut",ERROR:"error",NET_STATE_CHANGE:"netStateChange",SDK_RELOAD:"sdkReload"},Kn={MSG_TEXT:"TIMTextElem",MSG_IMAGE:"TIMImageElem",MSG_SOUND:"TIMSoundElem",MSG_AUDIO:"TIMSoundElem",MSG_FILE:"TIMFileElem",MSG_FACE:"TIMFaceElem",MSG_VIDEO:"TIMVideoFileElem",MSG_GEO:"TIMLocationElem",MSG_LOCATION:"TIMLocationElem",MSG_GRP_TIP:"TIMGroupTipElem",MSG_GRP_SYS_NOTICE:"TIMGroupSystemNoticeElem",MSG_CUSTOM:"TIMCustomElem",MSG_MERGER:"TIMRelayElem",MSG_PRIORITY_HIGH:"High",MSG_PRIORITY_NORMAL:"Normal",MSG_PRIORITY_LOW:"Low",MSG_PRIORITY_LOWEST:"Lowest",CONV_C2C:"C2C",CONV_GROUP:"GROUP",CONV_SYSTEM:"@TIM#SYSTEM",CONV_AT_ME:1,CONV_AT_ALL:2,CONV_AT_ALL_AT_ME:3,GRP_PRIVATE:"Private",GRP_WORK:"Private",GRP_PUBLIC:"Public",GRP_CHATROOM:"ChatRoom",GRP_MEETING:"ChatRoom",GRP_AVCHATROOM:"AVChatRoom",GRP_COMMUNITY:"Community",GRP_MBR_ROLE_OWNER:"Owner",GRP_MBR_ROLE_ADMIN:"Admin",GRP_MBR_ROLE_MEMBER:"Member",GRP_MBR_ROLE_CUSTOM:"Custom",GRP_TIP_MBR_JOIN:1,GRP_TIP_MBR_QUIT:2,GRP_TIP_MBR_KICKED_OUT:3,GRP_TIP_MBR_SET_ADMIN:4,GRP_TIP_MBR_CANCELED_ADMIN:5,GRP_TIP_GRP_PROFILE_UPDATED:6,GRP_TIP_MBR_PROFILE_UPDATED:7,MSG_REMIND_ACPT_AND_NOTE:"AcceptAndNotify",MSG_REMIND_ACPT_NOT_NOTE:"AcceptNotNotify",MSG_REMIND_DISCARD:"Discard",GENDER_UNKNOWN:"Gender_Type_Unknown",GENDER_FEMALE:"Gender_Type_Female",GENDER_MALE:"Gender_Type_Male",KICKED_OUT_MULT_ACCOUNT:"multipleAccount",KICKED_OUT_MULT_DEVICE:"multipleDevice",KICKED_OUT_USERSIG_EXPIRED:"userSigExpired",ALLOW_TYPE_ALLOW_ANY:"AllowType_Type_AllowAny",ALLOW_TYPE_NEED_CONFIRM:"AllowType_Type_NeedConfirm",ALLOW_TYPE_DENY_ANY:"AllowType_Type_DenyAny",FORBID_TYPE_NONE:"AdminForbid_Type_None",FORBID_TYPE_SEND_OUT:"AdminForbid_Type_SendOut",JOIN_OPTIONS_FREE_ACCESS:"FreeAccess",JOIN_OPTIONS_NEED_PERMISSION:"NeedPermission",JOIN_OPTIONS_DISABLE_APPLY:"DisableApply",JOIN_STATUS_SUCCESS:"JoinedSuccess",JOIN_STATUS_ALREADY_IN_GROUP:"AlreadyInGroup",JOIN_STATUS_WAIT_APPROVAL:"WaitAdminApproval",GRP_PROFILE_OWNER_ID:"ownerID",GRP_PROFILE_CREATE_TIME:"createTime",GRP_PROFILE_LAST_INFO_TIME:"lastInfoTime",GRP_PROFILE_MEMBER_NUM:"memberNum",GRP_PROFILE_MAX_MEMBER_NUM:"maxMemberNum",GRP_PROFILE_JOIN_OPTION:"joinOption",GRP_PROFILE_INTRODUCTION:"introduction",GRP_PROFILE_NOTIFICATION:"notification",GRP_PROFILE_MUTE_ALL_MBRS:"muteAllMembers",SNS_ADD_TYPE_SINGLE:"Add_Type_Single",SNS_ADD_TYPE_BOTH:"Add_Type_Both",SNS_DELETE_TYPE_SINGLE:"Delete_Type_Single",SNS_DELETE_TYPE_BOTH:"Delete_Type_Both",SNS_APPLICATION_TYPE_BOTH:"Pendency_Type_Both",SNS_APPLICATION_SENT_TO_ME:"Pendency_Type_ComeIn",SNS_APPLICATION_SENT_BY_ME:"Pendency_Type_SendOut",SNS_APPLICATION_AGREE:"Response_Action_Agree",SNS_APPLICATION_AGREE_AND_ADD:"Response_Action_AgreeAndAdd",SNS_CHECK_TYPE_BOTH:"CheckResult_Type_Both",SNS_CHECK_TYPE_SINGLE:"CheckResult_Type_Single",SNS_TYPE_NO_RELATION:"CheckResult_Type_NoRelation",SNS_TYPE_A_WITH_B:"CheckResult_Type_AWithB",SNS_TYPE_B_WITH_A:"CheckResult_Type_BWithA",SNS_TYPE_BOTH_WAY:"CheckResult_Type_BothWay",NET_STATE_CONNECTED:"connected",NET_STATE_CONNECTING:"connecting",NET_STATE_DISCONNECTED:"disconnected",MSG_AT_ALL:"__kImSDK_MesssageAtALL__",READ_ALL_C2C_MSG:"readAllC2CMessage",READ_ALL_GROUP_MSG:"readAllGroupMessage",READ_ALL_MSG:"readAllMessage"},Yn=re("navigator","userAgent")||"",Jn=i.process,Xn=Jn&&Jn.versions,Zn=Xn&&Xn.v8;Zn?qn=(Wn=Zn.split("."))[0]+Wn[1]:Yn&&(!(Wn=Yn.match(/Edge\/(\d+)/))||Wn[1]>=74)&&(Wn=Yn.match(/Chrome\/(\d+)/))&&(qn=Wn[1]);var Qn=qn&&+qn,er=Ve("species"),tr=function(e){return Qn>=51||!o((function(){var t=[];return(t.constructor={})[er]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},nr=We.map,rr=tr("map"),ir=Je("map");Ae({target:"Array",proto:!0,forced:!rr||!ir},{map:function(e){return nr(this,e,arguments.length>1?arguments[1]:void 0)}});var or=[].slice,ar={},sr=function(e,t,n){if(!(t in ar)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";ar[t]=Function("C,a","return new C("+r.join(",")+")")}return ar[t](e,n)},cr=Function.bind||function(e){var t=De(this),n=or.call(arguments,1),r=function(){var i=n.concat(or.call(arguments));return this instanceof r?sr(t,i.length,i):t.apply(e,i)};return v(t.prototype)&&(r.prototype=t.prototype),r};Ae({target:"Function",proto:!0},{bind:cr});var ur=function(){function e(){Sn(this,e),this.cache=[],this.options=null}return wn(e,[{key:"use",value:function(e){if("function"!=typeof e)throw"middleware must be a function";return this.cache.push(e),this}},{key:"next",value:function(e){if(this.middlewares&&this.middlewares.length>0)return this.middlewares.shift().call(this,this.options,this.next.bind(this))}},{key:"run",value:function(e){return this.middlewares=this.cache.map((function(e){return e})),this.options=e,this.next()}}]),e}(),lr=Ve("isConcatSpreadable"),dr=Qn>=51||!o((function(){var e=[];return e[lr]=!1,e.concat()[0]!==e})),hr=tr("concat"),fr=function(e){if(!v(e))return!1;var t=e[lr];return void 0!==t?!!t:Le(e)};Ae({target:"Array",proto:!0,forced:!dr||!hr},{concat:function(e){var t,n,r,i,o,a=Re(this),s=Be(a,0),c=0;for(t=-1,r=arguments.length;t<r;t++)if(o=-1===t?a:arguments[t],fr(o)){if(c+(i=ce(o.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<i;n++,c++)n in o&&st(s,c,o[n])}else{if(c>=9007199254740991)throw TypeError("Maximum allowed index exceeded");st(s,c++,o)}return s.length=c,s}});var pr=E.f,gr=Function.prototype,mr=gr.toString,vr=/^\s*function ([^ (]*)/;a&&!("name"in gr)&&pr(gr,"name",{configurable:!0,get:function(){try{return mr.call(this).match(vr)[1]}catch(aS){return""}}});var yr=n((function(t,n){var r,i,o,a,s,c,u,l,d,h,f,p,g,m,v,y,_,b;t.exports=(r="function"==typeof Promise,i="object"==typeof self?self:e,o="undefined"!=typeof Symbol,a="undefined"!=typeof Map,s="undefined"!=typeof Set,c="undefined"!=typeof WeakMap,u="undefined"!=typeof WeakSet,l="undefined"!=typeof DataView,d=o&&void 0!==Symbol.iterator,h=o&&void 0!==Symbol.toStringTag,f=s&&"function"==typeof Set.prototype.entries,p=a&&"function"==typeof Map.prototype.entries,g=f&&Object.getPrototypeOf((new Set).entries()),m=p&&Object.getPrototypeOf((new Map).entries()),v=d&&"function"==typeof Array.prototype[Symbol.iterator],y=v&&Object.getPrototypeOf([][Symbol.iterator]()),_=d&&"function"==typeof String.prototype[Symbol.iterator],b=_&&Object.getPrototypeOf(""[Symbol.iterator]()),function(e){var t=typeof e;if("object"!==t)return t;if(null===e)return"null";if(e===i)return"global";if(Array.isArray(e)&&(!1===h||!(Symbol.toStringTag in e)))return"Array";if("object"==typeof window&&null!==window){if("object"==typeof window.location&&e===window.location)return"Location";if("object"==typeof window.document&&e===window.document)return"Document";if("object"==typeof window.navigator){if("object"==typeof window.navigator.mimeTypes&&e===window.navigator.mimeTypes)return"MimeTypeArray";if("object"==typeof window.navigator.plugins&&e===window.navigator.plugins)return"PluginArray"}if(("function"==typeof window.HTMLElement||"object"==typeof window.HTMLElement)&&e instanceof window.HTMLElement){if("BLOCKQUOTE"===e.tagName)return"HTMLQuoteElement";if("TD"===e.tagName)return"HTMLTableDataCellElement";if("TH"===e.tagName)return"HTMLTableHeaderCellElement"}}var n=h&&e[Symbol.toStringTag];if("string"==typeof n)return n;var o=Object.getPrototypeOf(e);return o===RegExp.prototype?"RegExp":o===Date.prototype?"Date":r&&o===Promise.prototype?"Promise":s&&o===Set.prototype?"Set":a&&o===Map.prototype?"Map":u&&o===WeakSet.prototype?"WeakSet":c&&o===WeakMap.prototype?"WeakMap":l&&o===DataView.prototype?"DataView":a&&o===m?"Map Iterator":s&&o===g?"Set Iterator":v&&o===y?"Array Iterator":_&&o===b?"String Iterator":null===o?"Object":Object.prototype.toString.call(e).slice(8,-1)})}));Ae({target:"Array",stat:!0},{isArray:Le});var _r=Ve("unscopables"),br=Array.prototype;null==br[_r]&&E.f(br,_r,{configurable:!0,value:At(null)});var Sr=function(e){br[_r][e]=!0},xr=We.find,wr=!0,Ir=Je("find");"find"in[]&&Array(1).find((function(){wr=!1})),Ae({target:"Array",proto:!0,forced:wr||!Ir},{find:function(e){return xr(this,e,arguments.length>1?arguments[1]:void 0)}}),Sr("find");var Cr=fe.includes,Mr=Je("indexOf",{ACCESSORS:!0,1:0});Ae({target:"Array",proto:!0,forced:!Mr},{includes:function(e){return Cr(this,e,arguments.length>1?arguments[1]:void 0)}}),Sr("includes");var Tr=fe.indexOf,kr=[].indexOf,Er=!!kr&&1/[1].indexOf(1,-0)<0,Ar=qe("indexOf"),Dr=Je("indexOf",{ACCESSORS:!0,1:0});Ae({target:"Array",proto:!0,forced:Er||!Ar||!Dr},{indexOf:function(e){return Er?kr.apply(this,arguments)||0:Tr(this,e,arguments.length>1?arguments[1]:void 0)}});var Or=Q.set,Rr=Q.getterFor("Array Iterator"),Lr=hn(Array,"Array",(function(e,t){Or(this,{type:"Array Iterator",target:m(e),index:0,kind:t})}),(function(){var e=Rr(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");rt.Arguments=rt.Array,Sr("keys"),Sr("values"),Sr("entries");var Pr=[].join,Nr=p!=Object,Ur=qe("join",",");Ae({target:"Array",proto:!0,forced:Nr||!Ur},{join:function(e){return Pr.call(m(this),void 0===e?",":e)}});var Fr=tr("slice"),Gr=Je("slice",{ACCESSORS:!0,0:0,1:2}),Vr=Ve("species"),jr=[].slice,Br=Math.max;Ae({target:"Array",proto:!0,forced:!Fr||!Gr},{slice:function(e,t){var n,r,i,o=m(this),a=ce(o.length),s=de(e,a),c=de(void 0===t?a:t,a);if(Le(o)&&("function"!=typeof(n=o.constructor)||n!==Array&&!Le(n.prototype)?v(n)&&null===(n=n[Vr])&&(n=void 0):n=void 0,n===Array||void 0===n))return jr.call(o,s,c);for(r=new(void 0===n?Array:n)(Br(c-s,0)),i=0;s<c;s++,i++)s in o&&st(r,i,o[s]);return r.length=i,r}}),Ae({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}});var zr="".repeat||function(e){var t=String(g(this)),n="",r=ae(e);if(r<0||1/0==r)throw RangeError("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n},Hr=Math.ceil,Wr=function(e){return function(t,n,r){var i,o,a=String(g(t)),s=a.length,c=void 0===r?" ":String(r),u=ce(n);return u<=s||""==c?a:(i=u-s,(o=zr.call(c,Hr(i/c.length))).length>i&&(o=o.slice(0,i)),e?a+o:o+a)}},qr={start:Wr(!1),end:Wr(!0)}.start,$r=Math.abs,Kr=Date.prototype,Yr=Kr.getTime,Jr=Kr.toISOString,Xr=o((function(){return"0385-07-25T07:06:39.999Z"!=Jr.call(new Date(-50000000000001))}))||!o((function(){Jr.call(new Date(NaN))}))?function(){if(!isFinite(Yr.call(this)))throw RangeError("Invalid time value");var e=this.getUTCFullYear(),t=this.getUTCMilliseconds(),n=e<0?"-":e>9999?"+":"";return n+qr($r(e),n?6:4,0)+"-"+qr(this.getUTCMonth()+1,2,0)+"-"+qr(this.getUTCDate(),2,0)+"T"+qr(this.getUTCHours(),2,0)+":"+qr(this.getUTCMinutes(),2,0)+":"+qr(this.getUTCSeconds(),2,0)+"."+qr(t,3,0)+"Z"}:Jr;Ae({target:"Date",proto:!0,forced:Date.prototype.toISOString!==Xr},{toISOString:Xr});var Zr=Date.prototype,Qr=Zr.toString,ei=Zr.getTime;new Date(NaN)+""!="Invalid Date"&&ee(Zr,"toString",(function(){var e=ei.call(this);return e==e?Qr.call(this):"Invalid Date"}));var ti=function(e,t,n){var r,i;return sn&&"function"==typeof(r=t.constructor)&&r!==n&&v(i=r.prototype)&&i!==n.prototype&&sn(e,i),e},ni=ye.f,ri=M.f,ii=E.f,oi=Ut.trim,ai=i.Number,si=ai.prototype,ci="Number"==h(At(si)),ui=function(e){var t,n,r,i,o,a,s,c,u=y(e,!1);if("string"==typeof u&&u.length>2)if(43===(t=(u=oi(u)).charCodeAt(0))||45===t){if(88===(n=u.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(u.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+u}for(a=(o=u.slice(2)).length,s=0;s<a;s++)if((c=o.charCodeAt(s))<48||c>i)return NaN;return parseInt(o,r)}return+u};if(ke("Number",!ai(" 0o1")||!ai("0b1")||ai("+0x1"))){for(var li,di=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof di&&(ci?o((function(){si.valueOf.call(n)})):"Number"!=h(n))?ti(new ai(ui(t)),n,di):ui(t)},hi=a?ni(ai):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),fi=0;hi.length>fi;fi++)b(ai,li=hi[fi])&&!b(di,li)&&ii(di,li,ri(ai,li));di.prototype=si,si.constructor=di,ee(i,"Number",di)}var pi=ye.f,gi={}.toString,mi="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],vi={f:function(e){return mi&&"[object Window]"==gi.call(e)?function(e){try{return pi(e)}catch(aS){return mi.slice()}}(e):pi(m(e))}},yi=vi.f,_i=o((function(){return!Object.getOwnPropertyNames(1)}));Ae({target:"Object",stat:!0,forced:_i},{getOwnPropertyNames:yi});var bi=o((function(){Jt(1)}));Ae({target:"Object",stat:!0,forced:bi,sham:!$t},{getPrototypeOf:function(e){return Jt(Re(e))}});var Si=ut?{}.toString:function(){return"[object "+ht(this)+"]"};ut||ee(Object.prototype,"toString",Si,{unsafe:!0});var xi,wi,Ii,Ci=i.Promise,Mi=function(e,t,n){for(var r in t)ee(e,r,t[r],n);return e},Ti=Ve("species"),ki=function(e){var t=re(e),n=E.f;a&&t&&!t[Ti]&&n(t,Ti,{configurable:!0,get:function(){return this}})},Ei=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e},Ai=n((function(e){var t=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,n,r,i,o){var a,s,c,u,l,d,h,f=Oe(n,r,i?2:1);if(o)a=e;else{if("function"!=typeof(s=pt(e)))throw TypeError("Target is not iterable");if(at(s)){for(c=0,u=ce(e.length);u>c;c++)if((l=i?f(T(h=e[c])[0],h[1]):f(e[c]))&&l instanceof t)return l;return new t(!1)}a=s.call(e)}for(d=a.next;!(h=d.call(a)).done;)if("object"==typeof(l=nt(a,f,h.value,i))&&l&&l instanceof t)return l;return new t(!1)}).stop=function(e){return new t(!0,e)}})),Di=Ve("species"),Oi=function(e,t){var n,r=T(e).constructor;return void 0===r||null==(n=T(r)[Di])?t:De(n)},Ri=/(iphone|ipod|ipad).*applewebkit/i.test(Yn),Li=i.location,Pi=i.setImmediate,Ni=i.clearImmediate,Ui=i.process,Fi=i.MessageChannel,Gi=i.Dispatch,Vi=0,ji={},Bi=function(e){if(ji.hasOwnProperty(e)){var t=ji[e];delete ji[e],t()}},zi=function(e){return function(){Bi(e)}},Hi=function(e){Bi(e.data)},Wi=function(e){i.postMessage(e+"",Li.protocol+"//"+Li.host)};Pi&&Ni||(Pi=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return ji[++Vi]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},xi(Vi),Vi},Ni=function(e){delete ji[e]},"process"==h(Ui)?xi=function(e){Ui.nextTick(zi(e))}:Gi&&Gi.now?xi=function(e){Gi.now(zi(e))}:Fi&&!Ri?(Ii=(wi=new Fi).port2,wi.port1.onmessage=Hi,xi=Oe(Ii.postMessage,Ii,1)):!i.addEventListener||"function"!=typeof postMessage||i.importScripts||o(Wi)?xi="onreadystatechange"in w("script")?function(e){Ct.appendChild(w("script")).onreadystatechange=function(){Ct.removeChild(this),Bi(e)}}:function(e){setTimeout(zi(e),0)}:(xi=Wi,i.addEventListener("message",Hi,!1)));var qi,$i,Ki,Yi,Ji,Xi,Zi,Qi,eo={set:Pi,clear:Ni},to=M.f,no=eo.set,ro=i.MutationObserver||i.WebKitMutationObserver,io=i.process,oo=i.Promise,ao="process"==h(io),so=to(i,"queueMicrotask"),co=so&&so.value;co||(qi=function(){var e,t;for(ao&&(e=io.domain)&&e.exit();$i;){t=$i.fn,$i=$i.next;try{t()}catch(aS){throw $i?Yi():Ki=void 0,aS}}Ki=void 0,e&&e.enter()},ao?Yi=function(){io.nextTick(qi)}:ro&&!Ri?(Ji=!0,Xi=document.createTextNode(""),new ro(qi).observe(Xi,{characterData:!0}),Yi=function(){Xi.data=Ji=!Ji}):oo&&oo.resolve?(Zi=oo.resolve(void 0),Qi=Zi.then,Yi=function(){Qi.call(Zi,qi)}):Yi=function(){no.call(i,qi)});var uo,lo,ho,fo,po=co||function(e){var t={fn:e,next:void 0};Ki&&(Ki.next=t),$i||($i=t,Yi()),Ki=t},go=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=De(t),this.reject=De(n)},mo={f:function(e){return new go(e)}},vo=function(e,t){if(T(e),v(t)&&t.constructor===e)return t;var n=mo.f(e);return(0,n.resolve)(t),n.promise},yo=function(e){try{return{error:!1,value:e()}}catch(aS){return{error:!0,value:aS}}},_o=eo.set,bo=Ve("species"),So="Promise",xo=Q.get,wo=Q.set,Io=Q.getterFor(So),Co=Ci,Mo=i.TypeError,To=i.document,ko=i.process,Eo=re("fetch"),Ao=mo.f,Do=Ao,Oo="process"==h(ko),Ro=!!(To&&To.createEvent&&i.dispatchEvent),Lo=ke(So,(function(){if(U(Co)===String(Co)){if(66===Qn)return!0;if(!Oo&&"function"!=typeof PromiseRejectionEvent)return!0}if(Qn>=51&&/native code/.test(Co))return!1;var e=Co.resolve(1),t=function(e){e((function(){}),(function(){}))};return(e.constructor={})[bo]=t,!(e.then((function(){}))instanceof t)})),Po=Lo||!bt((function(e){Co.all(e).catch((function(){}))})),No=function(e){var t;return!(!v(e)||"function"!=typeof(t=e.then))&&t},Uo=function(e,t,n){if(!t.notified){t.notified=!0;var r=t.reactions;po((function(){for(var i=t.value,o=1==t.state,a=0;r.length>a;){var s,c,u,l=r[a++],d=o?l.ok:l.fail,h=l.resolve,f=l.reject,p=l.domain;try{d?(o||(2===t.rejection&&jo(e,t),t.rejection=1),!0===d?s=i:(p&&p.enter(),s=d(i),p&&(p.exit(),u=!0)),s===l.promise?f(Mo("Promise-chain cycle")):(c=No(s))?c.call(s,h,f):h(s)):f(i)}catch(aS){p&&!u&&p.exit(),f(aS)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&Go(e,t)}))}},Fo=function(e,t,n){var r,o;Ro?((r=To.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),i.dispatchEvent(r)):r={promise:t,reason:n},(o=i["on"+e])?o(r):"unhandledrejection"===e&&function(e,t){var n=i.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}("Unhandled promise rejection",n)},Go=function(e,t){_o.call(i,(function(){var n,r=t.value;if(Vo(t)&&(n=yo((function(){Oo?ko.emit("unhandledRejection",r,e):Fo("unhandledrejection",e,r)})),t.rejection=Oo||Vo(t)?2:1,n.error))throw n.value}))},Vo=function(e){return 1!==e.rejection&&!e.parent},jo=function(e,t){_o.call(i,(function(){Oo?ko.emit("rejectionHandled",e):Fo("rejectionhandled",e,t.value)}))},Bo=function(e,t,n,r){return function(i){e(t,n,i,r)}},zo=function(e,t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=2,Uo(e,t,!0))},Ho=function(e,t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(e===n)throw Mo("Promise can't be resolved itself");var i=No(n);i?po((function(){var r={done:!1};try{i.call(n,Bo(Ho,e,r,t),Bo(zo,e,r,t))}catch(aS){zo(e,r,aS,t)}})):(t.value=n,t.state=1,Uo(e,t,!1))}catch(aS){zo(e,{done:!1},aS,t)}}};Lo&&(Co=function(e){Ei(this,Co,So),De(e),uo.call(this);var t=xo(this);try{e(Bo(Ho,this,t),Bo(zo,this,t))}catch(aS){zo(this,t,aS)}},(uo=function(e){wo(this,{type:So,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Mi(Co.prototype,{then:function(e,t){var n=Io(this),r=Ao(Oi(this,Co));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=Oo?ko.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&Uo(this,n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),lo=function(){var e=new uo,t=xo(e);this.promise=e,this.resolve=Bo(Ho,e,t),this.reject=Bo(zo,e,t)},mo.f=Ao=function(e){return e===Co||e===ho?new lo(e):Do(e)},"function"==typeof Ci&&(fo=Ci.prototype.then,ee(Ci.prototype,"then",(function(e,t){var n=this;return new Co((function(e,t){fo.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof Eo&&Ae({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return vo(Co,Eo.apply(i,arguments))}}))),Ae({global:!0,wrap:!0,forced:Lo},{Promise:Co}),nn(Co,So,!1),ki(So),ho=re(So),Ae({target:So,stat:!0,forced:Lo},{reject:function(e){var t=Ao(this);return t.reject.call(void 0,e),t.promise}}),Ae({target:So,stat:!0,forced:Lo},{resolve:function(e){return vo(this,e)}}),Ae({target:So,stat:!0,forced:Po},{all:function(e){var t=this,n=Ao(t),r=n.resolve,i=n.reject,o=yo((function(){var n=De(t.resolve),o=[],a=0,s=1;Ai(e,(function(e){var c=a++,u=!1;o.push(void 0),s++,n.call(t,e).then((function(e){u||(u=!0,o[c]=e,--s||r(o))}),i)})),--s||r(o)}));return o.error&&i(o.value),n.promise},race:function(e){var t=this,n=Ao(t),r=n.reject,i=yo((function(){var i=De(t.resolve);Ai(e,(function(e){i.call(t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});var Wo=function(){var e=T(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t};function qo(e,t){return RegExp(e,t)}var $o,Ko,Yo={UNSUPPORTED_Y:o((function(){var e=qo("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),BROKEN_CARET:o((function(){var e=qo("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},Jo=RegExp.prototype.exec,Xo=String.prototype.replace,Zo=Jo,Qo=($o=/a/,Ko=/b*/g,Jo.call($o,"a"),Jo.call(Ko,"a"),0!==$o.lastIndex||0!==Ko.lastIndex),ea=Yo.UNSUPPORTED_Y||Yo.BROKEN_CARET,ta=void 0!==/()??/.exec("")[1];(Qo||ta||ea)&&(Zo=function(e){var t,n,r,i,o=this,a=ea&&o.sticky,s=Wo.call(o),c=o.source,u=0,l=e;return a&&(-1===(s=s.replace("y","")).indexOf("g")&&(s+="g"),l=String(e).slice(o.lastIndex),o.lastIndex>0&&(!o.multiline||o.multiline&&"\n"!==e[o.lastIndex-1])&&(c="(?: "+c+")",l=" "+l,u++),n=new RegExp("^(?:"+c+")",s)),ta&&(n=new RegExp("^"+c+"$(?!\\s)",s)),Qo&&(t=o.lastIndex),r=Jo.call(a?n:o,l),a?r?(r.input=r.input.slice(u),r[0]=r[0].slice(u),r.index=o.lastIndex,o.lastIndex+=r[0].length):o.lastIndex=0:Qo&&r&&(o.lastIndex=o.global?r.index+r[0].length:t),ta&&r&&r.length>1&&Xo.call(r[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)})),r});var na=Zo;Ae({target:"RegExp",proto:!0,forced:/./.exec!==na},{exec:na});var ra=RegExp.prototype,ia=ra.toString,oa=o((function(){return"/a/b"!=ia.call({source:"a",flags:"b"})})),aa="toString"!=ia.name;(oa||aa)&&ee(RegExp.prototype,"toString",(function(){var e=T(this),t=String(e.source),n=e.flags;return"/"+t+"/"+String(void 0===n&&e instanceof RegExp&&!("flags"in ra)?Wo.call(e):n)}),{unsafe:!0});var sa=qt.codeAt;Ae({target:"String",proto:!0},{codePointAt:function(e){return sa(this,e)}});var ca=Ve("match"),ua=function(e){var t;return v(e)&&(void 0!==(t=e[ca])?!!t:"RegExp"==h(e))},la=function(e){if(ua(e))throw TypeError("The method doesn't accept regular expressions");return e},da=Ve("match"),ha=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[da]=!1,"/./"[e](t)}catch(i){}}return!1};Ae({target:"String",proto:!0,forced:!ha("includes")},{includes:function(e){return!!~String(g(this)).indexOf(la(e),arguments.length>1?arguments[1]:void 0)}});var fa=Ve("species"),pa=!o((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),ga="$0"==="a".replace(/./,"$0"),ma=Ve("replace"),va=!!/./[ma]&&""===/./[ma]("a","$0"),ya=!o((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]})),_a=function(e,t,n,r){var i=Ve(e),a=!o((function(){var t={};return t[i]=function(){return 7},7!=""[e](t)})),s=a&&!o((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[fa]=function(){return n},n.flags="",n[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](""),!t}));if(!a||!s||"replace"===e&&(!pa||!ga||va)||"split"===e&&!ya){var c=/./[i],u=n(i,""[e],(function(e,t,n,r,i){return t.exec===na?a&&!i?{done:!0,value:c.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:ga,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:va}),l=u[0],d=u[1];ee(String.prototype,e,l),ee(RegExp.prototype,i,2==t?function(e,t){return d.call(e,this,t)}:function(e){return d.call(e,this)})}r&&A(RegExp.prototype[i],"sham",!0)},ba=qt.charAt,Sa=function(e,t,n){return t+(n?ba(e,t).length:1)},xa=function(e,t){var n=e.exec;if("function"==typeof n){var r=n.call(e,t);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==h(e))throw TypeError("RegExp#exec called on incompatible receiver");return na.call(e,t)};_a("match",1,(function(e,t,n){return[function(t){var n=g(this),r=null==t?void 0:t[e];return void 0!==r?r.call(t,n):new RegExp(t)[e](String(n))},function(e){var r=n(t,e,this);if(r.done)return r.value;var i=T(e),o=String(this);if(!i.global)return xa(i,o);var a=i.unicode;i.lastIndex=0;for(var s,c=[],u=0;null!==(s=xa(i,o));){var l=String(s[0]);c[u]=l,""===l&&(i.lastIndex=Sa(o,ce(i.lastIndex),a)),u++}return 0===u?null:c}]}));var wa=Math.max,Ia=Math.min,Ca=Math.floor,Ma=/\$([$&'`]|\d\d?|<[^>]*>)/g,Ta=/\$([$&'`]|\d\d?)/g;_a("replace",2,(function(e,t,n,r){var i=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,o=r.REPLACE_KEEPS_$0,a=i?"$":"$0";return[function(n,r){var i=g(this),o=null==n?void 0:n[e];return void 0!==o?o.call(n,i,r):t.call(String(i),n,r)},function(e,r){if(!i&&o||"string"==typeof r&&-1===r.indexOf(a)){var c=n(t,e,this,r);if(c.done)return c.value}var u=T(e),l=String(this),d="function"==typeof r;d||(r=String(r));var h=u.global;if(h){var f=u.unicode;u.lastIndex=0}for(var p=[];;){var g=xa(u,l);if(null===g)break;if(p.push(g),!h)break;""===String(g[0])&&(u.lastIndex=Sa(l,ce(u.lastIndex),f))}for(var m,v="",y=0,_=0;_<p.length;_++){g=p[_];for(var b=String(g[0]),S=wa(Ia(ae(g.index),l.length),0),x=[],w=1;w<g.length;w++)x.push(void 0===(m=g[w])?m:String(m));var I=g.groups;if(d){var C=[b].concat(x,S,l);void 0!==I&&C.push(I);var M=String(r.apply(void 0,C))}else M=s(b,l,S,x,I,r);S>=y&&(v+=l.slice(y,S)+M,y=S+b.length)}return v+l.slice(y)}];function s(e,n,r,i,o,a){var s=r+e.length,c=i.length,u=Ta;return void 0!==o&&(o=Re(o),u=Ma),t.call(a,u,(function(t,a){var u;switch(a.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(s);case"<":u=o[a.slice(1,-1)];break;default:var l=+a;if(0===l)return t;if(l>c){var d=Ca(l/10);return 0===d?t:d<=c?void 0===i[d-1]?a.charAt(1):i[d-1]+a.charAt(1):t}u=i[l-1]}return void 0===u?"":u}))}}));var ka,Ea=M.f,Aa="".startsWith,Da=Math.min,Oa=ha("startsWith"),Ra=!(Oa||(ka=Ea(String.prototype,"startsWith"),!ka||ka.writable));Ae({target:"String",proto:!0,forced:!Ra&&!Oa},{startsWith:function(e){var t=String(g(this));la(e);var n=ce(Da(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return Aa?Aa.call(t,r,n):t.slice(n,n+r.length)===r}});var La=Ve("iterator"),Pa=Ve("toStringTag"),Na=Lr.values;for(var Ua in mn){var Fa=i[Ua],Ga=Fa&&Fa.prototype;if(Ga){if(Ga[La]!==Na)try{A(Ga,La,Na)}catch(aS){Ga[La]=Na}if(Ga[Pa]||A(Ga,Pa,Ua),mn[Ua])for(var Va in Lr)if(Ga[Va]!==Lr[Va])try{A(Ga,Va,Lr[Va])}catch(aS){Ga[Va]=Lr[Va]}}}var ja=Ut.trim,Ba=i.parseFloat,za=1/Ba(Ot+"-0")!=-1/0?function(e){var t=ja(String(e)),n=Ba(t);return 0===n&&"-"==t.charAt(0)?-0:n}:Ba;Ae({global:!0,forced:parseFloat!=za},{parseFloat:za});var Ha=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Sn(this,e),this.high=t,this.low=n}return wn(e,[{key:"equal",value:function(e){return null!==e&&this.low===e.low&&this.high===e.high}},{key:"toString",value:function(){var e=Number(this.high).toString(16),t=Number(this.low).toString(16);if(t.length<8)for(var n=8-t.length;n;)t="0"+t,n--;return e+t}}]),e}(),Wa={TEST:{CHINA:{DEFAULT:"wss://wss-dev.tim.qq.com"},OVERSEA:{DEFAULT:"wss://wss-dev.tim.qq.com"},SINGAPORE:{DEFAULT:"wss://wsssgp-dev.im.qcloud.com"},KOREA:{DEFAULT:"wss://wsskr-dev.im.qcloud.com"},GERMANY:{DEFAULT:"wss://wssger-dev.im.qcloud.com"},IND:{DEFAULT:"wss://wssind-dev.im.qcloud.com"}},PRODUCTION:{CHINA:{DEFAULT:"wss://wss.im.qcloud.com",BACKUP:"wss://wss.tim.qq.com",STAT:"https://api.im.qcloud.com"},OVERSEA:{DEFAULT:"wss://wss.im.qcloud.com",BACKUP:"wss://wss.my-imcloud.com",STAT:"https://api.my-imcloud.com"},SINGAPORE:{DEFAULT:"wss://wsssgp.im.qcloud.com",BACKUP:"wss://wsssgp.my-imcloud.com",STAT:"https://apisgp.my-imcloud.com"},KOREA:{DEFAULT:"wss://wsskr.im.qcloud.com",BACKUP:"wss://wsskr.my-imcloud.com",STAT:"https://apikr.my-imcloud.com"},GERMANY:{DEFAULT:"wss://wssger.im.qcloud.com",BACKUP:"wss://wssger.my-imcloud.com",STAT:"https://apiger.my-imcloud.com"},IND:{DEFAULT:"wss://wssind.im.qcloud.com",BACKUP:"wss://wssind.my-imcloud.com",STAT:"https://apiind.my-imcloud.com"}}},qa={WEB:7,WX_MP:8,QQ_MP:9,TT_MP:10,BAIDU_MP:11,ALI_MP:12,UNI_NATIVE_APP:15},$a="1.7.3",Ka=537048168,Ya="CHINA",Ja="OVERSEA",Xa="SINGAPORE",Za="KOREA",Qa="GERMANY",es="IND",ts={HOST:{CURRENT:{DEFAULT:"wss://wss.im.qcloud.com",STAT:"https://api.im.qcloud.com"},setCurrent:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ya;this.CURRENT=Wa.PRODUCTION[e]}},NAME:{OPEN_IM:"openim",GROUP:"group_open_http_svc",GROUP_COMMUNITY:"million_group_open_http_svc",GROUP_ATTR:"group_open_attr_http_svc",FRIEND:"sns",PROFILE:"profile",RECENT_CONTACT:"recentcontact",PIC:"openpic",BIG_GROUP_NO_AUTH:"group_open_http_noauth_svc",BIG_GROUP_LONG_POLLING:"group_open_long_polling_http_svc",BIG_GROUP_LONG_POLLING_NO_AUTH:"group_open_long_polling_http_noauth_svc",IM_OPEN_STAT:"imopenstat",WEB_IM:"webim",IM_COS_SIGN:"im_cos_sign_svr",CUSTOM_UPLOAD:"im_cos_msg",HEARTBEAT:"heartbeat",IM_OPEN_PUSH:"im_open_push",IM_OPEN_STATUS:"im_open_status",IM_LONG_MESSAGE:"im_long_msg",IM_CONFIG_MANAGER:"im_sdk_config_mgr",STAT_SERVICE:"StatSvc",OVERLOAD_PUSH:"OverLoadPush"},CMD:{ACCESS_LAYER:"accesslayer",LOGIN:"wslogin",LOGOUT_LONG_POLL:"longpollinglogout",LOGOUT:"wslogout",HELLO:"wshello",PORTRAIT_GET:"portrait_get_all",PORTRAIT_SET:"portrait_set",GET_LONG_POLL_ID:"getlongpollingid",LONG_POLL:"longpolling",AVCHATROOM_LONG_POLL:"get_msg",ADD_FRIEND:"friend_add",UPDATE_FRIEND:"friend_update",GET_FRIEND_LIST:"friend_get",GET_FRIEND_PROFILE:"friend_get_list",DELETE_FRIEND:"friend_delete",CHECK_FRIEND:"friend_check",GET_FRIEND_GROUP_LIST:"group_get",RESPOND_FRIEND_APPLICATION:"friend_response",GET_FRIEND_APPLICATION_LIST:"pendency_get",DELETE_FRIEND_APPLICATION:"pendency_delete",REPORT_FRIEND_APPLICATION:"pendency_report",GET_GROUP_APPLICATION:"get_pendency",CREATE_FRIEND_GROUP:"group_add",DELETE_FRIEND_GROUP:"group_delete",UPDATE_FRIEND_GROUP:"group_update",GET_BLACKLIST:"black_list_get",ADD_BLACKLIST:"black_list_add",DELETE_BLACKLIST:"black_list_delete",CREATE_GROUP:"create_group",GET_JOINED_GROUPS:"get_joined_group_list",SET_GROUP_ATTRIBUTES:"set_group_attr",MODIFY_GROUP_ATTRIBUTES:"modify_group_attr",DELETE_GROUP_ATTRIBUTES:"delete_group_attr",CLEAR_GROUP_ATTRIBUTES:"clear_group_attr",GET_GROUP_ATTRIBUTES:"get_group_attr",SEND_MESSAGE:"sendmsg",REVOKE_C2C_MESSAGE:"msgwithdraw",DELETE_C2C_MESSAGE:"delete_c2c_msg_ramble",SEND_GROUP_MESSAGE:"send_group_msg",REVOKE_GROUP_MESSAGE:"group_msg_recall",DELETE_GROUP_MESSAGE:"delete_group_ramble_msg_by_seq",GET_GROUP_INFO:"get_group_self_member_info",GET_GROUP_MEMBER_INFO:"get_specified_group_member_info",GET_GROUP_MEMBER_LIST:"get_group_member_info",QUIT_GROUP:"quit_group",CHANGE_GROUP_OWNER:"change_group_owner",DESTROY_GROUP:"destroy_group",ADD_GROUP_MEMBER:"add_group_member",DELETE_GROUP_MEMBER:"delete_group_member",SEARCH_GROUP_BY_ID:"get_group_public_info",APPLY_JOIN_GROUP:"apply_join_group",HANDLE_APPLY_JOIN_GROUP:"handle_apply_join_group",HANDLE_GROUP_INVITATION:"handle_invite_join_group",MODIFY_GROUP_INFO:"modify_group_base_info",MODIFY_GROUP_MEMBER_INFO:"modify_group_member_info",DELETE_GROUP_SYSTEM_MESSAGE:"deletemsg",DELETE_GROUP_AT_TIPS:"deletemsg",GET_CONVERSATION_LIST:"get",PAGING_GET_CONVERSATION_LIST:"page_get",DELETE_CONVERSATION:"delete",PIN_CONVERSATION:"top",GET_MESSAGES:"getmsg",GET_C2C_ROAM_MESSAGES:"getroammsg",SET_C2C_PEER_MUTE_NOTIFICATIONS:"set_c2c_peer_mute_notifications",GET_C2C_PEER_MUTE_NOTIFICATIONS:"get_c2c_peer_mute_notifications",GET_GROUP_ROAM_MESSAGES:"group_msg_get",GET_READ_RECEIPT:"get_group_msg_receipt",GET_READ_RECEIPT_DETAIL:"get_group_msg_receipt_detail",SEND_READ_RECEIPT:"group_msg_receipt",SET_C2C_MESSAGE_READ:"msgreaded",GET_PEER_READ_TIME:"get_peer_read_time",SET_GROUP_MESSAGE_READ:"msg_read_report",FILE_READ_AND_WRITE_AUTHKEY:"authkey",FILE_UPLOAD:"pic_up",COS_SIGN:"cos",COS_PRE_SIG:"pre_sig",VIDEO_COVER:"video_cover",TIM_WEB_REPORT_V2:"tim_web_report_v2",BIG_DATA_HALLWAY_AUTH_KEY:"authkey",GET_ONLINE_MEMBER_NUM:"get_online_member_num",ALIVE:"alive",MESSAGE_PUSH:"msg_push",MULTI_MESSAGE_PUSH:"multi_msg_push_ws",MESSAGE_PUSH_ACK:"ws_msg_push_ack",STATUS_FORCEOFFLINE:"stat_forceoffline",DOWNLOAD_MERGER_MESSAGE:"get_relay_json_msg",UPLOAD_MERGER_MESSAGE:"save_relay_json_msg",FETCH_CLOUD_CONTROL_CONFIG:"fetch_config",PUSHED_CLOUD_CONTROL_CONFIG:"push_configv2",FETCH_COMMERCIAL_CONFIG:"fetch_imsdk_purchase_bitsv2",PUSHED_COMMERCIAL_CONFIG:"push_imsdk_purchase_bitsv2",KICK_OTHER:"KickOther",OVERLOAD_NOTIFY:"notify2",SET_ALL_MESSAGE_READ:"read_all_unread_msg"},CHANNEL:{SOCKET:1,XHR:2,AUTO:0},NAME_VERSION:{openim:"v4",group_open_http_svc:"v4",sns:"v4",profile:"v4",recentcontact:"v4",openpic:"v4",group_open_http_noauth_svc:"v4",group_open_long_polling_http_svc:"v4",group_open_long_polling_http_noauth_svc:"v4",imopenstat:"v4",im_cos_sign_svr:"v4",im_cos_msg:"v4",webim:"v4",im_open_push:"v4",im_open_status:"v4"}},ns={SEARCH_MSG:new Ha(0,Math.pow(2,0)).toString(),SEARCH_GRP_SNS:new Ha(0,Math.pow(2,1)).toString(),AVCHATROOM_HISTORY_MSG:new Ha(0,Math.pow(2,2)).toString(),GRP_COMMUNITY:new Ha(0,Math.pow(2,3)).toString(),MSG_TO_SPECIFIED_GRP_MBR:new Ha(0,Math.pow(2,4)).toString()};ts.HOST.setCurrent(Ya);var rs,is,os,as="undefined"!=typeof wx&&"function"==typeof wx.getSystemInfoSync&&Boolean(wx.getSystemInfoSync().fontSizeSetting),ss="undefined"!=typeof qq&&"function"==typeof qq.getSystemInfoSync&&Boolean(qq.getSystemInfoSync().fontSizeSetting),cs="undefined"!=typeof tt&&"function"==typeof tt.getSystemInfoSync&&Boolean(tt.getSystemInfoSync().fontSizeSetting),us="undefined"!=typeof swan&&"function"==typeof swan.getSystemInfoSync&&Boolean(swan.getSystemInfoSync().fontSizeSetting),ls="undefined"!=typeof my&&"function"==typeof my.getSystemInfoSync&&Boolean(my.getSystemInfoSync().fontSizeSetting),ds="undefined"!=typeof uni&&"undefined"==typeof window,hs="undefined"!=typeof uni,fs=as||ss||cs||us||ls||ds,ps=("undefined"!=typeof uni||"undefined"!=typeof window)&&!fs,gs=ss?qq:cs?tt:us?swan:ls?my:as?wx:ds?uni:{},ms=(rs="WEB",As?rs="WEB":ss?rs="QQ_MP":cs?rs="TT_MP":us?rs="BAIDU_MP":ls?rs="ALI_MP":as?rs="WX_MP":ds&&(rs="UNI_NATIVE_APP"),qa[rs]),vs=ps&&window&&window.navigator&&window.navigator.userAgent||"",ys=/AppleWebKit\/([\d.]+)/i.exec(vs),_s=(ys&&parseFloat(ys.pop()),/iPad/i.test(vs)),bs=/iPhone/i.test(vs)&&!_s,Ss=/iPod/i.test(vs),xs=bs||_s||Ss,ws=function(){var e=vs.match(/OS (\d+)_/i);return e&&e[1]?e[1]:null}(),Is=/Android/i.test(vs),Cs=function(){var e=vs.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}(),Ms=(Is&&/webkit/i.test(vs),/Firefox/i.test(vs),/Edge/i.test(vs)),Ts=(!Ms&&/Chrome/i.test(vs),function(){var e=vs.match(/Chrome\/(\d+)/);e&&e[1]&&parseFloat(e[1])}(),/MSIE/.test(vs)||vs.indexOf("Trident")>-1&&vs.indexOf("rv:11.0")>-1),ks=(/MSIE\s8\.0/.test(vs),function(){var e=/MSIE\s(\d+)\.\d/.exec(vs),t=e&&parseFloat(e[1]);return!t&&/Trident\/7.0/i.test(vs)&&/rv:11.0/.test(vs)&&(t=11),t}()),Es=(/Safari/i.test(vs),/TBS\/\d+/i.test(vs)),As=(function(){var e=vs.match(/TBS\/(\d+)/i);e&&e[1]&&e[1]}(),!Es&&/MQQBrowser\/\d+/i.test(vs),!Es&&/ QQBrowser\/\d+/i.test(vs),/(micromessenger|webbrowser)/i.test(vs)),Ds=/Windows/i.test(vs),Os=/MAC OS X/i.test(vs),Rs=(/MicroMessenger/i.test(vs),ps&&"undefined"!=typeof Worker&&!Ts),Ls=!o((function(){return Object.isExtensible(Object.preventExtensions({}))})),Ps=n((function(e){var t=E.f,n=z("meta"),r=0,i=Object.isExtensible||function(){return!0},o=function(e){t(e,n,{value:{objectID:"O"+ ++r,weakData:{}}})},a=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!v(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!b(e,n)){if(!i(e))return"F";if(!t)return"E";o(e)}return e[n].objectID},getWeakData:function(e,t){if(!b(e,n)){if(!i(e))return!0;if(!t)return!1;o(e)}return e[n].weakData},onFreeze:function(e){return Ls&&a.REQUIRED&&i(e)&&!b(e,n)&&o(e),e}};q[n]=!0})),Ns=(Ps.REQUIRED,Ps.fastKey,Ps.getWeakData,Ps.onFreeze,E.f),Us=Ps.fastKey,Fs=Q.set,Gs=Q.getterFor,Vs=(function(e,t,n){var r=-1!==e.indexOf("Map"),a=-1!==e.indexOf("Weak"),s=r?"set":"add",c=i[e],u=c&&c.prototype,l=c,d={},h=function(e){var t=u[e];ee(u,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(a&&!v(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return a&&!v(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(a&&!v(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(ke(e,"function"!=typeof c||!(a||u.forEach&&!o((function(){(new c).entries().next()})))))l=n.getConstructor(t,e,r,s),Ps.REQUIRED=!0;else if(ke(e,!0)){var f=new l,p=f[s](a?{}:-0,1)!=f,g=o((function(){f.has(1)})),m=bt((function(e){new c(e)})),y=!a&&o((function(){for(var e=new c,t=5;t--;)e[s](t,t);return!e.has(-0)}));m||((l=t((function(t,n){Ei(t,l,e);var i=ti(new c,t,l);return null!=n&&Ai(n,i[s],i,r),i}))).prototype=u,u.constructor=l),(g||y)&&(h("delete"),h("has"),r&&h("get")),(y||p)&&h(s),a&&u.clear&&delete u.clear}d[e]=l,Ae({global:!0,forced:l!=c},d),nn(l,e),a||n.setStrong(l,e,r)}("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),{getConstructor:function(e,t,n,r){var i=e((function(e,o){Ei(e,i,t),Fs(e,{type:t,index:At(null),first:void 0,last:void 0,size:0}),a||(e.size=0),null!=o&&Ai(o,e[r],e,n)})),o=Gs(t),s=function(e,t,n){var r,i,s=o(e),u=c(e,t);return u?u.value=n:(s.last=u={index:i=Us(t,!0),key:t,value:n,previous:r=s.last,next:void 0,removed:!1},s.first||(s.first=u),r&&(r.next=u),a?s.size++:e.size++,"F"!==i&&(s.index[i]=u)),e},c=function(e,t){var n,r=o(e),i=Us(t);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==t)return n};return Mi(i.prototype,{clear:function(){for(var e=o(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,a?e.size=0:this.size=0},delete:function(e){var t=o(this),n=c(this,e);if(n){var r=n.next,i=n.previous;delete t.index[n.index],n.removed=!0,i&&(i.next=r),r&&(r.previous=i),t.first==n&&(t.first=r),t.last==n&&(t.last=i),a?t.size--:this.size--}return!!n},forEach:function(e){for(var t,n=o(this),r=Oe(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!c(this,e)}}),Mi(i.prototype,n?{get:function(e){var t=c(this,e);return t&&t.value},set:function(e,t){return s(this,0===e?0:e,t)}}:{add:function(e){return s(this,e=0===e?0:e,e)}}),a&&Ns(i.prototype,"size",{get:function(){return o(this).size}}),i},setStrong:function(e,t,n){var r=t+" Iterator",i=Gs(t),o=Gs(r);hn(e,t,(function(e,t){Fs(this,{type:r,target:e,state:i(e),kind:t,last:void 0})}),(function(){for(var e=o(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),ki(t)}}),"undefined"!=typeof t?t:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{});is="undefined"!=typeof console?console:void 0!==Vs&&Vs.console?Vs.console:"undefined"!=typeof window&&window.console?window.console:{};for(var js=function(){},Bs=["assert","clear","count","debug","dir","dirxml","error","exception","group","groupCollapsed","groupEnd","info","log","markTimeline","profile","profileEnd","table","time","timeEnd","timeStamp","trace","warn"],zs=Bs.length;zs--;)os=Bs[zs],console[os]||(is[os]=js);is.methods=Bs;var Hs=is,Ws=0,qs=function(){return(new Date).getTime()+Ws},$s=function(){Ws=0},Ks=function(){return Math.floor(qs()/1e3)},Ys=0,Js=new Map;function Xs(){var e,t=((e=new Date).setTime(qs()),e);return"TIM "+t.toLocaleTimeString("en-US",{hour12:!1})+"."+function(e){var t;switch(e.toString().length){case 1:t="00"+e;break;case 2:t="0"+e;break;default:t=e}return t}(t.getMilliseconds())+":"}var Zs={arguments2String:function(e){var t;if(1===e.length)t=Xs()+e[0];else{t=Xs();for(var n=0,r=e.length;n<r;n++)pc(e[n])?mc(e[n])?t+=xc(e[n]):t+=JSON.stringify(e[n]):t+=e[n],t+=" "}return t},debug:function(){if(Ys<=-1){var e=this.arguments2String(arguments);Hs.debug(e)}},log:function(){if(Ys<=0){var e=this.arguments2String(arguments);Hs.log(e)}},info:function(){if(Ys<=1){var e=this.arguments2String(arguments);Hs.info(e)}},warn:function(){if(Ys<=2){var e=this.arguments2String(arguments);Hs.warn(e)}},error:function(){if(Ys<=3){var e=this.arguments2String(arguments);Hs.error(e)}},time:function(e){Js.set(e,bc.now())},timeEnd:function(e){if(Js.has(e)){var t=bc.now()-Js.get(e);return Js.delete(e),t}return Hs.warn("未找到对应label: ".concat(e,", 请在调用 logger.timeEnd 前,调用 logger.time")),0},setLevel:function(e){e<4&&Hs.log(Xs()+"set level from "+Ys+" to "+e),Ys=e},getLevel:function(){return Ys}},Qs={JPG:1,JPEG:1,GIF:2,PNG:3,BMP:4,UNKNOWN:255},ec={NICK:"Tag_Profile_IM_Nick",GENDER:"Tag_Profile_IM_Gender",BIRTHDAY:"Tag_Profile_IM_BirthDay",LOCATION:"Tag_Profile_IM_Location",SELFSIGNATURE:"Tag_Profile_IM_SelfSignature",ALLOWTYPE:"Tag_Profile_IM_AllowType",LANGUAGE:"Tag_Profile_IM_Language",AVATAR:"Tag_Profile_IM_Image",MESSAGESETTINGS:"Tag_Profile_IM_MsgSettings",ADMINFORBIDTYPE:"Tag_Profile_IM_AdminForbidType",LEVEL:"Tag_Profile_IM_Level",ROLE:"Tag_Profile_IM_Role"},tc={UNKNOWN:"Gender_Type_Unknown",FEMALE:"Gender_Type_Female",MALE:"Gender_Type_Male"},nc={NONE:"AdminForbid_Type_None",SEND_OUT:"AdminForbid_Type_SendOut"},rc={NEED_CONFIRM:"AllowType_Type_NeedConfirm",ALLOW_ANY:"AllowType_Type_AllowAny",DENY_ANY:"AllowType_Type_DenyAny"},ic="JoinedSuccess",oc="WaitAdminApproval",ac="@TGS#_",sc=function(e){return"file"===vc(e)},cc=function(e){return null!==e&&("number"==typeof e&&!isNaN(e-0)||"object"===bn(e)&&e.constructor===Number)},uc=function(e){return"string"==typeof e},lc=function(e){return null!==e&&"object"===bn(e)},dc=function(e){if("object"!==bn(e)||null===e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;for(var n=t;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return t===n},hc=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"array"===vc(e)},fc=function(e){return void 0===e},pc=function(e){return hc(e)||lc(e)},gc=function(e){return"function"==typeof e},mc=function(e){return e instanceof Error},vc=function(e){return Object.prototype.toString.call(e).match(/^\[object (.*)\]$/)[1].toLowerCase()},yc=function(e){if("string"!=typeof e)return!1;var t=e[0];return!/[^a-zA-Z0-9]/.test(t)},_c=0;Date.now||(Date.now=function(){return(new Date).getTime()});var bc={now:function(){0===_c&&(_c=Date.now()-1);var e=Date.now()-_c;return e>4294967295?(_c+=4294967295,Date.now()-_c):e},utc:function(){return Math.round(Date.now()/1e3)}},Sc=function e(t,n,r,i){if(!pc(t)||!pc(n))return 0;for(var o,a=0,s=Object.keys(n),c=0,u=s.length;c<u;c++)if(o=s[c],!(fc(n[o])||r&&r.includes(o)))if(pc(t[o])&&pc(n[o]))a+=e(t[o],n[o],r,i);else{if(i&&i.includes(n[o]))continue;t[o]!==n[o]&&(t[o]=n[o],a+=1)}return a},xc=function(e){return JSON.stringify(e,["message","code"])},wc=function(e){if(0===e.length)return 0;for(var t=0,n=0,r="undefined"!=typeof document&&void 0!==document.characterSet?document.characterSet:"UTF-8";void 0!==e[t];)n+=e[t++].charCodeAt[t]<=255?1:!1===r?3:2;return n},Ic=function(e){var t=e||99999999;return Math.round(Math.random()*t)},Cc="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",Mc=Cc.length,Tc=function(e,t){for(var n in e)if(e[n]===t)return!0;return!1},kc={},Ec=function(){if(fs)return"https:";if(ps&&"undefined"==typeof window)return"https:";var e=window.location.protocol;return["http:","https:"].indexOf(e)<0&&(e="http:"),e},Ac=function(e){return-1===e.indexOf("http://")||-1===e.indexOf("https://")?"https://"+e:e.replace(/https|http/,"https")},Dc=function e(t){if(0===Object.getOwnPropertyNames(t).length)return Object.create(null);var n=Array.isArray(t)?[]:Object.create(null),r="";for(var i in t)null!==t[i]?void 0!==t[i]?(r=bn(t[i]),["string","number","function","boolean"].indexOf(r)>=0?n[i]=t[i]:n[i]=e(t[i])):n[i]=void 0:n[i]=null;return n};function Oc(e,t){hc(e)&&hc(t)?t.forEach((function(t){var n=t.key,r=t.value,i=e.find((function(e){return e.key===n}));i?i.value=r:e.push({key:n,value:r})})):Zs.warn("updateCustomField target 或 source 不是数组,忽略此次更新。")}var Rc=function(e){return e===Kn.GRP_PUBLIC},Lc=function(e){return e===Kn.GRP_AVCHATROOM},Pc=function(e){var t=e.type,n=e.groupID;return t===Kn.GRP_COMMUNITY||"".concat(n).startsWith(ac)},Nc=function(e){return uc(e)&&e.slice(0,3)===Kn.CONV_C2C},Uc=function(e){return uc(e)&&e.slice(0,5)===Kn.CONV_GROUP},Fc=function(e){return uc(e)&&e===Kn.CONV_SYSTEM};function Gc(e,t){var n={};return Object.keys(e).forEach((function(r){n[r]=t(e[r],r)})),n}function Vc(e){return fs?new Promise((function(t,n){gs.getImageInfo({src:e,success:function(e){t({width:e.width,height:e.height})},fail:function(){t({width:0,height:0})}})})):Ts&&9===ks?Promise.resolve({width:0,height:0}):new Promise((function(t,n){var r=new Image;r.onload=function(){t({width:this.width,height:this.height}),r=null},r.onerror=function(){t({width:0,height:0}),r=null},r.src=e}))}function jc(){function e(){return(65536*(1+Math.random())|0).toString(16).substring(1)}return"".concat(e()+e()).concat(e()).concat(e()).concat(e()).concat(e()).concat(e()).concat(e())}function Bc(){var e="unknown";if(Os&&(e="mac"),Ds&&(e="windows"),xs&&(e="ios"),Is&&(e="android"),fs)try{var t=gs.getSystemInfoSync().platform;void 0!==t&&(e=t)}catch(aS){}return e}function zc(e){var t=e.originUrl,n=void 0===t?void 0:t,r=e.originWidth,i=e.originHeight,o=e.min,a=void 0===o?198:o,s=parseInt(r),c=parseInt(i),u={url:void 0,width:0,height:0};if((s<=c?s:c)<=a)u.url=n,u.width=s,u.height=c;else{c<=s?(u.width=Math.ceil(s*a/c),u.height=a):(u.width=a,u.height=Math.ceil(c*a/s));var l=n&&n.indexOf("?")>-1?"".concat(n,"&"):"".concat(n,"?");u.url="".concat(l,198===a?"imageView2/3/w/198/h/198":"imageView2/3/w/720/h/720")}return fc(n)?Rn(u,["url"]):u}function Hc(e){var t=e[2];e[2]=e[1],e[1]=t;for(var n=0;n<e.length;n++)e[n].setType(n)}function Wc(e){var t=e.servcmd;return t.slice(t.indexOf(".")+1)}function qc(e,t){return Math.round(Number(e)*Math.pow(10,t))/Math.pow(10,t)}function $c(e,t){return e.includes(t)}function Kc(e,t){return e.includes(t)}var Yc=Object.prototype.hasOwnProperty;function Jc(e){if(null==e)return!0;if("boolean"==typeof e)return!1;if("number"==typeof e)return 0===e;if("string"==typeof e)return 0===e.length;if("function"==typeof e)return 0===e.length;if(Array.isArray(e))return 0===e.length;if(e instanceof Error)return""===e.message;if(dc(e)){for(var t in e)if(Yc.call(e,t))return!1;return!0}return!("map"!==vc(e)&&!function(e){return"set"===vc(e)}(e)&&!sc(e))&&0===e.size}function Xc(e,t,n){if(void 0===t)return!0;var r=!0;if("object"===yr(t).toLowerCase())Object.keys(t).forEach((function(i){var o=1===e.length?e[0][i]:void 0;r=!!Zc(o,t[i],n,i)&&r}));else if("array"===yr(t).toLowerCase())for(var i=0;i<t.length;i++)r=!!Zc(e[i],t[i],n,t[i].name)&&r;if(r)return r;throw new Error("Params validate failed.")}function Zc(e,t,n,r){if(void 0===t)return!0;var i=!0;return t.required&&Jc(e)&&(Hs.error("TIM [".concat(n,'] Missing required params: "').concat(r,'".')),i=!1),Jc(e)||yr(e).toLowerCase()===t.type.toLowerCase()||(Hs.error("TIM [".concat(n,'] Invalid params: type check failed for "').concat(r,'".Expected ').concat(t.type,".")),i=!1),t.validator&&!t.validator(e)&&(Hs.error("TIM [".concat(n,"] Invalid params: custom validator check failed for params.")),i=!1),i}var Qc={f:Ve},eu=E.f,tu=We.forEach,nu=W("hidden"),ru=Ve("toPrimitive"),iu=Q.set,ou=Q.getterFor("Symbol"),au=Object.prototype,su=i.Symbol,cu=re("JSON","stringify"),uu=M.f,lu=E.f,du=vi.f,hu=u.f,fu=V("symbols"),pu=V("op-symbols"),gu=V("string-to-symbol-registry"),mu=V("symbol-to-string-registry"),vu=V("wks"),yu=i.QObject,_u=!yu||!yu.prototype||!yu.prototype.findChild,bu=a&&o((function(){return 7!=At(lu({},"a",{get:function(){return lu(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=uu(au,t);r&&delete au[t],lu(e,t,n),r&&e!==au&&lu(au,t,r)}:lu,Su=function(e,t){var n=fu[e]=At(su.prototype);return iu(n,{type:"Symbol",tag:e,description:t}),a||(n.description=t),n},xu=Ne?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof su},wu=function(e,t,n){e===au&&wu(pu,t,n),T(e);var r=y(t,!0);return T(n),b(fu,r)?(n.enumerable?(b(e,nu)&&e[nu][r]&&(e[nu][r]=!1),n=At(n,{enumerable:l(0,!1)})):(b(e,nu)||lu(e,nu,l(1,{})),e[nu][r]=!0),bu(e,r,n)):lu(e,r,n)},Iu=function(e,t){T(e);var n=m(t),r=wt(n).concat(ku(n));return tu(r,(function(t){a&&!Cu.call(n,t)||wu(e,t,n[t])})),e},Cu=function(e){var t=y(e,!0),n=hu.call(this,t);return!(this===au&&b(fu,t)&&!b(pu,t))&&(!(n||!b(this,t)||!b(fu,t)||b(this,nu)&&this[nu][t])||n)},Mu=function(e,t){var n=m(e),r=y(t,!0);if(n!==au||!b(fu,r)||b(pu,r)){var i=uu(n,r);return!i||!b(fu,r)||b(n,nu)&&n[nu][r]||(i.enumerable=!0),i}},Tu=function(e){var t=du(m(e)),n=[];return tu(t,(function(e){b(fu,e)||b(q,e)||n.push(e)})),n},ku=function(e){var t=e===au,n=du(t?pu:m(e)),r=[];return tu(n,(function(e){!b(fu,e)||t&&!b(au,e)||r.push(fu[e])})),r};if(Pe||(ee((su=function(){if(this instanceof su)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=z(e),n=function(e){this===au&&n.call(pu,e),b(this,nu)&&b(this[nu],t)&&(this[nu][t]=!1),bu(this,t,l(1,e))};return a&&_u&&bu(au,t,{configurable:!0,set:n}),Su(t,e)}).prototype,"toString",(function(){return ou(this).tag})),ee(su,"withoutSetter",(function(e){return Su(z(e),e)})),u.f=Cu,E.f=wu,M.f=Mu,ye.f=vi.f=Tu,_e.f=ku,Qc.f=function(e){return Su(Ve(e),e)},a&&(lu(su.prototype,"description",{configurable:!0,get:function(){return ou(this).description}}),ee(au,"propertyIsEnumerable",Cu,{unsafe:!0}))),Ae({global:!0,wrap:!0,forced:!Pe,sham:!Pe},{Symbol:su}),tu(wt(vu),(function(e){!function(e){var t=te.Symbol||(te.Symbol={});b(t,e)||eu(t,e,{value:Qc.f(e)})}(e)})),Ae({target:"Symbol",stat:!0,forced:!Pe},{for:function(e){var t=String(e);if(b(gu,t))return gu[t];var n=su(t);return gu[t]=n,mu[n]=t,n},keyFor:function(e){if(!xu(e))throw TypeError(e+" is not a symbol");if(b(mu,e))return mu[e]},useSetter:function(){_u=!0},useSimple:function(){_u=!1}}),Ae({target:"Object",stat:!0,forced:!Pe,sham:!a},{create:function(e,t){return void 0===t?At(e):Iu(At(e),t)},defineProperty:wu,defineProperties:Iu,getOwnPropertyDescriptor:Mu}),Ae({target:"Object",stat:!0,forced:!Pe},{getOwnPropertyNames:Tu,getOwnPropertySymbols:ku}),Ae({target:"Object",stat:!0,forced:o((function(){_e.f(1)}))},{getOwnPropertySymbols:function(e){return _e.f(Re(e))}}),cu){var Eu=!Pe||o((function(){var e=su();return"[null]"!=cu([e])||"{}"!=cu({a:e})||"{}"!=cu(Object(e))}));Ae({target:"JSON",stat:!0,forced:Eu},{stringify:function(e,t,n){for(var r,i=[e],o=1;arguments.length>o;)i.push(arguments[o++]);if(r=t,(v(t)||void 0!==e)&&!xu(e))return Le(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!xu(t))return t}),i[1]=t,cu.apply(null,i)}})}su.prototype[ru]||A(su.prototype,ru,su.prototype.valueOf),nn(su,"Symbol"),q[nu]=!0;var Au=E.f,Du=i.Symbol;if(a&&"function"==typeof Du&&(!("description"in Du.prototype)||void 0!==Du().description)){var Ou={},Ru=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof Ru?new Du(e):void 0===e?Du():Du(e);return""===e&&(Ou[t]=!0),t};Se(Ru,Du);var Lu=Ru.prototype=Du.prototype;Lu.constructor=Ru;var Pu=Lu.toString,Nu="Symbol(test)"==String(Du("test")),Uu=/^Symbol\((.*)\)[^)]+$/;Au(Lu,"description",{configurable:!0,get:function(){var e=v(this)?this.valueOf():this,t=Pu.call(e);if(b(Ou,e))return"";var n=Nu?t.slice(7,-1):t.replace(Uu,"$1");return""===n?void 0:n}}),Ae({global:!0,forced:!0},{Symbol:Ru})}var Fu={UNSEND:"unSend",SUCCESS:"success",FAIL:"fail"},Gu={NOT_START:"notStart",PENDING:"pengding",RESOLVED:"resolved",REJECTED:"rejected"},Vu=function(e){return!!e&&(!!(Nc(e)||Uc(e)||Fc(e))||(console.warn("非法的会话 ID:".concat(e,"。会话 ID 组成方式:C2C + userID(单聊)GROUP + groupID(群聊)@TIM#SYSTEM(系统通知会话)")),!1))},ju="请参考 https://web.sdk.qcloud.com/im/doc/zh-cn/SDK.html#",Bu=function(e){return e.param?"".concat(e.api," ").concat(e.param," ").concat(e.desc,"。").concat(ju).concat(e.api):"".concat(e.api," ").concat(e.desc,"。").concat(ju).concat(e.api)},zu={type:"String",required:!0},Hu={type:"Array",required:!0},Wu={type:"Object",required:!0},qu={login:{userID:zu,userSig:zu},addToBlacklist:{userIDList:Hu},on:[{name:"eventName",type:"String",validator:function(e){return"string"==typeof e&&0!==e.length||(console.warn(Bu({api:"on",param:"eventName",desc:"类型必须为 String,且不能为空"})),!1)}},{name:"handler",type:"Function",validator:function(e){return"function"!=typeof e?(console.warn(Bu({api:"on",param:"handler",desc:"参数必须为 Function"})),!1):(""===e.name&&console.warn("on 接口的 handler 参数推荐使用具名函数。具名函数可以使用 off 接口取消订阅,匿名函数无法取消订阅。"),!0)}}],once:[{name:"eventName",type:"String",validator:function(e){return"string"==typeof e&&0!==e.length||(console.warn(Bu({api:"once",param:"eventName",desc:"类型必须为 String,且不能为空"})),!1)}},{name:"handler",type:"Function",validator:function(e){return"function"!=typeof e?(console.warn(Bu({api:"once",param:"handler",desc:"参数必须为 Function"})),!1):(""===e.name&&console.warn("once 接口的 handler 参数推荐使用具名函数。"),!0)}}],off:[{name:"eventName",type:"String",validator:function(e){return"string"==typeof e&&0!==e.length||(console.warn(Bu({api:"off",param:"eventName",desc:"类型必须为 String,且不能为空"})),!1)}},{name:"handler",type:"Function",validator:function(e){return"function"!=typeof e?(console.warn(Bu({api:"off",param:"handler",desc:"参数必须为 Function"})),!1):(""===e.name&&console.warn("off 接口无法为匿名函数取消监听事件。"),!0)}}],sendMessage:[Mn({name:"message"},Wu)],getMessageList:{conversationID:Mn({},zu,{validator:function(e){return Vu(e)}}),nextReqMessageID:{type:"String"},count:{type:"Number",validator:function(e){return!(!fc(e)&&!/^[1-9][0-9]*$/.test(e))||(console.warn(Bu({api:"getMessageList",param:"count",desc:"必须为正整数"})),!1)}}},setMessageRead:{conversationID:Mn({},zu,{validator:function(e){return Vu(e)}})},setAllMessageRead:{scope:{type:"String",required:!1,validator:function(e){return!e||-1!==[Kn.READ_ALL_C2C_MSG,Kn.READ_ALL_GROUP_MSG,Kn.READ_ALL_MSG].indexOf(e)||(console.warn(Bu({api:"setAllMessageRead",param:"scope",desc:"取值必须为 TIM.TYPES.READ_ALL_C2C_MSG, TIM.TYPES.READ_ALL_GROUP_MSG 或 TIM.TYPES.READ_ALL_MSG"})),!1)}}},getConversationProfile:[Mn({name:"conversationID"},zu,{validator:function(e){return Vu(e)}})],deleteConversation:[Mn({name:"conversationID"},zu,{validator:function(e){return Vu(e)}})],pinConversation:{conversationID:Mn({},zu,{validator:function(e){return Vu(e)}}),isPinned:Mn({},{type:"Boolean",required:!0})},getConversationList:[{name:"options",type:"Array",validator:function(e){return!!fc(e)||0!==e.length||(console.warn(Bu({api:"getConversationList",desc:"获取指定会话时不能传入空数组"})),!1)}}],getGroupList:{groupProfileFilter:{type:"Array"}},getGroupProfile:{groupID:zu,groupCustomFieldFilter:{type:"Array"},memberCustomFieldFilter:{type:"Array"}},getGroupProfileAdvance:{groupIDList:Hu},createGroup:{name:zu},joinGroup:{groupID:zu,type:{type:"String"},applyMessage:{type:"String"}},quitGroup:[Mn({name:"groupID"},zu)],handleApplication:{message:Wu,handleAction:zu,handleMessage:{type:"String"}},changeGroupOwner:{groupID:zu,newOwnerID:zu},updateGroupProfile:{groupID:zu,muteAllMembers:{type:"Boolean"}},dismissGroup:[Mn({name:"groupID"},zu)],searchGroupByID:[Mn({name:"groupID"},zu)],initGroupAttributes:{groupID:zu,groupAttributes:Mn({},Wu,{validator:function(e){var t=!0;return Object.keys(e).forEach((function(n){if(!uc(e[n]))return console.warn(Bu({api:"initGroupAttributes",desc:"群属性 value 必须是字符串"})),t=!1})),t}})},setGroupAttributes:{groupID:zu,groupAttributes:Mn({},Wu,{validator:function(e){var t=!0;return Object.keys(e).forEach((function(n){if(!uc(e[n]))return console.warn(Bu({api:"setGroupAttributes",desc:"群属性 value 必须是字符串"})),t=!1})),t}})},deleteGroupAttributes:{groupID:zu,keyList:{type:"Array",validator:function(e){if(fc(e))return console.warn(Bu({api:"deleteGroupAttributes",desc:"缺少必填参数:keyList"})),!1;if(!hc(e))return!1;if(!Jc(e)){var t=!0;return e.forEach((function(e){if(!uc(e))return console.warn(Bu({api:"deleteGroupAttributes",desc:"群属性 key 必须是字符串"})),t=!1})),t}return!0}}},getGroupAttributes:{groupID:zu,keyList:{type:"Array",validator:function(e){if(fc(e))return console.warn(Bu({api:"getGroupAttributes",desc:"缺少必填参数:keyList"})),!1;if(!hc(e))return!1;if(!Jc(e)){var t=!0;return e.forEach((function(e){if(!uc(e))return console.warn(Bu({api:"getGroupAttributes",desc:"群属性 key 必须是字符串"})),t=!1})),t}return!0}}},getGroupMemberList:{groupID:zu,count:{type:"Number"}},getGroupMemberProfile:{groupID:zu,userIDList:Hu,memberCustomFieldFilter:{type:"Array"}},addGroupMember:{groupID:zu,userIDList:Hu},setGroupMemberRole:{groupID:zu,userID:zu,role:zu},setGroupMemberMuteTime:{groupID:zu,userID:zu,muteTime:{type:"Number",validator:function(e){return e>=0}}},setGroupMemberNameCard:{groupID:zu,userID:{type:"String"},nameCard:{type:"String",validator:function(e){return uc(e)?(e.length,!0):(console.warn(Bu({api:"setGroupMemberNameCard",param:"nameCard",desc:"类型必须为 String"})),!1)}}},setGroupMemberCustomField:{groupID:zu,userID:{type:"String"},memberCustomField:Hu},deleteGroupMember:{groupID:zu},createTextMessage:{to:zu,conversationType:zu,payload:Mn({},Wu,{validator:function(e){return dc(e)?uc(e.text)?0!==e.text.length||(console.warn(Bu({api:"createTextMessage",desc:"消息内容不能为空"})),!1):(console.warn(Bu({api:"createTextMessage",param:"payload.text",desc:"类型必须为 String"})),!1):(console.warn(Bu({api:"createTextMessage",param:"payload",desc:"类型必须为 plain object"})),!1)}})},createTextAtMessage:{to:zu,conversationType:zu,payload:Mn({},Wu,{validator:function(e){return dc(e)?uc(e.text)?0===e.text.length?(console.warn(Bu({api:"createTextAtMessage",desc:"消息内容不能为空"})),!1):!(e.atUserList&&!hc(e.atUserList))||(console.warn(Bu({api:"createTextAtMessage",desc:"payload.atUserList 类型必须为数组"})),!1):(console.warn(Bu({api:"createTextAtMessage",param:"payload.text",desc:"类型必须为 String"})),!1):(console.warn(Bu({api:"createTextAtMessage",param:"payload",desc:"类型必须为 plain object"})),!1)}})},createCustomMessage:{to:zu,conversationType:zu,payload:Mn({},Wu,{validator:function(e){return dc(e)?e.data&&!uc(e.data)?(console.warn(Bu({api:"createCustomMessage",param:"payload.data",desc:"类型必须为 String"})),!1):e.description&&!uc(e.description)?(console.warn(Bu({api:"createCustomMessage",param:"payload.description",desc:"类型必须为 String"})),!1):!(e.extension&&!uc(e.extension))||(console.warn(Bu({api:"createCustomMessage",param:"payload.extension",desc:"类型必须为 String"})),!1):(console.warn(Bu({api:"createCustomMessage",param:"payload",desc:"类型必须为 plain object"})),!1)}})},createImageMessage:{to:zu,conversationType:zu,payload:Mn({},Wu,{validator:function(e){if(!dc(e))return console.warn(Bu({api:"createImageMessage",param:"payload",desc:"类型必须为 plain object"})),!1;if(fc(e.file))return console.warn(Bu({api:"createImageMessage",param:"payload.file",desc:"不能为 undefined"})),!1;if(ps){if(!(e.file instanceof HTMLInputElement||sc(e.file)))return dc(e.file)&&"undefined"!=typeof uni?0!==e.file.tempFilePaths.length&&0!==e.file.tempFiles.length||(console.warn(Bu({api:"createImageMessage",param:"payload.file",desc:"您没有选择文件,无法发送"})),!1):(console.warn(Bu({api:"createImageMessage",param:"payload.file",desc:"类型必须是 HTMLInputElement 或 File"})),!1);if(e.file instanceof HTMLInputElement&&0===e.file.files.length)return console.warn(Bu({api:"createImageMessage",param:"payload.file",desc:"您没有选择文件,无法发送"})),!1}return!0},onProgress:{type:"Function",required:!1,validator:function(e){return fc(e)&&console.warn(Bu({api:"createImageMessage",desc:"没有 onProgress 回调,您将无法获取上传进度"})),!0}}})},createAudioMessage:{to:zu,conversationType:zu,payload:Mn({},Wu,{validator:function(e){return!!dc(e)||(console.warn(Bu({api:"createAudioMessage",param:"payload",desc:"类型必须为 plain object"})),!1)}}),onProgress:{type:"Function",required:!1,validator:function(e){return fc(e)&&console.warn(Bu({api:"createAudioMessage",desc:"没有 onProgress 回调,您将无法获取上传进度"})),!0}}},createVideoMessage:{to:zu,conversationType:zu,payload:Mn({},Wu,{validator:function(e){if(!dc(e))return console.warn(Bu({api:"createVideoMessage",param:"payload",desc:"类型必须为 plain object"})),!1;if(fc(e.file))return console.warn(Bu({api:"createVideoMessage",param:"payload.file",desc:"不能为 undefined"})),!1;if(ps){if(!(e.file instanceof HTMLInputElement||sc(e.file)))return dc(e.file)&&"undefined"!=typeof uni?!!sc(e.file.tempFile)||(console.warn(Bu({api:"createVideoMessage",param:"payload.file",desc:"您没有选择文件,无法发送"})),!1):(console.warn(Bu({api:"createVideoMessage",param:"payload.file",desc:"类型必须是 HTMLInputElement 或 File"})),!1);if(e.file instanceof HTMLInputElement&&0===e.file.files.length)return console.warn(Bu({api:"createVideoMessage",param:"payload.file",desc:"您没有选择文件,无法发送"})),!1}return!0}}),onProgress:{type:"Function",required:!1,validator:function(e){return fc(e)&&console.warn(Bu({api:"createVideoMessage",desc:"没有 onProgress 回调,您将无法获取上传进度"})),!0}}},createFaceMessage:{to:zu,conversationType:zu,payload:Mn({},Wu,{validator:function(e){return dc(e)?cc(e.index)?!!uc(e.data)||(console.warn(Bu({api:"createFaceMessage",param:"payload.data",desc:"类型必须为 String"})),!1):(console.warn(Bu({api:"createFaceMessage",param:"payload.index",desc:"类型必须为 Number"})),!1):(console.warn(Bu({api:"createFaceMessage",param:"payload",desc:"类型必须为 plain object"})),!1)}})},createFileMessage:{to:zu,conversationType:zu,payload:Mn({},Wu,{validator:function(e){if(!dc(e))return console.warn(Bu({api:"createFileMessage",param:"payload",desc:"类型必须为 plain object"})),!1;if(fc(e.file))return console.warn(Bu({api:"createFileMessage",param:"payload.file",desc:"不能为 undefined"})),!1;if(ps){if(!(e.file instanceof HTMLInputElement||sc(e.file)))return dc(e.file)&&"undefined"!=typeof uni?0!==e.file.tempFilePaths.length&&0!==e.file.tempFiles.length||(console.warn(Bu({api:"createFileMessage",param:"payload.file",desc:"您没有选择文件,无法发送"})),!1):(console.warn(Bu({api:"createFileMessage",param:"payload.file",desc:"类型必须是 HTMLInputElement 或 File"})),!1);if(e.file instanceof HTMLInputElement&&0===e.file.files.length)return console.warn(Bu({api:"createFileMessage",desc:"您没有选择文件,无法发送"})),!1}return!0}}),onProgress:{type:"Function",required:!1,validator:function(e){return fc(e)&&console.warn(Bu({api:"createFileMessage",desc:"没有 onProgress 回调,您将无法获取上传进度"})),!0}}},createLocationMessage:{to:zu,conversationType:zu,payload:Mn({},Wu,{validator:function(e){return dc(e)?uc(e.description)?cc(e.longitude)?!!cc(e.latitude)||(console.warn(Bu({api:"createLocationMessage",param:"payload.latitude",desc:"类型必须为 Number"})),!1):(console.warn(Bu({api:"createLocationMessage",param:"payload.longitude",desc:"类型必须为 Number"})),!1):(console.warn(Bu({api:"createLocationMessage",param:"payload.description",desc:"类型必须为 String"})),!1):(console.warn(Bu({api:"createLocationMessage",param:"payload",desc:"类型必须为 plain object"})),!1)}})},createMergerMessage:{to:zu,conversationType:zu,payload:Mn({},Wu,{validator:function(e){if(Jc(e.messageList))return console.warn(Bu({api:"createMergerMessage",desc:"不能为空数组"})),!1;if(Jc(e.compatibleText))return console.warn(Bu({api:"createMergerMessage",desc:"类型必须为 String,且不能为空"})),!1;var t=!1;return e.messageList.forEach((function(e){e.status===Fu.FAIL&&(t=!0)})),!t||(console.warn(Bu({api:"createMergerMessage",desc:"不支持合并已发送失败的消息"})),!1)}})},revokeMessage:[Mn({name:"message"},Wu,{validator:function(e){return Jc(e)?(console.warn("revokeMessage 请传入消息(Message)实例"),!1):e.conversationType===Kn.CONV_SYSTEM?(console.warn("revokeMessage 不能撤回系统会话消息,只能撤回单聊消息或群消息"),!1):!0!==e.isRevoked||(console.warn("revokeMessage 消息已经被撤回,请勿重复操作"),!1)}})],deleteMessage:[Mn({name:"messageList"},Hu,{validator:function(e){return!Jc(e)||(console.warn(Bu({api:"deleteMessage",param:"messageList",desc:"不能为空数组"})),!1)}})],getUserProfile:{userIDList:{type:"Array",validator:function(e){return hc(e)?(0===e.length&&console.warn(Bu({api:"getUserProfile",param:"userIDList",desc:"不能为空数组"})),!0):(console.warn(Bu({api:"getUserProfile",param:"userIDList",desc:"必须为数组"})),!1)}}},updateMyProfile:{profileCustomField:{type:"Array",validator:function(e){return!!fc(e)||!!hc(e)||(console.warn(Bu({api:"updateMyProfile",param:"profileCustomField",desc:"必须为数组"})),!1)}}},addFriend:{to:zu,source:{type:"String",required:!0,validator:function(e){return!!e&&(e.startsWith("AddSource_Type_")?!(e.replace("AddSource_Type_","").length>8)||(console.warn(Bu({api:"addFriend",desc:"加好友来源字段的关键字长度不得超过8字节"})),!1):(console.warn(Bu({api:"addFriend",desc:"加好友来源字段的前缀必须是:AddSource_Type_"})),!1))}},remark:{type:"String",required:!1,validator:function(e){return!(uc(e)&&e.length>96)||(console.warn(Bu({api:"updateFriend",desc:" 备注长度最长不得超过 96 个字节"})),!1)}}},deleteFriend:{userIDList:Hu},checkFriend:{userIDList:Hu},getFriendProfile:{userIDList:Hu},updateFriend:{userID:zu,remark:{type:"String",required:!1,validator:function(e){return!(uc(e)&&e.length>96)||(console.warn(Bu({api:"updateFriend",desc:" 备注长度最长不得超过 96 个字节"})),!1)}},friendCustomField:{type:"Array",required:!1,validator:function(e){if(e){if(!hc(e))return console.warn(Bu({api:"updateFriend",param:"friendCustomField",desc:"必须为数组"})),!1;var t=!0;return e.forEach((function(e){return uc(e.key)&&-1!==e.key.indexOf("Tag_SNS_Custom")?uc(e.value)?e.value.length>8?(console.warn(Bu({api:"updateFriend",desc:"好友自定义字段的关键字长度不得超过8字节"})),t=!1):void 0:(console.warn(Bu({api:"updateFriend",desc:"类型必须为 String"})),t=!1):(console.warn(Bu({api:"updateFriend",desc:"好友自定义字段的前缀必须是 Tag_SNS_Custom"})),t=!1)})),t}return!0}}},acceptFriendApplication:{userID:zu},refuseFriendApplication:{userID:zu},deleteFriendApplication:{userID:zu},createFriendGroup:{name:zu},deleteFriendGroup:{name:zu},addToFriendGroup:{name:zu,userIDList:Hu},removeFromFriendGroup:{name:zu,userIDList:Hu},renameFriendGroup:{oldName:zu,newName:zu},sendMessageReadReceipt:[{name:"messageList",type:"Array",validator:function(e){return hc(e)?0===e.length?(console.warn(Bu({api:"sendMessageReadReceipt",param:"messageList",desc:"不能为空数组"})),!1):(e.forEach((function(e){if(e.conversationType===Kn.CONV_C2C)return console.warn(Bu({api:"sendMessageReadReceipt",param:"messageList",desc:"仅支持群消息"})),!1})),!0):(console.warn(Bu({api:"sendMessageReadReceipt",param:"messageList",desc:"必须为数组"})),!1)}}],getMessageReadReceiptList:[{name:"messageList",type:"Array",validator:function(e){return hc(e)?0===e.length?(console.warn(Bu({api:"getMessageReadReceiptList",param:"messageList",desc:"不能为空数组"})),!1):(e.forEach((function(e){if(e.conversationType===Kn.CONV_C2C)return console.warn(Bu({api:"getMessageReadReceiptList",param:"messageList",desc:"仅支持群消息"})),!1})),!0):(console.warn(Bu({api:"getMessageReadReceiptList",param:"messageList",desc:"必须为数组"})),!1)}}]},$u={login:"login",logout:"logout",on:"on",once:"once",off:"off",setLogLevel:"setLogLevel",registerPlugin:"registerPlugin",destroy:"destroy",createTextMessage:"createTextMessage",createTextAtMessage:"createTextAtMessage",createImageMessage:"createImageMessage",createAudioMessage:"createAudioMessage",createVideoMessage:"createVideoMessage",createCustomMessage:"createCustomMessage",createFaceMessage:"createFaceMessage",createFileMessage:"createFileMessage",createLocationMessage:"createLocationMessage",createMergerMessage:"createMergerMessage",downloadMergerMessage:"downloadMergerMessage",createForwardMessage:"createForwardMessage",sendMessage:"sendMessage",resendMessage:"resendMessage",revokeMessage:"revokeMessage",deleteMessage:"deleteMessage",sendMessageReadReceipt:"sendMessageReadReceipt",getGroupMessageReadMemberList:"getGroupMessageReadMemberList",getMessageReadReceiptList:"getMessageReadReceiptList",getMessageList:"getMessageList",findMessage:"findMessage",setMessageRead:"setMessageRead",setAllMessageRead:"setAllMessageRead",getConversationList:"getConversationList",getConversationProfile:"getConversationProfile",deleteConversation:"deleteConversation",pinConversation:"pinConversation",getGroupList:"getGroupList",getGroupProfile:"getGroupProfile",createGroup:"createGroup",joinGroup:"joinGroup",updateGroupProfile:"updateGroupProfile",quitGroup:"quitGroup",dismissGroup:"dismissGroup",changeGroupOwner:"changeGroupOwner",searchGroupByID:"searchGroupByID",setMessageRemindType:"setMessageRemindType",handleGroupApplication:"handleGroupApplication",initGroupAttributes:"initGroupAttributes",setGroupAttributes:"setGroupAttributes",deleteGroupAttributes:"deleteGroupAttributes",getGroupAttributes:"getGroupAttributes",getGroupMemberProfile:"getGroupMemberProfile",getGroupMemberList:"getGroupMemberList",addGroupMember:"addGroupMember",deleteGroupMember:"deleteGroupMember",setGroupMemberNameCard:"setGroupMemberNameCard",setGroupMemberMuteTime:"setGroupMemberMuteTime",setGroupMemberRole:"setGroupMemberRole",setGroupMemberCustomField:"setGroupMemberCustomField",getGroupOnlineMemberCount:"getGroupOnlineMemberCount",getMyProfile:"getMyProfile",getUserProfile:"getUserProfile",updateMyProfile:"updateMyProfile",getBlacklist:"getBlacklist",addToBlacklist:"addToBlacklist",removeFromBlacklist:"removeFromBlacklist",getFriendList:"getFriendList",addFriend:"addFriend",deleteFriend:"deleteFriend",checkFriend:"checkFriend",updateFriend:"updateFriend",getFriendProfile:"getFriendProfile",getFriendApplicationList:"getFriendApplicationList",refuseFriendApplication:"refuseFriendApplication",deleteFriendApplication:"deleteFriendApplication",acceptFriendApplication:"acceptFriendApplication",setFriendApplicationRead:"setFriendApplicationRead",getFriendGroupList:"getFriendGroupList",createFriendGroup:"createFriendGroup",renameFriendGroup:"renameFriendGroup",deleteFriendGroup:"deleteFriendGroup",addToFriendGroup:"addToFriendGroup",removeFromFriendGroup:"removeFromFriendGroup",callExperimentalAPI:"callExperimentalAPI"},Ku=!!Ci&&o((function(){Ci.prototype.finally.call({then:function(){}},(function(){}))}));Ae({target:"Promise",proto:!0,real:!0,forced:Ku},{finally:function(e){var t=Oi(this,re("Promise")),n="function"==typeof e;return this.then(n?function(n){return vo(t,e()).then((function(){return n}))}:e,n?function(n){return vo(t,e()).then((function(){throw n}))}:e)}}),"function"!=typeof Ci||Ci.prototype.finally||ee(Ci.prototype,"finally",re("Promise").prototype.finally);var Yu=[].slice,Ju=/MSIE .\./.test(Yn),Xu=function(e){return function(t,n){var r=arguments.length>2,i=r?Yu.call(arguments,2):void 0;return e(r?function(){("function"==typeof t?t:Function(t)).apply(this,i)}:t,n)}};Ae({global:!0,bind:!0,forced:Ju},{setTimeout:Xu(i.setTimeout),setInterval:Xu(i.setInterval)});var Zu=We.filter,Qu=tr("filter"),el=Je("filter");Ae({target:"Array",proto:!0,forced:!Qu||!el},{filter:function(e){return Zu(this,e,arguments.length>1?arguments[1]:void 0)}});var tl,nl="sign",rl="message",il="user",ol="c2c",al="group",sl="sns",cl="groupMember",ul="conversation",ll="context",dl="storage",hl="eventStat",fl="netMonitor",pl="bigDataChannel",gl="upload",ml="plugin",vl="syncUnreadMessage",yl="session",_l="channel",bl="message_loss_detection",Sl="cloudControl",xl="workerTimer",wl="pullGroupMessage",Il="qualityStat",Cl="commercialConfig",Ml=function(){function e(t){Sn(this,e),this._moduleManager=t,this._className=""}return wn(e,[{key:"isLoggedIn",value:function(){return this._moduleManager.getModule(ll).isLoggedIn()}},{key:"isOversea",value:function(){return this._moduleManager.getModule(ll).isOversea()}},{key:"getMyUserID",value:function(){return this._moduleManager.getModule(ll).getUserID()}},{key:"getMyTinyID",value:function(){return this._moduleManager.getModule(ll).getTinyID()}},{key:"getModule",value:function(e){return this._moduleManager.getModule(e)}},{key:"getPlatform",value:function(){return ms}},{key:"getNetworkType",value:function(){return this._moduleManager.getModule(fl).getNetworkType()}},{key:"probeNetwork",value:function(){return this._moduleManager.getModule(fl).probe()}},{key:"getCloudConfig",value:function(e){return this._moduleManager.getModule(Sl).getCloudConfig(e)}},{key:"emitOuterEvent",value:function(e,t){this._moduleManager.getOuterEmitterInstance().emit(e,t)}},{key:"emitInnerEvent",value:function(e,t){this._moduleManager.getInnerEmitterInstance().emit(e,t)}},{key:"getInnerEmitterInstance",value:function(){return this._moduleManager.getInnerEmitterInstance()}},{key:"generateTjgID",value:function(e){return this._moduleManager.getModule(ll).getTinyID()+"-"+e.random}},{key:"filterModifiedMessage",value:function(e){if(!Jc(e)){var t=e.filter((function(e){return!0===e.isModified}));t.length>0&&this.emitOuterEvent($n.MESSAGE_MODIFIED,t)}}},{key:"filterUnmodifiedMessage",value:function(e){return Jc(e)?[]:e.filter((function(e){return!1===e.isModified}))}},{key:"request",value:function(e){return this._moduleManager.getModule(yl).request(e)}},{key:"canIUse",value:function(e){return this._moduleManager.getModule(Cl).hasPurchasedFeature(e)}}]),e}(),Tl="wslogin",kl="wslogout",El="wshello",Al="KickOther",Dl="getmsg",Ol="authkey",Rl="sendmsg",Ll="send_group_msg",Pl="portrait_get_all",Nl="portrait_set",Ul="black_list_get",Fl="black_list_add",Gl="black_list_delete",Vl="msgwithdraw",jl="msgreaded",Bl="set_c2c_peer_mute_notifications",zl="get_c2c_peer_mute_notifications",Hl="getroammsg",Wl="get_peer_read_time",ql="delete_c2c_msg_ramble",$l="page_get",Kl="get",Yl="delete",Jl="top",Xl="deletemsg",Zl="get_joined_group_list",Ql="get_group_self_member_info",ed="create_group",td="destroy_group",nd="modify_group_base_info",rd="apply_join_group",id="apply_join_group_noauth",od="quit_group",ad="get_group_public_info",sd="change_group_owner",cd="handle_apply_join_group",ud="handle_invite_join_group",ld="group_msg_recall",dd="msg_read_report",hd="read_all_unread_msg",fd="group_msg_get",pd="get_group_msg_receipt",gd="group_msg_receipt",md="get_group_msg_receipt_detail",vd="get_pendency",yd="deletemsg",_d="get_msg",bd="get_msg_noauth",Sd="get_online_member_num",xd="delete_group_ramble_msg_by_seq",wd="set_group_attr",Id="modify_group_attr",Cd="delete_group_attr",Md="clear_group_attr",Td="get_group_attr",kd="get_group_member_info",Ed="get_specified_group_member_info",Ad="add_group_member",Dd="delete_group_member",Od="modify_group_member_info",Rd="cos",Ld="pre_sig",Pd="video_cover",Nd="tim_web_report_v2",Ud="alive",Fd="msg_push",Gd="multi_msg_push_ws",Vd="ws_msg_push_ack",jd="stat_forceoffline",Bd="save_relay_json_msg",zd="get_relay_json_msg",Hd="fetch_config",Wd="push_configv2",qd="fetch_imsdk_purchase_bitsv2",$d="push_imsdk_purchase_bitsv2",Kd="notify2",Yd={NO_SDKAPPID:2e3,NO_ACCOUNT_TYPE:2001,NO_IDENTIFIER:2002,NO_USERSIG:2003,NO_TINYID:2022,NO_A2KEY:2023,USER_NOT_LOGGED_IN:2024,REPEAT_LOGIN:2025,COS_UNDETECTED:2040,COS_GET_SIG_FAIL:2041,MESSAGE_SEND_FAIL:2100,MESSAGE_LIST_CONSTRUCTOR_NEED_OPTIONS:2103,MESSAGE_SEND_NEED_MESSAGE_INSTANCE:2105,MESSAGE_SEND_INVALID_CONVERSATION_TYPE:2106,MESSAGE_FILE_IS_EMPTY:2108,MESSAGE_ONPROGRESS_FUNCTION_ERROR:2109,MESSAGE_REVOKE_FAIL:2110,MESSAGE_DELETE_FAIL:2111,MESSAGE_UNREAD_ALL_FAIL:2112,MESSAGE_CONTROL_INFO_FAIL:2113,READ_RECEIPT_SEQUENCE_LIST_EMPTY:2114,MESSAGE_IMAGE_SELECT_FILE_FIRST:2251,MESSAGE_IMAGE_TYPES_LIMIT:2252,MESSAGE_IMAGE_SIZE_LIMIT:2253,MESSAGE_AUDIO_UPLOAD_FAIL:2300,MESSAGE_AUDIO_SIZE_LIMIT:2301,MESSAGE_VIDEO_UPLOAD_FAIL:2350,MESSAGE_VIDEO_SIZE_LIMIT:2351,MESSAGE_VIDEO_TYPES_LIMIT:2352,MESSAGE_FILE_UPLOAD_FAIL:2400,MESSAGE_FILE_SELECT_FILE_FIRST:2401,MESSAGE_FILE_SIZE_LIMIT:2402,MESSAGE_FILE_URL_IS_EMPTY:2403,MESSAGE_MERGER_TYPE_INVALID:2450,MESSAGE_MERGER_KEY_INVALID:2451,MESSAGE_MERGER_DOWNLOAD_FAIL:2452,MESSAGE_FORWARD_TYPE_INVALID:2453,MESSAGE_AT_TYPE_INVALID:2454,CONVERSATION_NOT_FOUND:2500,USER_OR_GROUP_NOT_FOUND:2501,CONVERSATION_UN_RECORDED_TYPE:2502,ILLEGAL_GROUP_TYPE:2600,CANNOT_JOIN_WORK:2601,ILLEGAL_GROUP_ID:2602,CANNOT_CHANGE_OWNER_IN_AVCHATROOM:2620,CANNOT_CHANGE_OWNER_TO_SELF:2621,CANNOT_DISMISS_Work:2622,MEMBER_NOT_IN_GROUP:2623,CANNOT_USE_GRP_ATTR_NOT_AVCHATROOM:2641,CANNOT_USE_GRP_ATTR_AVCHATROOM_UNJOIN:2642,JOIN_GROUP_FAIL:2660,CANNOT_ADD_MEMBER_IN_AVCHATROOM:2661,CANNOT_JOIN_NON_AVCHATROOM_WITHOUT_LOGIN:2662,CANNOT_KICK_MEMBER_IN_AVCHATROOM:2680,NOT_OWNER:2681,CANNOT_SET_MEMBER_ROLE_IN_WORK_AND_AVCHATROOM:2682,INVALID_MEMBER_ROLE:2683,CANNOT_SET_SELF_MEMBER_ROLE:2684,CANNOT_MUTE_SELF:2685,NOT_MY_FRIEND:2700,ALREADY_MY_FRIEND:2701,FRIEND_GROUP_EXISTED:2710,FRIEND_GROUP_NOT_EXIST:2711,FRIEND_APPLICATION_NOT_EXIST:2716,UPDATE_PROFILE_INVALID_PARAM:2721,UPDATE_PROFILE_NO_KEY:2722,ADD_BLACKLIST_INVALID_PARAM:2740,DEL_BLACKLIST_INVALID_PARAM:2741,CANNOT_ADD_SELF_TO_BLACKLIST:2742,ADD_FRIEND_INVALID_PARAM:2760,NETWORK_ERROR:2800,NETWORK_TIMEOUT:2801,NETWORK_BASE_OPTIONS_NO_URL:2802,NETWORK_UNDEFINED_SERVER_NAME:2803,NETWORK_PACKAGE_UNDEFINED:2804,NO_NETWORK:2805,CONVERTOR_IRREGULAR_PARAMS:2900,NOTICE_RUNLOOP_UNEXPECTED_CONDITION:2901,NOTICE_RUNLOOP_OFFSET_LOST:2902,UNCAUGHT_ERROR:2903,GET_LONGPOLL_ID_FAILED:2904,INVALID_OPERATION:2905,OVER_FREQUENCY_LIMIT:2996,CANNOT_FIND_PROTOCOL:2997,CANNOT_FIND_MODULE:2998,SDK_IS_NOT_READY:2999,LOGGING_IN:3e3,LOGIN_FAILED:3001,KICKED_OUT_MULT_DEVICE:3002,KICKED_OUT_MULT_ACCOUNT:3003,KICKED_OUT_USERSIG_EXPIRED:3004,LOGGED_OUT:3005,LONG_POLL_KICK_OUT:91101,MESSAGE_A2KEY_EXPIRED:20002,ACCOUNT_A2KEY_EXPIRED:70001,LONG_POLL_API_PARAM_ERROR:90001,HELLO_ANSWER_KICKED_OUT:1002,OPEN_SERVICE_OVERLOAD_ERROR:60022},Jd={NO_SDKAPPID:"无 SDKAppID",NO_ACCOUNT_TYPE:"无 accountType",NO_IDENTIFIER:"无 userID",NO_USERSIG:"无 userSig",NO_TINYID:"无 tinyID",NO_A2KEY:"无 a2key",USER_NOT_LOGGED_IN:"用户未登录",REPEAT_LOGIN:"重复登录",COS_UNDETECTED:"未检测到 COS 上传插件",COS_GET_SIG_FAIL:"获取 COS 预签名 URL 失败",MESSAGE_SEND_FAIL:"消息发送失败",MESSAGE_LIST_CONSTRUCTOR_NEED_OPTIONS:"MessageController.constructor() 需要参数 options",MESSAGE_SEND_NEED_MESSAGE_INSTANCE:"需要 Message 的实例",MESSAGE_SEND_INVALID_CONVERSATION_TYPE:'Message.conversationType 只能为 "C2C" 或 "GROUP"',MESSAGE_FILE_IS_EMPTY:"无法发送空文件",MESSAGE_ONPROGRESS_FUNCTION_ERROR:"回调函数运行时遇到错误,请检查接入侧代码",MESSAGE_REVOKE_FAIL:"消息撤回失败",MESSAGE_DELETE_FAIL:"消息删除失败",MESSAGE_UNREAD_ALL_FAIL:"设置所有未读消息为已读处理失败",MESSAGE_CONTROL_INFO_FAIL:"社群不支持消息发送控制选项",READ_RECEIPT_SEQUENCE_LIST_EMPTY:"发送群已读回执时 sequenceList 为空",MESSAGE_IMAGE_SELECT_FILE_FIRST:"请先选择一个图片",MESSAGE_IMAGE_TYPES_LIMIT:"只允许上传 jpg png jpeg gif bmp image webp 格式的图片",MESSAGE_IMAGE_SIZE_LIMIT:"图片大小超过20M,无法发送",MESSAGE_AUDIO_UPLOAD_FAIL:"语音上传失败",MESSAGE_AUDIO_SIZE_LIMIT:"语音大小大于20M,无法发送",MESSAGE_VIDEO_UPLOAD_FAIL:"视频上传失败",MESSAGE_VIDEO_SIZE_LIMIT:"视频大小超过100M,无法发送",MESSAGE_VIDEO_TYPES_LIMIT:"只允许上传 mp4 格式的视频",MESSAGE_FILE_UPLOAD_FAIL:"文件上传失败",MESSAGE_FILE_SELECT_FILE_FIRST:"请先选择一个文件",MESSAGE_FILE_SIZE_LIMIT:"文件大小超过100M,无法发送 ",MESSAGE_FILE_URL_IS_EMPTY:"缺少必要的参数文件 URL",MESSAGE_MERGER_TYPE_INVALID:"非合并消息",MESSAGE_MERGER_KEY_INVALID:"合并消息的 messageKey 无效",MESSAGE_MERGER_DOWNLOAD_FAIL:"下载合并消息失败",MESSAGE_FORWARD_TYPE_INVALID:"选择的消息类型(如群提示消息)不可以转发",MESSAGE_AT_TYPE_INVALID:"社群不支持 @ 所有人",CONVERSATION_NOT_FOUND:"没有找到相应的会话,请检查传入参数",USER_OR_GROUP_NOT_FOUND:"没有找到相应的用户或群组,请检查传入参数",CONVERSATION_UN_RECORDED_TYPE:"未记录的会话类型",ILLEGAL_GROUP_TYPE:"非法的群类型,请检查传入参数",CANNOT_JOIN_WORK:"不能加入 Work 类型的群组",ILLEGAL_GROUP_ID:"群组 ID 非法,Public/Work/Meeting/AVChatRoom 类型群组不能以 @TGS#_ 为前缀,社群必须以 @TGS#_ 为前缀",CANNOT_CHANGE_OWNER_IN_AVCHATROOM:"AVChatRoom 类型的群组不能转让群主",CANNOT_CHANGE_OWNER_TO_SELF:"不能把群主转让给自己",CANNOT_DISMISS_WORK:"不能解散 Work 类型的群组",MEMBER_NOT_IN_GROUP:"用户不在该群组内",JOIN_GROUP_FAIL:"加群失败,请检查传入参数或重试",CANNOT_ADD_MEMBER_IN_AVCHATROOM:"AVChatRoom 类型的群不支持邀请群成员",CANNOT_JOIN_NON_AVCHATROOM_WITHOUT_LOGIN:"非 AVChatRoom 类型的群组不允许匿名加群,请先登录后再加群",CANNOT_KICK_MEMBER_IN_AVCHATROOM:"不能在 AVChatRoom 类型的群组踢人",NOT_OWNER:"你不是群主,只有群主才有权限操作",CANNOT_SET_MEMBER_ROLE_IN_WORK_AND_AVCHATROOM:"不能在 Work / AVChatRoom 类型的群中设置群成员身份",INVALID_MEMBER_ROLE:"不合法的群成员身份,请检查传入参数",CANNOT_SET_SELF_MEMBER_ROLE:"不能设置自己的群成员身份,请检查传入参数",CANNOT_MUTE_SELF:"不能将自己禁言,请检查传入参数",NOT_MY_FRIEND:"非好友关系",ALREADY_MY_FRIEND:"已经是好友关系",FRIEND_GROUP_EXISTED:"好友分组已存在",FRIEND_GROUP_NOT_EXIST:"好友分组不存在",FRIEND_APPLICATION_NOT_EXIST:"好友申请不存在",UPDATE_PROFILE_INVALID_PARAM:"传入 updateMyProfile 接口的参数无效",UPDATE_PROFILE_NO_KEY:"updateMyProfile 无标配资料字段或自定义资料字段",ADD_BLACKLIST_INVALID_PARAM:"传入 addToBlacklist 接口的参数无效",DEL_BLACKLIST_INVALID_PARAM:"传入 removeFromBlacklist 接口的参数无效",CANNOT_ADD_SELF_TO_BLACKLIST:"不能拉黑自己",ADD_FRIEND_INVALID_PARAM:"传入 addFriend 接口的参数无效",NETWORK_ERROR:"网络错误",NETWORK_TIMEOUT:"请求超时",NETWORK_BASE_OPTIONS_NO_URL:"网络层初始化错误,缺少 URL 参数",NETWORK_UNDEFINED_SERVER_NAME:"打包错误,未定义的 serverName",NETWORK_PACKAGE_UNDEFINED:"未定义的 packageConfig",NO_NETWORK:"未连接到网络",CONVERTOR_IRREGULAR_PARAMS:"不规范的参数名称",NOTICE_RUNLOOP_UNEXPECTED_CONDITION:"意料外的通知条件",NOTICE_RUNLOOP_OFFSET_LOST:"_syncOffset 丢失",GET_LONGPOLL_ID_FAILED:"获取 longpolling id 失败",UNCAUGHT_ERROR:"未经明确定义的错误",INVALID_OPERATION:"无效操作,如调用了未定义或者未实现的方法等",CANNOT_FIND_PROTOCOL:"无法找到协议",CANNOT_FIND_MODULE:"无法找到模块,请参考:https://web.sdk.qcloud.com/im/doc/zh-cn/tutorial-03-sns.html",SDK_IS_NOT_READY:"接口需要 SDK 处于 ready 状态后才能调用",LOGGING:"用户正在登录中",LOGIN_FAILED:"用户登录失败",KICKED_OUT_MULT_DEVICE:"用户多终端登录被踢出",KICKED_OUT_MULT_ACCOUNT:"用户多实例登录被踢出",KICKED_OUT_USERSIG_EXPIRED:"用户 userSig 过期被踢出",LOGGED_OUT:"用户已登出",OVER_FREQUENCY_LIMIT:"超出 SDK 频率控制",LONG_POLL_KICK_OUT:"检测到多个 web 实例登录,消息通道下线",OPEN_SERVICE_OVERLOAD_ERROR:"后台服务正忙,请稍后再试",MESSAGE_A2KEY_EXPIRED:"消息错误码:UserSig 或 A2 失效。",ACCOUNT_A2KEY_EXPIRED:"帐号错误码:UserSig 已过期,请重新生成。建议 UserSig 有效期设置不小于24小时。",LONG_POLL_API_PARAM_ERROR:"longPoll API parameters error"},Xd="networkRTT",Zd="messageE2EDelay",Qd="sendMessageC2C",eh="sendMessageGroup",th="sendMessageGroupAV",nh="sendMessageRichMedia",rh="cosUpload",ih="messageReceivedGroup",oh="messageReceivedGroupAVPush",ah="messageReceivedGroupAVPull",sh=(In(tl={},Xd,2),In(tl,Zd,3),In(tl,Qd,4),In(tl,eh,5),In(tl,th,6),In(tl,nh,7),In(tl,ih,8),In(tl,oh,9),In(tl,ah,10),In(tl,rh,11),tl),ch={info:4,warning:5,error:6},uh={wifi:1,"2g":2,"3g":3,"4g":4,"5g":5,unknown:6,none:7,online:8},lh={login:4},dh=function(){function e(t){Sn(this,e),this.eventType=lh[t]||0,this.timestamp=0,this.networkType=8,this.code=0,this.message="",this.moreMessage="",this.extension=t,this.costTime=0,this.duplicate=!1,this.level=4,this.uiPlatform=void 0,this._sentFlag=!1,this._startts=qs()}return wn(e,[{key:"updateTimeStamp",value:function(){this.timestamp=qs()}},{key:"start",value:function(e){return this._startts=e,this}},{key:"end",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this._sentFlag){var n=qs();0===this.costTime&&(this.costTime=n-this._startts),this.setMoreMessage("startts:".concat(this._startts," endts:").concat(n)),t?(this._sentFlag=!0,this._eventStatModule&&this._eventStatModule.pushIn(this)):setTimeout((function(){e._sentFlag=!0,e._eventStatModule&&e._eventStatModule.pushIn(e)}),0)}}},{key:"setError",value:function(e,t,n){return e instanceof Error?(this._sentFlag||(this.setNetworkType(n),t?(e.code&&this.setCode(e.code),e.message&&this.setMoreMessage(e.message)):(this.setCode(Yd.NO_NETWORK),this.setMoreMessage(Jd.NO_NETWORK)),this.setLevel("error")),this):(Zs.warn("SSOLogData.setError value not instanceof Error, please check!"),this)}},{key:"setCode",value:function(e){return fc(e)||this._sentFlag||("ECONNABORTED"===e&&(this.code=103),cc(e)?this.code=e:Zs.warn("SSOLogData.setCode value not a number, please check!",e,bn(e))),this}},{key:"setMessage",value:function(e){return fc(e)||this._sentFlag||(cc(e)&&(this.message=e.toString()),uc(e)&&(this.message=e)),this}},{key:"setCostTime",value:function(e){return this.costTime=e,this}},{key:"setLevel",value:function(e){return fc(e)||this._sentFlag||(this.level=ch[e]),this}},{key:"setMoreMessage",value:function(e){return Jc(this.moreMessage)?this.moreMessage="".concat(e):this.moreMessage+=" ".concat(e),this}},{key:"setNetworkType",value:function(e){if(fc(e))Zs.warn("SSOLogData.setNetworkType value is undefined, please check!");else{var t=uh[e.toLowerCase()];fc(t)||(this.networkType=t)}return this}},{key:"getStartTs",value:function(){return this._startts}},{key:"setUIPlatform",value:function(e){this.uiPlatform=e}}],[{key:"bindEventStatModule",value:function(t){e.prototype._eventStatModule=t}}]),e}(),hh="sdkConstruct",fh="sdkReady",ph="login",gh="logout",mh="kickedOut",vh="registerPlugin",yh="kickOther",_h="wsConnect",bh="wsOnOpen",Sh="wsOnClose",xh="wsOnError",wh="networkChange",Ih="getCosAuthKey",Ch="getCosPreSigUrl",Mh="getSnapshotInfo",Th="upload",kh="sendMessage",Eh="sendMessageWithReceipt",Ah="getC2CRoamingMessages",Dh="getGroupRoamingMessages",Oh="getReadReceipt",Rh="getReadReceiptDetail",Lh="sendReadReceipt",Ph="revokeMessage",Nh="deleteMessage",Uh="setC2CMessageRead",Fh="setGroupMessageRead",Gh="emptyMessageBody",Vh="getPeerReadTime",jh="uploadMergerMessage",Bh="downloadMergerMessage",zh="jsonParseError",Hh="messageE2EDelayException",Wh="getConversationList",qh="getConversationProfile",$h="deleteConversation",Kh="pinConversation",Yh="getConversationListInStorage",Jh="syncConversationList",Xh="setAllMessageRead",Zh="createGroup",Qh="applyJoinGroup",ef="quitGroup",tf="searchGroupByID",nf="changeGroupOwner",rf="handleGroupApplication",of="handleGroupInvitation",af="setMessageRemindType",sf="dismissGroup",cf="updateGroupProfile",uf="getGroupList",lf="getGroupProfile",df="getGroupListInStorage",hf="getGroupLastSequence",ff="getGroupMissingMessage",pf="pagingGetGroupList",gf="getGroupSimplifiedInfo",mf="joinWithoutAuth",vf="initGroupAttributes",yf="setGroupAttributes",_f="deleteGroupAttributes",bf="getGroupAttributes",Sf="getGroupMemberList",xf="getGroupMemberProfile",wf="addGroupMember",If="deleteGroupMember",Cf="setGroupMemberMuteTime",Mf="setGroupMemberNameCard",Tf="setGroupMemberRole",kf="setGroupMemberCustomField",Ef="getGroupOnlineMemberCount",Af="longPollingAVError",Df="messageLoss",Of="messageStacked",Rf="getUserProfile",Lf="updateMyProfile",Pf="getBlacklist",Nf="addToBlacklist",Uf="removeFromBlacklist",Ff="callbackFunctionError",Gf="fetchCloudControlConfig",Vf="pushedCloudControlConfig",jf="fetchCommercialConfig",Bf="pushedCommercialConfig",zf="error",Hf="lastMessageNotExist",Wf=u.f,qf=function(e){return function(t){for(var n,r=m(t),i=wt(r),o=i.length,s=0,c=[];o>s;)n=i[s++],a&&!Wf.call(r,n)||c.push(e?[n,r[n]]:r[n]);return c}},$f={entries:qf(!0),values:qf(!1)}.values;Ae({target:"Object",stat:!0},{values:function(e){return $f(e)}});var Kf=function(){function e(t){Sn(this,e),this.type=Kn.MSG_TEXT,this.content={text:t.text||""}}return wn(e,[{key:"setText",value:function(e){this.content.text=e}},{key:"sendable",value:function(){return 0!==this.content.text.length}}]),e}(),Yf=Object.assign,Jf=Object.defineProperty,Xf=!Yf||o((function(){if(a&&1!==Yf({b:1},Yf(Jf({},"a",{enumerable:!0,get:function(){Jf(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol();return e[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!=Yf({},e)[n]||"abcdefghijklmnopqrst"!=wt(Yf({},t)).join("")}))?function(e,t){for(var n=Re(e),r=arguments.length,i=1,o=_e.f,s=u.f;r>i;)for(var c,l=p(arguments[i++]),d=o?wt(l).concat(o(l)):wt(l),h=d.length,f=0;h>f;)c=d[f++],a&&!s.call(l,c)||(n[c]=l[c]);return n}:Yf;Ae({target:"Object",stat:!0,forced:Object.assign!==Xf},{assign:Xf});var Zf=Ve("iterator"),Qf=!o((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,r){t.delete("b"),n+=r+e})),!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[Zf]||"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})),ep=/[^\0-\u007E]/,tp=/[.\u3002\uFF0E\uFF61]/g,np="Overflow: input needs wider integers to process",rp=Math.floor,ip=String.fromCharCode,op=function(e){return e+22+75*(e<26)},ap=function(e,t,n){var r=0;for(e=n?rp(e/700):e>>1,e+=rp(e/t);e>455;r+=36)e=rp(e/35);return rp(r+36*e/(e+38))},sp=function(e){var t,n,r=[],i=(e=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){var o=e.charCodeAt(n++);56320==(64512&o)?t.push(((1023&i)<<10)+(1023&o)+65536):(t.push(i),n--)}else t.push(i)}return t}(e)).length,o=128,a=0,s=72;for(t=0;t<e.length;t++)(n=e[t])<128&&r.push(ip(n));var c=r.length,u=c;for(c&&r.push("-");u<i;){var l=2147483647;for(t=0;t<e.length;t++)(n=e[t])>=o&&n<l&&(l=n);var d=u+1;if(l-o>rp((2147483647-a)/d))throw RangeError(np);for(a+=(l-o)*d,o=l,t=0;t<e.length;t++){if((n=e[t])<o&&++a>2147483647)throw RangeError(np);if(n==o){for(var h=a,f=36;;f+=36){var p=f<=s?1:f>=s+26?26:f-s;if(h<p)break;var g=h-p,m=36-p;r.push(ip(op(p+g%m))),h=rp(g/m)}r.push(ip(op(h))),s=ap(a,d,u==c),a=0,++u}}++a,++o}return r.join("")},cp=function(e){var t=pt(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return T(t.call(e))},up=re("fetch"),lp=re("Headers"),dp=Ve("iterator"),hp=Q.set,fp=Q.getterFor("URLSearchParams"),pp=Q.getterFor("URLSearchParamsIterator"),gp=/\+/g,mp=Array(4),vp=function(e){return mp[e-1]||(mp[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},yp=function(e){try{return decodeURIComponent(e)}catch(aS){return e}},_p=function(e){var t=e.replace(gp," "),n=4;try{return decodeURIComponent(t)}catch(aS){for(;n;)t=t.replace(vp(n--),yp);return t}},bp=/[!'()~]|%20/g,Sp={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},xp=function(e){return Sp[e]},wp=function(e){return encodeURIComponent(e).replace(bp,xp)},Ip=function(e,t){if(t)for(var n,r,i=t.split("&"),o=0;o<i.length;)(n=i[o++]).length&&(r=n.split("="),e.push({key:_p(r.shift()),value:_p(r.join("="))}))},Cp=function(e){this.entries.length=0,Ip(this.entries,e)},Mp=function(e,t){if(e<t)throw TypeError("Not enough arguments")},Tp=an((function(e,t){hp(this,{type:"URLSearchParamsIterator",iterator:cp(fp(e).entries),kind:t})}),"Iterator",(function(){var e=pp(this),t=e.kind,n=e.iterator.next(),r=n.value;return n.done||(n.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),n})),kp=function(){Ei(this,kp,"URLSearchParams");var e,t,n,r,i,o,a,s,c,u=arguments.length>0?arguments[0]:void 0,l=this,d=[];if(hp(l,{type:"URLSearchParams",entries:d,updateURL:function(){},updateSearchParams:Cp}),void 0!==u)if(v(u))if("function"==typeof(e=pt(u)))for(n=(t=e.call(u)).next;!(r=n.call(t)).done;){if((a=(o=(i=cp(T(r.value))).next).call(i)).done||(s=o.call(i)).done||!o.call(i).done)throw TypeError("Expected sequence with length 2");d.push({key:a.value+"",value:s.value+""})}else for(c in u)b(u,c)&&d.push({key:c,value:u[c]+""});else Ip(d,"string"==typeof u?"?"===u.charAt(0)?u.slice(1):u:u+"")},Ep=kp.prototype;Mi(Ep,{append:function(e,t){Mp(arguments.length,2);var n=fp(this);n.entries.push({key:e+"",value:t+""}),n.updateURL()},delete:function(e){Mp(arguments.length,1);for(var t=fp(this),n=t.entries,r=e+"",i=0;i<n.length;)n[i].key===r?n.splice(i,1):i++;t.updateURL()},get:function(e){Mp(arguments.length,1);for(var t=fp(this).entries,n=e+"",r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){Mp(arguments.length,1);for(var t=fp(this).entries,n=e+"",r=[],i=0;i<t.length;i++)t[i].key===n&&r.push(t[i].value);return r},has:function(e){Mp(arguments.length,1);for(var t=fp(this).entries,n=e+"",r=0;r<t.length;)if(t[r++].key===n)return!0;return!1},set:function(e,t){Mp(arguments.length,1);for(var n,r=fp(this),i=r.entries,o=!1,a=e+"",s=t+"",c=0;c<i.length;c++)(n=i[c]).key===a&&(o?i.splice(c--,1):(o=!0,n.value=s));o||i.push({key:a,value:s}),r.updateURL()},sort:function(){var e,t,n,r=fp(this),i=r.entries,o=i.slice();for(i.length=0,n=0;n<o.length;n++){for(e=o[n],t=0;t<n;t++)if(i[t].key>e.key){i.splice(t,0,e);break}t===n&&i.push(e)}r.updateURL()},forEach:function(e){for(var t,n=fp(this).entries,r=Oe(e,arguments.length>1?arguments[1]:void 0,3),i=0;i<n.length;)r((t=n[i++]).value,t.key,this)},keys:function(){return new Tp(this,"keys")},values:function(){return new Tp(this,"values")},entries:function(){return new Tp(this,"entries")}},{enumerable:!0}),ee(Ep,dp,Ep.entries),ee(Ep,"toString",(function(){for(var e,t=fp(this).entries,n=[],r=0;r<t.length;)e=t[r++],n.push(wp(e.key)+"="+wp(e.value));return n.join("&")}),{enumerable:!0}),nn(kp,"URLSearchParams"),Ae({global:!0,forced:!Qf},{URLSearchParams:kp}),Qf||"function"!=typeof up||"function"!=typeof lp||Ae({global:!0,enumerable:!0,forced:!0},{fetch:function(e){var t,n,r,i=[e];return arguments.length>1&&(t=arguments[1],v(t)&&(n=t.body,"URLSearchParams"===ht(n)&&((r=t.headers?new lp(t.headers):new lp).has("content-type")||r.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=At(t,{body:l(0,String(n)),headers:l(0,r)}))),i.push(t)),up.apply(this,i)}});var Ap,Dp={URLSearchParams:kp,getState:fp},Op=qt.codeAt,Rp=i.URL,Lp=Dp.URLSearchParams,Pp=Dp.getState,Np=Q.set,Up=Q.getterFor("URL"),Fp=Math.floor,Gp=Math.pow,Vp=/[A-Za-z]/,jp=/[\d+\-.A-Za-z]/,Bp=/\d/,zp=/^(0x|0X)/,Hp=/^[0-7]+$/,Wp=/^\d+$/,qp=/^[\dA-Fa-f]+$/,$p=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,Kp=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,Yp=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,Jp=/[\u0009\u000A\u000D]/g,Xp=function(e,t){var n,r,i;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return"Invalid host";if(!(n=Qp(t.slice(1,-1))))return"Invalid host";e.host=n}else if(sg(e)){if(t=function(e){var t,n,r=[],i=e.toLowerCase().replace(tp,".").split(".");for(t=0;t<i.length;t++)n=i[t],r.push(ep.test(n)?"xn--"+sp(n):n);return r.join(".")}(t),$p.test(t))return"Invalid host";if(null===(n=Zp(t)))return"Invalid host";e.host=n}else{if(Kp.test(t))return"Invalid host";for(n="",r=gt(t),i=0;i<r.length;i++)n+=og(r[i],tg);e.host=n}},Zp=function(e){var t,n,r,i,o,a,s,c=e.split(".");if(c.length&&""==c[c.length-1]&&c.pop(),(t=c.length)>4)return e;for(n=[],r=0;r<t;r++){if(""==(i=c[r]))return e;if(o=10,i.length>1&&"0"==i.charAt(0)&&(o=zp.test(i)?16:8,i=i.slice(8==o?1:2)),""===i)a=0;else{if(!(10==o?Wp:8==o?Hp:qp).test(i))return e;a=parseInt(i,o)}n.push(a)}for(r=0;r<t;r++)if(a=n[r],r==t-1){if(a>=Gp(256,5-t))return null}else if(a>255)return null;for(s=n.pop(),r=0;r<n.length;r++)s+=n[r]*Gp(256,3-r);return s},Qp=function(e){var t,n,r,i,o,a,s,c=[0,0,0,0,0,0,0,0],u=0,l=null,d=0,h=function(){return e.charAt(d)};if(":"==h()){if(":"!=e.charAt(1))return;d+=2,l=++u}for(;h();){if(8==u)return;if(":"!=h()){for(t=n=0;n<4&&qp.test(h());)t=16*t+parseInt(h(),16),d++,n++;if("."==h()){if(0==n)return;if(d-=n,u>6)return;for(r=0;h();){if(i=null,r>0){if(!("."==h()&&r<4))return;d++}if(!Bp.test(h()))return;for(;Bp.test(h());){if(o=parseInt(h(),10),null===i)i=o;else{if(0==i)return;i=10*i+o}if(i>255)return;d++}c[u]=256*c[u]+i,2!=++r&&4!=r||u++}if(4!=r)return;break}if(":"==h()){if(d++,!h())return}else if(h())return;c[u++]=t}else{if(null!==l)return;d++,l=++u}}if(null!==l)for(a=u-l,u=7;0!=u&&a>0;)s=c[u],c[u--]=c[l+a-1],c[l+--a]=s;else if(8!=u)return;return c},eg=function(e){var t,n,r,i;if("number"==typeof e){for(t=[],n=0;n<4;n++)t.unshift(e%256),e=Fp(e/256);return t.join(".")}if("object"==typeof e){for(t="",r=function(e){for(var t=null,n=1,r=null,i=0,o=0;o<8;o++)0!==e[o]?(i>n&&(t=r,n=i),r=null,i=0):(null===r&&(r=o),++i);return i>n&&(t=r,n=i),t}(e),n=0;n<8;n++)i&&0===e[n]||(i&&(i=!1),r===n?(t+=n?":":"::",i=!0):(t+=e[n].toString(16),n<7&&(t+=":")));return"["+t+"]"}return e},tg={},ng=Xf({},tg,{" ":1,'"':1,"<":1,">":1,"`":1}),rg=Xf({},ng,{"#":1,"?":1,"{":1,"}":1}),ig=Xf({},rg,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),og=function(e,t){var n=Op(e,0);return n>32&&n<127&&!b(t,e)?e:encodeURIComponent(e)},ag={ftp:21,file:null,http:80,https:443,ws:80,wss:443},sg=function(e){return b(ag,e.scheme)},cg=function(e){return""!=e.username||""!=e.password},ug=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},lg=function(e,t){var n;return 2==e.length&&Vp.test(e.charAt(0))&&(":"==(n=e.charAt(1))||!t&&"|"==n)},dg=function(e){var t;return e.length>1&&lg(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},hg=function(e){var t=e.path,n=t.length;!n||"file"==e.scheme&&1==n&&lg(t[0],!0)||t.pop()},fg=function(e){return"."===e||"%2e"===e.toLowerCase()},pg={},gg={},mg={},vg={},yg={},_g={},bg={},Sg={},xg={},wg={},Ig={},Cg={},Mg={},Tg={},kg={},Eg={},Ag={},Dg={},Og={},Rg={},Lg={},Pg=function(e,t,n,r){var i,o,a,s,c,u=n||pg,l=0,d="",h=!1,f=!1,p=!1;for(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(Yp,"")),t=t.replace(Jp,""),i=gt(t);l<=i.length;){switch(o=i[l],u){case pg:if(!o||!Vp.test(o)){if(n)return"Invalid scheme";u=mg;continue}d+=o.toLowerCase(),u=gg;break;case gg:if(o&&(jp.test(o)||"+"==o||"-"==o||"."==o))d+=o.toLowerCase();else{if(":"!=o){if(n)return"Invalid scheme";d="",u=mg,l=0;continue}if(n&&(sg(e)!=b(ag,d)||"file"==d&&(cg(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=d,n)return void(sg(e)&&ag[e.scheme]==e.port&&(e.port=null));d="","file"==e.scheme?u=Tg:sg(e)&&r&&r.scheme==e.scheme?u=vg:sg(e)?u=Sg:"/"==i[l+1]?(u=yg,l++):(e.cannotBeABaseURL=!0,e.path.push(""),u=Og)}break;case mg:if(!r||r.cannotBeABaseURL&&"#"!=o)return"Invalid scheme";if(r.cannotBeABaseURL&&"#"==o){e.scheme=r.scheme,e.path=r.path.slice(),e.query=r.query,e.fragment="",e.cannotBeABaseURL=!0,u=Lg;break}u="file"==r.scheme?Tg:_g;continue;case vg:if("/"!=o||"/"!=i[l+1]){u=_g;continue}u=xg,l++;break;case yg:if("/"==o){u=wg;break}u=Dg;continue;case _g:if(e.scheme=r.scheme,o==Ap)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("/"==o||"\\"==o&&sg(e))u=bg;else if("?"==o)e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.query="",u=Rg;else{if("#"!=o){e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,e.path=r.path.slice(),e.path.pop(),u=Dg;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="",u=Lg}break;case bg:if(!sg(e)||"/"!=o&&"\\"!=o){if("/"!=o){e.username=r.username,e.password=r.password,e.host=r.host,e.port=r.port,u=Dg;continue}u=wg}else u=xg;break;case Sg:if(u=xg,"/"!=o||"/"!=d.charAt(l+1))continue;l++;break;case xg:if("/"!=o&&"\\"!=o){u=wg;continue}break;case wg:if("@"==o){h&&(d="%40"+d),h=!0,a=gt(d);for(var g=0;g<a.length;g++){var m=a[g];if(":"!=m||p){var v=og(m,ig);p?e.password+=v:e.username+=v}else p=!0}d=""}else if(o==Ap||"/"==o||"?"==o||"#"==o||"\\"==o&&sg(e)){if(h&&""==d)return"Invalid authority";l-=gt(d).length+1,d="",u=Ig}else d+=o;break;case Ig:case Cg:if(n&&"file"==e.scheme){u=Eg;continue}if(":"!=o||f){if(o==Ap||"/"==o||"?"==o||"#"==o||"\\"==o&&sg(e)){if(sg(e)&&""==d)return"Invalid host";if(n&&""==d&&(cg(e)||null!==e.port))return;if(s=Xp(e,d))return s;if(d="",u=Ag,n)return;continue}"["==o?f=!0:"]"==o&&(f=!1),d+=o}else{if(""==d)return"Invalid host";if(s=Xp(e,d))return s;if(d="",u=Mg,n==Cg)return}break;case Mg:if(!Bp.test(o)){if(o==Ap||"/"==o||"?"==o||"#"==o||"\\"==o&&sg(e)||n){if(""!=d){var y=parseInt(d,10);if(y>65535)return"Invalid port";e.port=sg(e)&&y===ag[e.scheme]?null:y,d=""}if(n)return;u=Ag;continue}return"Invalid port"}d+=o;break;case Tg:if(e.scheme="file","/"==o||"\\"==o)u=kg;else{if(!r||"file"!=r.scheme){u=Dg;continue}if(o==Ap)e.host=r.host,e.path=r.path.slice(),e.query=r.query;else if("?"==o)e.host=r.host,e.path=r.path.slice(),e.query="",u=Rg;else{if("#"!=o){dg(i.slice(l).join(""))||(e.host=r.host,e.path=r.path.slice(),hg(e)),u=Dg;continue}e.host=r.host,e.path=r.path.slice(),e.query=r.query,e.fragment="",u=Lg}}break;case kg:if("/"==o||"\\"==o){u=Eg;break}r&&"file"==r.scheme&&!dg(i.slice(l).join(""))&&(lg(r.path[0],!0)?e.path.push(r.path[0]):e.host=r.host),u=Dg;continue;case Eg:if(o==Ap||"/"==o||"\\"==o||"?"==o||"#"==o){if(!n&&lg(d))u=Dg;else if(""==d){if(e.host="",n)return;u=Ag}else{if(s=Xp(e,d))return s;if("localhost"==e.host&&(e.host=""),n)return;d="",u=Ag}continue}d+=o;break;case Ag:if(sg(e)){if(u=Dg,"/"!=o&&"\\"!=o)continue}else if(n||"?"!=o)if(n||"#"!=o){if(o!=Ap&&(u=Dg,"/"!=o))continue}else e.fragment="",u=Lg;else e.query="",u=Rg;break;case Dg:if(o==Ap||"/"==o||"\\"==o&&sg(e)||!n&&("?"==o||"#"==o)){if(".."===(c=(c=d).toLowerCase())||"%2e."===c||".%2e"===c||"%2e%2e"===c?(hg(e),"/"==o||"\\"==o&&sg(e)||e.path.push("")):fg(d)?"/"==o||"\\"==o&&sg(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&lg(d)&&(e.host&&(e.host=""),d=d.charAt(0)+":"),e.path.push(d)),d="","file"==e.scheme&&(o==Ap||"?"==o||"#"==o))for(;e.path.length>1&&""===e.path[0];)e.path.shift();"?"==o?(e.query="",u=Rg):"#"==o&&(e.fragment="",u=Lg)}else d+=og(o,rg);break;case Og:"?"==o?(e.query="",u=Rg):"#"==o?(e.fragment="",u=Lg):o!=Ap&&(e.path[0]+=og(o,tg));break;case Rg:n||"#"!=o?o!=Ap&&("'"==o&&sg(e)?e.query+="%27":e.query+="#"==o?"%23":og(o,tg)):(e.fragment="",u=Lg);break;case Lg:o!=Ap&&(e.fragment+=og(o,ng))}l++}},Ng=function(e){var t,n,r=Ei(this,Ng,"URL"),i=arguments.length>1?arguments[1]:void 0,o=String(e),s=Np(r,{type:"URL"});if(void 0!==i)if(i instanceof Ng)t=Up(i);else if(n=Pg(t={},String(i)))throw TypeError(n);if(n=Pg(s,o,null,t))throw TypeError(n);var c=s.searchParams=new Lp,u=Pp(c);u.updateSearchParams(s.query),u.updateURL=function(){s.query=String(c)||null},a||(r.href=Fg.call(r),r.origin=Gg.call(r),r.protocol=Vg.call(r),r.username=jg.call(r),r.password=Bg.call(r),r.host=zg.call(r),r.hostname=Hg.call(r),r.port=Wg.call(r),r.pathname=qg.call(r),r.search=$g.call(r),r.searchParams=Kg.call(r),r.hash=Yg.call(r))},Ug=Ng.prototype,Fg=function(){var e=Up(this),t=e.scheme,n=e.username,r=e.password,i=e.host,o=e.port,a=e.path,s=e.query,c=e.fragment,u=t+":";return null!==i?(u+="//",cg(e)&&(u+=n+(r?":"+r:"")+"@"),u+=eg(i),null!==o&&(u+=":"+o)):"file"==t&&(u+="//"),u+=e.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==s&&(u+="?"+s),null!==c&&(u+="#"+c),u},Gg=function(){var e=Up(this),t=e.scheme,n=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(aS){return"null"}return"file"!=t&&sg(e)?t+"://"+eg(e.host)+(null!==n?":"+n:""):"null"},Vg=function(){return Up(this).scheme+":"},jg=function(){return Up(this).username},Bg=function(){return Up(this).password},zg=function(){var e=Up(this),t=e.host,n=e.port;return null===t?"":null===n?eg(t):eg(t)+":"+n},Hg=function(){var e=Up(this).host;return null===e?"":eg(e)},Wg=function(){var e=Up(this).port;return null===e?"":String(e)},qg=function(){var e=Up(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},$g=function(){var e=Up(this).query;return e?"?"+e:""},Kg=function(){return Up(this).searchParams},Yg=function(){var e=Up(this).fragment;return e?"#"+e:""},Jg=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(a&&It(Ug,{href:Jg(Fg,(function(e){var t=Up(this),n=String(e),r=Pg(t,n);if(r)throw TypeError(r);Pp(t.searchParams).updateSearchParams(t.query)})),origin:Jg(Gg),protocol:Jg(Vg,(function(e){var t=Up(this);Pg(t,String(e)+":",pg)})),username:Jg(jg,(function(e){var t=Up(this),n=gt(String(e));if(!ug(t)){t.username="";for(var r=0;r<n.length;r++)t.username+=og(n[r],ig)}})),password:Jg(Bg,(function(e){var t=Up(this),n=gt(String(e));if(!ug(t)){t.password="";for(var r=0;r<n.length;r++)t.password+=og(n[r],ig)}})),host:Jg(zg,(function(e){var t=Up(this);t.cannotBeABaseURL||Pg(t,String(e),Ig)})),hostname:Jg(Hg,(function(e){var t=Up(this);t.cannotBeABaseURL||Pg(t,String(e),Cg)})),port:Jg(Wg,(function(e){var t=Up(this);ug(t)||(""==(e=String(e))?t.port=null:Pg(t,e,Mg))})),pathname:Jg(qg,(function(e){var t=Up(this);t.cannotBeABaseURL||(t.path=[],Pg(t,e+"",Ag))})),search:Jg($g,(function(e){var t=Up(this);""==(e=String(e))?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",Pg(t,e,Rg)),Pp(t.searchParams).updateSearchParams(t.query)})),searchParams:Jg(Kg),hash:Jg(Yg,(function(e){var t=Up(this);""!=(e=String(e))?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",Pg(t,e,Lg)):t.fragment=null}))}),ee(Ug,"toJSON",(function(){return Fg.call(this)}),{enumerable:!0}),ee(Ug,"toString",(function(){return Fg.call(this)}),{enumerable:!0}),Rp){var Xg=Rp.createObjectURL,Zg=Rp.revokeObjectURL;Xg&&ee(Ng,"createObjectURL",(function(e){return Xg.apply(Rp,arguments)})),Zg&&ee(Ng,"revokeObjectURL",(function(e){return Zg.apply(Rp,arguments)}))}nn(Ng,"URL"),Ae({global:!0,forced:!Qf,sham:!a},{URL:Ng});var Qg=function(){function e(t){Sn(this,e),this._imageMemoryURL="",fs?this.createImageDataASURLInWXMiniApp(t.file):this.createImageDataASURLInWeb(t.file),this._initImageInfoModel(),this.type=Kn.MSG_IMAGE,this._percent=0,this.content={imageFormat:t.imageFormat||Qs.UNKNOWN,uuid:t.uuid,imageInfoArray:[]},this.initImageInfoArray(t.imageInfoArray),this._defaultImage="http://imgcache.qq.com/open/qcloud/video/act/webim-images/default.jpg",this._autoFixUrl()}return wn(e,[{key:"_initImageInfoModel",value:function(){var e=this;this._ImageInfoModel=function(t){this.instanceID=Ic(9999999),this.sizeType=t.type||0,this.type=0,this.size=t.size||0,this.width=t.width||0,this.height=t.height||0,this.imageUrl=t.url||"",this.url=t.url||e._imageMemoryURL||e._defaultImage},this._ImageInfoModel.prototype={setSizeType:function(e){this.sizeType=e},setType:function(e){this.type=e},setImageUrl:function(e){e&&(this.imageUrl=e)},getImageUrl:function(){return this.imageUrl}}}},{key:"initImageInfoArray",value:function(e){for(var t=0,n=null,r=null;t<=2;)r=fc(e)||fc(e[t])?{type:0,size:0,width:0,height:0,url:""}:e[t],(n=new this._ImageInfoModel(r)).setSizeType(t+1),n.setType(t),this.addImageInfo(n),t++;this.updateAccessSideImageInfoArray()}},{key:"updateImageInfoArray",value:function(e){for(var t,n=this.content.imageInfoArray.length,r=0;r<n;r++)t=this.content.imageInfoArray[r],e[r].size&&(t.size=e[r].size),e[r].url&&t.setImageUrl(e[r].url),e[r].width&&(t.width=e[r].width),e[r].height&&(t.height=e[r].height)}},{key:"_autoFixUrl",value:function(){for(var e=this.content.imageInfoArray.length,t="",n="",r=["http","https"],i=null,o=0;o<e;o++)this.content.imageInfoArray[o].url&&""!==(i=this.content.imageInfoArray[o]).imageUrl&&(n=i.imageUrl.slice(0,i.imageUrl.indexOf("://")+1),t=i.imageUrl.slice(i.imageUrl.indexOf("://")+1),r.indexOf(n)<0&&(n="https:"),this.content.imageInfoArray[o].setImageUrl([n,t].join("")))}},{key:"updatePercent",value:function(e){this._percent=e,this._percent>1&&(this._percent=1)}},{key:"updateImageFormat",value:function(e){this.content.imageFormat=Qs[e.toUpperCase()]||Qs.UNKNOWN}},{key:"createImageDataASURLInWeb",value:function(e){void 0!==e&&e.files.length>0&&(this._imageMemoryURL=window.URL.createObjectURL(e.files[0]))}},{key:"createImageDataASURLInWXMiniApp",value:function(e){e&&e.url&&(this._imageMemoryURL=e.url)}},{key:"replaceImageInfo",value:function(e,t){this.content.imageInfoArray[t]instanceof this._ImageInfoModel||(this.content.imageInfoArray[t]=e)}},{key:"addImageInfo",value:function(e){this.content.imageInfoArray.length>=3||this.content.imageInfoArray.push(e)}},{key:"updateAccessSideImageInfoArray",value:function(){var e=this.content.imageInfoArray,t=e[0],n=t.width,r=void 0===n?0:n,i=t.height,o=void 0===i?0:i;0!==r&&0!==o&&(Hc(e),Object.assign(e[2],zc({originWidth:r,originHeight:o,min:720})))}},{key:"sendable",value:function(){return 0!==this.content.imageInfoArray.length&&""!==this.content.imageInfoArray[0].imageUrl&&0!==this.content.imageInfoArray[0].size}}]),e}(),em=function(){function e(t){Sn(this,e),this.type=Kn.MSG_FACE,this.content=t||null}return wn(e,[{key:"sendable",value:function(){return null!==this.content}}]),e}(),tm=function(){function e(t){Sn(this,e),this.type=Kn.MSG_AUDIO,this._percent=0,this.content={downloadFlag:2,second:t.second,size:t.size,url:t.url,remoteAudioUrl:t.url||"",uuid:t.uuid}}return wn(e,[{key:"updatePercent",value:function(e){this._percent=e,this._percent>1&&(this._percent=1)}},{key:"updateAudioUrl",value:function(e){this.content.remoteAudioUrl=e}},{key:"sendable",value:function(){return""!==this.content.remoteAudioUrl}}]),e}(),nm={from:!0,groupID:!0,groupName:!0,to:!0},rm=function(){function e(t){Sn(this,e),this.type=Kn.MSG_GRP_TIP,this.content={},this._initContent(t)}return wn(e,[{key:"_initContent",value:function(e){var t=this;Object.keys(e).forEach((function(n){switch(n){case"remarkInfo":break;case"groupProfile":t.content.groupProfile={},t._initGroupProfile(e[n]);break;case"operatorInfo":break;case"memberInfoList":case"msgMemberInfo":t._updateMemberList(e[n]);break;case"onlineMemberInfo":break;case"memberNum":t.content[n]=e[n],t.content.memberCount=e[n];break;default:t.content[n]=e[n]}})),this.content.userIDList||(this.content.userIDList=[this.content.operatorID])}},{key:"_initGroupProfile",value:function(e){for(var t=Object.keys(e),n=0;n<t.length;n++){var r=t[n];nm[r]&&(this.content.groupProfile[r]=e[r])}}},{key:"_updateMemberList",value:function(e){Jc(this.content.memberList)?this.content.memberList=e:this.content.memberList.forEach((function(t){e.forEach((function(e){t.userID===e.userID&&Object.assign(t,e)}))}))}}]),e}(),im={from:!0,groupID:!0,groupName:!0,to:!0},om=function(){function e(t){Sn(this,e),this.type=Kn.MSG_GRP_SYS_NOTICE,this.content={},this._initContent(t)}return wn(e,[{key:"_initContent",value:function(e){var t=this;Object.keys(e).forEach((function(n){switch(n){case"memberInfoList":break;case"remarkInfo":t.content.handleMessage=e[n];break;case"groupProfile":t.content.groupProfile={},t._initGroupProfile(e[n]);break;default:t.content[n]=e[n]}}))}},{key:"_initGroupProfile",value:function(e){for(var t=Object.keys(e),n=0;n<t.length;n++){var r=t[n];im[r]&&("groupName"===r?this.content.groupProfile.name=e[r]:this.content.groupProfile[r]=e[r])}}}]),e}(),am=Math.min,sm=[].lastIndexOf,cm=!!sm&&1/[1].lastIndexOf(1,-0)<0,um=qe("lastIndexOf"),lm=Je("indexOf",{ACCESSORS:!0,1:0}),dm=!cm&&um&&lm?sm:function(e){if(cm)return sm.apply(this,arguments)||0;var t=m(this),n=ce(t.length),r=n-1;for(arguments.length>1&&(r=am(r,ae(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in t&&t[r]===e)return r||0;return-1};Ae({target:"Array",proto:!0,forced:dm!==[].lastIndexOf},{lastIndexOf:dm});var hm=function(){function e(t){Sn(this,e),this.type=Kn.MSG_FILE,this._percent=0;var n=this._getFileInfo(t);this.content={downloadFlag:2,fileUrl:t.url||"",uuid:t.uuid,fileName:n.name||"",fileSize:n.size||0}}return wn(e,[{key:"_getFileInfo",value:function(e){if(!fc(e.fileName)&&!fc(e.fileSize))return{size:e.fileSize,name:e.fileName};var t=e.file.files[0];if(ds){if(t.path&&-1!==t.path.indexOf(".")){var n=t.path.slice(t.path.lastIndexOf(".")+1).toLowerCase();t.type=n,t.name||(t.name="".concat(Ic(999999),".").concat(n))}t.name||(t.type="",t.name=t.path.slice(t.path.lastIndexOf("/")+1).toLowerCase()),t.suffix&&(t.type=t.suffix),t.url||(t.url=t.path)}return{size:t.size,name:t.name}}},{key:"updatePercent",value:function(e){this._percent=e,this._percent>1&&(this._percent=1)}},{key:"updateFileUrl",value:function(e){this.content.fileUrl=e}},{key:"sendable",value:function(){return""!==this.content.fileUrl&&""!==this.content.fileName&&0!==this.content.fileSize}}]),e}(),fm=function(){function e(t){Sn(this,e),this.type=Kn.MSG_CUSTOM,this.content={data:t.data||"",description:t.description||"",extension:t.extension||""}}return wn(e,[{key:"setData",value:function(e){return this.content.data=e,this}},{key:"setDescription",value:function(e){return this.content.description=e,this}},{key:"setExtension",value:function(e){return this.content.extension=e,this}},{key:"sendable",value:function(){return 0!==this.content.data.length||0!==this.content.description.length||0!==this.content.extension.length}}]),e}(),pm=function(){function e(t){Sn(this,e),this.type=Kn.MSG_VIDEO,this._percent=0,this.content={remoteVideoUrl:t.remoteVideoUrl||t.videoUrl||"",videoFormat:t.videoFormat,videoSecond:parseInt(t.videoSecond,10),videoSize:t.videoSize,videoUrl:t.videoUrl,videoDownloadFlag:2,videoUUID:t.videoUUID,thumbUUID:t.thumbUUID,thumbFormat:t.thumbFormat,thumbWidth:t.thumbWidth,snapshotWidth:t.thumbWidth,thumbHeight:t.thumbHeight,snapshotHeight:t.thumbHeight,thumbSize:t.thumbSize,snapshotSize:t.thumbSize,thumbDownloadFlag:2,thumbUrl:t.thumbUrl,snapshotUrl:t.thumbUrl}}return wn(e,[{key:"updatePercent",value:function(e){this._percent=e,this._percent>1&&(this._percent=1)}},{key:"updateVideoUrl",value:function(e){e&&(this.content.remoteVideoUrl=e)}},{key:"updateSnapshotInfo",value:function(e){var t=e.snapshotUrl,n=e.snapshotWidth,r=e.snapshotHeight;Jc(t)||(this.content.thumbUrl=this.content.snapshotUrl=t),Jc(n)||(this.content.thumbWidth=this.content.snapshotWidth=Number(n)),Jc(r)||(this.content.thumbHeight=this.content.snapshotHeight=Number(r))}},{key:"sendable",value:function(){return""!==this.content.remoteVideoUrl}}]),e}(),gm=function(){function e(t){Sn(this,e),this.type=Kn.MSG_LOCATION;var n=t.description,r=t.longitude,i=t.latitude;this.content={description:n,longitude:r,latitude:i}}return wn(e,[{key:"sendable",value:function(){return!0}}]),e}(),mm=function(){function e(t){if(Sn(this,e),this.from=t.from,this.messageSender=t.from,this.time=t.time,this.messageSequence=t.sequence,this.clientSequence=t.clientSequence||t.sequence,this.messageRandom=t.random,this.cloudCustomData=t.cloudCustomData||"",t.ID)this.nick=t.nick||"",this.avatar=t.avatar||"",this.messageBody=[{type:t.type,payload:t.payload}],t.conversationType.startsWith(Kn.CONV_C2C)?this.receiverUserID=t.to:t.conversationType.startsWith(Kn.CONV_GROUP)&&(this.receiverGroupID=t.to),this.messageReceiver=t.to;else{this.nick=t.nick||"",this.avatar=t.avatar||"",this.messageBody=[];var n=t.elements[0].type,r=t.elements[0].content;this._patchRichMediaPayload(n,r),n===Kn.MSG_MERGER?this.messageBody.push({type:n,payload:new vm(r).content}):this.messageBody.push({type:n,payload:r}),t.groupID&&(this.receiverGroupID=t.groupID,this.messageReceiver=t.groupID),t.to&&(this.receiverUserID=t.to,this.messageReceiver=t.to)}}return wn(e,[{key:"_patchRichMediaPayload",value:function(e,t){e===Kn.MSG_IMAGE?t.imageInfoArray.forEach((function(e){!e.imageUrl&&e.url&&(e.imageUrl=e.url,e.sizeType=e.type,1===e.type?e.type=0:3===e.type&&(e.type=1))})):e===Kn.MSG_VIDEO?!t.remoteVideoUrl&&t.videoUrl&&(t.remoteVideoUrl=t.videoUrl):e===Kn.MSG_AUDIO?!t.remoteAudioUrl&&t.url&&(t.remoteAudioUrl=t.url):e===Kn.MSG_FILE&&!t.fileUrl&&t.url&&(t.fileUrl=t.url,t.url=void 0)}}]),e}(),vm=function(){function e(t){if(Sn(this,e),this.type=Kn.MSG_MERGER,this.content={downloadKey:"",pbDownloadKey:"",messageList:[],title:"",abstractList:[],compatibleText:"",version:0,layersOverLimit:!1},t.downloadKey){var n=t.downloadKey,r=t.pbDownloadKey,i=t.title,o=t.abstractList,a=t.compatibleText,s=t.version;this.content.downloadKey=n,this.content.pbDownloadKey=r,this.content.title=i,this.content.abstractList=o,this.content.compatibleText=a,this.content.version=s||0}else if(Jc(t.messageList))1===t.layersOverLimit&&(this.content.layersOverLimit=!0);else{var c=t.messageList,u=t.title,l=t.abstractList,d=t.compatibleText,h=t.version,f=[];c.forEach((function(e){if(!Jc(e)){var t=new mm(e);f.push(t)}})),this.content.messageList=f,this.content.title=u,this.content.abstractList=l,this.content.compatibleText=d,this.content.version=h||0}Zs.debug("MergerElement.content:",this.content)}return wn(e,[{key:"sendable",value:function(){return!Jc(this.content.messageList)||!Jc(this.content.downloadKey)}}]),e}(),ym={1:Kn.MSG_PRIORITY_HIGH,2:Kn.MSG_PRIORITY_NORMAL,3:Kn.MSG_PRIORITY_LOW,4:Kn.MSG_PRIORITY_LOWEST},_m=function(){function e(t){Sn(this,e),this.ID="",this.conversationID=t.conversationID||null,this.conversationType=t.conversationType||Kn.CONV_C2C,this.conversationSubType=t.conversationSubType,this.time=t.time||Math.ceil(Date.now()/1e3),this.sequence=t.sequence||0,this.clientSequence=t.clientSequence||t.sequence||0,this.random=t.random||0===t.random?t.random:Ic(),this.priority=this._computePriority(t.priority),this.nick=t.nick||"",this.avatar=t.avatar||"",this.isPeerRead=!1,this.nameCard="",this._elements=[],this.isPlaceMessage=t.isPlaceMessage||0,this.isRevoked=2===t.isPlaceMessage||8===t.msgFlagBits,this.from=t.from||null,this.to=t.to||null,this.flow="",this.isSystemMessage=t.isSystemMessage||!1,this.protocol=t.protocol||"JSON",this.isResend=!1,this.isRead=!1,this.status=t.status||Fu.SUCCESS,this._onlineOnlyFlag=!1,this._groupAtInfoList=[],this._relayFlag=!1,this.atUserList=[],this.cloudCustomData=t.cloudCustomData||"",this.isDeleted=!1,this.isModified=!1,this._isExcludedFromUnreadCount=!(!t.messageControlInfo||1!==t.messageControlInfo.excludedFromUnreadCount),this._isExcludedFromLastMessage=!(!t.messageControlInfo||1!==t.messageControlInfo.excludedFromLastMessage),this.clientTime=t.clientTime||Ks()||0,this.senderTinyID=t.senderTinyID||t.tinyID||"",this.readReceiptInfo=t.readReceiptInfo||{readCount:void 0,unreadCount:void 0},this.needReadReceipt=!0===t.needReadReceipt||1===t.needReadReceipt,this.reInitialize(t.currentUser),this.extractGroupInfo(t.groupProfile||null),this.handleGroupAtInfo(t)}return wn(e,[{key:"getElements",value:function(){return this._elements}},{key:"extractGroupInfo",value:function(e){if(null!==e){uc(e.nick)&&(this.nick=e.nick),uc(e.avatar)&&(this.avatar=e.avatar);var t=e.messageFromAccountExtraInformation;dc(t)&&uc(t.nameCard)&&(this.nameCard=t.nameCard)}}},{key:"handleGroupAtInfo",value:function(e){var t=this;e.payload&&e.payload.atUserList&&e.payload.atUserList.forEach((function(e){e!==Kn.MSG_AT_ALL?(t._groupAtInfoList.push({groupAtAllFlag:0,groupAtUserID:e}),t.atUserList.push(e)):(t._groupAtInfoList.push({groupAtAllFlag:1}),t.atUserList.push(Kn.MSG_AT_ALL))})),hc(e.groupAtInfo)&&e.groupAtInfo.forEach((function(e){0===e.groupAtAllFlag?t.atUserList.push(e.groupAtUserID):1===e.groupAtAllFlag&&t.atUserList.push(Kn.MSG_AT_ALL)}))}},{key:"getGroupAtInfoList",value:function(){return this._groupAtInfoList}},{key:"_initProxy",value:function(){this._elements[0]&&(this.payload=this._elements[0].content,this.type=this._elements[0].type)}},{key:"reInitialize",value:function(e){e&&(this.status=this.from?Fu.SUCCESS:Fu.UNSEND,!this.from&&(this.from=e)),this._initFlow(e),this._initSequence(e),this._concatConversationID(e),this.generateMessageID()}},{key:"isSendable",value:function(){return 0!==this._elements.length&&("function"!=typeof this._elements[0].sendable?(Zs.warn("".concat(this._elements[0].type,' need "boolean : sendable()" method')),!1):this._elements[0].sendable())}},{key:"_initTo",value:function(e){this.conversationType===Kn.CONV_GROUP&&(this.to=e.groupID)}},{key:"_initSequence",value:function(e){0===this.clientSequence&&e&&(this.clientSequence=function(e){if(!e)return Zs.error("autoIncrementIndex(string: key) need key parameter"),!1;if(void 0===kc[e]){var t=new Date,n="3".concat(t.getHours()).slice(-2),r="0".concat(t.getMinutes()).slice(-2),i="0".concat(t.getSeconds()).slice(-2);kc[e]=parseInt([n,r,i,"0001"].join("")),n=null,r=null,i=null,Zs.log("autoIncrementIndex start index:".concat(kc[e]))}return kc[e]++}(e)),0===this.sequence&&this.conversationType===Kn.CONV_C2C&&(this.sequence=this.clientSequence)}},{key:"generateMessageID",value:function(){this.from===Kn.CONV_SYSTEM&&(this.senderTinyID="144115198244471703"),this.ID="".concat(this.senderTinyID,"-").concat(this.clientTime,"-").concat(this.random)}},{key:"_initFlow",value:function(e){""!==e&&(e===this.from?(this.flow="out",this.isRead=!0):this.flow="in")}},{key:"_concatConversationID",value:function(e){var t=this.to,n="",r=this.conversationType;r!==Kn.CONV_SYSTEM?(n=r===Kn.CONV_C2C?e===this.from?t:this.from:this.to,this.conversationID="".concat(r).concat(n)):this.conversationID=Kn.CONV_SYSTEM}},{key:"isElement",value:function(e){return e instanceof Kf||e instanceof Qg||e instanceof em||e instanceof tm||e instanceof hm||e instanceof pm||e instanceof rm||e instanceof om||e instanceof fm||e instanceof gm||e instanceof vm}},{key:"setElement",value:function(e){var t=this;if(this.isElement(e))return this._elements=[e],void this._initProxy();var n=function(e){if(e.type&&e.content)switch(e.type){case Kn.MSG_TEXT:t.setTextElement(e.content);break;case Kn.MSG_IMAGE:t.setImageElement(e.content);break;case Kn.MSG_AUDIO:t.setAudioElement(e.content);break;case Kn.MSG_FILE:t.setFileElement(e.content);break;case Kn.MSG_VIDEO:t.setVideoElement(e.content);break;case Kn.MSG_CUSTOM:t.setCustomElement(e.content);break;case Kn.MSG_LOCATION:t.setLocationElement(e.content);break;case Kn.MSG_GRP_TIP:t.setGroupTipElement(e.content);break;case Kn.MSG_GRP_SYS_NOTICE:t.setGroupSystemNoticeElement(e.content);break;case Kn.MSG_FACE:t.setFaceElement(e.content);break;case Kn.MSG_MERGER:t.setMergerElement(e.content);break;default:Zs.warn(e.type,e.content,"no operation......")}};if(hc(e))for(var r=0;r<e.length;r++)n(e[r]);else n(e);this._initProxy()}},{key:"clearElement",value:function(){this._elements.length=0}},{key:"setTextElement",value:function(e){var t="string"==typeof e?e:e.text,n=new Kf({text:t});this._elements.push(n)}},{key:"setImageElement",value:function(e){var t=new Qg(e);this._elements.push(t)}},{key:"setAudioElement",value:function(e){var t=new tm(e);this._elements.push(t)}},{key:"setFileElement",value:function(e){var t=new hm(e);this._elements.push(t)}},{key:"setVideoElement",value:function(e){var t=new pm(e);this._elements.push(t)}},{key:"setLocationElement",value:function(e){var t=new gm(e);this._elements.push(t)}},{key:"setCustomElement",value:function(e){var t=new fm(e);this._elements.push(t)}},{key:"setGroupTipElement",value:function(e){var t={},n=e.operationType;Jc(e.memberInfoList)?e.operatorInfo&&(t=e.operatorInfo):n!==Kn.GRP_TIP_MBR_JOIN&&n!==Kn.GRP_TIP_MBR_KICKED_OUT&&n!==Kn.GRP_TIP_MBR_SET_ADMIN&&n!==Kn.GRP_TIP_MBR_CANCELED_ADMIN||(t=e.memberInfoList[0]);var r=t,i=r.nick,o=r.avatar;uc(i)&&(this.nick=i),uc(o)&&(this.avatar=o);var a=new rm(e);this._elements.push(a)}},{key:"setGroupSystemNoticeElement",value:function(e){var t=new om(e);this._elements.push(t)}},{key:"setFaceElement",value:function(e){var t=new em(e);this._elements.push(t)}},{key:"setMergerElement",value:function(e){var t=new vm(e);this._elements.push(t)}},{key:"setIsRead",value:function(e){this.isRead=e}},{key:"setRelayFlag",value:function(e){this._relayFlag=e}},{key:"getRelayFlag",value:function(){return this._relayFlag}},{key:"_computePriority",value:function(e){if(fc(e))return Kn.MSG_PRIORITY_NORMAL;if(uc(e)&&-1!==Object.values(ym).indexOf(e))return e;if(cc(e)){var t=""+e;if(-1!==Object.keys(ym).indexOf(t))return ym[t]}return Kn.MSG_PRIORITY_NORMAL}},{key:"setNickAndAvatar",value:function(e){var t=e.nick,n=e.avatar;uc(t)&&(this.nick=t),uc(n)&&(this.avatar=n)}},{key:"setNameCard",value:function(e){uc(e)&&(this.nameCard=e)}},{key:"elements",get:function(){return Zs.warn("!!!Message 实例的 elements 属性即将废弃,请尽快修改。使用 type 和 payload 属性处理单条消息,兼容组合消息使用 _elements 属性!!!"),this._elements}}]),e}(),bm=function(e){return{code:0,data:e||{}}},Sm="https://cloud.tencent.com/document/product/",xm="您可以在即时通信 IM 控制台的【开发辅助工具(https://console.cloud.tencent.com/im-detail/tool-usersig)】 页面校验 UserSig。",wm="UserSig 非法,请使用官网提供的 API 重新生成 UserSig(".concat(Sm,"269/32688)。"),Im="#.E6.B6.88.E6.81.AF.E5.85.83.E7.B4.A0-timmsgelement",Cm={70001:"UserSig 已过期,请重新生成。建议 UserSig 有效期设置不小于24小时。",70002:"UserSig 长度为0,请检查传入的 UserSig 是否正确。",70003:wm,70005:wm,70009:"UserSig 验证失败,可能因为生成 UserSig 时混用了其他 SDKAppID 的私钥或密钥导致,请使用对应 SDKAppID 下的私钥或密钥重新生成 UserSig(".concat(Sm,"269/32688)。"),70013:"请求中的 UserID 与生成 UserSig 时使用的 UserID 不匹配。".concat(xm),70014:"请求中的 SDKAppID 与生成 UserSig 时使用的 SDKAppID 不匹配。".concat(xm),70016:"密钥不存在,UserSig 验证失败,请在即时通信 IM 控制台获取密钥(".concat(Sm,"269/32578#.E8.8E.B7.E5.8F.96.E5.AF.86.E9.92.A5)。"),70020:"SDKAppID 未找到,请在即时通信 IM 控制台确认应用信息。",70050:"UserSig 验证次数过于频繁。请检查 UserSig 是否正确,并于1分钟后重新验证。".concat(xm),70051:"帐号被拉入黑名单。",70052:"UserSig 已经失效,请重新生成,再次尝试。",70107:"因安全原因被限制登录,请不要频繁登录。",70169:"请求的用户帐号不存在。",70114:"".concat("服务端内部超时,请稍后重试。"),70202:"".concat("服务端内部超时,请稍后重试。"),70206:"请求中批量数量不合法。",70402:"参数非法,请检查必填字段是否填充,或者字段的填充是否满足协议要求。",70403:"请求失败,需要 App 管理员权限。",70398:"帐号数超限。如需创建多于100个帐号,请将应用升级为专业版,具体操作指引请参见购买指引(".concat(Sm,"269/32458)。"),70500:"".concat("服务端内部错误,请重试。"),71e3:"删除帐号失败。仅支持删除体验版帐号,您当前应用为专业版,暂不支持帐号删除。",20001:"请求包非法。",20002:"UserSig 或 A2 失效。",20003:"消息发送方或接收方 UserID 无效或不存在,请检查 UserID 是否已导入即时通信 IM。",20004:"网络异常,请重试。",20005:"".concat("服务端内部错误,请重试。"),20006:"触发发送".concat("单聊消息","之前回调,App 后台返回禁止下发该消息。"),20007:"发送".concat("单聊消息",",被对方拉黑,禁止发送。消息发送状态默认展示为失败,您可以登录控制台修改该场景下的消息发送状态展示结果,具体操作请参见消息保留设置(").concat(Sm,"269/38656)。"),20009:"消息发送双方互相不是好友,禁止发送(配置".concat("单聊消息","校验好友关系才会出现)。"),20010:"发送".concat("单聊消息",",自己不是对方的好友(单向关系),禁止发送。"),20011:"发送".concat("单聊消息",",对方不是自己的好友(单向关系),禁止发送。"),20012:"发送方被禁言,该条消息被禁止发送。",20016:"消息撤回超过了时间限制(默认2分钟)。",20018:"删除漫游内部错误。",90001:"JSON 格式解析失败,请检查请求包是否符合 JSON 规范。",90002:"".concat("JSON 格式请求包体","中 MsgBody 不符合消息格式描述,或者 MsgBody 不是 Array 类型,请参考 TIMMsgElement 对象的定义(").concat(Sm,"269/2720").concat(Im,")。"),90003:"".concat("JSON 格式请求包体","中缺少 To_Account 字段或者 To_Account 帐号不存在。"),90005:"".concat("JSON 格式请求包体","中缺少 MsgRandom 字段或者 MsgRandom 字段不是 Integer 类型。"),90006:"".concat("JSON 格式请求包体","中缺少 MsgTimeStamp 字段或者 MsgTimeStamp 字段不是 Integer 类型。"),90007:"".concat("JSON 格式请求包体","中 MsgBody 类型不是 Array 类型,请将其修改为 Array 类型。"),90008:"".concat("JSON 格式请求包体","中缺少 From_Account 字段或者 From_Account 帐号不存在。"),90009:"请求需要 App 管理员权限。",90010:"".concat("JSON 格式请求包体","不符合消息格式描述,请参考 TIMMsgElement 对象的定义(").concat(Sm,"269/2720").concat(Im,")。"),90011:"批量发消息目标帐号超过500,请减少 To_Account 中目标帐号数量。",90012:"To_Account 没有注册或不存在,请确认 To_Account 是否导入即时通信 IM 或者是否拼写错误。",90026:"消息离线存储时间错误(最多不能超过7天)。",90031:"".concat("JSON 格式请求包体","中 SyncOtherMachine 字段不是 Integer 类型。"),90044:"".concat("JSON 格式请求包体","中 MsgLifeTime 字段不是 Integer 类型。"),90048:"请求的用户帐号不存在。",90054:"撤回请求中的 MsgKey 不合法。",90994:"".concat("服务端内部错误,请重试。"),90995:"".concat("服务端内部错误,请重试。"),91e3:"".concat("服务端内部错误,请重试。"),90992:"".concat("服务端内部错误,请重试。","如果所有请求都返回该错误码,且 App 配置了第三方回调,请检查 App 服务端是否正常向即时通信 IM 后台服务端返回回调结果。"),93e3:"JSON 数据包超长,消息包体请不要超过8k。",91101:"Web 端长轮询被踢(Web 端同时在线实例个数超出限制)。",10002:"".concat("服务端内部错误,请重试。"),10003:"请求中的接口名称错误,请核对接口名称并重试。",10004:"参数非法,请根据错误描述检查请求是否正确。",10005:"请求包体中携带的帐号数量过多。",10006:"操作频率限制,请尝试降低调用的频率。",10007:"操作权限不足,例如 Work ".concat("群组","中普通成员尝试执行踢人操作,但只有 App 管理员才有权限。"),10008:"请求非法,可能是请求中携带的签名信息验证不正确,请再次尝试。",10009:"该群不允许群主主动退出。",10010:"".concat("群组","不存在,或者曾经存在过,但是目前已经被解散。"),10011:"解析 JSON 包体失败,请检查包体的格式是否符合 JSON 格式。",10012:"发起操作的 UserID 非法,请检查发起操作的用户 UserID 是否填写正确。",10013:"被邀请加入的用户已经是群成员。",10014:"群已满员,无法将请求中的用户加入".concat("群组",",如果是批量加人,可以尝试减少加入用户的数量。"),10015:"找不到指定 ID 的".concat("群组","。"),10016:"App 后台通过第三方回调拒绝本次操作。",10017:"因被禁言而不能发送消息,请检查发送者是否被设置禁言。",10018:"应答包长度超过最大包长(1MB),请求的内容过多,请尝试减少单次请求的数据量。",10019:"请求的用户帐号不存在。",10021:"".concat("群组"," ID 已被使用,请选择其他的").concat("群组"," ID。"),10023:"发消息的频率超限,请延长两次发消息时间的间隔。",10024:"此邀请或者申请请求已经被处理。",10025:"".concat("群组"," ID 已被使用,并且操作者为群主,可以直接使用。"),10026:"该 SDKAppID 请求的命令字已被禁用。",10030:"请求撤回的消息不存在。",10031:"消息撤回超过了时间限制(默认2分钟)。",10032:"请求撤回的消息不支持撤回操作。",10033:"".concat("群组","类型不支持消息撤回操作。"),10034:"该消息类型不支持删除操作。",10035:"直播群和在线成员广播大群不支持删除消息。",10036:"直播群创建数量超过了限制,请参考价格说明(".concat(Sm,"269/11673)购买预付费套餐“IM直播群”。"),10037:"单个用户可创建和加入的".concat("群组","数量超过了限制,请参考价格说明(").concat(Sm,"269/11673)购买或升级预付费套餐“单人可创建与加入").concat("群组","数”。"),10038:"群成员数量超过限制,请参考价格说明(".concat(Sm,"269/11673)购买或升级预付费套餐“扩展群人数上限”。"),10041:"该应用(SDKAppID)已配置不支持群消息撤回。",10050:"群属性 key 不存在",10056:"请在写入群属性前先使用 getGroupAttributes 接口更新本地群属性,避免冲突。",10059:"非旗舰版",10060:"群人数超过已读回执人数上限",10061:"在线消息不支持已读回执",10062:"找不到群消息的已读回执信息",30001:"请求参数错误,请根据错误描述检查请求参数",30002:"SDKAppID 不匹配",30003:"请求的用户帐号不存在",30004:"请求需要 App 管理员权限",30005:"关系链字段中包含敏感词",30006:"".concat("服务端内部错误,请重试。"),30007:"".concat("网络超时,请稍后重试. "),30008:"并发写导致写冲突,建议使用批量方式",30009:"后台禁止该用户发起加好友请求",30010:"自己的好友数已达系统上限",30011:"分组已达系统上限",30012:"未决数已达系统上限",30014:"对方的好友数已达系统上限",30515:"请求添加好友时,对方在自己的黑名单中,不允许加好友",30516:"请求添加好友时,对方的加好友验证方式是不允许任何人添加自己为好友",30525:"请求添加好友时,自己在对方的黑名单中,不允许加好友",30539:"等待对方同意",30540:"添加好友请求被安全策略打击,请勿频繁发起添加好友请求",31704:"与请求删除的帐号之间不存在好友关系",31707:"删除好友请求被安全策略打击,请勿频繁发起删除好友请求"},Mm=function(e){Tn(n,e);var t=Nn(n);function n(e){var r;return Sn(this,n),(r=t.call(this)).code=e.code,r.message=Cm[e.code]||e.message,r.data=e.data||{},r}return n}(On(Error)),Tm=null,km=function(e){Tm=e},Em=function(e){return Promise.resolve(bm(e))},Am=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e instanceof Mm)return t&&null!==Tm&&Tm.emit($n.ERROR,e),Promise.reject(e);if(e instanceof Error){var n=new Mm({code:Yd.UNCAUGHT_ERROR,message:e.message});return t&&null!==Tm&&Tm.emit($n.ERROR,n),Promise.reject(n)}if(fc(e)||fc(e.code)||fc(e.message))Zs.error("IMPromise.reject 必须指定code(错误码)和message(错误信息)!!!");else{if(cc(e.code)&&uc(e.message)){var r=new Mm(e);return t&&null!==Tm&&Tm.emit($n.ERROR,r),Promise.reject(r)}Zs.error("IMPromise.reject code(错误码)必须为数字,message(错误信息)必须为字符串!!!")}},Dm=function(e){Tn(n,e);var t=Nn(n);function n(e){var r;return Sn(this,n),(r=t.call(this,e))._className="C2CModule",r}return wn(n,[{key:"onNewC2CMessage",value:function(e){var t=e.dataList,n=e.isInstantMessage,r=e.C2CRemainingUnreadList,i=e.C2CPairUnreadList;Zs.debug("".concat(this._className,".onNewC2CMessage count:").concat(t.length," isInstantMessage:").concat(n));var o=this._newC2CMessageStoredAndSummary({dataList:t,C2CRemainingUnreadList:r,C2CPairUnreadList:i,isInstantMessage:n}),a=o.conversationOptionsList,s=o.messageList,c=o.isUnreadC2CMessage;this.filterModifiedMessage(s),a.length>0&&this.getModule(ul).onNewMessage({conversationOptionsList:a,isInstantMessage:n,isUnreadC2CMessage:c});var u=this.filterUnmodifiedMessage(s);n&&u.length>0&&this.emitOuterEvent($n.MESSAGE_RECEIVED,u),s.length=0}},{key:"_newC2CMessageStoredAndSummary",value:function(e){for(var t=e.dataList,n=e.C2CRemainingUnreadList,r=e.C2CPairUnreadList,i=e.isInstantMessage,o=null,a=[],s=[],c={},u=this.getModule(pl),l=this.getModule(Il),d=!1,h=0,f=t.length;h<f;h++){var p=t[h];p.currentUser=this.getMyUserID(),p.conversationType=Kn.CONV_C2C,p.isSystemMessage=!!p.isSystemMessage,(fc(p.nick)||fc(p.avatar))&&(d=!0,Zs.debug("".concat(this._className,"._newC2CMessageStoredAndSummary nick or avatar missing!"))),o=new _m(p),p.elements=u.parseElements(p.elements,p.from),o.setElement(p.elements),o.setNickAndAvatar({nick:p.nick,avatar:p.avatar});var g=o.conversationID;if(i){var m=!1,v=this.getModule(ul);if(o.from!==this.getMyUserID()){var y=v.getLatestMessageSentByPeer(g);if(y){var _=y.nick,b=y.avatar;d?o.setNickAndAvatar({nick:_,avatar:b}):_===o.nick&&b===o.avatar||(m=!0)}}else{var S=v.getLatestMessageSentByMe(g);if(S){var x=S.nick,w=S.avatar;x===o.nick&&w===o.avatar||v.modifyMessageSentByMe({conversationID:g,latestNick:o.nick,latestAvatar:o.avatar})}}var I=1===t[h].isModified;if(v.isMessageSentByCurrentInstance(o)?o.isModified=I:I=!1,0===p.msgLifeTime)o._onlineOnlyFlag=!0,s.push(o);else{if(!v.pushIntoMessageList(s,o,I))continue;m&&(v.modifyMessageSentByPeer({conversationID:g,latestNick:o.nick,latestAvatar:o.avatar}),v.updateUserProfileSpecifiedKey({conversationID:g,nick:o.nick,avatar:o.avatar}))}i&&o.clientTime>0&&l.addMessageDelay(o.clientTime)}if(0!==p.msgLifeTime){if(!1===o._onlineOnlyFlag)if(fc(c[g])){var C=0;"in"===o.flow&&(o._isExcludedFromUnreadCount||(C=1)),c[g]=a.push({conversationID:g,unreadCount:C,type:o.conversationType,subType:o.conversationSubType,lastMessage:o._isExcludedFromLastMessage?"":o})-1}else{var M=c[g];a[M].type=o.conversationType,a[M].subType=o.conversationSubType,a[M].lastMessage=o._isExcludedFromLastMessage?"":o,"in"===o.flow&&(o._isExcludedFromUnreadCount||a[M].unreadCount++)}}else o._onlineOnlyFlag=!0}var T=!1;if(hc(r))for(var k=function(e,t){if(r[e].unreadCount>0){T=!0;var n=a.find((function(t){return t.conversationID==="C2C".concat(r[e].from)}));n?n.unreadCount=r[e].unreadCount:a.push({conversationID:"C2C".concat(r[e].from),unreadCount:r[e].unreadCount,type:Kn.CONV_C2C})}},E=0,A=r.length;E<A;E++)k(E);if(hc(n))for(var D=function(e,t){a.find((function(t){return t.conversationID==="C2C".concat(n[e].from)}))||a.push({conversationID:"C2C".concat(n[e].from),type:Kn.CONV_C2C,lastMsgTime:n[e].lastMsgTime})},O=0,R=n.length;O<R;O++)D(O);return{conversationOptionsList:a,messageList:s,isUnreadC2CMessage:T}}},{key:"onC2CMessageRevoked",value:function(e){var t=this;Zs.debug("".concat(this._className,".onC2CMessageRevoked count:").concat(e.dataList.length));var n=this.getModule(ul),r=[],i=null;e.dataList.forEach((function(e){if(e.c2cMessageRevokedNotify){var o=e.c2cMessageRevokedNotify.revokedInfos;fc(o)||o.forEach((function(e){var o=t.getMyUserID()===e.from?"".concat(Kn.CONV_C2C).concat(e.to):"".concat(Kn.CONV_C2C).concat(e.from);(i=n.revoke(o,e.sequence,e.random))&&r.push(i)}))}})),0!==r.length&&(n.onMessageRevoked(r),this.emitOuterEvent($n.MESSAGE_REVOKED,r))}},{key:"onC2CMessageReadReceipt",value:function(e){var t=this;e.dataList.forEach((function(e){if(!Jc(e.c2cMessageReadReceipt)){var n=e.c2cMessageReadReceipt.to;e.c2cMessageReadReceipt.uinPairReadArray.forEach((function(e){var r=e.peerReadTime;Zs.debug("".concat(t._className,"._onC2CMessageReadReceipt to:").concat(n," peerReadTime:").concat(r));var i="".concat(Kn.CONV_C2C).concat(n),o=t.getModule(ul);o.recordPeerReadTime(i,r),o.updateMessageIsPeerReadProperty(i,r)}))}}))}},{key:"onC2CMessageReadNotice",value:function(e){var t=this;e.dataList.forEach((function(e){if(!Jc(e.c2cMessageReadNotice)){var n=t.getModule(ul);e.c2cMessageReadNotice.uinPairReadArray.forEach((function(e){var r=e.from,i=e.peerReadTime;Zs.debug("".concat(t._className,".onC2CMessageReadNotice from:").concat(r," lastReadTime:").concat(i));var o="".concat(Kn.CONV_C2C).concat(r);n.updateIsReadAfterReadReport({conversationID:o,lastMessageTime:i}),n.updateUnreadCount(o)}))}}))}},{key:"sendMessage",value:function(e,t){var n=this._createC2CMessagePack(e,t);return this.request(n)}},{key:"_createC2CMessagePack",value:function(e,t){var n=null;t&&(t.offlinePushInfo&&(n=t.offlinePushInfo),!0===t.onlineUserOnly&&(n?n.disablePush=!0:n={disablePush:!0}));var r="";uc(e.cloudCustomData)&&e.cloudCustomData.length>0&&(r=e.cloudCustomData);var i=[];if(dc(t)&&dc(t.messageControlInfo)){var o=t.messageControlInfo,a=o.excludedFromUnreadCount,s=o.excludedFromLastMessage;!0===a&&i.push("NoUnread"),!0===s&&i.push("NoLastMsg")}return{protocolName:Rl,tjgID:this.generateTjgID(e),requestData:{fromAccount:this.getMyUserID(),toAccount:e.to,msgBody:e.getElements(),cloudCustomData:r,msgSeq:e.sequence,msgRandom:e.random,msgLifeTime:this.isOnlineMessage(e,t)?0:void 0,nick:e.nick,avatar:e.avatar,offlinePushInfo:n?{pushFlag:!0===n.disablePush?1:0,title:n.title||"",desc:n.description||"",ext:n.extension||"",apnsInfo:{badgeMode:!0===n.ignoreIOSBadge?1:0},androidInfo:{OPPOChannelID:n.androidOPPOChannelID||""}}:void 0,messageControlInfo:i,clientTime:e.clientTime}}}},{key:"isOnlineMessage",value:function(e,t){return!(!t||!0!==t.onlineUserOnly)}},{key:"revokeMessage",value:function(e){return this.request({protocolName:Vl,requestData:{msgInfo:{fromAccount:e.from,toAccount:e.to,msgSeq:e.sequence,msgRandom:e.random,msgTimeStamp:e.time}}})}},{key:"deleteMessage",value:function(e){var t=e.to,n=e.keyList;return Zs.log("".concat(this._className,".deleteMessage toAccount:").concat(t," count:").concat(n.length)),this.request({protocolName:ql,requestData:{fromAccount:this.getMyUserID(),to:t,keyList:n}})}},{key:"setMessageRead",value:function(e){var t=this,n=e.conversationID,r=e.lastMessageTime,i="".concat(this._className,".setMessageRead");Zs.log("".concat(i," conversationID:").concat(n," lastMessageTime:").concat(r)),cc(r)||Zs.warn("".concat(i," 请勿修改 Conversation.lastMessage.lastTime,否则可能会导致已读上报结果不准确"));var o=new dh(Uh);return o.setMessage("conversationID:".concat(n," lastMessageTime:").concat(r)),this.request({protocolName:jl,requestData:{C2CMsgReaded:{cookie:"",C2CMsgReadedItem:[{toAccount:n.replace("C2C",""),lastMessageTime:r,receipt:1}]}}}).then((function(){o.setNetworkType(t.getNetworkType()).end(),Zs.log("".concat(i," ok"));var e=t.getModule(ul);return e.updateIsReadAfterReadReport({conversationID:n,lastMessageTime:r}),e.updateUnreadCount(n),bm()})).catch((function(e){return t.probeNetwork().then((function(t){var n=Un(t,2),r=n[0],i=n[1];o.setError(e,r,i).end()})),Zs.log("".concat(i," failed. error:"),e),Am(e)}))}},{key:"getRoamingMessage",value:function(e){var t=this,n="".concat(this._className,".getRoamingMessage"),r=e.peerAccount,i=e.conversationID,o=e.count,a=e.lastMessageTime,s=e.messageKey,c="peerAccount:".concat(r," count:").concat(o||15," lastMessageTime:").concat(a||0," messageKey:").concat(s);Zs.log("".concat(n," ").concat(c));var u=new dh(Ah);return this.request({protocolName:Hl,requestData:{peerAccount:r,count:o||15,lastMessageTime:a||0,messageKey:s}}).then((function(e){var r=e.data,o=r.complete,a=r.messageList,s=r.messageKey,l=r.lastMessageTime;fc(a)?Zs.log("".concat(n," ok. complete:").concat(o," but messageList is undefined!")):Zs.log("".concat(n," ok. complete:").concat(o," count:").concat(a.length)),u.setNetworkType(t.getNetworkType()).setMessage("".concat(c," complete:").concat(o," length:").concat(a.length)).end();var d=t.getModule(ul);1===o&&d.setCompleted(i);var h=d.storeRoamingMessage(a,i);d.modifyMessageList(i),d.updateIsRead(i),d.updateRoamingMessageKeyAndTime(i,s,l);var f=d.getPeerReadTime(i);if(Zs.log("".concat(n," update isPeerRead property. conversationID:").concat(i," peerReadTime:").concat(f)),f)d.updateMessageIsPeerReadProperty(i,f);else{var p=i.replace(Kn.CONV_C2C,"");t.getRemotePeerReadTime([p]).then((function(){d.updateMessageIsPeerReadProperty(i,d.getPeerReadTime(i))}))}return h})).catch((function(e){return t.probeNetwork().then((function(t){var n=Un(t,2),r=n[0],i=n[1];u.setMessage(c).setError(e,r,i).end()})),Zs.warn("".concat(n," failed. error:"),e),Am(e)}))}},{key:"getRemotePeerReadTime",value:function(e){var t=this,n="".concat(this._className,".getRemotePeerReadTime");if(Jc(e))return Zs.warn("".concat(n," userIDList is empty!")),Promise.resolve();var r=new dh(Vh);return Zs.log("".concat(n," userIDList:").concat(e)),this.request({protocolName:Wl,requestData:{userIDList:e}}).then((function(i){var o=i.data.peerReadTimeList;Zs.log("".concat(n," ok. peerReadTimeList:").concat(o));for(var a="",s=t.getModule(ul),c=0;c<e.length;c++)a+="".concat(e[c],"-").concat(o[c]," "),o[c]>0&&s.recordPeerReadTime("C2C".concat(e[c]),o[c]);r.setNetworkType(t.getNetworkType()).setMessage(a).end()})).catch((function(e){t.probeNetwork().then((function(t){var n=Un(t,2),i=n[0],o=n[1];r.setError(e,i,o).end()})),Zs.warn("".concat(n," failed. error:"),e)}))}}]),n}(Ml),Om=We.findIndex,Rm=!0,Lm=Je("findIndex");"findIndex"in[]&&Array(1).findIndex((function(){Rm=!1})),Ae({target:"Array",proto:!0,forced:Rm||!Lm},{findIndex:function(e){return Om(this,e,arguments.length>1?arguments[1]:void 0)}}),Sr("findIndex");var Pm=[],Nm=Pm.sort,Um=o((function(){Pm.sort(void 0)})),Fm=o((function(){Pm.sort(null)})),Gm=qe("sort");Ae({target:"Array",proto:!0,forced:Um||!Fm||!Gm},{sort:function(e){return void 0===e?Nm.call(Re(this)):Nm.call(Re(this),De(e))}});var Vm=function(){function e(t){Sn(this,e),this.list=new Map,this._className="MessageListHandler",this._latestMessageSentByPeerMap=new Map,this._latestMessageSentByMeMap=new Map,this._groupLocalLastMessageSequenceMap=new Map}return wn(e,[{key:"getLocalOldestMessageByConversationID",value:function(e){if(!e)return null;if(!this.list.has(e))return null;var t=this.list.get(e).values();return t?t.next().value:null}},{key:"pushIn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.conversationID,r=e.ID,i=!0;this.list.has(n)||this.list.set(n,new Map);var o=this.list.get(n).has(r);if(o){var a=this.list.get(n).get(r);if(!t||!0===a.isModified)return!1}return this.list.get(n).set(r,e),this._setLatestMessageSentByPeer(n,e),this._setLatestMessageSentByMe(n,e),this._setGroupLocalLastMessageSequence(n,e),i}},{key:"unshift",value:function(e){var t;if(hc(e)){if(e.length>0){t=e[0].conversationID;var n=e.length;this._unshiftMultipleMessages(e),this._setGroupLocalLastMessageSequence(t,e[n-1])}}else t=e.conversationID,this._unshiftSingleMessage(e),this._setGroupLocalLastMessageSequence(t,e);if(t&&t.startsWith(Kn.CONV_C2C)){var r=Array.from(this.list.get(t).values()),i=r.length;if(0===i)return;for(var o=i-1;o>=0;o--)if("out"===r[o].flow){this._setLatestMessageSentByMe(t,r[o]);break}for(var a=i-1;a>=0;a--)if("in"===r[a].flow){this._setLatestMessageSentByPeer(t,r[a]);break}}}},{key:"_unshiftSingleMessage",value:function(e){var t=e.conversationID,n=e.ID;if(!this.list.has(t))return this.list.set(t,new Map),void this.list.get(t).set(n,e);var r=Array.from(this.list.get(t));r.unshift([n,e]),this.list.set(t,new Map(r))}},{key:"_unshiftMultipleMessages",value:function(e){for(var t=e.length,n=[],r=e[0].conversationID,i=this.list.has(r)?Array.from(this.list.get(r)):[],o=0;o<t;o++)n.push([e[o].ID,e[o]]);this.list.set(r,new Map(n.concat(i)))}},{key:"remove",value:function(e){var t=e.conversationID,n=e.ID;this.list.has(t)&&this.list.get(t).delete(n)}},{key:"revoke",value:function(e,t,n){if(Zs.debug("revoke message",e,t,n),this.list.has(e)){var r,i=Hn(this.list.get(e));try{for(i.s();!(r=i.n()).done;){var o=Un(r.value,2)[1];if(o.sequence===t&&!o.isRevoked&&(fc(n)||o.random===n))return o.isRevoked=!0,o}}catch(s){i.e(s)}finally{i.f()}}return null}},{key:"removeByConversationID",value:function(e){this.list.has(e)&&(this.list.delete(e),this._latestMessageSentByPeerMap.delete(e),this._latestMessageSentByMeMap.delete(e))}},{key:"findMessage",value:function(e){var t,n=null,r=Hn(this.list);try{for(r.s();!(t=r.n()).done;){var i=Un(t.value,2)[1];i.has(e)&&(n=i.get(e))}}catch(a){r.e(a)}finally{r.f()}return n}},{key:"updateMessageIsPeerReadProperty",value:function(e,t){var n=[];if(this.list.has(e)){var r,i=Hn(this.list.get(e));try{for(i.s();!(r=i.n()).done;){var o=Un(r.value,2)[1];o.time<=t&&!o.isPeerRead&&"out"===o.flow&&(o.isPeerRead=!0,n.push(o))}}catch(s){i.e(s)}finally{i.f()}Zs.log("".concat(this._className,".updateMessageIsPeerReadProperty conversationID:").concat(e," peerReadTime:").concat(t," count:").concat(n.length))}return n}},{key:"updateMessageIsModifiedProperty",value:function(e){var t=e.conversationID,n=e.ID;if(this.list.has(t)){var r=this.list.get(t).get(n);r&&(r.isModified=!0)}}},{key:"hasLocalMessageList",value:function(e){return this.list.has(e)}},{key:"getLocalMessageList",value:function(e){return this.hasLocalMessageList(e)?Fn(this.list.get(e).values()):[]}},{key:"hasLocalMessage",value:function(e,t){return!!this.hasLocalMessageList(e)&&this.list.get(e).has(t)}},{key:"getLocalMessage",value:function(e,t){return this.hasLocalMessage(e,t)?this.list.get(e).get(t):null}},{key:"getLocalLastMessage",value:function(e){var t=this.getLocalMessageList(e);return t[t.length-1]}},{key:"_setLatestMessageSentByPeer",value:function(e,t){e.startsWith(Kn.CONV_C2C)&&"in"===t.flow&&this._latestMessageSentByPeerMap.set(e,t)}},{key:"_setLatestMessageSentByMe",value:function(e,t){e.startsWith(Kn.CONV_C2C)&&"out"===t.flow&&this._latestMessageSentByMeMap.set(e,t)}},{key:"_setGroupLocalLastMessageSequence",value:function(e,t){e.startsWith(Kn.CONV_GROUP)&&this._groupLocalLastMessageSequenceMap.set(e,t.sequence)}},{key:"getLatestMessageSentByPeer",value:function(e){return this._latestMessageSentByPeerMap.get(e)}},{key:"getLatestMessageSentByMe",value:function(e){return this._latestMessageSentByMeMap.get(e)}},{key:"getGroupLocalLastMessageSequence",value:function(e){return this._groupLocalLastMessageSequenceMap.get(e)||0}},{key:"modifyMessageSentByPeer",value:function(e){var t=e.conversationID,n=e.latestNick,r=e.latestAvatar,i=this.list.get(t);if(!Jc(i)){var o=Array.from(i.values()),a=o.length;if(0!==a){for(var s=null,c=0,u=!1,l=a-1;l>=0;l--)"in"===o[l].flow&&((s=o[l]).nick!==n&&(s.setNickAndAvatar({nick:n}),u=!0),s.avatar!==r&&(s.setNickAndAvatar({avatar:r}),u=!0),u&&(c+=1));Zs.log("".concat(this._className,".modifyMessageSentByPeer conversationID:").concat(t," count:").concat(c))}}}},{key:"modifyMessageSentByMe",value:function(e){var t=e.conversationID,n=e.latestNick,r=e.latestAvatar,i=this.list.get(t);if(!Jc(i)){var o=Array.from(i.values()),a=o.length;if(0!==a){for(var s=null,c=0,u=!1,l=a-1;l>=0;l--)"out"===o[l].flow&&((s=o[l]).nick!==n&&(s.setNickAndAvatar({nick:n}),u=!0),s.avatar!==r&&(s.setNickAndAvatar({avatar:r}),u=!0),u&&(c+=1));Zs.log("".concat(this._className,".modifyMessageSentByMe conversationID:").concat(t," count:").concat(c))}}}},{key:"traversal",value:function(){if(0!==this.list.size&&-1===Zs.getLevel()){console.group("conversationID-messageCount");var e,t=Hn(this.list);try{for(t.s();!(e=t.n()).done;){var n=Un(e.value,2),r=n[0],i=n[1];console.log("".concat(r,"-").concat(i.size))}}catch(a){t.e(a)}finally{t.f()}console.groupEnd()}}},{key:"reset",value:function(){this.list.clear(),this._latestMessageSentByPeerMap.clear(),this._latestMessageSentByMeMap.clear(),this._groupLocalLastMessageSequenceMap.clear()}}]),e}(),jm="_a2KeyAndTinyIDUpdated",Bm="_cloudConfigUpdated",zm="_profileUpdated";function Hm(e){this.mixin(e)}Hm.mixin=function(e){var t=e.prototype||e;t._isReady=!1,t.ready=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e)return this._isReady?void(t?e.call(this):setTimeout(e,1)):(this._readyQueue=this._readyQueue||[],void this._readyQueue.push(e))},t.triggerReady=function(){var e=this;this._isReady=!0,setTimeout((function(){var t=e._readyQueue;e._readyQueue=[],t&&t.length>0&&t.forEach((function(e){e.call(this)}),e)}),1)},t.resetReady=function(){this._isReady=!1,this._readyQueue=[]},t.isReady=function(){return this._isReady}};var Wm=["jpg","jpeg","gif","png","bmp","image","webp"],qm=["mp4"],$m=1,Km=2,Ym=3,Jm=255,Xm=function(){function e(t){var n=this;Sn(this,e),Jc(t)||(this.userID=t.userID||"",this.nick=t.nick||"",this.gender=t.gender||"",this.birthday=t.birthday||0,this.location=t.location||"",this.selfSignature=t.selfSignature||"",this.allowType=t.allowType||Kn.ALLOW_TYPE_ALLOW_ANY,this.language=t.language||0,this.avatar=t.avatar||"",this.messageSettings=t.messageSettings||0,this.adminForbidType=t.adminForbidType||Kn.FORBID_TYPE_NONE,this.level=t.level||0,this.role=t.role||0,this.lastUpdatedTime=0,this.profileCustomField=[],Jc(t.profileCustomField)||t.profileCustomField.forEach((function(e){n.profileCustomField.push({key:e.key,value:e.value})})))}return wn(e,[{key:"validate",value:function(e){var t=!0,n="";if(Jc(e))return{valid:!1,tips:"empty options"};if(e.profileCustomField)for(var r=e.profileCustomField.length,i=null,o=0;o<r;o++){if(i=e.profileCustomField[o],!uc(i.key)||-1===i.key.indexOf("Tag_Profile_Custom"))return{valid:!1,tips:"自定义资料字段的前缀必须是 Tag_Profile_Custom"};if(!uc(i.value))return{valid:!1,tips:"自定义资料字段的 value 必须是字符串"}}for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){if("profileCustomField"===a)continue;if(Jc(e[a])&&!uc(e[a])&&!cc(e[a])){n="key:"+a+", invalid value:"+e[a],t=!1;continue}switch(a){case"nick":uc(e[a])||(n="nick should be a string",t=!1),wc(e[a])>500&&(n="nick name limited: must less than or equal to ".concat(500," bytes, current size: ").concat(wc(e[a])," bytes"),t=!1);break;case"gender":Tc(tc,e.gender)||(n="key:gender, invalid value:"+e.gender,t=!1);break;case"birthday":cc(e.birthday)||(n="birthday should be a number",t=!1);break;case"location":uc(e.location)||(n="location should be a string",t=!1);break;case"selfSignature":uc(e.selfSignature)||(n="selfSignature should be a string",t=!1);break;case"allowType":Tc(rc,e.allowType)||(n="key:allowType, invalid value:"+e.allowType,t=!1);break;case"language":cc(e.language)||(n="language should be a number",t=!1);break;case"avatar":uc(e.avatar)||(n="avatar should be a string",t=!1);break;case"messageSettings":0!==e.messageSettings&&1!==e.messageSettings&&(n="messageSettings should be 0 or 1",t=!1);break;case"adminForbidType":Tc(nc,e.adminForbidType)||(n="key:adminForbidType, invalid value:"+e.adminForbidType,t=!1);break;case"level":cc(e.level)||(n="level should be a number",t=!1);break;case"role":cc(e.role)||(n="role should be a number",t=!1);break;default:n="unknown key:"+a+"  "+e[a],t=!1}}return{valid:t,tips:n}}}]),e}(),Zm=function e(t){Sn(this,e),this.value=t,this.next=null},Qm=function(){function e(t){Sn(this,e),this.MAX_LENGTH=t,this.pTail=null,this.pNodeToDel=null,this.map=new Map,Zs.debug("SinglyLinkedList init MAX_LENGTH:".concat(this.MAX_LENGTH))}return wn(e,[{key:"set",value:function(e){var t=new Zm(e);if(this.map.size<this.MAX_LENGTH)null===this.pTail?(this.pTail=t,this.pNodeToDel=t):(this.pTail.next=t,this.pTail=t),this.map.set(e,1);else{var n=this.pNodeToDel;this.pNodeToDel=this.pNodeToDel.next,this.map.delete(n.value),n.next=null,n=null,this.pTail.next=t,this.pTail=t,this.map.set(e,1)}}},{key:"has",value:function(e){return this.map.has(e)}},{key:"delete",value:function(e){this.has(e)&&this.map.delete(e)}},{key:"tail",value:function(){return this.pTail}},{key:"size",value:function(){return this.map.size}},{key:"data",value:function(){return Array.from(this.map.keys())}},{key:"reset",value:function(){for(var e;null!==this.pNodeToDel;)e=this.pNodeToDel,this.pNodeToDel=this.pNodeToDel.next,e.next=null,e=null;this.pTail=null,this.map.clear()}}]),e}(),ev=["groupID","name","avatar","type","introduction","notification","ownerID","selfInfo","createTime","infoSequence","lastInfoTime","lastMessage","nextMessageSeq","memberNum","maxMemberNum","memberList","joinOption","groupCustomField","muteAllMembers"],tv=function(){function e(t){Sn(this,e),this.groupID="",this.name="",this.avatar="",this.type="",this.introduction="",this.notification="",this.ownerID="",this.createTime="",this.infoSequence="",this.lastInfoTime="",this.selfInfo={messageRemindType:"",joinTime:"",nameCard:"",role:"",userID:"",memberCustomField:void 0,readedSequence:0,excludedUnreadSequenceList:void 0},this.lastMessage={lastTime:"",lastSequence:"",fromAccount:"",messageForShow:""},this.nextMessageSeq="",this.memberNum="",this.memberCount="",this.maxMemberNum="",this.maxMemberCount="",this.joinOption="",this.groupCustomField=[],this.muteAllMembers=void 0,this._initGroup(t)}return wn(e,[{key:"_initGroup",value:function(e){for(var t in e)ev.indexOf(t)<0||("selfInfo"!==t?("memberNum"===t&&(this.memberCount=e[t]),"maxMemberNum"===t&&(this.maxMemberCount=e[t]),this[t]=e[t]):this.updateSelfInfo(e[t]))}},{key:"updateGroup",value:function(e){var t=this,n=JSON.parse(JSON.stringify(e));n.lastMsgTime&&(this.lastMessage.lastTime=n.lastMsgTime),fc(n.muteAllMembers)||("On"===n.muteAllMembers?n.muteAllMembers=!0:n.muteAllMembers=!1),n.groupCustomField&&Oc(this.groupCustomField,n.groupCustomField),fc(n.memberNum)||(this.memberCount=n.memberNum),fc(n.maxMemberNum)||(this.maxMemberCount=n.maxMemberNum),Sc(this,n,["members","errorCode","lastMsgTime","groupCustomField","memberNum","maxMemberNum"]),hc(n.members)&&n.members.length>0&&n.members.forEach((function(e){e.userID===t.selfInfo.userID&&Sc(t.selfInfo,e,["sequence"])}))}},{key:"updateSelfInfo",value:function(e){var t=e.nameCard,n=e.joinTime,r=e.role,i=e.messageRemindType,o=e.readedSequence,a=e.excludedUnreadSequenceList;Sc(this.selfInfo,{nameCard:t,joinTime:n,role:r,messageRemindType:i,readedSequence:o,excludedUnreadSequenceList:a},[],["",null,void 0,0,NaN])}},{key:"setSelfNameCard",value:function(e){this.selfInfo.nameCard=e}},{key:"memberNum",set:function(e){},get:function(){return Zs.warn("!!!v2.8.0起弃用memberNum,请使用 memberCount"),this.memberCount}},{key:"maxMemberNum",set:function(e){},get:function(){return Zs.warn("!!!v2.8.0起弃用maxMemberNum,请使用 maxMemberCount"),this.maxMemberCount}}]),e}(),nv=function(e,t){if(fc(t))return"";switch(e){case Kn.MSG_TEXT:return t.text;case Kn.MSG_IMAGE:return"[图片]";case Kn.MSG_LOCATION:return"[位置]";case Kn.MSG_AUDIO:return"[语音]";case Kn.MSG_VIDEO:return"[视频]";case Kn.MSG_FILE:return"[文件]";case Kn.MSG_CUSTOM:return"[自定义消息]";case Kn.MSG_GRP_TIP:return"[群提示消息]";case Kn.MSG_GRP_SYS_NOTICE:return"[群系统通知]";case Kn.MSG_FACE:return"[动画表情]";case Kn.MSG_MERGER:return"[聊天记录]";default:return""}},rv=function(e){return fc(e)?{lastTime:0,lastSequence:0,fromAccount:0,messageForShow:"",payload:null,type:"",isRevoked:!1,cloudCustomData:"",onlineOnlyFlag:!1,nick:"",nameCard:""}:e instanceof _m?{lastTime:e.time||0,lastSequence:e.sequence||0,fromAccount:e.from||"",messageForShow:nv(e.type,e.payload),payload:e.payload||null,type:e.type||null,isRevoked:e.isRevoked||!1,cloudCustomData:e.cloudCustomData||"",onlineOnlyFlag:e._onlineOnlyFlag||!1,nick:e.nick||"",nameCard:e.nameCard||""}:Mn({},e,{messageForShow:nv(e.type,e.payload)})},iv=function(){function e(t){Sn(this,e),this.conversationID=t.conversationID||"",this.unreadCount=t.unreadCount||0,this.type=t.type||"",this.lastMessage=rv(t.lastMessage),t.lastMsgTime&&(this.lastMessage.lastTime=t.lastMsgTime),this._isInfoCompleted=!1,this.peerReadTime=t.peerReadTime||0,this.groupAtInfoList=[],this.remark="",this.isPinned=t.isPinned||!1,this.messageRemindType="",this._initProfile(t)}return wn(e,[{key:"_initProfile",value:function(e){var t=this;Object.keys(e).forEach((function(n){switch(n){case"userProfile":t.userProfile=e.userProfile;break;case"groupProfile":t.groupProfile=e.groupProfile}})),fc(this.userProfile)&&this.type===Kn.CONV_C2C?this.userProfile=new Xm({userID:e.conversationID.replace("C2C","")}):fc(this.groupProfile)&&this.type===Kn.CONV_GROUP&&(this.groupProfile=new tv({groupID:e.conversationID.replace("GROUP","")}))}},{key:"updateUnreadCount",value:function(e){var t=e.nextUnreadCount,n=e.isFromGetConversations,r=e.isUnreadC2CMessage;fc(t)||(Lc(this.subType)?this.unreadCount=0:n&&this.type===Kn.CONV_GROUP||r&&this.type===Kn.CONV_C2C?this.unreadCount=t:this.unreadCount=this.unreadCount+t)}},{key:"updateLastMessage",value:function(e){this.lastMessage=rv(e)}},{key:"updateGroupAtInfoList",value:function(e){var t,n=(Gn(t=e.groupAtType)||Vn(t)||jn(t)||zn()).slice(0);-1!==n.indexOf(Kn.CONV_AT_ME)&&-1!==n.indexOf(Kn.CONV_AT_ALL)&&(n=[Kn.CONV_AT_ALL_AT_ME]);var r={from:e.from,groupID:e.groupID,messageSequence:e.sequence,atTypeArray:n,__random:e.__random,__sequence:e.__sequence};this.groupAtInfoList.push(r),Zs.debug("Conversation.updateGroupAtInfoList conversationID:".concat(this.conversationID),this.groupAtInfoList)}},{key:"clearGroupAtInfoList",value:function(){this.groupAtInfoList.length=0}},{key:"reduceUnreadCount",value:function(){this.unreadCount>=1&&(this.unreadCount-=1)}},{key:"isLastMessageRevoked",value:function(e){var t=e.sequence,n=e.time;return this.type===Kn.CONV_C2C&&t===this.lastMessage.lastSequence&&n===this.lastMessage.lastTime||this.type===Kn.CONV_GROUP&&t===this.lastMessage.lastSequence}},{key:"setLastMessageRevoked",value:function(e){this.lastMessage.isRevoked=e}},{key:"toAccount",get:function(){return this.conversationID.startsWith(Kn.CONV_C2C)?this.conversationID.replace(Kn.CONV_C2C,""):this.conversationID.startsWith(Kn.CONV_GROUP)?this.conversationID.replace(Kn.CONV_GROUP,""):""}},{key:"subType",get:function(){return this.groupProfile?this.groupProfile.type:""}}]),e}(),ov=function(){function e(t){Sn(this,e),this._conversationModule=t,this._className="MessageRemindHandler",this._updateSequence=0}return wn(e,[{key:"getC2CMessageRemindType",value:function(){var e=this,t="".concat(this._className,".getC2CMessageRemindType");return this._conversationModule.request({protocolName:zl,updateSequence:this._updateSequence}).then((function(n){Zs.log("".concat(t," ok"));var r=n.data,i=r.updateSequence,o=r.muteFlagList;e._updateSequence=i,e._patchC2CMessageRemindType(o)})).catch((function(e){Zs.error("".concat(t," failed. error:"),e)}))}},{key:"_patchC2CMessageRemindType",value:function(e){var t=this,n=0,r="";hc(e)&&e.length>0&&e.forEach((function(e){var i=e.userID,o=e.muteFlag;0===o?r=Kn.MSG_REMIND_ACPT_AND_NOTE:1===o?r=Kn.MSG_REMIND_DISCARD:2===o&&(r=Kn.MSG_REMIND_ACPT_NOT_NOTE),!0===t._conversationModule.patchMessageRemindType({ID:i,isC2CConversation:!0,messageRemindType:r})&&(n+=1)})),Zs.log("".concat(this._className,"._patchC2CMessageRemindType count:").concat(n))}},{key:"set",value:function(e){return e.groupID?this._setGroupMessageRemindType(e):hc(e.userIDList)?this._setC2CMessageRemindType(e):void 0}},{key:"_setGroupMessageRemindType",value:function(e){var t=this,n="".concat(this._className,"._setGroupMessageRemindType"),r=e.groupID,i=e.messageRemindType,o="groupID:".concat(r," messageRemindType:").concat(i),a=new dh(af);return a.setMessage(o),this._getModule(cl).modifyGroupMemberInfo({groupID:r,messageRemindType:i,userID:this._conversationModule.getMyUserID()}).then((function(){a.setNetworkType(t._conversationModule.getNetworkType()).end(),Zs.log("".concat(n," ok. ").concat(o));var e=t._getModule(al).getLocalGroupProfile(r);return e&&(e.selfInfo.messageRemindType=i),t._conversationModule.patchMessageRemindType({ID:r,isC2CConversation:!1,messageRemindType:i})&&t._emitConversationUpdate(),bm({group:e})})).catch((function(e){return t._conversationModule.probeNetwork().then((function(t){var n=Un(t,2),r=n[0],i=n[1];a.setError(e,r,i).end()})),Zs.error("".concat(n," failed. error:"),e),Am(e)}))}},{key:"_setC2CMessageRemindType",value:function(e){var t=this,n="".concat(this._className,"._setC2CMessageRemindType"),r=e.userIDList,i=e.messageRemindType,o=r.slice(0,30),a=0;i===Kn.MSG_REMIND_DISCARD?a=1:i===Kn.MSG_REMIND_ACPT_NOT_NOTE&&(a=2);var s="userIDList:".concat(o," messageRemindType:").concat(i),c=new dh(af);return c.setMessage(s),this._conversationModule.request({protocolName:Bl,requestData:{userIDList:o,muteFlag:a}}).then((function(e){c.setNetworkType(t._conversationModule.getNetworkType()).end();var r=e.data,a=r.updateSequence,s=r.errorList;t._updateSequence=a;var u=[],l=[];hc(s)&&s.forEach((function(e){u.push(e.userID),l.push({userID:e.userID,code:e.errorCode})}));var d=o.filter((function(e){return-1===u.indexOf(e)}));Zs.log("".concat(n," ok. successUserIDList:").concat(d," failureUserIDList:").concat(JSON.stringify(l)));var h=0;return d.forEach((function(e){t._conversationModule.patchMessageRemindType({ID:e,isC2CConversation:!0,messageRemindType:i})&&(h+=1)})),h>=1&&t._emitConversationUpdate(),o.length=u.length=0,Em({successUserIDList:d.map((function(e){return{userID:e}})),failureUserIDList:l})})).catch((function(e){return t._conversationModule.probeNetwork().then((function(t){var n=Un(t,2),r=n[0],i=n[1];c.setError(e,r,i).end()})),Zs.error("".concat(n," failed. error:"),e),Am(e)}))}},{key:"_getModule",value:function(e){return this._conversationModule.getModule(e)}},{key:"_emitConversationUpdate",value:function(){this._conversationModule.emitConversationUpdate(!0,!1)}},{key:"setUpdateSequence",value:function(e){this._updateSequence=e}},{key:"reset",value:function(){Zs.log("".concat(this._className,".reset")),this._updateSequence=0}}]),e}(),av=function(e){Tn(n,e);var t=Nn(n);function n(e){var r;return Sn(this,n),(r=t.call(this,e))._className="ConversationModule",Hm.mixin(Ln(r)),r._messageListHandler=new Vm,r._messageRemindHandler=new ov(Ln(r)),r.singlyLinkedList=new Qm(100),r._pagingStatus=Gu.NOT_START,r._pagingTimeStamp=0,r._pagingStartIndex=0,r._pagingPinnedTimeStamp=0,r._pagingPinnedStartIndex=0,r._conversationMap=new Map,r._tmpGroupList=[],r._tmpGroupAtTipsList=[],r._peerReadTimeMap=new Map,r._completedMap=new Map,r._roamingMessageKeyAndTimeMap=new Map,r._remoteGroupReadSequenceMap=new Map,r._initListeners(),r}return wn(n,[{key:"_initListeners",value:function(){var e=this.getInnerEmitterInstance();e.on(jm,this._initLocalConversationList,this),e.on(zm,this._onProfileUpdated,this)}},{key:"onCheckTimer",value:function(e){e%60==0&&this._messageListHandler.traversal()}},{key:"_initLocalConversationList",value:function(){var e=this,t=new dh(Yh);Zs.log("".concat(this._className,"._initLocalConversationList."));var n="",r=this._getStorageConversationList();if(r){for(var i=r.length,o=0;o<i;o++){var a=r[o];if(a){if(a.conversationID==="".concat(Kn.CONV_C2C,"@TLS#ERROR")||a.conversationID==="".concat(Kn.CONV_C2C,"@TLS#NOT_FOUND"))continue;if(a.groupProfile){var s=a.groupProfile.type;if(Lc(s))continue}}this._conversationMap.set(r[o].conversationID,new iv(r[o]))}this.emitConversationUpdate(!0,!1),n="count:".concat(i)}else n="count:0";t.setNetworkType(this.getNetworkType()).setMessage(n).end(),this.getModule(ol)||this.triggerReady(),this.ready((function(){e._tmpGroupList.length>0&&(e.updateConversationGroupProfile(e._tmpGroupList),e._tmpGroupList.length=0)})),this._syncConversationList()}},{key:"onMessageSent",value:function(e){this._onSendOrReceiveMessage({conversationOptionsList:e.conversationOptionsList,isInstantMessage:!0})}},{key:"onNewMessage",value:function(e){this._onSendOrReceiveMessage(e)}},{key:"_onSendOrReceiveMessage",value:function(e){var t=this,n=e.conversationOptionsList,r=e.isInstantMessage,i=void 0===r||r,o=e.isUnreadC2CMessage,a=void 0!==o&&o;this._isReady?0!==n.length&&(this._getC2CPeerReadTime(n),this._updateLocalConversationList({conversationOptionsList:n,isInstantMessage:i,isUnreadC2CMessage:a,isFromGetConversations:!1}),this._setStorageConversationList(),this.emitConversationUpdate()):this.ready((function(){t._onSendOrReceiveMessage(e)}))}},{key:"updateConversationGroupProfile",value:function(e){var t=this;hc(e)&&0===e.length||(0!==this._conversationMap.size?(e.forEach((function(e){var n="GROUP".concat(e.groupID);if(t._conversationMap.has(n)){var r=t._conversationMap.get(n);r.groupProfile=JSON.parse(JSON.stringify(e)),r.lastMessage.lastSequence<e.nextMessageSeq&&(r.lastMessage.lastSequence=e.nextMessageSeq-1),r.subType||(r.subType=e.type)}})),this.emitConversationUpdate(!0,!1)):this._tmpGroupList=e)}},{key:"_updateConversationUserProfile",value:function(e){var t=this;e.data.forEach((function(e){var n="C2C".concat(e.userID);t._conversationMap.has(n)&&(t._conversationMap.get(n).userProfile=e)})),this.emitConversationUpdate(!0,!1)}},{key:"onMessageRevoked",value:function(e){var t=this;if(0!==e.length){var n=null,r=!1;e.forEach((function(e){(n=t._conversationMap.get(e.conversationID))&&(n.reduceUnreadCount(),n.isLastMessageRevoked(e)&&(r=!0,n.setLastMessageRevoked(!0)))})),r&&this.emitConversationUpdate(!0,!1)}}},{key:"onMessageDeleted",value:function(e){if(0!==e.length){e.forEach((function(e){e.isDeleted=!0}));for(var t=e[0].conversationID,n=this._messageListHandler.getLocalMessageList(t),r={},i=n.length-1;i>=0;i--)if(!n[i].isDeleted){r=n[i];break}var o=this._conversationMap.get(t);if(o){var a=!1;o.lastMessage.lastSequence===r.sequence&&o.lastMessage.lastTime===r.time||(Jc(r)&&(r=void 0),o.updateLastMessage(r),a=!0,Zs.log("".concat(this._className,".onMessageDeleted. update conversationID:").concat(t," with lastMessage:"),o.lastMessage)),t.startsWith(Kn.CONV_C2C)&&this.updateUnreadCount(t),a&&this.emitConversationUpdate(!0,!1)}}}},{key:"onNewGroupAtTips",value:function(e){var t=this,n=e.dataList,r=null;n.forEach((function(e){e.groupAtTips?r=e.groupAtTips:e.elements&&(r=e.elements),r.__random=e.random,r.__sequence=e.clientSequence,t._tmpGroupAtTipsList.push(r)})),Zs.debug("".concat(this._className,".onNewGroupAtTips isReady:").concat(this._isReady),this._tmpGroupAtTipsList),this._isReady&&this._handleGroupAtTipsList()}},{key:"_handleGroupAtTipsList",value:function(){var e=this;if(0!==this._tmpGroupAtTipsList.length){var t=!1;this._tmpGroupAtTipsList.forEach((function(n){var r=n.groupID;if(n.from!==e.getMyUserID()){var i=e._conversationMap.get("".concat(Kn.CONV_GROUP).concat(r));i&&(i.updateGroupAtInfoList(n),t=!0)}})),t&&this.emitConversationUpdate(!0,!1),this._tmpGroupAtTipsList.length=0}}},{key:"_getC2CPeerReadTime",value:function(e){var t=this,n=[];if(e.forEach((function(e){t._conversationMap.has(e.conversationID)||e.type!==Kn.CONV_C2C||n.push(e.conversationID.replace(Kn.CONV_C2C,""))})),n.length>0){Zs.debug("".concat(this._className,"._getC2CPeerReadTime userIDList:").concat(n));var r=this.getModule(ol);r&&r.getRemotePeerReadTime(n)}}},{key:"_getStorageConversationList",value:function(){return this.getModule(dl).getItem("conversationMap")}},{key:"_setStorageConversationList",value:function(){var e=this.getLocalConversationList().slice(0,20).map((function(e){return{conversationID:e.conversationID,type:e.type,subType:e.subType,lastMessage:e.lastMessage,groupProfile:e.groupProfile,userProfile:e.userProfile}}));this.getModule(dl).setItem("conversationMap",e)}},{key:"emitConversationUpdate",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=Fn(this._conversationMap.values());if(t){var r=this.getModule(al);r&&r.updateGroupLastMessage(n)}e&&this.emitOuterEvent($n.CONVERSATION_LIST_UPDATED)}},{key:"getLocalConversationList",value:function(){return Fn(this._conversationMap.values())}},{key:"getLocalConversation",value:function(e){return this._conversationMap.get(e)}},{key:"_syncConversationList",value:function(){var e=this,t=new dh(Jh);return this._pagingStatus===Gu.NOT_START&&this._conversationMap.clear(),this._pagingGetConversationList().then((function(n){return e._pagingStatus=Gu.RESOLVED,e._setStorageConversationList(),e._handleC2CPeerReadTime(),e._patchConversationProperties(),t.setMessage(e._conversationMap.size).setNetworkType(e.getNetworkType()).end(),n})).catch((function(n){return e._pagingStatus=Gu.REJECTED,t.setMessage(e._pagingTimeStamp),e.probeNetwork().then((function(e){var r=Un(e,2),i=r[0],o=r[1];t.setError(n,i,o).end()})),Am(n)}))}},{key:"_patchConversationProperties",value:function(){var e=this,t=Date.now(),n=this.checkAndPatchRemark(),r=this._messageRemindHandler.getC2CMessageRemindType(),i=this.getModule(al).getGroupList();Promise.all([n,r,i]).then((function(){var n=Date.now()-t;Zs.log("".concat(e._className,"._patchConversationProperties ok. cost ").concat(n," ms")),e.emitConversationUpdate(!0,!1)}))}},{key:"_pagingGetConversationList",value:function(){var e=this,t="".concat(this._className,"._pagingGetConversationList");return Zs.log("".concat(t," timeStamp:").concat(this._pagingTimeStamp," startIndex:").concat(this._pagingStartIndex)+" pinnedTimeStamp:".concat(this._pagingPinnedTimeStamp," pinnedStartIndex:").concat(this._pagingPinnedStartIndex)),this._pagingStatus=Gu.PENDING,this.request({protocolName:$l,requestData:{fromAccount:this.getMyUserID(),timeStamp:this._pagingTimeStamp,startIndex:this._pagingStartIndex,pinnedTimeStamp:this._pagingPinnedTimeStamp,pinnedStartIndex:this._pagingStartIndex,orderType:1}}).then((function(n){var r=n.data,i=r.completeFlag,o=r.conversations,a=void 0===o?[]:o,s=r.timeStamp,c=r.startIndex,u=r.pinnedTimeStamp,l=r.pinnedStartIndex;if(Zs.log("".concat(t," ok. completeFlag:").concat(i," count:").concat(a.length," isReady:").concat(e._isReady)),a.length>0){var d=e._getConversationOptions(a);e._updateLocalConversationList({conversationOptionsList:d,isFromGetConversations:!0}),e.isLoggedIn()&&e.emitConversationUpdate()}if(!e._isReady){if(!e.isLoggedIn())return Em();e.triggerReady()}return e._pagingTimeStamp=s,e._pagingStartIndex=c,e._pagingPinnedTimeStamp=u,e._pagingPinnedStartIndex=l,1!==i?e._pagingGetConversationList():(e._handleGroupAtTipsList(),Em())})).catch((function(n){throw e.isLoggedIn()&&(e._isReady||(Zs.warn("".concat(t," failed. error:"),n),e.triggerReady())),n}))}},{key:"_updateLocalConversationList",value:function(e){var t,n=e.isFromGetConversations,r=Date.now();t=this._getTmpConversationListMapping(e),this._conversationMap=new Map(this._sortConversationList([].concat(Fn(t.toBeUpdatedConversationList),Fn(this._conversationMap)))),n||this._updateUserOrGroupProfile(t.newConversationList),Zs.debug("".concat(this._className,"._updateLocalConversationList cost ").concat(Date.now()-r," ms"))}},{key:"_getTmpConversationListMapping",value:function(e){for(var t=e.conversationOptionsList,n=e.isFromGetConversations,r=e.isInstantMessage,i=e.isUnreadC2CMessage,o=void 0!==i&&i,a=[],s=[],c=this.getModule(al),u=this.getModule(sl),l=0,d=t.length;l<d;l++){var h=new iv(t[l]),f=h.conversationID;if(f!=="".concat(Kn.CONV_C2C,"@TLS#ERROR")&&f!=="".concat(Kn.CONV_C2C,"@TLS#NOT_FOUND"))if(this._conversationMap.has(f)){var p=this._conversationMap.get(f),g=["unreadCount","allowType","adminForbidType","payload","isPinned"];!1===r&&g.push("lastMessage");var m=t[l].lastMessage,v=!fc(m);v||this._onLastMessageNotExist(t[l]),fc(r)&&v&&null===p.lastMessage.payload&&(p.lastMessage.payload=m.payload),Sc(p,h,g,[null,void 0,"",0,NaN]),p.updateUnreadCount({nextUnreadCount:h.unreadCount,isFromGetConversations:n,isUnreadC2CMessage:o}),r&&v&&(p.lastMessage.payload=m.payload,p.type===Kn.CONV_GROUP&&(p.lastMessage.nameCard=m.nameCard,p.lastMessage.nick=m.nick)),v&&p.lastMessage.cloudCustomData!==m.cloudCustomData&&(p.lastMessage.cloudCustomData=m.cloudCustomData||""),this._conversationMap.delete(f),a.push([f,p])}else{if(h.type===Kn.CONV_GROUP&&c){var y=h.groupProfile.groupID,_=c.getLocalGroupProfile(y);_&&(h.groupProfile=_,h.updateUnreadCount({nextUnreadCount:0}))}else if(h.type===Kn.CONV_C2C){var b=f.replace(Kn.CONV_C2C,"");u&&u.isMyFriend(b)&&(h.remark=u.getFriendRemark(b))}s.push(h),a.push([f,h])}}return{toBeUpdatedConversationList:a,newConversationList:s}}},{key:"_onLastMessageNotExist",value:function(e){new dh(Hf).setMessage("".concat(JSON.stringify(e))).setNetworkType(this.getNetworkType()).end()}},{key:"_sortConversationList",value:function(e){var t=[],n=[];return e.forEach((function(e){!0===e[1].isPinned?t.push(e):n.push(e)})),t.sort((function(e,t){return t[1].lastMessage.lastTime-e[1].lastMessage.lastTime})).concat(n.sort((function(e,t){return t[1].lastMessage.lastTime-e[1].lastMessage.lastTime})))}},{key:"_sortConversationListAndEmitEvent",value:function(){this._conversationMap=new Map(this._sortConversationList(Fn(this._conversationMap))),this.emitConversationUpdate(!0,!1)}},{key:"_updateUserOrGroupProfile",value:function(e){var t=this;if(0!==e.length){var n=[],r=[],i=this.getModule(il),o=this.getModule(al);e.forEach((function(e){if(e.type===Kn.CONV_C2C)n.push(e.toAccount);else if(e.type===Kn.CONV_GROUP){var t=e.toAccount;o.hasLocalGroup(t)?e.groupProfile=o.getLocalGroupProfile(t):r.push(t)}})),Zs.log("".concat(this._className,"._updateUserOrGroupProfile c2cUserIDList:").concat(n," groupIDList:").concat(r)),n.length>0&&i.getUserProfile({userIDList:n}).then((function(e){var n=e.data;hc(n)?n.forEach((function(e){t._conversationMap.get("C2C".concat(e.userID)).userProfile=e})):t._conversationMap.get("C2C".concat(n.userID)).userProfile=n})),r.length>0&&o.getGroupProfileAdvance({groupIDList:r,responseFilter:{groupBaseInfoFilter:["Type","Name","FaceUrl"]}}).then((function(e){e.data.successGroupList.forEach((function(e){var n="GROUP".concat(e.groupID);if(t._conversationMap.has(n)){var r=t._conversationMap.get(n);Sc(r.groupProfile,e,[],[null,void 0,"",0,NaN]),!r.subType&&e.type&&(r.subType=e.type)}}))}))}}},{key:"_getConversationOptions",value:function(e){var t=this,n=[],r=e.filter((function(e){var t=e.lastMsg;return dc(t)})).filter((function(e){var t=e.type,n=e.userID;return 1===t&&"@TLS#NOT_FOUND"!==n&&"@TLS#ERROR"!==n||2===t})).map((function(e){if(1===e.type){var r={userID:e.userID,nick:e.peerNick,avatar:e.peerAvatar};return n.push(r),{conversationID:"C2C".concat(e.userID),type:"C2C",lastMessage:{lastTime:e.time,lastSequence:e.sequence,fromAccount:e.lastC2CMsgFromAccount,messageForShow:e.messageShow,type:e.lastMsg.elements[0]?e.lastMsg.elements[0].type:null,payload:e.lastMsg.elements[0]?e.lastMsg.elements[0].content:null,cloudCustomData:e.lastMsg.cloudCustomData||"",isRevoked:8===e.lastMessageFlag,onlineOnlyFlag:!1,nick:"",nameCard:""},userProfile:new Xm(r),peerReadTime:e.c2cPeerReadTime,isPinned:1===e.isPinned,messageRemindType:""}}return{conversationID:"GROUP".concat(e.groupID),type:"GROUP",lastMessage:Mn({lastTime:e.time,lastSequence:e.messageReadSeq+e.unreadCount,fromAccount:e.msgGroupFromAccount,messageForShow:e.messageShow},t._patchTypeAndPayload(e),{cloudCustomData:e.lastMsg.cloudCustomData||"",isRevoked:2===e.lastMessageFlag,onlineOnlyFlag:!1,nick:e.senderNick||"",nameCard:e.senderNameCard||""}),groupProfile:new tv({groupID:e.groupID,name:e.groupNick,avatar:e.groupImage}),unreadCount:e.unreadCount,peerReadTime:0,isPinned:1===e.isPinned,messageRemindType:""}}));return n.length>0&&this.getModule(il).onConversationsProfileUpdated(n),r}},{key:"_patchTypeAndPayload",value:function(e){var t=e.lastMsg,n=t.event,r=void 0===n?void 0:n,i=t.elements,o=void 0===i?[]:i,a=t.groupTips,s=void 0===a?{}:a;if(!fc(r)&&!Jc(s)){var c=new _m(s);c.setElement({type:Kn.MSG_GRP_TIP,content:Mn({},s.elements,{groupProfile:s.groupProfile})});var u=JSON.parse(JSON.stringify(c.payload));return c=null,{type:Kn.MSG_GRP_TIP,payload:u}}return{type:o[0]?o[0].type:null,payload:o[0]?o[0].content:null}}},{key:"getLocalMessageList",value:function(e){return this._messageListHandler.getLocalMessageList(e)}},{key:"deleteLocalMessage",value:function(e){e instanceof _m&&this._messageListHandler.remove(e)}},{key:"onConversationDeleted",value:function(e){var t=this;Zs.log("".concat(this._className,".onConversationDeleted")),hc(e)&&e.forEach((function(e){var n=e.type,r=e.userID,i=e.groupID,o="";1===n?o="".concat(Kn.CONV_C2C).concat(r):2===n&&(o="".concat(Kn.CONV_GROUP).concat(i)),t.deleteLocalConversation(o)}))}},{key:"onConversationPinned",value:function(e){var t=this;if(hc(e)){var n=!1;e.forEach((function(e){var r,i=e.type,o=e.userID,a=e.groupID;1===i?r=t.getLocalConversation("".concat(Kn.CONV_C2C).concat(o)):2===i&&(r=t.getLocalConversation("".concat(Kn.CONV_GROUP).concat(a))),r&&(Zs.log("".concat(t._className,".onConversationPinned conversationID:").concat(r.conversationID," isPinned:").concat(r.isPinned)),r.isPinned||(r.isPinned=!0,n=!0))})),n&&this._sortConversationListAndEmitEvent()}}},{key:"onConversationUnpinned",value:function(e){var t=this;if(hc(e)){var n=!1;e.forEach((function(e){var r,i=e.type,o=e.userID,a=e.groupID;1===i?r=t.getLocalConversation("".concat(Kn.CONV_C2C).concat(o)):2===i&&(r=t.getLocalConversation("".concat(Kn.CONV_GROUP).concat(a))),r&&(Zs.log("".concat(t._className,".onConversationUnpinned conversationID:").concat(r.conversationID," isPinned:").concat(r.isPinned)),r.isPinned&&(r.isPinned=!1,n=!0))})),n&&this._sortConversationListAndEmitEvent()}}},{key:"getMessageList",value:function(e){var t=this,n=e.conversationID,r=e.nextReqMessageID,i=e.count,o="".concat(this._className,".getMessageList"),a=this.getLocalConversation(n),s="";if(a&&a.groupProfile&&(s=a.groupProfile.type),Lc(s))return Zs.log("".concat(o," not available in avchatroom. conversationID:").concat(n)),Em({messageList:[],nextReqMessageID:"",isCompleted:!0});(fc(i)||i>15)&&(i=15);var c=this._computeLeftCount({conversationID:n,nextReqMessageID:r});return Zs.log("".concat(o," conversationID:").concat(n," leftCount:").concat(c," count:").concat(i," nextReqMessageID:").concat(r)),this._needGetHistory({conversationID:n,leftCount:c,count:i})?this.getHistoryMessages({conversationID:n,nextReqMessageID:r,count:20}).then((function(){return c=t._computeLeftCount({conversationID:n,nextReqMessageID:r}),bm(t._computeResult({conversationID:n,nextReqMessageID:r,count:i,leftCount:c}))})):(Zs.log("".concat(o,".getMessageList get message list from memory")),this.modifyMessageList(n),Em(this._computeResult({conversationID:n,nextReqMessageID:r,count:i,leftCount:c})))}},{key:"_computeLeftCount",value:function(e){var t=e.conversationID,n=e.nextReqMessageID;return n?this._messageListHandler.getLocalMessageList(t).findIndex((function(e){return e.ID===n})):this._getMessageListSize(t)}},{key:"_getMessageListSize",value:function(e){return this._messageListHandler.getLocalMessageList(e).length}},{key:"_needGetHistory",value:function(e){var t=e.conversationID,n=e.leftCount,r=e.count,i=this.getLocalConversation(t),o="";return i&&i.groupProfile&&(o=i.groupProfile.type),!Fc(t)&&!Lc(o)&&n<r&&!this._completedMap.has(t)}},{key:"_computeResult",value:function(e){var t=e.conversationID,n=e.nextReqMessageID,r=e.count,i=e.leftCount,o=this._computeMessageList({conversationID:t,nextReqMessageID:n,count:r}),a=this._computeIsCompleted({conversationID:t,leftCount:i,count:r}),s=this._computeNextReqMessageID({messageList:o,isCompleted:a,conversationID:t}),c="".concat(this._className,"._computeResult. conversationID:").concat(t);return Zs.log("".concat(c," leftCount:").concat(i," count:").concat(r," nextReqMessageID:").concat(s," isCompleted:").concat(a)),{messageList:o,nextReqMessageID:s,isCompleted:a}}},{key:"_computeMessageList",value:function(e){var t=e.conversationID,n=e.nextReqMessageID,r=e.count,i=this._messageListHandler.getLocalMessageList(t),o=this._computeIndexEnd({nextReqMessageID:n,messageList:i}),a=this._computeIndexStart({indexEnd:o,count:r});return i.slice(a,o)}},{key:"_computeNextReqMessageID",value:function(e){var t=e.messageList,n=e.isCompleted,r=e.conversationID;if(!n)return 0===t.length?"":t[0].ID;var i=this._messageListHandler.getLocalMessageList(r);return 0===i.length?"":i[0].ID}},{key:"_computeIndexEnd",value:function(e){var t=e.messageList,n=void 0===t?[]:t,r=e.nextReqMessageID;return r?n.findIndex((function(e){return e.ID===r})):n.length}},{key:"_computeIndexStart",value:function(e){var t=e.indexEnd,n=e.count;return t>n?t-n:0}},{key:"_computeIsCompleted",value:function(e){var t=e.conversationID;return!!(e.leftCount<=e.count&&this._completedMap.has(t))}},{key:"getHistoryMessages",value:function(e){var t=e.conversationID,n=e.nextReqMessageID;if(t===Kn.CONV_SYSTEM)return Em();e.count?e.count>20&&(e.count=20):e.count=15;var r=this._messageListHandler.getLocalOldestMessageByConversationID(t);r||((r={}).time=0,r.sequence=0,0===t.indexOf(Kn.CONV_C2C)?(r.to=t.replace(Kn.CONV_C2C,""),r.conversationType=Kn.CONV_C2C):0===t.indexOf(Kn.CONV_GROUP)&&(r.to=t.replace(Kn.CONV_GROUP,""),r.conversationType=Kn.CONV_GROUP));var i="",o=null,a=this._roamingMessageKeyAndTimeMap.has(t);switch(r.conversationType){case Kn.CONV_C2C:return i=t.replace(Kn.CONV_C2C,""),(o=this.getModule(ol))?o.getRoamingMessage({conversationID:e.conversationID,peerAccount:i,count:e.count,lastMessageTime:a?this._roamingMessageKeyAndTimeMap.get(t).lastMessageTime:0,messageKey:a?this._roamingMessageKeyAndTimeMap.get(t).messageKey:""}):Am({code:Yd.CANNOT_FIND_MODULE,message:Jd.CANNOT_FIND_MODULE});case Kn.CONV_GROUP:return(o=this.getModule(al))?o.getRoamingMessage({conversationID:e.conversationID,groupID:r.to,count:e.count,sequence:n&&!1===r._onlineOnlyFlag?r.sequence-1:r.sequence}):Am({code:Yd.CANNOT_FIND_MODULE,message:Jd.CANNOT_FIND_MODULE});default:return Em()}}},{key:"patchConversationLastMessage",value:function(e){var t=this.getLocalConversation(e);if(t){var n=t.lastMessage,r=n.messageForShow,i=n.payload;if(Jc(r)||Jc(i)){var o=this._messageListHandler.getLocalMessageList(e);if(0===o.length)return;var a=o[o.length-1];Zs.log("".concat(this._className,".patchConversationLastMessage conversationID:").concat(e," payload:"),a.payload),t.updateLastMessage(a)}}}},{key:"storeRoamingMessage",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=t.startsWith(Kn.CONV_C2C)?Kn.CONV_C2C:Kn.CONV_GROUP,r=null,i=[],o=0,a=e.length,s=null,c=n===Kn.CONV_GROUP,u=this.getModule(pl),l=function(){o=c?e.length-1:0,a=c?0:e.length},d=function(){c?--o:++o},h=function(){return c?o>=a:o<a};for(l();h();d())if(c&&1===e[o].sequence&&this.setCompleted(t),1!==e[o].isPlaceMessage)if((r=new _m(e[o])).to=e[o].to,r.isSystemMessage=!!e[o].isSystemMessage,r.conversationType=n,4===e[o].event?s={type:Kn.MSG_GRP_TIP,content:Mn({},e[o].elements,{groupProfile:e[o].groupProfile})}:(e[o].elements=u.parseElements(e[o].elements,e[o].from),s=e[o].elements),c||r.setNickAndAvatar({nick:e[o].nick,avatar:e[o].avatar}),Jc(s)){var f=new dh(Gh);f.setMessage("from:".concat(r.from," to:").concat(r.to," sequence:").concat(r.sequence," event:").concat(e[o].event)),f.setNetworkType(this.getNetworkType()).setLevel("warning").end()}else r.setElement(s),r.reInitialize(this.getMyUserID()),i.push(r);return this._messageListHandler.unshift(i),l=d=h=null,i}},{key:"findMessage",value:function(e){return this._messageListHandler.findMessage(e)}},{key:"setMessageRead",value:function(e){var t=e.conversationID,n=(e.messageID,this.getLocalConversation(t));if(Zs.log("".concat(this._className,".setMessageRead conversationID:").concat(t," unreadCount:").concat(n?n.unreadCount:0)),!n)return Em();if(n.type!==Kn.CONV_GROUP||Jc(n.groupAtInfoList)||this.deleteGroupAtTips(t),0===n.unreadCount)return Em();var r=this._messageListHandler.getLocalLastMessage(t),i=n.lastMessage.lastTime;r&&i<r.time&&(i=r.time);var o=n.lastMessage.lastSequence;r&&o<r.sequence&&(o=r.sequence);var a=null;switch(n.type){case Kn.CONV_C2C:return(a=this.getModule(ol))?a.setMessageRead({conversationID:t,lastMessageTime:i}):Am({code:Yd.CANNOT_FIND_MODULE,message:Jd.CANNOT_FIND_MODULE});case Kn.CONV_GROUP:return(a=this._moduleManager.getModule(al))?a.setMessageRead({conversationID:t,lastMessageSeq:o}):Am({code:Yd.CANNOT_FIND_MODULE,message:Jd.CANNOT_FIND_MODULE});case Kn.CONV_SYSTEM:return n.unreadCount=0,this.emitConversationUpdate(!0,!1),Em();default:return Em()}}},{key:"setAllMessageRead",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n="".concat(this._className,".setAllMessageRead");t.scope||(t.scope=Kn.READ_ALL_MSG),Zs.log("".concat(n," options:"),t);var r=this._createSetAllMessageReadPack(t);if(0===r.readAllC2CMessage&&0===r.groupMessageReadInfoList.length)return Em();var i=new dh(Xh);return this.request({protocolName:hd,requestData:r}).then((function(n){var r=n.data,o=e._handleAllMessageRead(r);return i.setMessage("scope:".concat(t.scope," failureGroups:").concat(JSON.stringify(o))).setNetworkType(e.getNetworkType()).end(),Em()})).catch((function(t){return e.probeNetwork().then((function(e){var n=Un(e,2),r=n[0],o=n[1];i.setError(t,r,o).end()})),Zs.warn("".concat(n," failed. error:"),t),Am({code:t&&t.code?t.code:Yd.MESSAGE_UNREAD_ALL_FAIL,message:t&&t.message?t.message:Jd.MESSAGE_UNREAD_ALL_FAIL})}))}},{key:"_getConversationLastMessageSequence",value:function(e){var t=this._messageListHandler.getLocalLastMessage(e.conversationID),n=e.lastMessage.lastSequence;return t&&n<t.sequence&&(n=t.sequence),n}},{key:"_getConversationLastMessageTime",value:function(e){var t=this._messageListHandler.getLocalLastMessage(e.conversationID),n=e.lastMessage.lastTime;return t&&n<t.time&&(n=t.time),n}},{key:"_createSetAllMessageReadPack",value:function(e){var t,n={readAllC2CMessage:0,groupMessageReadInfoList:[]},r=e.scope,i=Hn(this._conversationMap);try{for(i.s();!(t=i.n()).done;){var o=Un(t.value,2)[1];if(o.unreadCount>0)if(o.type===Kn.CONV_C2C&&0===n.readAllC2CMessage){if(r===Kn.READ_ALL_MSG)n.readAllC2CMessage=1;else if(r===Kn.READ_ALL_C2C_MSG){n.readAllC2CMessage=1;break}}else if(o.type===Kn.CONV_GROUP&&(r===Kn.READ_ALL_GROUP_MSG||r===Kn.READ_ALL_MSG)){var a=this._getConversationLastMessageSequence(o);n.groupMessageReadInfoList.push({groupID:o.groupProfile.groupID,messageSequence:a})}}}catch(c){i.e(c)}finally{i.f()}return n}},{key:"onPushedAllMessageRead",value:function(e){this._handleAllMessageRead(e)}},{key:"_handleAllMessageRead",value:function(e){var t=e.groupMessageReadInfoList,n=e.readAllC2CMessage,r=this._parseGroupReadInfo(t);return this._updateAllConversationUnreadCount({readAllC2CMessage:n})>=1&&this.emitConversationUpdate(!0,!1),r}},{key:"_parseGroupReadInfo",value:function(e){var t=[];if(e&&e.length)for(var n=0,r=e.length;n<r;n++){var i=e[n],o=i.groupID,a=i.sequence,s=i.retCode,c=i.lastMessageSeq;fc(s)?this._remoteGroupReadSequenceMap.set(o,c):(this._remoteGroupReadSequenceMap.set(o,a),0!==s&&t.push("".concat(o,"-").concat(a,"-").concat(s)))}return t}},{key:"_updateAllConversationUnreadCount",value:function(e){var t,n=e.readAllC2CMessage,r=0,i=Hn(this._conversationMap);try{for(i.s();!(t=i.n()).done;){var o=Un(t.value,2),a=o[0],s=o[1];if(s.unreadCount>=1){if(1===n&&s.type===Kn.CONV_C2C){var c=this._getConversationLastMessageTime(s);this.updateIsReadAfterReadReport({conversationID:a,lastMessageTime:c})}else if(s.type===Kn.CONV_GROUP){var u=a.replace(Kn.CONV_GROUP,"");if(this._remoteGroupReadSequenceMap.has(u)){var l=this._remoteGroupReadSequenceMap.get(u),d=this._getConversationLastMessageSequence(s);this.updateIsReadAfterReadReport({conversationID:a,remoteReadSequence:l}),d>=l&&this._remoteGroupReadSequenceMap.delete(u)}}this.updateUnreadCount(a,!1)&&(r+=1)}}}catch(f){i.e(f)}finally{i.f()}return r}},{key:"isRemoteRead",value:function(e){var t=e.conversationID,n=e.sequence,r=t.replace(Kn.CONV_GROUP,""),i=!1;if(this._remoteGroupReadSequenceMap.has(r)){var o=this._remoteGroupReadSequenceMap.get(r);n<=o&&(i=!0,Zs.log("".concat(this._className,".isRemoteRead conversationID:").concat(t," messageSequence:").concat(n," remoteReadSequence:").concat(o))),n>=o+10&&this._remoteGroupReadSequenceMap.delete(r)}return i}},{key:"updateIsReadAfterReadReport",value:function(e){var t=e.conversationID,n=e.lastMessageSeq,r=e.lastMessageTime,i=this._messageListHandler.getLocalMessageList(t);if(0!==i.length)for(var o,a=i.length-1;a>=0;a--)if(o=i[a],!(r&&o.time>r||n&&o.sequence>n)){if("in"===o.flow&&o.isRead)break;o.setIsRead(!0)}}},{key:"updateUnreadCount",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!1,r=this.getLocalConversation(e),i=this._messageListHandler.getLocalMessageList(e);if(r){var o=r.unreadCount,a=i.filter((function(e){return!e.isRead&&!e._onlineOnlyFlag&&!e.isDeleted})).length;return o!==a&&(r.unreadCount=a,n=!0,Zs.log("".concat(this._className,".updateUnreadCount from ").concat(o," to ").concat(a,", conversationID:").concat(e)),!0===t&&this.emitConversationUpdate(!0,!1)),n}}},{key:"updateReadReceiptInfo",value:function(e,t){var n=this;if(!Jc(t)){var r=[],i="".concat(Kn.CONV_GROUP).concat(e);t.forEach((function(t){var o=t.tinyID,a=t.clientTime,s=t.random,c=t.readCount,u=t.unreadCount,l="".concat(o,"-").concat(a,"-").concat(s),d=n._messageListHandler.getLocalMessage(i,l),h={groupID:e,messageID:l,readCount:0,unreadCount:0};d&&(cc(c)&&(d.readReceiptInfo.readCount=c,h.readCount=c),cc(u)&&(d.readReceiptInfo.unreadCount=u,h.unreadCount=u),r.push(h))})),r.length>0&&this.emitOuterEvent($n.MESSAGE_READ_RECEIPT_RECEIVED,r)}}},{key:"recomputeGroupUnreadCount",value:function(e){var t=e.conversationID,n=e.count,r=this.getLocalConversation(t);if(r){var i=r.unreadCount,o=i-n;o<0&&(o=0),r.unreadCount=o,Zs.log("".concat(this._className,".recomputeGroupUnreadCount from ").concat(i," to ").concat(o,", conversationID:").concat(t))}}},{key:"updateIsRead",value:function(e){var t=this.getLocalConversation(e),n=this.getLocalMessageList(e);if(t&&0!==n.length&&!Fc(t.type)){for(var r=[],i=0,o=n.length;i<o;i++)"in"!==n[i].flow?"out"!==n[i].flow||n[i].isRead||n[i].setIsRead(!0):r.push(n[i]);var a=0;if(t.type===Kn.CONV_C2C){var s=r.slice(-t.unreadCount).filter((function(e){return e.isRevoked})).length;a=r.length-t.unreadCount-s}else a=r.length-t.unreadCount;for(var c=0;c<a&&!r[c].isRead;c++)r[c].setIsRead(!0)}}},{key:"deleteGroupAtTips",value:function(e){var t="".concat(this._className,".deleteGroupAtTips");Zs.log("".concat(t));var n=this._conversationMap.get(e);if(!n)return Promise.resolve();var r=n.groupAtInfoList;if(0===r.length)return Promise.resolve();var i=this.getMyUserID();return this.request({protocolName:Xl,requestData:{messageListToDelete:r.map((function(e){return{from:e.from,to:i,messageSeq:e.__sequence,messageRandom:e.__random,groupID:e.groupID}}))}}).then((function(){return Zs.log("".concat(t," ok. count:").concat(r.length)),n.clearGroupAtInfoList(),Promise.resolve()})).catch((function(e){return Zs.error("".concat(t," failed. error:"),e),Am(e)}))}},{key:"appendToMessageList",value:function(e){this._messageListHandler.pushIn(e)}},{key:"setMessageRandom",value:function(e){this.singlyLinkedList.set(e.random)}},{key:"deleteMessageRandom",value:function(e){this.singlyLinkedList.delete(e.random)}},{key:"pushIntoMessageList",value:function(e,t,n){return!(!this._messageListHandler.pushIn(t,n)||this._isMessageFromCurrentInstance(t)&&!n)&&(e.push(t),!0)}},{key:"_isMessageFromCurrentInstance",value:function(e){return this.singlyLinkedList.has(e.random)}},{key:"revoke",value:function(e,t,n){return this._messageListHandler.revoke(e,t,n)}},{key:"getPeerReadTime",value:function(e){return this._peerReadTimeMap.get(e)}},{key:"recordPeerReadTime",value:function(e,t){this._peerReadTimeMap.has(e)?this._peerReadTimeMap.get(e)<t&&this._peerReadTimeMap.set(e,t):this._peerReadTimeMap.set(e,t)}},{key:"updateMessageIsPeerReadProperty",value:function(e,t){if(e.startsWith(Kn.CONV_C2C)&&t>0){var n=this._messageListHandler.updateMessageIsPeerReadProperty(e,t);n.length>0&&this.emitOuterEvent($n.MESSAGE_READ_BY_PEER,n)}}},{key:"updateMessageIsModifiedProperty",value:function(e){this._messageListHandler.updateMessageIsModifiedProperty(e)}},{key:"setCompleted",value:function(e){Zs.log("".concat(this._className,".setCompleted. conversationID:").concat(e)),this._completedMap.set(e,!0)}},{key:"updateRoamingMessageKeyAndTime",value:function(e,t,n){this._roamingMessageKeyAndTimeMap.set(e,{messageKey:t,lastMessageTime:n})}},{key:"getConversationList",value:function(e){var t=this,n="".concat(this._className,".getConversationList"),r="pagingStatus:".concat(this._pagingStatus,", local conversation count:").concat(this._conversationMap.size,", options:").concat(e);if(Zs.log("".concat(n,". ").concat(r)),this._pagingStatus===Gu.REJECTED){var i=new dh(Wh);return i.setMessage(r),this._syncConversationList().then((function(){i.setNetworkType(t.getNetworkType()).end();var n=t._getConversationList(e);return bm({conversationList:n})})).catch((function(e){return t.probeNetwork().then((function(t){var n=Un(t,2),r=n[0],o=n[1];i.setError(e,r,o).end()})),Zs.error("".concat(n," failed. error:"),e),Am(e)}))}if(0===this._conversationMap.size){var o=new dh(Wh);return o.setMessage(r),this._syncConversationList().then((function(){o.setNetworkType(t.getNetworkType()).end();var n=t._getConversationList(e);return bm({conversationList:n})})).catch((function(e){return t.probeNetwork().then((function(t){var n=Un(t,2),r=n[0],i=n[1];o.setError(e,r,i).end()})),Zs.error("".concat(n," failed. error:"),e),Am(e)}))}var a=this._getConversationList(e);return Zs.log("".concat(n,". returned conversation count:").concat(a.length)),Em({conversationList:a})}},{key:"_getConversationList",value:function(e){var t=this;if(fc(e))return this.getLocalConversationList();if(hc(e)){var n=[];return e.forEach((function(e){if(t._conversationMap.has(e)){var r=t.getLocalConversation(e);n.push(r)}})),n}}},{key:"_handleC2CPeerReadTime",value:function(){var e,t=Hn(this._conversationMap);try{for(t.s();!(e=t.n()).done;){var n=Un(e.value,2),r=n[0],i=n[1];i.type===Kn.CONV_C2C&&(Zs.debug("".concat(this._className,"._handleC2CPeerReadTime conversationID:").concat(r," peerReadTime:").concat(i.peerReadTime)),this.recordPeerReadTime(r,i.peerReadTime))}}catch(a){t.e(a)}finally{t.f()}}},{key:"getConversationProfile",value:function(e){var t,n=this;if((t=this._conversationMap.has(e)?this._conversationMap.get(e):new iv({conversationID:e,type:e.slice(0,3)===Kn.CONV_C2C?Kn.CONV_C2C:Kn.CONV_GROUP}))._isInfoCompleted||t.type===Kn.CONV_SYSTEM)return Em({conversation:t});var r=new dh(qh),i="".concat(this._className,".getConversationProfile");return Zs.log("".concat(i,". conversationID:").concat(e," remark:").concat(t.remark," lastMessage:"),t.lastMessage),this._updateUserOrGroupProfileCompletely(t).then((function(o){r.setNetworkType(n.getNetworkType()).setMessage("conversationID:".concat(e," unreadCount:").concat(o.data.conversation.unreadCount)).end();var a=n.getModule(sl);if(a&&t.type===Kn.CONV_C2C){var s=e.replace(Kn.CONV_C2C,"");if(a.isMyFriend(s)){var c=a.getFriendRemark(s);t.remark!==c&&(t.remark=c,Zs.log("".concat(i,". conversationID:").concat(e," patch remark:").concat(t.remark)))}}return Zs.log("".concat(i," ok. conversationID:").concat(e)),o})).catch((function(t){return n.probeNetwork().then((function(n){var i=Un(n,2),o=i[0],a=i[1];r.setError(t,o,a).setMessage("conversationID:".concat(e)).end()})),Zs.error("".concat(i," failed. error:"),t),Am(t)}))}},{key:"_updateUserOrGroupProfileCompletely",value:function(e){var t=this;return e.type===Kn.CONV_C2C?this.getModule(il).getUserProfile({userIDList:[e.toAccount]}).then((function(n){var r=n.data;return 0===r.length?Am(new Mm({code:Yd.USER_OR_GROUP_NOT_FOUND,message:Jd.USER_OR_GROUP_NOT_FOUND})):(e.userProfile=r[0],e._isInfoCompleted=!0,t._unshiftConversation(e),Em({conversation:e}))})):this.getModule(al).getGroupProfile({groupID:e.toAccount}).then((function(n){return e.groupProfile=n.data.group,e._isInfoCompleted=!0,t._unshiftConversation(e),Em({conversation:e})}))}},{key:"_unshiftConversation",value:function(e){e instanceof iv&&!this._conversationMap.has(e.conversationID)&&(this._conversationMap=new Map([[e.conversationID,e]].concat(Fn(this._conversationMap))),this._setStorageConversationList(),this.emitConversationUpdate(!0,!1))}},{key:"_onProfileUpdated",value:function(e){var t=this;e.data.forEach((function(e){var n=e.userID;if(n===t.getMyUserID())t._onMyProfileModified({latestNick:e.nick,latestAvatar:e.avatar});else{var r=t._conversationMap.get("".concat(Kn.CONV_C2C).concat(n));r&&(r.userProfile=e)}}))}},{key:"deleteConversation",value:function(e){var t=this,n={fromAccount:this.getMyUserID(),toAccount:void 0,type:void 0};if(!this._conversationMap.has(e)){var r=new Mm({code:Yd.CONVERSATION_NOT_FOUND,message:Jd.CONVERSATION_NOT_FOUND});return Am(r)}switch(this._conversationMap.get(e).type){case Kn.CONV_C2C:n.type=1,n.toAccount=e.replace(Kn.CONV_C2C,"");break;case Kn.CONV_GROUP:n.type=2,n.toGroupID=e.replace(Kn.CONV_GROUP,"");break;case Kn.CONV_SYSTEM:return this.getModule(al).deleteGroupSystemNotice({messageList:this._messageListHandler.getLocalMessageList(e)}),this.deleteLocalConversation(e),Em({conversationID:e});default:var i=new Mm({code:Yd.CONVERSATION_UN_RECORDED_TYPE,message:Jd.CONVERSATION_UN_RECORDED_TYPE});return Am(i)}var o=new dh($h);o.setMessage("conversationID:".concat(e));var a="".concat(this._className,".deleteConversation");return Zs.log("".concat(a,". conversationID:").concat(e)),this.setMessageRead({conversationID:e}).then((function(){return t.request({protocolName:Yl,requestData:n})})).then((function(){return o.setNetworkType(t.getNetworkType()).end(),Zs.log("".concat(a," ok")),t.deleteLocalConversation(e),Em({conversationID:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=Un(t,2),r=n[0],i=n[1];o.setError(e,r,i).end()})),Zs.error("".concat(a," failed. error:"),e),Am(e)}))}},{key:"pinConversation",value:function(e){var t=this,n=e.conversationID,r=e.isPinned;if(!this._conversationMap.has(n))return Am({code:Yd.CONVERSATION_NOT_FOUND,message:Jd.CONVERSATION_NOT_FOUND});var i=this.getLocalConversation(n);if(i.isPinned===r)return Em({conversationID:n});var o=new dh(Kh);o.setMessage("conversationID:".concat(n," isPinned:").concat(r));var a="".concat(this._className,".pinConversation");Zs.log("".concat(a,". conversationID:").concat(n," isPinned:").concat(r));var s=null;return Nc(n)?s={type:1,toAccount:n.replace(Kn.CONV_C2C,"")}:Uc(n)&&(s={type:2,groupID:n.replace(Kn.CONV_GROUP,"")}),this.request({protocolName:Jl,requestData:{fromAccount:this.getMyUserID(),operationType:!0===r?1:2,itemList:[s]}}).then((function(){return o.setNetworkType(t.getNetworkType()).end(),Zs.log("".concat(a," ok")),i.isPinned!==r&&(i.isPinned=r,t._sortConversationListAndEmitEvent()),bm({conversationID:n})})).catch((function(e){return t.probeNetwork().then((function(t){var n=Un(t,2),r=n[0],i=n[1];o.setError(e,r,i).end()})),Zs.error("".concat(a," failed. error:"),e),Am(e)}))}},{key:"setMessageRemindType",value:function(e){return this._messageRemindHandler.set(e)}},{key:"patchMessageRemindType",value:function(e){var t=e.ID,n=e.isC2CConversation,r=e.messageRemindType,i=!1,o=this.getLocalConversation(n?"".concat(Kn.CONV_C2C).concat(t):"".concat(Kn.CONV_GROUP).concat(t));return o&&o.messageRemindType!==r&&(o.messageRemindType=r,i=!0),i}},{key:"onC2CMessageRemindTypeSynced",value:function(e){var t=this;Zs.debug("".concat(this._className,".onC2CMessageRemindTypeSynced options:"),e),e.dataList.forEach((function(e){if(!Jc(e.muteNotificationsSync)){var n,r=e.muteNotificationsSync,i=r.to,o=r.updateSequence,a=r.muteFlag;t._messageRemindHandler.setUpdateSequence(o),0===a?n=Kn.MSG_REMIND_ACPT_AND_NOTE:1===a?n=Kn.MSG_REMIND_DISCARD:2===a&&(n=Kn.MSG_REMIND_ACPT_NOT_NOTE);var s=0;t.patchMessageRemindType({ID:i,isC2CConversation:!0,messageRemindType:n})&&(s+=1),Zs.log("".concat(t._className,".onC2CMessageRemindTypeSynced updateCount:").concat(s)),s>=1&&t.emitConversationUpdate(!0,!1)}}))}},{key:"deleteLocalConversation",value:function(e){var t=this._conversationMap.has(e);Zs.log("".concat(this._className,".deleteLocalConversation conversationID:").concat(e," has:").concat(t)),t&&(this._conversationMap.delete(e),this._roamingMessageKeyAndTimeMap.delete(e),this._setStorageConversationList(),this._messageListHandler.removeByConversationID(e),this._completedMap.delete(e),this.emitConversationUpdate(!0,!1))}},{key:"isMessageSentByCurrentInstance",value:function(e){return!(!this._messageListHandler.hasLocalMessage(e.conversationID,e.ID)&&!this.singlyLinkedList.has(e.random))}},{key:"modifyMessageList",value:function(e){if(e.startsWith(Kn.CONV_C2C)&&this._conversationMap.has(e)){var t=this._conversationMap.get(e),n=Date.now();this._messageListHandler.modifyMessageSentByPeer({conversationID:e,latestNick:t.userProfile.nick,latestAvatar:t.userProfile.avatar});var r=this.getModule(il).getNickAndAvatarByUserID(this.getMyUserID());this._messageListHandler.modifyMessageSentByMe({conversationID:e,latestNick:r.nick,latestAvatar:r.avatar}),Zs.log("".concat(this._className,".modifyMessageList conversationID:").concat(e," cost ").concat(Date.now()-n," ms"))}}},{key:"updateUserProfileSpecifiedKey",value:function(e){Zs.log("".concat(this._className,".updateUserProfileSpecifiedKey options:"),e);var t=e.conversationID,n=e.nick,r=e.avatar;if(this._conversationMap.has(t)){var i=this._conversationMap.get(t).userProfile;uc(n)&&i.nick!==n&&(i.nick=n),uc(r)&&i.avatar!==r&&(i.avatar=r),this.emitConversationUpdate(!0,!1)}}},{key:"_onMyProfileModified",value:function(e){var t=this,n=this.getLocalConversationList(),r=Date.now();n.forEach((function(n){t.modifyMessageSentByMe(Mn({conversationID:n.conversationID},e))})),Zs.log("".concat(this._className,"._onMyProfileModified. modify all messages sent by me, cost ").concat(Date.now()-r," ms"))}},{key:"modifyMessageSentByMe",value:function(e){this._messageListHandler.modifyMessageSentByMe(e)}},{key:"getLatestMessageSentByMe",value:function(e){return this._messageListHandler.getLatestMessageSentByMe(e)}},{key:"modifyMessageSentByPeer",value:function(e){this._messageListHandler.modifyMessageSentByPeer(e)}},{key:"getLatestMessageSentByPeer",value:function(e){return this._messageListHandler.getLatestMessageSentByPeer(e)}},{key:"pushIntoNoticeResult",value:function(e,t){return!(!this._messageListHandler.pushIn(t)||this.singlyLinkedList.has(t.random))&&(e.push(t),!0)}},{key:"getGroupLocalLastMessageSequence",value:function(e){return this._messageListHandler.getGroupLocalLastMessageSequence(e)}},{key:"checkAndPatchRemark",value:function(){var e=Promise.resolve();if(0===this._conversationMap.size)return e;var t=this.getModule(sl);if(!t)return e;var n=Fn(this._conversationMap.values()).filter((function(e){return e.type===Kn.CONV_C2C}));if(0===n.length)return e;var r=0;return n.forEach((function(e){var n=e.conversationID.replace(Kn.CONV_C2C,"");if(t.isMyFriend(n)){var i=t.getFriendRemark(n);e.remark!==i&&(e.remark=i,r+=1)}})),Zs.log("".concat(this._className,".checkAndPatchRemark. c2c conversation count:").concat(n.length,", patched count:").concat(r)),e}},{key:"reset",value:function(){Zs.log("".concat(this._className,".reset")),this._pagingStatus=Gu.NOT_START,this._messageListHandler.reset(),this._messageRemindHandler.reset(),this._roamingMessageKeyAndTimeMap.clear(),this.singlyLinkedList.reset(),this._peerReadTimeMap.clear(),this._completedMap.clear(),this._conversationMap.clear(),this._pagingTimeStamp=0,this._pagingStartIndex=0,this._pagingPinnedTimeStamp=0,this._pagingPinnedStartIndex=0,this._remoteGroupReadSequenceMap.clear(),this.resetReady()}}]),n}(Ml),sv=function(){function e(t){Sn(this,e),this._groupModule=t,this._className="GroupTipsHandler",this._cachedGroupTipsMap=new Map,this._checkCountMap=new Map,this.MAX_CHECK_COUNT=4}return wn(e,[{key:"onCheckTimer",value:function(e){e%1==0&&this._cachedGroupTipsMap.size>0&&this._checkCachedGroupTips()}},{key:"_checkCachedGroupTips",value:function(){var e=this;this._cachedGroupTipsMap.forEach((function(t,n){var r=e._checkCountMap.get(n),i=e._groupModule.hasLocalGroup(n);Zs.log("".concat(e._className,"._checkCachedGroupTips groupID:").concat(n," hasLocalGroup:").concat(i," checkCount:").concat(r)),i?(e._notifyCachedGroupTips(n),e._checkCountMap.delete(n),e._groupModule.deleteUnjoinedAVChatRoom(n)):r>=e.MAX_CHECK_COUNT?(e._deleteCachedGroupTips(n),e._checkCountMap.delete(n)):(r++,e._checkCountMap.set(n,r))}))}},{key:"onNewGroupTips",value:function(e){Zs.debug("".concat(this._className,".onReceiveGroupTips count:").concat(e.dataList.length));var t=this.newGroupTipsStoredAndSummary(e),n=t.eventDataList,r=t.result,i=t.AVChatRoomMessageList;i.length>0&&this._groupModule.onAVChatRoomMessage(i),n.length>0&&(this._groupModule.getModule(ul).onNewMessage({conversationOptionsList:n,isInstantMessage:!0}),this._groupModule.updateNextMessageSeq(n)),r.length>0&&(this._groupModule.emitOuterEvent($n.MESSAGE_RECEIVED,r),this.handleMessageList(r))}},{key:"newGroupTipsStoredAndSummary",value:function(e){for(var t=e.event,n=e.dataList,r=null,i=[],o=[],a={},s=[],c=0,u=n.length;c<u;c++){var l=n[c],d=l.groupProfile.groupID,h=this._groupModule.hasLocalGroup(d);if(h||!this._groupModule.isUnjoinedAVChatRoom(d))if(h)if(this._groupModule.isMessageFromOrToAVChatroom(d)){var f=Dc(l);f.event=t,s.push(f)}else{l.currentUser=this._groupModule.getMyUserID(),l.conversationType=Kn.CONV_GROUP,(r=new _m(l)).setElement({type:Kn.MSG_GRP_TIP,content:Mn({},l.elements,{groupProfile:l.groupProfile})}),r.isSystemMessage=!1;var p=this._groupModule.getModule(ul),g=r,m=g.conversationID,v=g.sequence;if(6===t)r._onlineOnlyFlag=!0,o.push(r);else if(!p.pushIntoNoticeResult(o,r))continue;if(6!==t||!p.getLocalConversation(m)){6!==t&&this._groupModule.getModule(Il).addMessageSequence({key:ih,message:r});var y=p.isRemoteRead({conversationID:m,sequence:v});if(fc(a[m]))a[m]=i.push({conversationID:m,unreadCount:"in"!==r.flow||r._onlineOnlyFlag||y?0:1,type:r.conversationType,subType:r.conversationSubType,lastMessage:r})-1;else{var _=a[m];i[_].type=r.conversationType,i[_].subType=r.conversationSubType,i[_].lastMessage=r,"in"!==r.flow||r._onlineOnlyFlag||y||i[_].unreadCount++}}}else this._cacheGroupTipsAndProbe({groupID:d,event:t,item:l})}return{eventDataList:i,result:o,AVChatRoomMessageList:s}}},{key:"handleMessageList",value:function(e){var t=this;e.forEach((function(e){switch(e.payload.operationType){case 1:t._onNewMemberComeIn(e);break;case 2:t._onMemberQuit(e);break;case 3:t._onMemberKickedOut(e);break;case 4:t._onMemberSetAdmin(e);break;case 5:t._onMemberCancelledAdmin(e);break;case 6:t._onGroupProfileModified(e);break;case 7:t._onMemberInfoModified(e);break;default:Zs.warn("".concat(t._className,".handleMessageList unknown operationType:").concat(e.payload.operationType))}}))}},{key:"_onNewMemberComeIn",value:function(e){var t=e.payload,n=t.memberNum,r=t.groupProfile.groupID,i=this._groupModule.getLocalGroupProfile(r);i&&cc(n)&&i.memberCount!==n&&(i.memberCount=n,this._updateConversationGroupProfile(i))}},{key:"_onMemberQuit",value:function(e){var t=e.payload,n=t.memberNum,r=t.groupProfile.groupID,i=this._groupModule.getLocalGroupProfile(r);i&&cc(n)&&i.memberCount!==n&&(i.memberCount=n,this._updateConversationGroupProfile(i)),this._groupModule.getModule(cl).deleteLocalGroupMembers(r,e.payload.userIDList)}},{key:"_onMemberKickedOut",value:function(e){var t=e.payload,n=t.memberNum,r=t.groupProfile.groupID,i=this._groupModule.getLocalGroupProfile(r);i&&cc(n)&&i.memberCount!==n&&(i.memberCount=n,this._updateConversationGroupProfile(i)),this._groupModule.getModule(cl).deleteLocalGroupMembers(r,e.payload.userIDList)}},{key:"_updateConversationGroupProfile",value:function(e){this._groupModule.getModule(ul).updateConversationGroupProfile([e])}},{key:"_onMemberSetAdmin",value:function(e){var t=e.payload.groupProfile.groupID,n=e.payload.userIDList,r=this._groupModule.getModule(cl);n.forEach((function(e){var n=r.getLocalGroupMemberInfo(t,e);n&&n.updateRole(Kn.GRP_MBR_ROLE_ADMIN)}))}},{key:"_onMemberCancelledAdmin",value:function(e){var t=e.payload.groupProfile.groupID,n=e.payload.userIDList,r=this._groupModule.getModule(cl);n.forEach((function(e){var n=r.getLocalGroupMemberInfo(t,e);n&&n.updateRole(Kn.GRP_MBR_ROLE_MEMBER)}))}},{key:"_onGroupProfileModified",value:function(e){var t=this,n=e.payload,r=n.newGroupProfile,i=n.groupProfile.groupID,o=this._groupModule.getLocalGroupProfile(i);Object.keys(r).forEach((function(e){switch(e){case"ownerID":t._ownerChanged(o,r);break;default:o[e]=r[e]}})),this._groupModule.emitGroupListUpdate(!0,!0)}},{key:"_ownerChanged",value:function(e,t){var n=e.groupID,r=this._groupModule.getLocalGroupProfile(n),i=this._groupModule.getMyUserID();if(i===t.ownerID){r.updateGroup({selfInfo:{role:Kn.GRP_MBR_ROLE_OWNER}});var o=this._groupModule.getModule(cl),a=o.getLocalGroupMemberInfo(n,i),s=this._groupModule.getLocalGroupProfile(n).ownerID,c=o.getLocalGroupMemberInfo(n,s);a&&a.updateRole(Kn.GRP_MBR_ROLE_OWNER),c&&c.updateRole(Kn.GRP_MBR_ROLE_MEMBER)}}},{key:"_onMemberInfoModified",value:function(e){var t=e.payload.groupProfile.groupID,n=this._groupModule.getModule(cl);e.payload.memberList.forEach((function(e){var r=n.getLocalGroupMemberInfo(t,e.userID);r&&cc(e.muteTime)&&r.updateMuteUntil(e.muteTime)}))}},{key:"_cacheGroupTips",value:function(e,t){this._cachedGroupTipsMap.has(e)||this._cachedGroupTipsMap.set(e,[]),this._cachedGroupTipsMap.get(e).push(t)}},{key:"_deleteCachedGroupTips",value:function(e){this._cachedGroupTipsMap.has(e)&&this._cachedGroupTipsMap.delete(e)}},{key:"_notifyCachedGroupTips",value:function(e){var t=this,n=this._cachedGroupTipsMap.get(e)||[];n.forEach((function(e){t.onNewGroupTips(e)})),this._deleteCachedGroupTips(e),Zs.log("".concat(this._className,"._notifyCachedGroupTips groupID:").concat(e," count:").concat(n.length))}},{key:"_cacheGroupTipsAndProbe",value:function(e){var t=this,n=e.groupID,r=e.event,i=e.item;this._cacheGroupTips(n,{event:r,dataList:[i]}),this._groupModule.getGroupSimplifiedInfo(n).then((function(e){e.type===Kn.GRP_AVCHATROOM?t._groupModule.hasLocalGroup(n)?t._notifyCachedGroupTips(n):t._groupModule.setUnjoinedAVChatRoom(n):(t._groupModule.updateGroupMap([e]),t._notifyCachedGroupTips(n))})),this._checkCountMap.has(n)||this._checkCountMap.set(n,0),Zs.log("".concat(this._className,"._cacheGroupTipsAndProbe groupID:").concat(n))}},{key:"reset",value:function(){this._cachedGroupTipsMap.clear(),this._checkCountMap.clear()}}]),e}(),cv=[].push,uv=Math.min,lv=!o((function(){return!RegExp(4294967295,"y")}));_a("split",2,(function(e,t,n){var r;return r="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 r=String(g(this)),i=void 0===n?4294967295:n>>>0;if(0===i)return[];if(void 0===e)return[r];if(!ua(e))return t.call(r,e,i);for(var o,a,s,c=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),l=0,d=new RegExp(e.source,u+"g");(o=na.call(d,r))&&!((a=d.lastIndex)>l&&(c.push(r.slice(l,o.index)),o.length>1&&o.index<r.length&&cv.apply(c,o.slice(1)),s=o[0].length,l=a,c.length>=i));)d.lastIndex===o.index&&d.lastIndex++;return l===r.length?!s&&d.test("")||c.push(""):c.push(r.slice(l)),c.length>i?c.slice(0,i):c}:"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 i=g(this),o=null==t?void 0:t[e];return void 0!==o?o.call(t,i,n):r.call(String(i),t,n)},function(e,i){var o=n(r,e,this,i,r!==t);if(o.done)return o.value;var a=T(e),s=String(this),c=Oi(a,RegExp),u=a.unicode,l=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(lv?"y":"g"),d=new c(lv?a:"^(?:"+a.source+")",l),h=void 0===i?4294967295:i>>>0;if(0===h)return[];if(0===s.length)return null===xa(d,s)?[s]:[];for(var f=0,p=0,g=[];p<s.length;){d.lastIndex=lv?p:0;var m,v=xa(d,lv?s:s.slice(p));if(null===v||(m=uv(ce(d.lastIndex+(lv?0:p)),s.length))===f)p=Sa(s,p,u);else{if(g.push(s.slice(f,p)),g.length===h)return g;for(var y=1;y<=v.length-1;y++)if(g.push(v[y]),g.length===h)return g;p=f=m}}return g.push(s.slice(f)),g}]}),!lv);var dv=function(){function e(t){Sn(this,e),this._groupModule=t,this._className="CommonGroupHandler",this.tempConversationList=null,this._cachedGroupMessageMap=new Map,this._checkCountMap=new Map,this.MAX_CHECK_COUNT=4,t.getInnerEmitterInstance().once(jm,this._initGroupList,this)}return wn(e,[{key:"onCheckTimer",value:function(e){e%1==0&&this._cachedGroupMessageMap.size>0&&this._checkCachedGroupMessage()}},{key:"_checkCachedGroupMessage",value:function(){var e=this;this._cachedGroupMessageMap.forEach((function(t,n){var r=e._checkCountMap.get(n),i=e._groupModule.hasLocalGroup(n);Zs.log("".concat(e._className,"._checkCachedGroupMessage groupID:").concat(n," hasLocalGroup:").concat(i," checkCount:").concat(r)),i?(e._notifyCachedGroupMessage(n),e._checkCountMap.delete(n),e._groupModule.deleteUnjoinedAVChatRoom(n)):r>=e.MAX_CHECK_COUNT?(e._deleteCachedGroupMessage(n),e._checkCountMap.delete(n)):(r++,e._checkCountMap.set(n,r))}))}},{key:"_initGroupList",value:function(){var e=this;Zs.log("".concat(this._className,"._initGroupList"));var t=new dh(df),n=this._groupModule.getStorageGroupList();if(hc(n)&&n.length>0){n.forEach((function(t){e._groupModule.initGroupMap(t)})),this._groupModule.emitGroupListUpdate(!0,!1);var r=this._groupModule.getLocalGroupList().length;t.setNetworkType(this._groupModule.getNetworkType()).setMessage("group count:".concat(r)).end()}else t.setNetworkType(this._groupModule.getNetworkType()).setMessage("group count:0").end();Zs.log("".concat(this._className,"._initGroupList ok"))}},{key:"handleUpdateGroupLastMessage",value:function(e){var t="".concat(this._className,".handleUpdateGroupLastMessage");if(Zs.debug("".concat(t," conversation count:").concat(e.length,", local group count:").concat(this._groupModule.getLocalGroupList().length)),0!==this._groupModule.getGroupMap().size){for(var n,r,i,o=!1,a=0,s=e.length;a<s;a++)(n=e[a]).type===Kn.CONV_GROUP&&(r=n.conversationID.split(/^GROUP/)[1],(i=this._groupModule.getLocalGroupProfile(r))&&(i.lastMessage=n.lastMessage,o=!0));o&&(this._groupModule.sortLocalGroupList(),this._groupModule.emitGroupListUpdate(!0,!1))}else this.tempConversationList=e}},{key:"onNewGroupMessage",value:function(e){Zs.debug("".concat(this._className,".onNewGroupMessage count:").concat(e.dataList.length));var t=this._newGroupMessageStoredAndSummary(e),n=t.conversationOptionsList,r=t.messageList,i=t.AVChatRoomMessageList;i.length>0&&this._groupModule.onAVChatRoomMessage(i),this._groupModule.filterModifiedMessage(r),n.length>0&&(this._groupModule.getModule(ul).onNewMessage({conversationOptionsList:n,isInstantMessage:!0}),this._groupModule.updateNextMessageSeq(n));var o=this._groupModule.filterUnmodifiedMessage(r);o.length>0&&this._groupModule.emitOuterEvent($n.MESSAGE_RECEIVED,o),r.length=0}},{key:"_newGroupMessageStoredAndSummary",value:function(e){var t=e.dataList,n=e.event,r=e.isInstantMessage,i=null,o=[],a=[],s=[],c={},u=Kn.CONV_GROUP,l=this._groupModule.getModule(pl),d=this._groupModule.getModule(Il),h=t.length;h>1&&t.sort((function(e,t){return e.sequence-t.sequence}));for(var f=0;f<h;f++){var p=t[f],g=p.groupProfile.groupID,m=this._groupModule.hasLocalGroup(g);if(m||!this._groupModule.isUnjoinedAVChatRoom(g))if(m)if(this._groupModule.isMessageFromOrToAVChatroom(g)){var v=Dc(p);v.event=n,s.push(v)}else{p.currentUser=this._groupModule.getMyUserID(),p.conversationType=u,p.isSystemMessage=!!p.isSystemMessage,i=new _m(p),p.elements=l.parseElements(p.elements,p.from),i.setElement(p.elements);var y=1===t[f].isModified,_=this._groupModule.getModule(ul);if(_.isMessageSentByCurrentInstance(i)?i.isModified=y:y=!1,1===p.onlineOnlyFlag)i._onlineOnlyFlag=!0,a.push(i);else{if(!_.pushIntoMessageList(a,i,y))continue;d.addMessageSequence({key:ih,message:i}),r&&i.clientTime>0&&d.addMessageDelay(i.clientTime);var b=i,S=b.conversationID,x=b.sequence,w=_.isRemoteRead({conversationID:S,sequence:x});if(fc(c[S])){var I=0;"in"===i.flow&&(i._isExcludedFromUnreadCount||w||(I=1)),c[S]=o.push({conversationID:S,unreadCount:I,type:i.conversationType,subType:i.conversationSubType,lastMessage:i._isExcludedFromLastMessage?"":i})-1}else{var C=c[S];o[C].type=i.conversationType,o[C].subType=i.conversationSubType,o[C].lastMessage=i._isExcludedFromLastMessage?"":i,"in"===i.flow&&(i._isExcludedFromUnreadCount||w||o[C].unreadCount++)}}}else this._cacheGroupMessageAndProbe({groupID:g,event:n,item:p})}return{conversationOptionsList:o,messageList:a,AVChatRoomMessageList:s}}},{key:"onGroupMessageRevoked",value:function(e){Zs.debug("".concat(this._className,".onGroupMessageRevoked nums:").concat(e.dataList.length));var t=this._groupModule.getModule(ul),n=[],r=null;e.dataList.forEach((function(e){var i=e.elements.revokedInfos;fc(i)||i.forEach((function(e){(r=t.revoke("GROUP".concat(e.groupID),e.sequence,e.random))&&n.push(r)}))})),0!==n.length&&(t.onMessageRevoked(n),this._groupModule.emitOuterEvent($n.MESSAGE_REVOKED,n))}},{key:"_groupListTreeShaking",value:function(e){for(var t=new Map(Fn(this._groupModule.getGroupMap())),n=0,r=e.length;n<r;n++)t.delete(e[n].groupID);this._groupModule.hasJoinedAVChatRoom()&&this._groupModule.getJoinedAVChatRoom().forEach((function(e){t.delete(e)}));for(var i=Fn(t.keys()),o=0,a=i.length;o<a;o++)this._groupModule.deleteGroup(i[o])}},{key:"getGroupList",value:function(e){var t=this,n="".concat(this._className,".getGroupList"),r=new dh(uf);Zs.log("".concat(n));var i={introduction:"Introduction",notification:"Notification",createTime:"CreateTime",ownerID:"Owner_Account",lastInfoTime:"LastInfoTime",memberNum:"MemberNum",maxMemberNum:"MaxMemberNum",joinOption:"ApplyJoinOption",muteAllMembers:"ShutUpAllMember"},o=["Type","Name","FaceUrl","NextMsgSeq","LastMsgTime"],a=[];return e&&e.groupProfileFilter&&e.groupProfileFilter.forEach((function(e){i[e]&&o.push(i[e])})),this._pagingGetGroupList({limit:50,offset:0,groupBaseInfoFilter:o,groupList:a}).then((function(){Zs.log("".concat(n," ok. count:").concat(a.length)),t._groupListTreeShaking(a),t._groupModule.updateGroupMap(a);var e=t._groupModule.getLocalGroupList().length;return r.setNetworkType(t._groupModule.getNetworkType()).setMessage("remote count:".concat(a.length,", after tree shaking, local count:").concat(e)).end(),t.tempConversationList&&(Zs.log("".concat(n," update last message with tempConversationList, count:").concat(t.tempConversationList.length)),t.handleUpdateGroupLastMessage({data:t.tempConversationList}),t.tempConversationList=null),t._groupModule.emitGroupListUpdate(),t._groupModule.patchGroupMessageRemindType(),t._groupModule.recomputeUnreadCount(),bm({groupList:t._groupModule.getLocalGroupList()})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=Un(t,2),i=n[0],o=n[1];r.setError(e,i,o).end()})),Zs.error("".concat(n," failed. error:"),e),Am(e)}))}},{key:"_pagingGetGroupList",value:function(e){var t=this,n="".concat(this._className,"._pagingGetGroupList"),r=e.isCommunityRelay,i=void 0!==r&&r,o=e.limit,a=e.offset,s=e.groupBaseInfoFilter,c=e.groupList,u=new dh(pf);return this._groupModule.request({protocolName:Zl,requestData:{type:i?Kn.GRP_COMMUNITY:void 0,memberAccount:this._groupModule.getMyUserID(),limit:o,offset:a,responseFilter:{groupBaseInfoFilter:s,selfInfoFilter:["Role","JoinTime","MsgFlag","MsgSeq"]}}}).then((function(e){var r=e.data,l=r.groups,d=void 0===l?[]:l,h=r.totalCount;c.push.apply(c,Fn(d));var f=a+o,p=!(h>f),g="offset:".concat(a," totalCount:").concat(h," isCompleted:").concat(p," ")+"currentCount:".concat(c.length," isCommunityRelay:").concat(i);return u.setNetworkType(t._groupModule.getNetworkType()).setMessage("".concat(g)).end(),i||p?!i&&p?(Zs.log("".concat(n," start to get community list")),a=0,t._pagingGetGroupList({limit:o,offset:a,groupBaseInfoFilter:s,groupList:c,isCommunityRelay:!0})):i&&!p?(a=f,t._pagingGetGroupList({limit:o,offset:a,groupBaseInfoFilter:s,groupList:c,isCommunityRelay:!0})):(Zs.log("".concat(n," ok. totalCount:").concat(c.length)),bm({groupList:c})):(a=f,t._pagingGetGroupList({limit:o,offset:a,groupBaseInfoFilter:s,groupList:c}))})).catch((function(e){return 11e3!==e.code&&t._groupModule.probeNetwork().then((function(t){var n=Un(t,2),r=n[0],o=n[1];u.setMessage("isCommunityRelay:".concat(i)).setError(e,r,o).end()})),i?(11e3===e.code&&(u=null,Zs.log("".concat(n," ok. community unavailable"))),Em({groupList:c})):Am(e)}))}},{key:"_cacheGroupMessage",value:function(e,t){this._cachedGroupMessageMap.has(e)||this._cachedGroupMessageMap.set(e,[]),this._cachedGroupMessageMap.get(e).push(t)}},{key:"_deleteCachedGroupMessage",value:function(e){this._cachedGroupMessageMap.has(e)&&this._cachedGroupMessageMap.delete(e)}},{key:"_notifyCachedGroupMessage",value:function(e){var t=this,n=this._cachedGroupMessageMap.get(e)||[];n.forEach((function(e){t.onNewGroupMessage(e)})),this._deleteCachedGroupMessage(e),Zs.log("".concat(this._className,"._notifyCachedGroupMessage groupID:").concat(e," count:").concat(n.length))}},{key:"_cacheGroupMessageAndProbe",value:function(e){var t=this,n=e.groupID,r=e.event,i=e.item;this._cacheGroupMessage(n,{event:r,dataList:[i]}),this._groupModule.getGroupSimplifiedInfo(n).then((function(e){e.type===Kn.GRP_AVCHATROOM?t._groupModule.hasLocalGroup(n)?t._notifyCachedGroupMessage(n):t._groupModule.setUnjoinedAVChatRoom(n):(t._groupModule.updateGroupMap([e]),t._notifyCachedGroupMessage(n))})),this._checkCountMap.has(n)||this._checkCountMap.set(n,0),Zs.log("".concat(this._className,"._cacheGroupMessageAndProbe groupID:").concat(n))}},{key:"reset",value:function(){this._cachedGroupMessageMap.clear(),this._checkCountMap.clear(),this._groupModule.getInnerEmitterInstance().once(jm,this._initGroupList,this)}}]),e}(),hv={1:"init",2:"modify",3:"clear",4:"delete"},fv=function(){function e(t){Sn(this,e),this._groupModule=t,this._className="GroupAttributesHandler",this._groupAttributesMap=new Map,this.CACHE_EXPIRE_TIME=3e4,this._groupModule.getInnerEmitterInstance().on(Bm,this._onCloudConfigUpdated,this)}return wn(e,[{key:"_onCloudConfigUpdated",value:function(){var e=this._groupModule.getCloudConfig("grp_attr_cache_time");fc(e)||(this.CACHE_EXPIRE_TIME=Number(e))}},{key:"updateLocalMainSequenceOnReconnected",value:function(){this._groupAttributesMap.forEach((function(e){e.localMainSequence=0}))}},{key:"onGroupAttributesUpdated",value:function(e){var t=this,n=e.groupID,r=e.groupAttributeOption,i=r.mainSequence,o=r.hasChangedAttributeInfo,a=r.groupAttributeList,s=void 0===a?[]:a,c=r.operationType;if(Zs.log("".concat(this._className,".onGroupAttributesUpdated. hasChangedAttributeInfo:").concat(o," operationType:").concat(c)),!fc(c)){if(1===o){if(4===c){var u=[];s.forEach((function(e){u.push(e.key)})),s=Fn(u),u=null}return this._refreshCachedGroupAttributes({groupID:n,remoteMainSequence:i,groupAttributeList:s,operationType:hv[c]}),void this._emitGroupAttributesUpdated(n)}if(this._groupAttributesMap.has(n)){var l=this._groupAttributesMap.get(n).avChatRoomKey;this._getGroupAttributes({groupID:n,avChatRoomKey:l}).then((function(){t._emitGroupAttributesUpdated(n)}))}}}},{key:"initGroupAttributesCache",value:function(e){var t=e.groupID,n=e.avChatRoomKey;this._groupAttributesMap.set(t,{lastUpdateTime:0,localMainSequence:0,remoteMainSequence:0,attributes:new Map,avChatRoomKey:n}),Zs.log("".concat(this._className,".initGroupAttributesCache groupID:").concat(t," avChatRoomKey:").concat(n))}},{key:"initGroupAttributes",value:function(e){var t=this,n=e.groupID,r=e.groupAttributes,i=this._checkCachedGroupAttributes({groupID:n,funcName:"initGroupAttributes"});if(!0!==i)return Am(i);var o=this._groupAttributesMap.get(n),a=o.remoteMainSequence,s=o.avChatRoomKey,c=new dh(vf);return c.setMessage("groupID:".concat(n," mainSequence:").concat(a," groupAttributes:").concat(JSON.stringify(r))),this._groupModule.request({protocolName:wd,requestData:{groupID:n,avChatRoomKey:s,mainSequence:a,groupAttributeList:this._transformGroupAttributes(r)}}).then((function(e){var i=e.data,o=i.mainSequence,a=Fn(i.groupAttributeList);return a.forEach((function(e){e.value=r[e.key]})),t._refreshCachedGroupAttributes({groupID:n,remoteMainSequence:o,groupAttributeList:a,operationType:"init"}),c.setNetworkType(t._groupModule.getNetworkType()).end(),Zs.log("".concat(t._className,".initGroupAttributes ok. groupID:").concat(n)),bm({groupAttributes:r})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=Un(t,2),r=n[0],i=n[1];c.setError(e,r,i).end()})),Am(e)}))}},{key:"setGroupAttributes",value:function(e){var t=this,n=e.groupID,r=e.groupAttributes,i=this._checkCachedGroupAttributes({groupID:n,funcName:"setGroupAttributes"});if(!0!==i)return Am(i);var o=this._groupAttributesMap.get(n),a=o.remoteMainSequence,s=o.avChatRoomKey,c=o.attributes,u=this._transformGroupAttributes(r);u.forEach((function(e){var t=e.key;e.sequence=0,c.has(t)&&(e.sequence=c.get(t).sequence)}));var l=new dh(yf);return l.setMessage("groupID:".concat(n," mainSequence:").concat(a," groupAttributes:").concat(JSON.stringify(r))),this._groupModule.request({protocolName:Id,requestData:{groupID:n,avChatRoomKey:s,mainSequence:a,groupAttributeList:u}}).then((function(e){var i=e.data,o=i.mainSequence,a=Fn(i.groupAttributeList);return a.forEach((function(e){e.value=r[e.key]})),t._refreshCachedGroupAttributes({groupID:n,remoteMainSequence:o,groupAttributeList:a,operationType:"modify"}),l.setNetworkType(t._groupModule.getNetworkType()).end(),Zs.log("".concat(t._className,".setGroupAttributes ok. groupID:").concat(n)),bm({groupAttributes:r})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=Un(t,2),r=n[0],i=n[1];l.setError(e,r,i).end()})),Am(e)}))}},{key:"deleteGroupAttributes",value:function(e){var t=this,n=e.groupID,r=e.keyList,i=void 0===r?[]:r,o=this._checkCachedGroupAttributes({groupID:n,funcName:"deleteGroupAttributes"});if(!0!==o)return Am(o);var a=this._groupAttributesMap.get(n),s=a.remoteMainSequence,c=a.avChatRoomKey,u=a.attributes,l=Fn(u.keys()),d=Md,h="clear",f={groupID:n,avChatRoomKey:c,mainSequence:s};if(i.length>0){var p=[];l=[],d=Cd,h="delete",i.forEach((function(e){var t=0;u.has(e)&&(t=u.get(e).sequence,l.push(e)),p.push({key:e,sequence:t})})),f.groupAttributeList=p}var g=new dh(_f);return g.setMessage("groupID:".concat(n," mainSequence:").concat(s," keyList:").concat(i," protocolName:").concat(d)),this._groupModule.request({protocolName:d,requestData:f}).then((function(e){var r=e.data.mainSequence;return t._refreshCachedGroupAttributes({groupID:n,remoteMainSequence:r,groupAttributeList:i,operationType:h}),g.setNetworkType(t._groupModule.getNetworkType()).end(),Zs.log("".concat(t._className,".deleteGroupAttributes ok. groupID:").concat(n)),bm({keyList:l})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=Un(t,2),r=n[0],i=n[1];g.setError(e,r,i).end()})),Am(e)}))}},{key:"getGroupAttributes",value:function(e){var t=this,n=e.groupID,r=this._checkCachedGroupAttributes({groupID:n,funcName:"getGroupAttributes"});if(!0!==r)return Am(r);var i=this._groupAttributesMap.get(n),o=i.avChatRoomKey,a=i.lastUpdateTime,s=i.localMainSequence,c=i.remoteMainSequence,u=new dh(bf);if(u.setMessage("groupID:".concat(n," localMainSequence:").concat(s," remoteMainSequence:").concat(c," keyList:").concat(e.keyList)),Date.now()-a>=this.CACHE_EXPIRE_TIME||s<c)return this._getGroupAttributes({groupID:n,avChatRoomKey:o}).then((function(r){u.setMoreMessage("get attributes from remote. count:".concat(r.length)).setNetworkType(t._groupModule.getNetworkType()).end(),Zs.log("".concat(t._className,".getGroupAttributes from remote. groupID:").concat(n));var i=t._getLocalGroupAttributes(e);return bm({groupAttributes:i})})).catch((function(e){return t._groupModule.probeNetwork().then((function(t){var n=Un(t,2),r=n[0],i=n[1];u.setError(e,r,i).end()})),Am(e)}));u.setMoreMessage("get attributes from cache").setNetworkType(this._groupModule.getNetworkType()).end(),Zs.log("".concat(this._className,".getGroupAttributes from cache. groupID:").concat(n));var l=this._getLocalGroupAttributes(e);return Em({groupAttributes:l})}},{key:"_getGroupAttributes",value:function(e){var t=this;return this._groupModule.request({protocolName:Td,requestData:Mn({},e)}).then((function(n){var r=n.data,i=r.mainSequence,o=r.groupAttributeList,a=Fn(o);return fc(i)||t._refreshCachedGroupAttributes({groupID:e.groupID,remoteMainSequence:i,groupAttributeList:a,operationType:"get"}),Zs.log("".concat(t._className,"._getGroupAttributes ok. groupID:").concat(e.groupID)),o})).catch((function(e){return Am(e)}))}},{key:"_getLocalGroupAttributes",value:function(e){var t=e.groupID,n=e.keyList,r=void 0===n?[]:n,i={};if(!this._groupAttributesMap.has(t))return i;var o=this._groupAttributesMap.get(t).attributes;if(r.length>0)r.forEach((function(e){o.has(e)&&(i[e]=o.get(e).value)}));else{var a,s=Hn(o.keys());try{for(s.s();!(a=s.n()).done;){var c=a.value;i[c]=o.get(c).value}}catch(l){s.e(l)}finally{s.f()}}return i}},{key:"_refreshCachedGroupAttributes",value:function(e){var t=e.groupID,n=e.remoteMainSequence,r=e.groupAttributeList,i=e.operationType;if(this._groupAttributesMap.has(t)){var o=this._groupAttributesMap.get(t),a=o.localMainSequence;if("get"===i||n-a==1)o.remoteMainSequence=n,o.localMainSequence=n,o.lastUpdateTime=Date.now(),this._updateCachedAttributes({groupAttributes:o,groupAttributeList:r,operationType:i});else{if(a===n)return;o.remoteMainSequence=n}this._groupAttributesMap.set(t,o);var s="operationType:".concat(i," localMainSequence:").concat(a," remoteMainSequence:").concat(n);Zs.log("".concat(this._className,"._refreshCachedGroupAttributes. ").concat(s))}}},{key:"_updateCachedAttributes",value:function(e){var t=e.groupAttributes,n=e.groupAttributeList,r=e.operationType;"clear"!==r?"delete"!==r?("init"===r&&t.attributes.clear(),n.forEach((function(e){var n=e.key,r=e.value,i=e.sequence;t.attributes.set(n,{value:r,sequence:i})}))):n.forEach((function(e){t.attributes.delete(e)})):t.attributes.clear()}},{key:"_checkCachedGroupAttributes",value:function(e){var t=e.groupID,n=e.funcName;if(this._groupModule.hasLocalGroup(t)&&this._groupModule.getLocalGroupProfile(t).type!==Kn.GRP_AVCHATROOM)return Zs.warn("".concat(this._className,"._checkCachedGroupAttributes. ").concat("非直播群不能使用群属性 API")),new Mm({code:Yd.CANNOT_USE_GRP_ATTR_NOT_AVCHATROOM,message:"非直播群不能使用群属性 API"});var r=this._groupAttributesMap.get(t);if(fc(r)){var i="如果 groupID:".concat(t," 是直播群,使用 ").concat(n," 前先使用 joinGroup 接口申请加入群组,详细请参考 https://web.sdk.qcloud.com/im/doc/zh-cn/SDK.html#joinGroup");return Zs.warn("".concat(this._className,"._checkCachedGroupAttributes. ").concat(i)),new Mm({code:Yd.CANNOT_USE_GRP_ATTR_AVCHATROOM_UNJOIN,message:i})}return!0}},{key:"_transformGroupAttributes",value:function(e){var t=[];return Object.keys(e).forEach((function(n){t.push({key:n,value:e[n]})})),t}},{key:"_emitGroupAttributesUpdated",value:function(e){var t=this._getLocalGroupAttributes({groupID:e});this._groupModule.emitOuterEvent($n.GROUP_ATTRIBUTES_UPDATED,{groupID:e,groupAttributes:t})}},{key:"reset",value:function(){this._groupAttributesMap.clear(),this.CACHE_EXPIRE_TIME=3e4}}]),e}(),pv=function(){function e(t){Sn(this,e);var n=t.manager,r=t.groupID,i=t.onInit,o=t.onSuccess,a=t.onFail;this._className="Polling",this._manager=n,this._groupModule=n._groupModule,this._onInit=i,this._onSuccess=o,this._onFail=a,this._groupID=r,this._timeoutID=-1,this._isRunning=!1,this._protocolName=_d}return wn(e,[{key:"start",value:function(){var e=this._groupModule.isLoggedIn();e||(this._protocolName=bd),Zs.log("".concat(this._className,".start pollingInterval:").concat(this._manager.getPollingInterval()," isLoggedIn:").concat(e)),this._isRunning=!0,this._request()}},{key:"isRunning",value:function(){return this._isRunning}},{key:"_request",value:function(){var e=this,t=this._onInit(this._groupID);this._groupModule.request({protocolName:this._protocolName,requestData:t}).then((function(t){e._onSuccess(e._groupID,t),e.isRunning()&&(clearTimeout(e._timeoutID),e._timeoutID=setTimeout(e._request.bind(e),e._manager.getPollingInterval()))})).catch((function(t){e._onFail(e._groupID,t),e.isRunning()&&(clearTimeout(e._timeoutID),e._timeoutID=setTimeout(e._request.bind(e),e._manager.MAX_POLLING_INTERVAL))}))}},{key:"stop",value:function(){Zs.log("".concat(this._className,".stop")),this._timeoutID>0&&(clearTimeout(this._timeoutID),this._timeoutID=-1),this._isRunning=!1}}]),e}(),gv={3:!0,4:!0,5:!0,6:!0},mv=function(){function e(t){Sn(this,e),this._groupModule=t,this._className="AVChatRoomHandler",this._joinedGroupMap=new Map,this._pollingRequestInfoMap=new Map,this._pollingInstanceMap=new Map,this.sequencesLinkedList=new Qm(100),this.messageIDLinkedList=new Qm(100),this.receivedMessageCount=0,this._reportMessageStackedCount=0,this._onlineMemberCountMap=new Map,this.DEFAULT_EXPIRE_TIME=60,this.DEFAULT_POLLING_INTERVAL=300,this.MAX_POLLING_INTERVAL=2e3,this._pollingInterval=this.DEFAULT_POLLING_INTERVAL}return wn(e,[{key:"hasJoinedAVChatRoom",value:function(){return this._joinedGroupMap.size>0}},{key:"checkJoinedAVChatRoomByID",value:function(e){return this._joinedGroupMap.has(e)}},{key:"getJoinedAVChatRoom",value:function(){return this._joinedGroupMap.size>0?Fn(this._joinedGroupMap.keys()):null}},{key:"_updateRequestData",value:function(e){return Mn({},this._pollingRequestInfoMap.get(e))}},{key:"_handleSuccess",value:function(e,t){var n=t.data,r=n.key,i=n.nextSeq,o=n.rspMsgList;if(0!==n.errorCode){var a=this._pollingRequestInfoMap.get(e),s=new dh(Af),c=a?"".concat(a.key,"-").concat(a.startSeq):"requestInfo is undefined";s.setMessage("".concat(e,"-").concat(c,"-").concat(t.errorInfo)).setCode(t.errorCode).setNetworkType(this._groupModule.getNetworkType()).end(!0)}else{if(!this.checkJoinedAVChatRoomByID(e))return;uc(r)&&cc(i)&&this._pollingRequestInfoMap.set(e,{key:r,startSeq:i}),hc(o)&&o.length>0&&(o.forEach((function(e){e.to=e.groupID})),this.onMessage(o))}}},{key:"_handleFailure",value:function(e,t){}},{key:"onMessage",value:function(e){if(hc(e)&&0!==e.length){var t=null,n=[],r=this._getModule(ul),i=this._getModule(Il),o=e.length;o>1&&e.sort((function(e,t){return e.sequence-t.sequence}));for(var a=this._getModule(ll),s=0;s<o;s++)if(gv[e[s].event]){this.receivedMessageCount+=1,t=this.packMessage(e[s],e[s].event);var c=1===e[s].isModified,u=1===e[s].isHistoryMessage;if((a.isUnlimitedAVChatRoom()||!this.sequencesLinkedList.has(t.sequence))&&!this.messageIDLinkedList.has(t.ID)){var l=t.conversationID;if(this.receivedMessageCount%40==0&&this._getModule(bl).detectMessageLoss(l,this.sequencesLinkedList.data()),null!==this.sequencesLinkedList.tail()){var d=this.sequencesLinkedList.tail().value,h=t.sequence-d;h>1&&h<=20?this._getModule(bl).onMessageMaybeLost(l,d+1,h-1):h<-1&&h>=-20&&this._getModule(bl).onMessageMaybeLost(l,t.sequence+1,Math.abs(h)-1)}this.sequencesLinkedList.set(t.sequence),this.messageIDLinkedList.set(t.ID);var f=!1;if(this._isMessageSentByCurrentInstance(t)?c&&(f=!0,t.isModified=c,r.updateMessageIsModifiedProperty(t)):f=!0,f){if(t.conversationType,Kn.CONV_SYSTEM,!u&&t.conversationType!==Kn.CONV_SYSTEM){var p=t.conversationID.replace(Kn.CONV_GROUP,"");this._pollingInstanceMap.has(p)?i.addMessageSequence({key:ah,message:t}):(t.type!==Kn.MSG_GRP_TIP&&t.clientTime>0&&i.addMessageDelay(t.clientTime),i.addMessageSequence({key:oh,message:t}))}n.push(t)}}}else Zs.warn("".concat(this._className,".onMessage 未处理的 event 类型: ").concat(e[s].event));if(0!==n.length){this._groupModule.filterModifiedMessage(n);var g=this.packConversationOption(n);g.length>0&&this._getModule(ul).onNewMessage({conversationOptionsList:g,isInstantMessage:!0}),Zs.debug("".concat(this._className,".onMessage count:").concat(n.length)),this._checkMessageStacked(n);var m=this._groupModule.filterUnmodifiedMessage(n);m.length>0&&this._groupModule.emitOuterEvent($n.MESSAGE_RECEIVED,m),n.length=0}}}},{key:"_checkMessageStacked",value:function(e){var t=e.length;t>=100&&(Zs.warn("".concat(this._className,"._checkMessageStacked 直播群消息堆积数:").concat(e.length,'!可能会导致微信小程序渲染时遇到 "Dom limit exceeded" 的错误,建议接入侧此时只渲染最近的10条消息')),this._reportMessageStackedCount<5&&(new dh(Of).setNetworkType(this._groupModule.getNetworkType()).setMessage("count:".concat(t," groupID:").concat(Fn(this._joinedGroupMap.keys()))).setLevel("warning").end(),this._reportMessageStackedCount+=1))}},{key:"_isMessageSentByCurrentInstance",value:function(e){return!!this._getModule(ul).isMessageSentByCurrentInstance(e)}},{key:"packMessage",value:function(e,t){e.currentUser=this._groupModule.getMyUserID(),e.conversationType=5===t?Kn.CONV_SYSTEM:Kn.CONV_GROUP,e.isSystemMessage=!!e.isSystemMessage;var n=new _m(e),r=this.packElements(e,t);return n.setElement(r),n}},{key:"packElements",value:function(e,t){return 4===t||6===t?(this._updateMemberCountByGroupTips(e),this._onGroupAttributesUpdated(e),{type:Kn.MSG_GRP_TIP,content:Mn({},e.elements,{groupProfile:e.groupProfile})}):5===t?{type:Kn.MSG_GRP_SYS_NOTICE,content:Mn({},e.elements,{groupProfile:e.groupProfile})}:this._getModule(pl).parseElements(e.elements,e.from)}},{key:"packConversationOption",value:function(e){for(var t=new Map,n=0;n<e.length;n++){var r=e[n],i=r.conversationID;if(t.has(i)){var o=t.get(i);o.lastMessage=r,"in"===r.flow&&o.unreadCount++}else t.set(i,{conversationID:r.conversationID,unreadCount:"out"===r.flow?0:1,type:r.conversationType,subType:r.conversationSubType,lastMessage:r})}return Fn(t.values())}},{key:"_updateMemberCountByGroupTips",value:function(e){var t=e.groupProfile.groupID,n=e.elements.onlineMemberInfo,r=void 0===n?void 0:n;if(!Jc(r)){var i=r.onlineMemberNum,o=void 0===i?0:i,a=r.expireTime,s=void 0===a?this.DEFAULT_EXPIRE_TIME:a,c=this._onlineMemberCountMap.get(t)||{},u=Date.now();Jc(c)?Object.assign(c,{lastReqTime:0,lastSyncTime:0,latestUpdateTime:u,memberCount:o,expireTime:s}):(c.latestUpdateTime=u,c.memberCount=o),Zs.debug("".concat(this._className,"._updateMemberCountByGroupTips info:"),c),this._onlineMemberCountMap.set(t,c)}}},{key:"start",value:function(e){if(this._pollingInstanceMap.has(e)){var t=this._pollingInstanceMap.get(e);t.isRunning()||t.start()}else{var n=new pv({manager:this,groupID:e,onInit:this._updateRequestData.bind(this),onSuccess:this._handleSuccess.bind(this),onFail:this._handleFailure.bind(this)});n.start(),this._pollingInstanceMap.set(e,n),Zs.log("".concat(this._className,".start groupID:").concat(e))}}},{key:"handleJoinResult",value:function(e){var t=this;return this._preCheck().then((function(){var n=e.longPollingKey,r=e.group,i=r.groupID;return t._joinedGroupMap.set(i,r),t._groupModule.updateGroupMap([r]),t._groupModule.deleteUnjoinedAVChatRoom(i),t._groupModule.emitGroupListUpdate(!0,!1),fc(n)?Em({status:ic,group:r}):Promise.resolve()}))}},{key:"startRunLoop",value:function(e){var t=this;return this.handleJoinResult(e).then((function(){var n=e.longPollingKey,r=e.group,i=r.groupID;return t._pollingRequestInfoMap.set(i,{key:n,startSeq:0}),t.start(i),t._groupModule.isLoggedIn()?Em({status:ic,group:r}):Em({status:ic})}))}},{key:"_preCheck",value:function(){if(this._getModule(ll).isUnlimitedAVChatRoom())return Promise.resolve();if(!this.hasJoinedAVChatRoom())return Promise.resolve();var e=Un(this._joinedGroupMap.entries().next().value,2),t=e[0],n=e[1];if(this._groupModule.isLoggedIn()){if(n.selfInfo.role!==Kn.GRP_MBR_ROLE_OWNER&&n.ownerID!==this._groupModule.getMyUserID())return this._groupModule.quitGroup(t);this._groupModule.deleteLocalGroupAndConversation(t)}else this._groupModule.deleteLocalGroupAndConversation(t);return this.reset(t),Promise.resolve()}},{key:"joinWithoutAuth",value:function(e){var t=this,n=e.groupID,r="".concat(this._className,".joinWithoutAuth"),i=new dh(mf);return this._groupModule.request({protocolName:id,requestData:e}).then((function(e){var o=e.data.longPollingKey;if(t._groupModule.probeNetwork().then((function(e){var t=Un(e,2),r=(t[0],t[1]);i.setNetworkType(r).setMessage("groupID:".concat(n," longPollingKey:").concat(o)).end(!0)})),fc(o))return Am(new Mm({code:Yd.CANNOT_JOIN_NON_AVCHATROOM_WITHOUT_LOGIN,message:Jd.CANNOT_JOIN_NON_AVCHATROOM_WITHOUT_LOGIN}));Zs.log("".concat(r," ok. groupID:").concat(n)),t._getModule(ul).setCompleted("".concat(Kn.CONV_GROUP).concat(n));var a=new tv({groupID:n});return t.startRunLoop({group:a,longPollingKey:o}),bm({status:ic})})).catch((function(e){return Zs.error("".concat(r," failed. groupID:").concat(n," error:"),e),t._groupModule.probeNetwork().then((function(t){var r=Un(t,2),o=r[0],a=r[1];i.setError(e,o,a).setMessage("groupID:".concat(n)).end(!0)})),Am(e)})).finally((function(){t._groupModule.getModule(hl).reportAtOnce()}))}},{key:"getGroupOnlineMemberCount",value:function(e){var t=this._onlineMemberCountMap.get(e)||{},n=Date.now();return Jc(t)||n-t.lastSyncTime>1e3*t.expireTime&&n-t.latestUpdateTime>1e4&&n-t.lastReqTime>3e3?(t.lastReqTime=n,this._onlineMemberCountMap.set(e,t),this._getGroupOnlineMemberCount(e).then((function(e){return bm({memberCount:e.memberCount})})).catch((function(e){return Am(e)}))):Em({memberCount:t.memberCount})}},{key:"_getGroupOnlineMemberCount",value:function(e){var t=this,n="".concat(this._className,"._getGroupOnlineMemberCount");return this._groupModule.request({protocolName:Sd,requestData:{groupID:e}}).then((function(r){var i=t._onlineMemberCountMap.get(e)||{},o=r.data,a=o.onlineMemberNum,s=void 0===a?0:a,c=o.expireTime,u=void 0===c?t.DEFAULT_EXPIRE_TIME:c;Zs.log("".concat(n," ok. groupID:").concat(e," memberCount:").concat(s," expireTime:").concat(u));var l=Date.now();return Jc(i)&&(i.lastReqTime=l),t._onlineMemberCountMap.set(e,Object.assign(i,{lastSyncTime:l,latestUpdateTime:l,memberCount:s,expireTime:u})),{memberCount:s}})).catch((function(r){return Zs.warn("".concat(n," failed. error:"),r),new dh(Ef).setCode(r.code).setMessage("groupID:".concat(e," error:").concat(JSON.stringify(r))).setNetworkType(t._groupModule.getNetworkType()).end(),Promise.reject(r)}))}},{key:"_onGroupAttributesUpdated",value:function(e){var t=e.groupProfile.groupID,n=e.elements,r=n.operationType,i=n.newGroupProfile;if(6===r){var o=(void 0===i?void 0:i).groupAttributeOption;Jc(o)||this._groupModule.onGroupAttributesUpdated({groupID:t,groupAttributeOption:o})}}},{key:"_getModule",value:function(e){return this._groupModule.getModule(e)}},{key:"setPollingInterval",value:function(e){fc(e)||cc(e)||(this._pollingInterval=parseInt(e,10),Zs.log("".concat(this._className,".setPollingInterval value:").concat(this._pollingInterval)))}},{key:"getPollingInterval",value:function(){return this._pollingInterval}},{key:"reset",value:function(e){if(e){Zs.log("".concat(this._className,".reset groupID:").concat(e));var t=this._pollingInstanceMap.get(e);t&&t.stop(),this._pollingInstanceMap.delete(e),this._joinedGroupMap.delete(e),this._pollingRequestInfoMap.delete(e),this._onlineMemberCountMap.delete(e)}else{Zs.log("".concat(this._className,".reset all"));var n,r=Hn(this._pollingInstanceMap.values());try{for(r.s();!(n=r.n()).done;)n.value.stop()}catch(o){r.e(o)}finally{r.f()}this._pollingInstanceMap.clear(),this._joinedGroupMap.clear(),this._pollingRequestInfoMap.clear(),this._onlineMemberCountMap.clear()}this.sequencesLinkedList.reset(),this.messageIDLinkedList.reset(),this.receivedMessageCount=0,this._reportMessageStackedCount=0,this._pollingInterval=this.DEFAULT_POLLING_INTERVAL}}]),e}(),vv=1,yv=15,_v=function(){function e(t){Sn(this,e),this._groupModule=t,this._className="GroupSystemNoticeHandler",this.pendencyMap=new Map}return wn(e,[{key:"onNewGroupSystemNotice",value:function(e){var t=e.dataList,n=e.isSyncingEnded,r=e.isInstantMessage;Zs.debug("".concat(this._className,".onReceiveSystemNotice count:").concat(t.length));var i=this.newSystemNoticeStoredAndSummary({notifiesList:t,isInstantMessage:r}),o=i.eventDataList,a=i.result;o.length>0&&(this._groupModule.getModule(ul).onNewMessage({conversationOptionsList:o,isInstantMessage:r}),this._onReceivedGroupSystemNotice({result:a,isInstantMessage:r})),r?a.length>0&&this._groupModule.emitOuterEvent($n.MESSAGE_RECEIVED,a):!0===n&&this._clearGroupSystemNotice()}},{key:"newSystemNoticeStoredAndSummary",value:function(e){var t=e.notifiesList,n=e.isInstantMessage,r=null,i=t.length,o=0,a=[],s={conversationID:Kn.CONV_SYSTEM,unreadCount:0,type:Kn.CONV_SYSTEM,subType:null,lastMessage:null};for(o=0;o<i;o++){var c=t[o];c.elements.operationType!==yv&&(c.currentUser=this._groupModule.getMyUserID(),c.conversationType=Kn.CONV_SYSTEM,c.conversationID=Kn.CONV_SYSTEM,(r=new _m(c)).setElement({type:Kn.MSG_GRP_SYS_NOTICE,content:Mn({},c.elements,{groupProfile:c.groupProfile})}),r.isSystemMessage=!0,(1===r.sequence&&1===r.random||2===r.sequence&&2===r.random)&&(r.sequence=Ic(),r.random=Ic(),r.generateMessageID(),Zs.log("".concat(this._className,".newSystemNoticeStoredAndSummary sequence and random maybe duplicated, regenerate. ID:").concat(r.ID))),this._groupModule.getModule(ul).pushIntoNoticeResult(a,r)&&(n?s.unreadCount++:r.setIsRead(!0),s.subType=r.conversationSubType))}return s.lastMessage=a[a.length-1],{eventDataList:a.length>0?[s]:[],result:a}}},{key:"_clearGroupSystemNotice",value:function(){var e=this;this.getPendencyList().then((function(t){t.forEach((function(t){e.pendencyMap.set("".concat(t.from,"_").concat(t.groupID,"_").concat(t.to),t)}));var n=e._groupModule.getModule(ul).getLocalMessageList(Kn.CONV_SYSTEM),r=[];n.forEach((function(t){var n=t.payload,i=n.operatorID,o=n.operationType,a=n.groupProfile;if(o===vv){var s="".concat(i,"_").concat(a.groupID,"_").concat(a.to),c=e.pendencyMap.get(s);c&&cc(c.handled)&&0!==c.handled&&r.push(t)}})),e.deleteGroupSystemNotice({messageList:r})}))}},{key:"deleteGroupSystemNotice",value:function(e){var t=this,n="".concat(this._className,".deleteGroupSystemNotice");return hc(e.messageList)&&0!==e.messageList.length?(Zs.log("".concat(n)+e.messageList.map((function(e){return e.ID}))),this._groupModule.request({protocolName:yd,requestData:{messageListToDelete:e.messageList.map((function(e){return{from:Kn.CONV_SYSTEM,messageSeq:e.clientSequence,messageRandom:e.random}}))}}).then((function(){Zs.log("".concat(n," ok"));var r=t._groupModule.getModule(ul);return e.messageList.forEach((function(e){r.deleteLocalMessage(e)})),bm()})).catch((function(e){return Zs.error("".concat(n," error:"),e),Am(e)}))):Em()}},{key:"getPendencyList",value:function(e){var t=this;return this._groupModule.request({protocolName:vd,requestData:{startTime:e&&e.startTime?e.startTime:0,limit:e&&e.limit?e.limit:10,handleAccount:this._groupModule.getMyUserID()}}).then((function(e){var n=e.data.pendencyList;return 0!==e.data.nextStartTime?t.getPendencyList({startTime:e.data.nextStartTime}).then((function(e){return[].concat(Fn(n),Fn(e))})):n}))}},{key:"_onReceivedGroupSystemNotice",value:function(e){var t=this,n=e.result;e.isInstantMessage&&n.forEach((function(e){switch(e.payload.operationType){case 1:break;case 2:t._onApplyGroupRequestAgreed(e);break;case 3:break;case 4:t._onMemberKicked(e);break;case 5:t._onGroupDismissed(e);break;case 6:break;case 7:t._onInviteGroup(e);break;case 8:t._onQuitGroup(e);break;case 9:t._onSetManager(e);break;case 10:t._onDeleteManager(e)}}))}},{key:"_onApplyGroupRequestAgreed",value:function(e){var t=this,n=e.payload.groupProfile.groupID;this._groupModule.hasLocalGroup(n)||this._groupModule.getGroupProfile({groupID:n}).then((function(e){var n=e.data.group;n&&(t._groupModule.updateGroupMap([n]),t._groupModule.emitGroupListUpdate())}))}},{key:"_onMemberKicked",value:function(e){var t=e.payload.groupProfile.groupID;this._groupModule.hasLocalGroup(t)&&this._groupModule.deleteLocalGroupAndConversation(t)}},{key:"_onGroupDismissed",value:function(e){var t=e.payload.groupProfile.groupID;this._groupModule.hasLocalGroup(t)&&this._groupModule.deleteLocalGroupAndConversation(t);var n=this._groupModule._AVChatRoomHandler;n&&n.checkJoinedAVChatRoomByID(t)&&n.reset(t)}},{key:"_onInviteGroup",value:function(e){var t=this,n=e.payload.groupProfile.groupID;this._groupModule.hasLocalGroup(n)||this._groupModule.getGroupProfile({groupID:n}).then((function(e){var n=e.data.group;n&&(t._groupModule.updateGroupMap([n]),t._groupModule.emitGroupListUpdate())}))}},{key:"_onQuitGroup",value:function(e){var t=e.payload.groupProfile.groupID;this._groupModule.hasLocalGroup(t)&&this._groupModule.deleteLocalGroupAndConversation(t)}},{key:"_onSetManager",value:function(e){var t=e.payload.groupProfile,n=t.to,r=t.groupID,i=this._groupModule.getModule(cl).getLocalGroupMemberInfo(r,n);i&&i.updateRole(Kn.GRP_MBR_ROLE_ADMIN)}},{key:"_onDeleteManager",value:function(e){var t=e.payload.groupProfile,n=t.to,r=t.groupID,i=this._groupModule.getModule(cl).getLocalGroupMemberInfo(r,n);i&&i.updateRole(Kn.GRP_MBR_ROLE_MEMBER)}},{key:"reset",value:function(){this.pendencyMap.clear()}}]),e}(),bv=function(e){Tn(n,e);var t=Nn(n);function n(e){var r;return Sn(this,n),(r=t.call(this,e))._className="GroupModule",r._commonGroupHandler=null,r._AVChatRoomHandler=null,r._groupSystemNoticeHandler=null,r._commonGroupHandler=new dv(Ln(r)),r._groupAttributesHandler=new fv(Ln(r)),r._AVChatRoomHandler=new mv(Ln(r)),r._groupTipsHandler=new sv(Ln(r)),r._groupSystemNoticeHandler=new _v(Ln(r)),r.groupMap=new Map,r._unjoinedAVChatRoomList=new Map,r._receiptDetailCompleteMap=new Map,r.getInnerEmitterInstance().on(Bm,r._onCloudConfigUpdated,Ln(r)),r}return wn(n,[{key:"_onCloudConfigUpdated",value:function(){var e=this.getCloudConfig("polling_interval");this._AVChatRoomHandler&&this._AVChatRoomHandler.setPollingInterval(e)}},{key:"onCheckTimer",value:function(e){this.isLoggedIn()&&(this._commonGroupHandler.onCheckTimer(e),this._groupTipsHandler.onCheckTimer(e))}},{key:"guardForAVChatRoom",value:function(e){var t=this;if(e.conversationType===Kn.CONV_GROUP){var n=e.to;return this.hasLocalGroup(n)?Em():this.getGroupProfile({groupID:n}).then((function(r){var i=r.data.group.type;if(Zs.log("".concat(t._className,".guardForAVChatRoom. groupID:").concat(n," type:").concat(i)),i===Kn.GRP_AVCHATROOM){var o="userId:".concat(e.from," 未加入群 groupID:").concat(n,"。发消息前先使用 joinGroup 接口申请加群,详细请参考 https://web.sdk.qcloud.com/im/doc/zh-cn/SDK.html#joinGroup");return Zs.warn("".concat(t._className,".guardForAVChatRoom sendMessage not allowed. ").concat(o)),Am(new Mm({code:Yd.MESSAGE_SEND_FAIL,message:o,data:{message:e}}))}return Em()}))}return Em()}},{key:"checkJoinedAVChatRoomByID",value:function(e){return!!this._AVChatRoomHandler&&this._AVChatRoomHandler.checkJoinedAVChatRoomByID(e)}},{key:"onNewGroupMessage",value:function(e){this._commonGroupHandler&&this._commonGroupHandler.onNewGroupMessage(e)}},{key:"updateNextMessageSeq",value:function(e){var t=this;hc(e)&&e.forEach((function(e){var n=e.conversationID.replace(Kn.CONV_GROUP,"");t.groupMap.has(n)&&(t.groupMap.get(n).nextMessageSeq=e.lastMessage.sequence+1)}))}},{key:"onNewGroupTips",value:function(e){this._groupTipsHandler&&this._groupTipsHandler.onNewGroupTips(e)}},{key:"onGroupMessageRevoked",value:function(e){this._commonGroupHandler&&this._commonGroupHandler.onGroupMessageRevoked(e)}},{key:"onNewGroupSystemNotice",value:function(e){this._groupSystemNoticeHandler&&this._groupSystemNoticeHandler.onNewGroupSystemNotice(e)}},{key:"onGroupMessageReadNotice",value:function(e){var t=this;e.dataList.forEach((function(e){var n=e.elements.groupMessageReadNotice;if(!fc(n)){var r=t.getModule(ul);n.forEach((function(e){var n=e.groupID,i=e.lastMessageSeq;Zs.debug("".concat(t._className,".onGroupMessageReadNotice groupID:").concat(n," lastMessageSeq:").concat(i));var o="".concat(Kn.CONV_GROUP).concat(n);r.updateIsReadAfterReadReport({conversationID:o,lastMessageSeq:i}),r.updateUnreadCount(o)}))}}))}},{key:"onReadReceiptList",value:function(e){var t=this;Zs.debug("".concat(this._className,".onReadReceiptList options:"),JSON.stringify(e)),e.dataList.forEach((function(e){var n=e.groupProfile,r=e.elements,i=n.groupID,o=t.getModule(ul),a=r.readReceiptList;o.updateReadReceiptInfo(i,a)}))}},{key:"deleteGroupSystemNotice",value:function(e){this._groupSystemNoticeHandler&&this._groupSystemNoticeHandler.deleteGroupSystemNotice(e)}},{key:"initGroupMap",value:function(e){this.groupMap.set(e.groupID,new tv(e))}},{key:"deleteGroup",value:function(e){this.groupMap.delete(e)}},{key:"updateGroupMap",value:function(e){var t=this;e.forEach((function(e){t.groupMap.has(e.groupID)?t.groupMap.get(e.groupID).updateGroup(e):t.groupMap.set(e.groupID,new tv(e))}));var n,r=this.getMyUserID(),i=Hn(this.groupMap);try{for(i.s();!(n=i.n()).done;)Un(n.value,2)[1].selfInfo.userID=r}catch(a){i.e(a)}finally{i.f()}this._setStorageGroupList()}},{key:"getStorageGroupList",value:function(){return this.getModule(dl).getItem("groupMap")}},{key:"_setStorageGroupList",value:function(){var e=this.getLocalGroupList().filter((function(e){var t=e.type;return!Lc(t)})).slice(0,20).map((function(e){return{groupID:e.groupID,name:e.name,avatar:e.avatar,type:e.type}}));this.getModule(dl).setItem("groupMap",e)}},{key:"getGroupMap",value:function(){return this.groupMap}},{key:"getLocalGroupList",value:function(){return Fn(this.groupMap.values())}},{key:"getLocalGroupProfile",value:function(e){return this.groupMap.get(e)}},{key:"sortLocalGroupList",value:function(){var e=Fn(this.groupMap).filter((function(e){var t=Un(e,2);return t[0],!Jc(t[1].lastMessage)}));e.sort((function(e,t){return t[1].lastMessage.lastTime-e[1].lastMessage.lastTime})),this.groupMap=new Map(Fn(e))}},{key:"updateGroupLastMessage",value:function(e){this._commonGroupHandler&&this._commonGroupHandler.handleUpdateGroupLastMessage(e)}},{key:"emitGroupListUpdate",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.getLocalGroupList();if(e&&this.emitOuterEvent($n.GROUP_LIST_UPDATED),t){var r=JSON.parse(JSON.stringify(n)),i=this.getModule(ul);i.updateConversationGroupProfile(r)}}},{key:"patchGroupMessageRemindType",value:function(){var e=this.getLocalGroupList(),t=this.getModule(ul),n=0;e.forEach((function(e){!0===t.patchMessageRemindType({ID:e.groupID,isC2CConversation:!1,messageRemindType:e.selfInfo.messageRemindType})&&(n+=1)})),Zs.log("".concat(this._className,".patchGroupMessageRemindType count:").concat(n))}},{key:"recomputeUnreadCount",value:function(){var e=this.getLocalGroupList(),t=this.getModule(ul);e.forEach((function(e){var n=e.groupID,r=e.selfInfo,i=r.excludedUnreadSequenceList,o=r.readedSequence;if(hc(i)){var a=0;i.forEach((function(t){t>=o&&t<=e.nextMessageSeq-1&&(a+=1)})),a>=1&&t.recomputeGroupUnreadCount({conversationID:"".concat(Kn.CONV_GROUP).concat(n),count:a})}}))}},{key:"getMyNameCardByGroupID",value:function(e){var t=this.getLocalGroupProfile(e);return t?t.selfInfo.nameCard:""}},{key:"getGroupList",value:function(e){return this._commonGroupHandler?this._commonGroupHandler.getGroupList(e):Em()}},{key:"getGroupProfile",value:function(e){var t=this,n=new dh(lf),r="".concat(this._className,".getGroupProfile"),i=e.groupID,o=e.groupCustomFieldFilter;Zs.log("".concat(r," groupID:").concat(i));var a={groupIDList:[i],responseFilter:{groupBaseInfoFilter:["Type","Name","Introduction","Notification","FaceUrl","Owner_Account","CreateTime","InfoSeq","LastInfoTime","LastMsgTime","MemberNum","MaxMemberNum","ApplyJoinOption","NextMsgSeq","ShutUpAllMember"],groupCustomFieldFilter:o,memberInfoFilter:["Role","JoinTime","MsgSeq","MsgFlag","NameCard"]}};return this.getGroupProfileAdvance(a).then((function(e){var o,a=e.data,s=a.successGroupList,c=a.failureGroupList;return Zs.log("".concat(r," ok")),c.length>0?Am(c[0]):(Lc(s[0].type)&&!t.hasLocalGroup(i)?o=new tv(s[0]):(t.updateGroupMap(s),o=t.getLocalGroupProfile(i)),t.getModule(ul).updateConversationGroupProfile([o]),n.setNetworkType(t.getNetworkType()).setMessage("groupID:".concat(i," type:").concat(o.type," muteAllMembers:").concat(o.muteAllMembers," ownerID:").concat(o.ownerID)).end(),bm({group:o}))})).catch((function(i){return t.probeNetwork().then((function(t){var r=Un(t,2),o=r[0],a=r[1];n.setError(i,o,a).setMessage("groupID:".concat(e.groupID)).end()})),Zs.error("".concat(r," failed. error:"),i),Am(i)}))}},{key:"getGroupProfileAdvance",value:function(e){var t=this,n="".concat(this._className,".getGroupProfileAdvance"),r=e.groupIDList;hc(r)&&r.length>50&&(Zs.warn("".concat(n," 获取群资料的数量不能超过50个")),r.length=50);var i=[],o=[];r.forEach((function(e){Pc({groupID:e})?o.push(e):i.push(e)}));var a=[];if(i.length>0){var s=this._getGroupProfileAdvance(Mn({},e,{groupIDList:i}));a.push(s)}if(o.length>0){var c=this._getGroupProfileAdvance(Mn({},e,{groupIDList:o,relayFlag:i.length>0}));a.push(c)}return Promise.all(a).then((function(e){var t=[],n=[];return e.forEach((function(e){t.push.apply(t,Fn(e.successGroupList)),n.push.apply(n,Fn(e.failureGroupList))})),bm({successGroupList:t,failureGroupList:n})})).catch((function(e){return Zs.error("".concat(t._className,"._getGroupProfileAdvance failed. error:"),e),Am(e)}))}},{key:"_getGroupProfileAdvance",value:function(e){var t=this,n=e.relayFlag,r=void 0!==n&&n,i=Rn(e,["relayFlag"]);return this.request({protocolName:Ql,requestData:i}).then((function(e){Zs.log("".concat(t._className,"._getGroupProfileAdvance ok."));var n=e.data.groups;return{successGroupList:n.filter((function(e){return fc(e.errorCode)||0===e.errorCode})),failureGroupList:n.filter((function(e){return e.errorCode&&0!==e.errorCode})).map((function(e){return new Mm({code:e.errorCode,message:e.errorInfo,data:{groupID:e.groupID}})}))}})).catch((function(t){return r&&Pc({groupID:e.groupIDList[0]})?{successGroupList:[],failureGroupList:[]}:Am(t)}))}},{key:"createGroup",value:function(e){var t=this,n="".concat(this._className,".createGroup"),r=e.type,i=e.groupID;if(!["Public","Private","ChatRoom","AVChatRoom","Community"].includes(r))return Am({code:Yd.ILLEGAL_GROUP_TYPE,message:Jd.ILLEGAL_GROUP_TYPE});if(!Pc({type:r})&&!Jc(i)&&Pc({groupID:i}))return Am({code:Yd.ILLEGAL_GROUP_ID,message:Jd.ILLEGAL_GROUP_ID});if(Lc(r)&&!fc(e.memberList)&&e.memberList.length>0&&(Zs.warn("".concat(n," 创建 AVChatRoom 时不能添加群成员,自动忽略该字段")),e.memberList=void 0),Rc(r)||fc(e.joinOption)||(Zs.warn("".concat(n," 创建 Work/Meeting/AVChatRoom/Community 群时不能设置字段 joinOption,自动忽略该字段")),e.joinOption=void 0),Pc({type:r})&&!Jc(i)&&!Pc({groupID:i}))return Am({code:Yd.ILLEGAL_GROUP_ID,message:Jd.ILLEGAL_GROUP_ID});var o=new dh(Zh);Zs.log("".concat(n," options:"),e);var a=[];return this.request({protocolName:ed,requestData:Mn({},e,{ownerID:this.getMyUserID(),webPushFlag:1})}).then((function(r){var i=r.data,s=i.groupID,c=i.overLimitUserIDList,u=void 0===c?[]:c;if(a=u,o.setNetworkType(t.getNetworkType()).setMessage("groupType:".concat(e.type," groupID:").concat(s," overLimitUserIDList=").concat(u)).end(),Zs.log("".concat(n," ok groupID:").concat(s," overLimitUserIDList:"),u),e.type===Kn.GRP_AVCHATROOM)return t.getGroupProfile({groupID:s});Jc(e.memberList)||Jc(u)||(e.memberList=e.memberList.filter((function(e){return-1===u.indexOf(e.userID)}))),t.updateGroupMap([Mn({},e,{groupID:s})]);var l=t.getModule(rl),d=l.createCustomMessage({to:s,conversationType:Kn.CONV_GROUP,payload:{data:"group_create",extension:"".concat(t.getMyUserID(),"创建群组")}});return l.sendMessageInstance(d),t.emitGroupListUpdate(),t.getGroupProfile({groupID:s})})).then((function(e){var t=e.data.group,n=t.selfInfo,r=n.nameCard,i=n.joinTime;return t.updateSelfInfo({nameCard:r,joinTime:i,messageRemindType:Kn.MSG_REMIND_ACPT_AND_NOTE,role:Kn.GRP_MBR_ROLE_OWNER}),bm({group:t,overLimitUserIDList:a})})).catch((function(r){return o.setMessage("groupType:".concat(e.type)),t.probeNetwork().then((function(e){var t=Un(e,2),n=t[0],i=t[1];o.setError(r,n,i).end()})),Zs.error("".concat(n," failed. error:"),r),Am(r)}))}},{key:"dismissGroup",value:function(e){var t=this,n="".concat(this._className,".dismissGroup");if(this.hasLocalGroup(e)&&this.getLocalGroupProfile(e).type===Kn.GRP_WORK)return Am(new Mm({code:Yd.CANNOT_DISMISS_WORK,message:Jd.CANNOT_DISMISS_WORK}));var r=new dh(sf);return r.setMessage("groupID:".concat(e)),Zs.log("".concat(n," groupID:").concat(e)),this.request({protocolName:td,requestData:{groupID:e}}).then((function(){return r.setNetworkType(t.getNetworkType()).end(),Zs.log("".concat(n," ok")),t.deleteLocalGroupAndConversation(e),t.checkJoinedAVChatRoomByID(e)&&t._AVChatRoomHandler.reset(e),bm({groupID:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=Un(t,2),i=n[0],o=n[1];r.setError(e,i,o).end()})),Zs.error("".concat(n," failed. error:"),e),Am(e)}))}},{key:"updateGroupProfile",value:function(e){var t=this,n="".concat(this._className,".updateGroupProfile");!this.hasLocalGroup(e.groupID)||Rc(this.getLocalGroupProfile(e.groupID).type)||fc(e.joinOption)||(Zs.warn("".concat(n," Work/Meeting/AVChatRoom/Community 群不能设置字段 joinOption,自动忽略该字段")),e.joinOption=void 0),fc(e.muteAllMembers)||(e.muteAllMembers?e.muteAllMembers="On":e.muteAllMembers="Off");var r=new dh(cf);return r.setMessage(JSON.stringify(e)),Zs.log("".concat(n," groupID:").concat(e.groupID)),this.request({protocolName:nd,requestData:e}).then((function(){return r.setNetworkType(t.getNetworkType()).end(),Zs.log("".concat(n," ok")),t.hasLocalGroup(e.groupID)&&(t.groupMap.get(e.groupID).updateGroup(e),t._setStorageGroupList()),bm({group:t.groupMap.get(e.groupID)})})).catch((function(e){return t.probeNetwork().then((function(t){var n=Un(t,2),i=n[0],o=n[1];r.setError(e,i,o).end()})),Zs.log("".concat(n," failed. error:"),e),Am(e)}))}},{key:"joinGroup",value:function(e){var t=this,n=e.groupID,r=e.type,i="".concat(this._className,".joinGroup");if(r===Kn.GRP_WORK){var o=new Mm({code:Yd.CANNOT_JOIN_WORK,message:Jd.CANNOT_JOIN_WORK});return Am(o)}if(this.deleteUnjoinedAVChatRoom(n),this.hasLocalGroup(n)){if(!this.isLoggedIn())return Em({status:Kn.JOIN_STATUS_ALREADY_IN_GROUP});var a=new dh(Qh);return this.getGroupProfile({groupID:n}).then((function(){return a.setNetworkType(t.getNetworkType()).setMessage("groupID:".concat(n," joinedStatus:").concat(Kn.JOIN_STATUS_ALREADY_IN_GROUP)).end(),Em({status:Kn.JOIN_STATUS_ALREADY_IN_GROUP})})).catch((function(r){return a.setNetworkType(t.getNetworkType()).setMessage("groupID:".concat(n," unjoined")).end(),Zs.warn("".concat(i," ").concat(n," was unjoined, now join!")),t.groupMap.delete(n),t.applyJoinGroup(e)}))}return Zs.log("".concat(i," groupID:").concat(n)),this.isLoggedIn()?this.applyJoinGroup(e):this._AVChatRoomHandler.joinWithoutAuth(e)}},{key:"applyJoinGroup",value:function(e){var t=this,n="".concat(this._className,".applyJoinGroup"),r=e.groupID,i=new dh(Qh),o=Mn({},e),a=this.canIUse(ns.AVCHATROOM_HISTORY_MSG);return a&&(o.historyMessageFlag=1),this.request({protocolName:rd,requestData:o}).then((function(e){var o=e.data,s=o.joinedStatus,c=o.longPollingKey,u=o.avChatRoomFlag,l=o.avChatRoomKey,d=o.messageList,h="groupID:".concat(r," joinedStatus:").concat(s," longPollingKey:").concat(c)+" avChatRoomFlag:".concat(u," canGetAVChatRoomHistoryMessage:").concat(a);switch(i.setNetworkType(t.getNetworkType()).setMessage("".concat(h)).end(),Zs.log("".concat(n," ok. ").concat(h)),s){case oc:return bm({status:oc});case ic:return t.getGroupProfile({groupID:r}).then((function(e){var n,i=e.data.group,o={status:ic,group:i};return 1===u?(t.getModule(ul).setCompleted("".concat(Kn.CONV_GROUP).concat(r)),t._groupAttributesHandler.initGroupAttributesCache({groupID:r,avChatRoomKey:l}),(n=fc(c)?t._AVChatRoomHandler.handleJoinResult({group:i}):t._AVChatRoomHandler.startRunLoop({longPollingKey:c,group:i})).then((function(){t._onAVChatRoomHistoryMessage(d)})),n):(t.emitGroupListUpdate(!0,!1),bm(o))}));default:var f=new Mm({code:Yd.JOIN_GROUP_FAIL,message:Jd.JOIN_GROUP_FAIL});return Zs.error("".concat(n," error:"),f),Am(f)}})).catch((function(r){return i.setMessage("groupID:".concat(e.groupID)),t.probeNetwork().then((function(e){var t=Un(e,2),n=t[0],o=t[1];i.setError(r,n,o).end()})),Zs.error("".concat(n," error:"),r),Am(r)}))}},{key:"quitGroup",value:function(e){var t=this,n="".concat(this._className,".quitGroup");Zs.log("".concat(n," groupID:").concat(e));var r=this.checkJoinedAVChatRoomByID(e);if(!r&&!this.hasLocalGroup(e)){var i=new Mm({code:Yd.MEMBER_NOT_IN_GROUP,message:Jd.MEMBER_NOT_IN_GROUP});return Am(i)}if(r&&!this.isLoggedIn())return Zs.log("".concat(n," anonymously ok. groupID:").concat(e)),this.deleteLocalGroupAndConversation(e),this._AVChatRoomHandler.reset(e),Em({groupID:e});var o=new dh(ef);return o.setMessage("groupID:".concat(e)),this.request({protocolName:od,requestData:{groupID:e}}).then((function(){return o.setNetworkType(t.getNetworkType()).end(),Zs.log("".concat(n," ok")),r&&t._AVChatRoomHandler.reset(e),t.deleteLocalGroupAndConversation(e),bm({groupID:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=Un(t,2),r=n[0],i=n[1];o.setError(e,r,i).end()})),Zs.error("".concat(n," failed. error:"),e),Am(e)}))}},{key:"searchGroupByID",value:function(e){var t=this,n="".concat(this._className,".searchGroupByID"),r={groupIDList:[e]},i=new dh(tf);return i.setMessage("groupID:".concat(e)),Zs.log("".concat(n," groupID:").concat(e)),this.request({protocolName:ad,requestData:r}).then((function(e){var r=e.data.groupProfile;if(0!==r[0].errorCode)throw new Mm({code:r[0].errorCode,message:r[0].errorInfo});return i.setNetworkType(t.getNetworkType()).end(),Zs.log("".concat(n," ok")),bm({group:new tv(r[0])})})).catch((function(e){return t.probeNetwork().then((function(t){var n=Un(t,2),r=n[0],o=n[1];i.setError(e,r,o).end()})),Zs.warn("".concat(n," failed. error:"),e),Am(e)}))}},{key:"changeGroupOwner",value:function(e){var t=this,n="".concat(this._className,".changeGroupOwner");if(this.hasLocalGroup(e.groupID)&&this.getLocalGroupProfile(e.groupID).type===Kn.GRP_AVCHATROOM)return Am(new Mm({code:Yd.CANNOT_CHANGE_OWNER_IN_AVCHATROOM,message:Jd.CANNOT_CHANGE_OWNER_IN_AVCHATROOM}));if(e.newOwnerID===this.getMyUserID())return Am(new Mm({code:Yd.CANNOT_CHANGE_OWNER_TO_SELF,message:Jd.CANNOT_CHANGE_OWNER_TO_SELF}));var r=new dh(nf);return r.setMessage("groupID:".concat(e.groupID," newOwnerID:").concat(e.newOwnerID)),Zs.log("".concat(n," groupID:").concat(e.groupID)),this.request({protocolName:sd,requestData:e}).then((function(){r.setNetworkType(t.getNetworkType()).end(),Zs.log("".concat(n," ok"));var i=e.groupID,o=e.newOwnerID;t.groupMap.get(i).ownerID=o;var a=t.getModule(cl).getLocalGroupMemberList(i);if(a instanceof Map){var s=a.get(t.getMyUserID());fc(s)||(s.updateRole("Member"),t.groupMap.get(i).selfInfo.role="Member");var c=a.get(o);fc(c)||c.updateRole("Owner")}return t.emitGroupListUpdate(!0,!1),bm({group:t.groupMap.get(i)})})).catch((function(e){return t.probeNetwork().then((function(t){var n=Un(t,2),i=n[0],o=n[1];r.setError(e,i,o).end()})),Zs.error("".concat(n," failed. error:"),e),Am(e)}))}},{key:"handleGroupApplication",value:function(e){var t=this,n="".concat(this._className,".handleGroupApplication"),r=e.message.payload,i=r.groupProfile.groupID,o=r.authentication,a=r.messageKey,s=r.operatorID,c=new dh(rf);return c.setMessage("groupID:".concat(i)),Zs.log("".concat(n," groupID:").concat(i)),this.request({protocolName:cd,requestData:Mn({},e,{applicant:s,groupID:i,authentication:o,messageKey:a})}).then((function(){return c.setNetworkType(t.getNetworkType()).end(),Zs.log("".concat(n," ok")),t._groupSystemNoticeHandler.deleteGroupSystemNotice({messageList:[e.message]}),bm({group:t.getLocalGroupProfile(i)})})).catch((function(e){return t.probeNetwork().then((function(t){var n=Un(t,2),r=n[0],i=n[1];c.setError(e,r,i).end()})),Zs.error("".concat(n," failed. error"),e),Am(e)}))}},{key:"handleGroupInvitation",value:function(e){var t=this,n="".concat(this._className,".handleGroupInvitation"),r=e.message.payload,i=r.groupProfile.groupID,o=r.authentication,a=r.messageKey,s=r.operatorID,c=e.handleAction,u=new dh(of);return u.setMessage("groupID:".concat(i," inviter:").concat(s," handleAction:").concat(c)),Zs.log("".concat(n," groupID:").concat(i," inviter:").concat(s," handleAction:").concat(c)),this.request({protocolName:ud,requestData:Mn({},e,{inviter:s,groupID:i,authentication:o,messageKey:a})}).then((function(){return u.setNetworkType(t.getNetworkType()).end(),Zs.log("".concat(n," ok")),t._groupSystemNoticeHandler.deleteGroupSystemNotice({messageList:[e.message]}),bm({group:t.getLocalGroupProfile(i)})})).catch((function(e){return t.probeNetwork().then((function(t){var n=Un(t,2),r=n[0],i=n[1];u.setError(e,r,i).end()})),Zs.error("".concat(n," failed. error"),e),Am(e)}))}},{key:"getGroupOnlineMemberCount",value:function(e){return this._AVChatRoomHandler?this._AVChatRoomHandler.checkJoinedAVChatRoomByID(e)?this._AVChatRoomHandler.getGroupOnlineMemberCount(e):Em({memberCount:0}):Am({code:Yd.CANNOT_FIND_MODULE,message:Jd.CANNOT_FIND_MODULE})}},{key:"hasLocalGroup",value:function(e){return this.groupMap.has(e)}},{key:"deleteLocalGroupAndConversation",value:function(e){this._deleteLocalGroup(e),this.getModule(ul).deleteLocalConversation("GROUP".concat(e)),this.emitGroupListUpdate(!0,!1)}},{key:"_deleteLocalGroup",value:function(e){this.groupMap.delete(e),this.getModule(cl).deleteGroupMemberList(e),this._setStorageGroupList()}},{key:"sendMessage",value:function(e,t){var n=this.createGroupMessagePack(e,t);return this.request(n)}},{key:"createGroupMessagePack",value:function(e,t){var n=null;t&&t.offlinePushInfo&&(n=t.offlinePushInfo);var r="";uc(e.cloudCustomData)&&e.cloudCustomData.length>0&&(r=e.cloudCustomData);var i=[];if(dc(t)&&dc(t.messageControlInfo)){var o=t.messageControlInfo,a=o.excludedFromUnreadCount,s=o.excludedFromLastMessage;!0===a&&i.push("NoUnread"),!0===s&&i.push("NoLastMsg")}var c=e.getGroupAtInfoList();return{protocolName:Ll,tjgID:this.generateTjgID(e),requestData:{fromAccount:this.getMyUserID(),groupID:e.to,msgBody:e.getElements(),cloudCustomData:r,random:e.random,priority:e.priority,clientSequence:e.clientSequence,groupAtInfo:e.type!==Kn.MSG_TEXT||Jc(c)?void 0:c,onlineOnlyFlag:this.isOnlineMessage(e,t)?1:0,clientTime:e.clientTime,offlinePushInfo:n?{pushFlag:!0===n.disablePush?1:0,title:n.title||"",desc:n.description||"",ext:n.extension||"",apnsInfo:{badgeMode:!0===n.ignoreIOSBadge?1:0},androidInfo:{OPPOChannelID:n.androidOPPOChannelID||""}}:void 0,messageControlInfo:i,needReadReceipt:!0!==e.needReadReceipt||this.isMessageFromOrToAVChatroom(e.to)?0:1}}}},{key:"revokeMessage",value:function(e){return this.request({protocolName:ld,requestData:{groupID:e.to,msgSeqList:[{msgSeq:e.sequence}]}})}},{key:"deleteMessage",value:function(e){var t=e.to,n=e.keyList;return Zs.log("".concat(this._className,".deleteMessage groupID:").concat(t," count:").concat(n.length)),this.request({protocolName:xd,requestData:{groupID:t,deleter:this.getMyUserID(),keyList:n}})}},{key:"getRoamingMessage",value:function(e){var t=this,n="".concat(this._className,".getRoamingMessage"),r=new dh(Dh),i=0;return this._computeLastSequence(e).then((function(r){return i=r,Zs.log("".concat(n," groupID:").concat(e.groupID," lastSequence:").concat(i)),t.request({protocolName:fd,requestData:{groupID:e.groupID,count:21,sequence:i}})})).then((function(o){var a=o.data,s=a.messageList,c=a.complete;fc(s)?Zs.log("".concat(n," ok. complete:").concat(c," but messageList is undefined!")):Zs.log("".concat(n," ok. complete:").concat(c," count:").concat(s.length)),r.setNetworkType(t.getNetworkType()).setMessage("groupID:".concat(e.groupID," lastSequence:").concat(i," complete:").concat(c," count:").concat(s?s.length:"undefined")).end();var u="GROUP".concat(e.groupID),l=t.getModule(ul);if(2===c||Jc(s))return l.setCompleted(u),[];var d=l.storeRoamingMessage(s,u);return l.updateIsRead(u),l.patchConversationLastMessage(u),d})).catch((function(o){return t.probeNetwork().then((function(t){var n=Un(t,2),a=n[0],s=n[1];r.setError(o,a,s).setMessage("groupID:".concat(e.groupID," lastSequence:").concat(i)).end()})),Zs.warn("".concat(n," failed. error:"),o),Am(o)}))}},{key:"_getGroupIDOfMessage",value:function(e){return e.conversationID.replace(Kn.CONV_GROUP,"")}},{key:"getReadReceiptList",value:function(e){var t=this,n="".concat(this._className,".getReadReceiptList"),r=this._getGroupIDOfMessage(e[0]),i=this.getMyUserID(),o=e.filter((function(e){return e.from===i&&!0===e.needReadReceipt})).map((function(e){return{sequence:e.sequence}}));if(Zs.log("".concat(n," groupID:").concat(r," sequenceList:").concat(JSON.stringify(o))),0===o.length)return Em({messageList:e});var a=new dh(Oh);return a.setMessage("groupID:".concat(r)),this.request({protocolName:pd,requestData:{groupID:r,sequenceList:o}}).then((function(t){a.end(),Zs.log("".concat(n," ok"));var r=t.data.readReceiptList;return hc(r)&&r.forEach((function(t){e.forEach((function(e){0===t.code&&t.sequence===e.sequence&&(e.readReceiptInfo.readCount=t.readCount,e.readReceiptInfo.unreadCount=t.unreadCount)}))})),bm({messageList:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=Un(t,2),r=n[0],i=n[1];a.setError(e,r,i).end()})),Zs.warn("".concat(n," failed. error:"),e),Am(e)}))}},{key:"sendReadReceipt",value:function(e){var t=this,n=this._getGroupIDOfMessage(e[0]),r=new dh(Lh);r.setMessage("groupID:".concat(n));var i=this.getMyUserID(),o=e.filter((function(e){return e.from!==i&&!0===e.needReadReceipt})).map((function(e){return{sequence:e.sequence}}));if(0===o.length)return Am({code:Yd.READ_RECEIPT_SEQUENCE_LIST_EMPTY,message:Jd.READ_RECEIPT_SEQUENCE_LIST_EMPTY});var a="".concat(this._className,".sendReadReceipt");return Zs.log("".concat(a,". sequenceList:").concat(JSON.stringify(o))),this.request({protocolName:gd,requestData:{groupID:n,sequenceList:o}}).then((function(e){return r.end(),Zs.log("".concat(a," ok")),bm()})).catch((function(e){return t.probeNetwork().then((function(t){var n=Un(t,2),i=n[0],o=n[1];r.setError(e,i,o).end()})),Zs.warn("".concat(a," failed. error:"),e),Am(e)}))}},{key:"getReadReceiptDetail",value:function(e){var t=this,n=e.message,r=e.filter,i=e.cursor,o=e.count,a=this._getGroupIDOfMessage(n),s=n.ID,c=n.sequence,u="".concat(this._className,".getReadReceiptDetail"),l=this._receiptDetailCompleteMap.get(s)||!1,d=0!==r&&1!==r?0:r,h=uc(i)?i:"",f=!cc(o)||o<=0||o>=100?100:o,p="groupID:".concat(a," sequence:").concat(c," cursor:").concat(h," filter:").concat(d," completeFlag:").concat(l);Zs.log("".concat(u," ").concat(p));var g={cursor:"",isCompleted:!1,messageID:s,unreadUserIDList:[],readUserIDList:[]};if(!0===l)return g.isCompleted=!0,Em(g);var m=new dh(Rh);return m.setMessage(p),this.request({protocolName:md,requestData:{groupID:a,sequence:c,flag:d,cursor:h,count:f}}).then((function(e){m.end();var n=e.data,r=n.cursor,i=n.isCompleted,o=n.unreadUserIDList,a=n.readUserIDList;return g.cursor=r,1===i&&(g.isCompleted=!0,t._receiptDetailCompleteMap.set(s,!0)),0===d?g.readUserIDList=a.map((function(e){return e.userID})):1===d&&(g.unreadUserIDList=o.map((function(e){return e.userID}))),Zs.log("".concat(u," ok")),bm(g)})).catch((function(e){return t.probeNetwork().then((function(t){var n=Un(t,2),r=n[0],i=n[1];m.setError(e,r,i).end()})),Zs.warn("".concat(u," failed. error:"),e),Am(e)}))}},{key:"setMessageRead",value:function(e){var t=this,n=e.conversationID,r=e.lastMessageSeq,i="".concat(this._className,".setMessageRead");Zs.log("".concat(i," conversationID:").concat(n," lastMessageSeq:").concat(r)),cc(r)||Zs.warn("".concat(i," 请勿修改 Conversation.lastMessage.lastSequence,否则可能会导致已读上报结果不准确"));var o=new dh(Fh);return o.setMessage("".concat(n,"-").concat(r)),this.request({protocolName:dd,requestData:{groupID:n.replace(Kn.CONV_GROUP,""),messageReadSeq:r}}).then((function(){o.setNetworkType(t.getNetworkType()).end(),Zs.log("".concat(i," ok."));var e=t.getModule(ul);return e.updateIsReadAfterReadReport({conversationID:n,lastMessageSeq:r}),e.updateUnreadCount(n),bm()})).catch((function(e){return t.probeNetwork().then((function(t){var n=Un(t,2),r=n[0],i=n[1];o.setError(e,r,i).end()})),Zs.log("".concat(i," failed. error:"),e),Am(e)}))}},{key:"_computeLastSequence",value:function(e){return e.sequence>0?Promise.resolve(e.sequence):this.getGroupLastSequence(e.groupID)}},{key:"getGroupLastSequence",value:function(e){var t=this,n="".concat(this._className,".getGroupLastSequence"),r=new dh(hf),i=0,o="";if(this.hasLocalGroup(e)){var a=this.getLocalGroupProfile(e),s=a.lastMessage;if(s.lastSequence>0&&!1===s.onlineOnlyFlag)return i=s.lastSequence,o="got lastSequence:".concat(i," from local group profile[lastMessage.lastSequence]. groupID:").concat(e),Zs.log("".concat(n," ").concat(o)),r.setNetworkType(this.getNetworkType()).setMessage("".concat(o)).end(),Promise.resolve(i);if(a.nextMessageSeq>1)return i=a.nextMessageSeq-1,o="got lastSequence:".concat(i," from local group profile[nextMessageSeq]. groupID:").concat(e),Zs.log("".concat(n," ").concat(o)),r.setNetworkType(this.getNetworkType()).setMessage("".concat(o)).end(),Promise.resolve(i)}var c="GROUP".concat(e),u=this.getModule(ul).getLocalConversation(c);if(u&&u.lastMessage.lastSequence&&!1===u.lastMessage.onlineOnlyFlag)return i=u.lastMessage.lastSequence,o="got lastSequence:".concat(i," from local conversation profile[lastMessage.lastSequence]. groupID:").concat(e),Zs.log("".concat(n," ").concat(o)),r.setNetworkType(this.getNetworkType()).setMessage("".concat(o)).end(),Promise.resolve(i);var l={groupIDList:[e],responseFilter:{groupBaseInfoFilter:["NextMsgSeq"]}};return this.getGroupProfileAdvance(l).then((function(a){var s=a.data.successGroupList;return Jc(s)?Zs.log("".concat(n," successGroupList is empty. groupID:").concat(e)):(i=s[0].nextMessageSeq-1,o="got lastSequence:".concat(i," from getGroupProfileAdvance. groupID:").concat(e),Zs.log("".concat(n," ").concat(o))),r.setNetworkType(t.getNetworkType()).setMessage("".concat(o)).end(),i})).catch((function(i){return t.probeNetwork().then((function(t){var n=Un(t,2),o=n[0],a=n[1];r.setError(i,o,a).setMessage("get lastSequence failed from getGroupProfileAdvance. groupID:".concat(e)).end()})),Zs.warn("".concat(n," failed. error:"),i),Am(i)}))}},{key:"isMessageFromOrToAVChatroom",value:function(e){return!!this._AVChatRoomHandler&&this._AVChatRoomHandler.checkJoinedAVChatRoomByID(e)}},{key:"hasJoinedAVChatRoom",value:function(){return this._AVChatRoomHandler?this._AVChatRoomHandler.hasJoinedAVChatRoom():0}},{key:"getJoinedAVChatRoom",value:function(){return this._AVChatRoomHandler?this._AVChatRoomHandler.getJoinedAVChatRoom():[]}},{key:"isOnlineMessage",value:function(e,t){return!(!this._canIUseOnlineOnlyFlag(e)||!t||!0!==t.onlineUserOnly)}},{key:"_canIUseOnlineOnlyFlag",value:function(e){var t=this.getJoinedAVChatRoom();return!t||!t.includes(e.to)||e.conversationType!==Kn.CONV_GROUP}},{key:"_onAVChatRoomHistoryMessage",value:function(e){if(!Jc(e)){Zs.log("".concat(this._className,"._onAVChatRoomHistoryMessage count:").concat(e.length));var t=[];e.forEach((function(e){t.push(Mn({},e,{isHistoryMessage:1}))})),this.onAVChatRoomMessage(t)}}},{key:"onAVChatRoomMessage",value:function(e){this._AVChatRoomHandler&&this._AVChatRoomHandler.onMessage(e)}},{key:"getGroupSimplifiedInfo",value:function(e){var t=this,n=new dh(gf),r={groupIDList:[e],responseFilter:{groupBaseInfoFilter:["Type","Name"]}};return this.getGroupProfileAdvance(r).then((function(r){var i=r.data.successGroupList;return n.setNetworkType(t.getNetworkType()).setMessage("groupID:".concat(e," type:").concat(i[0].type)).end(),i[0]})).catch((function(r){t.probeNetwork().then((function(t){var i=Un(t,2),o=i[0],a=i[1];n.setError(r,o,a).setMessage("groupID:".concat(e)).end()}))}))}},{key:"setUnjoinedAVChatRoom",value:function(e){this._unjoinedAVChatRoomList.set(e,1)}},{key:"deleteUnjoinedAVChatRoom",value:function(e){this._unjoinedAVChatRoomList.has(e)&&this._unjoinedAVChatRoomList.delete(e)}},{key:"isUnjoinedAVChatRoom",value:function(e){return this._unjoinedAVChatRoomList.has(e)}},{key:"onGroupAttributesUpdated",value:function(e){this._groupAttributesHandler&&this._groupAttributesHandler.onGroupAttributesUpdated(e)}},{key:"updateLocalMainSequenceOnReconnected",value:function(){this._groupAttributesHandler&&this._groupAttributesHandler.updateLocalMainSequenceOnReconnected()}},{key:"initGroupAttributes",value:function(e){return this._groupAttributesHandler.initGroupAttributes(e)}},{key:"setGroupAttributes",value:function(e){return this._groupAttributesHandler.setGroupAttributes(e)}},{key:"deleteGroupAttributes",value:function(e){return this._groupAttributesHandler.deleteGroupAttributes(e)}},{key:"getGroupAttributes",value:function(e){return this._groupAttributesHandler.getGroupAttributes(e)}},{key:"reset",value:function(){this.groupMap.clear(),this._unjoinedAVChatRoomList.clear(),this._receiptDetailCompleteMap.clear(),this._commonGroupHandler.reset(),this._groupSystemNoticeHandler.reset(),this._groupTipsHandler.reset(),this._AVChatRoomHandler&&this._AVChatRoomHandler.reset()}}]),n}(Ml),Sv=function(){function e(t){Sn(this,e),this.userID="",this.avatar="",this.nick="",this.role="",this.joinTime="",this.lastSendMsgTime="",this.nameCard="",this.muteUntil=0,this.memberCustomField=[],this._initMember(t)}return wn(e,[{key:"_initMember",value:function(e){this.updateMember(e)}},{key:"updateMember",value:function(e){var t=[null,void 0,"",0,NaN];e.memberCustomField&&Oc(this.memberCustomField,e.memberCustomField),Sc(this,e,["memberCustomField"],t)}},{key:"updateRole",value:function(e){["Owner","Admin","Member"].indexOf(e)<0||(this.role=e)}},{key:"updateMuteUntil",value:function(e){fc(e)||(this.muteUntil=Math.floor((Date.now()+1e3*e)/1e3))}},{key:"updateNameCard",value:function(e){fc(e)||(this.nameCard=e)}},{key:"updateMemberCustomField",value:function(e){e&&Oc(this.memberCustomField,e)}}]),e}(),xv=function(e){Tn(n,e);var t=Nn(n);function n(e){var r;return Sn(this,n),(r=t.call(this,e))._className="GroupMemberModule",r.groupMemberListMap=new Map,r.getInnerEmitterInstance().on(zm,r._onProfileUpdated,Ln(r)),r}return wn(n,[{key:"_onProfileUpdated",value:function(e){for(var t=this,n=e.data,r=function(e){var r=n[e];t.groupMemberListMap.forEach((function(e){e.has(r.userID)&&e.get(r.userID).updateMember({nick:r.nick,avatar:r.avatar})}))},i=0;i<n.length;i++)r(i)}},{key:"deleteGroupMemberList",value:function(e){this.groupMemberListMap.delete(e)}},{key:"getGroupMemberList",value:function(e){var t=this,n=e.groupID,r=e.offset,i=void 0===r?0:r,o=e.count,a=void 0===o?15:o,s="".concat(this._className,".getGroupMemberList"),c=new dh(Sf);Zs.log("".concat(s," groupID:").concat(n," offset:").concat(i," count:").concat(a));var u=0,l={groupID:n,limit:a>100?100:a};Pc({groupID:n})?l.next="".concat(i):(l.offset=i,u=i+1);var d=[];return this.request({protocolName:kd,requestData:l}).then((function(e){var r=e.data,i=r.members,o=r.memberNum,a=r.next,s=void 0===a?void 0:a;if(fc(s)||(u=Jc(s)?0:s),!hc(i)||0===i.length)return u=0,Promise.resolve([]);var c=t.getModule(al);return c.hasLocalGroup(n)&&(c.getLocalGroupProfile(n).memberNum=o),d=t._updateLocalGroupMemberMap(n,i),t.getModule(il).getUserProfile({userIDList:i.map((function(e){return e.userID})),tagList:[ec.NICK,ec.AVATAR]})})).then((function(e){var r=e.data;if(!hc(r)||0===r.length)return Em({memberList:[],offset:u});var i=r.map((function(e){return{userID:e.userID,nick:e.nick,avatar:e.avatar}}));return t._updateLocalGroupMemberMap(n,i),c.setNetworkType(t.getNetworkType()).setMessage("groupID:".concat(n," offset:").concat(u," count:").concat(a)).end(),Zs.log("".concat(s," ok.")),bm({memberList:d,offset:u})})).catch((function(e){return t.probeNetwork().then((function(t){var n=Un(t,2),r=n[0],i=n[1];c.setError(e,r,i).end()})),Zs.error("".concat(s," failed. error:"),e),Am(e)}))}},{key:"getGroupMemberProfile",value:function(e){var t=this,n="".concat(this._className,".getGroupMemberProfile"),r=new dh(xf);r.setMessage(e.userIDList.length>5?"userIDList.length:".concat(e.userIDList.length):"userIDList:".concat(e.userIDList)),Zs.log("".concat(n," groupID:").concat(e.groupID," userIDList:").concat(e.userIDList.join(","))),e.userIDList.length>50&&(e.userIDList=e.userIDList.slice(0,50));var i=e.groupID,o=e.userIDList;return this._getGroupMemberProfileAdvance(Mn({},e,{userIDList:o})).then((function(e){var n=e.data.members;return hc(n)&&0!==n.length?(t._updateLocalGroupMemberMap(i,n),t.getModule(il).getUserProfile({userIDList:n.map((function(e){return e.userID})),tagList:[ec.NICK,ec.AVATAR]})):Em([])})).then((function(e){var n=e.data.map((function(e){return{userID:e.userID,nick:e.nick,avatar:e.avatar}}));t._updateLocalGroupMemberMap(i,n);var a=o.filter((function(e){return t.hasLocalGroupMember(i,e)})).map((function(e){return t.getLocalGroupMemberInfo(i,e)}));return r.setNetworkType(t.getNetworkType()).end(),bm({memberList:a})}))}},{key:"addGroupMember",value:function(e){var t=this,n="".concat(this._className,".addGroupMember"),r=e.groupID,i=this.getModule(al).getLocalGroupProfile(r),o=i.type,a=new dh(wf);if(a.setMessage("groupID:".concat(r," groupType:").concat(o)),Lc(o)){var s=new Mm({code:Yd.CANNOT_ADD_MEMBER_IN_AVCHATROOM,message:Jd.CANNOT_ADD_MEMBER_IN_AVCHATROOM});return a.setCode(Yd.CANNOT_ADD_MEMBER_IN_AVCHATROOM).setError(Jd.CANNOT_ADD_MEMBER_IN_AVCHATROOM).setNetworkType(this.getNetworkType()).end(),Am(s)}return e.userIDList=e.userIDList.map((function(e){return{userID:e}})),Zs.log("".concat(n," groupID:").concat(r)),this.request({protocolName:Ad,requestData:e}).then((function(r){var o=r.data.members;Zs.log("".concat(n," ok"));var s=o.filter((function(e){return 1===e.result})).map((function(e){return e.userID})),c=o.filter((function(e){return 0===e.result})).map((function(e){return e.userID})),u=o.filter((function(e){return 2===e.result})).map((function(e){return e.userID})),l=o.filter((function(e){return 4===e.result})).map((function(e){return e.userID})),d="groupID:".concat(e.groupID,", ")+"successUserIDList:".concat(s,", ")+"failureUserIDList:".concat(c,", ")+"existedUserIDList:".concat(u,", ")+"overLimitUserIDList:".concat(l);return a.setNetworkType(t.getNetworkType()).setMoreMessage(d).end(),0===s.length?bm({successUserIDList:s,failureUserIDList:c,existedUserIDList:u,overLimitUserIDList:l}):(i.memberCount+=s.length,t._updateConversationGroupProfile(i),bm({successUserIDList:s,failureUserIDList:c,existedUserIDList:u,overLimitUserIDList:l,group:i}))})).catch((function(e){return t.probeNetwork().then((function(t){var n=Un(t,2),r=n[0],i=n[1];a.setError(e,r,i).end()})),Zs.error("".concat(n," failed. error:"),e),Am(e)}))}},{key:"deleteGroupMember",value:function(e){var t=this,n="".concat(this._className,".deleteGroupMember"),r=e.groupID,i=e.userIDList,o=new dh(If),a="groupID:".concat(r," ").concat(i.length>5?"userIDList.length:".concat(i.length):"userIDList:".concat(i));o.setMessage(a),Zs.log("".concat(n," groupID:").concat(r," userIDList:"),i);var s=this.getModule(al).getLocalGroupProfile(r);return Lc(s.type)?Am(new Mm({code:Yd.CANNOT_KICK_MEMBER_IN_AVCHATROOM,message:Jd.CANNOT_KICK_MEMBER_IN_AVCHATROOM})):this.request({protocolName:Dd,requestData:e}).then((function(){return o.setNetworkType(t.getNetworkType()).end(),Zs.log("".concat(n," ok")),s.memberCount-=1,t._updateConversationGroupProfile(s),t.deleteLocalGroupMembers(r,i),bm({group:s,userIDList:i})})).catch((function(e){return t.probeNetwork().then((function(t){var n=Un(t,2),r=n[0],i=n[1];o.setError(e,r,i).end()})),Zs.error("".concat(n," failed. error:"),e),Am(e)}))}},{key:"_updateConversationGroupProfile",value:function(e){this.getModule(ul).updateConversationGroupProfile([e])}},{key:"setGroupMemberMuteTime",value:function(e){var t=this,n=e.groupID,r=e.userID,i=e.muteTime,o="".concat(this._className,".setGroupMemberMuteTime");if(r===this.getMyUserID())return Am(new Mm({code:Yd.CANNOT_MUTE_SELF,message:Jd.CANNOT_MUTE_SELF}));Zs.log("".concat(o," groupID:").concat(n," userID:").concat(r));var a=new dh(Cf);return a.setMessage("groupID:".concat(n," userID:").concat(r," muteTime:").concat(i)),this.modifyGroupMemberInfo({groupID:n,userID:r,muteTime:i}).then((function(e){a.setNetworkType(t.getNetworkType()).end(),Zs.log("".concat(o," ok"));var r=t.getModule(al);return bm({group:r.getLocalGroupProfile(n),member:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=Un(t,2),r=n[0],i=n[1];a.setError(e,r,i).end()})),Zs.error("".concat(o," failed. error:"),e),Am(e)}))}},{key:"setGroupMemberRole",value:function(e){var t=this,n="".concat(this._className,".setGroupMemberRole"),r=e.groupID,i=e.userID,o=e.role,a=this.getModule(al).getLocalGroupProfile(r);if(a.selfInfo.role!==Kn.GRP_MBR_ROLE_OWNER)return Am({code:Yd.NOT_OWNER,message:Jd.NOT_OWNER});if([Kn.GRP_WORK,Kn.GRP_AVCHATROOM].includes(a.type))return Am({code:Yd.CANNOT_SET_MEMBER_ROLE_IN_WORK_AND_AVCHATROOM,message:Jd.CANNOT_SET_MEMBER_ROLE_IN_WORK_AND_AVCHATROOM});var s=[Kn.GRP_MBR_ROLE_ADMIN,Kn.GRP_MBR_ROLE_MEMBER];if(Pc({groupID:r})&&s.push(Kn.GRP_MBR_ROLE_CUSTOM),s.indexOf(o)<0)return Am({code:Yd.INVALID_MEMBER_ROLE,message:Jd.INVALID_MEMBER_ROLE});if(i===this.getMyUserID())return Am({code:Yd.CANNOT_SET_SELF_MEMBER_ROLE,message:Jd.CANNOT_SET_SELF_MEMBER_ROLE});var c=new dh(Tf);return c.setMessage("groupID:".concat(r," userID:").concat(i," role:").concat(o)),Zs.log("".concat(n," groupID:").concat(r," userID:").concat(i)),this.modifyGroupMemberInfo({groupID:r,userID:i,role:o}).then((function(e){return c.setNetworkType(t.getNetworkType()).end(),Zs.log("".concat(n," ok")),bm({group:a,member:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=Un(t,2),r=n[0],i=n[1];c.setError(e,r,i).end()})),Zs.error("".concat(n," failed. error:"),e),Am(e)}))}},{key:"setGroupMemberNameCard",value:function(e){var t=this,n="".concat(this._className,".setGroupMemberNameCard"),r=e.groupID,i=e.userID,o=void 0===i?this.getMyUserID():i,a=e.nameCard;Zs.log("".concat(n," groupID:").concat(r," userID:").concat(o));var s=new dh(Mf);return s.setMessage("groupID:".concat(r," userID:").concat(o," nameCard:").concat(a)),this.modifyGroupMemberInfo({groupID:r,userID:o,nameCard:a}).then((function(e){Zs.log("".concat(n," ok")),s.setNetworkType(t.getNetworkType()).end();var i=t.getModule(al).getLocalGroupProfile(r);return o===t.getMyUserID()&&i&&i.setSelfNameCard(a),bm({group:i,member:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=Un(t,2),r=n[0],i=n[1];s.setError(e,r,i).end()})),Zs.error("".concat(n," failed. error:"),e),Am(e)}))}},{key:"setGroupMemberCustomField",value:function(e){var t=this,n="".concat(this._className,".setGroupMemberCustomField"),r=e.groupID,i=e.userID,o=void 0===i?this.getMyUserID():i,a=e.memberCustomField;Zs.log("".concat(n," groupID:").concat(r," userID:").concat(o));var s=new dh(kf);return s.setMessage("groupID:".concat(r," userID:").concat(o," memberCustomField:").concat(JSON.stringify(a))),this.modifyGroupMemberInfo({groupID:r,userID:o,memberCustomField:a}).then((function(e){s.setNetworkType(t.getNetworkType()).end(),Zs.log("".concat(n," ok"));var i=t.getModule(al).getLocalGroupProfile(r);return bm({group:i,member:e})})).catch((function(e){return t.probeNetwork().then((function(t){var n=Un(t,2),r=n[0],i=n[1];s.setError(e,r,i).end()})),Zs.error("".concat(n," failed. error:"),e),Am(e)}))}},{key:"modifyGroupMemberInfo",value:function(e){var t=this,n=e.groupID,r=e.userID;return this.request({protocolName:Od,requestData:e}).then((function(){if(t.hasLocalGroupMember(n,r)){var i=t.getLocalGroupMemberInfo(n,r);return fc(e.muteTime)||i.updateMuteUntil(e.muteTime),fc(e.role)||i.updateRole(e.role),fc(e.nameCard)||i.updateNameCard(e.nameCard),fc(e.memberCustomField)||i.updateMemberCustomField(e.memberCustomField),i}return t.getGroupMemberProfile({groupID:n,userIDList:[r]}).then((function(e){return Un(e.data.memberList,1)[0]}))}))}},{key:"_getGroupMemberProfileAdvance",value:function(e){return this.request({protocolName:Ed,requestData:Mn({},e,{memberInfoFilter:e.memberInfoFilter?e.memberInfoFilter:["Role","JoinTime","NameCard","ShutUpUntil"]})})}},{key:"_updateLocalGroupMemberMap",value:function(e,t){var n=this;return hc(t)&&0!==t.length?t.map((function(t){return n.hasLocalGroupMember(e,t.userID)?n.getLocalGroupMemberInfo(e,t.userID).updateMember(t):n.setLocalGroupMember(e,new Sv(t)),n.getLocalGroupMemberInfo(e,t.userID)})):[]}},{key:"deleteLocalGroupMembers",value:function(e,t){var n=this.groupMemberListMap.get(e);n&&t.forEach((function(e){n.delete(e)}))}},{key:"getLocalGroupMemberInfo",value:function(e,t){return this.groupMemberListMap.has(e)?this.groupMemberListMap.get(e).get(t):null}},{key:"setLocalGroupMember",value:function(e,t){if(this.groupMemberListMap.has(e))this.groupMemberListMap.get(e).set(t.userID,t);else{var n=(new Map).set(t.userID,t);this.groupMemberListMap.set(e,n)}}},{key:"getLocalGroupMemberList",value:function(e){return this.groupMemberListMap.get(e)}},{key:"hasLocalGroupMember",value:function(e,t){return this.groupMemberListMap.has(e)&&this.groupMemberListMap.get(e).has(t)}},{key:"hasLocalGroupMemberMap",value:function(e){return this.groupMemberListMap.has(e)}},{key:"reset",value:function(){this.groupMemberListMap.clear()}}]),n}(Ml),wv=function(){function e(t){Sn(this,e),this._userModule=t,this._className="ProfileHandler",this.TAG="profile",this.accountProfileMap=new Map,this.expirationTime=864e5}return wn(e,[{key:"setExpirationTime",value:function(e){this.expirationTime=e}},{key:"getUserProfile",value:function(e){var t=this,n=e.userIDList;e.fromAccount=this._userModule.getMyAccount(),n.length>100&&(Zs.warn("".concat(this._className,".getUserProfile 获取用户资料人数不能超过100人")),n.length=100);for(var r,i=[],o=[],a=0,s=n.length;a<s;a++)r=n[a],this._userModule.isMyFriend(r)&&this._containsAccount(r)?o.push(this._getProfileFromMap(r)):i.push(r);if(0===i.length)return Em(o);e.toAccount=i;var c=e.bFromGetMyProfile||!1,u=[];e.toAccount.forEach((function(e){u.push({toAccount:e,standardSequence:0,customSequence:0})})),e.userItem=u;var l=new dh(Rf);return l.setMessage(n.length>5?"userIDList.length:".concat(n.length):"userIDList:".concat(n)),this._userModule.request({protocolName:Pl,requestData:e}).then((function(e){l.setNetworkType(t._userModule.getNetworkType()).end(),Zs.info("".concat(t._className,".getUserProfile ok"));var n=t._handleResponse(e).concat(o);return bm(c?n[0]:n)})).catch((function(e){return t._userModule.probeNetwork().then((function(t){var n=Un(t,2),r=n[0],i=n[1];l.setError(e,r,i).end()})),Zs.error("".concat(t._className,".getUserProfile failed. error:"),e),Am(e)}))}},{key:"getMyProfile",value:function(){var e=this._userModule.getMyAccount();if(Zs.log("".concat(this._className,".getMyProfile myAccount:").concat(e)),this._fillMap(),this._containsAccount(e)){var t=this._getProfileFromMap(e);return Zs.debug("".concat(this._className,".getMyProfile from cache, myProfile:")+JSON.stringify(t)),Em(t)}return this.getUserProfile({fromAccount:e,userIDList:[e],bFromGetMyProfile:!0})}},{key:"_handleResponse",value:function(e){for(var t,n,r=bc.now(),i=e.data.userProfileItem,o=[],a=0,s=i.length;a<s;a++)"@TLS#NOT_FOUND"!==i[a].to&&""!==i[a].to&&(t=i[a].to,n=this._updateMap(t,this._getLatestProfileFromResponse(t,i[a].profileItem)),o.push(n));return Zs.log("".concat(this._className,"._handleResponse cost ").concat(bc.now()-r," ms")),o}},{key:"_getLatestProfileFromResponse",value:function(e,t){var n={};if(n.userID=e,n.profileCustomField=[],!Jc(t))for(var r=0,i=t.length;r<i;r++)if(t[r].tag.indexOf("Tag_Profile_Custom")>-1)n.profileCustomField.push({key:t[r].tag,value:t[r].value});else switch(t[r].tag){case ec.NICK:n.nick=t[r].value;break;case ec.GENDER:n.gender=t[r].value;break;case ec.BIRTHDAY:n.birthday=t[r].value;break;case ec.LOCATION:n.location=t[r].value;break;case ec.SELFSIGNATURE:n.selfSignature=t[r].value;break;case ec.ALLOWTYPE:n.allowType=t[r].value;break;case ec.LANGUAGE:n.language=t[r].value;break;case ec.AVATAR:n.avatar=t[r].value;break;case ec.MESSAGESETTINGS:n.messageSettings=t[r].value;break;case ec.ADMINFORBIDTYPE:n.adminForbidType=t[r].value;break;case ec.LEVEL:n.level=t[r].value;break;case ec.ROLE:n.role=t[r].value;break;default:Zs.warn("".concat(this._className,"._handleResponse unknown tag:"),t[r].tag,t[r].value)}return n}},{key:"updateMyProfile",value:function(e){var t=this,n="".concat(this._className,".updateMyProfile"),r=new dh(Lf);r.setMessage(JSON.stringify(e));var i=(new Xm).validate(e);if(!i.valid)return r.setCode(Yd.UPDATE_PROFILE_INVALID_PARAM).setMoreMessage("".concat(n," info:").concat(i.tips)).setNetworkType(this._userModule.getNetworkType()).end(),Zs.error("".concat(n," info:").concat(i.tips,",请参考 https://web.sdk.qcloud.com/im/doc/zh-cn/SDK.html#updateMyProfile")),Am({code:Yd.UPDATE_PROFILE_INVALID_PARAM,message:Jd.UPDATE_PROFILE_INVALID_PARAM});var o=[];for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&("profileCustomField"===a?e.profileCustomField.forEach((function(e){o.push({tag:e.key,value:e.value})})):o.push({tag:ec[a.toUpperCase()],value:e[a]}));return 0===o.length?(r.setCode(Yd.UPDATE_PROFILE_NO_KEY).setMoreMessage(Jd.UPDATE_PROFILE_NO_KEY).setNetworkType(this._userModule.getNetworkType()).end(),Zs.error("".concat(n," info:").concat(Jd.UPDATE_PROFILE_NO_KEY,",请参考 https://web.sdk.qcloud.com/im/doc/zh-cn/SDK.html#updateMyProfile")),Am({code:Yd.UPDATE_PROFILE_NO_KEY,message:Jd.UPDATE_PROFILE_NO_KEY})):this._userModule.request({protocolName:Nl,requestData:{fromAccount:this._userModule.getMyAccount(),profileItem:o}}).then((function(i){r.setNetworkType(t._userModule.getNetworkType()).end(),Zs.info("".concat(n," ok"));var o=t._updateMap(t._userModule.getMyAccount(),e);return t._userModule.emitOuterEvent($n.PROFILE_UPDATED,[o]),Em(o)})).catch((function(e){return t._userModule.probeNetwork().then((function(t){var n=Un(t,2),i=n[0],o=n[1];r.setError(e,i,o).end()})),Zs.error("".concat(n," failed. error:"),e),Am(e)}))}},{key:"onProfileModified",value:function(e){var t=e.dataList;if(!Jc(t)){var n,r,i=t.length;Zs.debug("".concat(this._className,".onProfileModified count:").concat(i," dataList:"),e.dataList);for(var o=[],a=0;a<i;a++)n=t[a].userID,r=this._updateMap(n,this._getLatestProfileFromResponse(n,t[a].profileList)),o.push(r);o.length>0&&(this._userModule.emitInnerEvent(zm,o),this._userModule.emitOuterEvent($n.PROFILE_UPDATED,o))}}},{key:"_fillMap",value:function(){if(0===this.accountProfileMap.size){for(var e=this._getCachedProfiles(),t=Date.now(),n=0,r=e.length;n<r;n++)t-e[n].lastUpdatedTime<this.expirationTime&&this.accountProfileMap.set(e[n].userID,e[n]);Zs.log("".concat(this._className,"._fillMap from cache, map.size:").concat(this.accountProfileMap.size))}}},{key:"_updateMap",value:function(e,t){var n,r=Date.now();return this._containsAccount(e)?(n=this._getProfileFromMap(e),t.profileCustomField&&Oc(n.profileCustomField,t.profileCustomField),Sc(n,t,["profileCustomField"]),n.lastUpdatedTime=r):(n=new Xm(t),(this._userModule.isMyFriend(e)||e===this._userModule.getMyAccount())&&(n.lastUpdatedTime=r,this.accountProfileMap.set(e,n))),this._flushMap(e===this._userModule.getMyAccount()),n}},{key:"_flushMap",value:function(e){var t=Fn(this.accountProfileMap.values()),n=this._userModule.getStorageModule();Zs.debug("".concat(this._className,"._flushMap length:").concat(t.length," flushAtOnce:").concat(e)),n.setItem(this.TAG,t,e)}},{key:"_containsAccount",value:function(e){return this.accountProfileMap.has(e)}},{key:"_getProfileFromMap",value:function(e){return this.accountProfileMap.get(e)}},{key:"_getCachedProfiles",value:function(){var e=this._userModule.getStorageModule().getItem(this.TAG);return Jc(e)?[]:e}},{key:"onConversationsProfileUpdated",value:function(e){for(var t,n,r,i=[],o=0,a=e.length;o<a;o++)n=(t=e[o]).userID,this._userModule.isMyFriend(n)||(this._containsAccount(n)?(r=this._getProfileFromMap(n),Sc(r,t)>0&&i.push(n)):i.push(t.userID));0!==i.length&&(Zs.info("".concat(this._className,".onConversationsProfileUpdated toAccountList:").concat(i)),this.getUserProfile({userIDList:i}))}},{key:"getNickAndAvatarByUserID",value:function(e){if(this._containsAccount(e)){var t=this._getProfileFromMap(e);return{nick:t.nick,avatar:t.avatar}}return{nick:"",avatar:""}}},{key:"reset",value:function(){this._flushMap(!0),this.accountProfileMap.clear()}}]),e}(),Iv=function e(t){Sn(this,e),Jc||(this.userID=t.userID||"",this.timeStamp=t.timeStamp||0)},Cv=function(){function e(t){Sn(this,e),this._userModule=t,this._className="BlacklistHandler",this._blacklistMap=new Map,this.startIndex=0,this.maxLimited=100,this.currentSequence=0}return wn(e,[{key:"getLocalBlacklist",value:function(){return Fn(this._blacklistMap.keys())}},{key:"getBlacklist",value:function(){var e=this,t="".concat(this._className,".getBlacklist"),n={fromAccount:this._userModule.getMyAccount(),maxLimited:this.maxLimited,startIndex:0,lastSequence:this.currentSequence},r=new dh(Pf);return this._userModule.request({protocolName:Ul,requestData:n}).then((function(n){var i=n.data,o=i.blackListItem,a=i.currentSequence,s=Jc(o)?0:o.length;r.setNetworkType(e._userModule.getNetworkType()).setMessage("blackList count:".concat(s)).end(),Zs.info("".concat(t," ok")),e.currentSequence=a,e._handleResponse(o,!0),e._userModule.emitOuterEvent($n.BLACKLIST_UPDATED,Fn(e._blacklistMap.keys()))})).catch((function(n){return e._userModule.probeNetwork().then((function(e){var t=Un(e,2),i=t[0],o=t[1];r.setError(n,i,o).end()})),Zs.error("".concat(t," failed. error:"),n),Am(n)}))}},{key:"addBlacklist",value:function(e){var t=this,n="".concat(this._className,".addBlacklist"),r=new dh(Nf);if(!hc(e.userIDList))return r.setCode(Yd.ADD_BLACKLIST_INVALID_PARAM).setMessage(Jd.ADD_BLACKLIST_INVALID_PARAM).setNetworkType(this._userModule.getNetworkType()).end(),Zs.error("".concat(n," options.userIDList 必需是数组")),Am({code:Yd.ADD_BLACKLIST_INVALID_PARAM,message:Jd.ADD_BLACKLIST_INVALID_PARAM});var i=this._userModule.getMyAccount();return 1===e.userIDList.length&&e.userIDList[0]===i?(r.setCode(Yd.CANNOT_ADD_SELF_TO_BLACKLIST).setMessage(Jd.CANNOT_ADD_SELF_TO_BLACKLIST).setNetworkType(this._userModule.getNetworkType()).end(),Zs.error("".concat(n," 不能把自己拉黑")),Am({code:Yd.CANNOT_ADD_SELF_TO_BLACKLIST,message:Jd.CANNOT_ADD_SELF_TO_BLACKLIST})):(e.userIDList.includes(i)&&(e.userIDList=e.userIDList.filter((function(e){return e!==i})),Zs.warn("".concat(n," 不能把自己拉黑,已过滤"))),e.fromAccount=this._userModule.getMyAccount(),e.toAccount=e.userIDList,this._userModule.request({protocolName:Fl,requestData:e}).then((function(i){return r.setNetworkType(t._userModule.getNetworkType()).setMessage(e.userIDList.length>5?"userIDList.length:".concat(e.userIDList.length):"userIDList:".concat(e.userIDList)).end(),Zs.info("".concat(n," ok")),t._handleResponse(i.resultItem,!0),bm(Fn(t._blacklistMap.keys()))})).catch((function(e){return t._userModule.probeNetwork().then((function(t){var n=Un(t,2),i=n[0],o=n[1];r.setError(e,i,o).end()})),Zs.error("".concat(n," failed. error:"),e),Am(e)})))}},{key:"_handleResponse",value:function(e,t){if(!Jc(e))for(var n,r,i,o=0,a=e.length;o<a;o++)r=e[o].to,i=e[o].resultCode,(fc(i)||0===i)&&(t?((n=this._blacklistMap.has(r)?this._blacklistMap.get(r):new Iv).userID=r,!Jc(e[o].addBlackTimeStamp)&&(n.timeStamp=e[o].addBlackTimeStamp),this._blacklistMap.set(r,n)):this._blacklistMap.has(r)&&(n=this._blacklistMap.get(r),this._blacklistMap.delete(r)));Zs.log("".concat(this._className,"._handleResponse total:").concat(this._blacklistMap.size," bAdd:").concat(t))}},{key:"deleteBlacklist",value:function(e){var t=this,n="".concat(this._className,".deleteBlacklist"),r=new dh(Uf);return hc(e.userIDList)?(e.fromAccount=this._userModule.getMyAccount(),e.toAccount=e.userIDList,this._userModule.request({protocolName:Gl,requestData:e}).then((function(i){return r.setNetworkType(t._userModule.getNetworkType()).setMessage(e.userIDList.length>5?"userIDList.length:".concat(e.userIDList.length):"userIDList:".concat(e.userIDList)).end(),Zs.info("".concat(n," ok")),t._handleResponse(i.data.resultItem,!1),bm(Fn(t._blacklistMap.keys()))})).catch((function(e){return t._userModule.probeNetwork().then((function(t){var n=Un(t,2),i=n[0],o=n[1];r.setError(e,i,o).end()})),Zs.error("".concat(n," failed. error:"),e),Am(e)}))):(r.setCode(Yd.DEL_BLACKLIST_INVALID_PARAM).setMessage(Jd.DEL_BLACKLIST_INVALID_PARAM).setNetworkType(this._userModule.getNetworkType()).end(),Zs.error("".concat(n," options.userIDList 必需是数组")),Am({code:Yd.DEL_BLACKLIST_INVALID_PARAM,message:Jd.DEL_BLACKLIST_INVALID_PARAM}))}},{key:"onAccountDeleted",value:function(e){for(var t,n=[],r=0,i=e.length;r<i;r++)t=e[r],this._blacklistMap.has(t)&&(this._blacklistMap.delete(t),n.push(t));n.length>0&&(Zs.log("".concat(this._className,".onAccountDeleted count:").concat(n.length," userIDList:"),n),this._userModule.emitOuterEvent($n.BLACKLIST_UPDATED,Fn(this._blacklistMap.keys())))}},{key:"onAccountAdded",value:function(e){for(var t,n=[],r=0,i=e.length;r<i;r++)t=e[r],this._blacklistMap.has(t)||(this._blacklistMap.set(t,new Iv({userID:t})),n.push(t));n.length>0&&(Zs.log("".concat(this._className,".onAccountAdded count:").concat(n.length," userIDList:"),n),this._userModule.emitOuterEvent($n.BLACKLIST_UPDATED,Fn(this._blacklistMap.keys())))}},{key:"reset",value:function(){this._blacklistMap.clear(),this.startIndex=0,this.maxLimited=100,this.currentSequence=0}}]),e}(),Mv=function(e){Tn(n,e);var t=Nn(n);function n(e){var r;return Sn(this,n),(r=t.call(this,e))._className="UserModule",r._profileHandler=new wv(Ln(r)),r._blacklistHandler=new Cv(Ln(r)),r.getInnerEmitterInstance().on(jm,r.onContextUpdated,Ln(r)),r}return wn(n,[{key:"onContextUpdated",value:function(e){this._profileHandler.getMyProfile(),this._blacklistHandler.getBlacklist()}},{key:"onProfileModified",value:function(e){this._profileHandler.onProfileModified(e)}},{key:"onRelationChainModified",value:function(e){var t=e.dataList;if(!Jc(t)){var n=[];t.forEach((function(e){e.blackListDelAccount&&n.push.apply(n,Fn(e.blackListDelAccount))})),n.length>0&&this._blacklistHandler.onAccountDeleted(n);var r=[];t.forEach((function(e){e.blackListAddAccount&&r.push.apply(r,Fn(e.blackListAddAccount))})),r.length>0&&this._blacklistHandler.onAccountAdded(r)}}},{key:"onConversationsProfileUpdated",value:function(e){this._profileHandler.onConversationsProfileUpdated(e)}},{key:"getMyAccount",value:function(){return this.getMyUserID()}},{key:"getMyProfile",value:function(){return this._profileHandler.getMyProfile()}},{key:"getStorageModule",value:function(){return this.getModule(dl)}},{key:"isMyFriend",value:function(e){var t=this.getModule(sl);return!!t&&t.isMyFriend(e)}},{key:"getUserProfile",value:function(e){return this._profileHandler.getUserProfile(e)}},{key:"updateMyProfile",value:function(e){return this._profileHandler.updateMyProfile(e)}},{key:"getNickAndAvatarByUserID",value:function(e){return this._profileHandler.getNickAndAvatarByUserID(e)}},{key:"getLocalBlacklist",value:function(){var e=this._blacklistHandler.getLocalBlacklist();return Em(e)}},{key:"addBlacklist",value:function(e){return this._blacklistHandler.addBlacklist(e)}},{key:"deleteBlacklist",value:function(e){return this._blacklistHandler.deleteBlacklist(e)}},{key:"reset",value:function(){Zs.log("".concat(this._className,".reset")),this._profileHandler.reset(),this._blacklistHandler.reset()}}]),n}(Ml),Tv=function(){function e(t,n){Sn(this,e),this._moduleManager=t,this._isLoggedIn=!1,this._SDKAppID=n.SDKAppID,this._userID=n.userID||"",this._userSig=n.userSig||"",this._version="2.18.0",this._a2Key="",this._tinyID="",this._contentType="json",this._unlimitedAVChatRoom=n.unlimitedAVChatRoom,this._scene=n.scene||"",this._oversea=n.oversea,this._instanceID=n.instanceID,this._statusInstanceID=0,this._isDevMode=n.devMode,this._proxyServer=n.proxyServer}return wn(e,[{key:"isLoggedIn",value:function(){return this._isLoggedIn}},{key:"isOversea",value:function(){return this._oversea}},{key:"isDevMode",value:function(){return this._isDevMode}},{key:"isSingaporeSite",value:function(){return this._SDKAppID>=2e7&&this._SDKAppID<3e7}},{key:"isKoreaSite",value:function(){return this._SDKAppID>=3e7&&this._SDKAppID<4e7}},{key:"isGermanySite",value:function(){return this._SDKAppID>=4e7&&this._SDKAppID<5e7}},{key:"isIndiaSite",value:function(){return this._SDKAppID>=5e7&&this._SDKAppID<6e7}},{key:"isUnlimitedAVChatRoom",value:function(){return this._unlimitedAVChatRoom}},{key:"getUserID",value:function(){return this._userID}},{key:"setUserID",value:function(e){this._userID=e}},{key:"setUserSig",value:function(e){this._userSig=e}},{key:"getUserSig",value:function(){return this._userSig}},{key:"getSDKAppID",value:function(){return this._SDKAppID}},{key:"getTinyID",value:function(){return this._tinyID}},{key:"setTinyID",value:function(e){this._tinyID=e,this._isLoggedIn=!0}},{key:"getScene",value:function(){return this._isTUIKit()?"tuikit":this._scene}},{key:"getInstanceID",value:function(){return this._instanceID}},{key:"getStatusInstanceID",value:function(){return this._statusInstanceID}},{key:"setStatusInstanceID",value:function(e){this._statusInstanceID=e}},{key:"getVersion",value:function(){return this._version}},{key:"getA2Key",value:function(){return this._a2Key}},{key:"setA2Key",value:function(e){this._a2Key=e}},{key:"getContentType",value:function(){return this._contentType}},{key:"getProxyServer",value:function(){return this._proxyServer}},{key:"_isTUIKit",value:function(){var e=!1,t=!1,n=!1,r=!1,i=[];fs&&(i=Object.keys(gs)),ps&&(i=hs?Object.keys(uni):Object.keys(window));for(var o=0,a=i.length;o<a;o++)if(i[o].toLowerCase().includes("uikit")){e=!0;break}if(i=null,fs&&gc(getApp)){var s=getApp().globalData;dc(s)&&!0===s.isTUIKit&&(t=!0)}!0===this._moduleManager.getModule(dl).getStorageSync("TIM_".concat(this._SDKAppID,"_isTUIKit"))&&(n=!0);var c=null;if(as&&"undefined"==typeof uni&&__wxConfig&&(c=__wxConfig.pages),ss&&"undefined"==typeof uni&&__qqConfig&&(c=__qqConfig.pages),hc(c)&&c.length>0){for(var u=0,l=c.length;u<l;u++)if(c[u].toLowerCase().includes("tui")){r=!0;break}c=null}return e||t||n||r}},{key:"reset",value:function(){this._isLoggedIn=!1,this._userSig="",this._a2Key="",this._tinyID="",this._statusInstanceID=0}}]),e}(),kv=function(e){Tn(n,e);var t=Nn(n);function n(e){var r;return Sn(this,n),(r=t.call(this,e))._className="SignModule",r._helloInterval=120,r._lastLoginTs=0,r._lastWsHelloTs=0,Hm.mixin(Ln(r)),r}return wn(n,[{key:"onCheckTimer",value:function(e){this.isLoggedIn()&&e%this._helloInterval==0&&this._hello()}},{key:"login",value:function(e){if(this.isLoggedIn()){var t="您已经登录账号".concat(e.userID,"!如需切换账号登录,请先调用 logout 接口登出,再调用 login 接口登录。");return Zs.warn(t),Em({actionStatus:"OK",errorCode:0,errorInfo:t,repeatLogin:!0})}if(Date.now()-this._lastLoginTs<=15e3)return Zs.warn("您正在尝试登录账号".concat(e.userID,"!请勿重复登录。")),Am({code:Yd.REPEAT_LOGIN,message:Jd.REPEAT_LOGIN});Zs.log("".concat(this._className,".login userID:").concat(e.userID));var n=this._checkLoginInfo(e);if(0!==n.code)return Am(n);var r=this.getModule(ll),i=e.userID,o=e.userSig;return r.setUserID(i),r.setUserSig(o),this.getModule(yl).updateProtocolConfig(),this._login()}},{key:"_login",value:function(){var e=this,t=this.getModule(ll),n=t.getScene(),r=new dh(ph);return r.setMessage("".concat(n)).setMoreMessage("identifier:".concat(this.getMyUserID())),hs?"tuikit"===n?r.setUIPlatform(4):r.setUIPlatform(3):fs?"tuikit"===n?r.setUIPlatform(12):r.setUIPlatform(11):ps&&("tuikit"===n?r.setUIPlatform(14):r.setUIPlatform(13)),this._lastLoginTs=Date.now(),this.request({protocolName:Tl}).then((function(i){e._lastLoginTs=0;var o=Date.now(),a=null,s=i.data,c=s.a2Key,u=s.tinyID,l=s.helloInterval,d=s.instanceID,h=s.timeStamp;Zs.log("".concat(e._className,".login ok. scene:").concat(n," helloInterval:").concat(l," instanceID:").concat(d," timeStamp:").concat(h));var f=1e3*h,p=o-r.getStartTs(),g=f+parseInt(p/2)-o,m=r.getStartTs()+g;if(r.start(m),function(e,t){Ws=t;var n=new Date;n.setTime(e),Zs.info("baseTime from server: ".concat(n," offset: ").concat(Ws))}(f,g),!u)throw a=new Mm({code:Yd.NO_TINYID,message:Jd.NO_TINYID}),r.setError(a,!0,e.getNetworkType()).end(),a;if(!c)throw a=new Mm({code:Yd.NO_A2KEY,message:Jd.NO_A2KEY}),r.setError(a,!0,e.getNetworkType()).end(),a;return r.setNetworkType(e.getNetworkType()).setMoreMessage("helloInterval:".concat(l," instanceID:").concat(d," offset:").concat(g)).end(),t.setA2Key(c),t.setTinyID(u),t.setStatusInstanceID(d),e.getModule(yl).updateProtocolConfig(),e.emitInnerEvent(jm),e._helloInterval=l,e.triggerReady(),e._fetchCloudControlConfig(),i})).catch((function(t){return e.probeNetwork().then((function(e){var n=Un(e,2),i=n[0],o=n[1];r.setError(t,i,o).end(!0)})),e._moduleManager.setNotReadyReason(Yd.LOGIN_FAILED),Zs.error("".concat(e._className,".login failed. error:"),t),e._lastLoginTs=0,e._moduleManager.onLoginFailed(),Am(t)}))}},{key:"logout",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(!this.isLoggedIn())return Am({code:Yd.USER_NOT_LOGGED_IN,message:Jd.USER_NOT_LOGGED_IN});var n=new dh(gh);return n.setNetworkType(this.getNetworkType()).setMessage("identifier:".concat(this.getMyUserID())).end(!0),Zs.info("".concat(this._className,".logout type:").concat(t)),0===t&&this._moduleManager.setNotReadyReason(Yd.LOGGED_OUT),this.request({protocolName:kl,requestData:{type:t}}).then((function(){return e.resetReady(),Em({})})).catch((function(t){return Zs.error("".concat(e._className,"._logout error:"),t),e.resetReady(),Em({})}))}},{key:"_fetchCloudControlConfig",value:function(){this.getModule(Sl).fetchConfig()}},{key:"_hello",value:function(){var e=this;this._lastWsHelloTs=Date.now(),this.request({protocolName:El}).catch((function(t){Zs.warn("".concat(e._className,"._hello error:"),t)}))}},{key:"getLastWsHelloTs",value:function(){return this._lastWsHelloTs}},{key:"_checkLoginInfo",value:function(e){var t=0,n="";return Jc(this.getModule(ll).getSDKAppID())?(t=Yd.NO_SDKAPPID,n=Jd.NO_SDKAPPID):Jc(e.userID)?(t=Yd.NO_IDENTIFIER,n=Jd.NO_IDENTIFIER):Jc(e.userSig)&&(t=Yd.NO_USERSIG,n=Jd.NO_USERSIG),{code:t,message:n}}},{key:"onMultipleAccountKickedOut",value:function(e){var t=this;new dh(mh).setNetworkType(this.getNetworkType()).setMessage("type:".concat(Kn.KICKED_OUT_MULT_ACCOUNT," newInstanceInfo:").concat(JSON.stringify(e))).end(!0),Zs.warn("".concat(this._className,".onMultipleAccountKickedOut userID:").concat(this.getMyUserID()," newInstanceInfo:"),e),this.logout(1).then((function(){t.emitOuterEvent($n.KICKED_OUT,{type:Kn.KICKED_OUT_MULT_ACCOUNT}),t._moduleManager.setNotReadyReason(Yd.KICKED_OUT_MULT_ACCOUNT),t._moduleManager.reset()}))}},{key:"onMultipleDeviceKickedOut",value:function(e){var t=this;new dh(mh).setNetworkType(this.getNetworkType()).setMessage("type:".concat(Kn.KICKED_OUT_MULT_DEVICE," newInstanceInfo:").concat(JSON.stringify(e))).end(!0),Zs.warn("".concat(this._className,".onMultipleDeviceKickedOut userID:").concat(this.getMyUserID()," newInstanceInfo:"),e),this.logout(1).then((function(){t.emitOuterEvent($n.KICKED_OUT,{type:Kn.KICKED_OUT_MULT_DEVICE}),t._moduleManager.setNotReadyReason(Yd.KICKED_OUT_MULT_DEVICE),t._moduleManager.reset()}))}},{key:"onUserSigExpired",value:function(){new dh(mh).setNetworkType(this.getNetworkType()).setMessage(Kn.KICKED_OUT_USERSIG_EXPIRED).end(!0),Zs.warn("".concat(this._className,".onUserSigExpired: userSig 签名过期被踢下线")),0!==this.getModule(ll).getStatusInstanceID()&&(this.emitOuterEvent($n.KICKED_OUT,{type:Kn.KICKED_OUT_USERSIG_EXPIRED}),this._moduleManager.setNotReadyReason(Yd.KICKED_OUT_USERSIG_EXPIRED),this._moduleManager.reset())}},{key:"reset",value:function(){Zs.log("".concat(this._className,".reset")),this.resetReady(),this._helloInterval=120,this._lastLoginTs=0,this._lastWsHelloTs=0}}]),n}(Ml);function Ev(){return null}Ae({target:"Object",stat:!0,forced:!a,sham:!a},{defineProperty:E.f});var Av=function(){function e(t){Sn(this,e),this._moduleManager=t,this._className="StorageModule",this._storageQueue=new Map,this._errorTolerantHandle()}return wn(e,[{key:"_errorTolerantHandle",value:function(){fs||!fc(window)&&!fc(window.localStorage)||(this.getItem=Ev,this.setItem=Ev,this.removeItem=Ev,this.clear=Ev)}},{key:"onCheckTimer",value:function(e){if(e%20==0){if(0===this._storageQueue.size)return;this._doFlush()}}},{key:"_doFlush",value:function(){try{var e,t=Hn(this._storageQueue);try{for(t.s();!(e=t.n()).done;){var n=Un(e.value,2),r=n[0],i=n[1];this._setStorageSync(this._getKey(r),i)}}catch(a){t.e(a)}finally{t.f()}this._storageQueue.clear()}catch(aS){Zs.warn("".concat(this._className,"._doFlush error:"),aS)}}},{key:"_getPrefix",value:function(){var e=this._moduleManager.getModule(ll);return"TIM_".concat(e.getSDKAppID(),"_").concat(e.getUserID(),"_")}},{key:"_getKey",value:function(e){return"".concat(this._getPrefix()).concat(e)}},{key:"getItem",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];try{var n=t?this._getKey(e):e;return this.getStorageSync(n)}catch(aS){return Zs.warn("".concat(this._className,".getItem error:"),aS),{}}}},{key:"setItem",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(n){var i=r?this._getKey(e):e;this._setStorageSync(i,t)}else this._storageQueue.set(e,t)}},{key:"clear",value:function(){try{fs?gs.clearStorageSync():localStorage&&localStorage.clear()}catch(aS){Zs.warn("".concat(this._className,".clear error:"),aS)}}},{key:"removeItem",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];try{var n=t?this._getKey(e):e;this._removeStorageSync(n)}catch(aS){Zs.warn("".concat(this._className,".removeItem error:"),aS)}}},{key:"getSize",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"b";try{var r={size:0,limitSize:5242880,unit:n};if(Object.defineProperty(r,"leftSize",{enumerable:!0,get:function(){return r.limitSize-r.size}}),fs&&(r.limitSize=1024*gs.getStorageInfoSync().limitSize),e)r.size=JSON.stringify(this.getItem(e)).length+this._getKey(e).length;else if(fs){var i=gs.getStorageInfoSync(),o=i.keys;o.forEach((function(e){r.size+=JSON.stringify(t.getStorageSync(e)).length+t._getKey(e).length}))}else if(localStorage)for(var a in localStorage)localStorage.hasOwnProperty(a)&&(r.size+=localStorage.getItem(a).length+a.length);return this._convertUnit(r)}catch(aS){Zs.warn("".concat(this._className," error:"),aS)}}},{key:"_convertUnit",value:function(e){var t={},n=e.unit;for(var r in t.unit=n,e)"number"==typeof e[r]&&("kb"===n.toLowerCase()?t[r]=Math.round(e[r]/1024):"mb"===n.toLowerCase()?t[r]=Math.round(e[r]/1024/1024):t[r]=e[r]);return t}},{key:"_setStorageSync",value:function(e,t){fs?ls?my.setStorageSync({key:e,data:t}):gs.setStorageSync(e,t):localStorage&&localStorage.setItem(e,JSON.stringify(t))}},{key:"getStorageSync",value:function(e){return fs?ls?my.getStorageSync({key:e}).data:gs.getStorageSync(e):localStorage?JSON.parse(localStorage.getItem(e)):{}}},{key:"_removeStorageSync",value:function(e){fs?ls?my.removeStorageSync({key:e}):gs.removeStorageSync(e):localStorage&&localStorage.removeItem(e)}},{key:"reset",value:function(){Zs.log("".concat(this._className,".reset")),this._doFlush()}}]),e}(),Dv=function(){function e(t){Sn(this,e),this._className="SSOLogBody",this._report=[]}return wn(e,[{key:"pushIn",value:function(e){Zs.debug("".concat(this._className,".pushIn"),this._report.length,e),this._report.push(e)}},{key:"backfill",value:function(e){var t;hc(e)&&0!==e.length&&(Zs.debug("".concat(this._className,".backfill"),this._report.length,e.length),(t=this._report).unshift.apply(t,Fn(e)))}},{key:"getLogsNumInMemory",value:function(){return this._report.length}},{key:"isEmpty",value:function(){return 0===this._report.length}},{key:"_reset",value:function(){this._report.length=0,this._report=[]}},{key:"getLogsInMemory",value:function(){var e=this._report.slice();return this._reset(),e}}]),e}(),Ov=function(e){var t=e.getModule(ll);return{SDKType:10,SDKAppID:t.getSDKAppID(),SDKVersion:t.getVersion(),tinyID:Number(t.getTinyID()),userID:t.getUserID(),platform:e.getPlatform(),instanceID:t.getInstanceID(),traceID:qs()}},Rv=function(e){Tn(n,e);var t=Nn(n);function n(e){var r;Sn(this,n),(r=t.call(this,e))._className="EventStatModule",r.TAG="im-ssolog-event",r._reportBody=new Dv,r.MIN_THRESHOLD=20,r.MAX_THRESHOLD=100,r.WAITING_TIME=6e4,r.REPORT_LEVEL=[4,5,6],r.REPORT_SDKAPPID_BLACKLIST=[],r.REPORT_TINYID_WHITELIST=[],r._lastReportTime=Date.now();var i=r.getInnerEmitterInstance();return i.on(jm,r._onLoginSuccess,Ln(r)),i.on(Bm,r._onCloudConfigUpdated,Ln(r)),r}return wn(n,[{key:"reportAtOnce",value:function(){Zs.debug("".concat(this._className,".reportAtOnce")),this._report()}},{key:"_onLoginSuccess",value:function(){var e=this,t=this.getModule(dl),n=t.getItem(this.TAG,!1);!Jc(n)&&gc(n.forEach)&&(Zs.log("".concat(this._className,"._onLoginSuccess get ssolog in storage, count:").concat(n.length)),n.forEach((function(t){e._reportBody.pushIn(t)})),t.removeItem(this.TAG,!1))}},{key:"_onCloudConfigUpdated",value:function(){var e=this.getCloudConfig("evt_rpt_threshold"),t=this.getCloudConfig("evt_rpt_waiting"),n=this.getCloudConfig("evt_rpt_level"),r=this.getCloudConfig("evt_rpt_sdkappid_bl"),i=this.getCloudConfig("evt_rpt_tinyid_wl");fc(e)||(this.MIN_THRESHOLD=Number(e)),fc(t)||(this.WAITING_TIME=Number(t)),fc(n)||(this.REPORT_LEVEL=n.split(",").map((function(e){return Number(e)}))),fc(r)||(this.REPORT_SDKAPPID_BLACKLIST=r.split(",").map((function(e){return Number(e)}))),fc(i)||(this.REPORT_TINYID_WHITELIST=i.split(","))}},{key:"pushIn",value:function(e){e instanceof dh&&(e.updateTimeStamp(),this._reportBody.pushIn(e),this._reportBody.getLogsNumInMemory()>=this.MIN_THRESHOLD&&this._report())}},{key:"onCheckTimer",value:function(){Date.now()<this._lastReportTime+this.WAITING_TIME||this._reportBody.isEmpty()||this._report()}},{key:"_filterLogs",value:function(e){var t=this,n=this.getModule(ll),r=n.getSDKAppID(),i=n.getTinyID();return $c(this.REPORT_SDKAPPID_BLACKLIST,r)&&!Kc(this.REPORT_TINYID_WHITELIST,i)?[]:e.filter((function(e){return t.REPORT_LEVEL.includes(e.level)}))}},{key:"_report",value:function(){var e=this;if(!this._reportBody.isEmpty()){var t=this._reportBody.getLogsInMemory(),n=this._filterLogs(t);if(0!==n.length){var r={header:Ov(this),event:n};this.request({protocolName:Nd,requestData:Mn({},r)}).then((function(){e._lastReportTime=Date.now()})).catch((function(n){Zs.warn("".concat(e._className,".report failed. networkType:").concat(e.getNetworkType()," error:"),n),e._reportBody.backfill(t),e._reportBody.getLogsNumInMemory()>e.MAX_THRESHOLD&&e._flushAtOnce()}))}else this._lastReportTime=Date.now()}}},{key:"_flushAtOnce",value:function(){var e=this.getModule(dl),t=e.getItem(this.TAG,!1),n=this._reportBody.getLogsInMemory();if(Jc(t))Zs.log("".concat(this._className,"._flushAtOnce count:").concat(n.length)),e.setItem(this.TAG,n,!0,!1);else{var r=n.concat(t);r.length>this.MAX_THRESHOLD&&(r=r.slice(0,this.MAX_THRESHOLD)),Zs.log("".concat(this._className,"._flushAtOnce count:").concat(r.length)),e.setItem(this.TAG,r,!0,!1)}}},{key:"reset",value:function(){Zs.log("".concat(this._className,".reset")),this._lastReportTime=0,this._report(),this.REPORT_SDKAPPID_BLACKLIST=[],this.REPORT_TINYID_WHITELIST=[]}}]),n}(Ml),Lv="none",Pv="online",Nv=function(){function e(t){Sn(this,e),this._moduleManager=t,this._networkType="",this._className="NetMonitorModule",this.MAX_WAIT_TIME=3e3,this._mpNetworkStatusCallback=null,this._webOnlineCallback=null,this._webOfflineCallback=null}return wn(e,[{key:"start",value:function(){var e=this;fs?(gs.getNetworkType({success:function(t){e._networkType=t.networkType,t.networkType===Lv?Zs.warn("".concat(e._className,".start no network, please check!")):Zs.info("".concat(e._className,".start networkType:").concat(t.networkType))}}),this._mpNetworkStatusCallback=this._onNetworkStatusChange.bind(this),gs.onNetworkStatusChange(this._mpNetworkStatusCallback)):(this._networkType=Pv,this._webOnlineCallback=this._onWebOnline.bind(this),this._webOfflineCallback=this._onWebOffline.bind(this),window&&(window.addEventListener("online",this._webOnlineCallback),window.addEventListener("offline",this._webOfflineCallback)))}},{key:"_onWebOnline",value:function(){this._onNetworkStatusChange({isConnected:!0,networkType:Pv})}},{key:"_onWebOffline",value:function(){this._onNetworkStatusChange({isConnected:!1,networkType:Lv})}},{key:"_onNetworkStatusChange",value:function(e){var t=e.isConnected,n=e.networkType,r=!1;t?(Zs.info("".concat(this._className,"._onNetworkStatusChange previousNetworkType:").concat(this._networkType," currentNetworkType:").concat(n)),this._networkType!==n&&(r=!0,this._moduleManager.getModule(_l).reConnect(!0))):this._networkType!==n&&(r=!0,Zs.warn("".concat(this._className,"._onNetworkStatusChange no network, please check!"))),r&&(new dh(wh).setMessage("isConnected:".concat(t," previousNetworkType:").concat(this._networkType," networkType:").concat(n)).end(),this._networkType=n)}},{key:"probe",value:function(){var e=this;return new Promise((function(t,n){if(fs)gs.getNetworkType({success:function(n){e._networkType=n.networkType,n.networkType===Lv?(Zs.warn("".concat(e._className,".probe no network, please check!")),t([!1,n.networkType])):(Zs.info("".concat(e._className,".probe networkType:").concat(n.networkType)),t([!0,n.networkType]))}});else if(window&&window.fetch)fetch("".concat(Ec(),"//web.sdk.qcloud.com/im/assets/speed.xml?random=").concat(Math.random())).then((function(e){e.ok?t([!0,Pv]):t([!1,Lv])})).catch((function(e){t([!1,Lv])}));else{var r=new XMLHttpRequest,i=setTimeout((function(){Zs.warn("".concat(e._className,".probe fetch timeout. Probably no network, please check!")),r.abort(),e._networkType=Lv,t([!1,Lv])}),e.MAX_WAIT_TIME);r.onreadystatechange=function(){4===r.readyState&&(clearTimeout(i),200===r.status||304===r.status||514===r.status?(this._networkType=Pv,t([!0,Pv])):(Zs.warn("".concat(this.className,".probe fetch status:").concat(r.status,". Probably no network, please check!")),this._networkType=Lv,t([!1,Lv])))},r.open("GET","".concat(Ec(),"//web.sdk.qcloud.com/im/assets/speed.xml?random=").concat(Math.random())),r.send()}}))}},{key:"getNetworkType",value:function(){return this._networkType}},{key:"reset",value:function(){Zs.log("".concat(this._className,".reset")),fs?null!==this._mpNetworkStatusCallback&&(gs.offNetworkStatusChange&&(ds||cs?gs.offNetworkStatusChange(this._mpNetworkStatusCallback):gs.offNetworkStatusChange()),this._mpNetworkStatusCallback=null):window&&(null!==this._webOnlineCallback&&(window.removeEventListener("online",this._webOnlineCallback),this._webOnlineCallback=null),null!==this._onWebOffline&&(window.removeEventListener("offline",this._webOfflineCallback),this._webOfflineCallback=null))}}]),e}(),Uv=n((function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,r,o,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new i(r,o||e,a),c=n?n+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,i=[];if(0===this._eventsCount)return i;for(r in e=this._events)t.call(e,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,o=r.length,a=new Array(o);i<o;i++)a[i]=r[i].fn;return a},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,i,o,a){var s=n?n+e:e;if(!this._events[s])return!1;var c,u,l=this._events[s],d=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),d){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,r),!0;case 4:return l.fn.call(l.context,t,r,i),!0;case 5:return l.fn.call(l.context,t,r,i,o),!0;case 6:return l.fn.call(l.context,t,r,i,o,a),!0}for(u=1,c=new Array(d-1);u<d;u++)c[u-1]=arguments[u];l.fn.apply(l.context,c)}else{var h,f=l.length;for(u=0;u<f;u++)switch(l[u].once&&this.removeListener(e,l[u].fn,void 0,!0),d){case 1:l[u].fn.call(l[u].context);break;case 2:l[u].fn.call(l[u].context,t);break;case 3:l[u].fn.call(l[u].context,t,r);break;case 4:l[u].fn.call(l[u].context,t,r,i);break;default:if(!c)for(h=1,c=new Array(d-1);h<d;h++)c[h-1]=arguments[h];l[u].fn.apply(l[u].context,c)}}return!0},s.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,i){var o=n?n+e:e;if(!this._events[o])return this;if(!t)return a(this,o),this;var s=this._events[o];if(s.fn)s.fn!==t||i&&!s.once||r&&s.context!==r||a(this,o);else{for(var c=0,u=[],l=s.length;c<l;c++)(s[c].fn!==t||i&&!s[c].once||r&&s[c].context!==r)&&u.push(s[c]);u.length?this._events[o]=1===u.length?u[0]:u:a(this,o)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&a(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s})),Fv=function(e){Tn(n,e);var t=Nn(n);function n(e){var r;return Sn(this,n),(r=t.call(this,e))._className="BigDataChannelModule",r.FILETYPE={SOUND:2106,FILE:2107,VIDEO:2113},r._bdh_download_server="grouptalk.c2c.qq.com",r._BDHBizID=10001,r._authKey="",r._expireTime=0,r.getInnerEmitterInstance().on(jm,r._getAuthKey,Ln(r)),r}return wn(n,[{key:"_getAuthKey",value:function(){var e=this;this.request({protocolName:Ol}).then((function(t){t.data.authKey&&(e._authKey=t.data.authKey,e._expireTime=parseInt(t.data.expireTime))}))}},{key:"_isFromOlderVersion",value:function(e){return!(!e.content||2===e.content.downloadFlag)}},{key:"parseElements",value:function(e,t){if(!hc(e)||!t)return[];for(var n=[],r=null,i=0;i<e.length;i++)r=e[i],this._needParse(r)?n.push(this._parseElement(r,t)):n.push(e[i]);return n}},{key:"_needParse",value:function(e){return!e.cloudCustomData&&!(!this._isFromOlderVersion(e)||e.type!==Kn.MSG_AUDIO&&e.type!==Kn.MSG_FILE&&e.type!==Kn.MSG_VIDEO)}},{key:"_parseElement",value:function(e,t){switch(e.type){case Kn.MSG_AUDIO:return this._parseAudioElement(e,t);case Kn.MSG_FILE:return this._parseFileElement(e,t);case Kn.MSG_VIDEO:return this._parseVideoElement(e,t)}}},{key:"_parseAudioElement",value:function(e,t){return e.content.url=this._genAudioUrl(e.content.uuid,t),e}},{key:"_parseFileElement",value:function(e,t){return e.content.url=this._genFileUrl(e.content.uuid,t,e.content.fileName),e}},{key:"_parseVideoElement",value:function(e,t){return e.content.url=this._genVideoUrl(e.content.uuid,t),e}},{key:"_genAudioUrl",value:function(e,t){if(""===this._authKey)return Zs.warn("".concat(this._className,"._genAudioUrl no authKey!")),"";var n=this.getModule(ll).getSDKAppID();return"https://".concat(this._bdh_download_server,"/asn.com/stddownload_common_file?authkey=").concat(this._authKey,"&bid=").concat(this._BDHBizID,"&subbid=").concat(n,"&fileid=").concat(e,"&filetype=").concat(this.FILETYPE.SOUND,"&openid=").concat(t,"&ver=0")}},{key:"_genFileUrl",value:function(e,t,n){if(""===this._authKey)return Zs.warn("".concat(this._className,"._genFileUrl no authKey!")),"";n||(n="".concat(Math.floor(1e5*Math.random()),"-").concat(Date.now()));var r=this.getModule(ll).getSDKAppID();return"https://".concat(this._bdh_download_server,"/asn.com/stddownload_common_file?authkey=").concat(this._authKey,"&bid=").concat(this._BDHBizID,"&subbid=").concat(r,"&fileid=").concat(e,"&filetype=").concat(this.FILETYPE.FILE,"&openid=").concat(t,"&ver=0&filename=").concat(encodeURIComponent(n))}},{key:"_genVideoUrl",value:function(e,t){if(""===this._authKey)return Zs.warn("".concat(this._className,"._genVideoUrl no authKey!")),"";var n=this.getModule(ll).getSDKAppID();return"https://".concat(this._bdh_download_server,"/asn.com/stddownload_common_file?authkey=").concat(this._authKey,"&bid=").concat(this._BDHBizID,"&subbid=").concat(n,"&fileid=").concat(e,"&filetype=").concat(this.FILETYPE.VIDEO,"&openid=").concat(t,"&ver=0")}},{key:"reset",value:function(){Zs.log("".concat(this._className,".reset")),this._authKey="",this.expireTime=0}}]),n}(Ml),Gv=function(e){Tn(n,e);var t=Nn(n);function n(e){var r;return Sn(this,n),(r=t.call(this,e))._className="UploadModule",r.TIMUploadPlugin=null,r.timUploadPlugin=null,r.COSSDK=null,r._cosUploadMethod=null,r.expiredTimeLimit=600,r.appid=0,r.bucketName="",r.ciUrl="",r.directory="",r.downloadUrl="",r.uploadUrl="",r.region="ap-shanghai",r.cos=null,r.cosOptions={secretId:"",secretKey:"",sessionToken:"",expiredTime:0},r.uploadFileType="",r.duration=900,r.tryCount=0,r.getInnerEmitterInstance().on(jm,r._init,Ln(r)),r}return wn(n,[{key:"_init",value:function(){var e="".concat(this._className,"._init"),t=this.getModule(ml);if(this.TIMUploadPlugin=t.getPlugin("tim-upload-plugin"),this.TIMUploadPlugin)this._initUploaderMethod();else{var n=fs?"cos-wx-sdk":"cos-js-sdk";this.COSSDK=t.getPlugin(n),this.COSSDK?(this._getAuthorizationKey(),Zs.warn("".concat(e," v2.9.2起推荐使用 tim-upload-plugin 代替 ").concat(n,",上传更快更安全。详细请参考 https://web.sdk.qcloud.com/im/doc/zh-cn/SDK.html#registerPlugin"))):Zs.warn("".concat(e," 没有检测到上传插件,将无法发送图片、音频、视频、文件等类型的消息。详细请参考 https://web.sdk.qcloud.com/im/doc/zh-cn/SDK.html#registerPlugin"))}}},{key:"_getAuthorizationKey",value:function(){var e=this,t=new dh(Ih),n=Math.ceil(Date.now()/1e3);this.request({protocolName:Rd,requestData:{duration:this.expiredTimeLimit}}).then((function(r){var i=r.data;Zs.log("".concat(e._className,"._getAuthorizationKey ok. data:"),i);var o=i.expiredTime-n;t.setMessage("requestId:".concat(i.requestId," requestTime:").concat(n," expiredTime:").concat(i.expiredTime," diff:").concat(o,"s")).setNetworkType(e.getNetworkType()).end(),!fs&&i.region&&(e.region=i.region),e.appid=i.appid,e.bucketName=i.bucketName,e.ciUrl=i.ciUrl,e.directory=i.directory,e.downloadUrl=i.downloadUrl,e.uploadUrl=i.uploadUrl,e.cosOptions={secretId:i.secretId,secretKey:i.secretKey,sessionToken:i.sessionToken,expiredTime:i.expiredTime},Zs.log("".concat(e._className,"._getAuthorizationKey ok. region:").concat(e.region," bucketName:").concat(e.bucketName)),e._initUploaderMethod()})).catch((function(n){e.probeNetwork().then((function(e){var r=Un(e,2),i=r[0],o=r[1];t.setError(n,i,o).end()})),Zs.warn("".concat(e._className,"._getAuthorizationKey failed. error:"),n)}))}},{key:"_getCosPreSigUrl",value:function(e){var t=this,n="".concat(this._className,"._getCosPreSigUrl"),r=Math.ceil(Date.now()/1e3),i=new dh(Ch);return this.request({protocolName:Ld,requestData:{fileType:e.fileType,fileName:e.fileName,uploadMethod:e.uploadMethod,duration:e.duration}}).then((function(e){t.tryCount=0;var o=e.data||{},a=o.expiredTime-r;return Zs.log("".concat(n," ok. data:"),o),i.setMessage("requestId:".concat(o.requestId," expiredTime:").concat(o.expiredTime," diff:").concat(a,"s")).setNetworkType(t.getNetworkType()).end(),o})).catch((function(r){return-1===r.code&&(r.code=Yd.COS_GET_SIG_FAIL),t.probeNetwork().then((function(e){var t=Un(e,2),n=t[0],o=t[1];i.setError(r,n,o).end()})),Zs.warn("".concat(n," failed. error:"),r),t.tryCount<1?(t.tryCount++,t._getCosPreSigUrl(e)):(t.tryCount=0,Am({code:Yd.COS_GET_SIG_FAIL,message:Jd.COS_GET_SIG_FAIL}))}))}},{key:"_initUploaderMethod",value:function(){var e=this;if(this.TIMUploadPlugin)return this.timUploadPlugin=new this.TIMUploadPlugin,void(this._cosUploadMethod=function(t,n){e.timUploadPlugin.uploadFile(t,n)});this.appid&&(this.cos=fs?new this.COSSDK({ForcePathStyle:!0,getAuthorization:this._getAuthorization.bind(this)}):new this.COSSDK({getAuthorization:this._getAuthorization.bind(this)}),this._cosUploadMethod=fs?function(t,n){e.cos.postObject(t,n)}:function(t,n){e.cos.uploadFiles(t,n)})}},{key:"onCheckTimer",value:function(e){this.COSSDK&&(this.TIMUploadPlugin||this.isLoggedIn()&&e%60==0&&Math.ceil(Date.now()/1e3)>=this.cosOptions.expiredTime-120&&this._getAuthorizationKey())}},{key:"_getAuthorization",value:function(e,t){t({TmpSecretId:this.cosOptions.secretId,TmpSecretKey:this.cosOptions.secretKey,XCosSecurityToken:this.cosOptions.sessionToken,ExpiredTime:this.cosOptions.expiredTime})}},{key:"upload",value:function(e){if(!0===e.getRelayFlag())return Promise.resolve();var t=this.getModule(Il);switch(e.type){case Kn.MSG_IMAGE:return t.addTotalCount(rh),this._uploadImage(e);case Kn.MSG_FILE:return t.addTotalCount(rh),this._uploadFile(e);case Kn.MSG_AUDIO:return t.addTotalCount(rh),this._uploadAudio(e);case Kn.MSG_VIDEO:return t.addTotalCount(rh),this._uploadVideo(e);default:return Promise.resolve()}}},{key:"_uploadImage",value:function(e){var t=this.getModule(rl),n=e.getElements()[0],r=t.getMessageOption(e.clientSequence);return this.doUploadImage({file:r.payload.file,to:r.to,onProgress:function(e){if(n.updatePercent(e),gc(r.onProgress))try{r.onProgress(e)}catch(t){return Am({code:Yd.MESSAGE_ONPROGRESS_FUNCTION_ERROR,message:Jd.MESSAGE_ONPROGRESS_FUNCTION_ERROR})}}}).then((function(t){var r=t.location,i=t.fileType,o=t.fileSize,a=t.width,s=t.height,c=Ac(r);n.updateImageFormat(i);var u=zc({originUrl:c,originWidth:a,originHeight:s,min:198}),l=zc({originUrl:c,originWidth:a,originHeight:s,min:720});return n.updateImageInfoArray([{size:o,url:c,width:a,height:s},Mn({},l),Mn({},u)]),e}))}},{key:"_uploadFile",value:function(e){var t=this.getModule(rl),n=e.getElements()[0],r=t.getMessageOption(e.clientSequence);return this.doUploadFile({file:r.payload.file,to:r.to,onProgress:function(e){if(n.updatePercent(e),gc(r.onProgress))try{r.onProgress(e)}catch(t){return Am({code:Yd.MESSAGE_ONPROGRESS_FUNCTION_ERROR,message:Jd.MESSAGE_ONPROGRESS_FUNCTION_ERROR})}}}).then((function(t){var r=t.location,i=Ac(r);return n.updateFileUrl(i),e}))}},{key:"_uploadAudio",value:function(e){var t=this.getModule(rl),n=e.getElements()[0],r=t.getMessageOption(e.clientSequence);return this.doUploadAudio({file:r.payload.file,to:r.to,onProgress:function(e){if(n.updatePercent(e),gc(r.onProgress))try{r.onProgress(e)}catch(t){return Am({code:Yd.MESSAGE_ONPROGRESS_FUNCTION_ERROR,message:Jd.MESSAGE_ONPROGRESS_FUNCTION_ERROR})}}}).then((function(t){var r=t.location,i=Ac(r);return n.updateAudioUrl(i),e}))}},{key:"_uploadVideo",value:function(e){var t=this.getModule(rl),n=e.getElements()[0],r=t.getMessageOption(e.clientSequence);return this.doUploadVideo({file:r.payload.file,to:r.to,onProgress:function(e){if(n.updatePercent(e),gc(r.onProgress))try{r.onProgress(e)}catch(t){return Am({code:Yd.MESSAGE_ONPROGRESS_FUNCTION_ERROR,message:Jd.MESSAGE_ONPROGRESS_FUNCTION_ERROR})}}}).then((function(t){var r=t.location,i=t.snapshotInfo,o=Ac(r);return n.updateVideoUrl(o),Jc(i)||n.updateSnapshotInfo(i),e}))}},{key:"doUploadImage",value:function(e){if(!e.file)return Am({code:Yd.MESSAGE_IMAGE_SELECT_FILE_FIRST,message:Jd.MESSAGE_IMAGE_SELECT_FILE_FIRST});var t=this._checkImageType(e.file);if(!0!==t)return t;var n=this._checkImageSize(e.file);if(!0!==n)return n;var r=null;return this._setUploadFileType($m),this.uploadByCOS(e).then((function(e){return r=e,Vc("https://".concat(e.location))})).then((function(e){return r.width=e.width,r.height=e.height,Promise.resolve(r)}))}},{key:"_checkImageType",value:function(e){var t="";return t=fs?e.url.slice(e.url.lastIndexOf(".")+1):e.files[0].name.slice(e.files[0].name.lastIndexOf(".")+1),Wm.indexOf(t.toLowerCase())>=0||Am({code:Yd.MESSAGE_IMAGE_TYPES_LIMIT,message:Jd.MESSAGE_IMAGE_TYPES_LIMIT})}},{key:"_checkImageSize",value:function(e){var t=0;return 0===(t=fs?e.size:e.files[0].size)?Am({code:Yd.MESSAGE_FILE_IS_EMPTY,message:"".concat(Jd.MESSAGE_FILE_IS_EMPTY)}):t<20971520||Am({code:Yd.MESSAGE_IMAGE_SIZE_LIMIT,message:"".concat(Jd.MESSAGE_IMAGE_SIZE_LIMIT)})}},{key:"doUploadFile",value:function(e){var t=null;return e.file?e.file.files[0].size>104857600?Am(t={code:Yd.MESSAGE_FILE_SIZE_LIMIT,message:Jd.MESSAGE_FILE_SIZE_LIMIT}):0===e.file.files[0].size?(t={code:Yd.MESSAGE_FILE_IS_EMPTY,message:"".concat(Jd.MESSAGE_FILE_IS_EMPTY)},Am(t)):(this._setUploadFileType(Jm),this.uploadByCOS(e)):Am(t={code:Yd.MESSAGE_FILE_SELECT_FILE_FIRST,message:Jd.MESSAGE_FILE_SELECT_FILE_FIRST})}},{key:"doUploadVideo",value:function(e){return e.file.videoFile.size>104857600?Am({code:Yd.MESSAGE_VIDEO_SIZE_LIMIT,message:"".concat(Jd.MESSAGE_VIDEO_SIZE_LIMIT)}):0===e.file.videoFile.size?Am({code:Yd.MESSAGE_FILE_IS_EMPTY,message:"".concat(Jd.MESSAGE_FILE_IS_EMPTY)}):-1===qm.indexOf(e.file.videoFile.type)?Am({code:Yd.MESSAGE_VIDEO_TYPES_LIMIT,message:"".concat(Jd.MESSAGE_VIDEO_TYPES_LIMIT)}):(this._setUploadFileType(Km),fs?this.handleVideoUpload({file:e.file.videoFile,onProgress:e.onProgress}):ps?this.handleVideoUpload(e):void 0)}},{key:"handleVideoUpload",value:function(e){var t=this;return new Promise((function(n,r){t.uploadByCOS(e).then((function(e){n(e)})).catch((function(){t.uploadByCOS(e).then((function(e){n(e)})).catch((function(){r(new Mm({code:Yd.MESSAGE_VIDEO_UPLOAD_FAIL,message:Jd.MESSAGE_VIDEO_UPLOAD_FAIL}))}))}))}))}},{key:"doUploadAudio",value:function(e){return e.file?e.file.size>20971520?Am(new Mm({code:Yd.MESSAGE_AUDIO_SIZE_LIMIT,message:"".concat(Jd.MESSAGE_AUDIO_SIZE_LIMIT)})):0===e.file.size?Am(new Mm({code:Yd.MESSAGE_FILE_IS_EMPTY,message:"".concat(Jd.MESSAGE_FILE_IS_EMPTY)})):(this._setUploadFileType(Ym),this.uploadByCOS(e)):Am(new Mm({code:Yd.MESSAGE_AUDIO_UPLOAD_FAIL,message:Jd.MESSAGE_AUDIO_UPLOAD_FAIL}))}},{key:"uploadByCOS",value:function(e){var t=this,n="".concat(this._className,".uploadByCOS");if(!gc(this._cosUploadMethod))return Zs.warn("".concat(n," 没有检测到上传插件,将无法发送图片、音频、视频、文件等类型的消息。详细请参考 https://web.sdk.qcloud.com/im/doc/zh-cn/SDK.html#registerPlugin")),Am({code:Yd.COS_UNDETECTED,message:Jd.COS_UNDETECTED});if(this.timUploadPlugin)return this._uploadWithPreSigUrl(e);var r=new dh(Th),i=Date.now(),o=this._getFile(e);return new Promise((function(a,s){var c=fs?t._createCosOptionsWXMiniApp(e):t._createCosOptionsWeb(e),u=t;t._cosUploadMethod(c,(function(e,c){var l=Object.create(null);if(c){if(e||hc(c.files)&&c.files[0].error){var d=new Mm({code:Yd.MESSAGE_FILE_UPLOAD_FAIL,message:Jd.MESSAGE_FILE_UPLOAD_FAIL});return r.setError(d,!0,t.getNetworkType()).end(),Zs.log("".concat(n," failed. error:"),c.files[0].error),403===c.files[0].error.statusCode&&(Zs.warn("".concat(n," failed. cos AccessKeyId was invalid, regain auth key!")),t._getAuthorizationKey()),void s(d)}l.fileName=o.name,l.fileSize=o.size,l.fileType=o.type.slice(o.type.indexOf("/")+1).toLowerCase(),l.location=fs?c.Location:c.files[0].data.Location;var h=Date.now()-i,f=u._formatFileSize(o.size),p=u._formatSpeed(1e3*o.size/h),g="size:".concat(f," time:").concat(h,"ms speed:").concat(p);Zs.log("".concat(n," success. name:").concat(o.name," ").concat(g)),a(l);var m=t.getModule(Il);return m.addCost(rh,h),m.addFileSize(rh,o.size),void r.setNetworkType(t.getNetworkType()).setMessage(g).end()}var v=new Mm({code:Yd.MESSAGE_FILE_UPLOAD_FAIL,message:Jd.MESSAGE_FILE_UPLOAD_FAIL});r.setError(v,!0,u.getNetworkType()).end(),Zs.warn("".concat(n," failed. error:"),e),403===e.statusCode&&(Zs.warn("".concat(n," failed. cos AccessKeyId was invalid, regain auth key!")),t._getAuthorizationKey()),s(v)}))}))}},{key:"_uploadWithPreSigUrl",value:function(e){var t=this,n="".concat(this._className,"._uploadWithPreSigUrl"),r=this._getFile(e);return this._createCosOptionsPreSigUrl(e).then((function(e){return new Promise((function(i,o){var a=new dh(Th),s=e.requestSnapshotUrl,c=void 0===s?void 0:s,u=Rn(e,["requestSnapshotUrl"]),l=Date.now();t._cosUploadMethod(u,(function(e,s){var u=Object.create(null);if(e||403===s.statusCode){var d=new Mm({code:Yd.MESSAGE_FILE_UPLOAD_FAIL,message:Jd.MESSAGE_FILE_UPLOAD_FAIL});return a.setError(d,!0,t.getNetworkType()).end(),Zs.log("".concat(n," failed, error:"),e),void o(d)}var h=s.data.location||"";0!==h.indexOf("https://")&&0!==h.indexOf("http://")||(h=h.split("//")[1]),u.fileName=r.name,u.fileSize=r.size,u.fileType=r.type.slice(r.type.indexOf("/")+1).toLowerCase(),u.location=h;var f=Date.now()-l,p=t._formatFileSize(r.size),g=t._formatSpeed(1e3*r.size/f),m="size:".concat(p,",time:").concat(f,"ms,speed:").concat(g," res:").concat(JSON.stringify(s.data));Zs.log("".concat(n," success name:").concat(r.name,",").concat(m)),a.setNetworkType(t.getNetworkType()).setMessage(m).end();var v=t.getModule(Il);if(v.addCost(rh,f),v.addFileSize(rh,r.size),!Jc(c))return t._getSnapshotInfoByUrl(c).then((function(e){u.snapshotInfo=e,i(u)}));i(u)}))}))}))}},{key:"_getFile",value:function(e){var t=null;return fs?t=ds&&hc(e.file.files)?e.file.files[0]:e.file:ps&&(t=e.file.files[0]),t}},{key:"_formatFileSize",value:function(e){return e<1024?e+"B":e<1048576?Math.floor(e/1024)+"KB":Math.floor(e/1048576)+"MB"}},{key:"_formatSpeed",value:function(e){return e<=1048576?qc(e/1024,1)+"KB/s":qc(e/1048576,1)+"MB/s"}},{key:"_createCosOptionsWeb",value:function(e){var t=e.file.files[0].name,n=t.slice(t.lastIndexOf(".")),r=this._genFileName("".concat(Ic(999999)).concat(n));return{files:[{Bucket:"".concat(this.bucketName,"-").concat(this.appid),Region:this.region,Key:"".concat(this.directory,"/").concat(r),Body:e.file.files[0]}],SliceSize:1048576,onProgress:function(t){if("function"==typeof e.onProgress)try{e.onProgress(t.percent)}catch(n){Zs.warn("onProgress callback error:",n)}},onFileFinish:function(e,t,n){}}}},{key:"_createCosOptionsWXMiniApp",value:function(e){var t=this._getFile(e),n=this._genFileName(t.name),r=t.url;return{Bucket:"".concat(this.bucketName,"-").concat(this.appid),Region:this.region,Key:"".concat(this.directory,"/").concat(n),FilePath:r,onProgress:function(t){if(Zs.log(JSON.stringify(t)),"function"==typeof e.onProgress)try{e.onProgress(t.percent)}catch(n){Zs.warn("onProgress callback error:",n)}}}}},{key:"_createCosOptionsPreSigUrl",value:function(e){var t=this,n="",r="",i=0;if(fs){var o=this._getFile(e);n=this._genFileName(o.name),r=o.url,i=1}else{var a=e.file.files[0].name,s=a.slice(a.lastIndexOf("."));n=this._genFileName("".concat(Ic(999999)).concat(s)),r=e.file.files[0],i=0}return this._getCosPreSigUrl({fileType:this.uploadFileType,fileName:n,uploadMethod:i,duration:this.duration}).then((function(i){var o=i.uploadUrl,a=i.downloadUrl,s=i.requestSnapshotUrl,c=void 0===s?void 0:s;return{url:o,fileType:t.uploadFileType,fileName:n,resources:r,downloadUrl:a,requestSnapshotUrl:c,onProgress:function(t){if("function"==typeof e.onProgress)try{e.onProgress(t.percent)}catch(n){Zs.warn("onProgress callback error:",n),Zs.error(n)}}}}))}},{key:"_genFileName",value:function(e){return"".concat(jc(),"-").concat(e)}},{key:"_setUploadFileType",value:function(e){this.uploadFileType=e}},{key:"_getSnapshotInfoByUrl",value:function(e){var t=this,n=new dh(Mh);return this.request({protocolName:Pd,requestData:{platform:this.getPlatform(),coverName:this._genFileName(Ic(99999)),requestSnapshotUrl:e}}).then((function(e){var t=(e.data||{}).snapshotUrl;return n.setMessage("snapshotUrl:".concat(t)).end(),Jc(t)?{}:Vc(t).then((function(e){return{snapshotUrl:t,snapshotWidth:e.width,snapshotHeight:e.height}}))})).catch((function(e){return Zs.warn("".concat(t._className,"._getSnapshotInfoByUrl failed. error:"),e),n.setCode(e.errorCode).setMessage(e.errorInfo).end(),{}}))}},{key:"reset",value:function(){Zs.log("".concat(this._className,".reset"))}}]),n}(Ml),Vv=function(){function e(t){Sn(this,e),this._className="MergerMessageHandler",this._messageModule=t}return wn(e,[{key:"uploadMergerMessage",value:function(e,t){var n=this;Zs.debug("".concat(this._className,".uploadMergerMessage message:"),e,"messageBytes:".concat(t));var r=e.payload.messageList,i=r.length,o=new dh(jh);return this._messageModule.request({protocolName:Bd,requestData:{messageList:r}}).then((function(e){Zs.debug("".concat(n._className,".uploadMergerMessage ok. response:"),e.data);var r=e.data,a=r.pbDownloadKey,s=r.downloadKey,c={pbDownloadKey:a,downloadKey:s,messageNumber:i};return o.setNetworkType(n._messageModule.getNetworkType()).setMessage("".concat(i,"-").concat(t,"-").concat(s)).end(),c})).catch((function(e){throw Zs.warn("".concat(n._className,".uploadMergerMessage failed. error:"),e),n._messageModule.probeNetwork().then((function(t){var n=Un(t,2),r=n[0],i=n[1];o.setError(e,r,i).end()})),e}))}},{key:"downloadMergerMessage",value:function(e){var t=this;Zs.debug("".concat(this._className,".downloadMergerMessage message:"),e);var n=e.payload.downloadKey,r=new dh(Bh);return r.setMessage("downloadKey:".concat(n)),this._messageModule.request({protocolName:zd,requestData:{downloadKey:n}}).then((function(n){if(Zs.debug("".concat(t._className,".downloadMergerMessage ok. response:"),n.data),gc(e.clearElement)){var i=e.payload,o=(i.downloadKey,i.pbDownloadKey,i.messageList,Rn(i,["downloadKey","pbDownloadKey","messageList"]));e.clearElement(),e.setElement({type:e.type,content:Mn({messageList:n.data.messageList},o)})}else{var a=[];n.data.messageList.forEach((function(e){if(!Jc(e)){var t=new mm(e);a.push(t)}})),e.payload.messageList=a,e.payload.downloadKey="",e.payload.pbDownloadKey=""}return r.setNetworkType(t._messageModule.getNetworkType()).end(),e})).catch((function(e){throw Zs.warn("".concat(t._className,".downloadMergerMessage failed. key:").concat(n," error:"),e),t._messageModule.probeNetwork().then((function(t){var n=Un(t,2),i=n[0],o=n[1];r.setError(e,i,o).end()})),e}))}},{key:"createMergerMessagePack",value:function(e,t,n){return e.conversationType===Kn.CONV_C2C?this._createC2CMergerMessagePack(e,t,n):this._createGroupMergerMessagePack(e,t,n)}},{key:"_createC2CMergerMessagePack",value:function(e,t,n){var r=null;t&&(t.offlinePushInfo&&(r=t.offlinePushInfo),!0===t.onlineUserOnly&&(r?r.disablePush=!0:r={disablePush:!0}));var i="";uc(e.cloudCustomData)&&e.cloudCustomData.length>0&&(i=e.cloudCustomData);var o=n.pbDownloadKey,a=n.downloadKey,s=n.messageNumber,c=e.payload,u=c.title,l=c.abstractList,d=c.compatibleText,h=this._messageModule.getModule(ol);return{protocolName:Rl,tjgID:this._messageModule.generateTjgID(e),requestData:{fromAccount:this._messageModule.getMyUserID(),toAccount:e.to,msgBody:[{msgType:e.type,msgContent:{pbDownloadKey:o,downloadKey:a,title:u,abstractList:l,compatibleText:d,messageNumber:s}}],cloudCustomData:i,msgSeq:e.sequence,msgRandom:e.random,msgLifeTime:h&&h.isOnlineMessage(e,t)?0:void 0,offlinePushInfo:r?{pushFlag:!0===r.disablePush?1:0,title:r.title||"",desc:r.description||"",ext:r.extension||"",apnsInfo:{badgeMode:!0===r.ignoreIOSBadge?1:0},androidInfo:{OPPOChannelID:r.androidOPPOChannelID||""}}:void 0}}}},{key:"_createGroupMergerMessagePack",value:function(e,t,n){var r=null;t&&t.offlinePushInfo&&(r=t.offlinePushInfo);var i="";uc(e.cloudCustomData)&&e.cloudCustomData.length>0&&(i=e.cloudCustomData);var o=n.pbDownloadKey,a=n.downloadKey,s=n.messageNumber,c=e.payload,u=c.title,l=c.abstractList,d=c.compatibleText,h=this._messageModule.getModule(al);return{protocolName:Ll,tjgID:this._messageModule.generateTjgID(e),requestData:{fromAccount:this._messageModule.getMyUserID(),groupID:e.to,msgBody:[{msgType:e.type,msgContent:{pbDownloadKey:o,downloadKey:a,title:u,abstractList:l,compatibleText:d,messageNumber:s}}],random:e.random,priority:e.priority,clientSequence:e.clientSequence,groupAtInfo:void 0,cloudCustomData:i,onlineOnlyFlag:h&&h.isOnlineMessage(e,t)?1:0,offlinePushInfo:r?{pushFlag:!0===r.disablePush?1:0,title:r.title||"",desc:r.description||"",ext:r.extension||"",apnsInfo:{badgeMode:!0===r.ignoreIOSBadge?1:0},androidInfo:{OPPOChannelID:r.androidOPPOChannelID||""}}:void 0,clientTime:e.clientTime,needReadReceipt:!0!==e.needReadReceipt||h.isMessageFromOrToAVChatroom(e.to)?0:1}}}}]),e}(),jv={ERR_SVR_COMM_SENSITIVE_TEXT:80001,ERR_SVR_COMM_BODY_SIZE_LIMIT:80002,OPEN_SERVICE_OVERLOAD_ERROR:60022,ERR_SVR_MSG_PKG_PARSE_FAILED:20001,ERR_SVR_MSG_INTERNAL_AUTH_FAILED:20002,ERR_SVR_MSG_INVALID_ID:20003,ERR_SVR_MSG_PUSH_DENY:20006,ERR_SVR_MSG_IN_PEER_BLACKLIST:20007,ERR_SVR_MSG_BOTH_NOT_FRIEND:20009,ERR_SVR_MSG_NOT_PEER_FRIEND:20010,ERR_SVR_MSG_NOT_SELF_FRIEND:20011,ERR_SVR_MSG_SHUTUP_DENY:20012,ERR_SVR_GROUP_INVALID_PARAMETERS:10004,ERR_SVR_GROUP_PERMISSION_DENY:10007,ERR_SVR_GROUP_NOT_FOUND:10010,ERR_SVR_GROUP_INVALID_GROUPID:10015,ERR_SVR_GROUP_REJECT_FROM_THIRDPARTY:10016,ERR_SVR_GROUP_SHUTUP_DENY:10017,MESSAGE_SEND_FAIL:2100,OVER_FREQUENCY_LIMIT:2996},Bv=[Yd.MESSAGE_ONPROGRESS_FUNCTION_ERROR,Yd.MESSAGE_IMAGE_SELECT_FILE_FIRST,Yd.MESSAGE_IMAGE_TYPES_LIMIT,Yd.MESSAGE_FILE_IS_EMPTY,Yd.MESSAGE_IMAGE_SIZE_LIMIT,Yd.MESSAGE_FILE_SELECT_FILE_FIRST,Yd.MESSAGE_FILE_SIZE_LIMIT,Yd.MESSAGE_VIDEO_SIZE_LIMIT,Yd.MESSAGE_VIDEO_TYPES_LIMIT,Yd.MESSAGE_AUDIO_UPLOAD_FAIL,Yd.MESSAGE_AUDIO_SIZE_LIMIT,Yd.COS_UNDETECTED],zv=function(e){Tn(n,e);var t=Nn(n);function n(e){var r;return Sn(this,n),(r=t.call(this,e))._className="MessageModule",r._messageOptionsMap=new Map,r._mergerMessageHandler=new Vv(Ln(r)),r}return wn(n,[{key:"createTextMessage",value:function(e){var t=e.to,n=e.payload.atUserList,r=void 0===n?[]:n;if(Pc({groupID:t})&&r.includes(Kn.MSG_AT_ALL))return Am({code:Yd.MESSAGE_AT_TYPE_INVALID,message:Jd.MESSAGE_AT_TYPE_INVALID});var i=this.getMyUserID();e.currentUser=i,e.senderTinyID=this.getMyTinyID();var o=new _m(e),a="string"==typeof e.payload?e.payload:e.payload.text,s=new Kf({text:a}),c=this._getNickAndAvatarByUserID(i);return o.setElement(s),o.setNickAndAvatar(c),o.setNameCard(this._getNameCardByGroupID(o)),o}},{key:"createImageMessage",value:function(e){var t=this.getMyUserID();e.currentUser=t,e.senderTinyID=this.getMyTinyID();var n=new _m(e);if(fs){var r=e.payload.file;if(sc(r))return void Zs.warn("小程序环境下调用 createImageMessage 接口时,payload.file 不支持传入 File 对象");var i=r.tempFilePaths[0],o={url:i,name:i.slice(i.lastIndexOf("/")+1),size:r.tempFiles&&r.tempFiles[0].size||1,type:i.slice(i.lastIndexOf(".")+1).toLowerCase()};e.payload.file=o}else if(ps)if(sc(e.payload.file)){var a=e.payload.file;e.payload.file={files:[a]}}else if(dc(e.payload.file)&&"undefined"!=typeof uni){var s=e.payload.file.tempFiles[0];e.payload.file={files:[s]}}var c=new Qg({imageFormat:Qs.UNKNOWN,uuid:this._generateUUID(),file:e.payload.file}),u=this._getNickAndAvatarByUserID(t);return n.setElement(c),n.setNickAndAvatar(u),n.setNameCard(this._getNameCardByGroupID(n)),this._messageOptionsMap.set(n.clientSequence,e),n}},{key:"createAudioMessage",value:function(e){if(fs){var t=e.payload.file;if(fs){var n={url:t.tempFilePath,name:t.tempFilePath.slice(t.tempFilePath.lastIndexOf("/")+1),size:t.fileSize,second:parseInt(t.duration)/1e3,type:t.tempFilePath.slice(t.tempFilePath.lastIndexOf(".")+1).toLowerCase()};e.payload.file=n}var r=this.getMyUserID();e.currentUser=r,e.senderTinyID=this.getMyTinyID();var i=new _m(e),o=new tm({second:Math.floor(t.duration/1e3),size:t.fileSize,url:t.tempFilePath,uuid:this._generateUUID()}),a=this._getNickAndAvatarByUserID(r);return i.setElement(o),i.setNickAndAvatar(a),i.setNameCard(this._getNameCardByGroupID(i)),this._messageOptionsMap.set(i.clientSequence,e),i}Zs.warn("createAudioMessage 目前只支持小程序环境下发语音消息")}},{key:"createVideoMessage",value:function(e){var t=this.getMyUserID();e.currentUser=t,e.senderTinyID=this.getMyTinyID(),e.payload.file.thumbUrl="https://web.sdk.qcloud.com/im/assets/images/transparent.png",e.payload.file.thumbSize=1668;var n={};if(fs){if(ls)return void Zs.warn("createVideoMessage 不支持在支付宝小程序环境下使用");if(sc(e.payload.file))return void Zs.warn("小程序环境下调用 createVideoMessage 接口时,payload.file 不支持传入 File 对象");var r=e.payload.file;n.url=r.tempFilePath,n.name=r.tempFilePath.slice(r.tempFilePath.lastIndexOf("/")+1),n.size=r.size,n.second=r.duration,n.type=r.tempFilePath.slice(r.tempFilePath.lastIndexOf(".")+1).toLowerCase()}else if(ps){if(sc(e.payload.file)){var i=e.payload.file;e.payload.file.files=[i]}else if(dc(e.payload.file)&&"undefined"!=typeof uni){var o=e.payload.file.tempFile;e.payload.file.files=[o]}var a=e.payload.file;n.url=window.URL.createObjectURL(a.files[0]),n.name=a.files[0].name,n.size=a.files[0].size,n.second=a.files[0].duration||0,n.type=a.files[0].type.split("/")[1]}e.payload.file.videoFile=n;var s=new _m(e),c=new pm({videoFormat:n.type,videoSecond:qc(n.second,0),videoSize:n.size,remoteVideoUrl:"",videoUrl:n.url,videoUUID:this._generateUUID(),thumbUUID:this._generateUUID(),thumbWidth:e.payload.file.width||200,thumbHeight:e.payload.file.height||200,thumbUrl:e.payload.file.thumbUrl,thumbSize:e.payload.file.thumbSize,thumbFormat:e.payload.file.thumbUrl.slice(e.payload.file.thumbUrl.lastIndexOf(".")+1).toLowerCase()}),u=this._getNickAndAvatarByUserID(t);return s.setElement(c),s.setNickAndAvatar(u),s.setNameCard(this._getNameCardByGroupID(s)),this._messageOptionsMap.set(s.clientSequence,e),s}},{key:"createCustomMessage",value:function(e){var t=this.getMyUserID();e.currentUser=t,e.senderTinyID=this.getMyTinyID();var n=new _m(e),r=new fm({data:e.payload.data,description:e.payload.description,extension:e.payload.extension}),i=this._getNickAndAvatarByUserID(t);return n.setElement(r),n.setNickAndAvatar(i),n.setNameCard(this._getNameCardByGroupID(n)),n}},{key:"createFaceMessage",value:function(e){var t=this.getMyUserID();e.currentUser=t,e.senderTinyID=this.getMyTinyID();var n=new _m(e),r=new em(e.payload),i=this._getNickAndAvatarByUserID(t);return n.setElement(r),n.setNickAndAvatar(i),n.setNameCard(this._getNameCardByGroupID(n)),n}},{key:"createMergerMessage",value:function(e){var t=this.getMyUserID();e.currentUser=t,e.senderTinyID=this.getMyTinyID();var n=this._getNickAndAvatarByUserID(t),r=new _m(e),i=new vm(e.payload);return r.setElement(i),r.setNickAndAvatar(n),r.setNameCard(this._getNameCardByGroupID(r)),r.setRelayFlag(!0),r}},{key:"createForwardMessage",value:function(e){var t=e.to,n=e.conversationType,r=e.priority,i=e.payload,o=e.needReadReceipt,a=this.getMyUserID(),s=this._getNickAndAvatarByUserID(a);if(i.type===Kn.MSG_GRP_TIP)return Am(new Mm({code:Yd.MESSAGE_FORWARD_TYPE_INVALID,message:Jd.MESSAGE_FORWARD_TYPE_INVALID}));var c={to:t,conversationType:n,conversationID:"".concat(n).concat(t),priority:r,isPlaceMessage:0,status:Fu.UNSEND,currentUser:a,senderTinyID:this.getMyTinyID(),cloudCustomData:e.cloudCustomData||i.cloudCustomData||"",needReadReceipt:o},u=new _m(c);return u.setElement(i.getElements()[0]),u.setNickAndAvatar(s),u.setNameCard(this._getNameCardByGroupID(i)),u.setRelayFlag(!0),u}},{key:"downloadMergerMessage",value:function(e){return this._mergerMessageHandler.downloadMergerMessage(e)}},{key:"createFileMessage",value:function(e){if(!fs||ds){if(ps||ds)if(sc(e.payload.file)){var t=e.payload.file;e.payload.file={files:[t]}}else if(dc(e.payload.file)&&"undefined"!=typeof uni){var n=e.payload.file,r=n.tempFiles,i=n.files,o=null;hc(r)?o=r[0]:hc(i)&&(o=i[0]),e.payload.file={files:[o]}}var a=this.getMyUserID();e.currentUser=a,e.senderTinyID=this.getMyTinyID();var s=new _m(e),c=new hm({uuid:this._generateUUID(),file:e.payload.file}),u=this._getNickAndAvatarByUserID(a);return s.setElement(c),s.setNickAndAvatar(u),s.setNameCard(this._getNameCardByGroupID(s)),this._messageOptionsMap.set(s.clientSequence,e),s}Zs.warn("小程序目前不支持选择文件, createFileMessage 接口不可用!")}},{key:"createLocationMessage",value:function(e){var t=this.getMyUserID();e.currentUser=t,e.senderTinyID=this.getMyTinyID();var n=new _m(e),r=new gm(e.payload),i=this._getNickAndAvatarByUserID(t);return n.setElement(r),n.setNickAndAvatar(i),n.setNameCard(this._getNameCardByGroupID(n)),n}},{key:"_onCannotFindModule",value:function(){return Am({code:Yd.CANNOT_FIND_MODULE,message:Jd.CANNOT_FIND_MODULE})}},{key:"sendMessageInstance",value:function(e,t){var n,r=this,i=null;switch(e.conversationType){case Kn.CONV_C2C:if(!(i=this.getModule(ol)))return this._onCannotFindModule();break;case Kn.CONV_GROUP:if(!(i=this.getModule(al)))return this._onCannotFindModule();if(Pc({groupID:e.to})&&!fc(t)&&!fc(t.messageControlInfo))return Am({code:Yd.MESSAGE_CONTROL_INFO_FAIL,message:Jd.MESSAGE_CONTROL_INFO_FAIL});break;default:return Am({code:Yd.MESSAGE_SEND_INVALID_CONVERSATION_TYPE,message:Jd.MESSAGE_SEND_INVALID_CONVERSATION_TYPE})}var o=this.getModule(gl),a=this.getModule(al);return o.upload(e).then((function(){return r._getSendMessageSpecifiedKey(e)===nh&&r.getModule(Il).addSuccessCount(rh),a.guardForAVChatRoom(e).then((function(){if(!e.isSendable())return Am({code:Yd.MESSAGE_FILE_URL_IS_EMPTY,message:Jd.MESSAGE_FILE_URL_IS_EMPTY});r._addSendMessageTotalCount(e),n=Date.now();var o=function(e){var t="utf-8";ps&&document&&(t=document.charset.toLowerCase());var n,r,i=0;if(r=e.length,"utf-8"===t||"utf8"===t)for(var o=0;o<r;o++)(n=e.codePointAt(o))<=127?i+=1:n<=2047?i+=2:n<=65535?i+=3:(i+=4,o++);else if("utf-16"===t||"utf16"===t)for(var a=0;a<r;a++)(n=e.codePointAt(a))<=65535?i+=2:(i+=4,a++);else i=e.replace(/[^\x00-\xff]/g,"aa").length;return i}(JSON.stringify(e));return e.type===Kn.MSG_MERGER&&o>7e3?r._mergerMessageHandler.uploadMergerMessage(e,o).then((function(n){var i=r._mergerMessageHandler.createMergerMessagePack(e,t,n);return r.request(i)})):(r.getModule(ul).setMessageRandom(e),e.conversationType===Kn.CONV_C2C||e.conversationType===Kn.CONV_GROUP?i.sendMessage(e,t):void 0)})).then((function(o){var a=o.data,s=a.time,c=a.sequence,u=a.readReceiptCode;cc(u)&&0!==u&&(new dh(Eh).setMessage("from:".concat(e.from," to:").concat(e.to," sequence:").concat(c," readReceiptCode:").concat(u)).end(),Zs.warn("".concat(r._className,".sendMessageInstance readReceiptCode:").concat(u," message:").concat(Cm[u]))),r._addSendMessageSuccessCount(e,n),r._messageOptionsMap.delete(e.clientSequence);var l=r.getModule(ul);e.status=Fu.SUCCESS,e.time=s;var d=!1;if(e.conversationType===Kn.CONV_GROUP)e.sequence=c;else if(e.conversationType===Kn.CONV_C2C){var h=l.getLatestMessageSentByMe(e.conversationID);if(h){var f=h.nick,p=h.avatar;f===e.nick&&p===e.avatar||(d=!0)}}if(l.appendToMessageList(e),d&&l.modifyMessageSentByMe({conversationID:e.conversationID,latestNick:e.nick,latestAvatar:e.avatar}),i.isOnlineMessage(e,t))e._onlineOnlyFlag=!0;else{var g=e;dc(t)&&dc(t.messageControlInfo)&&(!0===t.messageControlInfo.excludedFromLastMessage&&(e._isExcludedFromLastMessage=!0,g=""),!0===t.messageControlInfo.excludedFromUnreadCount&&(e._isExcludedFromUnreadCount=!0)),l.onMessageSent({conversationOptionsList:[{conversationID:e.conversationID,unreadCount:0,type:e.conversationType,subType:e.conversationSubType,lastMessage:g}]})}return e.getRelayFlag()||"TIMImageElem"!==e.type||Hc(e.payload.imageInfoArray),bm({message:e})}))})).catch((function(t){return r._onSendMessageFailed(e,t)}))}},{key:"_onSendMessageFailed",value:function(e,t){e.status=Fu.FAIL,this.getModule(ul).deleteMessageRandom(e),this._addSendMessageFailCountOnUser(e,t);var n=new dh(kh);return n.setMessage("tjg_id:".concat(this.generateTjgID(e)," type:").concat(e.type," from:").concat(e.from," to:").concat(e.to)),this.probeNetwork().then((function(e){var r=Un(e,2),i=r[0],o=r[1];n.setError(t,i,o).end()})),Zs.error("".concat(this._className,"._onSendMessageFailed error:"),t),Am(new Mm({code:t&&t.code?t.code:Yd.MESSAGE_SEND_FAIL,message:t&&t.message?t.message:Jd.MESSAGE_SEND_FAIL,data:{message:e}}))}},{key:"_getSendMessageSpecifiedKey",value:function(e){if([Kn.MSG_IMAGE,Kn.MSG_AUDIO,Kn.MSG_VIDEO,Kn.MSG_FILE].includes(e.type))return nh;if(e.conversationType===Kn.CONV_C2C)return Qd;if(e.conversationType===Kn.CONV_GROUP){var t=this.getModule(al).getLocalGroupProfile(e.to);if(!t)return;var n=t.type;return Lc(n)?th:eh}}},{key:"_addSendMessageTotalCount",value:function(e){var t=this._getSendMessageSpecifiedKey(e);t&&this.getModule(Il).addTotalCount(t)}},{key:"_addSendMessageSuccessCount",value:function(e,t){var n=Math.abs(Date.now()-t),r=this._getSendMessageSpecifiedKey(e);if(r){var i=this.getModule(Il);i.addSuccessCount(r),i.addCost(r,n)}}},{key:"_addSendMessageFailCountOnUser",value:function(e,t){var n,r,i=t.code,o=void 0===i?-1:i,a=this.getModule(Il),s=this._getSendMessageSpecifiedKey(e);s===nh&&(n=o,r=!1,Bv.includes(n)&&(r=!0),r)?a.addFailedCountOfUserSide(rh):function(e){var t=!1;return Object.values(jv).includes(e)&&(t=!0),(e>=120001&&e<=13e4||e>=10100&&e<=10200)&&(t=!0),t}(o)&&s&&a.addFailedCountOfUserSide(s)}},{key:"resendMessage",value:function(e){return e.isResend=!0,e.status=Fu.UNSEND,e.random=Ic(),e.clientTime=Ks(),e.generateMessageID(),this.sendMessageInstance(e)}},{key:"revokeMessage",value:function(e){var t=this,n=null;if(e.conversationType===Kn.CONV_C2C){if(!(n=this.getModule(ol)))return this._onCannotFindModule()}else if(e.conversationType===Kn.CONV_GROUP&&!(n=this.getModule(al)))return this._onCannotFindModule();var r=new dh(Ph);return r.setMessage("tjg_id:".concat(this.generateTjgID(e)," type:").concat(e.type," from:").concat(e.from," to:").concat(e.to)),n.revokeMessage(e).then((function(n){var i=n.data.recallRetList;if(!Jc(i)&&0!==i[0].retCode){var o=new Mm({code:i[0].retCode,message:Cm[i[0].retCode]||Jd.MESSAGE_REVOKE_FAIL,data:{message:e}});return r.setCode(o.code).setMoreMessage(o.message).end(),Am(o)}return Zs.info("".concat(t._className,".revokeMessage ok. ID:").concat(e.ID)),e.isRevoked=!0,r.end(),t.getModule(ul).onMessageRevoked([e]),bm({message:e})})).catch((function(n){t.probeNetwork().then((function(e){var t=Un(e,2),i=t[0],o=t[1];r.setError(n,i,o).end()}));var i=new Mm({code:n&&n.code?n.code:Yd.MESSAGE_REVOKE_FAIL,message:n&&n.message?n.message:Jd.MESSAGE_REVOKE_FAIL,data:{message:e}});return Zs.warn("".concat(t._className,".revokeMessage failed. error:"),n),Am(i)}))}},{key:"deleteMessage",value:function(e){var t=this,n=null,r=e[0],i=r.conversationID,o="",a=[],s=[];if(r.conversationType===Kn.CONV_C2C?(n=this.getModule(ol),o=i.replace(Kn.CONV_C2C,""),e.forEach((function(e){e&&e.status===Fu.SUCCESS&&e.conversationID===i&&(e._onlineOnlyFlag||a.push("".concat(e.sequence,"_").concat(e.random,"_").concat(e.time)),s.push(e))}))):r.conversationType===Kn.CONV_GROUP&&(n=this.getModule(al),o=i.replace(Kn.CONV_GROUP,""),e.forEach((function(e){e&&e.status===Fu.SUCCESS&&e.conversationID===i&&(e._onlineOnlyFlag||a.push("".concat(e.sequence)),s.push(e))}))),!n)return this._onCannotFindModule();if(0===a.length)return this._onMessageDeleted(s);a.length>30&&(a=a.slice(0,30),s=s.slice(0,30));var c=new dh(Nh);return c.setMessage("to:".concat(o," count:").concat(a.length)),n.deleteMessage({to:o,keyList:a}).then((function(e){return c.end(),Zs.info("".concat(t._className,".deleteMessage ok")),t._onMessageDeleted(s)})).catch((function(e){t.probeNetwork().then((function(t){var n=Un(t,2),r=n[0],i=n[1];c.setError(e,r,i).end()})),Zs.warn("".concat(t._className,".deleteMessage failed. error:"),e);var n=new Mm({code:e&&e.code?e.code:Yd.MESSAGE_DELETE_FAIL,message:e&&e.message?e.message:Jd.MESSAGE_DELETE_FAIL});return Am(n)}))}},{key:"_onMessageDeleted",value:function(e){return this.getModule(ul).onMessageDeleted(e),Em({messageList:e})}},{key:"_generateUUID",value:function(){var e=this.getModule(ll);return"".concat(e.getSDKAppID(),"-").concat(e.getUserID(),"-").concat(function(){for(var e="",t=32;t>0;--t)e+=Cc[Math.floor(Math.random()*Mc)];return e}())}},{key:"getMessageOption",value:function(e){return this._messageOptionsMap.get(e)}},{key:"_getNickAndAvatarByUserID",value:function(e){return this.getModule(il).getNickAndAvatarByUserID(e)}},{key:"_getNameCardByGroupID",value:function(e){if(e.conversationType===Kn.CONV_GROUP){var t=this.getModule(al);if(t)return t.getMyNameCardByGroupID(e.to)}return""}},{key:"reset",value:function(){Zs.log("".concat(this._className,".reset")),this._messageOptionsMap.clear()}}]),n}(Ml),Hv=function(e){Tn(n,e);var t=Nn(n);function n(e){var r;return Sn(this,n),(r=t.call(this,e))._className="PluginModule",r.plugins={},r}return wn(n,[{key:"registerPlugin",value:function(e){var t=this;Object.keys(e).forEach((function(n){t.plugins[n]=e[n]})),new dh(vh).setMessage("key=".concat(Object.keys(e))).end()}},{key:"getPlugin",value:function(e){return this.plugins[e]}},{key:"reset",value:function(){Zs.log("".concat(this._className,".reset"))}}]),n}(Ml),Wv=function(e){Tn(n,e);var t=Nn(n);function n(e){var r;return Sn(this,n),(r=t.call(this,e))._className="SyncUnreadMessageModule",r._cookie="",r._onlineSyncFlag=!1,r.getInnerEmitterInstance().on(jm,r._onLoginSuccess,Ln(r)),r}return wn(n,[{key:"_onLoginSuccess",value:function(e){this._startSync({cookie:this._cookie,syncFlag:0,isOnlineSync:0})}},{key:"_startSync",value:function(e){var t=this,n=e.cookie,r=e.syncFlag,i=e.isOnlineSync;Zs.log("".concat(this._className,"._startSync cookie:").concat(n," syncFlag:").concat(r," isOnlineSync:").concat(i)),this.request({protocolName:Dl,requestData:{cookie:n,syncFlag:r,isOnlineSync:i}}).then((function(e){var n=e.data,r=n.cookie,i=n.syncFlag,o=n.eventArray,a=n.messageList,s=n.C2CRemainingUnreadList,c=n.C2CPairUnreadList;t._cookie=r,Jc(r)||(0===i||1===i?(o&&t.getModule(yl).onMessage({head:{},body:{eventArray:o,isInstantMessage:t._onlineSyncFlag,isSyncingEnded:!1}}),t.getModule(ol).onNewC2CMessage({dataList:a,isInstantMessage:!1,C2CRemainingUnreadList:s,C2CPairUnreadList:c}),t._startSync({cookie:r,syncFlag:i,isOnlineSync:0})):2===i&&(o&&t.getModule(yl).onMessage({head:{},body:{eventArray:o,isInstantMessage:t._onlineSyncFlag,isSyncingEnded:!0}}),t.getModule(ol).onNewC2CMessage({dataList:a,isInstantMessage:t._onlineSyncFlag,C2CRemainingUnreadList:s,C2CPairUnreadList:c})))})).catch((function(e){Zs.error("".concat(t._className,"._startSync failed. error:"),e)}))}},{key:"startOnlineSync",value:function(){Zs.log("".concat(this._className,".startOnlineSync")),this._onlineSyncFlag=!0,this._startSync({cookie:this._cookie,syncFlag:0,isOnlineSync:1})}},{key:"startSyncOnReconnected",value:function(){Zs.log("".concat(this._className,".startSyncOnReconnected.")),this._onlineSyncFlag=!0,this._startSync({cookie:this._cookie,syncFlag:0,isOnlineSync:0})}},{key:"reset",value:function(){Zs.log("".concat(this._className,".reset")),this._onlineSyncFlag=!1,this._cookie=""}}]),n}(Ml),qv={request:{toAccount:"To_Account",fromAccount:"From_Account",to:"To_Account",from:"From_Account",groupID:"GroupId",groupAtUserID:"GroupAt_Account",extension:"Ext",data:"Data",description:"Desc",elements:"MsgBody",sizeType:"Type",downloadFlag:"Download_Flag",thumbUUID:"ThumbUUID",videoUUID:"VideoUUID",remoteAudioUrl:"Url",remoteVideoUrl:"VideoUrl",videoUrl:"",imageUrl:"URL",fileUrl:"Url",uuid:"UUID",priority:"MsgPriority",receiverUserID:"To_Account",receiverGroupID:"GroupId",messageSender:"SenderId",messageReceiver:"ReceiverId",nick:"From_AccountNick",avatar:"From_AccountHeadurl",messageNumber:"MsgNum",pbDownloadKey:"PbMsgKey",downloadKey:"JsonMsgKey",applicationType:"PendencyType",userIDList:"To_Account",groupNameList:"GroupName",userID:"To_Account",groupAttributeList:"GroupAttr",mainSequence:"AttrMainSeq",avChatRoomKey:"BytesKey",attributeControl:"AttrControl",sequence:"seq",messageControlInfo:"SendMsgControl",updateSequence:"UpdateSeq",clientTime:"MsgClientTime",sequenceList:"MsgSeqList"},response:{MsgPriority:"priority",ThumbUUID:"thumbUUID",VideoUUID:"videoUUID",Download_Flag:"downloadFlag",GroupId:"groupID",Member_Account:"userID",MsgList:"messageList",SyncFlag:"syncFlag",To_Account:"to",From_Account:"from",MsgSeq:"sequence",MsgRandom:"random",MsgTime:"time",MsgTimeStamp:"time",MsgContent:"content",MsgBody:"elements",From_AccountNick:"nick",From_AccountHeadurl:"avatar",GroupWithdrawInfoArray:"revokedInfos",GroupReadInfoArray:"groupMessageReadNotice",LastReadMsgSeq:"lastMessageSeq",WithdrawC2cMsgNotify:"c2cMessageRevokedNotify",C2cWithdrawInfoArray:"revokedInfos",C2cReadedReceipt:"c2cMessageReadReceipt",ReadC2cMsgNotify:"c2cMessageReadNotice",LastReadTime:"peerReadTime",MsgRand:"random",MsgType:"type",MsgShow:"messageShow",NextMsgSeq:"nextMessageSeq",FaceUrl:"avatar",ProfileDataMod:"profileModify",Profile_Account:"userID",ValueBytes:"value",ValueNum:"value",NoticeSeq:"noticeSequence",NotifySeq:"notifySequence",MsgFrom_AccountExtraInfo:"messageFromAccountExtraInformation",Operator_Account:"operatorID",OpType:"operationType",ReportType:"operationType",UserId:"userID",User_Account:"userID",List_Account:"userIDList",MsgOperatorMemberExtraInfo:"operatorInfo",MsgMemberExtraInfo:"memberInfoList",ImageUrl:"avatar",NickName:"nick",MsgGroupNewInfo:"newGroupProfile",MsgAppDefinedData:"groupCustomField",Owner_Account:"ownerID",GroupFaceUrl:"avatar",GroupIntroduction:"introduction",GroupNotification:"notification",GroupApplyJoinOption:"joinOption",MsgKey:"messageKey",GroupInfo:"groupProfile",ShutupTime:"muteTime",Desc:"description",Ext:"extension",GroupAt_Account:"groupAtUserID",MsgNum:"messageNumber",PbMsgKey:"pbDownloadKey",JsonMsgKey:"downloadKey",MsgModifiedFlag:"isModified",PendencyItem:"applicationItem",PendencyType:"applicationType",AddTime:"time",AddSource:"source",AddWording:"wording",ProfileImImage:"avatar",PendencyAdd:"friendApplicationAdded",FrienPencydDel_Account:"friendApplicationDeletedUserIDList",Peer_Account:"userID",GroupAttr:"groupAttributeList",GroupAttrAry:"groupAttributeList",AttrMainSeq:"mainSequence",seq:"sequence",GroupAttrOption:"groupAttributeOption",BytesChangedKeys:"changedKeyList",GroupAttrInfo:"groupAttributeList",GroupAttrSeq:"mainSequence",PushChangedAttrValFlag:"hasChangedAttributeInfo",SubKeySeq:"sequence",Val:"value",MsgGroupFromCardName:"senderNameCard",MsgGroupFromNickName:"senderNick",C2cNick:"peerNick",C2cImage:"peerAvatar",SendMsgControl:"messageControlInfo",NoLastMsg:"excludedFromLastMessage",NoUnread:"excludedFromUnreadCount",UpdateSeq:"updateSequence",MuteNotifications:"muteFlag",MsgClientTime:"clientTime",TinyId:"tinyID",GroupMsgReceiptList:"readReceiptList",ReadNum:"readCount",UnreadNum:"unreadCount"},ignoreKeyWord:["C2C","ID","USP"]},$v=Ut.trim;function Kv(e,t){if("string"!=typeof e&&!Array.isArray(e))throw new TypeError("Expected the input to be `string | string[]`");var n;return t=Object.assign({pascalCase:!1},t),0===(e=Array.isArray(e)?e.map((function(e){return e.trim()})).filter((function(e){return e.length})).join("-"):e.trim()).length?"":1===e.length?t.pascalCase?e.toUpperCase():e.toLowerCase():(e!==e.toLowerCase()&&(e=Yv(e)),e=e.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(function(e,t){return t.toUpperCase()})).replace(/\d+(\w|$)/g,(function(e){return e.toUpperCase()})),n=e,t.pascalCase?n.charAt(0).toUpperCase()+n.slice(1):n)}Ae({target:"String",proto:!0,forced:function(e){return o((function(){return!!Ot[e]()||"​…᠎"!="​…᠎"[e]()||Ot[e].name!==e}))}("trim")},{trim:function(){return $v(this)}});var Yv=function(e){for(var t=!1,n=!1,r=!1,i=0;i<e.length;i++){var o=e[i];t&&/[a-zA-Z]/.test(o)&&o.toUpperCase()===o?(e=e.slice(0,i)+"-"+e.slice(i),t=!1,r=n,n=!0,i++):n&&r&&/[a-zA-Z]/.test(o)&&o.toLowerCase()===o?(e=e.slice(0,i-1)+"-"+e.slice(i-1),r=n,n=!1,t=!0):(t=o.toLowerCase()===o&&o.toUpperCase()!==o,r=n,n=o.toUpperCase()===o&&o.toLowerCase()!==o)}return e};function Jv(e,t){var n=0;return function e(t,r){if(++n>100)return n--,t;if(hc(t)){var i=t.map((function(t){return lc(t)?e(t,r):t}));return n--,i}if(lc(t)){var o=(a=t,s=function(e,t){if(!yc(t))return!1;if((i=t)!==Kv(i))for(var n=0;n<qv.ignoreKeyWord.length&&!t.includes(qv.ignoreKeyWord[n]);n++);var i;return fc(r[t])?function(e){return"OPPOChannelID"===e?e:e[0].toUpperCase()+Kv(e).slice(1)}(t):r[t]},c=Object.create(null),Object.keys(a).forEach((function(e){var t=s(a[e],e);t&&(c[t]=a[e])})),c);return o=Gc(o,(function(t,n){return hc(t)||lc(t)?e(t,r):t})),n--,o}var a,s,c}(e,t)}function Xv(e,t){if(hc(e))return e.map((function(e){return lc(e)?Xv(e,t):e}));if(lc(e)){var n=(r=e,i=function(e,n){return fc(t[n])?Kv(n):t[n]},o={},Object.keys(r).forEach((function(e){o[i(r[e],e)]=r[e]})),o);return Gc(n,(function(e){return hc(e)||lc(e)?Xv(e,t):e}))}var r,i,o}var Zv="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView,Qv=function(e){if(void 0===e)return 0;var t=ae(e),n=ce(t);if(t!==n)throw RangeError("Wrong length or index");return n},ey=Math.abs,ty=Math.pow,ny=Math.floor,ry=Math.log,iy=Math.LN2,oy=function(e,t,n){var r,i,o,a=new Array(n),s=8*n-t-1,c=(1<<s)-1,u=c>>1,l=23===t?ty(2,-24)-ty(2,-77):0,d=e<0||0===e&&1/e<0?1:0,h=0;for((e=ey(e))!=e||e===1/0?(i=e!=e?1:0,r=c):(r=ny(ry(e)/iy),e*(o=ty(2,-r))<1&&(r--,o*=2),(e+=r+u>=1?l/o:l*ty(2,1-u))*o>=2&&(r++,o/=2),r+u>=c?(i=0,r=c):r+u>=1?(i=(e*o-1)*ty(2,t),r+=u):(i=e*ty(2,u-1)*ty(2,t),r=0));t>=8;a[h++]=255&i,i/=256,t-=8);for(r=r<<t|i,s+=t;s>0;a[h++]=255&r,r/=256,s-=8);return a[--h]|=128*d,a},ay=function(e,t){var n,r=e.length,i=8*r-t-1,o=(1<<i)-1,a=o>>1,s=i-7,c=r-1,u=e[c--],l=127&u;for(u>>=7;s>0;l=256*l+e[c],c--,s-=8);for(n=l&(1<<-s)-1,l>>=-s,s+=t;s>0;n=256*n+e[c],c--,s-=8);if(0===l)l=1-a;else{if(l===o)return n?NaN:u?-1/0:1/0;n+=ty(2,t),l-=a}return(u?-1:1)*n*ty(2,l-t)},sy=function(e){for(var t=Re(this),n=ce(t.length),r=arguments.length,i=de(r>1?arguments[1]:void 0,n),o=r>2?arguments[2]:void 0,a=void 0===o?n:de(o,n);a>i;)t[i++]=e;return t},cy=ye.f,uy=E.f,ly=Q.get,dy=Q.set,hy=i.ArrayBuffer,fy=hy,py=i.DataView,gy=py&&py.prototype,vy=Object.prototype,yy=i.RangeError,_y=oy,by=ay,Sy=function(e){return[255&e]},xy=function(e){return[255&e,e>>8&255]},wy=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},Iy=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},Cy=function(e){return _y(e,23,4)},My=function(e){return _y(e,52,8)},Ty=function(e,t){uy(e.prototype,t,{get:function(){return ly(this)[t]}})},ky=function(e,t,n,r){var i=Qv(n),o=ly(e);if(i+t>o.byteLength)throw yy("Wrong index");var a=ly(o.buffer).bytes,s=i+o.byteOffset,c=a.slice(s,s+t);return r?c:c.reverse()},Ey=function(e,t,n,r,i,o){var a=Qv(n),s=ly(e);if(a+t>s.byteLength)throw yy("Wrong index");for(var c=ly(s.buffer).bytes,u=a+s.byteOffset,l=r(+i),d=0;d<t;d++)c[u+d]=l[o?d:t-d-1]};if(Zv){if(!o((function(){hy(1)}))||!o((function(){new hy(-1)}))||o((function(){return new hy,new hy(1.5),new hy(NaN),"ArrayBuffer"!=hy.name}))){for(var Ay,Dy=(fy=function(e){return Ei(this,fy),new hy(Qv(e))}).prototype=hy.prototype,Oy=cy(hy),Ry=0;Oy.length>Ry;)(Ay=Oy[Ry++])in fy||A(fy,Ay,hy[Ay]);Dy.constructor=fy}sn&&Jt(gy)!==vy&&sn(gy,vy);var Ly=new py(new fy(2)),Py=gy.setInt8;Ly.setInt8(0,2147483648),Ly.setInt8(1,2147483649),!Ly.getInt8(0)&&Ly.getInt8(1)||Mi(gy,{setInt8:function(e,t){Py.call(this,e,t<<24>>24)},setUint8:function(e,t){Py.call(this,e,t<<24>>24)}},{unsafe:!0})}else fy=function(e){Ei(this,fy,"ArrayBuffer");var t=Qv(e);dy(this,{bytes:sy.call(new Array(t),0),byteLength:t}),a||(this.byteLength=t)},py=function(e,t,n){Ei(this,py,"DataView"),Ei(e,fy,"DataView");var r=ly(e).byteLength,i=ae(t);if(i<0||i>r)throw yy("Wrong offset");if(i+(n=void 0===n?r-i:ce(n))>r)throw yy("Wrong length");dy(this,{buffer:e,byteLength:n,byteOffset:i}),a||(this.buffer=e,this.byteLength=n,this.byteOffset=i)},a&&(Ty(fy,"byteLength"),Ty(py,"buffer"),Ty(py,"byteLength"),Ty(py,"byteOffset")),Mi(py.prototype,{getInt8:function(e){return ky(this,1,e)[0]<<24>>24},getUint8:function(e){return ky(this,1,e)[0]},getInt16:function(e){var t=ky(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=ky(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return Iy(ky(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return Iy(ky(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return by(ky(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return by(ky(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){Ey(this,1,e,Sy,t)},setUint8:function(e,t){Ey(this,1,e,Sy,t)},setInt16:function(e,t){Ey(this,2,e,xy,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){Ey(this,2,e,xy,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){Ey(this,4,e,wy,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){Ey(this,4,e,wy,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){Ey(this,4,e,Cy,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){Ey(this,8,e,My,t,arguments.length>2?arguments[2]:void 0)}});nn(fy,"ArrayBuffer"),nn(py,"DataView");var Ny={ArrayBuffer:fy,DataView:py},Uy=Ny.ArrayBuffer,Fy=Ny.DataView,Gy=Uy.prototype.slice,Vy=o((function(){return!new Uy(2).slice(1,void 0).byteLength}));Ae({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:Vy},{slice:function(e,t){if(void 0!==Gy&&void 0===t)return Gy.call(T(this),e);for(var n=T(this).byteLength,r=de(e,n),i=de(void 0===t?n:t,n),o=new(Oi(this,Uy))(ce(i-r)),a=new Fy(this),s=new Fy(o),c=0;r<i;)s.setUint8(c++,a.getUint8(r++));return o}});var jy=String.fromCharCode,By=String.fromCodePoint,zy=!!By&&1!=By.length;Ae({target:"String",stat:!0,forced:zy},{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,i=0;r>i;){if(t=+arguments[i++],de(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?jy(t):jy(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}});var Hy,Wy=E.f,qy=i.Int8Array,$y=qy&&qy.prototype,Ky=i.Uint8ClampedArray,Yy=Ky&&Ky.prototype,Jy=qy&&Jt(qy),Xy=$y&&Jt($y),Zy=Object.prototype,Qy=Zy.isPrototypeOf,e_=Ve("toStringTag"),t_=z("TYPED_ARRAY_TAG"),n_=Zv&&!!sn&&"Opera"!==ht(i.opera),r_=!1,i_={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},o_=function(e){return v(e)&&b(i_,ht(e))};for(Hy in i_)i[Hy]||(n_=!1);if((!n_||"function"!=typeof Jy||Jy===Function.prototype)&&(Jy=function(){throw TypeError("Incorrect invocation")},n_))for(Hy in i_)i[Hy]&&sn(i[Hy],Jy);if((!n_||!Xy||Xy===Zy)&&(Xy=Jy.prototype,n_))for(Hy in i_)i[Hy]&&sn(i[Hy].prototype,Xy);if(n_&&Jt(Yy)!==Xy&&sn(Yy,Xy),a&&!b(Xy,e_))for(Hy in r_=!0,Wy(Xy,e_,{get:function(){return v(this)?this[t_]:void 0}}),i_)i[Hy]&&A(i[Hy],t_,Hy);var a_={NATIVE_ARRAY_BUFFER_VIEWS:n_,TYPED_ARRAY_TAG:r_&&t_,aTypedArray:function(e){if(o_(e))return e;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(e){if(sn){if(Qy.call(Jy,e))return e}else for(var t in i_)if(b(i_,Hy)){var n=i[t];if(n&&(e===n||Qy.call(n,e)))return e}throw TypeError("Target is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n){if(a){if(n)for(var r in i_){var o=i[r];o&&b(o.prototype,e)&&delete o.prototype[e]}Xy[e]&&!n||ee(Xy,e,n?t:n_&&$y[e]||t)}},exportTypedArrayStaticMethod:function(e,t,n){var r,o;if(a){if(sn){if(n)for(r in i_)(o=i[r])&&b(o,e)&&delete o[e];if(Jy[e]&&!n)return;try{return ee(Jy,e,n?t:n_&&qy[e]||t)}catch(aS){}}for(r in i_)!(o=i[r])||o[e]&&!n||ee(o,e,t)}},isView:function(e){var t=ht(e);return"DataView"===t||b(i_,t)},isTypedArray:o_,TypedArray:Jy,TypedArrayPrototype:Xy},s_=a_.NATIVE_ARRAY_BUFFER_VIEWS,c_=i.ArrayBuffer,u_=i.Int8Array,l_=!s_||!o((function(){u_(1)}))||!o((function(){new u_(-1)}))||!bt((function(e){new u_,new u_(null),new u_(1.5),new u_(e)}),!0)||o((function(){return 1!==new u_(new c_(2),1,void 0).length})),d_=function(e,t){var n=function(e){var t=ae(e);if(t<0)throw RangeError("The argument can't be less than 0");return t}(e);if(n%t)throw RangeError("Wrong offset");return n},h_=a_.aTypedArrayConstructor,f_=function(e){var t,n,r,i,o,a,s=Re(e),c=arguments.length,u=c>1?arguments[1]:void 0,l=void 0!==u,d=pt(s);if(null!=d&&!at(d))for(a=(o=d.call(s)).next,s=[];!(i=a.call(o)).done;)s.push(i.value);for(l&&c>2&&(u=Oe(u,arguments[2],2)),n=ce(s.length),r=new(h_(this))(n),t=0;n>t;t++)r[t]=l?u(s[t],t):s[t];return r};n((function(e){var t=ye.f,n=We.forEach,r=Q.get,o=Q.set,s=E.f,c=M.f,u=Math.round,d=i.RangeError,h=Ny.ArrayBuffer,f=Ny.DataView,p=a_.NATIVE_ARRAY_BUFFER_VIEWS,g=a_.TYPED_ARRAY_TAG,m=a_.TypedArray,_=a_.TypedArrayPrototype,S=a_.aTypedArrayConstructor,x=a_.isTypedArray,w=function(e,t){for(var n=0,r=t.length,i=new(S(e))(r);r>n;)i[n]=t[n++];return i},I=function(e,t){s(e,t,{get:function(){return r(this)[t]}})},C=function(e){var t;return e instanceof h||"ArrayBuffer"==(t=ht(e))||"SharedArrayBuffer"==t},T=function(e,t){return x(e)&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},k=function(e,t){return T(e,t=y(t,!0))?l(2,e[t]):c(e,t)},D=function(e,t,n){return!(T(e,t=y(t,!0))&&v(n)&&b(n,"value"))||b(n,"get")||b(n,"set")||n.configurable||b(n,"writable")&&!n.writable||b(n,"enumerable")&&!n.enumerable?s(e,t,n):(e[t]=n.value,e)};a?(p||(M.f=k,E.f=D,I(_,"buffer"),I(_,"byteOffset"),I(_,"byteLength"),I(_,"length")),Ae({target:"Object",stat:!0,forced:!p},{getOwnPropertyDescriptor:k,defineProperty:D}),e.exports=function(e,a,c){var l=e.match(/\d+$/)[0]/8,y=e+(c?"Clamped":"")+"Array",b="get"+e,S="set"+e,I=i[y],M=I,T=M&&M.prototype,k={},E=function(e,t){s(e,t,{get:function(){return function(e,t){var n=r(e);return n.view[b](t*l+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,n){var i=r(e);c&&(n=(n=u(n))<0?0:n>255?255:255&n),i.view[S](t*l+i.byteOffset,n,!0)}(this,t,e)},enumerable:!0})};p?l_&&(M=a((function(e,t,n,r){return Ei(e,M,y),ti(v(t)?C(t)?void 0!==r?new I(t,d_(n,l),r):void 0!==n?new I(t,d_(n,l)):new I(t):x(t)?w(M,t):f_.call(M,t):new I(Qv(t)),e,M)})),sn&&sn(M,m),n(t(I),(function(e){e in M||A(M,e,I[e])})),M.prototype=T):(M=a((function(e,t,n,r){Ei(e,M,y);var i,a,s,c=0,u=0;if(v(t)){if(!C(t))return x(t)?w(M,t):f_.call(M,t);i=t,u=d_(n,l);var p=t.byteLength;if(void 0===r){if(p%l)throw d("Wrong length");if((a=p-u)<0)throw d("Wrong length")}else if((a=ce(r)*l)+u>p)throw d("Wrong length");s=a/l}else s=Qv(t),i=new h(a=s*l);for(o(e,{buffer:i,byteOffset:u,byteLength:a,length:s,view:new f(i)});c<s;)E(e,c++)})),sn&&sn(M,m),T=M.prototype=At(_)),T.constructor!==M&&A(T,"constructor",M),g&&A(T,g,y),k[y]=M,Ae({global:!0,forced:M!=I,sham:!p},k),"BYTES_PER_ELEMENT"in M||A(M,"BYTES_PER_ELEMENT",l),"BYTES_PER_ELEMENT"in T||A(T,"BYTES_PER_ELEMENT",l),ki(y)}):e.exports=function(){}}))("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}));var p_=Math.min,g_=[].copyWithin||function(e,t){var n=Re(this),r=ce(n.length),i=de(e,r),o=de(t,r),a=arguments.length>2?arguments[2]:void 0,s=p_((void 0===a?r:de(a,r))-o,r-i),c=1;for(o<i&&i<o+s&&(c=-1,o+=s-1,i+=s-1);s-- >0;)o in n?n[i]=n[o]:delete n[i],i+=c,o+=c;return n},m_=a_.aTypedArray;(0,a_.exportTypedArrayMethod)("copyWithin",(function(e,t){return g_.call(m_(this),e,t,arguments.length>2?arguments[2]:void 0)}));var v_=We.every,y_=a_.aTypedArray;(0,a_.exportTypedArrayMethod)("every",(function(e){return v_(y_(this),e,arguments.length>1?arguments[1]:void 0)}));var __=a_.aTypedArray;(0,a_.exportTypedArrayMethod)("fill",(function(e){return sy.apply(__(this),arguments)}));var b_=We.filter,S_=a_.aTypedArray,x_=a_.aTypedArrayConstructor;(0,a_.exportTypedArrayMethod)("filter",(function(e){for(var t=b_(S_(this),e,arguments.length>1?arguments[1]:void 0),n=Oi(this,this.constructor),r=0,i=t.length,o=new(x_(n))(i);i>r;)o[r]=t[r++];return o}));var w_=We.find,I_=a_.aTypedArray;(0,a_.exportTypedArrayMethod)("find",(function(e){return w_(I_(this),e,arguments.length>1?arguments[1]:void 0)}));var C_=We.findIndex,M_=a_.aTypedArray;(0,a_.exportTypedArrayMethod)("findIndex",(function(e){return C_(M_(this),e,arguments.length>1?arguments[1]:void 0)}));var T_=We.forEach,k_=a_.aTypedArray;(0,a_.exportTypedArrayMethod)("forEach",(function(e){T_(k_(this),e,arguments.length>1?arguments[1]:void 0)}));var E_=fe.includes,A_=a_.aTypedArray;(0,a_.exportTypedArrayMethod)("includes",(function(e){return E_(A_(this),e,arguments.length>1?arguments[1]:void 0)}));var D_=fe.indexOf,O_=a_.aTypedArray;(0,a_.exportTypedArrayMethod)("indexOf",(function(e){return D_(O_(this),e,arguments.length>1?arguments[1]:void 0)}));var R_=Ve("iterator"),L_=i.Uint8Array,P_=Lr.values,N_=Lr.keys,U_=Lr.entries,F_=a_.aTypedArray,G_=a_.exportTypedArrayMethod,V_=L_&&L_.prototype[R_],j_=!!V_&&("values"==V_.name||null==V_.name),B_=function(){return P_.call(F_(this))};G_("entries",(function(){return U_.call(F_(this))})),G_("keys",(function(){return N_.call(F_(this))})),G_("values",B_,!j_),G_(R_,B_,!j_);var z_=a_.aTypedArray,H_=[].join;(0,a_.exportTypedArrayMethod)("join",(function(e){return H_.apply(z_(this),arguments)}));var W_=a_.aTypedArray;(0,a_.exportTypedArrayMethod)("lastIndexOf",(function(e){return dm.apply(W_(this),arguments)}));var q_=We.map,$_=a_.aTypedArray,K_=a_.aTypedArrayConstructor;(0,a_.exportTypedArrayMethod)("map",(function(e){return q_($_(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(K_(Oi(e,e.constructor)))(t)}))}));var Y_=function(e){return function(t,n,r,i){De(n);var o=Re(t),a=p(o),s=ce(o.length),c=e?s-1:0,u=e?-1:1;if(r<2)for(;;){if(c in a){i=a[c],c+=u;break}if(c+=u,e?c<0:s<=c)throw TypeError("Reduce of empty array with no initial value")}for(;e?c>=0:s>c;c+=u)c in a&&(i=n(i,a[c],c,o));return i}},J_={left:Y_(!1),right:Y_(!0)},X_=J_.left,Z_=a_.aTypedArray;(0,a_.exportTypedArrayMethod)("reduce",(function(e){return X_(Z_(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)}));var Q_=J_.right,eb=a_.aTypedArray;(0,a_.exportTypedArrayMethod)("reduceRight",(function(e){return Q_(eb(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)}));var tb=a_.aTypedArray,nb=a_.exportTypedArrayMethod,rb=Math.floor;nb("reverse",(function(){for(var e,t=tb(this).length,n=rb(t/2),r=0;r<n;)e=this[r],this[r++]=this[--t],this[t]=e;return this}));var ib=a_.aTypedArray;(0,a_.exportTypedArrayMethod)("set",(function(e){ib(this);var t=d_(arguments.length>1?arguments[1]:void 0,1),n=this.length,r=Re(e),i=ce(r.length),o=0;if(i+t>n)throw RangeError("Wrong length");for(;o<i;)this[t+o]=r[o++]}),o((function(){new Int8Array(1).set({})})));var ob=a_.aTypedArray,ab=a_.aTypedArrayConstructor,sb=[].slice;(0,a_.exportTypedArrayMethod)("slice",(function(e,t){for(var n=sb.call(ob(this),e,t),r=Oi(this,this.constructor),i=0,o=n.length,a=new(ab(r))(o);o>i;)a[i]=n[i++];return a}),o((function(){new Int8Array(1).slice()})));var cb=We.some,ub=a_.aTypedArray;(0,a_.exportTypedArrayMethod)("some",(function(e){return cb(ub(this),e,arguments.length>1?arguments[1]:void 0)}));var lb=a_.aTypedArray,db=[].sort;(0,a_.exportTypedArrayMethod)("sort",(function(e){return db.call(lb(this),e)}));var hb=a_.aTypedArray;(0,a_.exportTypedArrayMethod)("subarray",(function(e,t){var n=hb(this),r=n.length,i=de(e,r);return new(Oi(n,n.constructor))(n.buffer,n.byteOffset+i*n.BYTES_PER_ELEMENT,ce((void 0===t?r:de(t,r))-i))}));var fb=i.Int8Array,pb=a_.aTypedArray,gb=a_.exportTypedArrayMethod,mb=[].toLocaleString,vb=[].slice,yb=!!fb&&o((function(){mb.call(new fb(1))}));gb("toLocaleString",(function(){return mb.apply(yb?vb.call(pb(this)):pb(this),arguments)}),o((function(){return[1,2].toLocaleString()!=new fb([1,2]).toLocaleString()}))||!o((function(){fb.prototype.toLocaleString.call([1,2])})));var _b=a_.exportTypedArrayMethod,bb=i.Uint8Array,Sb=bb&&bb.prototype||{},xb=[].toString,wb=[].join;o((function(){xb.call({})}))&&(xb=function(){return wb.call(this)});var Ib=Sb.toString!=xb;_b("toString",xb,Ib);var Cb=String.fromCharCode,Mb=function(e){var t=0|e.charCodeAt(0);if(55296<=t)if(t<56320){var n=0|e.charCodeAt(1);if(56320<=n&&n<=57343){if((t=(t<<10)+n-56613888|0)>65535)return Cb(240|t>>>18,128|t>>>12&63,128|t>>>6&63,128|63&t)}else t=65533}else t<=57343&&(t=65533);return t<=2047?Cb(192|t>>>6,128|63&t):Cb(224|t>>>12,128|t>>>6&63,128|63&t)},Tb=function(e){for(var t=void 0===e?"":(""+e).replace(/[\x80-\uD7ff\uDC00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]?/g,Mb),n=0|t.length,r=new Uint8Array(n),i=0;i<n;i=i+1|0)r[i]=0|t.charCodeAt(i);return r},kb=function(e){for(var t=new Uint8Array(e),n="",r=0,i=t.length;r<i;){var o=t[r],a=0,s=0;if(o<=127?(a=0,s=255&o):o<=223?(a=1,s=31&o):o<=239?(a=2,s=15&o):o<=244&&(a=3,s=7&o),i-r-a>0)for(var c=0;c<a;)s=s<<6|63&(o=t[r+c+1]),c+=1;else s=65533,a=i-r;n+=String.fromCodePoint(s),r+=a+1}return n},Eb=function(){function e(t){Sn(this,e),this._handler=t;var n=t.getURL();if(this._socket=null,this._workerSocket=null,this._id=Ic(),this._handler.getIsWorkerEnabled()){var r=URL.createObjectURL(new Blob([';let _socket = null;onmessage = function(event) {  if (event.data.cmd === "start") {    const url = event.data.url;    _socket = new WebSocket(url);    _socket.binaryType = "arraybuffer";    _socket.onopen = function() {      postMessage({ callback: "onOpen" });    };    _socket.onclose = function(e) {      postMessage({ callback: "onOpen", e: { code: e.code, reason: e.reason } });    };    _socket.onmessage = function(e) {      postMessage({ callback: "onMessage", data: e.data });    };    _socket.onerror = function(e) {      postMessage({ callback: "onError", e: { isTrusted: "true" } });    };  } else if (event.data.cmd === "sendMessage") {    if (_socket !== null) {      _socket.send(event.data.data);    }  } else if (event.data.cmd === "stop") {    if (_socket !== null) {      _socket.close(event.data.code);      _socket = null;    }  }};'],{type:"application/javascript; charset=utf-8"}));this._workerSocket=new Worker(r);var i=this;this._workerSocket.onmessage=function(e){var t=e.data,n=t.callback,r=t.e;"onOpen"===n?i._onOpen():"onClose"===n?i._onClose(r):"onError"===n?i._onError(r):"onMessage"===n&&i._onMessage(e.data)},this._workerSocket.postMessage({cmd:"start",id:this._id,url:n})}else fs?ls?(gs.connectSocket({url:n,header:{"content-type":"application/json"}}),gs.onSocketClose(this._onClose.bind(this)),gs.onSocketOpen(this._onOpen.bind(this)),gs.onSocketMessage(this._onMessage.bind(this)),gs.onSocketError(this._onError.bind(this))):(this._socket=gs.connectSocket({url:n,header:{"content-type":"application/json"},complete:function(){}}),this._socket.onClose(this._onClose.bind(this)),this._socket.onOpen(this._onOpen.bind(this)),this._socket.onMessage(this._onMessage.bind(this)),this._socket.onError(this._onError.bind(this))):ps&&(this._socket=new WebSocket(n),this._socket.binaryType="arraybuffer",this._socket.onopen=this._onOpen.bind(this),this._socket.onmessage=this._onMessage.bind(this),this._socket.onclose=this._onClose.bind(this),this._socket.onerror=this._onError.bind(this));this._canIUseBinaryFrame=t.canIUseBinaryFrame()}return wn(e,[{key:"getID",value:function(){return this._id}},{key:"_onOpen",value:function(){this._handler.onOpen({id:this._id})}},{key:"_onClose",value:function(e){this._handler.onClose({id:this._id,e:e})}},{key:"_onMessage",value:function(e){this._handler.onMessage({data:this._canIUseBinaryFrame?kb(e.data):e.data})}},{key:"_onError",value:function(e){this._handler.onError({id:this._id,e:e})}},{key:"setIsWorkerEnabled",value:function(e){this._isWorkerEnabled=!0}},{key:"close",value:function(e){if(this._workerSocket&&(this._workerSocket.postMessage({cmd:"stop",code:e}),this._workerSocket.terminate(),this._workerSocket=null),ls)return gs.offSocketClose(),gs.offSocketMessage(),gs.offSocketOpen(),gs.offSocketError(),void gs.closeSocket();this._socket&&(fs?(this._socket.onClose((function(){})),this._socket.onOpen((function(){})),this._socket.onMessage((function(){})),this._socket.onError((function(){}))):ps&&(this._socket.onopen=null,this._socket.onmessage=null,this._socket.onclose=null,this._socket.onerror=null),us?this._socket.close({code:e}):this._socket.close(e),this._socket=null)}},{key:"send",value:function(e){if(this._workerSocket)this._workerSocket.postMessage({cmd:"sendMessage",data:this._canIUseBinaryFrame?Tb(e.data).buffer:e.data});else{if(ls)return void gs.sendSocketMessage({data:e.data,fail:function(){e.fail&&e.requestID&&e.fail(e.requestID)}});this._socket&&(fs?this._socket.send({data:this._canIUseBinaryFrame?Tb(e.data).buffer:e.data,fail:function(){e.fail&&e.requestID&&e.fail(e.requestID)}}):ps&&this._socket.send(this._canIUseBinaryFrame?Tb(e.data).buffer:e.data))}}}]),e}(),Ab=4e3,Db=4001,Ob="connected",Rb="connecting",Lb="disconnected",Pb=function(){function e(t){Sn(this,e),this._channelModule=t,this._className="SocketHandler",this._promiseMap=new Map,this._readyState=Lb,this._simpleRequestMap=new Map,this.MAX_SIZE=100,this._startSequence=Ic(),this._startTs=0,this._reConnectFlag=!1,this._nextPingTs=0,this._reConnectCount=0,this.MAX_RECONNECT_COUNT=3,this._socketID=-1,this._random=0,this._socket=null,this._url="",this._onOpenTs=0,this._canIUseBinaryFrame=!0,this._isWorkerEnabled=!0,this._setWebsocketHost(),this._initConnection()}return wn(e,[{key:"_setWebsocketHost",value:function(){var e=this._channelModule.getModule(ll),t=Ya;this._channelModule.isOversea()&&(t=Ja),e.isSingaporeSite()?t=Xa:e.isKoreaSite()?t=Za:e.isGermanySite()?t=Qa:e.isIndiaSite()&&(t=es),ts.HOST.setCurrent(t)}},{key:"_initConnection",value:function(){fc(ts.HOST.CURRENT.BACKUP)||""===this._url?this._url=ts.HOST.CURRENT.DEFAULT:this._url===ts.HOST.CURRENT.DEFAULT?this._url=ts.HOST.CURRENT.BACKUP:this._url===ts.HOST.CURRENT.BACKUP&&(this._url=ts.HOST.CURRENT.DEFAULT);var e=this._channelModule.getModule(ll).getProxyServer();Jc(e)||(this._url=e),this._connect(),this._nextPingTs=0}},{key:"onCheckTimer",value:function(e){e%1==0&&this._checkPromiseMap()}},{key:"_checkPromiseMap",value:function(){var e=this;0!==this._promiseMap.size&&this._promiseMap.forEach((function(t,n){var r=t.reject,i=t.timestamp;Date.now()-i>=15e3&&(Zs.log("".concat(e._className,"._checkPromiseMap request timeout, delete requestID:").concat(n)),e._promiseMap.delete(n),r(new Mm({code:Yd.NETWORK_TIMEOUT,message:Jd.NETWORK_TIMEOUT})),e._channelModule.onRequestTimeout(n))}))}},{key:"onOpen",value:function(e){this._onOpenTs=Date.now();var t=e.id;this._socketID=t;var n=Date.now()-this._startTs;Zs.log("".concat(this._className,"._onOpen cost ").concat(n," ms. socketID:").concat(t)),new dh(bh).setMessage(n).setCostTime(n).setMoreMessage("socketID:".concat(t)).end(),e.id===this._socketID&&(this._readyState=Ob,this._reConnectCount=0,this._resend(),!0===this._reConnectFlag&&(this._channelModule.onReconnected(),this._reConnectFlag=!1),this._channelModule.onOpen())}},{key:"onClose",value:function(e){var t=new dh(Sh),n=e.id,r=e.e,i="sourceSocketID:".concat(n," currentSocketID:").concat(this._socketID," code:").concat(r.code," reason:").concat(r.reason),o=0;0!==this._onOpenTs&&(o=Date.now()-this._onOpenTs),t.setMessage(o).setCostTime(o).setMoreMessage(i).setCode(r.code).end(),Zs.log("".concat(this._className,"._onClose ").concat(i," onlineTime:").concat(o)),n===this._socketID&&(this._readyState=Lb,o<1e3?this._channelModule.onReconnectFailed():this._channelModule.onClose())}},{key:"onError",value:function(e){var t=e.id,n=e.e,r="sourceSocketID:".concat(t," currentSocketID:").concat(this._socketID);new dh(xh).setMessage(n.errMsg||xc(n)).setMoreMessage(r).setLevel("error").end(),Zs.warn("".concat(this._className,"._onError"),n,r),t===this._socketID&&(this._readyState="",this._channelModule.onError())}},{key:"onMessage",value:function(e){var t;try{t=JSON.parse(e.data)}catch(aS){new dh(zh).setMessage(e.data).end()}if(t&&t.head){var n=this._getRequestIDFromHead(t.head),r=Wc(t.head),i=Xv(t.body,this._getResponseKeyMap(r));if(Zs.debug("".concat(this._className,".onMessage ret:").concat(JSON.stringify(i)," requestID:").concat(n," has:").concat(this._promiseMap.has(n))),this._setNextPingTs(),this._promiseMap.has(n)){var o=this._promiseMap.get(n),a=o.resolve,s=o.reject,c=o.timestamp;return this._promiseMap.delete(n),this._calcRTT(c),void(i.errorCode&&0!==i.errorCode?(this._channelModule.onErrorCodeNotZero(i),s(new Mm({code:i.errorCode,message:i.errorInfo||""}))):a(bm(i)))}this._channelModule.onMessage({head:t.head,body:i})}}},{key:"_calcRTT",value:function(e){var t=Date.now()-e;this._channelModule.getModule(Il).addRTT(t)}},{key:"_connect",value:function(){this._startTs=Date.now(),this._onOpenTs=0,this._socket=new Eb(this),this._socketID=this._socket.getID(),this._readyState=Rb,Zs.log("".concat(this._className,"._connect isWorkerEnabled:").concat(this.getIsWorkerEnabled()," socketID:").concat(this._socketID," url:").concat(this.getURL())),new dh(_h).setMessage("socketID:".concat(this._socketID," url:").concat(this.getURL())).end()}},{key:"getURL",value:function(){var e=this._channelModule.getModule(ll);e.isDevMode()&&(this._canIUseBinaryFrame=!1);var t=Bc();(ls||as&&"windows"===t||ds)&&(this._canIUseBinaryFrame=!1);var n=-1;"ios"===t?n=ws||-1:"android"===t&&(n=Cs||-1);var r=this._channelModule.getPlatform(),i=e.getSDKAppID(),o=e.getInstanceID();return this._canIUseBinaryFrame?"".concat(this._url,"/binfo?sdkappid=").concat(i,"&instanceid=").concat(o,"&random=").concat(this._getRandom(),"&platform=").concat(r,"&host=").concat(t,"&version=").concat(n):"".concat(this._url,"/info?sdkappid=").concat(i,"&instanceid=").concat(o,"&random=").concat(this._getRandom(),"&platform=").concat(r,"&host=").concat(t,"&version=").concat(n)}},{key:"_closeConnection",value:function(e){Zs.log("".concat(this._className,"._closeConnection")),this._socket&&(this._socket.close(e),this._socketID=-1,this._socket=null,this._readyState=Lb)}},{key:"_resend",value:function(){var e=this;if(Zs.log("".concat(this._className,"._resend reConnectFlag:").concat(this._reConnectFlag),"promiseMap.size:".concat(this._promiseMap.size," simpleRequestMap.size:").concat(this._simpleRequestMap.size)),this._promiseMap.size>0&&this._promiseMap.forEach((function(t,n){var r=t.uplinkData,i=t.resolve,o=t.reject;e._promiseMap.set(n,{resolve:i,reject:o,timestamp:Date.now(),uplinkData:r}),e._execute(n,r)})),this._simpleRequestMap.size>0){var t,n=Hn(this._simpleRequestMap);try{for(n.s();!(t=n.n()).done;){var r=Un(t.value,2),i=r[0],o=r[1];this._execute(i,o)}}catch(s){n.e(s)}finally{n.f()}this._simpleRequestMap.clear()}}},{key:"send",value:function(e){var t=this;e.head.seq=this._getSequence(),e.head.reqtime=Math.floor(Date.now()/1e3),e.keyMap;var n=Rn(e,["keyMap"]),r=this._getRequestIDFromHead(e.head),i=JSON.stringify(n);return new Promise((function(e,o){t._promiseMap.set(r,{resolve:e,reject:o,timestamp:Date.now(),uplinkData:i}),Zs.debug("".concat(t._className,".send uplinkData:").concat(JSON.stringify(n)," requestID:").concat(r," readyState:").concat(t._readyState)),t._readyState!==Ob?t._reConnect():(t._execute(r,i),t._channelModule.getModule(Il).addRequestCount())}))}},{key:"simplySend",value:function(e){e.head.seq=this._getSequence(),e.head.reqtime=Math.floor(Date.now()/1e3),e.keyMap;var t=Rn(e,["keyMap"]),n=this._getRequestIDFromHead(e.head),r=JSON.stringify(t);this._readyState!==Ob?(this._simpleRequestMap.size<this.MAX_SIZE?this._simpleRequestMap.set(n,r):Zs.log("".concat(this._className,".simplySend. simpleRequestMap is full, drop request!")),this._reConnect()):this._execute(n,r)}},{key:"_execute",value:function(e,t){this._socket.send({data:t,fail:fs?this._onSendFail.bind(this):void 0,requestID:e})}},{key:"_onSendFail",value:function(e){Zs.log("".concat(this._className,"._onSendFail requestID:").concat(e))}},{key:"_getSequence",value:function(){var e;if(this._startSequence<2415919103)return e=this._startSequence,this._startSequence+=1,2415919103===this._startSequence&&(this._startSequence=Ic()),e}},{key:"_getRequestIDFromHead",value:function(e){return e.servcmd+e.seq}},{key:"_getResponseKeyMap",value:function(e){var t=this._channelModule.getKeyMap(e);return Mn({},qv.response,{},t.response)}},{key:"_reConnect",value:function(){this._readyState!==Ob&&this._readyState!==Rb&&this.forcedReconnect()}},{key:"forcedReconnect",value:function(){var e=this;Zs.log("".concat(this._className,".forcedReconnect count:").concat(this._reConnectCount," readyState:").concat(this._readyState)),this._reConnectFlag=!0,this._resetRandom(),this._reConnectCount<this.MAX_RECONNECT_COUNT?(this._reConnectCount+=1,this._closeConnection(Db),this._initConnection()):(this._reConnectCount=0,this._channelModule.probeNetwork().then((function(t){var n=Un(t,2),r=n[0];n[1],r?(Zs.warn("".concat(e._className,".forcedReconnect disconnected from wsserver but network is ok, continue...")),e._closeConnection(Db),e._initConnection()):e._channelModule.onReconnectFailed()})))}},{key:"getReconnectFlag",value:function(){return this._reConnectFlag}},{key:"_setNextPingTs",value:function(){this._nextPingTs=Date.now()+1e4}},{key:"getNextPingTs",value:function(){return this._nextPingTs}},{key:"isConnected",value:function(){return this._readyState===Ob}},{key:"canIUseBinaryFrame",value:function(){return this._canIUseBinaryFrame}},{key:"setIsWorkerEnabled",value:function(e){Zs.log("".concat(this._className,".setIsWorkerEnabled flag:").concat(e)),this._isWorkerEnabled=e}},{key:"getIsWorkerEnabled",value:function(){return this._isWorkerEnabled&&Rs}},{key:"_getRandom",value:function(){return 0===this._random&&(this._random=Math.random()),this._random}},{key:"_resetRandom",value:function(){this._random=0}},{key:"close",value:function(){Zs.log("".concat(this._className,".close")),this._closeConnection(Ab),this._promiseMap.clear(),this._startSequence=Ic(),this._readyState=Lb,this._simpleRequestMap.clear(),this._reConnectFlag=!1,this._reConnectCount=0,this._onOpenTs=0,this._url="",this._random=0,this._canIUseBinaryFrame=!0,this._isWorkerEnabled=!0}}]),e}(),Nb=function(e){Tn(n,e);var t=Nn(n);function n(e){var r;if(Sn(this,n),(r=t.call(this,e))._className="ChannelModule",r._socketHandler=new Pb(Ln(r)),r._probing=!1,r._isAppShowing=!0,r._previousState=Kn.NET_STATE_CONNECTED,fs&&"function"==typeof gs.onAppShow&&"function"==typeof gs.onAppHide){var i=r._onAppHide.bind(Ln(r)),o=r._onAppShow.bind(Ln(r));"function"==typeof gs.offAppHide&&gs.offAppHide(i),"function"==typeof gs.offAppShow&&gs.offAppShow(o),gs.onAppHide(i),gs.onAppShow(o)}return r._timerForNotLoggedIn=-1,r._timerForNotLoggedIn=setInterval(r.onCheckTimer.bind(Ln(r)),1e3),r._fatalErrorFlag=!1,r}return wn(n,[{key:"onCheckTimer",value:function(e){this._socketHandler&&(this.isLoggedIn()?(this._timerForNotLoggedIn>0&&(clearInterval(this._timerForNotLoggedIn),this._timerForNotLoggedIn=-1),this._socketHandler.onCheckTimer(e)):this._socketHandler.onCheckTimer(1),this._checkNextPing())}},{key:"onErrorCodeNotZero",value:function(e){this.getModule(yl).onErrorCodeNotZero(e)}},{key:"onMessage",value:function(e){this.getModule(yl).onMessage(e)}},{key:"send",value:function(e){return this._socketHandler?this._previousState!==Kn.NET_STATE_CONNECTED&&e.head.servcmd.includes(Nd)?(this.reConnect(),this._sendLogViaHTTP(e)):this._socketHandler.send(e):Promise.reject()}},{key:"_sendLogViaHTTP",value:function(e){var t=ts.HOST.CURRENT.STAT;return new Promise((function(n,r){var i="".concat(t,"/v4/imopenstat/tim_web_report_v2?sdkappid=").concat(e.head.sdkappid,"&reqtime=").concat(Date.now()),o=JSON.stringify(e.body),a="application/x-www-form-urlencoded;charset=UTF-8";if(fs)gs.request({url:i,data:o,method:"POST",timeout:3e3,header:{"content-type":a},success:function(){n()},fail:function(){r(new Mm({code:Yd.NETWORK_ERROR,message:Jd.NETWORK_ERROR}))}});else{var s=new XMLHttpRequest,c=setTimeout((function(){s.abort(),r(new Mm({code:Yd.NETWORK_TIMEOUT,message:Jd.NETWORK_TIMEOUT}))}),3e3);s.onreadystatechange=function(){4===s.readyState&&(clearTimeout(c),200===s.status||304===s.status?n():r(new Mm({code:Yd.NETWORK_ERROR,message:Jd.NETWORK_ERROR})))},s.open("POST",i,!0),s.setRequestHeader("Content-type",a),s.send(o)}}))}},{key:"simplySend",value:function(e){return this._socketHandler?this._socketHandler.simplySend(e):Promise.reject()}},{key:"onOpen",value:function(){this._ping()}},{key:"onClose",value:function(){this._socketHandler&&this._socketHandler.getReconnectFlag()&&this._emitNetStateChangeEvent(Kn.NET_STATE_DISCONNECTED),this.reConnect()}},{key:"onError",value:function(){fs&&Zs.error("".concat(this._className,".onError 从v2.11.2起,SDK 支持了 WebSocket,如您未添加相关受信域名,请先添加!升级指引: https://web.sdk.qcloud.com/im/doc/zh-cn/tutorial-02-upgradeguideline.html"))}},{key:"getKeyMap",value:function(e){return this.getModule(yl).getKeyMap(e)}},{key:"_onAppHide",value:function(){this._isAppShowing=!1}},{key:"_onAppShow",value:function(){this._isAppShowing=!0}},{key:"onRequestTimeout",value:function(e){}},{key:"onReconnected",value:function(){Zs.log("".concat(this._className,".onReconnected")),this.getModule(yl).onReconnected(),this._emitNetStateChangeEvent(Kn.NET_STATE_CONNECTED)}},{key:"onReconnectFailed",value:function(){Zs.log("".concat(this._className,".onReconnectFailed")),this._emitNetStateChangeEvent(Kn.NET_STATE_DISCONNECTED)}},{key:"setIsWorkerEnabled",value:function(e){this._socketHandler&&this._socketHandler.setIsWorkerEnabled(!1)}},{key:"reConnect",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!1;this._socketHandler&&(t=this._socketHandler.getReconnectFlag());var n="forcedFlag:".concat(e," fatalErrorFlag:").concat(this._fatalErrorFlag," previousState:").concat(this._previousState," reconnectFlag:").concat(t);if(Zs.log("".concat(this._className,".reConnect ").concat(n)),!this._fatalErrorFlag&&this._socketHandler){if(!0===e)this._socketHandler.forcedReconnect();else{if(this._previousState===Kn.NET_STATE_CONNECTING&&t)return;this._socketHandler.forcedReconnect()}this._emitNetStateChangeEvent(Kn.NET_STATE_CONNECTING)}}},{key:"_emitNetStateChangeEvent",value:function(e){this._previousState!==e&&(Zs.log("".concat(this._className,"._emitNetStateChangeEvent from ").concat(this._previousState," to ").concat(e)),this._previousState=e,this.emitOuterEvent($n.NET_STATE_CHANGE,{state:e}))}},{key:"_ping",value:function(){var e=this;if(!0!==this._probing){this._probing=!0;var t=this.getModule(yl).getProtocolData({protocolName:Ud});this.send(t).then((function(){e._probing=!1})).catch((function(t){if(Zs.warn("".concat(e._className,"._ping failed. error:"),t),e._probing=!1,t&&60002===t.code)return new dh(zf).setMessage("code:".concat(t.code," message:").concat(t.message)).setNetworkType(e.getModule(fl).getNetworkType()).end(),e._fatalErrorFlag=!0,void e._emitNetStateChangeEvent(Kn.NET_STATE_DISCONNECTED);e.probeNetwork().then((function(t){var n=Un(t,2),r=n[0],i=n[1];Zs.log("".concat(e._className,"._ping failed. probe network, isAppShowing:").concat(e._isAppShowing," online:").concat(r," networkType:").concat(i)),r?e.reConnect():e._emitNetStateChangeEvent(Kn.NET_STATE_DISCONNECTED)}))}))}}},{key:"_checkNextPing",value:function(){this._socketHandler&&this._socketHandler.isConnected()&&Date.now()>=this._socketHandler.getNextPingTs()&&this._ping()}},{key:"dealloc",value:function(){this._socketHandler&&(this._socketHandler.close(),this._socketHandler=null),this._timerForNotLoggedIn>-1&&clearInterval(this._timerForNotLoggedIn)}},{key:"reset",value:function(){Zs.log("".concat(this._className,".reset")),this._previousState=Kn.NET_STATE_CONNECTED,this._probing=!1,this._fatalErrorFlag=!1,this._timerForNotLoggedIn=setInterval(this.onCheckTimer.bind(this),1e3)}}]),n}(Ml),Ub=function(){function e(t){Sn(this,e),this._className="ProtocolHandler",this._sessionModule=t,this._configMap=new Map,this._fillConfigMap()}return wn(e,[{key:"_fillConfigMap",value:function(){this._configMap.clear();var e=this._sessionModule.genCommonHead(),t=this._sessionModule.genCosSpecifiedHead(),n=this._sessionModule.genSSOReportHead();this._configMap.set(Tl,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.IM_OPEN_STATUS,".").concat(ts.CMD.LOGIN)}),body:{state:"Online"},keyMap:{response:{InstId:"instanceID",HelloInterval:"helloInterval"}}}}(e)),this._configMap.set(kl,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.IM_OPEN_STATUS,".").concat(ts.CMD.LOGOUT)}),body:{type:0},keyMap:{request:{type:"wslogout_type"}}}}(e)),this._configMap.set(El,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.IM_OPEN_STATUS,".").concat(ts.CMD.HELLO)}),body:{},keyMap:{response:{NewInstInfo:"newInstanceInfo"}}}}(e)),this._configMap.set(Al,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.STAT_SERVICE,".").concat(ts.CMD.KICK_OTHER)}),body:{}}}(e)),this._configMap.set(Rd,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.IM_COS_SIGN,".").concat(ts.CMD.COS_SIGN)}),body:{cmd:"open_im_cos_svc",subCmd:"get_cos_token",duration:300,version:2},keyMap:{request:{userSig:"usersig",subCmd:"sub_cmd",cmd:"cmd",duration:"duration",version:"version"},response:{expired_time:"expiredTime",bucket_name:"bucketName",session_token:"sessionToken",tmp_secret_id:"secretId",tmp_secret_key:"secretKey"}}}}(t)),this._configMap.set(Ld,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.CUSTOM_UPLOAD,".").concat(ts.CMD.COS_PRE_SIG)}),body:{fileType:void 0,fileName:void 0,uploadMethod:0,duration:900},keyMap:{request:{userSig:"usersig",fileType:"file_type",fileName:"file_name",uploadMethod:"upload_method"},response:{expired_time:"expiredTime",request_id:"requestId",head_url:"headUrl",upload_url:"uploadUrl",download_url:"downloadUrl",ci_url:"ciUrl",snapshot_url:"requestSnapshotUrl"}}}}(t)),this._configMap.set(Pd,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.CUSTOM_UPLOAD,".").concat(ts.CMD.VIDEO_COVER)}),body:{version:1,platform:void 0,coverName:void 0,requestSnapshotUrl:void 0},keyMap:{request:{version:"version",platform:"platform",coverName:"cover_name",requestSnapshotUrl:"snapshot_url"},response:{error_code:"errorCode",error_msg:"errorInfo",download_url:"snapshotUrl"}}}}(t)),this._configMap.set(qd,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.IM_CONFIG_MANAGER,".").concat(ts.CMD.FETCH_COMMERCIAL_CONFIG)}),body:{SDKAppID:0},keyMap:{request:{SDKAppID:"uint32_sdkappid"},response:{int32_error_code:"errorCode",str_error_message:"errorMessage",str_purchase_bits:"purchaseBits",uint32_expired_time:"expiredTime"}}}}(e)),this._configMap.set($d,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.IM_CONFIG_MANAGER,".").concat(ts.CMD.PUSHED_COMMERCIAL_CONFIG)}),body:{},keyMap:{response:{int32_error_code:"errorCode",str_error_message:"errorMessage",str_purchase_bits:"purchaseBits",uint32_expired_time:"expiredTime"}}}}(e)),this._configMap.set(Hd,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.IM_CONFIG_MANAGER,".").concat(ts.CMD.FETCH_CLOUD_CONTROL_CONFIG)}),body:{SDKAppID:0,version:0},keyMap:{request:{SDKAppID:"uint32_sdkappid",version:"uint64_version"},response:{int32_error_code:"errorCode",str_error_message:"errorMessage",str_json_config:"cloudControlConfig",uint32_expired_time:"expiredTime",uint32_sdkappid:"SDKAppID",uint64_version:"version"}}}}(e)),this._configMap.set(Wd,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.IM_CONFIG_MANAGER,".").concat(ts.CMD.PUSHED_CLOUD_CONTROL_CONFIG)}),body:{},keyMap:{response:{int32_error_code:"errorCode",str_error_message:"errorMessage",str_json_config:"cloudControlConfig",uint32_expired_time:"expiredTime",uint32_sdkappid:"SDKAppID",uint64_version:"version"}}}}(e)),this._configMap.set(Kd,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.OVERLOAD_PUSH,".").concat(ts.CMD.OVERLOAD_NOTIFY)}),body:{},keyMap:{response:{OverLoadServCmd:"overloadCommand",DelaySecs:"waitingTime"}}}}(e)),this._configMap.set(Dl,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.OPEN_IM,".").concat(ts.CMD.GET_MESSAGES)}),body:{cookie:"",syncFlag:0,needAbstract:1,isOnlineSync:0},keyMap:{request:{fromAccount:"From_Account",toAccount:"To_Account",from:"From_Account",to:"To_Account",time:"MsgTimeStamp",sequence:"MsgSeq",random:"MsgRandom",elements:"MsgBody"},response:{MsgList:"messageList",SyncFlag:"syncFlag",To_Account:"to",From_Account:"from",ClientSeq:"clientSequence",MsgSeq:"sequence",NoticeSeq:"noticeSequence",NotifySeq:"notifySequence",MsgRandom:"random",MsgTimeStamp:"time",MsgContent:"content",ToGroupId:"groupID",MsgKey:"messageKey",GroupTips:"groupTips",MsgBody:"elements",MsgType:"type",C2CRemainingUnreadCount:"C2CRemainingUnreadList",C2CPairUnreadCount:"C2CPairUnreadList"}}}}(e)),this._configMap.set(Ol,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.OPEN_IM,".").concat(ts.CMD.BIG_DATA_HALLWAY_AUTH_KEY)}),body:{}}}(e)),this._configMap.set(Rl,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.OPEN_IM,".").concat(ts.CMD.SEND_MESSAGE)}),body:{fromAccount:"",toAccount:"",msgSeq:0,msgRandom:0,msgBody:[],cloudCustomData:void 0,nick:"",avatar:"",msgLifeTime:void 0,offlinePushInfo:{pushFlag:0,title:"",desc:"",ext:"",apnsInfo:{badgeMode:0},androidInfo:{OPPOChannelID:""}},messageControlInfo:void 0,clientTime:void 0},keyMap:{request:{fromAccount:"From_Account",toAccount:"To_Account",msgTimeStamp:"MsgTimeStamp",msgSeq:"MsgSeq",msgRandom:"MsgRandom",msgBody:"MsgBody",count:"MaxCnt",lastMessageTime:"LastMsgTime",messageKey:"MsgKey",peerAccount:"Peer_Account",data:"Data",description:"Desc",extension:"Ext",type:"MsgType",content:"MsgContent",sizeType:"Type",uuid:"UUID",url:"",imageUrl:"URL",fileUrl:"Url",remoteAudioUrl:"Url",remoteVideoUrl:"VideoUrl",thumbUUID:"ThumbUUID",videoUUID:"VideoUUID",videoUrl:"",downloadFlag:"Download_Flag",nick:"From_AccountNick",avatar:"From_AccountHeadurl",from:"From_Account",time:"MsgTimeStamp",messageRandom:"MsgRandom",messageSequence:"MsgSeq",elements:"MsgBody",clientSequence:"ClientSeq",payload:"MsgContent",messageList:"MsgList",messageNumber:"MsgNum",abstractList:"AbstractList",messageBody:"MsgBody"}}}}(e)),this._configMap.set(Ll,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.GROUP,".").concat(ts.CMD.SEND_GROUP_MESSAGE)}),body:{fromAccount:"",groupID:"",random:0,clientSequence:0,priority:"",msgBody:[],cloudCustomData:void 0,onlineOnlyFlag:0,offlinePushInfo:{pushFlag:0,title:"",desc:"",ext:"",apnsInfo:{badgeMode:0},androidInfo:{OPPOChannelID:""}},groupAtInfo:[],messageControlInfo:void 0,clientTime:void 0,needReadReceipt:0},keyMap:{request:{to:"GroupId",extension:"Ext",data:"Data",description:"Desc",random:"Random",sequence:"ReqMsgSeq",count:"ReqMsgNumber",type:"MsgType",priority:"MsgPriority",content:"MsgContent",elements:"MsgBody",sizeType:"Type",uuid:"UUID",url:"",imageUrl:"URL",fileUrl:"Url",remoteAudioUrl:"Url",remoteVideoUrl:"VideoUrl",thumbUUID:"ThumbUUID",videoUUID:"VideoUUID",videoUrl:"",downloadFlag:"Download_Flag",clientSequence:"ClientSeq",from:"From_Account",time:"MsgTimeStamp",messageRandom:"MsgRandom",messageSequence:"MsgSeq",payload:"MsgContent",messageList:"MsgList",messageNumber:"MsgNum",abstractList:"AbstractList",messageBody:"MsgBody",needReadReceipt:"NeedReadReceipt"},response:{MsgTime:"time",MsgSeq:"sequence"}}}}(e)),this._configMap.set(Vl,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.OPEN_IM,".").concat(ts.CMD.REVOKE_C2C_MESSAGE)}),body:{msgInfo:{fromAccount:"",toAccount:"",msgTimeStamp:0,msgSeq:0,msgRandom:0}},keyMap:{request:{msgInfo:"MsgInfo",msgTimeStamp:"MsgTimeStamp",msgSeq:"MsgSeq",msgRandom:"MsgRandom"}}}}(e)),this._configMap.set(ld,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.GROUP,".").concat(ts.CMD.REVOKE_GROUP_MESSAGE)}),body:{groupID:"",msgSeqList:void 0},keyMap:{request:{msgSeqList:"MsgSeqList",msgSeq:"MsgSeq"}}}}(e)),this._configMap.set(Hl,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.OPEN_IM,".").concat(ts.CMD.GET_C2C_ROAM_MESSAGES)}),body:{peerAccount:"",count:15,lastMessageTime:0,messageKey:"",withRecalledMessage:1},keyMap:{request:{messageKey:"MsgKey",peerAccount:"Peer_Account",count:"MaxCnt",lastMessageTime:"LastMsgTime",withRecalledMessage:"WithRecalledMsg"},response:{LastMsgTime:"lastMessageTime"}}}}(e)),this._configMap.set(fd,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.GROUP,".").concat(ts.CMD.GET_GROUP_ROAM_MESSAGES)}),body:{withRecalledMsg:1,groupID:"",count:15,sequence:""},keyMap:{request:{sequence:"ReqMsgSeq",count:"ReqMsgNumber",withRecalledMessage:"WithRecalledMsg"},response:{Random:"random",MsgTime:"time",MsgSeq:"sequence",ReqMsgSeq:"sequence",RspMsgList:"messageList",IsPlaceMsg:"isPlaceMessage",IsSystemMsg:"isSystemMessage",ToGroupId:"to",EnumFrom_AccountType:"fromAccountType",EnumTo_AccountType:"toAccountType",GroupCode:"groupCode",MsgPriority:"priority",MsgBody:"elements",MsgType:"type",MsgContent:"content",IsFinished:"complete",Download_Flag:"downloadFlag",ClientSeq:"clientSequence",ThumbUUID:"thumbUUID",VideoUUID:"videoUUID"}}}}(e)),this._configMap.set(jl,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.OPEN_IM,".").concat(ts.CMD.SET_C2C_MESSAGE_READ)}),body:{C2CMsgReaded:void 0},keyMap:{request:{lastMessageTime:"LastedMsgTime"}}}}(e)),this._configMap.set(Bl,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.OPEN_IM,".").concat(ts.CMD.SET_C2C_PEER_MUTE_NOTIFICATIONS)}),body:{userIDList:void 0,muteFlag:0},keyMap:{request:{userIDList:"Peer_Account",muteFlag:"Mute_Notifications"}}}}(e)),this._configMap.set(zl,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.OPEN_IM,".").concat(ts.CMD.GET_C2C_PEER_MUTE_NOTIFICATIONS)}),body:{updateSequence:0},keyMap:{response:{MuteNotificationsList:"muteFlagList"}}}}(e)),this._configMap.set(dd,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.GROUP,".").concat(ts.CMD.SET_GROUP_MESSAGE_READ)}),body:{groupID:void 0,messageReadSeq:void 0},keyMap:{request:{messageReadSeq:"MsgReadedSeq"}}}}(e)),this._configMap.set(hd,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.OPEN_IM,".").concat(ts.CMD.SET_ALL_MESSAGE_READ)}),body:{readAllC2CMessage:0,groupMessageReadInfoList:[]},keyMap:{request:{readAllC2CMessage:"C2CReadAllMsg",groupMessageReadInfoList:"GroupReadInfo",messageSequence:"MsgSeq"},response:{C2CReadAllMsg:"readAllC2CMessage",GroupReadInfoArray:"groupMessageReadInfoList"}}}}(e)),this._configMap.set(ql,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.OPEN_IM,".").concat(ts.CMD.DELETE_C2C_MESSAGE)}),body:{fromAccount:"",to:"",keyList:void 0},keyMap:{request:{keyList:"MsgKeyList"}}}}(e)),this._configMap.set(xd,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.GROUP,".").concat(ts.CMD.DELETE_GROUP_MESSAGE)}),body:{groupID:"",deleter:"",keyList:void 0},keyMap:{request:{deleter:"Deleter_Account",keyList:"Seqs"}}}}(e)),this._configMap.set(pd,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.GROUP,".").concat(ts.CMD.GET_READ_RECEIPT)}),body:{groupID:"",sequenceList:void 0},keyMap:{request:{sequence:"MsgSeq"}}}}(e)),this._configMap.set(gd,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.GROUP,".").concat(ts.CMD.SEND_READ_RECEIPT)}),body:{groupID:"",sequenceList:void 0},keyMap:{request:{sequenceList:"MsgSeqList",sequence:"MsgSeq"}}}}(e)),this._configMap.set(md,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.GROUP,".").concat(ts.CMD.GET_READ_RECEIPT_DETAIL)}),body:{groupID:"",sequence:void 0,flag:0,cursor:0,count:0},keyMap:{request:{sequence:"MsgSeq",count:"Num"},response:{ReadList:"readUserIDList",Read_Account:"userID",UnreadList:"unreadUserIDList",Unread_Account:"userID",IsFinish:"isCompleted"}}}}(e)),this._configMap.set(Wl,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.OPEN_IM,".").concat(ts.CMD.GET_PEER_READ_TIME)}),body:{userIDList:void 0},keyMap:{request:{userIDList:"To_Account"},response:{ReadTime:"peerReadTimeList"}}}}(e)),this._configMap.set(Kl,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.RECENT_CONTACT,".").concat(ts.CMD.GET_CONVERSATION_LIST)}),body:{fromAccount:void 0,count:0},keyMap:{request:{},response:{SessionItem:"conversations",ToAccount:"groupID",To_Account:"userID",UnreadMsgCount:"unreadCount",MsgGroupReadedSeq:"messageReadSeq",C2cPeerReadTime:"c2cPeerReadTime"}}}}(e)),this._configMap.set($l,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.RECENT_CONTACT,".").concat(ts.CMD.PAGING_GET_CONVERSATION_LIST)}),body:{fromAccount:void 0,timeStamp:void 0,startIndex:void 0,pinnedTimeStamp:void 0,pinnedStartIndex:void 0,orderType:void 0,messageAssistFlag:4,assistFlag:15},keyMap:{request:{messageAssistFlag:"MsgAssistFlags",assistFlag:"AssistFlags",pinnedTimeStamp:"TopTimeStamp",pinnedStartIndex:"TopStartIndex"},response:{SessionItem:"conversations",ToAccount:"groupID",To_Account:"userID",UnreadMsgCount:"unreadCount",MsgGroupReadedSeq:"messageReadSeq",C2cPeerReadTime:"c2cPeerReadTime",LastMsgFlags:"lastMessageFlag",TopFlags:"isPinned",TopTimeStamp:"pinnedTimeStamp",TopStartIndex:"pinnedStartIndex"}}}}(e)),this._configMap.set(Yl,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.RECENT_CONTACT,".").concat(ts.CMD.DELETE_CONVERSATION)}),body:{fromAccount:"",toAccount:void 0,type:1,toGroupID:void 0,clearHistoryMessage:1},keyMap:{request:{toGroupID:"ToGroupid",clearHistoryMessage:"ClearRamble"}}}}(e)),this._configMap.set(Jl,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.RECENT_CONTACT,".").concat(ts.CMD.PIN_CONVERSATION)}),body:{fromAccount:"",operationType:1,itemList:void 0},keyMap:{request:{itemList:"RecentContactItem"}}}}(e)),this._configMap.set(Xl,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.OPEN_IM,".").concat(ts.CMD.DELETE_GROUP_AT_TIPS)}),body:{messageListToDelete:void 0},keyMap:{request:{messageListToDelete:"DelMsgList",messageSeq:"MsgSeq",messageRandom:"MsgRandom"}}}}(e)),this._configMap.set(Pl,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.PROFILE,".").concat(ts.CMD.PORTRAIT_GET)}),body:{fromAccount:"",userItem:[]},keyMap:{request:{toAccount:"To_Account",standardSequence:"StandardSequence",customSequence:"CustomSequence"}}}}(e)),this._configMap.set(Nl,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.PROFILE,".").concat(ts.CMD.PORTRAIT_SET)}),body:{fromAccount:"",profileItem:[{tag:ec.NICK,value:""},{tag:ec.GENDER,value:""},{tag:ec.ALLOWTYPE,value:""},{tag:ec.AVATAR,value:""}]},keyMap:{request:{toAccount:"To_Account",standardSequence:"StandardSequence",customSequence:"CustomSequence"}}}}(e)),this._configMap.set(Ul,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.FRIEND,".").concat(ts.CMD.GET_BLACKLIST)}),body:{fromAccount:"",startIndex:0,maxLimited:30,lastSequence:0},keyMap:{response:{CurruentSequence:"currentSequence"}}}}(e)),this._configMap.set(Fl,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.FRIEND,".").concat(ts.CMD.ADD_BLACKLIST)}),body:{fromAccount:"",toAccount:[]}}}(e)),this._configMap.set(Gl,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.FRIEND,".").concat(ts.CMD.DELETE_BLACKLIST)}),body:{fromAccount:"",toAccount:[]}}}(e)),this._configMap.set(Zl,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.GROUP,".").concat(ts.CMD.GET_JOINED_GROUPS)}),body:{memberAccount:"",limit:void 0,offset:void 0,groupType:void 0,responseFilter:{groupBaseInfoFilter:void 0,selfInfoFilter:void 0}},keyMap:{request:{memberAccount:"Member_Account"},response:{GroupIdList:"groups",MsgFlag:"messageRemindType",NoUnreadSeqList:"excludedUnreadSequenceList",MsgSeq:"readedSequence"}}}}(e)),this._configMap.set(Ql,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.GROUP,".").concat(ts.CMD.GET_GROUP_INFO)}),body:{groupIDList:void 0,responseFilter:{groupBaseInfoFilter:["Type","Name","Introduction","Notification","FaceUrl","Owner_Account","CreateTime","InfoSeq","LastInfoTime","LastMsgTime","MemberNum","MaxMemberNum","ApplyJoinOption","NextMsgSeq","ShutUpAllMember"],groupCustomFieldFilter:void 0,memberInfoFilter:void 0,memberCustomFieldFilter:void 0}},keyMap:{request:{groupIDList:"GroupIdList",groupCustomField:"AppDefinedData",memberCustomField:"AppMemberDefinedData",groupCustomFieldFilter:"AppDefinedDataFilter_Group",memberCustomFieldFilter:"AppDefinedDataFilter_GroupMember"},response:{GroupIdList:"groups",MsgFlag:"messageRemindType",AppDefinedData:"groupCustomField",AppMemberDefinedData:"memberCustomField",AppDefinedDataFilter_Group:"groupCustomFieldFilter",AppDefinedDataFilter_GroupMember:"memberCustomFieldFilter",InfoSeq:"infoSequence",MemberList:"members",GroupInfo:"groups",ShutUpUntil:"muteUntil",ShutUpAllMember:"muteAllMembers",ApplyJoinOption:"joinOption"}}}}(e)),this._configMap.set(ed,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.GROUP,".").concat(ts.CMD.CREATE_GROUP)}),body:{type:void 0,name:void 0,groupID:void 0,ownerID:void 0,introduction:void 0,notification:void 0,maxMemberNum:void 0,joinOption:void 0,memberList:void 0,groupCustomField:void 0,memberCustomField:void 0,webPushFlag:1,avatar:"FaceUrl"},keyMap:{request:{ownerID:"Owner_Account",userID:"Member_Account",avatar:"FaceUrl",maxMemberNum:"MaxMemberCount",joinOption:"ApplyJoinOption",groupCustomField:"AppDefinedData",memberCustomField:"AppMemberDefinedData"},response:{HugeGroupFlag:"avChatRoomFlag",OverJoinedGroupLimit_Account:"overLimitUserIDList"}}}}(e)),this._configMap.set(td,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.GROUP,".").concat(ts.CMD.DESTROY_GROUP)}),body:{groupID:void 0}}}(e)),this._configMap.set(nd,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.GROUP,".").concat(ts.CMD.MODIFY_GROUP_INFO)}),body:{groupID:void 0,name:void 0,introduction:void 0,notification:void 0,avatar:void 0,maxMemberNum:void 0,joinOption:void 0,groupCustomField:void 0,muteAllMembers:void 0},keyMap:{request:{maxMemberNum:"MaxMemberCount",groupCustomField:"AppDefinedData",muteAllMembers:"ShutUpAllMember",joinOption:"ApplyJoinOption",avatar:"FaceUrl"},response:{AppDefinedData:"groupCustomField",ShutUpAllMember:"muteAllMembers",ApplyJoinOption:"joinOption"}}}}(e)),this._configMap.set(rd,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.GROUP,".").concat(ts.CMD.APPLY_JOIN_GROUP)}),body:{groupID:void 0,applyMessage:void 0,userDefinedField:void 0,webPushFlag:1,historyMessageFlag:void 0},keyMap:{request:{applyMessage:"ApplyMsg",historyMessageFlag:"HugeGroupHistoryMsgFlag"},response:{HugeGroupFlag:"avChatRoomFlag",AVChatRoomKey:"avChatRoomKey",RspMsgList:"messageList",ToGroupId:"to"}}}}(e)),this._configMap.set(id,function(e){return e.a2,e.tinyid,{head:Mn({},Rn(e,["a2","tinyid"]),{servcmd:"".concat(ts.NAME.BIG_GROUP_NO_AUTH,".").concat(ts.CMD.APPLY_JOIN_GROUP)}),body:{groupID:void 0,applyMessage:void 0,userDefinedField:void 0,webPushFlag:1},keyMap:{request:{applyMessage:"ApplyMsg"},response:{HugeGroupFlag:"avChatRoomFlag"}}}}(e)),this._configMap.set(od,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.GROUP,".").concat(ts.CMD.QUIT_GROUP)}),body:{groupID:void 0}}}(e)),this._configMap.set(ad,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.GROUP,".").concat(ts.CMD.SEARCH_GROUP_BY_ID)}),body:{groupIDList:void 0,responseFilter:{groupBasePublicInfoFilter:["Type","Name","Introduction","Notification","FaceUrl","CreateTime","Owner_Account","LastInfoTime","LastMsgTime","NextMsgSeq","MemberNum","MaxMemberNum","ApplyJoinOption"]}},keyMap:{response:{ApplyJoinOption:"joinOption"}}}}(e)),this._configMap.set(sd,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.GROUP,".").concat(ts.CMD.CHANGE_GROUP_OWNER)}),body:{groupID:void 0,newOwnerID:void 0},keyMap:{request:{newOwnerID:"NewOwner_Account"}}}}(e)),this._configMap.set(cd,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.GROUP,".").concat(ts.CMD.HANDLE_APPLY_JOIN_GROUP)}),body:{groupID:void 0,applicant:void 0,handleAction:void 0,handleMessage:void 0,authentication:void 0,messageKey:void 0,userDefinedField:void 0},keyMap:{request:{applicant:"Applicant_Account",handleAction:"HandleMsg",handleMessage:"ApprovalMsg",messageKey:"MsgKey"}}}}(e)),this._configMap.set(ud,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.GROUP,".").concat(ts.CMD.HANDLE_GROUP_INVITATION)}),body:{groupID:void 0,inviter:void 0,handleAction:void 0,handleMessage:void 0,authentication:void 0,messageKey:void 0,userDefinedField:void 0},keyMap:{request:{inviter:"Inviter_Account",handleAction:"HandleMsg",handleMessage:"ApprovalMsg",messageKey:"MsgKey"}}}}(e)),this._configMap.set(vd,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.GROUP,".").concat(ts.CMD.GET_GROUP_APPLICATION)}),body:{startTime:void 0,limit:void 0,handleAccount:void 0},keyMap:{request:{handleAccount:"Handle_Account"}}}}(e)),this._configMap.set(yd,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.OPEN_IM,".").concat(ts.CMD.DELETE_GROUP_SYSTEM_MESSAGE)}),body:{messageListToDelete:void 0},keyMap:{request:{messageListToDelete:"DelMsgList",messageSeq:"MsgSeq",messageRandom:"MsgRandom"}}}}(e)),this._configMap.set(_d,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.BIG_GROUP_LONG_POLLING,".").concat(ts.CMD.AVCHATROOM_LONG_POLL)}),body:{USP:1,startSeq:1,holdTime:90,key:void 0},keyMap:{request:{USP:"USP"},response:{ToGroupId:"groupID"}}}}(e)),this._configMap.set(bd,function(e){return e.a2,e.tinyid,{head:Mn({},Rn(e,["a2","tinyid"]),{servcmd:"".concat(ts.NAME.BIG_GROUP_LONG_POLLING_NO_AUTH,".").concat(ts.CMD.AVCHATROOM_LONG_POLL)}),body:{USP:1,startSeq:1,holdTime:90,key:void 0},keyMap:{request:{USP:"USP"},response:{ToGroupId:"groupID"}}}}(e)),this._configMap.set(Sd,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.GROUP,".").concat(ts.CMD.GET_ONLINE_MEMBER_NUM)}),body:{groupID:void 0}}}(e)),this._configMap.set(wd,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.GROUP,".").concat(ts.CMD.SET_GROUP_ATTRIBUTES)}),body:{groupID:void 0,groupAttributeList:void 0,mainSequence:void 0,avChatRoomKey:void 0,attributeControl:["RaceConflict"]},keyMap:{request:{key:"key",value:"value"}}}}(e)),this._configMap.set(Id,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.GROUP,".").concat(ts.CMD.MODIFY_GROUP_ATTRIBUTES)}),body:{groupID:void 0,groupAttributeList:void 0,mainSequence:void 0,avChatRoomKey:void 0,attributeControl:["RaceConflict"]},keyMap:{request:{key:"key",value:"value"}}}}(e)),this._configMap.set(Cd,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.GROUP,".").concat(ts.CMD.DELETE_GROUP_ATTRIBUTES)}),body:{groupID:void 0,groupAttributeList:void 0,mainSequence:void 0,avChatRoomKey:void 0,attributeControl:["RaceConflict"]},keyMap:{request:{key:"key"}}}}(e)),this._configMap.set(Md,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.GROUP,".").concat(ts.CMD.CLEAR_GROUP_ATTRIBUTES)}),body:{groupID:void 0,mainSequence:void 0,avChatRoomKey:void 0,attributeControl:["RaceConflict"]}}}(e)),this._configMap.set(Td,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.GROUP_ATTR,".").concat(ts.CMD.GET_GROUP_ATTRIBUTES)}),body:{groupID:void 0,avChatRoomKey:void 0,groupType:1},keyMap:{request:{avChatRoomKey:"Key",groupType:"GroupType"}}}}(e)),this._configMap.set(kd,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.GROUP,".").concat(ts.CMD.GET_GROUP_MEMBER_LIST)}),body:{groupID:void 0,limit:0,offset:void 0,next:void 0,memberRoleFilter:void 0,memberInfoFilter:["Role","NameCard","ShutUpUntil","JoinTime"],memberCustomFieldFilter:void 0},keyMap:{request:{memberCustomFieldFilter:"AppDefinedDataFilter_GroupMember"},response:{AppMemberDefinedData:"memberCustomField",AppDefinedDataFilter_GroupMember:"memberCustomFieldFilter",MemberList:"members",ShutUpUntil:"muteUntil"}}}}(e)),this._configMap.set(Ed,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.GROUP,".").concat(ts.CMD.GET_GROUP_MEMBER_INFO)}),body:{groupID:void 0,userIDList:void 0,memberInfoFilter:void 0,memberCustomFieldFilter:void 0},keyMap:{request:{userIDList:"Member_List_Account",memberCustomFieldFilter:"AppDefinedDataFilter_GroupMember"},response:{MemberList:"members",ShutUpUntil:"muteUntil",AppDefinedDataFilter_GroupMember:"memberCustomFieldFilter",AppMemberDefinedData:"memberCustomField"}}}}(e)),this._configMap.set(Ad,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.GROUP,".").concat(ts.CMD.ADD_GROUP_MEMBER)}),body:{groupID:void 0,silence:void 0,userIDList:void 0},keyMap:{request:{userID:"Member_Account",userIDList:"MemberList"},response:{MemberList:"members"}}}}(e)),this._configMap.set(Dd,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.GROUP,".").concat(ts.CMD.DELETE_GROUP_MEMBER)}),body:{groupID:void 0,userIDList:void 0,reason:void 0},keyMap:{request:{userIDList:"MemberToDel_Account"}}}}(e)),this._configMap.set(Od,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.GROUP,".").concat(ts.CMD.MODIFY_GROUP_MEMBER_INFO)}),body:{groupID:void 0,userID:void 0,messageRemindType:void 0,nameCard:void 0,role:void 0,memberCustomField:void 0,muteTime:void 0},keyMap:{request:{userID:"Member_Account",memberCustomField:"AppMemberDefinedData",muteTime:"ShutUpTime",messageRemindType:"MsgFlag"}}}}(e)),this._configMap.set(Nd,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.IM_OPEN_STAT,".").concat(ts.CMD.TIM_WEB_REPORT_V2)}),body:{header:{},event:[],quality:[]},keyMap:{request:{SDKType:"sdk_type",SDKVersion:"sdk_version",deviceType:"device_type",platform:"platform",instanceID:"instance_id",traceID:"trace_id",SDKAppID:"sdk_app_id",userID:"user_id",tinyID:"tiny_id",extension:"extension",timestamp:"timestamp",networkType:"network_type",eventType:"event_type",code:"error_code",message:"error_message",moreMessage:"more_message",duplicate:"duplicate",costTime:"cost_time",level:"level",qualityType:"quality_type",reportIndex:"report_index",wholePeriod:"whole_period",totalCount:"total_count",rttCount:"success_count_business",successRateOfRequest:"percent_business",countLessThan1Second:"success_count_business",percentOfCountLessThan1Second:"percent_business",countLessThan3Second:"success_count_platform",percentOfCountLessThan3Second:"percent_platform",successCountOfBusiness:"success_count_business",successRateOfBusiness:"percent_business",successCountOfPlatform:"success_count_platform",successRateOfPlatform:"percent_platform",successCountOfMessageReceived:"success_count_business",successRateOfMessageReceived:"percent_business",avgRTT:"average_value",avgDelay:"average_value",avgValue:"average_value",uiPlatform:"ui_platform"}}}}(n)),this._configMap.set(Ud,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.HEARTBEAT,".").concat(ts.CMD.ALIVE)}),body:{}}}(e)),this._configMap.set(Fd,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.IM_OPEN_PUSH,".").concat(ts.CMD.MESSAGE_PUSH)}),body:{},keyMap:{response:{C2cMsgArray:"C2CMessageArray",GroupMsgArray:"groupMessageArray",GroupTips:"groupTips",C2cNotifyMsgArray:"C2CNotifyMessageArray",ClientSeq:"clientSequence",MsgPriority:"priority",NoticeSeq:"noticeSequence",MsgContent:"content",MsgType:"type",MsgBody:"elements",ToGroupId:"to",Desc:"description",Ext:"extension",IsSyncMsg:"isSyncMessage",Flag:"needSync",NeedAck:"needAck",PendencyAdd_Account:"userID",ProfileImNick:"nick",PendencyType:"applicationType",C2CReadAllMsg:"readAllC2CMessage"}}}}(e)),this._configMap.set(Gd,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.IM_OPEN_PUSH,".").concat(ts.CMD.MULTI_MESSAGE_PUSH)}),body:{},keyMap:{response:{GroupMsgArray:"groupMessageArray",GroupTips:"groupTips",ClientSeq:"clientSequence",MsgPriority:"priority",NoticeSeq:"noticeSequence",MsgContent:"content",MsgType:"type",MsgBody:"elements",ToGroupId:"to",Desc:"description",Ext:"extension",IsSyncMsg:"isSyncMessage",Flag:"needSync",NeedAck:"needAck",PendencyType:"applicationType"}}}}(e)),this._configMap.set(Vd,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.OPEN_IM,".").concat(ts.CMD.MESSAGE_PUSH_ACK)}),body:{sessionData:void 0},keyMap:{request:{sessionData:"SessionData"}}}}(e)),this._configMap.set(jd,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.IM_OPEN_STATUS,".").concat(ts.CMD.STATUS_FORCEOFFLINE)}),body:{},keyMap:{response:{C2cNotifyMsgArray:"C2CNotifyMessageArray",NoticeSeq:"noticeSequence",KickoutMsgNotify:"kickoutMsgNotify",NewInstInfo:"newInstanceInfo"}}}}(e)),this._configMap.set(zd,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.IM_LONG_MESSAGE,".").concat(ts.CMD.DOWNLOAD_MERGER_MESSAGE)}),body:{downloadKey:""},keyMap:{response:{Data:"data",Desc:"description",Ext:"extension",Download_Flag:"downloadFlag",ThumbUUID:"thumbUUID",VideoUUID:"videoUUID"}}}}(e)),this._configMap.set(Bd,function(e){return{head:Mn({},e,{servcmd:"".concat(ts.NAME.IM_LONG_MESSAGE,".").concat(ts.CMD.UPLOAD_MERGER_MESSAGE)}),body:{messageList:[]},keyMap:{request:{fromAccount:"From_Account",toAccount:"To_Account",msgTimeStamp:"MsgTimeStamp",msgSeq:"MsgSeq",msgRandom:"MsgRandom",msgBody:"MsgBody",type:"MsgType",content:"MsgContent",data:"Data",description:"Desc",extension:"Ext",sizeType:"Type",uuid:"UUID",url:"",imageUrl:"URL",fileUrl:"Url",remoteAudioUrl:"Url",remoteVideoUrl:"VideoUrl",thumbUUID:"ThumbUUID",videoUUID:"VideoUUID",videoUrl:"",downloadFlag:"Download_Flag",from:"From_Account",time:"MsgTimeStamp",messageRandom:"MsgRandom",messageSequence:"MsgSeq",elements:"MsgBody",clientSequence:"ClientSeq",payload:"MsgContent",messageList:"MsgList",messageNumber:"MsgNum",abstractList:"AbstractList",messageBody:"MsgBody"}}}}(e))}},{key:"has",value:function(e){return this._configMap.has(e)}},{key:"get",value:function(e){return this._configMap.get(e)}},{key:"update",value:function(){this._fillConfigMap()}},{key:"getKeyMap",value:function(e){return this.has(e)?this.get(e).keyMap||{}:(Zs.warn("".concat(this._className,".getKeyMap unknown protocolName:").concat(e)),{})}},{key:"getProtocolData",value:function(e){var t=e.protocolName,n=e.requestData,r=this.get(t),i=null;if(n){var o=this._simpleDeepCopy(r),a=this._updateService(n,o),s=a.body,c=Object.create(null);for(var u in s)if(Object.prototype.hasOwnProperty.call(s,u)){if(c[u]=s[u],void 0===n[u])continue;c[u]=n[u]}a.body=c,i=this._getUplinkData(a)}else i=this._getUplinkData(r);return i}},{key:"_getUplinkData",value:function(e){var t=this._requestDataCleaner(e),n=Wc(t.head),r=Jv(t.body,this._getRequestKeyMap(n));return t.body=r,t}},{key:"_updateService",value:function(e,t){var n=Wc(t.head);if(t.head.servcmd.includes(ts.NAME.GROUP)){var r=e.type,i=e.groupID,o=void 0===i?void 0:i,a=e.groupIDList,s=void 0===a?[]:a;fc(o)&&(o=s[0]||""),Pc({type:r,groupID:o})&&(t.head.servcmd="".concat(ts.NAME.GROUP_COMMUNITY,".").concat(n))}return t}},{key:"_getRequestKeyMap",value:function(e){var t=this.getKeyMap(e);return Mn({},qv.request,{},t.request)}},{key:"_requestDataCleaner",value:function(e){var t=Array.isArray(e)?[]:Object.create(null);for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&yc(n)&&null!==e[n]&&void 0!==e[n]&&("object"!==bn(e[n])?t[n]=e[n]:t[n]=this._requestDataCleaner.bind(this)(e[n]));return t}},{key:"_simpleDeepCopy",value:function(e){for(var t,n=Object.keys(e),r={},i=0,o=n.length;i<o;i++)t=n[i],hc(e[t])?r[t]=Array.from(e[t]):lc(e[t])?r[t]=this._simpleDeepCopy(e[t]):r[t]=e[t];return r}}]),e}(),Fb=[Vd],Gb=function(){function e(t){Sn(this,e),this._sessionModule=t,this._className="DownlinkHandler",this._eventHandlerMap=new Map,this._eventHandlerMap.set("C2CMessageArray",this._c2cMessageArrayHandler.bind(this)),this._eventHandlerMap.set("groupMessageArray",this._groupMessageArrayHandler.bind(this)),this._eventHandlerMap.set("groupTips",this._groupTipsHandler.bind(this)),this._eventHandlerMap.set("C2CNotifyMessageArray",this._C2CNotifyMessageArrayHandler.bind(this)),this._eventHandlerMap.set("profileModify",this._profileHandler.bind(this)),this._eventHandlerMap.set("friendListMod",this._relationChainHandler.bind(this)),this._eventHandlerMap.set("recentContactMod",this._recentContactHandler.bind(this)),this._eventHandlerMap.set("readAllC2CMessage",this._allMessageReadHandler.bind(this)),this._keys=Fn(this._eventHandlerMap.keys())}return wn(e,[{key:"_c2cMessageArrayHandler",value:function(e){var t=this._sessionModule.getModule(ol);t&&(e.dataList.forEach((function(e){if(1===e.isSyncMessage){var t=e.from;e.from=e.to,e.to=t}})),1===e.needSync&&this._sessionModule.getModule(vl).startOnlineSync(),t.onNewC2CMessage({dataList:e.dataList,isInstantMessage:!0}))}},{key:"_groupMessageArrayHandler",value:function(e){var t=this._sessionModule.getModule(al);t&&t.onNewGroupMessage({event:e.event,dataList:e.dataList,isInstantMessage:!0})}},{key:"_groupTipsHandler",value:function(e){var t=this._sessionModule.getModule(al);if(t){var n=e.event,r=e.dataList,i=e.isInstantMessage,o=void 0===i||i,a=e.isSyncingEnded;switch(n){case 4:case 6:t.onNewGroupTips({event:n,dataList:r});break;case 5:r.forEach((function(e){hc(e.elements.revokedInfos)?t.onGroupMessageRevoked({dataList:r}):hc(e.elements.groupMessageReadNotice)?t.onGroupMessageReadNotice({dataList:r}):hc(e.elements.readReceiptList)?t.onReadReceiptList({dataList:r}):t.onNewGroupSystemNotice({dataList:r,isInstantMessage:o,isSyncingEnded:a})}));break;case 12:this._sessionModule.getModule(ul).onNewGroupAtTips({dataList:r});break;default:Zs.log("".concat(this._className,"._groupTipsHandler unknown event:").concat(n," dataList:"),r)}}}},{key:"_C2CNotifyMessageArrayHandler",value:function(e){var t=this,n=e.dataList;if(hc(n)){var r=this._sessionModule.getModule(ol);n.forEach((function(e){if(dc(e))if(e.hasOwnProperty("kickoutMsgNotify")){var i=e.kickoutMsgNotify,o=i.kickType,a=i.newInstanceInfo,s=void 0===a?{}:a;1===o?t._sessionModule.onMultipleAccountKickedOut(s):2===o&&t._sessionModule.onMultipleDeviceKickedOut(s)}else e.hasOwnProperty("c2cMessageRevokedNotify")?r&&r.onC2CMessageRevoked({dataList:n}):e.hasOwnProperty("c2cMessageReadReceipt")?r&&r.onC2CMessageReadReceipt({dataList:n}):e.hasOwnProperty("c2cMessageReadNotice")?r&&r.onC2CMessageReadNotice({dataList:n}):e.hasOwnProperty("muteNotificationsSync")&&t._sessionModule.getModule(ul).onC2CMessageRemindTypeSynced({dataList:n})}))}}},{key:"_profileHandler",value:function(e){this._sessionModule.getModule(il).onProfileModified({dataList:e.dataList});var t=this._sessionModule.getModule(sl);t&&t.onFriendProfileModified({dataList:e.dataList})}},{key:"_relationChainHandler",value:function(e){this._sessionModule.getModule(il).onRelationChainModified({dataList:e.dataList});var t=this._sessionModule.getModule(sl);t&&t.onRelationChainModified({dataList:e.dataList})}},{key:"_recentContactHandler",value:function(e){var t=e.dataList;if(hc(t)){var n=this._sessionModule.getModule(ul);n&&t.forEach((function(e){var t=e.pushType,r=e.recentContactTopItem,i=e.recentContactDeleteItem;1===t?n.onConversationDeleted(i.recentContactList):2===t?n.onConversationPinned(r.recentContactList):3===t&&n.onConversationUnpinned(r.recentContactList)}))}}},{key:"_allMessageReadHandler",value:function(e){var t=e.dataList,n=this._sessionModule.getModule(ul);n&&n.onPushedAllMessageRead(t)}},{key:"onMessage",value:function(e){var t=this,n=e.body;if(this._filterMessageFromIMOpenPush(e)){var r=n.eventArray,i=n.isInstantMessage,o=n.isSyncingEnded,a=n.needSync;if(hc(r))for(var s=null,c=null,u=0,l=0,d=r.length;l<d;l++){u=(s=r[l]).event;var h=Object.keys(s).find((function(e){return-1!==t._keys.indexOf(e)}));h?(c=14!==u?s[h]:{readAllC2CMessage:s[h],groupMessageReadInfoList:s.groupMessageReadNotice||[]},this._eventHandlerMap.get(h)({event:u,dataList:c,isInstantMessage:i,isSyncingEnded:o,needSync:a})):Zs.log("".concat(this._className,".onMessage unknown eventItem:").concat(s))}}}},{key:"_filterMessageFromIMOpenPush",value:function(e){var t=e.head,n=e.body,r=t.servcmd,i=!1;if(fc(r)||(i=r.includes(ts.NAME.IM_CONFIG_MANAGER)||r.includes(ts.NAME.OVERLOAD_PUSH)||r.includes(ts.NAME.STAT_SERVICE)),!i)return!0;if(r.includes(ts.CMD.PUSHED_CLOUD_CONTROL_CONFIG))this._sessionModule.getModule(Sl).onPushedCloudControlConfig(n);else if(r.includes(ts.CMD.PUSHED_COMMERCIAL_CONFIG))this._sessionModule.getModule(Cl).onPushedConfig(n);else if(r.includes(ts.CMD.OVERLOAD_NOTIFY))this._sessionModule.onPushedServerOverload(n);else if(r.includes(ts.CMD.KICK_OTHER)){var o=Date.now();this._sessionModule.reLoginOnKickOther();var a=new dh(yh),s=this._sessionModule.getModule(nl).getLastWsHelloTs(),c=o-s;a.setMessage("last wshello time:".concat(s," diff:").concat(c,"ms")).setNetworkType(this._sessionModule.getNetworkType()).end()}return!1}}]),e}(),Vb=[{cmd:ts.CMD.GET_GROUP_INFO,interval:1,count:20},{cmd:ts.CMD.SET_GROUP_ATTRIBUTES,interval:5,count:10},{cmd:ts.CMD.MODIFY_GROUP_ATTRIBUTES,interval:5,count:10},{cmd:ts.CMD.DELETE_GROUP_ATTRIBUTES,interval:5,count:10},{cmd:ts.CMD.CLEAR_GROUP_ATTRIBUTES,interval:5,count:10},{cmd:ts.CMD.GET_GROUP_ATTRIBUTES,interval:5,count:20},{cmd:ts.CMD.SET_ALL_MESSAGE_READ,interval:1,count:1}],jb=function(e){Tn(n,e);var t=Nn(n);function n(e){var r;return Sn(this,n),(r=t.call(this,e))._className="SessionModule",r._platform=r.getPlatform(),r._protocolHandler=new Ub(Ln(r)),r._messageDispatcher=new Gb(Ln(r)),r._commandFrequencyLimitMap=new Map,r._commandRequestInfoMap=new Map,r._serverOverloadInfoMap=new Map,r._init(),r.getInnerEmitterInstance().on(Bm,r._onCloudConfigUpdated,Ln(r)),r}return wn(n,[{key:"_init",value:function(){this._updateCommandFrequencyLimitMap(Vb)}},{key:"_onCloudConfigUpdated",value:function(){var e=this.getCloudConfig("cmd_frequency_limit");fc(e)||(e=JSON.parse(e),this._updateCommandFrequencyLimitMap(e))}},{key:"_updateCommandFrequencyLimitMap",value:function(e){var t=this;e.forEach((function(e){t._commandFrequencyLimitMap.set(e.cmd,{interval:e.interval,count:e.count})}))}},{key:"updateProtocolConfig",value:function(){this._protocolHandler.update()}},{key:"request",value:function(e){Zs.debug("".concat(this._className,".request options:"),e);var t=e.protocolName,n=e.tjgID;if(!this._protocolHandler.has(t))return Zs.warn("".concat(this._className,".request unknown protocol:").concat(t)),Am({code:Yd.CANNOT_FIND_PROTOCOL,message:Jd.CANNOT_FIND_PROTOCOL});var r=this.getProtocolData(e),i=r.head.servcmd;if(this._isFrequencyOverLimit(i))return Am({code:Yd.OVER_FREQUENCY_LIMIT,message:Jd.OVER_FREQUENCY_LIMIT});if(this._isServerOverload(i))return Am({code:Yd.OPEN_SERVICE_OVERLOAD_ERROR,message:Jd.OPEN_SERVICE_OVERLOAD_ERROR});Jc(n)||(r.head.tjgID=n);var o=this.getModule(_l);return Fb.includes(t)?o.simplySend(r):o.send(r)}},{key:"getKeyMap",value:function(e){return this._protocolHandler.getKeyMap(e)}},{key:"genCommonHead",value:function(){var e=this.getModule(ll);return{ver:"v4",platform:this._platform,websdkappid:Ka,websdkversion:$a,a2:e.getA2Key()||void 0,tinyid:e.getTinyID()||void 0,status_instid:e.getStatusInstanceID(),sdkappid:e.getSDKAppID(),contenttype:e.getContentType(),reqtime:0,identifier:e.getA2Key()?void 0:e.getUserID(),usersig:e.getA2Key()?void 0:e.getUserSig(),sdkability:51,tjgID:""}}},{key:"genCosSpecifiedHead",value:function(){var e=this.getModule(ll);return{ver:"v4",platform:this._platform,websdkappid:Ka,websdkversion:$a,sdkappid:e.getSDKAppID(),contenttype:e.getContentType(),reqtime:0,identifier:e.getUserID(),usersig:e.getUserSig(),status_instid:e.getStatusInstanceID(),sdkability:51}}},{key:"genSSOReportHead",value:function(){var e=this.getModule(ll);return{ver:"v4",platform:this._platform,websdkappid:Ka,websdkversion:$a,sdkappid:e.getSDKAppID(),contenttype:"",reqtime:0,identifier:"",usersig:"",status_instid:e.getStatusInstanceID(),sdkability:51}}},{key:"getProtocolData",value:function(e){return this._protocolHandler.getProtocolData(e)}},{key:"onErrorCodeNotZero",value:function(e){var t=e.errorCode;if(t===Yd.HELLO_ANSWER_KICKED_OUT){var n=e.kickType,r=e.newInstanceInfo,i=void 0===r?{}:r;1===n?this.onMultipleAccountKickedOut(i):2===n&&this.onMultipleDeviceKickedOut(i)}t!==Yd.MESSAGE_A2KEY_EXPIRED&&t!==Yd.ACCOUNT_A2KEY_EXPIRED||(this._onUserSigExpired(),this.getModule(_l).reConnect())}},{key:"onMessage",value:function(e){var t=e.body,n=t.needAck,r=void 0===n?0:n,i=t.sessionData;1===r&&this._sendACK(i),this._messageDispatcher.onMessage(e)}},{key:"onReconnected",value:function(){this._reLoginOnReconnected()}},{key:"reLoginOnKickOther",value:function(){Zs.log("".concat(this._className,".reLoginOnKickOther")),this._reLogin()}},{key:"_reLoginOnReconnected",value:function(){Zs.log("".concat(this._className,"._reLoginOnReconnected")),this._reLogin()}},{key:"_reLogin",value:function(){var e=this;this.isLoggedIn()&&this.request({protocolName:Tl}).then((function(t){var n=t.data.instanceID;e.getModule(ll).setStatusInstanceID(n),Zs.log("".concat(e._className,"._reLogin ok. start to sync unread messages")),e.getModule(vl).startSyncOnReconnected(),e.getModule(wl).startPull(),e.getModule(al).updateLocalMainSequenceOnReconnected()}))}},{key:"onMultipleAccountKickedOut",value:function(e){this.getModule(nl).onMultipleAccountKickedOut(e)}},{key:"onMultipleDeviceKickedOut",value:function(e){this.getModule(nl).onMultipleDeviceKickedOut(e)}},{key:"_onUserSigExpired",value:function(){this.getModule(nl).onUserSigExpired()}},{key:"_sendACK",value:function(e){this.request({protocolName:Vd,requestData:{sessionData:e}})}},{key:"_isFrequencyOverLimit",value:function(e){var t=e.split(".")[1];if(!this._commandFrequencyLimitMap.has(t))return!1;if(!this._commandRequestInfoMap.has(t))return this._commandRequestInfoMap.set(t,{startTime:Date.now(),requestCount:1}),!1;var n=this._commandFrequencyLimitMap.get(t),r=n.count,i=n.interval,o=this._commandRequestInfoMap.get(t),a=o.startTime,s=o.requestCount;if(Date.now()-a>1e3*i)return this._commandRequestInfoMap.set(t,{startTime:Date.now(),requestCount:1}),!1;s+=1,this._commandRequestInfoMap.set(t,{startTime:a,requestCount:s});var c=!1;return s>r&&(c=!0),c}},{key:"_isServerOverload",value:function(e){if(!this._serverOverloadInfoMap.has(e))return!1;var t=this._serverOverloadInfoMap.get(e),n=t.overloadTime,r=t.waitingTime,i=!1;return Date.now()-n<=1e3*r?i=!0:(this._serverOverloadInfoMap.delete(e),i=!1),i}},{key:"onPushedServerOverload",value:function(e){var t=e.overloadCommand,n=e.waitingTime;this._serverOverloadInfoMap.set(t,{overloadTime:Date.now(),waitingTime:n}),Zs.warn("".concat(this._className,".onPushedServerOverload waitingTime:").concat(n,"s"))}},{key:"reset",value:function(){Zs.log("".concat(this._className,".reset")),this._updateCommandFrequencyLimitMap(Vb),this._commandRequestInfoMap.clear(),this._serverOverloadInfoMap.clear()}}]),n}(Ml),Bb=function(e){Tn(n,e);var t=Nn(n);function n(e){var r;return Sn(this,n),(r=t.call(this,e))._className="MessageLossDetectionModule",r._maybeLostSequencesMap=new Map,r}return wn(n,[{key:"onMessageMaybeLost",value:function(e,t,n){this._maybeLostSequencesMap.has(e)||this._maybeLostSequencesMap.set(e,[]);for(var r=this._maybeLostSequencesMap.get(e),i=0;i<n;i++)r.push(t+i);Zs.debug("".concat(this._className,".onMessageMaybeLost. maybeLostSequences:").concat(r))}},{key:"detectMessageLoss",value:function(e,t){var n=this._maybeLostSequencesMap.get(e);if(!Jc(n)&&!Jc(t)){var r=t.filter((function(e){return-1!==n.indexOf(e)}));if(Zs.debug("".concat(this._className,".detectMessageLoss. matchedSequences:").concat(r)),n.length===r.length)Zs.info("".concat(this._className,".detectMessageLoss no message loss. conversationID:").concat(e));else{var i,o=n.filter((function(e){return-1===r.indexOf(e)})),a=o.length;a<=5?i=e+"-"+o.join("-"):(o.sort((function(e,t){return e-t})),i=e+" start:"+o[0]+" end:"+o[a-1]+" count:"+a),new dh(Df).setMessage(i).setNetworkType(this.getNetworkType()).setLevel("warning").end(),Zs.warn("".concat(this._className,".detectMessageLoss message loss detected. conversationID:").concat(e," lostSequences:").concat(o))}n.length=0}}},{key:"reset",value:function(){Zs.log("".concat(this._className,".reset")),this._maybeLostSequencesMap.clear()}}]),n}(Ml),zb=function(e){Tn(n,e);var t=Nn(n);function n(e){var r;return Sn(this,n),(r=t.call(this,e))._className="CloudControlModule",r._cloudConfig=new Map,r._expiredTime=0,r._version=0,r._isFetching=!1,r}return wn(n,[{key:"getCloudConfig",value:function(e){return fc(e)?this._cloudConfig:this._cloudConfig.has(e)?this._cloudConfig.get(e):void 0}},{key:"_canFetchConfig",value:function(){return this.isLoggedIn()&&!this._isFetching&&Date.now()>=this._expiredTime}},{key:"fetchConfig",value:function(){var e=this,t=this._canFetchConfig();if(Zs.log("".concat(this._className,".fetchConfig canFetchConfig:").concat(t)),t){var n=new dh(Gf),r=this.getModule(ll).getSDKAppID();this._isFetching=!0,this.request({protocolName:Hd,requestData:{SDKAppID:r,version:this._version}}).then((function(t){e._isFetching=!1,n.setMessage("version:".concat(e._version," newVersion:").concat(t.data.version," config:").concat(t.data.cloudControlConfig)).setNetworkType(e.getNetworkType()).end(),Zs.log("".concat(e._className,".fetchConfig ok")),e._parseCloudControlConfig(t.data)})).catch((function(t){e._isFetching=!1,e.probeNetwork().then((function(e){var r=Un(e,2),i=r[0],o=r[1];n.setError(t,i,o).end()})),Zs.log("".concat(e._className,".fetchConfig failed. error:"),t),e._setExpiredTimeOnResponseError(12e4)}))}}},{key:"onPushedCloudControlConfig",value:function(e){Zs.log("".concat(this._className,".onPushedCloudControlConfig")),new dh(Vf).setNetworkType(this.getNetworkType()).setMessage("newVersion:".concat(e.version," config:").concat(e.cloudControlConfig)).end(),this._parseCloudControlConfig(e)}},{key:"onCheckTimer",value:function(e){this._canFetchConfig()&&this.fetchConfig()}},{key:"_parseCloudControlConfig",value:function(e){var t=this,n="".concat(this._className,"._parseCloudControlConfig"),r=e.errorCode,i=e.errorMessage,o=e.cloudControlConfig,a=e.version,s=e.expiredTime;if(0===r){if(this._version!==a){var c=null;try{c=JSON.parse(o)}catch(aS){Zs.error("".concat(n," JSON parse error:").concat(o))}c&&(this._cloudConfig.clear(),Object.keys(c).forEach((function(e){t._cloudConfig.set(e,c[e])})),this._version=a,this.emitInnerEvent(Bm))}this._expiredTime=Date.now()+1e3*s}else fc(r)?(Zs.log("".concat(n," failed. Invalid message format:"),e),this._setExpiredTimeOnResponseError(36e5)):(Zs.error("".concat(n," errorCode:").concat(r," errorMessage:").concat(i)),this._setExpiredTimeOnResponseError(12e4))}},{key:"_setExpiredTimeOnResponseError",value:function(e){this._expiredTime=Date.now()+e}},{key:"reset",value:function(){Zs.log("".concat(this._className,".reset")),this._cloudConfig.clear(),this._expiredTime=0,this._version=0,this._isFetching=!1}}]),n}(Ml),Hb=function(e){Tn(n,e);var t=Nn(n);function n(e){var r;return Sn(this,n),(r=t.call(this,e))._className="PullGroupMessageModule",r._remoteLastMessageSequenceMap=new Map,r.PULL_LIMIT_COUNT=15,r}return wn(n,[{key:"startPull",value:function(){var e=this,t=this._getNeedPullConversationList();this._getRemoteLastMessageSequenceList().then((function(){var n=e.getModule(ul);t.forEach((function(t){var r=t.conversationID,i=r.replace(Kn.CONV_GROUP,""),o=n.getGroupLocalLastMessageSequence(r),a=e._remoteLastMessageSequenceMap.get(i)||0,s=a-o;Zs.log("".concat(e._className,".startPull groupID:").concat(i," localLastMessageSequence:").concat(o," ")+"remoteLastMessageSequence:".concat(a," diff:").concat(s)),o>0&&s>=1&&s<300&&e._pullMissingMessage({groupID:i,localLastMessageSequence:o,remoteLastMessageSequence:a,diff:s})}))}))}},{key:"_getNeedPullConversationList",value:function(){return this.getModule(ul).getLocalConversationList().filter((function(e){return e.type===Kn.CONV_GROUP&&e.groupProfile.type!==Kn.GRP_AVCHATROOM}))}},{key:"_getRemoteLastMessageSequenceList",value:function(){var e=this;return this.getModule(al).getGroupList().then((function(t){for(var n=t.data.groupList,r=void 0===n?[]:n,i=0;i<r.length;i++){var o=r[i],a=o.groupID,s=o.nextMessageSeq;if(o.type!==Kn.GRP_AVCHATROOM){var c=s-1;e._remoteLastMessageSequenceMap.set(a,c)}}}))}},{key:"_pullMissingMessage",value:function(e){var t=this,n=e.localLastMessageSequence,r=e.remoteLastMessageSequence,i=e.diff;e.count=i>this.PULL_LIMIT_COUNT?this.PULL_LIMIT_COUNT:i,e.sequence=i>this.PULL_LIMIT_COUNT?n+this.PULL_LIMIT_COUNT:n+i,this._getGroupMissingMessage(e).then((function(o){o.length>0&&(o[0].sequence+1<=r&&(e.localLastMessageSequence=n+t.PULL_LIMIT_COUNT,e.diff=i-t.PULL_LIMIT_COUNT,t._pullMissingMessage(e)),t.getModule(al).onNewGroupMessage({dataList:o,isInstantMessage:!1}))}))}},{key:"_getGroupMissingMessage",value:function(e){var t=this,n=new dh(ff);return this.request({protocolName:fd,requestData:{groupID:e.groupID,count:e.count,sequence:e.sequence}}).then((function(r){var i=r.data.messageList,o=void 0===i?[]:i;return n.setNetworkType(t.getNetworkType()).setMessage("groupID:".concat(e.groupID," count:").concat(e.count," sequence:").concat(e.sequence," messageList length:").concat(o.length)).end(),o})).catch((function(e){t.probeNetwork().then((function(t){var r=Un(t,2),i=r[0],o=r[1];n.setError(e,i,o).end()}))}))}},{key:"reset",value:function(){Zs.log("".concat(this._className,".reset")),this._remoteLastMessageSequenceMap.clear()}}]),n}(Ml),Wb=function(){function e(){Sn(this,e),this._className="AvgE2EDelay",this._e2eDelayArray=[]}return wn(e,[{key:"addMessageDelay",value:function(e){var t=Ks()-e;t>=0&&this._e2eDelayArray.push(t)}},{key:"_calcAvg",value:function(e,t){if(0===t)return 0;var n=0;return e.forEach((function(e){n+=e})),qc(n/t,1)}},{key:"_calcCountWithLimit",value:function(e){var t=e.e2eDelayArray,n=e.min,r=e.max;return t.filter((function(e){return n<=e&&e<r})).length}},{key:"_calcPercent",value:function(e,t){var n=qc(e/t*100,2);return n>100&&(n=100),n}},{key:"_checkE2EDelayException",value:function(e,t){var n=e.filter((function(e){return e>t}));if(n.length>0){var r=n.length,i=Math.min.apply(Math,Fn(n)),o=Math.max.apply(Math,Fn(n)),a=this._calcAvg(n,r),s=qc(r/e.length*100,2);s>50&&new dh(Hh).setMessage("message e2e delay exception. count:".concat(r," min:").concat(i," max:").concat(o," avg:").concat(a," percent:").concat(s)).setLevel("warning").end()}}},{key:"getStatResult",value:function(){var e=this._e2eDelayArray.length;if(0===e)return null;var t=Fn(this._e2eDelayArray),n=this._calcCountWithLimit({e2eDelayArray:t,min:0,max:1}),r=this._calcCountWithLimit({e2eDelayArray:t,min:1,max:3}),i=this._calcPercent(n,e),o=this._calcPercent(r,e),a=this._calcAvg(t,e);return this._checkE2EDelayException(t,3),t.length=0,this.reset(),{totalCount:e,countLessThan1Second:n,percentOfCountLessThan1Second:i,countLessThan3Second:r,percentOfCountLessThan3Second:o,avgDelay:a}}},{key:"reset",value:function(){this._e2eDelayArray.length=0}}]),e}(),qb=function(){function e(){Sn(this,e),this._className="AvgRTT",this._requestCount=0,this._rttArray=[]}return wn(e,[{key:"addRequestCount",value:function(){this._requestCount+=1}},{key:"addRTT",value:function(e){this._rttArray.push(e)}},{key:"_calcTotalCount",value:function(){return this._requestCount}},{key:"_calcRTTCount",value:function(e){return e.length}},{key:"_calcSuccessRateOfRequest",value:function(e,t){if(0===t)return 0;var n=qc(e/t*100,2);return n>100&&(n=100),n}},{key:"_calcAvg",value:function(e,t){if(0===t)return 0;var n=0;return e.forEach((function(e){n+=e})),parseInt(n/t)}},{key:"_calcMax",value:function(){return Math.max.apply(Math,Fn(this._rttArray))}},{key:"_calcMin",value:function(){return Math.min.apply(Math,Fn(this._rttArray))}},{key:"getStatResult",value:function(){var e=this._calcTotalCount(),t=Fn(this._rttArray);if(0===e)return null;var n=this._calcRTTCount(t),r=this._calcSuccessRateOfRequest(n,e),i=this._calcAvg(t,n);return Zs.log("".concat(this._className,".getStatResult max:").concat(this._calcMax()," min:").concat(this._calcMin()," avg:").concat(i)),this.reset(),{totalCount:e,rttCount:n,successRateOfRequest:r,avgRTT:i}}},{key:"reset",value:function(){this._requestCount=0,this._rttArray.length=0}}]),e}(),$b=function(){function e(){Sn(this,e),this._map=new Map}return wn(e,[{key:"initMap",value:function(e){var t=this;e.forEach((function(e){t._map.set(e,{totalCount:0,successCount:0,failedCountOfUserSide:0,costArray:[],fileSizeArray:[]})}))}},{key:"addTotalCount",value:function(e){return!(fc(e)||!this._map.has(e))&&(this._map.get(e).totalCount+=1,!0)}},{key:"addSuccessCount",value:function(e){return!(fc(e)||!this._map.has(e))&&(this._map.get(e).successCount+=1,!0)}},{key:"addFailedCountOfUserSide",value:function(e){return!(fc(e)||!this._map.has(e))&&(this._map.get(e).failedCountOfUserSide+=1,!0)}},{key:"addCost",value:function(e,t){return!(fc(e)||!this._map.has(e))&&(this._map.get(e).costArray.push(t),!0)}},{key:"addFileSize",value:function(e,t){return!(fc(e)||!this._map.has(e))&&(this._map.get(e).fileSizeArray.push(t),!0)}},{key:"_calcSuccessRateOfBusiness",value:function(e){if(fc(e)||!this._map.has(e))return-1;var t=this._map.get(e),n=qc(t.successCount/t.totalCount*100,2);return n>100&&(n=100),n}},{key:"_calcSuccessRateOfPlatform",value:function(e){if(fc(e)||!this._map.has(e))return-1;var t=this._map.get(e),n=this._calcSuccessCountOfPlatform(e)/t.totalCount*100;return(n=qc(n,2))>100&&(n=100),n}},{key:"_calcTotalCount",value:function(e){return fc(e)||!this._map.has(e)?-1:this._map.get(e).totalCount}},{key:"_calcSuccessCountOfBusiness",value:function(e){return fc(e)||!this._map.has(e)?-1:this._map.get(e).successCount}},{key:"_calcSuccessCountOfPlatform",value:function(e){if(fc(e)||!this._map.has(e))return-1;var t=this._map.get(e);return t.successCount+t.failedCountOfUserSide}},{key:"_calcAvg",value:function(e){return fc(e)||!this._map.has(e)?-1:e===rh?this._calcAvgSpeed(e):this._calcAvgCost(e)}},{key:"_calcAvgCost",value:function(e){var t=this._map.get(e).costArray.length;if(0===t)return 0;var n=0;return this._map.get(e).costArray.forEach((function(e){n+=e})),parseInt(n/t)}},{key:"_calcAvgSpeed",value:function(e){var t=0,n=0;return this._map.get(e).costArray.forEach((function(e){t+=e})),this._map.get(e).fileSizeArray.forEach((function(e){n+=e})),parseInt(1e3*n/t)}},{key:"getStatResult",value:function(e){var t=this._calcTotalCount(e);if(0===t)return null;var n=this._calcSuccessCountOfBusiness(e),r=this._calcSuccessRateOfBusiness(e),i=this._calcSuccessCountOfPlatform(e),o=this._calcSuccessRateOfPlatform(e),a=this._calcAvg(e);return this.reset(e),{totalCount:t,successCountOfBusiness:n,successRateOfBusiness:r,successCountOfPlatform:i,successRateOfPlatform:o,avgValue:a}}},{key:"reset",value:function(e){fc(e)?this._map.clear():this._map.set(e,{totalCount:0,successCount:0,failedCountOfUserSide:0,costArray:[],fileSizeArray:[]})}}]),e}(),Kb=function(){function e(){Sn(this,e),this._lastMap=new Map,this._currentMap=new Map}return wn(e,[{key:"initMap",value:function(e){var t=this;e.forEach((function(e){t._lastMap.set(e,new Map),t._currentMap.set(e,new Map)}))}},{key:"addMessageSequence",value:function(e){var t=e.key,n=e.message;if(fc(t)||!this._lastMap.has(t)||!this._currentMap.has(t))return!1;var r=n.conversationID,i=n.sequence,o=r.replace(Kn.CONV_GROUP,"");if(0===this._lastMap.get(t).size)this._addCurrentMap(e);else if(this._lastMap.get(t).has(o)){var a=this._lastMap.get(t).get(o),s=a.length-1;i>a[0]&&i<a[s]?(a.push(i),a.sort(),this._lastMap.get(t).set(o,a)):this._addCurrentMap(e)}else this._addCurrentMap(e);return!0}},{key:"_addCurrentMap",value:function(e){var t=e.key,n=e.message,r=n.conversationID,i=n.sequence,o=r.replace(Kn.CONV_GROUP,"");this._currentMap.get(t).has(o)||this._currentMap.get(t).set(o,[]),this._currentMap.get(t).get(o).push(i)}},{key:"_copyData",value:function(e){if(!fc(e)){this._lastMap.set(e,new Map);var t,n=this._lastMap.get(e),r=Hn(this._currentMap.get(e));try{for(r.s();!(t=r.n()).done;){var i=Un(t.value,2),o=i[0],a=i[1];n.set(o,a)}}catch(c){r.e(c)}finally{r.f()}n=null,this._currentMap.set(e,new Map)}}},{key:"getStatResult",value:function(e){if(fc(this._currentMap.get(e))||fc(this._lastMap.get(e)))return null;if(0===this._lastMap.get(e).size)return this._copyData(e),null;var t=0,n=0;if(this._lastMap.get(e).forEach((function(e,r){var i=Fn(e.values()),o=i.length,a=i[o-1]-i[0]+1;t+=a,n+=o})),0===t)return null;var r=qc(n/t*100,2);return r>100&&(r=100),this._copyData(e),{totalCount:t,successCountOfMessageReceived:n,successRateOfMessageReceived:r}}},{key:"reset",value:function(){this._currentMap.clear(),this._lastMap.clear()}}]),e}(),Yb=function(e){Tn(n,e);var t=Nn(n);function n(e){var r;Sn(this,n),(r=t.call(this,e))._className="QualityStatModule",r.TAG="im-ssolog-quality-stat",r.reportIndex=0,r.wholePeriod=!1,r._qualityItems=[Xd,Zd,Qd,eh,th,nh,rh,ih,oh,ah],r._messageSentItems=[Qd,eh,th,nh,rh],r._messageReceivedItems=[ih,oh,ah],r.REPORT_INTERVAL=120,r.REPORT_SDKAPPID_BLACKLIST=[],r.REPORT_TINYID_WHITELIST=[],r._statInfoArr=[],r._avgRTT=new qb,r._avgE2EDelay=new Wb,r._rateMessageSent=new $b,r._rateMessageReceived=new Kb;var i=r.getInnerEmitterInstance();return i.on(jm,r._onLoginSuccess,Ln(r)),i.on(Bm,r._onCloudConfigUpdated,Ln(r)),r}return wn(n,[{key:"_onLoginSuccess",value:function(){var e=this;this._rateMessageSent.initMap(this._messageSentItems),this._rateMessageReceived.initMap(this._messageReceivedItems);var t=this.getModule(dl),n=t.getItem(this.TAG,!1);!Jc(n)&&gc(n.forEach)&&(Zs.log("".concat(this._className,"._onLoginSuccess.get quality stat log in storage, nums=").concat(n.length)),n.forEach((function(t){e._statInfoArr.push(t)})),t.removeItem(this.TAG,!1))}},{key:"_onCloudConfigUpdated",value:function(){var e=this.getCloudConfig("q_rpt_interval"),t=this.getCloudConfig("q_rpt_sdkappid_bl"),n=this.getCloudConfig("q_rpt_tinyid_wl");fc(e)||(this.REPORT_INTERVAL=Number(e)),fc(t)||(this.REPORT_SDKAPPID_BLACKLIST=t.split(",").map((function(e){return Number(e)}))),fc(n)||(this.REPORT_TINYID_WHITELIST=n.split(","))}},{key:"onCheckTimer",value:function(e){this.isLoggedIn()&&e%this.REPORT_INTERVAL==0&&(this.wholePeriod=!0,this._report())}},{key:"addRequestCount",value:function(){this._avgRTT.addRequestCount()}},{key:"addRTT",value:function(e){this._avgRTT.addRTT(e)}},{key:"addMessageDelay",value:function(e){this._avgE2EDelay.addMessageDelay(e)}},{key:"addTotalCount",value:function(e){this._rateMessageSent.addTotalCount(e)||Zs.warn("".concat(this._className,".addTotalCount invalid key:"),e)}},{key:"addSuccessCount",value:function(e){this._rateMessageSent.addSuccessCount(e)||Zs.warn("".concat(this._className,".addSuccessCount invalid key:"),e)}},{key:"addFailedCountOfUserSide",value:function(e){this._rateMessageSent.addFailedCountOfUserSide(e)||Zs.warn("".concat(this._className,".addFailedCountOfUserSide invalid key:"),e)}},{key:"addCost",value:function(e,t){this._rateMessageSent.addCost(e,t)||Zs.warn("".concat(this._className,".addCost invalid key or cost:"),e,t)}},{key:"addFileSize",value:function(e,t){this._rateMessageSent.addFileSize(e,t)||Zs.warn("".concat(this._className,".addFileSize invalid key or size:"),e,t)}},{key:"addMessageSequence",value:function(e){this._rateMessageReceived.addMessageSequence(e)||Zs.warn("".concat(this._className,".addMessageSequence invalid key:"),e.key)}},{key:"_getQualityItem",value:function(e){var t={},n=uh[this.getNetworkType()];fc(n)&&(n=8);var r={qualityType:sh[e],timestamp:qs(),networkType:n,extension:""};switch(e){case Xd:t=this._avgRTT.getStatResult();break;case Zd:t=this._avgE2EDelay.getStatResult();break;case Qd:case eh:case th:case nh:case rh:t=this._rateMessageSent.getStatResult(e);break;case ih:case oh:case ah:t=this._rateMessageReceived.getStatResult(e)}return null===t?null:Mn({},r,{},t)}},{key:"_report",value:function(e){var t=this,n=[],r=null;fc(e)?this._qualityItems.forEach((function(e){null!==(r=t._getQualityItem(e))&&(r.reportIndex=t.reportIndex,r.wholePeriod=t.wholePeriod,n.push(r))})):null!==(r=this._getQualityItem(e))&&(r.reportIndex=this.reportIndex,r.wholePeriod=this.wholePeriod,n.push(r)),Zs.debug("".concat(this._className,"._report"),n),this._statInfoArr.length>0&&(n=n.concat(this._statInfoArr),this._statInfoArr=[]);var i=this.getModule(ll),o=i.getSDKAppID(),a=i.getTinyID();$c(this.REPORT_SDKAPPID_BLACKLIST,o)&&!Kc(this.REPORT_TINYID_WHITELIST,a)&&(n=[]),n.length>0&&this._doReport(n)}},{key:"_doReport",value:function(e){var t=this,n={header:Ov(this),quality:e};this.request({protocolName:Nd,requestData:Mn({},n)}).then((function(){t.reportIndex++,t.wholePeriod=!1})).catch((function(n){Zs.warn("".concat(t._className,"._doReport, online:").concat(t.getNetworkType()," error:"),n),t._statInfoArr=t._statInfoArr.concat(e),t._flushAtOnce()}))}},{key:"_flushAtOnce",value:function(){var e=this.getModule(dl),t=e.getItem(this.TAG,!1),n=this._statInfoArr;if(Jc(t))Zs.log("".concat(this._className,"._flushAtOnce count:").concat(n.length)),e.setItem(this.TAG,n,!0,!1);else{var r=n.concat(t);r.length>10&&(r=r.slice(0,10)),Zs.log("".concat(this.className,"._flushAtOnce count:").concat(r.length)),e.setItem(this.TAG,r,!0,!1)}this._statInfoArr=[]}},{key:"reset",value:function(){Zs.log("".concat(this._className,".reset")),this._report(),this.reportIndex=0,this.wholePeriod=!1,this.REPORT_SDKAPPID_BLACKLIST=[],this.REPORT_TINYID_WHITELIST=[],this._avgRTT.reset(),this._avgE2EDelay.reset(),this._rateMessageSent.reset(),this._rateMessageReceived.reset()}}]),n}(Ml),Jb=function(e){Tn(n,e);var t=Nn(n);function n(e){var r;return Sn(this,n),(r=t.call(this,e))._className="WorkerTimerModule",r._isWorkerEnabled=!0,r._workerTimer=null,r._init(),r.getInnerEmitterInstance().on(Bm,r._onCloudConfigUpdated,Ln(r)),r}return wn(n,[{key:"isWorkerEnabled",value:function(){return this._isWorkerEnabled&&Rs}},{key:"startWorkerTimer",value:function(){Zs.log("".concat(this._className,".startWorkerTimer")),this._workerTimer&&this._workerTimer.postMessage("start")}},{key:"stopWorkerTimer",value:function(){Zs.log("".concat(this._className,".stopWorkerTimer")),this._workerTimer&&this._workerTimer.postMessage("stop")}},{key:"_init",value:function(){if(Rs){var e=URL.createObjectURL(new Blob(['let interval = -1;onmessage = function(event) {  if (event.data === "start") {    if (interval > 0) {      clearInterval(interval);    }    interval = setInterval(() => {      postMessage("");    }, 1000)  } else if (event.data === "stop") {    clearInterval(interval);    interval = -1;  }};'],{type:"application/javascript; charset=utf-8"}));this._workerTimer=new Worker(e);var t=this;this._workerTimer.onmessage=function(){t._moduleManager.onCheckTimer()}}}},{key:"_onCloudConfigUpdated",value:function(){var e=this.getCloudConfig("enable_worker");Zs.log("".concat(this._className,"._onCloudConfigUpdated enableWorker:").concat(e)),"1"===e?!this._isWorkerEnabled&&Rs&&(this._isWorkerEnabled=!0,this.startWorkerTimer(),this._moduleManager.onWorkerTimerEnabled()):this._isWorkerEnabled&&Rs&&(this._isWorkerEnabled=!1,this.stopWorkerTimer(),this._moduleManager.onWorkerTimerDisabled())}},{key:"terminate",value:function(){Zs.log("".concat(this._className,".terminate")),this._workerTimer&&(this._workerTimer.terminate(),this._workerTimer=null)}},{key:"reset",value:function(){Zs.log("".concat(this._className,".reset"))}}]),n}(Ml),Xb=function(){function e(){Sn(this,e),this._className="PurchasedFeatureHandler",this._purchasedFeatureMap=new Map}return wn(e,[{key:"isValidPurchaseBits",value:function(e){return e&&"string"==typeof e&&e.length>=1&&e.length<=64&&/[01]{1,64}/.test(e)}},{key:"parsePurchaseBits",value:function(e){var t="".concat(this._className,".parsePurchaseBits");if(this.isValidPurchaseBits(e)){this._purchasedFeatureMap.clear();for(var n=Object.values(ns),r=null,i=e.length-1,o=0;i>=0;i--,o++)r=o<32?new Ha(0,Math.pow(2,o)).toString():new Ha(Math.pow(2,o-32),0).toString(),-1!==n.indexOf(r)&&("1"===e[i]?this._purchasedFeatureMap.set(r,!0):this._purchasedFeatureMap.set(r,!1))}else Zs.warn("".concat(t," invalid purchase bits:").concat(e))}},{key:"hasPurchasedFeature",value:function(e){return!!this._purchasedFeatureMap.get(e)}},{key:"clear",value:function(){this._purchasedFeatureMap.clear()}}]),e}(),Zb=function(e){Tn(n,e);var t=Nn(n);function n(e){var r;return Sn(this,n),(r=t.call(this,e))._className="CommercialConfigModule",r._expiredTime=0,r._isFetching=!1,r._purchasedFeatureHandler=new Xb,r}return wn(n,[{key:"_canFetch",value:function(){return this.isLoggedIn()?!this._isFetching&&Date.now()>=this._expiredTime:(this._expiredTime=Date.now()+2e3,!1)}},{key:"onCheckTimer",value:function(e){this._canFetch()&&this.fetchConfig()}},{key:"fetchConfig",value:function(){var e=this,t=this._canFetch(),n="".concat(this._className,".fetchConfig");if(Zs.log("".concat(n," canFetch:").concat(t)),t){var r=new dh(jf);r.setNetworkType(this.getNetworkType());var i=this.getModule(ll).getSDKAppID();this._isFetching=!0,this.request({protocolName:qd,requestData:{SDKAppID:i}}).then((function(t){r.setMessage("purchaseBits:".concat(t.data.purchaseBits)).end(),Zs.log("".concat(n," ok.")),e._parseConfig(t.data),e._isFetching=!1})).catch((function(t){e.probeNetwork().then((function(e){var n=Un(e,2),i=n[0],o=n[1];r.setError(t,i,o).end()})),e._isFetching=!1}))}}},{key:"onPushedConfig",value:function(e){var t="".concat(this._className,".onPushedConfig");Zs.log("".concat(t)),new dh(Bf).setNetworkType(this.getNetworkType()).setMessage("purchaseBits:".concat(e.purchaseBits)).end(),this._parseConfig(e)}},{key:"_parseConfig",value:function(e){var t="".concat(this._className,"._parseConfig"),n=e.errorCode,r=e.errorMessage,i=e.purchaseBits,o=e.expiredTime;0===n?(this._purchasedFeatureHandler.parsePurchaseBits(i),this._expiredTime=Date.now()+1e3*o):fc(n)?(Zs.log("".concat(t," failed. Invalid message format:"),e),this._setExpiredTimeOnResponseError(36e5)):(Zs.error("".concat(t," errorCode:").concat(n," errorMessage:").concat(r)),this._setExpiredTimeOnResponseError(12e4))}},{key:"_setExpiredTimeOnResponseError",value:function(e){this._expiredTime=Date.now()+e}},{key:"hasPurchasedFeature",value:function(e){return this._purchasedFeatureHandler.hasPurchasedFeature(e)}},{key:"reset",value:function(){Zs.log("".concat(this._className,".reset")),this._expiredTime=0,this._isFetching=!1,this._purchasedFeatureHandler.clear()}}]),n}(Ml),Qb=function(){function e(t){Sn(this,e);var n=new dh(hh);this._className="ModuleManager",this._isReady=!1,this._reason=Yd.USER_NOT_LOGGED_IN,this._startLoginTs=0,this._moduleMap=new Map,this._innerEmitter=null,this._outerEmitter=null,this._checkCount=0,this._checkTimer=-1,this._moduleMap.set(ll,new Tv(this,t)),this._moduleMap.set(Cl,new Zb(this)),this._moduleMap.set(Sl,new zb(this)),this._moduleMap.set(xl,new Jb(this)),this._moduleMap.set(Il,new Yb(this)),this._moduleMap.set(_l,new Nb(this)),this._moduleMap.set(yl,new jb(this)),this._moduleMap.set(nl,new kv(this)),this._moduleMap.set(rl,new zv(this)),this._moduleMap.set(il,new Mv(this)),this._moduleMap.set(ol,new Dm(this)),this._moduleMap.set(ul,new av(this)),this._moduleMap.set(al,new bv(this)),this._moduleMap.set(cl,new xv(this)),this._moduleMap.set(dl,new Av(this)),this._moduleMap.set(hl,new Rv(this)),this._moduleMap.set(fl,new Nv(this)),this._moduleMap.set(pl,new Fv(this)),this._moduleMap.set(gl,new Gv(this)),this._moduleMap.set(ml,new Hv(this)),this._moduleMap.set(vl,new Wv(this)),this._moduleMap.set(bl,new Bb(this)),this._moduleMap.set(wl,new Hb(this)),this._eventThrottleMap=new Map;var r=t.instanceID,i=t.oversea,o=t.SDKAppID,a="instanceID:".concat(r," SDKAppID:").concat(o," host:").concat(Bc()," oversea:").concat(i," inBrowser:").concat(ps," inMiniApp:").concat(fs)+" workerAvailable:".concat(Rs," UserAgent:").concat(vs);dh.bindEventStatModule(this._moduleMap.get(hl)),n.setMessage("".concat(a," ").concat(function(){var e="";if(fs)try{var t=gs.getSystemInfoSync(),n=t.model,r=t.version,i=t.system,o=t.platform,a=t.SDKVersion;e="model:".concat(n," version:").concat(r," system:").concat(i," platform:").concat(o," SDKVersion:").concat(a)}catch(aS){e=""}return e}())).end(),Zs.info("SDK ".concat(a)),this._readyList=void 0,this._ssoLogForReady=null,this._initReadyList()}return wn(e,[{key:"_startTimer",value:function(){var e=this._moduleMap.get(xl),t=e.isWorkerEnabled();Zs.log("".concat(this._className,".startTimer isWorkerEnabled:").concat(t," seed:").concat(this._checkTimer)),t?e.startWorkerTimer():this._startMainThreadTimer()}},{key:"_startMainThreadTimer",value:function(){Zs.log("".concat(this._className,"._startMainThreadTimer")),this._checkTimer<0&&(this._checkTimer=setInterval(this.onCheckTimer.bind(this),1e3))}},{key:"stopTimer",value:function(){var e=this._moduleMap.get(xl),t=e.isWorkerEnabled();Zs.log("".concat(this._className,".stopTimer isWorkerEnabled:").concat(t," seed:").concat(this._checkTimer)),t?e.stopWorkerTimer():this._stopMainThreadTimer()}},{key:"_stopMainThreadTimer",value:function(){Zs.log("".concat(this._className,"._stopMainThreadTimer")),this._checkTimer>0&&(clearInterval(this._checkTimer),this._checkTimer=-1,this._checkCount=0)}},{key:"_stopMainThreadSocket",value:function(){Zs.log("".concat(this._className,"._stopMainThreadSocket"));var e=this._moduleMap.get(_l);e.setIsWorkerEnabled(!0),e.reConnect()}},{key:"_startMainThreadSocket",value:function(){Zs.log("".concat(this._className,"._startMainThreadSocket"));var e=this._moduleMap.get(_l);e.setIsWorkerEnabled(!1),e.reConnect()}},{key:"onWorkerTimerEnabled",value:function(){Zs.log("".concat(this._className,".onWorkerTimerEnabled, disable main thread timer and socket")),this._stopMainThreadTimer(),this._stopMainThreadSocket()}},{key:"onWorkerTimerDisabled",value:function(){Zs.log("".concat(this._className,".onWorkerTimerDisabled, enable main thread timer and socket")),this._startMainThreadTimer(),this._startMainThreadSocket()}},{key:"onCheckTimer",value:function(){this._checkCount+=1;var e,t=Hn(this._moduleMap);try{for(t.s();!(e=t.n()).done;){var n=Un(e.value,2)[1];n.onCheckTimer&&n.onCheckTimer(this._checkCount)}}catch(i){t.e(i)}finally{t.f()}}},{key:"_initReadyList",value:function(){var e=this;this._readyList=[this._moduleMap.get(nl),this._moduleMap.get(ul)],this._readyList.forEach((function(t){t.ready((function(){return e._onModuleReady()}))}))}},{key:"_onModuleReady",value:function(){var e=!0;if(this._readyList.forEach((function(t){t.isReady()||(e=!1)})),e&&!this._isReady){this._isReady=!0,this._outerEmitter.emit($n.SDK_READY);var t=Date.now()-this._startLoginTs;Zs.warn("SDK is ready. cost ".concat(t," ms")),this._startLoginTs=Date.now();var n=this._moduleMap.get(fl).getNetworkType(),r=this._ssoLogForReady.getStartTs()+Ws;this._ssoLogForReady.setNetworkType(n).setMessage(t).start(r).end()}}},{key:"login",value:function(){0===this._startLoginTs&&($s(),this._startLoginTs=Date.now(),this._startTimer(),this._moduleMap.get(fl).start(),this._ssoLogForReady=new dh(fh),this._reason=Yd.LOGGING_IN)}},{key:"onLoginFailed",value:function(){this._startLoginTs=0}},{key:"getOuterEmitterInstance",value:function(){return null===this._outerEmitter&&(this._outerEmitter=new Uv,km(this._outerEmitter),this._outerEmitter._emit=this._outerEmitter.emit,this._outerEmitter.emit=function(e,t){var n=this;if(e===$n.CONVERSATION_LIST_UPDATED||e===$n.FRIEND_LIST_UPDATED||e===$n.GROUP_LIST_UPDATED)if(this._eventThrottleMap.has(e)){var r=Date.now(),i=this._eventThrottleMap.get(e);r-i.last<1e3?(i.timeoutID&&clearTimeout(i.timeoutID),i.timeoutID=setTimeout((function(){i.last=r,n._outerEmitter._emit.apply(n._outerEmitter,[e,{name:e,data:n._getEventData(e)}])}),500)):(i.last=r,this._outerEmitter._emit.apply(this._outerEmitter,[e,{name:e,data:this._getEventData(e)}]))}else this._eventThrottleMap.set(e,{last:Date.now(),timeoutID:-1}),this._outerEmitter._emit.apply(this._outerEmitter,[e,{name:e,data:this._getEventData(e)}]);else this._outerEmitter._emit.apply(this._outerEmitter,[e,{name:e,data:arguments[1]}])}.bind(this)),this._outerEmitter}},{key:"_getEventData",value:function(e){return e===$n.CONVERSATION_LIST_UPDATED?this._moduleMap.get(ul).getLocalConversationList():e===$n.FRIEND_LIST_UPDATED?this._moduleMap.get(sl).getLocalFriendList(!1):e===$n.GROUP_LIST_UPDATED?this._moduleMap.get(al).getLocalGroupList():void 0}},{key:"getInnerEmitterInstance",value:function(){return null===this._innerEmitter&&(this._innerEmitter=new Uv,this._innerEmitter._emit=this._innerEmitter.emit,this._innerEmitter.emit=function(e,t){var n;dc(arguments[1])&&arguments[1].data?(Zs.warn("inner eventData has data property, please check!"),n=[e,{name:arguments[0],data:arguments[1].data}]):n=[e,{name:arguments[0],data:arguments[1]}],this._innerEmitter._emit.apply(this._innerEmitter,n)}.bind(this)),this._innerEmitter}},{key:"hasModule",value:function(e){return this._moduleMap.has(e)}},{key:"getModule",value:function(e){return this._moduleMap.get(e)}},{key:"isReady",value:function(){return this._isReady}},{key:"getNotReadyReason",value:function(){return this._reason}},{key:"setNotReadyReason",value:function(e){this._reason=e}},{key:"onError",value:function(e){Zs.warn("Oops! code:".concat(e.code," message:").concat(e.message)),new dh(zf).setMessage("code:".concat(e.code," message:").concat(e.message)).setNetworkType(this.getModule(fl).getNetworkType()).setLevel("error").end(),this.getOuterEmitterInstance().emit($n.ERROR,e)}},{key:"reset",value:function(){Zs.log("".concat(this._className,".reset")),$s();var e,t=Hn(this._moduleMap);try{for(t.s();!(e=t.n()).done;){var n=Un(e.value,2)[1];n.reset&&n.reset()}}catch(s){t.e(s)}finally{t.f()}this._startLoginTs=0,this._initReadyList(),this._isReady=!1,this.stopTimer(),this._outerEmitter.emit($n.SDK_NOT_READY);var r,i=Hn(this._eventThrottleMap);try{for(i.s();!(r=i.n()).done;){var o=Un(r.value,2)[1];o.timeoutID&&clearTimeout(o.timeoutID)}}catch(s){i.e(s)}finally{i.f()}this._eventThrottleMap.clear()}}]),e}(),eS=function(){function e(){Sn(this,e),this._funcMap=new Map}return wn(e,[{key:"defense",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if("string"!=typeof e)return null;if(0===e.length)return null;if("function"!=typeof t)return null;if(this._funcMap.has(e)&&this._funcMap.get(e).has(t))return this._funcMap.get(e).get(t);this._funcMap.has(e)||this._funcMap.set(e,new Map);var r=null;return this._funcMap.get(e).has(t)?r=this._funcMap.get(e).get(t):(r=this._pack(e,t,n),this._funcMap.get(e).set(t,r)),r}},{key:"defenseOnce",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return"function"!=typeof t?null:this._pack(e,t,n)}},{key:"find",value:function(e,t){return"string"!=typeof e||0===e.length||"function"!=typeof t?null:this._funcMap.has(e)?this._funcMap.get(e).has(t)?this._funcMap.get(e).get(t):(Zs.log("SafetyCallback.find: 找不到 func —— ".concat(e,"/").concat(""!==t.name?t.name:"[anonymous]")),null):(Zs.log("SafetyCallback.find: 找不到 eventName-".concat(e," 对应的 func")),null)}},{key:"delete",value:function(e,t){return"function"==typeof t&&!!this._funcMap.has(e)&&!!this._funcMap.get(e).has(t)&&(this._funcMap.get(e).delete(t),0===this._funcMap.get(e).size&&this._funcMap.delete(e),!0)}},{key:"_pack",value:function(e,t,n){return function(){try{t.apply(n,Array.from(arguments))}catch(s){var r=Object.values($n).indexOf(e);if(-1!==r){var i=Object.keys($n)[r];Zs.warn("接入侧事件 TIM.EVENT.".concat(i," 对应的回调函数逻辑存在问题,请检查!"),s)}var o=new dh(Ff);o.setMessage("eventName:".concat(e)).setMoreMessage(s.message).end()}}}}]),e}(),tS=function(){function e(t){Sn(this,e);var n={SDKAppID:t.SDKAppID,unlimitedAVChatRoom:t.unlimitedAVChatRoom||!1,scene:t.scene||"",oversea:t.oversea||!1,instanceID:jc(),devMode:t.devMode||!1,proxyServer:t.proxyServer||void 0};this._moduleManager=new Qb(n),this._safetyCallbackFactory=new eS}return wn(e,[{key:"onError",value:function(e){this._moduleManager.onError(e)}},{key:"login",value:function(e){return this._moduleManager.login(),this._moduleManager.getModule(nl).login(e)}},{key:"logout",value:function(){var e=this;return this._moduleManager.getModule(nl).logout().then((function(t){return e._moduleManager.reset(),t}))}},{key:"isReady",value:function(){return this._moduleManager.isReady()}},{key:"getNotReadyReason",value:function(){return this._moduleManager.getNotReadyReason()}},{key:"destroy",value:function(){var e=this;return this.logout().finally((function(){e._moduleManager.stopTimer(),e._moduleManager.getModule(xl).terminate(),e._moduleManager.getModule(_l).dealloc();var t=e._moduleManager.getOuterEmitterInstance(),n=e._moduleManager.getModule(ll);t.emit($n.SDK_DESTROY,{SDKAppID:n.getSDKAppID()})}))}},{key:"on",value:function(e,t,n){e===$n.GROUP_SYSTEM_NOTICE_RECEIVED&&Zs.warn("!!!TIM.EVENT.GROUP_SYSTEM_NOTICE_RECEIVED v2.6.0起弃用,为了更好的体验,请在 TIM.EVENT.MESSAGE_RECEIVED 事件回调内接收处理群系统通知,详细请参考:https://web.sdk.qcloud.com/im/doc/zh-cn/Message.html#.GroupSystemNoticePayload"),Zs.debug("on","eventName:".concat(e)),this._moduleManager.getOuterEmitterInstance().on(e,this._safetyCallbackFactory.defense(e,t,n),n)}},{key:"once",value:function(e,t,n){Zs.debug("once","eventName:".concat(e)),this._moduleManager.getOuterEmitterInstance().once(e,this._safetyCallbackFactory.defenseOnce(e,t,n),n||this)}},{key:"off",value:function(e,t,n,r){Zs.debug("off","eventName:".concat(e));var i=this._safetyCallbackFactory.find(e,t);null!==i&&(this._moduleManager.getOuterEmitterInstance().off(e,i,n,r),this._safetyCallbackFactory.delete(e,t))}},{key:"registerPlugin",value:function(e){this._moduleManager.getModule(ml).registerPlugin(e)}},{key:"setLogLevel",value:function(e){e<=0&&(console.log([""," ________  ______  __       __  __       __  ________  _______","|        \\|      \\|  \\     /  \\|  \\  _  |  \\|        \\|       \\"," \\$$$$$$$$ \\$$$$$$| $$\\   /  $$| $$ / \\ | $$| $$$$$$$$| $$$$$$$\\","   | $$     | $$  | $$$\\ /  $$$| $$/  $\\| $$| $$__    | $$__/ $$","   | $$     | $$  | $$$$\\  $$$$| $$  $$$\\ $$| $$  \\   | $$    $$","   | $$     | $$  | $$\\$$ $$ $$| $$ $$\\$$\\$$| $$$$$   | $$$$$$$\\","   | $$    _| $$_ | $$ \\$$$| $$| $$$$  \\$$$$| $$_____ | $$__/ $$","   | $$   |   $$ \\| $$  \\$ | $$| $$$    \\$$$| $$     \\| $$    $$","    \\$$    \\$$$$$$ \\$$      \\$$ \\$$      \\$$ \\$$$$$$$$ \\$$$$$$$","",""].join("\n")),console.log("%cIM 智能客服,随时随地解决您的问题 →_→ https://cloud.tencent.com/act/event/smarty-service?from=im-doc","color:#006eff"),console.log("%c从v2.11.2起,SDK 支持了 WebSocket,小程序需要添加受信域名!升级指引: https://web.sdk.qcloud.com/im/doc/zh-cn/tutorial-02-upgradeguideline.html","color:#ff0000"),console.log(["","参考以下文档,会更快解决问题哦!(#^.^#)\n","SDK 更新日志: https://cloud.tencent.com/document/product/269/38492\n","SDK 接口文档: https://web.sdk.qcloud.com/im/doc/zh-cn/SDK.html\n","常见问题: https://web.sdk.qcloud.com/im/doc/zh-cn/tutorial-01-faq.html\n","反馈问题?戳我提 issue: https://github.com/tencentyun/TIMSDK/issues\n","如果您需要在生产环境关闭上面的日志,请 tim.setLogLevel(1)\n"].join("\n"))),Zs.setLevel(e)}},{key:"createTextMessage",value:function(e){return this._moduleManager.getModule(rl).createTextMessage(e)}},{key:"createTextAtMessage",value:function(e){return this._moduleManager.getModule(rl).createTextMessage(e)}},{key:"createImageMessage",value:function(e){return this._moduleManager.getModule(rl).createImageMessage(e)}},{key:"createAudioMessage",value:function(e){return this._moduleManager.getModule(rl).createAudioMessage(e)}},{key:"createVideoMessage",value:function(e){return this._moduleManager.getModule(rl).createVideoMessage(e)}},{key:"createCustomMessage",value:function(e){return this._moduleManager.getModule(rl).createCustomMessage(e)}},{key:"createFaceMessage",value:function(e){return this._moduleManager.getModule(rl).createFaceMessage(e)}},{key:"createFileMessage",value:function(e){return this._moduleManager.getModule(rl).createFileMessage(e)}},{key:"createLocationMessage",value:function(e){return this._moduleManager.getModule(rl).createLocationMessage(e)}},{key:"createMergerMessage",value:function(e){return this._moduleManager.getModule(rl).createMergerMessage(e)}},{key:"downloadMergerMessage",value:function(e){return e.type!==Kn.MSG_MERGER?Am(new Mm({code:Yd.MESSAGE_MERGER_TYPE_INVALID,message:Jd.MESSAGE_MERGER_TYPE_INVALID})):Jc(e.payload.downloadKey)?Am(new Mm({code:Yd.MESSAGE_MERGER_KEY_INVALID,message:Jd.MESSAGE_MERGER_KEY_INVALID})):this._moduleManager.getModule(rl).downloadMergerMessage(e).catch((function(e){return Am(new Mm({code:Yd.MESSAGE_MERGER_DOWNLOAD_FAIL,message:Jd.MESSAGE_MERGER_DOWNLOAD_FAIL}))}))}},{key:"createForwardMessage",value:function(e){return this._moduleManager.getModule(rl).createForwardMessage(e)}},{key:"sendMessage",value:function(e,t){return e instanceof _m?this._moduleManager.getModule(rl).sendMessageInstance(e,t):Am(new Mm({code:Yd.MESSAGE_SEND_NEED_MESSAGE_INSTANCE,message:Jd.MESSAGE_SEND_NEED_MESSAGE_INSTANCE}))}},{key:"callExperimentalAPI",value:function(e,t){return"handleGroupInvitation"===e?this._moduleManager.getModule(al).handleGroupInvitation(t):Am(new Mm({code:Yd.INVALID_OPERATION,message:Jd.INVALID_OPERATION}))}},{key:"revokeMessage",value:function(e){return this._moduleManager.getModule(rl).revokeMessage(e)}},{key:"resendMessage",value:function(e){return this._moduleManager.getModule(rl).resendMessage(e)}},{key:"deleteMessage",value:function(e){return this._moduleManager.getModule(rl).deleteMessage(e)}},{key:"getMessageList",value:function(e){return this._moduleManager.getModule(ul).getMessageList(e)}},{key:"sendMessageReadReceipt",value:function(e){return this._moduleManager.getModule(al).sendReadReceipt(e)}},{key:"getMessageReadReceiptList",value:function(e){return this._moduleManager.getModule(al).getReadReceiptList(e)}},{key:"getGroupMessageReadMemberList",value:function(e){return this._moduleManager.getModule(al).getReadReceiptDetail(e)}},{key:"findMessage",value:function(e){return this._moduleManager.getModule(ul).findMessage(e)}},{key:"setMessageRead",value:function(e){return this._moduleManager.getModule(ul).setMessageRead(e)}},{key:"getConversationList",value:function(e){return this._moduleManager.getModule(ul).getConversationList(e)}},{key:"getConversationProfile",value:function(e){return this._moduleManager.getModule(ul).getConversationProfile(e)}},{key:"deleteConversation",value:function(e){return this._moduleManager.getModule(ul).deleteConversation(e)}},{key:"pinConversation",value:function(e){return this._moduleManager.getModule(ul).pinConversation(e)}},{key:"setAllMessageRead",value:function(e){return this._moduleManager.getModule(ul).setAllMessageRead(e)}},{key:"setMessageRemindType",value:function(e){return this._moduleManager.getModule(ul).setMessageRemindType(e)}},{key:"getMyProfile",value:function(){return this._moduleManager.getModule(il).getMyProfile()}},{key:"getUserProfile",value:function(e){return this._moduleManager.getModule(il).getUserProfile(e)}},{key:"updateMyProfile",value:function(e){return this._moduleManager.getModule(il).updateMyProfile(e)}},{key:"getBlacklist",value:function(){return this._moduleManager.getModule(il).getLocalBlacklist()}},{key:"addToBlacklist",value:function(e){return this._moduleManager.getModule(il).addBlacklist(e)}},{key:"removeFromBlacklist",value:function(e){return this._moduleManager.getModule(il).deleteBlacklist(e)}},{key:"getFriendList",value:function(){var e=this._moduleManager.getModule(sl);return e?e.getLocalFriendList():Am({code:Yd.CANNOT_FIND_MODULE,message:Jd.CANNOT_FIND_MODULE})}},{key:"addFriend",value:function(e){var t=this._moduleManager.getModule(sl);return t?t.addFriend(e):Am({code:Yd.CANNOT_FIND_MODULE,message:Jd.CANNOT_FIND_MODULE})}},{key:"deleteFriend",value:function(e){var t=this._moduleManager.getModule(sl);return t?t.deleteFriend(e):Am({code:Yd.CANNOT_FIND_MODULE,message:Jd.CANNOT_FIND_MODULE})}},{key:"checkFriend",value:function(e){var t=this._moduleManager.getModule(sl);return t?t.checkFriend(e):Am({code:Yd.CANNOT_FIND_MODULE,message:Jd.CANNOT_FIND_MODULE})}},{key:"getFriendProfile",value:function(e){var t=this._moduleManager.getModule(sl);return t?t.getFriendProfile(e):Am({code:Yd.CANNOT_FIND_MODULE,message:Jd.CANNOT_FIND_MODULE})}},{key:"updateFriend",value:function(e){var t=this._moduleManager.getModule(sl);return t?t.updateFriend(e):Am({code:Yd.CANNOT_FIND_MODULE,message:Jd.CANNOT_FIND_MODULE})}},{key:"getFriendApplicationList",value:function(){var e=this._moduleManager.getModule(sl);return e?e.getLocalFriendApplicationList():Am({code:Yd.CANNOT_FIND_MODULE,message:Jd.CANNOT_FIND_MODULE})}},{key:"acceptFriendApplication",value:function(e){var t=this._moduleManager.getModule(sl);return t?t.acceptFriendApplication(e):Am({code:Yd.CANNOT_FIND_MODULE,message:Jd.CANNOT_FIND_MODULE})}},{key:"refuseFriendApplication",value:function(e){var t=this._moduleManager.getModule(sl);return t?t.refuseFriendApplication(e):Am({code:Yd.CANNOT_FIND_MODULE,message:Jd.CANNOT_FIND_MODULE})}},{key:"deleteFriendApplication",value:function(e){var t=this._moduleManager.getModule(sl);return t?t.deleteFriendApplication(e):Am({code:Yd.CANNOT_FIND_MODULE,message:Jd.CANNOT_FIND_MODULE})}},{key:"setFriendApplicationRead",value:function(){var e=this._moduleManager.getModule(sl);return e?e.setFriendApplicationRead():Am({code:Yd.CANNOT_FIND_MODULE,message:Jd.CANNOT_FIND_MODULE})}},{key:"getFriendGroupList",value:function(){var e=this._moduleManager.getModule(sl);return e?e.getLocalFriendGroupList():Am({code:Yd.CANNOT_FIND_MODULE,message:Jd.CANNOT_FIND_MODULE})}},{key:"createFriendGroup",value:function(e){var t=this._moduleManager.getModule(sl);return t?t.createFriendGroup(e):Am({code:Yd.CANNOT_FIND_MODULE,message:Jd.CANNOT_FIND_MODULE})}},{key:"deleteFriendGroup",value:function(e){var t=this._moduleManager.getModule(sl);return t?t.deleteFriendGroup(e):Am({code:Yd.CANNOT_FIND_MODULE,message:Jd.CANNOT_FIND_MODULE})}},{key:"addToFriendGroup",value:function(e){var t=this._moduleManager.getModule(sl);return t?t.addToFriendGroup(e):Am({code:Yd.CANNOT_FIND_MODULE,message:Jd.CANNOT_FIND_MODULE})}},{key:"removeFromFriendGroup",value:function(e){var t=this._moduleManager.getModule(sl);return t?t.removeFromFriendGroup(e):Am({code:Yd.CANNOT_FIND_MODULE,message:Jd.CANNOT_FIND_MODULE})}},{key:"renameFriendGroup",value:function(e){var t=this._moduleManager.getModule(sl);return t?t.renameFriendGroup(e):Am({code:Yd.CANNOT_FIND_MODULE,message:Jd.CANNOT_FIND_MODULE})}},{key:"getGroupList",value:function(e){return this._moduleManager.getModule(al).getGroupList(e)}},{key:"getGroupProfile",value:function(e){return this._moduleManager.getModule(al).getGroupProfile(e)}},{key:"createGroup",value:function(e){return this._moduleManager.getModule(al).createGroup(e)}},{key:"dismissGroup",value:function(e){return this._moduleManager.getModule(al).dismissGroup(e)}},{key:"updateGroupProfile",value:function(e){return this._moduleManager.getModule(al).updateGroupProfile(e)}},{key:"joinGroup",value:function(e){return this._moduleManager.getModule(al).joinGroup(e)}},{key:"quitGroup",value:function(e){return this._moduleManager.getModule(al).quitGroup(e)}},{key:"searchGroupByID",value:function(e){return this._moduleManager.getModule(al).searchGroupByID(e)}},{key:"getGroupOnlineMemberCount",value:function(e){return this._moduleManager.getModule(al).getGroupOnlineMemberCount(e)}},{key:"changeGroupOwner",value:function(e){return this._moduleManager.getModule(al).changeGroupOwner(e)}},{key:"handleGroupApplication",value:function(e){return this._moduleManager.getModule(al).handleGroupApplication(e)}},{key:"initGroupAttributes",value:function(e){return this._moduleManager.getModule(al).initGroupAttributes(e)}},{key:"setGroupAttributes",value:function(e){return this._moduleManager.getModule(al).setGroupAttributes(e)}},{key:"deleteGroupAttributes",value:function(e){return this._moduleManager.getModule(al).deleteGroupAttributes(e)}},{key:"getGroupAttributes",value:function(e){return this._moduleManager.getModule(al).getGroupAttributes(e)}},{key:"getGroupMemberList",value:function(e){return this._moduleManager.getModule(cl).getGroupMemberList(e)}},{key:"getGroupMemberProfile",value:function(e){return this._moduleManager.getModule(cl).getGroupMemberProfile(e)}},{key:"addGroupMember",value:function(e){return this._moduleManager.getModule(cl).addGroupMember(e)}},{key:"deleteGroupMember",value:function(e){return this._moduleManager.getModule(cl).deleteGroupMember(e)}},{key:"setGroupMemberMuteTime",value:function(e){return this._moduleManager.getModule(cl).setGroupMemberMuteTime(e)}},{key:"setGroupMemberRole",value:function(e){return this._moduleManager.getModule(cl).setGroupMemberRole(e)}},{key:"setGroupMemberNameCard",value:function(e){return this._moduleManager.getModule(cl).setGroupMemberNameCard(e)}},{key:"setGroupMemberCustomField",value:function(e){return this._moduleManager.getModule(cl).setGroupMemberCustomField(e)}}]),e}(),nS={login:"login",logout:"logout",destroy:"destroy",on:"on",off:"off",ready:"ready",setLogLevel:"setLogLevel",joinGroup:"joinGroup",quitGroup:"quitGroup",registerPlugin:"registerPlugin",getGroupOnlineMemberCount:"getGroupOnlineMemberCount"};function rS(e,t){if(e.isReady()||void 0!==nS[t])return!0;var n=e.getNotReadyReason(),r="";Object.getOwnPropertyNames(Yd).forEach((function(e){Yd[e]===n&&(r=Jd[e])}));var i={code:n,message:"".concat(r,"导致 sdk not ready。").concat(t," ").concat(Jd.SDK_IS_NOT_READY,",请参考 https://web.sdk.qcloud.com/im/doc/zh-cn/module-EVENT.html#.SDK_READY")};return e.onError(i),i}var iS={},oS={create:function(e){var t=0;if(cc(e.SDKAppID))t=e.SDKAppID;else if(Zs.warn("TIM.create SDKAppID 的类型应该为 Number,请修改!"),t=parseInt(e.SDKAppID),isNaN(t))return Zs.error("TIM.create failed. 解析 SDKAppID 失败,请检查传参!"),null;if(t&&iS[t])return iS[t];Zs.log("TIM.create");var n=new tS(Mn({},e,{SDKAppID:t}));n.on($n.SDK_DESTROY,(function(e){iS[e.data.SDKAppID]=null,delete iS[e.data.SDKAppID]}));var r=function(e){var t=Object.create(null);return Object.keys($u).forEach((function(n){if(e[n]){var r=$u[n],i=new ur;t[r]=function(){var t=Array.from(arguments);return i.use((function(t,r){var i=rS(e,n);return!0===i?r():Am(i)})).use((function(e,t){if(!0===Xc(e,qu[n],r))return t()})).use((function(t,r){return e[n].apply(e,t)})),i.run(t)}}})),t}(n);return iS[t]=r,Zs.log("TIM.create ok"),r}};return oS.TYPES=Kn,oS.EVENT=$n,oS.VERSION="2.18.0",Zs.log("TIM.VERSION: ".concat(oS.VERSION)),oS}))}).call(this,n("c8ba"))},e260:function(e,t,n){"use strict";var r=n("fc6a"),i=n("44d2"),o=n("3f8c"),a=n("69f3"),s=n("9bf2").f,c=n("7dd0"),u=n("c430"),l=n("83ab"),d="Array Iterator",h=a.set,f=a.getterFor(d);e.exports=c(Array,"Array",(function(e,t){h(this,{type:d,target:r(e),index:0,kind:t})}),(function(){var e=f(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");var p=o.Arguments=o.Array;if(i("keys"),i("values"),i("entries"),!u&&l&&"values"!==p.name)try{s(p,"name",{value:"values"})}catch(g){}},e263:function(e,t,n){var r=n("401b"),i=n("4a3f"),o=Math.min,a=Math.max,s=Math.sin,c=Math.cos,u=2*Math.PI,l=r.create(),d=r.create(),h=r.create();function f(e,t,n){if(0!==e.length){var r,i=e[0],s=i[0],c=i[0],u=i[1],l=i[1];for(r=1;r<e.length;r++)i=e[r],s=o(s,i[0]),c=a(c,i[0]),u=o(u,i[1]),l=a(l,i[1]);t[0]=s,t[1]=u,n[0]=c,n[1]=l}}function p(e,t,n,r,i,s){i[0]=o(e,n),i[1]=o(t,r),s[0]=a(e,n),s[1]=a(t,r)}var g=[],m=[];function v(e,t,n,r,s,c,u,l,d,h){var f,p=i.cubicExtrema,v=i.cubicAt,y=p(e,n,s,u,g);for(d[0]=1/0,d[1]=1/0,h[0]=-1/0,h[1]=-1/0,f=0;f<y;f++){var _=v(e,n,s,u,g[f]);d[0]=o(_,d[0]),h[0]=a(_,h[0])}for(y=p(t,r,c,l,m),f=0;f<y;f++){var b=v(t,r,c,l,m[f]);d[1]=o(b,d[1]),h[1]=a(b,h[1])}d[0]=o(e,d[0]),h[0]=a(e,h[0]),d[0]=o(u,d[0]),h[0]=a(u,h[0]),d[1]=o(t,d[1]),h[1]=a(t,h[1]),d[1]=o(l,d[1]),h[1]=a(l,h[1])}function y(e,t,n,r,s,c,u,l){var d=i.quadraticExtremum,h=i.quadraticAt,f=a(o(d(e,n,s),1),0),p=a(o(d(t,r,c),1),0),g=h(e,n,s,f),m=h(t,r,c,p);u[0]=o(e,s,g),u[1]=o(t,c,m),l[0]=a(e,s,g),l[1]=a(t,c,m)}function _(e,t,n,i,o,a,f,p,g){var m=r.min,v=r.max,y=Math.abs(o-a);if(y%u<1e-4&&y>1e-4)return p[0]=e-n,p[1]=t-i,g[0]=e+n,void(g[1]=t+i);if(l[0]=c(o)*n+e,l[1]=s(o)*i+t,d[0]=c(a)*n+e,d[1]=s(a)*i+t,m(p,l,d),v(g,l,d),o%=u,o<0&&(o+=u),a%=u,a<0&&(a+=u),o>a&&!f?a+=u:o<a&&f&&(o+=u),f){var _=a;a=o,o=_}for(var b=0;b<a;b+=Math.PI/2)b>o&&(h[0]=c(b)*n+e,h[1]=s(b)*i+t,m(p,h,p),v(g,h,g))}t.fromPoints=f,t.fromLine=p,t.fromCubic=v,t.fromQuadratic=y,t.fromArc=_},e2cc:function(e,t,n){var r=n("6eeb");e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},e330:function(e,t,n){var r=n("40d5"),i=Function.prototype,o=i.bind,a=i.call,s=r&&o.bind(a,a);e.exports=r?function(e){return e&&s(e)}:function(e){return e&&function(){return a.apply(e,arguments)}}},e391:function(e,t,n){var r=n("577e");e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},e439:function(e,t,n){var r=n("23e7"),i=n("d039"),o=n("fc6a"),a=n("06cf").f,s=n("83ab"),c=i((function(){a(1)})),u=!s||c;r({target:"Object",stat:!0,forced:u,sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(o(e),t)}})},e452:function(e,t,n){"use strict";t.__esModule=!0;var r=r||{};r.Utils=r.Utils||{},r.Utils.focusFirstDescendant=function(e){for(var t=0;t<e.childNodes.length;t++){var n=e.childNodes[t];if(r.Utils.attemptFocus(n)||r.Utils.focusFirstDescendant(n))return!0}return!1},r.Utils.focusLastDescendant=function(e){for(var t=e.childNodes.length-1;t>=0;t--){var n=e.childNodes[t];if(r.Utils.attemptFocus(n)||r.Utils.focusLastDescendant(n))return!0}return!1},r.Utils.attemptFocus=function(e){if(!r.Utils.isFocusable(e))return!1;r.Utils.IgnoreUtilFocusChanges=!0;try{e.focus()}catch(t){}return r.Utils.IgnoreUtilFocusChanges=!1,document.activeElement===e},r.Utils.isFocusable=function(e){if(e.tabIndex>0||0===e.tabIndex&&null!==e.getAttribute("tabIndex"))return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&"ignore"!==e.rel;case"INPUT":return"hidden"!==e.type&&"file"!==e.type;case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},r.Utils.triggerEvent=function(e,t){var n=void 0;n=/^mouse|click/.test(t)?"MouseEvents":/^key/.test(t)?"KeyboardEvent":"HTMLEvents";for(var r=document.createEvent(n),i=arguments.length,o=Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=arguments[a];return r.initEvent.apply(r,[t].concat(o)),e.dispatchEvent?e.dispatchEvent(r):e.fireEvent("on"+t,r),e},r.Utils.keys={tab:9,enter:13,space:32,left:37,up:38,right:39,down:40,esc:27},t.default=r.Utils},e468:function(e,t,n){var r=n("e46b"),i=n("6d8b"),o=n("2f45"),a=o.getDimensionTypeByAxis,s=n("0f99"),c=s.makeSeriesEncodeForAxisCoordSys,u={_baseAxisDim:null,getInitialData:function(e,t){var n,o,s=t.getComponent("xAxis",this.get("xAxisIndex")),u=t.getComponent("yAxis",this.get("yAxisIndex")),l=s.get("type"),d=u.get("type");"category"===l?(e.layout="horizontal",n=s.getOrdinalMeta(),o=!0):"category"===d?(e.layout="vertical",n=u.getOrdinalMeta(),o=!0):e.layout=e.layout||"horizontal";var h=["x","y"],f="horizontal"===e.layout?0:1,p=this._baseAxisDim=h[f],g=h[1-f],m=[s,u],v=m[f].get("type"),y=m[1-f].get("type"),_=e.data;if(_&&o){var b=[];i.each(_,(function(e,t){var n;e.value&&i.isArray(e.value)?(n=e.value.slice(),e.value.unshift(t)):i.isArray(e)?(n=e.slice(),e.unshift(t)):n=e,b.push(n)})),e.data=b}var S=this.defaultValueDimensions,x=[{name:p,type:a(v),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:g,type:a(y),dimsDef:S.slice()}];return r(this,{coordDimensions:x,dimensionsCount:S.length+1,encodeDefaulter:i.curry(c,x,this)})},getBaseAxis:function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis}};t.seriesModelMixin=u},e46b:function(e,t,n){var r=n("b1d4"),i=n("6179"),o=n("6d8b"),a=o.extend,s=o.isArray;function c(e,t,n){t=s(t)&&{coordDimensions:t}||a({},t);var o=e.getSource(),c=r(o,t),u=new i(c,e);return u.initData(o,n),u}e.exports=c},e47b:function(e,t,n){var r=n("e0d3"),i=r.makeInner,o=r.normalizeToArray,a=i();function s(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r].length>t)return e[r];return e[n-1]}var c={clearColorPalette:function(){a(this).colorIdx=0,a(this).colorNameMap={}},getColorFromPalette:function(e,t,n){t=t||this;var r=a(t),i=r.colorIdx||0,c=r.colorNameMap=r.colorNameMap||{};if(c.hasOwnProperty(e))return c[e];var u=o(this.get("color",!0)),l=this.get("colorLayer",!0),d=null!=n&&l?s(l,n):u;if(d=d||u,d&&d.length){var h=d[i];return e&&(c[e]=h),r.colorIdx=(i+1)%d.length,h}}};e.exports=c},e4d1:function(e,t,n){n("6932"),n("3a56"),n("7dcf"),n("3790"),n("2325"),n("2c17"),n("9e87")},e538:function(e,t,n){var r=n("b622");t.f=r},e58c:function(e,t,n){"use strict";var r=n("2ba4"),i=n("fc6a"),o=n("5926"),a=n("07fa"),s=n("a640"),c=Math.min,u=[].lastIndexOf,l=!!u&&1/[1].lastIndexOf(1,-0)<0,d=s("lastIndexOf"),h=l||!d;e.exports=h?function(e){if(l)return r(u,this,arguments)||0;var t=i(this),n=a(t),s=n-1;for(arguments.length>1&&(s=c(s,o(arguments[1]))),s<0&&(s=n+s);s>=0;s--)if(s in t&&t[s]===e)return s||0;return-1}:u},e5cb:function(e,t,n){"use strict";var r=n("d066"),i=n("1a2d"),o=n("9112"),a=n("3a9b"),s=n("d2bb"),c=n("e893"),u=n("7156"),l=n("e391"),d=n("ab36"),h=n("c770"),f=n("b980"),p=n("c430");e.exports=function(e,t,n,g){var m=g?2:1,v=e.split("."),y=v[v.length-1],_=r.apply(null,v);if(_){var b=_.prototype;if(!p&&i(b,"cause")&&delete b.cause,!n)return _;var S=r("Error"),x=t((function(e,t){var n=l(g?t:e,void 0),r=g?new _(e):new _;return void 0!==n&&o(r,"message",n),f&&o(r,"stack",h(r.stack,2)),this&&a(b,this)&&u(r,this,x),arguments.length>m&&d(r,arguments[m]),r}));if(x.prototype=b,"Error"!==y&&(s?s(x,S):c(x,S,{name:!0})),c(x,_),!p)try{b.name!==y&&o(b,"name",y),b.constructor=x}catch(w){}return x}}},e62d:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(){if(i.default.prototype.$isServer)return 0;if(void 0!==a)return a;var e=document.createElement("div");e.className="el-scrollbar__wrap",e.style.visibility="hidden",e.style.width="100px",e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e);var t=e.offsetWidth;e.style.overflow="scroll";var n=document.createElement("div");n.style.width="100%",e.appendChild(n);var r=n.offsetWidth;return e.parentNode.removeChild(e),a=t-r,a};var r=n("2b0e"),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}var a=void 0},e667:function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},e683:function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},e6cd:function(e,t,n){var r=n("6d8b");function i(){var e,t=[],n={};return{add:function(e,i,o,a,s){return r.isString(a)&&(s=a,a=0),!n[e.id]&&(n[e.id]=1,t.push({el:e,target:i,time:o,delay:a,easing:s}),!0)},done:function(t){return e=t,this},start:function(){for(var r=t.length,i=0,o=t.length;i<o;i++){var a=t[i];a.el.animateTo(a.target,a.time,a.delay,a.easing,s)}return this;function s(){r--,r||(t.length=0,n={},e&&e())}}}}t.createWrap=i},e6cf:function(e,t,n){"use strict";var r,i,o,a,s=n("23e7"),c=n("c430"),u=n("da84"),l=n("d066"),d=n("c65b"),h=n("fea9"),f=n("6eeb"),p=n("e2cc"),g=n("d2bb"),m=n("d44e"),v=n("2626"),y=n("59ed"),_=n("1626"),b=n("861d"),S=n("19aa"),x=n("8925"),w=n("2266"),I=n("1c7e"),C=n("4840"),M=n("2cf49").set,T=n("b575"),k=n("cdf9"),E=n("44de"),A=n("f069"),D=n("e667"),O=n("01b4"),R=n("69f3"),L=n("94ca"),P=n("b622"),N=n("6069"),U=n("605d"),F=n("2d00"),G=P("species"),V="Promise",j=R.getterFor(V),B=R.set,z=R.getterFor(V),H=h&&h.prototype,W=h,q=H,$=u.TypeError,K=u.document,Y=u.process,J=A.f,X=J,Z=!!(K&&K.createEvent&&u.dispatchEvent),Q=_(u.PromiseRejectionEvent),ee="unhandledrejection",te="rejectionhandled",ne=0,re=1,ie=2,oe=1,ae=2,se=!1,ce=L(V,(function(){var e=x(W),t=e!==String(W);if(!t&&66===F)return!0;if(c&&!q["finally"])return!0;if(F>=51&&/native code/.test(e))return!1;var n=new W((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))},i=n.constructor={};return i[G]=r,se=n.then((function(){}))instanceof r,!se||!t&&N&&!Q})),ue=ce||!I((function(e){W.all(e)["catch"]((function(){}))})),le=function(e){var t;return!(!b(e)||!_(t=e.then))&&t},de=function(e,t){var n,r,i,o=t.value,a=t.state==re,s=a?e.ok:e.fail,c=e.resolve,u=e.reject,l=e.domain;try{s?(a||(t.rejection===ae&&me(t),t.rejection=oe),!0===s?n=o:(l&&l.enter(),n=s(o),l&&(l.exit(),i=!0)),n===e.promise?u($("Promise-chain cycle")):(r=le(n))?d(r,n,c,u):c(n)):u(o)}catch(h){l&&!i&&l.exit(),u(h)}},he=function(e,t){e.notified||(e.notified=!0,T((function(){var n,r=e.reactions;while(n=r.get())de(n,e);e.notified=!1,t&&!e.rejection&&pe(e)})))},fe=function(e,t,n){var r,i;Z?(r=K.createEvent("Event"),r.promise=t,r.reason=n,r.initEvent(e,!1,!0),u.dispatchEvent(r)):r={promise:t,reason:n},!Q&&(i=u["on"+e])?i(r):e===ee&&E("Unhandled promise rejection",n)},pe=function(e){d(M,u,(function(){var t,n=e.facade,r=e.value,i=ge(e);if(i&&(t=D((function(){U?Y.emit("unhandledRejection",r,n):fe(ee,n,r)})),e.rejection=U||ge(e)?ae:oe,t.error))throw t.value}))},ge=function(e){return e.rejection!==oe&&!e.parent},me=function(e){d(M,u,(function(){var t=e.facade;U?Y.emit("rejectionHandled",t):fe(te,t,e.value)}))},ve=function(e,t,n){return function(r){e(t,r,n)}},ye=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=ie,he(e,!0))},_e=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw $("Promise can't be resolved itself");var r=le(t);r?T((function(){var n={done:!1};try{d(r,t,ve(_e,n,e),ve(ye,n,e))}catch(i){ye(n,i,e)}})):(e.value=t,e.state=re,he(e,!1))}catch(i){ye({done:!1},i,e)}}};if(ce&&(W=function(e){S(this,q),y(e),d(r,this);var t=j(this);try{e(ve(_e,t),ve(ye,t))}catch(n){ye(t,n)}},q=W.prototype,r=function(e){B(this,{type:V,done:!1,notified:!1,parent:!1,reactions:new O,rejection:!1,state:ne,value:void 0})},r.prototype=p(q,{then:function(e,t){var n=z(this),r=J(C(this,W));return n.parent=!0,r.ok=!_(e)||e,r.fail=_(t)&&t,r.domain=U?Y.domain:void 0,n.state==ne?n.reactions.add(r):T((function(){de(r,n)})),r.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new r,t=j(e);this.promise=e,this.resolve=ve(_e,t),this.reject=ve(ye,t)},A.f=J=function(e){return e===W||e===o?new i(e):X(e)},!c&&_(h)&&H!==Object.prototype)){a=H.then,se||(f(H,"then",(function(e,t){var n=this;return new W((function(e,t){d(a,n,e,t)})).then(e,t)}),{unsafe:!0}),f(H,"catch",q["catch"],{unsafe:!0}));try{delete H.constructor}catch(be){}g&&g(H,q)}s({global:!0,wrap:!0,forced:ce},{Promise:W}),m(W,V,!1,!0),v(V),o=l(V),s({target:V,stat:!0,forced:ce},{reject:function(e){var t=J(this);return d(t.reject,void 0,e),t.promise}}),s({target:V,stat:!0,forced:c||ce},{resolve:function(e){return k(c&&this===o?W:this,e)}}),s({target:V,stat:!0,forced:ue},{all:function(e){var t=this,n=J(t),r=n.resolve,i=n.reject,o=D((function(){var n=y(t.resolve),o=[],a=0,s=1;w(e,(function(e){var c=a++,u=!1;s++,d(n,t,e).then((function(e){u||(u=!0,o[c]=e,--s||r(o))}),i)})),--s||r(o)}));return o.error&&i(o.value),n.promise},race:function(e){var t=this,n=J(t),r=n.reject,i=D((function(){var i=y(t.resolve);w(e,(function(e){d(i,t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}})},e772:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=53)}({0:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var c,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(c=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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=c):i&&(c=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(e,t){return c.call(t),l(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},3:function(e,t){e.exports=n("8122")},33:function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-select-dropdown__item",class:{selected:e.itemSelected,"is-disabled":e.disabled||e.groupDisabled||e.limitReached,hover:e.hover},on:{mouseenter:e.hoverItem,click:function(t){return t.stopPropagation(),e.selectOptionClick(t)}}},[e._t("default",[n("span",[e._v(e._s(e.currentLabel))])])],2)},i=[];r._withStripped=!0;var o=n(4),a=n.n(o),s=n(3),c="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},u={mixins:[a.a],name:"ElOption",componentName:"ElOption",inject:["select"],props:{value:{required:!0},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},data:function(){return{index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}},computed:{isObject:function(){return"[object object]"===Object.prototype.toString.call(this.value).toLowerCase()},currentLabel:function(){return this.label||(this.isObject?"":this.value)},currentValue:function(){return this.value||this.label||""},itemSelected:function(){return this.select.multiple?this.contains(this.select.value,this.value):this.isEqual(this.value,this.select.value)},limitReached:function(){return!!this.select.multiple&&(!this.itemSelected&&(this.select.value||[]).length>=this.select.multipleLimit&&this.select.multipleLimit>0)}},watch:{currentLabel:function(){this.created||this.select.remote||this.dispatch("ElSelect","setSelected")},value:function(e,t){var n=this.select,r=n.remote,i=n.valueKey;if(!this.created&&!r){if(i&&"object"===("undefined"===typeof e?"undefined":c(e))&&"object"===("undefined"===typeof t?"undefined":c(t))&&e[i]===t[i])return;this.dispatch("ElSelect","setSelected")}}},methods:{isEqual:function(e,t){if(this.isObject){var n=this.select.valueKey;return Object(s["getValueByPath"])(e,n)===Object(s["getValueByPath"])(t,n)}return e===t},contains:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];if(this.isObject){var n=this.select.valueKey;return e&&e.some((function(e){return Object(s["getValueByPath"])(e,n)===Object(s["getValueByPath"])(t,n)}))}return e&&e.indexOf(t)>-1},handleGroupDisabled:function(e){this.groupDisabled=e},hoverItem:function(){this.disabled||this.groupDisabled||(this.select.hoverIndex=this.select.options.indexOf(this))},selectOptionClick:function(){!0!==this.disabled&&!0!==this.groupDisabled&&this.dispatch("ElSelect","handleOptionClick",[this,!0])},queryChange:function(e){this.visible=new RegExp(Object(s["escapeRegexpString"])(e),"i").test(this.currentLabel)||this.created,this.visible||this.select.filteredOptionsCount--}},created:function(){this.select.options.push(this),this.select.cachedOptions.push(this),this.select.optionsCount++,this.select.filteredOptionsCount++,this.$on("queryChange",this.queryChange),this.$on("handleGroupDisabled",this.handleGroupDisabled)},beforeDestroy:function(){var e=this.select,t=e.selected,n=e.multiple,r=n?t:[t],i=this.select.cachedOptions.indexOf(this),o=r.indexOf(this);i>-1&&o<0&&this.select.cachedOptions.splice(i,1),this.select.onOptionDestroy(this.select.options.indexOf(this))}},l=u,d=n(0),h=Object(d["a"])(l,r,i,!1,null,null,null);h.options.__file="packages/select/src/option.vue";t["a"]=h.exports},4:function(e,t){e.exports=n("d010")},53:function(e,t,n){"use strict";n.r(t);var r=n(33);r["a"].install=function(e){e.component(r["a"].name,r["a"])},t["default"]=r["a"]}})},e7aa:function(e,t,n){var r=n("2306"),i=n("c775"),o=i.getDefaultLabel;function a(e,t,n,i,a,c,u){var l=n.getModel("label"),d=n.getModel("emphasis.label");r.setLabelStyle(e,t,l,d,{labelFetcher:a,labelDataIndex:c,defaultText:o(a.getData(),c),isRectText:!0,autoColor:i}),s(e),s(t)}function s(e,t){"outside"===e.textPosition&&(e.textPosition=t)}t.setLabel=a},e7d2:function(e,t,n){var r=n("4a3f");function i(e,t,n,i,o,a,s,c,u,l,d){if(0===u)return!1;var h=u;if(d>t+h&&d>i+h&&d>a+h&&d>c+h||d<t-h&&d<i-h&&d<a-h&&d<c-h||l>e+h&&l>n+h&&l>o+h&&l>s+h||l<e-h&&l<n-h&&l<o-h&&l<s-h)return!1;var f=r.cubicProjectPoint(e,t,n,i,o,a,s,c,l,d,null);return f<=h/2}t.containStroke=i},e86a:function(e,t,n){var r=n("9850"),i=n("5e76"),o=n("6d8b"),a=o.getContext,s=o.extend,c=o.retrieve2,u=o.retrieve3,l=o.trim,d={},h=0,f=5e3,p=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,g="12px sans-serif",m={};function v(e,t){m[e]=t}function y(e,t){t=t||g;var n=e+":"+t;if(d[n])return d[n];for(var r=(e+"").split("\n"),i=0,o=0,a=r.length;o<a;o++)i=Math.max(D(r[o],t).width,i);return h>f&&(h=0,d={}),h++,d[n]=i,i}function _(e,t,n,r,i,o,a,s){return a?S(e,t,n,r,i,o,a,s):b(e,t,n,r,i,o,s)}function b(e,t,n,i,o,a,s){var c=O(e,t,o,a,s),u=y(e,t);o&&(u+=o[1]+o[3]);var l=c.outerHeight,d=x(0,u,n),h=w(0,l,i),f=new r(d,h,u,l);return f.lineHeight=c.lineHeight,f}function S(e,t,n,i,o,a,s,c){var u=R(e,{rich:s,truncate:c,font:t,textAlign:n,textPadding:o,textLineHeight:a}),l=u.outerWidth,d=u.outerHeight,h=x(0,l,n),f=w(0,d,i);return new r(h,f,l,d)}function x(e,t,n){return"right"===n?e-=t:"center"===n&&(e-=t/2),e}function w(e,t,n){return"middle"===n?e-=t/2:"bottom"===n&&(e-=t),e}function I(e,t,n){var r=t.textPosition,i=t.textDistance,o=n.x,a=n.y;i=i||0;var s=n.height,c=n.width,u=s/2,l="left",d="top";switch(r){case"left":o-=i,a+=u,l="right",d="middle";break;case"right":o+=i+c,a+=u,d="middle";break;case"top":o+=c/2,a-=i,l="center",d="bottom";break;case"bottom":o+=c/2,a+=s+i,l="center";break;case"inside":o+=c/2,a+=u,l="center",d="middle";break;case"insideLeft":o+=i,a+=u,d="middle";break;case"insideRight":o+=c-i,a+=u,l="right",d="middle";break;case"insideTop":o+=c/2,a+=i,l="center";break;case"insideBottom":o+=c/2,a+=s-i,l="center",d="bottom";break;case"insideTopLeft":o+=i,a+=i;break;case"insideTopRight":o+=c-i,a+=i,l="right";break;case"insideBottomLeft":o+=i,a+=s-i,d="bottom";break;case"insideBottomRight":o+=c-i,a+=s-i,l="right",d="bottom";break}return e=e||{},e.x=o,e.y=a,e.textAlign=l,e.textVerticalAlign=d,e}function C(e,t,n){var r={textPosition:e,textDistance:n};return I({},r,t)}function M(e,t,n,r,i){if(!t)return"";var o=(e+"").split("\n");i=T(t,n,r,i);for(var a=0,s=o.length;a<s;a++)o[a]=k(o[a],i);return o.join("\n")}function T(e,t,n,r){r=s({},r),r.font=t;n=c(n,"...");r.maxIterations=c(r.maxIterations,2);var i=r.minChar=c(r.minChar,0);r.cnCharWidth=y("国",t);var o=r.ascCharWidth=y("a",t);r.placeholder=c(r.placeholder,"");for(var a=e=Math.max(0,e-1),u=0;u<i&&a>=o;u++)a-=o;var l=y(n,t);return l>a&&(n="",l=0),a=e-l,r.ellipsis=n,r.ellipsisWidth=l,r.contentWidth=a,r.containerWidth=e,r}function k(e,t){var n=t.containerWidth,r=t.font,i=t.contentWidth;if(!n)return"";var o=y(e,r);if(o<=n)return e;for(var a=0;;a++){if(o<=i||a>=t.maxIterations){e+=t.ellipsis;break}var s=0===a?E(e,i,t.ascCharWidth,t.cnCharWidth):o>0?Math.floor(e.length*i/o):0;e=e.substr(0,s),o=y(e,r)}return""===e&&(e=t.placeholder),e}function E(e,t,n,r){for(var i=0,o=0,a=e.length;o<a&&i<t;o++){var s=e.charCodeAt(o);i+=0<=s&&s<=127?n:r}return o}function A(e){return y("国",e)}function D(e,t){return m.measureText(e,t)}function O(e,t,n,r,i){null!=e&&(e+="");var o=c(r,A(t)),a=e?e.split("\n"):[],s=a.length*o,u=s,l=!0;if(n&&(u+=n[0]+n[2]),e&&i){l=!1;var d=i.outerHeight,h=i.outerWidth;if(null!=d&&u>d)e="",a=[];else if(null!=h)for(var f=T(h-(n?n[1]+n[3]:0),t,i.ellipsis,{minChar:i.minChar,placeholder:i.placeholder}),p=0,g=a.length;p<g;p++)a[p]=k(a[p],f)}return{lines:a,height:s,outerHeight:u,lineHeight:o,canCacheByTextString:l}}function R(e,t){var n={lines:[],width:0,height:0};if(null!=e&&(e+=""),!e)return n;var r,o=p.lastIndex=0;while(null!=(r=p.exec(e))){var a=r.index;a>o&&L(n,e.substring(o,a)),L(n,r[2],r[1]),o=p.lastIndex}o<e.length&&L(n,e.substring(o,e.length));var s=n.lines,l=0,d=0,h=[],f=t.textPadding,g=t.truncate,m=g&&g.outerWidth,v=g&&g.outerHeight;f&&(null!=m&&(m-=f[1]+f[3]),null!=v&&(v-=f[0]+f[2]));for(var _=0;_<s.length;_++){for(var b=s[_],S=0,x=0,w=0;w<b.tokens.length;w++){var I=b.tokens[w],C=I.styleName&&t.rich[I.styleName]||{},T=I.textPadding=C.textPadding,k=I.font=C.font||t.font,E=I.textHeight=c(C.textHeight,A(k));if(T&&(E+=T[0]+T[2]),I.height=E,I.lineHeight=u(C.textLineHeight,t.textLineHeight,E),I.textAlign=C&&C.textAlign||t.textAlign,I.textVerticalAlign=C&&C.textVerticalAlign||"middle",null!=v&&l+I.lineHeight>v)return{lines:[],width:0,height:0};I.textWidth=y(I.text,k);var D=C.textWidth,O=null==D||"auto"===D;if("string"===typeof D&&"%"===D.charAt(D.length-1))I.percentWidth=D,h.push(I),D=0;else{if(O){D=I.textWidth;var R=C.textBackgroundColor,P=R&&R.image;P&&(P=i.findExistImage(P),i.isImageReady(P)&&(D=Math.max(D,P.width*E/P.height)))}var N=T?T[1]+T[3]:0;D+=N;var U=null!=m?m-x:null;null!=U&&U<D&&(!O||U<N?(I.text="",I.textWidth=D=0):(I.text=M(I.text,U-N,k,g.ellipsis,{minChar:g.minChar}),I.textWidth=y(I.text,k),D=I.textWidth+N))}x+=I.width=D,C&&(S=Math.max(S,I.lineHeight))}b.width=x,b.lineHeight=S,l+=S,d=Math.max(d,x)}n.outerWidth=n.width=c(t.textWidth,d),n.outerHeight=n.height=c(t.textHeight,l),f&&(n.outerWidth+=f[1]+f[3],n.outerHeight+=f[0]+f[2]);for(_=0;_<h.length;_++){I=h[_];var F=I.percentWidth;I.width=parseInt(F,10)/100*d}return n}function L(e,t,n){for(var r=""===t,i=t.split("\n"),o=e.lines,a=0;a<i.length;a++){var s=i[a],c={styleName:n,text:s,isLineHolder:!s&&!r};if(a)o.push({tokens:[c]});else{var u=(o[o.length-1]||(o[0]={tokens:[]})).tokens,l=u.length;1===l&&u[0].isLineHolder?u[0]=c:(s||!l||r)&&u.push(c)}}}function P(e){var t=(e.fontSize||e.fontFamily)&&[e.fontStyle,e.fontWeight,(e.fontSize||12)+"px",e.fontFamily||"sans-serif"].join(" ");return t&&l(t)||e.textFont||e.font}m.measureText=function(e,t){var n=a();return n.font=t||g,n.measureText(e)},t.DEFAULT_FONT=g,t.$override=v,t.getWidth=y,t.getBoundingRect=_,t.adjustTextX=x,t.adjustTextY=w,t.calculateTextPosition=I,t.adjustTextPositionOnRect=C,t.truncateText=M,t.getLineHeight=A,t.measureText=D,t.parsePlainText=O,t.parseRichText=R,t.makeFont=P},e887:function(e,t,n){var r=n("6d8b"),i=r.each,o=n("e1fc"),a=n("8918"),s=n("625e"),c=n("e0d3"),u=n("2306"),l=n("f47d"),d=l.createTask,h=n("cccd"),f=c.makeInner(),p=h();function g(){this.group=new o,this.uid=a.getUID("viewChart"),this.renderTask=d({plan:_,reset:b}),this.renderTask.context={view:this}}g.prototype={type:"chart",init:function(e,t){},render:function(e,t,n,r){},highlight:function(e,t,n,r){y(e.getData(),r,"emphasis")},downplay:function(e,t,n,r){y(e.getData(),r,"normal")},remove:function(e,t){this.group.removeAll()},dispose:function(){},incrementalPrepareRender:null,incrementalRender:null,updateTransform:null,filterForExposedEvent:null};var m=g.prototype;function v(e,t,n){if(e&&(e.trigger(t,n),e.isGroup&&!u.isHighDownDispatcher(e)))for(var r=0,i=e.childCount();r<i;r++)v(e.childAt(r),t,n)}function y(e,t,n){var r=c.queryDataIndex(e,t),o=t&&null!=t.highlightKey?u.getHighlightDigit(t.highlightKey):null;null!=r?i(c.normalizeToArray(r),(function(t){v(e.getItemGraphicEl(t),n,o)})):e.eachItemGraphicEl((function(e){v(e,n,o)}))}function _(e){return p(e.model)}function b(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,o=t.pipelineContext.progressiveRender,a=e.view,s=i&&f(i).updateMethod,c=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==c&&a[c](t,n,r,i),S[c]}m.updateView=m.updateLayout=m.updateVisual=function(e,t,n,r){this.render(e,t,n,r)},s.enableClassExtend(g,["dispose"]),s.enableClassManagement(g,{registerWhenExtend:!0}),g.markUpdateMethod=function(e,t){f(e).updateMethod=t};var S={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},x=g;e.exports=x},e893:function(e,t,n){var r=n("1a2d"),i=n("56ef"),o=n("06cf"),a=n("9bf2");e.exports=function(e,t,n){for(var s=i(t),c=a.f,u=o.f,l=0;l<s.length;l++){var d=s[l];r(e,d)||n&&r(n,d)||c(e,d,u(t,d))}}},e8b5:function(e,t,n){var r=n("c6b6");e.exports=Array.isArray||function(e){return"Array"==r(e)}},e91f:function(e,t,n){"use strict";var r=n("ebb5"),i=n("4d64").indexOf,o=r.aTypedArray,a=r.exportTypedArrayMethod;a("indexOf",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},e95a:function(e,t,n){var r=n("b622"),i=n("3f8c"),o=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},e974:function(e,t,n){"use strict";t.__esModule=!0;var r=n("2b0e"),i=a(r),o=n("5128");function a(e){return e&&e.__esModule?e:{default:e}}var s=i.default.prototype.$isServer?function(){}:n("6167"),c=function(e){return e.stopPropagation()};t.default={props:{transformOrigin:{type:[Boolean,String],default:!0},placement:{type:String,default:"bottom"},boundariesPadding:{type:Number,default:5},reference:{},popper:{},offset:{default:0},value:Boolean,visibleArrow:Boolean,arrowOffset:{type:Number,default:35},appendToBody:{type:Boolean,default:!0},popperOptions:{type:Object,default:function(){return{gpuAcceleration:!1}}}},data:function(){return{showPopper:!1,currentPlacement:""}},watch:{value:{immediate:!0,handler:function(e){this.showPopper=e,this.$emit("input",e)}},showPopper:function(e){this.disabled||(e?this.updatePopper():this.destroyPopper(),this.$emit("input",e))}},methods:{createPopper:function(){var e=this;if(!this.$isServer&&(this.currentPlacement=this.currentPlacement||this.placement,/^(top|bottom|left|right)(-start|-end)?$/g.test(this.currentPlacement))){var t=this.popperOptions,n=this.popperElm=this.popperElm||this.popper||this.$refs.popper,r=this.referenceElm=this.referenceElm||this.reference||this.$refs.reference;!r&&this.$slots.reference&&this.$slots.reference[0]&&(r=this.referenceElm=this.$slots.reference[0].elm),n&&r&&(this.visibleArrow&&this.appendArrow(n),this.appendToBody&&document.body.appendChild(this.popperElm),this.popperJS&&this.popperJS.destroy&&this.popperJS.destroy(),t.placement=this.currentPlacement,t.offset=this.offset,t.arrowOffset=this.arrowOffset,this.popperJS=new s(r,n,t),this.popperJS.onCreate((function(t){e.$emit("created",e),e.resetTransformOrigin(),e.$nextTick(e.updatePopper)})),"function"===typeof t.onUpdate&&this.popperJS.onUpdate(t.onUpdate),this.popperJS._popper.style.zIndex=o.PopupManager.nextZIndex(),this.popperElm.addEventListener("click",c))}},updatePopper:function(){var e=this.popperJS;e?(e.update(),e._popper&&(e._popper.style.zIndex=o.PopupManager.nextZIndex())):this.createPopper()},doDestroy:function(e){!this.popperJS||this.showPopper&&!e||(this.popperJS.destroy(),this.popperJS=null)},destroyPopper:function(){this.popperJS&&this.resetTransformOrigin()},resetTransformOrigin:function(){if(this.transformOrigin){var e={top:"bottom",bottom:"top",left:"right",right:"left"},t=this.popperJS._popper.getAttribute("x-placement").split("-")[0],n=e[t];this.popperJS._popper.style.transformOrigin="string"===typeof this.transformOrigin?this.transformOrigin:["top","bottom"].indexOf(t)>-1?"center "+n:n+" center"}},appendArrow:function(e){var t=void 0;if(!this.appended){for(var n in this.appended=!0,e.attributes)if(/^_v-/.test(e.attributes[n].name)){t=e.attributes[n].name;break}var r=document.createElement("div");t&&r.setAttribute(t,""),r.setAttribute("x-arrow",""),r.className="popper__arrow",e.appendChild(r)}}},beforeDestroy:function(){this.doDestroy(!0),this.popperElm&&this.popperElm.parentNode===document.body&&(this.popperElm.removeEventListener("click",c),document.body.removeChild(this.popperElm))},deactivated:function(){this.$options.beforeDestroy[0].call(this)}}},e9c4:function(e,t,n){var r=n("23e7"),i=n("da84"),o=n("d066"),a=n("2ba4"),s=n("e330"),c=n("d039"),u=i.Array,l=o("JSON","stringify"),d=s(/./.exec),h=s("".charAt),f=s("".charCodeAt),p=s("".replace),g=s(1..toString),m=/[\uD800-\uDFFF]/g,v=/^[\uD800-\uDBFF]$/,y=/^[\uDC00-\uDFFF]$/,_=function(e,t,n){var r=h(n,t-1),i=h(n,t+1);return d(v,e)&&!d(y,i)||d(y,e)&&!d(v,r)?"\\u"+g(f(e,0),16):e},b=c((function(){return'"\\udf06\\ud834"'!==l("\udf06\ud834")||'"\\udead"'!==l("\udead")}));l&&r({target:"JSON",stat:!0,forced:b},{stringify:function(e,t,n){for(var r=0,i=arguments.length,o=u(i);r<i;r++)o[r]=arguments[r];var s=a(l,null,o);return"string"==typeof s?p(s,m,_):s}})},e9f9:function(e,t,n){var r=n("4942"),i=n("d3a4"),o=n("6d8b"),a=o.each;function s(e){return parseInt(e,10)}function c(e,t){i.initVML(),this.root=e,this.storage=t;var n=document.createElement("div"),r=document.createElement("div");n.style.cssText="display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;",r.style.cssText="position:absolute;left:0;top:0;",e.appendChild(n),this._vmlRoot=r,this._vmlViewport=n,this.resize();var o=t.delFromStorage,a=t.addToStorage;t.delFromStorage=function(e){o.call(t,e),e&&e.onRemove&&e.onRemove(r)},t.addToStorage=function(e){e.onAdd&&e.onAdd(r),a.call(t,e)},this._firstPaint=!0}function u(e){return function(){r('In IE8.0 VML mode painter not support method "'+e+'"')}}c.prototype={constructor:c,getType:function(){return"vml"},getViewportRoot:function(){return this._vmlViewport},getViewportRootOffset:function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},refresh:function(){var e=this.storage.getDisplayList(!0,!0);this._paintList(e)},_paintList:function(e){for(var t=this._vmlRoot,n=0;n<e.length;n++){var r=e[n];r.invisible||r.ignore?(r.__alreadyNotVisible||r.onRemove(t),r.__alreadyNotVisible=!0):(r.__alreadyNotVisible&&r.onAdd(t),r.__alreadyNotVisible=!1,r.__dirty&&(r.beforeBrush&&r.beforeBrush(),(r.brushVML||r.brush).call(r,t),r.afterBrush&&r.afterBrush())),r.__dirty=!1}this._firstPaint&&(this._vmlViewport.appendChild(t),this._firstPaint=!1)},resize:function(e,t){e=null==e?this._getWidth():e,t=null==t?this._getHeight():t;if(this._width!==e||this._height!==t){this._width=e,this._height=t;var n=this._vmlViewport.style;n.width=e+"px",n.height=t+"px"}},dispose:function(){this.root.innerHTML="",this._vmlRoot=this._vmlViewport=this.storage=null},getWidth:function(){return this._width},getHeight:function(){return this._height},clear:function(){this._vmlViewport&&this.root.removeChild(this._vmlViewport)},_getWidth:function(){var e=this.root,t=e.currentStyle;return(e.clientWidth||s(t.width))-s(t.paddingLeft)-s(t.paddingRight)|0},_getHeight:function(){var e=this.root,t=e.currentStyle;return(e.clientHeight||s(t.height))-s(t.paddingTop)-s(t.paddingBottom)|0}},a(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],(function(e){c.prototype[e]=u(e)}));var l=c;e.exports=l},eabf:function(e,t,n){var r=n("6d8b");function i(e){e&&r.isArray(e.series)&&r.each(e.series,(function(e){r.isObject(e)&&"k"===e.type&&(e.type="candlestick")}))}e.exports=i},eac5:function(e,t,n){var r=n("861d"),i=Math.floor;e.exports=Number.isInteger||function(e){return!r(e)&&isFinite(e)&&i(e)===e}},eaea:function(e,t,n){var r=n("3eba"),i=n("6d8b"),o=n("22d1"),a=n("60e3"),s=n("5f14"),c=n("2b8c"),u=n("e0d3"),l=n("3842"),d=s.mapVisual,h=s.eachVisual,f=i.isArray,p=i.each,g=l.asc,m=l.linearMap,v=i.noop,y=r.extendComponentModel({type:"visualMap",dependencies:["series"],stateList:["inRange","outOfRange"],replacableOptionKeys:["inRange","outOfRange","target","controller","color"],dataBound:[-1/0,1/0],layoutMode:{type:"box",ignoreSize:!0},defaultOption:{show:!0,zlevel:0,z:4,seriesIndex:"all",min:0,max:200,dimension:null,inRange:null,outOfRange:null,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,color:null,formatter:null,text:null,textStyle:{color:"#333"}},init:function(e,t,n){this._dataExtent,this.targetVisuals={},this.controllerVisuals={},this.textStyleModel,this.itemSize,this.mergeDefaultAndTheme(e,n)},optionUpdated:function(e,t){var n=this.option;o.canvasSupported||(n.realtime=!1),!t&&c.replaceVisualOption(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},resetVisual:function(e){var t=this.stateList;e=i.bind(e,this),this.controllerVisuals=c.createVisualMappings(this.option.controller,t,e),this.targetVisuals=c.createVisualMappings(this.option.target,t,e)},getTargetSeriesIndices:function(){var e=this.option.seriesIndex,t=[];return null==e||"all"===e?this.ecModel.eachSeries((function(e,n){t.push(n)})):t=u.normalizeToArray(e),t},eachTargetSeries:function(e,t){i.each(this.getTargetSeriesIndices(),(function(n){e.call(t,this.ecModel.getSeriesByIndex(n))}),this)},isTargetSeries:function(e){var t=!1;return this.eachTargetSeries((function(n){n===e&&(t=!0)})),t},formatValueText:function(e,t,n){var r,o,a=this.option,s=a.precision,c=this.dataBound,u=a.formatter;return n=n||["<",">"],i.isArray(e)&&(e=e.slice(),r=!0),o=t?e:r?[l(e[0]),l(e[1])]:l(e),i.isString(u)?u.replace("{value}",r?o[0]:o).replace("{value2}",r?o[1]:o):i.isFunction(u)?r?u(e[0],e[1]):u(e):r?e[0]===c[0]?n[0]+" "+o[1]:e[1]===c[1]?n[1]+" "+o[0]:o[0]+" - "+o[1]:o;function l(e){return e===c[0]?"min":e===c[1]?"max":(+e).toFixed(Math.min(s,20))}},resetExtent:function(){var e=this.option,t=g([e.min,e.max]);this._dataExtent=t},getDataDimension:function(e){var t=this.option.dimension,n=e.dimensions;if(null!=t||n.length){if(null!=t)return e.getDimension(t);for(var r=e.dimensions,i=r.length-1;i>=0;i--){var o=r[i],a=e.getDimensionInfo(o);if(!a.isCalculationCoord)return o}}},getExtent:function(){return this._dataExtent.slice()},completeVisualOption:function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},r=t.target||(t.target={}),o=t.controller||(t.controller={});i.merge(r,n),i.merge(o,n);var c=this.isCategory();function u(n){f(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get("gradientColor")},p(this.stateList,(function(e){var t=n[e];if(i.isString(t)){var r=a.get(t,"active",c);r?(n[e]={},n[e][t]=r):delete n[e]}}),this)}function l(e,t,n){var r=e[t],i=e[n];r&&!i&&(i=e[n]={},p(r,(function(e,t){if(s.isValidType(t)){var n=a.get(t,"inactive",c);null!=n&&(i[t]=n,"color"!==t||i.hasOwnProperty("opacity")||i.hasOwnProperty("colorAlpha")||(i.opacity=[0,0]))}})))}function g(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,r=this.get("inactiveColor");p(this.stateList,(function(o){var a=this.itemSize,s=e[o];s||(s=e[o]={color:c?r:[r]}),null==s.symbol&&(s.symbol=t&&i.clone(t)||(c?"roundRect":["roundRect"])),null==s.symbolSize&&(s.symbolSize=n&&i.clone(n)||(c?a[0]:[a[0],a[0]])),s.symbol=d(s.symbol,(function(e){return"none"===e||"square"===e?"roundRect":e}));var u=s.symbolSize;if(null!=u){var l=-1/0;h(u,(function(e){e>l&&(l=e)})),s.symbolSize=d(u,(function(e){return m(e,[0,l],[0,a[0]],!0)}))}}),this)}u.call(this,r),u.call(this,o),l.call(this,r,"inRange","outOfRange"),g.call(this,o)},resetItemSize:function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},isCategory:function(){return!!this.option.categories},setSelected:v,getValueState:v,getVisualMeta:v}),_=y;e.exports=_},eaeb:function(e,t,n){var r=n("6d8b");function i(e,t){return r.map(["Radius","Angle"],(function(n,r){var i=this["get"+n+"Axis"](),o=t[r],a=e[r]/2,s="dataTo"+n,c="category"===i.type?i.getBandWidth():Math.abs(i[s](o-a)-i[s](o+a));return"Angle"===n&&(c=c*Math.PI/180),c}),this)}function o(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),o=t.getExtent();return o[0]>o[1]&&o.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:o[1],r0:o[0]},api:{coord:r.bind((function(r){var i=t.dataToRadius(r[0]),o=n.dataToAngle(r[1]),a=e.coordToPoint([i,o]);return a.push(i,o*Math.PI/180),a})),size:r.bind(i,e)}}}e.exports=o},eb53:function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=void 0;var i=r(n("a34a")),o=r(n("c973")),a=r(n("7037")),s=r(n("448a")),c=r(n("970b")),u=r(n("d0b5")),l=r(n("8f47")),d=n("5557"),h=function e(t,n){(0,c["default"])(this,e),n=(0,d.deepClone)(n,!0);var r={visible:!0,drag:!1,hover:!1,index:1,animationDelay:0,animationFrame:30,animationCurve:"linear",animationPause:!1,hoverRect:null,mouseEnter:null,mouseOuter:null,click:null},i={status:"static",animationRoot:[],animationKeys:[],animationFrameState:[],cache:{}};n.shape||(n.shape={}),n.style||(n.style={});var o=Object.assign({},t.shape,n.shape);Object.assign(r,n,i),Object.assign(this,t,r),this.shape=o,this.style=new u["default"](n.style),this.addedProcessor()};function f(e){return new Promise((function(t){setTimeout(t,e)}))}t["default"]=h,h.prototype.addedProcessor=function(){"function"===typeof this.setGraphCenter&&this.setGraphCenter(null,this),"function"===typeof this.added&&this.added(this)},h.prototype.drawProcessor=function(e,t){var n=e.ctx;t.style.initStyle(n),"function"===typeof this.beforeDraw&&this.beforeDraw(this,e),t.draw(e,t),"function"===typeof this.drawed&&this.drawed(this,e),t.style.restoreTransform(n)},h.prototype.hoverCheckProcessor=function(e,t){var n=t.hoverRect,r=t.style,i=t.hoverCheck,o=r.graphCenter,a=r.rotate,c=r.scale,u=r.translate;return o&&(a&&(e=(0,d.getRotatePointPos)(-a,e,o)),c&&(e=(0,d.getScalePointPos)(c.map((function(e){return 1/e})),e,o)),u&&(e=(0,d.getTranslatePointPos)(u.map((function(e){return-1*e})),e))),n?d.checkPointIsInRect.apply(void 0,[e].concat((0,s["default"])(n))):i(e,this)},h.prototype.moveProcessor=function(e){this.move(e,this),"function"===typeof this.beforeMove&&this.beforeMove(e,this),"function"===typeof this.setGraphCenter&&this.setGraphCenter(e,this),"function"===typeof this.moved&&this.moved(e,this)},h.prototype.attr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(!e||void 0===t)return!1;var n="object"===(0,a["default"])(this[e]);n&&(t=(0,d.deepClone)(t,!0));var r=this.render;"style"===e?this.style.update(t):n?Object.assign(this[e],t):this[e]=t,"index"===e&&r.sortGraphsByIndex(),r.drawAllGraph()},h.prototype.animation=function(){var e=(0,o["default"])(i["default"].mark((function e(t,n){var r,a,s,c,u,h,p,g,m,v=arguments;return i["default"].wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=v.length>2&&void 0!==v[2]&&v[2],"shape"===t||"style"===t){e.next=4;break}return console.error("Only supported shape and style animation!"),e.abrupt("return");case 4:if(n=(0,d.deepClone)(n,!0),"style"===t&&this.style.colorProcessor(n),a=this[t],s=Object.keys(n),c={},s.forEach((function(e){return c[e]=a[e]})),u=this.animationFrame,h=this.animationCurve,p=this.animationDelay,g=(0,l["default"])(h,c,n,u,!0),this.animationRoot.push(a),this.animationKeys.push(s),this.animationFrameState.push(g),!r){e.next=17;break}return e.abrupt("return");case 17:if(!(p>0)){e.next=20;break}return e.next=20,f(p);case 20:return m=this.render,e.abrupt("return",new Promise(function(){var e=(0,o["default"])(i["default"].mark((function e(t){return i["default"].wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,m.launchAnimation();case 2:t();case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 22:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}(),h.prototype.turnNextAnimationFrame=function(e){var t=this.animationDelay,n=this.animationRoot,r=this.animationKeys,i=this.animationFrameState,o=this.animationPause;o||Date.now()-e<t||(n.forEach((function(e,t){r[t].forEach((function(n){e[n]=i[t][0][n]}))})),i.forEach((function(e,t){e.shift();var i=0===e.length;i&&(n[t]=null),i&&(r[t]=null)})),this.animationFrameState=i.filter((function(e){return e.length})),this.animationRoot=n.filter((function(e){return e})),this.animationKeys=r.filter((function(e){return e})))},h.prototype.animationEnd=function(){var e=this.animationFrameState,t=this.animationKeys,n=this.animationRoot,r=this.render;return n.forEach((function(n,r){var i=t[r],o=e[r].pop();i.forEach((function(e){return n[e]=o[e]}))})),this.animationFrameState=[],this.animationKeys=[],this.animationRoot=[],r.drawAllGraph()},h.prototype.pauseAnimation=function(){this.attr("animationPause",!0)},h.prototype.playAnimation=function(){var e=this.render;return this.attr("animationPause",!1),new Promise(function(){var t=(0,o["default"])(i["default"].mark((function t(n){return i["default"].wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.launchAnimation();case 2:n();case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())},h.prototype.delProcessor=function(e){var t=this,n=e.graphs,r=n.findIndex((function(e){return e===t}));-1!==r&&("function"===typeof this.beforeDelete&&this.beforeDelete(this),n.splice(r,1,null),"function"===typeof this.deleted&&this.deleted(this))}},eb6b:function(e,t,n){var r=n("6d8b"),i=n("e0d3"),o=i.makeInner,a=n("cd33"),s=n("133d"),c=r.each,u=r.curry,l=o();function d(e,t,n){var i=e.currTrigger,o=[e.x,e.y],a=e,l=e.dispatchAction||r.bind(n.dispatchAction,n),d=t.getComponent("axisPointer").coordSysAxesInfo;if(d){S(o)&&(o=s({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var f=S(o),x=a.axesInfo,w=d.axesInfo,I="leave"===i||S(o),C={},M={},T={list:[],map:{}},k={showPointer:u(p,M),showTooltip:u(g,T)};c(d.coordSysMap,(function(e,t){var n=f||e.containPoint(o);c(d.coordSysAxesInfo[t],(function(e,t){var r=e.axis,i=_(x,e);if(!I&&n&&(!x||i)){var a=i&&i.value;null!=a||f||(a=r.pointToData(o)),null!=a&&h(e,a,k,!1,C)}}))}));var E={};return c(w,(function(e,t){var n=e.linkGroup;n&&!M[t]&&c(n.axesInfo,(function(t,r){var i=M[r];if(t!==e&&i){var o=i.value;n.mapper&&(o=e.axis.scale.parse(n.mapper(o,b(t),b(e)))),E[e.key]=o}}))})),c(E,(function(e,t){h(w[t],e,k,!0,C)})),m(M,w,C),v(T,o,e,l),y(w,l,n),C}}function h(e,t,n,i,o){var a=e.axis;if(!a.scale.isBlank()&&a.containData(t))if(e.involveSeries){var s=f(t,e),c=s.payloadBatch,u=s.snapToValue;c[0]&&null==o.seriesIndex&&r.extend(o,c[0]),!i&&e.snap&&a.containData(u)&&null!=u&&(t=u),n.showPointer(e,t,c,o),n.showTooltip(e,s,u)}else n.showPointer(e,t)}function f(e,t){var n=t.axis,r=n.dim,i=e,o=[],a=Number.MAX_VALUE,s=-1;return c(t.seriesModels,(function(t,u){var l,d,h=t.getData().mapDimension(r,!0);if(t.getAxisTooltipData){var f=t.getAxisTooltipData(h,e,n);d=f.dataIndices,l=f.nestestValue}else{if(d=t.getData().indicesOfNearest(h[0],e,"category"===n.type?.5:null),!d.length)return;l=t.getData().get(h[0],d[0])}if(null!=l&&isFinite(l)){var p=e-l,g=Math.abs(p);g<=a&&((g<a||p>=0&&s<0)&&(a=g,s=p,i=l,o.length=0),c(d,(function(e){o.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})})))}})),{payloadBatch:o,snapToValue:i}}function p(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function g(e,t,n,r){var i=n.payloadBatch,o=t.axis,s=o.model,c=t.axisPointerModel;if(t.triggerTooltip&&i.length){var u=t.coordSys.model,l=a.makeKey(u),d=e.map[l];d||(d=e.map[l]={coordSysId:u.id,coordSysIndex:u.componentIndex,coordSysType:u.type,coordSysMainType:u.mainType,dataByAxis:[]},e.list.push(d)),d.dataByAxis.push({axisDim:o.dim,axisIndex:s.componentIndex,axisType:s.type,axisId:s.id,value:r,valueLabelOpt:{precision:c.get("label.precision"),formatter:c.get("label.formatter")},seriesDataIndices:i.slice()})}}function m(e,t,n){var r=n.axesInfo=[];c(t,(function(t,n){var i=t.axisPointerModel.option,o=e[n];o?(!t.useHandle&&(i.status="show"),i.value=o.value,i.seriesDataIndices=(o.payloadBatch||[]).slice()):!t.useHandle&&(i.status="hide"),"show"===i.status&&r.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})}))}function v(e,t,n,r){if(!S(t)&&e.list.length){var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}else r({type:"hideTip"})}function y(e,t,n){var i=n.getZr(),o="axisPointerLastHighlights",a=l(i)[o]||{},s=l(i)[o]={};c(e,(function(e,t){var n=e.axisPointerModel.option;"show"===n.status&&c(n.seriesDataIndices,(function(e){var t=e.seriesIndex+" | "+e.dataIndex;s[t]=e}))}));var u=[],d=[];r.each(a,(function(e,t){!s[t]&&d.push(e)})),r.each(s,(function(e,t){!a[t]&&u.push(e)})),d.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,batch:d}),u.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,batch:u})}function _(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function b(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=t.componentIndex,n.axisName=n[r+"AxisName"]=t.name,n.axisId=n[r+"AxisId"]=t.id,n}function S(e){return!e||null==e[0]||isNaN(e[0])||null==e[1]||isNaN(e[1])}e.exports=d},ebb5:function(e,t,n){"use strict";var r,i,o,a=n("a981"),s=n("83ab"),c=n("da84"),u=n("1626"),l=n("861d"),d=n("1a2d"),h=n("f5df"),f=n("0d51"),p=n("9112"),g=n("6eeb"),m=n("9bf2").f,v=n("3a9b"),y=n("e163"),_=n("d2bb"),b=n("b622"),S=n("90e3"),x=c.Int8Array,w=x&&x.prototype,I=c.Uint8ClampedArray,C=I&&I.prototype,M=x&&y(x),T=w&&y(w),k=Object.prototype,E=c.TypeError,A=b("toStringTag"),D=S("TYPED_ARRAY_TAG"),O=S("TYPED_ARRAY_CONSTRUCTOR"),R=a&&!!_&&"Opera"!==h(c.opera),L=!1,P={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},N={BigInt64Array:8,BigUint64Array:8},U=function(e){if(!l(e))return!1;var t=h(e);return"DataView"===t||d(P,t)||d(N,t)},F=function(e){if(!l(e))return!1;var t=h(e);return d(P,t)||d(N,t)},G=function(e){if(F(e))return e;throw E("Target is not a typed array")},V=function(e){if(u(e)&&(!_||v(M,e)))return e;throw E(f(e)+" is not a typed array constructor")},j=function(e,t,n,r){if(s){if(n)for(var i in P){var o=c[i];if(o&&d(o.prototype,e))try{delete o.prototype[e]}catch(a){try{o.prototype[e]=t}catch(u){}}}T[e]&&!n||g(T,e,n?t:R&&w[e]||t,r)}},B=function(e,t,n){var r,i;if(s){if(_){if(n)for(r in P)if(i=c[r],i&&d(i,e))try{delete i[e]}catch(o){}if(M[e]&&!n)return;try{return g(M,e,n?t:R&&M[e]||t)}catch(o){}}for(r in P)i=c[r],!i||i[e]&&!n||g(i,e,t)}};for(r in P)i=c[r],o=i&&i.prototype,o?p(o,O,i):R=!1;for(r in N)i=c[r],o=i&&i.prototype,o&&p(o,O,i);if((!R||!u(M)||M===Function.prototype)&&(M=function(){throw E("Incorrect invocation")},R))for(r in P)c[r]&&_(c[r],M);if((!R||!T||T===k)&&(T=M.prototype,R))for(r in P)c[r]&&_(c[r].prototype,T);if(R&&y(C)!==T&&_(C,T),s&&!d(T,A))for(r in L=!0,m(T,A,{get:function(){return l(this)?this[D]:void 0}}),P)c[r]&&p(c[r],D,r);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:R,TYPED_ARRAY_CONSTRUCTOR:O,TYPED_ARRAY_TAG:L&&D,aTypedArray:G,aTypedArrayConstructor:V,exportTypedArrayMethod:j,exportTypedArrayStaticMethod:B,isView:U,isTypedArray:F,TypedArray:M,TypedArrayPrototype:T}},ebf9:function(e,t,n){var r=n("3eba");r.registerAction("legendScroll","legendscroll",(function(e,t){var n=e.scrollDataIndex;null!=n&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},(function(e){e.setScrollDataIndex(n)}))}))},ec02:function(e,t,n){var r=n("6d8b"),i=n("84ce"),o=function(e,t,n,r,o){i.call(this,e,t,n),this.type=r||"value",this.position=o||"bottom"};o.prototype={constructor:o,index:0,getAxesOnZeroOf:null,model:null,isHorizontal:function(){var e=this.position;return"top"===e||"bottom"===e},getGlobalExtent:function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},getOtherAxis:function(){this.grid.getOtherAxis()},pointToData:function(e,t){return this.coordToData(this.toLocalCoord(e["x"===this.dim?0:1]),t)},toLocalCoord:null,toGlobalCoord:null},r.inherits(o,i);var a=o;e.exports=a},ec34:function(e,t,n){var r=n("4e08"),i=(r.__DEV__,n("6d8b")),o=i.createHashMap,a=i.isString,s=i.isArray,c=i.each,u=(i.assert,n("3041")),l=u.parseXML,d=o(),h={registerMap:function(e,t,n){var r;return s(t)?r=t:t.svg?r=[{type:"svg",source:t.svg,specialAreas:t.specialAreas}]:(t.geoJson&&!t.features&&(n=t.specialAreas,t=t.geoJson),r=[{type:"geoJSON",source:t,specialAreas:n}]),c(r,(function(e){var t=e.type;"geoJson"===t&&(t=e.type="geoJSON");var n=f[t];n(e)})),d.set(e,r)},retrieveMap:function(e){return d.get(e)}},f={geoJSON:function(e){var t=e.source;e.geoJSON=a(t)?"undefined"!==typeof JSON&&JSON.parse?JSON.parse(t):new Function("return ("+t+");")():t},svg:function(e){e.svgXML=l(e.source)}};e.exports=h},ec6f:function(e,t,n){var r=n("6d8b"),i=r.createHashMap,o=r.isTypedArray,a=n("625e"),s=a.enableClassCheck,c=n("93d0"),u=c.SOURCE_FORMAT_ORIGINAL,l=c.SERIES_LAYOUT_BY_COLUMN,d=c.SOURCE_FORMAT_UNKNOWN,h=c.SOURCE_FORMAT_TYPED_ARRAY,f=c.SOURCE_FORMAT_KEYED_COLUMNS;function p(e){this.fromDataset=e.fromDataset,this.data=e.data||(e.sourceFormat===f?{}:[]),this.sourceFormat=e.sourceFormat||d,this.seriesLayoutBy=e.seriesLayoutBy||l,this.dimensionsDefine=e.dimensionsDefine,this.encodeDefine=e.encodeDefine&&i(e.encodeDefine),this.startIndex=e.startIndex||0,this.dimensionsDetectCount=e.dimensionsDetectCount}p.seriesDataToSource=function(e){return new p({data:e,sourceFormat:o(e)?h:u,fromDataset:!1})},s(p);var g=p;e.exports=g},ecdf:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=135)}({135:function(e,t,n){"use strict";n.r(t);var r=n(3),i={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:"",className:"el-table-column--selection"},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},o={selection:{renderHeader:function(e,t){var n=t.store;return e("el-checkbox",{attrs:{disabled:n.states.data&&0===n.states.data.length,indeterminate:n.states.selection.length>0&&!this.isAllSelected,value:this.isAllSelected},nativeOn:{click:this.toggleAllSelection}})},renderCell:function(e,t){var n=t.row,r=t.column,i=t.store,o=t.$index;return e("el-checkbox",{nativeOn:{click:function(e){return e.stopPropagation()}},attrs:{value:i.isSelected(n),disabled:!!r.selectable&&!r.selectable.call(null,n,o)},on:{input:function(){i.commit("rowSelectedChanged",n)}}})},sortable:!1,resizable:!1},index:{renderHeader:function(e,t){var n=t.column;return n.label||"#"},renderCell:function(e,t){var n=t.$index,r=t.column,i=n+1,o=r.index;return"number"===typeof o?i=n+o:"function"===typeof o&&(i=o(n)),e("div",[i])},sortable:!1},expand:{renderHeader:function(e,t){var n=t.column;return n.label||""},renderCell:function(e,t){var n=t.row,r=t.store,i=["el-table__expand-icon"];r.states.expandRows.indexOf(n)>-1&&i.push("el-table__expand-icon--expanded");var o=function(e){e.stopPropagation(),r.toggleRowExpansion(n)};return e("div",{class:i,on:{click:o}},[e("i",{class:"el-icon el-icon-arrow-right"})])},sortable:!1,resizable:!1,className:"el-table__expand-column"}};function a(e,t){var n=t.row,i=t.column,o=t.$index,a=i.property,s=a&&Object(r["getPropByPath"])(n,a).v;return i&&i.formatter?i.formatter(n,i,s,o):s}function s(e,t){var n=t.row,r=t.treeNode,i=t.store;if(!r)return null;var o=[],a=function(e){e.stopPropagation(),i.loadOrToggle(n)};if(r.indent&&o.push(e("span",{class:"el-table__indent",style:{"padding-left":r.indent+"px"}})),"boolean"!==typeof r.expanded||r.noLazyChildren)o.push(e("span",{class:"el-table__placeholder"}));else{var s=["el-table__expand-icon",r.expanded?"el-table__expand-icon--expanded":""],c=["el-icon-arrow-right"];r.loading&&(c=["el-icon-loading"]),o.push(e("div",{class:s,on:{click:a}},[e("i",{class:c})]))}return o}var c=n(8),u=n(19),l=n.n(u),d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h=1,f={name:"ElTableColumn",props:{type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{},minWidth:{},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showTooltipWhenOverflow:Boolean,showOverflowTooltip:Boolean,fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},index:[Number,Function],sortOrders:{type:Array,default:function(){return["ascending","descending",null]},validator:function(e){return e.every((function(e){return["ascending","descending",null].indexOf(e)>-1}))}}},data:function(){return{isSubColumn:!1,columns:[]}},computed:{owner:function(){var e=this.$parent;while(e&&!e.tableId)e=e.$parent;return e},columnOrTableParent:function(){var e=this.$parent;while(e&&!e.tableId&&!e.columnId)e=e.$parent;return e},realWidth:function(){return Object(c["l"])(this.width)},realMinWidth:function(){return Object(c["k"])(this.minWidth)},realAlign:function(){return this.align?"is-"+this.align:null},realHeaderAlign:function(){return this.headerAlign?"is-"+this.headerAlign:this.realAlign}},methods:{getPropsData:function(){for(var e=this,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.reduce((function(t,n){return Array.isArray(n)&&n.forEach((function(n){t[n]=e[n]})),t}),{})},getColumnElIndex:function(e,t){return[].indexOf.call(e,t)},setColumnWidth:function(e){return this.realWidth&&(e.width=this.realWidth),this.realMinWidth&&(e.minWidth=this.realMinWidth),e.minWidth||(e.minWidth=80),e.realWidth=void 0===e.width?e.minWidth:e.width,e},setColumnForcedProps:function(e){var t=e.type,n=o[t]||{};return Object.keys(n).forEach((function(t){var r=n[t];void 0!==r&&(e[t]="className"===t?e[t]+" "+r:r)})),e},setColumnRenders:function(e){var t=this;this.$createElement;this.renderHeader?console.warn("[Element Warn][TableColumn]Comparing to render-header, scoped-slot header is easier to use. We recommend users to use scoped-slot header."):"selection"!==e.type&&(e.renderHeader=function(n,r){var i=t.$scopedSlots.header;return i?i(r):e.label});var n=e.renderCell;return"expand"===e.type?(e.renderCell=function(e,t){return e("div",{class:"cell"},[n(e,t)])},this.owner.renderExpanded=function(e,n){return t.$scopedSlots.default?t.$scopedSlots.default(n):t.$slots.default}):(n=n||a,e.renderCell=function(r,i){var o=null;o=t.$scopedSlots.default?t.$scopedSlots.default(i):n(r,i);var a=s(r,i),c={class:"cell",style:{}};return e.showOverflowTooltip&&(c.class+=" el-tooltip",c.style={width:(i.column.realWidth||i.column.width)-1+"px"}),r("div",c,[a,o])}),e},registerNormalWatchers:function(){var e=this,t=["label","property","filters","filterMultiple","sortable","index","formatter","className","labelClassName","showOverflowTooltip"],n={prop:"property",realAlign:"align",realHeaderAlign:"headerAlign",realWidth:"width"},r=t.reduce((function(e,t){return e[t]=t,e}),n);Object.keys(r).forEach((function(t){var r=n[t];e.$watch(t,(function(t){e.columnConfig[r]=t}))}))},registerComplexWatchers:function(){var e=this,t=["fixed"],n={realWidth:"width",realMinWidth:"minWidth"},r=t.reduce((function(e,t){return e[t]=t,e}),n);Object.keys(r).forEach((function(t){var r=n[t];e.$watch(t,(function(t){e.columnConfig[r]=t;var n="fixed"===r;e.owner.store.scheduleLayout(n)}))}))}},components:{ElCheckbox:l.a},beforeCreate:function(){this.row={},this.column={},this.$index=0,this.columnId=""},created:function(){var e=this.columnOrTableParent;this.isSubColumn=this.owner!==e,this.columnId=(e.tableId||e.columnId)+"_column_"+h++;var t=this.type||"default",n=""===this.sortable||this.sortable,r=d({},i[t],{id:this.columnId,type:t,property:this.prop||this.property,align:this.realAlign,headerAlign:this.realHeaderAlign,showOverflowTooltip:this.showOverflowTooltip||this.showTooltipWhenOverflow,filterable:this.filters||this.filterMethod,filteredValue:[],filterPlacement:"",isColumnGroup:!1,filterOpened:!1,sortable:n,index:this.index}),o=["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],a=["sortMethod","sortBy","sortOrders"],s=["selectable","reserveSelection"],u=["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"],l=this.getPropsData(o,a,s,u);l=Object(c["h"])(r,l);var f=Object(c["a"])(this.setColumnRenders,this.setColumnWidth,this.setColumnForcedProps);l=f(l),this.columnConfig=l,this.registerNormalWatchers(),this.registerComplexWatchers()},mounted:function(){var e=this.owner,t=this.columnOrTableParent,n=this.isSubColumn?t.$el.children:t.$refs.hiddenColumns.children,r=this.getColumnElIndex(n,this.$el);e.store.commit("insertColumn",this.columnConfig,r,this.isSubColumn?t.columnConfig:null)},destroyed:function(){if(this.$parent){var e=this.$parent;this.owner.store.commit("removeColumn",this.columnConfig,this.isSubColumn?e.columnConfig:null)}},render:function(e){return e("div",this.$slots.default)},install:function(e){e.component(f.name,f)}};t["default"]=f},19:function(e,t){e.exports=n("dcdc")},3:function(e,t){e.exports=n("8122")},8:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"i",(function(){return s})),n.d(t,"d",(function(){return c})),n.d(t,"e",(function(){return u})),n.d(t,"c",(function(){return l})),n.d(t,"g",(function(){return d})),n.d(t,"f",(function(){return h})),n.d(t,"h",(function(){return p})),n.d(t,"l",(function(){return g})),n.d(t,"k",(function(){return m})),n.d(t,"j",(function(){return v})),n.d(t,"a",(function(){return y})),n.d(t,"m",(function(){return _})),n.d(t,"n",(function(){return b}));var r=n(3),i="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},o=function(e){var t=e.target;while(t&&"HTML"!==t.tagName.toUpperCase()){if("TD"===t.tagName.toUpperCase())return t;t=t.parentNode}return null},a=function(e){return null!==e&&"object"===("undefined"===typeof e?"undefined":i(e))},s=function(e,t,n,i,o){if(!t&&!i&&(!o||Array.isArray(o)&&!o.length))return e;n="string"===typeof n?"descending"===n?-1:1:n&&n<0?-1:1;var s=i?null:function(n,i){return o?(Array.isArray(o)||(o=[o]),o.map((function(t){return"string"===typeof t?Object(r["getValueByPath"])(n,t):t(n,i,e)}))):("$key"!==t&&a(n)&&"$value"in n&&(n=n.$value),[a(n)?Object(r["getValueByPath"])(n,t):n])},c=function(e,t){if(i)return i(e.value,t.value);for(var n=0,r=e.key.length;n<r;n++){if(e.key[n]<t.key[n])return-1;if(e.key[n]>t.key[n])return 1}return 0};return e.map((function(e,t){return{value:e,index:t,key:s?s(e,t):null}})).sort((function(e,t){var r=c(e,t);return r||(r=e.index-t.index),r*n})).map((function(e){return e.value}))},c=function(e,t){var n=null;return e.columns.forEach((function(e){e.id===t&&(n=e)})),n},u=function(e,t){for(var n=null,r=0;r<e.columns.length;r++){var i=e.columns[r];if(i.columnKey===t){n=i;break}}return n},l=function(e,t){var n=(t.className||"").match(/el-table_[^\s]+/gm);return n?c(e,n[0]):null},d=function(e,t){if(!e)throw new Error("row is required when get row identity");if("string"===typeof t){if(t.indexOf(".")<0)return e[t];for(var n=t.split("."),r=e,i=0;i<n.length;i++)r=r[n[i]];return r}if("function"===typeof t)return t.call(null,e)},h=function(e,t){var n={};return(e||[]).forEach((function(e,r){n[d(e,t)]={row:e,index:r}})),n};function f(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function p(e,t){var n={},r=void 0;for(r in e)n[r]=e[r];for(r in t)if(f(t,r)){var i=t[r];"undefined"!==typeof i&&(n[r]=i)}return n}function g(e){return void 0!==e&&(e=parseInt(e,10),isNaN(e)&&(e=null)),e}function m(e){return"undefined"!==typeof e&&(e=g(e),isNaN(e)&&(e=80)),e}function v(e){return"number"===typeof e?e:"string"===typeof e?/^\d+(?:px)?$/.test(e)?parseInt(e,10):e:null}function y(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function _(e,t,n){var r=!1,i=e.indexOf(t),o=-1!==i,a=function(){e.push(t),r=!0},s=function(){e.splice(i,1),r=!0};return"boolean"===typeof n?n&&!o?a():!n&&o&&s():o?s():a(),r}function b(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"children",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"hasChildren",i=function(e){return!(Array.isArray(e)&&e.length)};function o(e,a,s){t(e,a,s),a.forEach((function(e){if(e[r])t(e,null,s+1);else{var a=e[n];i(a)||o(e,a,s+1)}}))}e.forEach((function(e){if(e[r])t(e,null,0);else{var a=e[n];i(a)||o(e,a,0)}}))}}})},ecf8:function(e,t,n){var r=n("6d8b"),i=n("3842"),o=i.parsePercent,a=r.each;function s(e){var t=c(e);a(t,(function(e){var t=e.seriesModels;t.length&&(u(e),a(t,(function(t,n){l(t,e.boxOffsetList[n],e.boxWidthList[n])})))}))}function c(e){var t=[],n=[];return e.eachSeriesByType("boxplot",(function(e){var i=e.getBaseAxis(),o=r.indexOf(n,i);o<0&&(o=n.length,n[o]=i,t[o]={axis:i,seriesModels:[]}),t[o].seriesModels.push(e)})),t}function u(e){var t,n,i=e.axis,s=e.seriesModels,c=s.length,u=e.boxWidthList=[],l=e.boxOffsetList=[],d=[];if("category"===i.type)n=i.getBandWidth();else{var h=0;a(s,(function(e){h=Math.max(h,e.getData().count())})),t=i.getExtent(),Math.abs(t[1]-t[0])}a(s,(function(e){var t=e.get("boxWidth");r.isArray(t)||(t=[t,t]),d.push([o(t[0],n)||0,o(t[1],n)||0])}));var f=.8*n-2,p=f/c*.3,g=(f-p*(c-1))/c,m=g/2-f/2;a(s,(function(e,t){l.push(m),m+=p+g,u.push(Math.min(Math.max(g,d[t][0]),d[t][1]))}))}function l(e,t,n){var r=e.coordinateSystem,i=e.getData(),o=n/2,a="horizontal"===e.get("layout")?0:1,s=1-a,c=["x","y"],u=i.mapDimension(c[a]),l=i.mapDimension(c[s],!0);if(!(null==u||l.length<5))for(var d=0;d<i.count();d++){var h=i.get(u,d),f=_(h,l[2],d),p=_(h,l[0],d),g=_(h,l[1],d),m=_(h,l[3],d),v=_(h,l[4],d),y=[];b(y,g,0),b(y,m,1),y.push(p,g,v,m),S(y,p),S(y,v),S(y,f),i.setItemLayout(d,{initBaseline:f[s],ends:y})}function _(e,n,o){var c,u=i.get(n,o),l=[];return l[a]=e,l[s]=u,isNaN(e)||isNaN(u)?c=[NaN,NaN]:(c=r.dataToPoint(l),c[a]+=t),c}function b(e,t,n){var r=t.slice(),i=t.slice();r[a]+=o,i[a]-=o,n?e.push(r,i):e.push(i,r)}function S(e,t){var n=t.slice(),r=t.slice();n[a]-=o,r[a]+=o,e.push(n,r)}}e.exports=s},ed21:function(e,t,n){var r=n("2cf4"),i=r.devicePixelRatio,o=n("6d8b"),a=n("4942"),s=n("9850"),c=n("04f6"),u=n("5e68"),l=n("98b7"),d=n("0da8"),h=n("22d1"),f=1e5,p=314159,g=.01,m=.001;function v(e){return parseInt(e,10)}function y(e){return!!e&&(!!e.__builtin__||"function"===typeof e.resize&&"function"===typeof e.refresh)}var _=new s(0,0,0,0),b=new s(0,0,0,0);function S(e,t,n){return _.copy(e.getBoundingRect()),e.transform&&_.applyTransform(e.transform),b.width=t,b.height=n,!_.intersect(b)}function x(e,t){if(e===t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}function w(e,t){for(var n=0;n<e.length;n++){var r=e[n];r.setTransform(t),t.beginPath(),r.buildPath(t,r.shape),t.clip(),r.restoreTransform(t)}}function I(e,t){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}var C=function(e,t,n){this.type="canvas";var r=!e.nodeName||"CANVAS"===e.nodeName.toUpperCase();this._opts=n=o.extend({},n||{}),this.dpr=n.devicePixelRatio||i,this._singleCanvas=r,this.root=e;var a=e.style;a&&(a["-webkit-tap-highlight-color"]="transparent",a["-webkit-user-select"]=a["user-select"]=a["-webkit-touch-callout"]="none",e.innerHTML=""),this.storage=t;var s=this._zlevelList=[],c=this._layers={};if(this._layerConfig={},this._needsManuallyCompositing=!1,r){var l=e.width,d=e.height;null!=n.width&&(l=n.width),null!=n.height&&(d=n.height),this.dpr=n.devicePixelRatio||1,e.width=l*this.dpr,e.height=d*this.dpr,this._width=l,this._height=d;var h=new u(e,this,this.dpr);h.__builtin__=!0,h.initContext(),c[p]=h,h.zlevel=p,s.push(p),this._domRoot=e}else{this._width=this._getSize(0),this._height=this._getSize(1);var f=this._domRoot=I(this._width,this._height);e.appendChild(f)}this._hoverlayer=null,this._hoverElements=[]};C.prototype={constructor:C,getType:function(){return"canvas"},isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._domRoot},getViewportRootOffset:function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},refresh:function(e){var t=this.storage.getDisplayList(!0),n=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,e,this._redrawId);for(var r=0;r<n.length;r++){var i=n[r],o=this._layers[i];if(!o.__builtin__&&o.refresh){var a=0===r?this._backgroundColor:null;o.refresh(a)}}return this.refreshHover(),this},addHover:function(e,t){if(!e.__hoverMir){var n=new e.constructor({style:e.style,shape:e.shape,z:e.z,z2:e.z2,silent:e.silent});return n.__from=e,e.__hoverMir=n,t&&n.setStyle(t),this._hoverElements.push(n),n}},removeHover:function(e){var t=e.__hoverMir,n=this._hoverElements,r=o.indexOf(n,t);r>=0&&n.splice(r,1),e.__hoverMir=null},clearHover:function(e){for(var t=this._hoverElements,n=0;n<t.length;n++){var r=t[n].__from;r&&(r.__hoverMir=null)}t.length=0},refreshHover:function(){var e=this._hoverElements,t=e.length,n=this._hoverlayer;if(n&&n.clear(),t){c(e,this.storage.displayableSortFunc),n||(n=this._hoverlayer=this.getLayer(f));var r={};n.ctx.save();for(var i=0;i<t;){var o=e[i],a=o.__from;a&&a.__zr?(i++,a.invisible||(o.transform=a.transform,o.invTransform=a.invTransform,o.__clipPaths=a.__clipPaths,this._doPaintEl(o,n,!0,r))):(e.splice(i,1),a.__hoverMir=null,t--)}n.ctx.restore()}},getHoverLayer:function(){return this.getLayer(f)},_paintList:function(e,t,n){if(this._redrawId===n){t=t||!1,this._updateLayerStatus(e);var r=this._doPaintList(e,t);if(this._needsManuallyCompositing&&this._compositeManually(),!r){var i=this;l((function(){i._paintList(e,t,n)}))}}},_compositeManually:function(){var e=this.getLayer(p).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),this.eachBuiltinLayer((function(r){r.virtual&&e.drawImage(r.dom,0,0,t,n)}))},_doPaintList:function(e,t){for(var n=[],r=0;r<this._zlevelList.length;r++){var i=this._zlevelList[r],a=this._layers[i];a.__builtin__&&a!==this._hoverlayer&&(a.__dirty||t)&&n.push(a)}for(var s=!0,c=0;c<n.length;c++){a=n[c];var u=a.ctx,l={};u.save();var d=t?a.__startIndex:a.__drawIndex,f=!t&&a.incremental&&Date.now,p=f&&Date.now(),g=a.zlevel===this._zlevelList[0]?this._backgroundColor:null;if(a.__startIndex===a.__endIndex)a.clear(!1,g);else if(d===a.__startIndex){var m=e[d];m.incremental&&m.notClear&&!t||a.clear(!1,g)}-1===d&&(console.error("For some unknown reason. drawIndex is -1"),d=a.__startIndex);for(var v=d;v<a.__endIndex;v++){var y=e[v];if(this._doPaintEl(y,a,t,l),y.__dirty=y.__dirtyText=!1,f){var _=Date.now()-p;if(_>15)break}}a.__drawIndex=v,a.__drawIndex<a.__endIndex&&(s=!1),l.prevElClipPaths&&u.restore(),u.restore()}return h.wxa&&o.each(this._layers,(function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()})),s},_doPaintEl:function(e,t,n,r){var i=t.ctx,o=e.transform;if((t.__dirty||n)&&!e.invisible&&0!==e.style.opacity&&(!o||o[0]||o[3])&&(!e.culling||!S(e,this._width,this._height))){var a=e.__clipPaths,s=r.prevElClipPaths;s&&!x(a,s)||(s&&(i.restore(),r.prevElClipPaths=null,r.prevEl=null),a&&(i.save(),w(a,i),r.prevElClipPaths=a)),e.beforeBrush&&e.beforeBrush(i),e.brush(i,r.prevEl||null),r.prevEl=e,e.afterBrush&&e.afterBrush(i)}},getLayer:function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=p);var n=this._layers[e];return n||(n=new u("zr_"+e,this,this.dpr),n.zlevel=e,n.__builtin__=!0,this._layerConfig[e]?o.merge(n,this._layerConfig[e],!0):this._layerConfig[e-g]&&o.merge(n,this._layerConfig[e-g],!0),t&&(n.virtual=t),this.insertLayer(e,n),n.initContext()),n},insertLayer:function(e,t){var n=this._layers,r=this._zlevelList,i=r.length,o=null,s=-1,c=this._domRoot;if(n[e])a("ZLevel "+e+" has been used already");else if(y(t)){if(i>0&&e>r[0]){for(s=0;s<i-1;s++)if(r[s]<e&&r[s+1]>e)break;o=n[r[s]]}if(r.splice(s+1,0,e),n[e]=t,!t.virtual)if(o){var u=o.dom;u.nextSibling?c.insertBefore(t.dom,u.nextSibling):c.appendChild(t.dom)}else c.firstChild?c.insertBefore(t.dom,c.firstChild):c.appendChild(t.dom)}else a("Layer of zlevel "+e+" is not valid")},eachLayer:function(e,t){var n,r,i=this._zlevelList;for(r=0;r<i.length;r++)n=i[r],e.call(t,this._layers[n],n)},eachBuiltinLayer:function(e,t){var n,r,i,o=this._zlevelList;for(i=0;i<o.length;i++)r=o[i],n=this._layers[r],n.__builtin__&&e.call(t,n,r)},eachOtherLayer:function(e,t){var n,r,i,o=this._zlevelList;for(i=0;i<o.length;i++)r=o[i],n=this._layers[r],n.__builtin__||e.call(t,n,r)},getLayers:function(){return this._layers},_updateLayerStatus:function(e){function t(e){o&&(o.__endIndex!==e&&(o.__dirty=!0),o.__endIndex=e)}if(this.eachBuiltinLayer((function(e,t){e.__dirty=e.__used=!1})),this._singleCanvas)for(var n=1;n<e.length;n++){var r=e[n];if(r.zlevel!==e[n-1].zlevel||r.incremental){this._needsManuallyCompositing=!0;break}}var i,o=null,s=0;for(n=0;n<e.length;n++){r=e[n];var c,u=r.zlevel;i!==u&&(i=u,s=0),r.incremental?(c=this.getLayer(u+m,this._needsManuallyCompositing),c.incremental=!0,s=1):c=this.getLayer(u+(s>0?g:0),this._needsManuallyCompositing),c.__builtin__||a("ZLevel "+u+" has been used by unkown layer "+c.id),c!==o&&(c.__used=!0,c.__startIndex!==n&&(c.__dirty=!0),c.__startIndex=n,c.incremental?c.__drawIndex=-1:c.__drawIndex=n,t(n),o=c),r.__dirty&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=n))}t(n),this.eachBuiltinLayer((function(e,t){!e.__used&&e.getElementCount()>0&&(e.__dirty=!0,e.__startIndex=e.__endIndex=e.__drawIndex=0),e.__dirty&&e.__drawIndex<0&&(e.__drawIndex=e.__startIndex)}))},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(e){e.clear()},setBackgroundColor:function(e){this._backgroundColor=e},configLayer:function(e,t){if(t){var n=this._layerConfig;n[e]?o.merge(n[e],t,!0):n[e]=t;for(var r=0;r<this._zlevelList.length;r++){var i=this._zlevelList[r];if(i===e||i===e+g){var a=this._layers[i];o.merge(a,n[e],!0)}}}},delLayer:function(e){var t=this._layers,n=this._zlevelList,r=t[e];r&&(r.dom.parentNode.removeChild(r.dom),delete t[e],n.splice(o.indexOf(n,e),1))},resize:function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var r=this._opts;if(null!=e&&(r.width=e),null!=t&&(r.height=t),e=this._getSize(0),t=this._getSize(1),n.style.display="",this._width!==e||t!==this._height){for(var i in n.style.width=e+"px",n.style.height=t+"px",this._layers)this._layers.hasOwnProperty(i)&&this._layers[i].resize(e,t);o.each(this._progressiveLayers,(function(n){n.resize(e,t)})),this.refresh(!0)}this._width=e,this._height=t}else{if(null==e||null==t)return;this._width=e,this._height=t,this.getLayer(p).resize(e,t)}return this},clearLayer:function(e){var t=this._layers[e];t&&t.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[p].dom;var t=new u("image",this,e.pixelRatio||this.dpr);if(t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor),e.pixelRatio<=this.dpr){this.refresh();var n=t.dom.width,r=t.dom.height,i=t.ctx;this.eachLayer((function(e){e.__builtin__?i.drawImage(e.dom,0,0,n,r):e.renderToCanvas&&(t.ctx.save(),e.renderToCanvas(t.ctx),t.ctx.restore())}))}else for(var o={},a=this.storage.getDisplayList(!0),s=0;s<a.length;s++){var c=a[s];this._doPaintEl(c,t,!0,o)}return t.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(e){var t=this._opts,n=["width","height"][e],r=["clientWidth","clientHeight"][e],i=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(null!=t[n]&&"auto"!==t[n])return parseFloat(t[n]);var a=this.root,s=document.defaultView.getComputedStyle(a);return(a[r]||v(s[n])||v(a.style[n]))-(v(s[i])||0)-(v(s[o])||0)|0},pathToImage:function(e,t){t=t||this.dpr;var n=document.createElement("canvas"),r=n.getContext("2d"),i=e.getBoundingRect(),o=e.style,a=o.shadowBlur*t,s=o.shadowOffsetX*t,c=o.shadowOffsetY*t,u=o.hasStroke()?o.lineWidth:0,l=Math.max(u/2,-s+a),h=Math.max(u/2,s+a),f=Math.max(u/2,-c+a),p=Math.max(u/2,c+a),g=i.width+l+h,m=i.height+f+p;n.width=g*t,n.height=m*t,r.scale(t,t),r.clearRect(0,0,g,m),r.dpr=t;var v={position:e.position,rotation:e.rotation,scale:e.scale};e.position=[l-i.x,f-i.y],e.rotation=0,e.scale=[1,1],e.updateTransform(),e&&e.brush(r);var y=d,_=new y({style:{x:0,y:0,image:n}});return null!=v.position&&(_.position=e.position=v.position),null!=v.rotation&&(_.rotation=e.rotation=v.rotation),null!=v.scale&&(_.scale=e.scale=v.scale),_}};var M=C;e.exports=M},eda2:function(e,t,n){var r=n("6d8b"),i=n("e86a"),o=n("3842");function a(e){return isNaN(e)?"-":(e=(e+"").split("."),e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:""))}function s(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()})),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var c=r.normalizeCssArray,u=/([&<>"'])/g,l={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function d(e){return null==e?"":(e+"").replace(u,(function(e,t){return l[t]}))}var h=["a","b","c","d","e","f","g"],f=function(e,t){return"{"+e+(null==t?"":t)+"}"};function p(e,t,n){r.isArray(t)||(t=[t]);var i=t.length;if(!i)return"";for(var o=t[0].$vars||[],a=0;a<o.length;a++){var s=h[a];e=e.replace(f(s),f(s,0))}for(var c=0;c<i;c++)for(var u=0;u<o.length;u++){var l=t[c][o[u]];e=e.replace(f(h[u],c),n?d(l):l)}return e}function g(e,t,n){return r.each(t,(function(t,r){e=e.replace("{"+r+"}",n?d(t):t)})),e}function m(e,t){e=r.isString(e)?{color:e,extraCssText:t}:e||{};var n=e.color,i=e.type,o=(t=e.extraCssText,e.renderMode||"html"),a=e.markerId||"X";return n?"html"===o?"subItem"===i?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+d(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:'+d(n)+";"+(t||"")+'"></span>':{renderMode:o,content:"{marker"+a+"|}  ",style:{color:n}}:""}function v(e,t){return e+="","0000".substr(0,t-e.length)+e}function y(e,t,n){"week"!==e&&"month"!==e&&"quarter"!==e&&"half-year"!==e&&"year"!==e||(e="MM-dd\nyyyy");var r=o.parseDate(t),i=n?"UTC":"",a=r["get"+i+"FullYear"](),s=r["get"+i+"Month"]()+1,c=r["get"+i+"Date"](),u=r["get"+i+"Hours"](),l=r["get"+i+"Minutes"](),d=r["get"+i+"Seconds"](),h=r["get"+i+"Milliseconds"]();return e=e.replace("MM",v(s,2)).replace("M",s).replace("yyyy",a).replace("yy",a%100).replace("dd",v(c,2)).replace("d",c).replace("hh",v(u,2)).replace("h",u).replace("mm",v(l,2)).replace("m",l).replace("ss",v(d,2)).replace("s",d).replace("SSS",v(h,3)),e}function _(e){return e?e.charAt(0).toUpperCase()+e.substr(1):e}var b=i.truncateText;function S(e){return i.getBoundingRect(e.text,e.font,e.textAlign,e.textVerticalAlign,e.textPadding,e.textLineHeight,e.rich,e.truncate)}function x(e,t,n,r,o,a,s,c){return i.getBoundingRect(e,t,n,r,o,c,a,s)}function w(e,t){if("_blank"===t||"blank"===t){var n=window.open();n.opener=null,n.location=e}else window.open(e,t)}t.addCommas=a,t.toCamelCase=s,t.normalizeCssArray=c,t.encodeHTML=d,t.formatTpl=p,t.formatTplSimple=g,t.getTooltipMarker=m,t.formatTime=y,t.capitalFirst=_,t.truncateText=b,t.getTextBoundingRect=S,t.getTextRect=x,t.windowOpen=w},edaf:function(e,t,n){var r=n("6d8b"),i=n("6cb7"),o=n("6179"),a=n("e0d3"),s=i.extend({type:"timeline",layoutMode:"box",defaultOption:{zlevel:0,z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},init:function(e,t,n){this._data,this._names,this.mergeDefaultAndTheme(e,n),this._initData()},mergeOption:function(e){s.superApply(this,"mergeOption",arguments),this._initData()},setCurrentIndex:function(e){null==e&&(e=this.option.currentIndex);var t=this._data.count();this.option.loop?e=(e%t+t)%t:(e>=t&&(e=t-1),e<0&&(e=0)),this.option.currentIndex=e},getCurrentIndex:function(){return this.option.currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(e){this.option.autoPlay=!!e},getPlayState:function(){return!!this.option.autoPlay},_initData:function(){var e=this.option,t=e.data||[],n=e.axisType,i=this._names=[];if("category"===n){var s=[];r.each(t,(function(e,t){var n,o=a.getDataItemValue(e);r.isObject(e)?(n=r.clone(e),n.value=t):n=t,s.push(n),r.isString(o)||null!=o&&!isNaN(o)||(o=""),i.push(o+"")})),t=s}var c={category:"ordinal",time:"time"}[n]||"number",u=this._data=new o([{name:"value",type:c}],this);u.initData(t,i)},getData:function(){return this._data},getCategories:function(){if("category"===this.get("axisType"))return this._names.slice()}}),c=s;e.exports=c},edb9:function(e,t,n){var r=n("6d8b");function i(e,t){t=t||{};var n=e.coordinateSystem,i=e.axis,o={},a=i.position,s=i.orient,c=n.getRect(),u=[c.x,c.x+c.width,c.y,c.y+c.height],l={horizontal:{top:u[2],bottom:u[3]},vertical:{left:u[0],right:u[1]}};o.position=["vertical"===s?l.vertical[a]:u[0],"horizontal"===s?l.horizontal[a]:u[3]];var d={horizontal:0,vertical:1};o.rotation=Math.PI/2*d[s];var h={top:-1,bottom:1,right:1,left:-1};o.labelDirection=o.tickDirection=o.nameDirection=h[a],e.get("axisTick.inside")&&(o.tickDirection=-o.tickDirection),r.retrieve(t.labelInside,e.get("axisLabel.inside"))&&(o.labelDirection=-o.labelDirection);var f=t.rotate;return null==f&&(f=e.get("axisLabel.rotate")),o.labelRotation="top"===a?-f:f,o.z2=1,o}t.layout=i},ee1a:function(e,t,n){var r=n("6d8b"),i=r.each,o=r.isString;function a(e,t,n){n=n||{};var r,a,s,c,u=n.byIndex,l=n.stackedCoordDimension,d=!(!e||!e.get("stack"));if(i(t,(function(e,n){o(e)&&(t[n]=e={name:e}),d&&!e.isExtraCoord&&(u||r||!e.ordinalMeta||(r=e),a||"ordinal"===e.type||"time"===e.type||l&&l!==e.coordDim||(a=e))})),!a||u||r||(u=!0),a){s="__\0ecstackresult",c="__\0ecstackedover",r&&(r.createInvertedIndices=!0);var h=a.coordDim,f=a.type,p=0;i(t,(function(e){e.coordDim===h&&p++})),t.push({name:s,coordDim:h,coordDimIndex:p,type:f,isExtraCoord:!0,isCalculationCoord:!0}),p++,t.push({name:c,coordDim:c,coordDimIndex:p,type:f,isExtraCoord:!0,isCalculationCoord:!0})}return{stackedDimension:a&&a.name,stackedByDimension:r&&r.name,isStackedByIndex:u,stackedOverDimension:c,stackResultDimension:s}}function s(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function c(e,t){return s(e,t)?e.getCalculationInfo("stackResultDimension"):t}t.enableDataStack=a,t.isDimensionStacked=s,t.getStackedDimension=c},ee66:function(e,t,n){var r=n("3eba"),i=n("6d8b"),o=n("2306"),a=n("eda2"),s=n("3842"),c={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},u={EN:["S","M","T","W","T","F","S"],CN:["日","一","二","三","四","五","六"]},l=r.extendComponentView({type:"calendar",_tlpoints:null,_blpoints:null,_firstDayOfMonth:null,_firstDayPoints:null,render:function(e,t,n){var r=this.group;r.removeAll();var i=e.coordinateSystem,o=i.getRangeInfo(),a=i.getOrient();this._renderDayRect(e,o,r),this._renderLines(e,o,a,r),this._renderYearText(e,o,a,r),this._renderMonthText(e,a,r),this._renderWeekText(e,o,a,r)},_renderDayRect:function(e,t,n){for(var r=e.coordinateSystem,i=e.getModel("itemStyle").getItemStyle(),a=r.getCellWidth(),s=r.getCellHeight(),c=t.start.time;c<=t.end.time;c=r.getNextNDay(c,1).time){var u=r.dataToRect([c],!1).tl,l=new o.Rect({shape:{x:u[0],y:u[1],width:a,height:s},cursor:"default",style:i});n.add(l)}},_renderLines:function(e,t,n,r){var i=this,o=e.coordinateSystem,a=e.getModel("splitLine.lineStyle").getLineStyle(),s=e.get("splitLine.show"),c=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=t.start,l=0;u.time<=t.end.time;l++){h(u.formatedDate),0===l&&(u=o.getDateInfo(t.start.y+"-"+t.start.m));var d=u.date;d.setMonth(d.getMonth()+1),u=o.getDateInfo(d)}function h(t){i._firstDayOfMonth.push(o.getDateInfo(t)),i._firstDayPoints.push(o.dataToRect([t],!1).tl);var c=i._getLinePointsOfOneWeek(e,t,n);i._tlpoints.push(c[0]),i._blpoints.push(c[c.length-1]),s&&i._drawSplitline(c,a,r)}h(o.getNextNDay(t.end.time,1).formatedDate),s&&this._drawSplitline(i._getEdgesPoints(i._tlpoints,c,n),a,r),s&&this._drawSplitline(i._getEdgesPoints(i._blpoints,c,n),a,r)},_getEdgesPoints:function(e,t,n){var r=[e[0].slice(),e[e.length-1].slice()],i="horizontal"===n?0:1;return r[0][i]=r[0][i]-t/2,r[1][i]=r[1][i]+t/2,r},_drawSplitline:function(e,t,n){var r=new o.Polyline({z2:20,shape:{points:e},style:t});n.add(r)},_getLinePointsOfOneWeek:function(e,t,n){var r=e.coordinateSystem;t=r.getDateInfo(t);for(var i=[],o=0;o<7;o++){var a=r.getNextNDay(t.time,o),s=r.dataToRect([a.time],!1);i[2*a.day]=s.tl,i[2*a.day+1]=s["horizontal"===n?"bl":"tr"]}return i},_formatterLabel:function(e,t){return"string"===typeof e&&e?a.formatTplSimple(e,t):"function"===typeof e?e(t):t.nameMap},_yearTextPositionControl:function(e,t,n,r,i){t=t.slice();var o=["center","bottom"];"bottom"===r?(t[1]+=i,o=["center","top"]):"left"===r?t[0]-=i:"right"===r?(t[0]+=i,o=["center","top"]):t[1]-=i;var a=0;return"left"!==r&&"right"!==r||(a=Math.PI/2),{rotation:a,position:t,style:{textAlign:o[0],textVerticalAlign:o[1]}}},_renderYearText:function(e,t,n,r){var i=e.getModel("yearLabel");if(i.get("show")){var a=i.get("margin"),s=i.get("position");s||(s="horizontal"!==n?"top":"left");var c=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],u=(c[0][0]+c[1][0])/2,l=(c[0][1]+c[1][1])/2,d="horizontal"===n?0:1,h={top:[u,c[d][1]],bottom:[u,c[1-d][1]],left:[c[1-d][0],l],right:[c[d][0],l]},f=t.start.y;+t.end.y>+t.start.y&&(f=f+"-"+t.end.y);var p=i.get("formatter"),g={start:t.start.y,end:t.end.y,nameMap:f},m=this._formatterLabel(p,g),v=new o.Text({z2:30});o.setTextStyle(v.style,i,{text:m}),v.attr(this._yearTextPositionControl(v,h[s],n,s,a)),r.add(v)}},_monthTextPositionControl:function(e,t,n,r,i){var o="left",a="top",s=e[0],c=e[1];return"horizontal"===n?(c+=i,t&&(o="center"),"start"===r&&(a="bottom")):(s+=i,t&&(a="middle"),"start"===r&&(o="right")),{x:s,y:c,textAlign:o,textVerticalAlign:a}},_renderMonthText:function(e,t,n){var r=e.getModel("monthLabel");if(r.get("show")){var a=r.get("nameMap"),s=r.get("margin"),u=r.get("position"),l=r.get("align"),d=[this._tlpoints,this._blpoints];i.isString(a)&&(a=c[a.toUpperCase()]||[]);var h="start"===u?0:1,f="horizontal"===t?0:1;s="start"===u?-s:s;for(var p="center"===l,g=0;g<d[h].length-1;g++){var m=d[h][g].slice(),v=this._firstDayOfMonth[g];if(p){var y=this._firstDayPoints[g];m[f]=(y[f]+d[0][g+1][f])/2}var _=r.get("formatter"),b=a[+v.m-1],S={yyyy:v.y,yy:(v.y+"").slice(2),MM:v.m,M:+v.m,nameMap:b},x=this._formatterLabel(_,S),w=new o.Text({z2:30});i.extend(o.setTextStyle(w.style,r,{text:x}),this._monthTextPositionControl(m,p,t,u,s)),n.add(w)}}},_weekTextPositionControl:function(e,t,n,r,i){var o="center",a="middle",s=e[0],c=e[1],u="start"===n;return"horizontal"===t?(s=s+r+(u?1:-1)*i[0]/2,o=u?"right":"left"):(c=c+r+(u?1:-1)*i[1]/2,a=u?"bottom":"top"),{x:s,y:c,textAlign:o,textVerticalAlign:a}},_renderWeekText:function(e,t,n,r){var a=e.getModel("dayLabel");if(a.get("show")){var c=e.coordinateSystem,l=a.get("position"),d=a.get("nameMap"),h=a.get("margin"),f=c.getFirstDayOfWeek();i.isString(d)&&(d=u[d.toUpperCase()]||[]);var p=c.getNextNDay(t.end.time,7-t.lweek).time,g=[c.getCellWidth(),c.getCellHeight()];h=s.parsePercent(h,g["horizontal"===n?0:1]),"start"===l&&(p=c.getNextNDay(t.start.time,-(7+t.fweek)).time,h=-h);for(var m=0;m<7;m++){var v=c.getNextNDay(p,m),y=c.dataToRect([v.time],!1).center,_=m;_=Math.abs((m+f)%7);var b=new o.Text({z2:30});i.extend(o.setTextStyle(b.style,a,{text:d[_]}),this._weekTextPositionControl(y,n,l,h,g)),r.add(b)}}}});e.exports=l},ee84:function(e,t,n){var r=n("20c8"),i=n("401b"),o=i.applyTransform,a=r.CMD,s=[[],[],[]],c=Math.sqrt,u=Math.atan2;function l(e,t){var n,r,i,l,d,h=e.data,f=a.M,p=a.C,g=a.L,m=a.R,v=a.A,y=a.Q;for(i=0,l=0;i<h.length;){switch(n=h[i++],l=i,r=0,n){case f:r=1;break;case g:r=1;break;case p:r=3;break;case y:r=2;break;case v:var _=t[4],b=t[5],S=c(t[0]*t[0]+t[1]*t[1]),x=c(t[2]*t[2]+t[3]*t[3]),w=u(-t[1]/x,t[0]/S);h[i]*=S,h[i++]+=_,h[i]*=x,h[i++]+=b,h[i++]*=S,h[i++]*=x,h[i++]+=w,h[i++]+=w,i+=2,l=i;break;case m:I[0]=h[i++],I[1]=h[i++],o(I,I,t),h[l++]=I[0],h[l++]=I[1],I[0]+=h[i++],I[1]+=h[i++],o(I,I,t),h[l++]=I[0],h[l++]=I[1]}for(d=0;d<r;d++){var I=s[d];I[0]=h[i++],I[1]=h[i++],o(I,I,t),h[l++]=I[0],h[l++]=I[1]}}}e.exports=l},ee95:function(e,t,n){var r=n("3eba"),i=n("66a4");n("a04e"),n("3942"),n("dd7e"),n("347f"),r.registerPreprocessor(i)},ee98:function(e,t){function n(e){return e instanceof Array||(e=[e,e]),e}var r="lineStyle.opacity".split("."),i={seriesType:"lines",reset:function(e,t,i){var o=n(e.get("symbol")),a=n(e.get("symbolSize")),s=e.getData();function c(e,t){var i=e.getItemModel(t),o=n(i.getShallow("symbol",!0)),a=n(i.getShallow("symbolSize",!0)),s=i.get(r);o[0]&&e.setItemVisual(t,"fromSymbol",o[0]),o[1]&&e.setItemVisual(t,"toSymbol",o[1]),a[0]&&e.setItemVisual(t,"fromSymbolSize",a[0]),a[1]&&e.setItemVisual(t,"toSymbolSize",a[1]),e.setItemVisual(t,"opacity",s)}return s.setVisual("fromSymbol",o&&o[0]),s.setVisual("toSymbol",o&&o[1]),s.setVisual("fromSymbolSize",a&&a[0]),s.setVisual("toSymbolSize",a&&a[1]),s.setVisual("opacity",e.get(r)),{dataEach:s.hasItemOption?c:null}}};e.exports=i},eedf:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=86)}({0:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var c,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(c=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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=c):i&&(c=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(e,t){return c.call(t),l(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},86:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("button",{staticClass:"el-button",class:[e.type?"el-button--"+e.type:"",e.buttonSize?"el-button--"+e.buttonSize:"",{"is-disabled":e.buttonDisabled,"is-loading":e.loading,"is-plain":e.plain,"is-round":e.round,"is-circle":e.circle}],attrs:{disabled:e.buttonDisabled||e.loading,autofocus:e.autofocus,type:e.nativeType},on:{click:e.handleClick}},[e.loading?n("i",{staticClass:"el-icon-loading"}):e._e(),e.icon&&!e.loading?n("i",{class:e.icon}):e._e(),e.$slots.default?n("span",[e._t("default")],2):e._e()])},i=[];r._withStripped=!0;var o={name:"ElButton",inject:{elForm:{default:""},elFormItem:{default:""}},props:{type:{type:String,default:"default"},size:String,icon:{type:String,default:""},nativeType:{type:String,default:"button"},loading:Boolean,disabled:Boolean,plain:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},buttonSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},buttonDisabled:function(){return this.disabled||(this.elForm||{}).disabled}},methods:{handleClick:function(e){this.$emit("click",e)}}},a=o,s=n(0),c=Object(s["a"])(a,r,i,!1,null,null,null);c.options.__file="packages/button/src/button.vue";var u=c.exports;u.install=function(e){e.component(u.name,u)};t["default"]=u}})},eeea:function(e,t,n){var r=n("4e08"),i=(r.__DEV__,n("3eba")),o=n("6d8b"),a=n("0141"),s=n("f934"),c=n("3842"),u=n("5b87"),l=n("ec34");function d(e,t){var n=e.get("boundingCoords");if(null!=n){var r=n[0],i=n[1];isNaN(r[0])||isNaN(r[1])||isNaN(i[0])||isNaN(i[1])||this.setBoundingRect(r[0],r[1],i[0]-r[0],i[1]-r[1])}var o,a=this.getBoundingRect(),u=e.get("layoutCenter"),l=e.get("layoutSize"),d=t.getWidth(),h=t.getHeight(),f=a.width/a.height*this.aspectScale,p=!1;if(u&&l&&(u=[c.parsePercent(u[0],d),c.parsePercent(u[1],h)],l=c.parsePercent(l,Math.min(d,h)),isNaN(u[0])||isNaN(u[1])||isNaN(l)||(p=!0)),p){var g={};f>1?(g.width=l,g.height=l/f):(g.height=l,g.width=l*f),g.y=u[1]-g.height/2,g.x=u[0]-g.width/2}else o=e.getBoxLayoutParams(),o.aspect=f,g=s.getLayoutRect(o,{width:d,height:h});this.setViewRect(g.x,g.y,g.width,g.height),this.setCenter(e.get("center")),this.setZoom(e.get("zoom"))}function h(e,t){o.each(t.get("geoCoord"),(function(t,n){e.addGeoCoord(n,t)}))}var f={dimensions:a.prototype.dimensions,create:function(e,t){var n=[];e.eachComponent("geo",(function(e,r){var i=e.get("map"),o=e.get("aspectScale"),s=!0,c=l.retrieveMap(i);c&&c[0]&&"svg"===c[0].type?(null==o&&(o=1),s=!1):null==o&&(o=.75);var u=new a(i+r,i,e.get("nameMap"),s);u.aspectScale=o,u.zoomLimit=e.get("scaleLimit"),n.push(u),h(u,e),e.coordinateSystem=u,u.model=e,u.resize=d,u.resize(e,t)})),e.eachSeries((function(e){var t=e.get("coordinateSystem");if("geo"===t){var r=e.get("geoIndex")||0;e.coordinateSystem=n[r]}}));var r={};return e.eachSeriesByType("map",(function(e){if(!e.getHostGeoModel()){var t=e.getMapType();r[t]=r[t]||[],r[t].push(e)}})),o.each(r,(function(e,r){var i=o.map(e,(function(e){return e.get("nameMap")})),s=new a(r,r,o.mergeAll(i));s.zoomLimit=o.retrieve.apply(null,o.map(e,(function(e){return e.get("scaleLimit")}))),n.push(s),s.resize=d,s.aspectScale=e[0].get("aspectScale"),s.resize(e[0],t),o.each(e,(function(e){e.coordinateSystem=s,h(s,e)}))})),n},getFilledRegions:function(e,t,n){for(var r=(e||[]).slice(),i=o.createHashMap(),a=0;a<r.length;a++)i.set(r[a].name,r[a]);var s=u.load(t,n);return o.each(s.regions,(function(e){var t=e.name;!i.get(t)&&r.push({name:t})})),r}};i.registerCoordinateSystem("geo",f);var p=f;e.exports=p},ef2b:function(e,t,n){var r=n("401b"),i=r.scaleAndAdd;function o(e,t,n){for(var o=n.rect,a=o.width,s=o.height,c=[o.x+a/2,o.y+s/2],u=null==n.gravity?.1:n.gravity,l=0;l<e.length;l++){var d=e[l];d.p||(d.p=r.create(a*(Math.random()-.5)+c[0],s*(Math.random()-.5)+c[1])),d.pp=r.clone(d.p),d.edges=null}var h=null==n.friction?.6:n.friction,f=h;return{warmUp:function(){f=.8*h},setFixed:function(t){e[t].fixed=!0},setUnfixed:function(t){e[t].fixed=!1},step:function(n){for(var o=[],a=e.length,s=0;s<t.length;s++){var l=t[s];if(!l.ignoreForceLayout){var d=l.n1,h=l.n2;r.sub(o,h.p,d.p);var p=r.len(o)-l.d,g=h.w/(d.w+h.w);isNaN(g)&&(g=0),r.normalize(o,o),!d.fixed&&i(d.p,d.p,o,g*p*f),!h.fixed&&i(h.p,h.p,o,-(1-g)*p*f)}}for(s=0;s<a;s++){var m=e[s];m.fixed||(r.sub(o,c,m.p),i(m.p,m.p,o,u*f))}for(s=0;s<a;s++){d=e[s];for(var v=s+1;v<a;v++){h=e[v];r.sub(o,h.p,d.p);p=r.len(o);0===p&&(r.set(o,Math.random()-.5,Math.random()-.5),p=1);var y=(d.rep+h.rep)/p/p;!d.fixed&&i(d.pp,d.pp,o,y),!h.fixed&&i(h.pp,h.pp,o,-y)}}var _=[];for(s=0;s<a;s++){m=e[s];m.fixed||(r.sub(_,m.p,m.pp),i(m.p,m.p,_,f),r.copy(m.pp,m.p))}f*=.992,n&&n(e,t,f<.01)}}}t.forceLayout=o},ef6a:function(e,t){function n(e,t,n,o,a,s){e=e||0;var c=n[1]-n[0];if(null!=a&&(a=i(a,[0,c])),null!=s&&(s=Math.max(s,null!=a?a:0)),"all"===o){var u=Math.abs(t[1]-t[0]);u=i(u,[0,c]),a=s=i(u,[a,s]),o=0}t[0]=i(t[0],n),t[1]=i(t[1],n);var l=r(t,o);t[o]+=e;var d=a||0,h=n.slice();l.sign<0?h[0]+=d:h[1]-=d,t[o]=i(t[o],h);var f=r(t,o);null!=a&&(f.sign!==l.sign||f.span<a)&&(t[1-o]=t[o]+l.sign*a);f=r(t,o);return null!=s&&f.span>s&&(t[1-o]=t[o]+f.sign*s),t}function r(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function i(e,t){return Math.min(null!=t[1]?t[1]:1/0,Math.max(null!=t[0]?t[0]:-1/0,e))}e.exports=n},ef97:function(e,t,n){var r=n("3eba");n("217b"),n("f17f");var i=n("7f96"),o=n("87c3"),a=n("fdde");n("01ed"),r.registerVisual(i("line","circle","line")),r.registerLayout(o("line")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,a("line"))},ef97a:function(e,t,n){var r=n("3eba");n("2163"),n("6cd8"),n("bf9b");var i=n("7f96"),o=n("ca29");r.registerVisual(i("tree","circle")),r.registerLayout(o)},f069:function(e,t,n){"use strict";var r=n("59ed"),i=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new i(e)}},f0d9:function(e,t,n){"use strict";t.__esModule=!0,t.default={el:{colorpicker:{confirm:"确定",clear:"清空"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},empty:{description:"暂无数据"}}}},f111:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.barConfig=void 0;var r={show:!0,name:"",stack:"",shapeType:"normal",echelonOffset:10,barWidth:"auto",barGap:"30%",barCategoryGap:"20%",xAxisIndex:0,yAxisIndex:0,data:[],backgroundBar:{show:!1,width:"auto",style:{fill:"rgba(200, 200, 200, .4)"}},label:{show:!1,position:"top",offset:[0,-10],formatter:null,style:{fontSize:10}},gradient:{color:[],local:!0},barStyle:{},independentColor:!1,independentColors:[],rLevel:0,animationCurve:"easeOutCubic",animationFrame:50};t.barConfig=r},f123:function(e,t,n){var r=n("9f82"),i=r.prepareDataCoordInfo,o=r.getStackedOnPoint;function a(e,t){var n=[];return t.diff(e).add((function(e){n.push({cmd:"+",idx:e})})).update((function(e,t){n.push({cmd:"=",idx:t,idx1:e})})).remove((function(e){n.push({cmd:"-",idx:e})})).execute(),n}function s(e,t,n,r,s,c,u,l){for(var d=a(e,t),h=[],f=[],p=[],g=[],m=[],v=[],y=[],_=i(s,t,u),b=i(c,e,l),S=0;S<d.length;S++){var x=d[S],w=!0;switch(x.cmd){case"=":var I=e.getItemLayout(x.idx),C=t.getItemLayout(x.idx1);(isNaN(I[0])||isNaN(I[1]))&&(I=C.slice()),h.push(I),f.push(C),p.push(n[x.idx]),g.push(r[x.idx1]),y.push(t.getRawIndex(x.idx1));break;case"+":var M=x.idx;h.push(s.dataToPoint([t.get(_.dataDimsForPoint[0],M),t.get(_.dataDimsForPoint[1],M)])),f.push(t.getItemLayout(M).slice()),p.push(o(_,s,t,M)),g.push(r[M]),y.push(t.getRawIndex(M));break;case"-":M=x.idx;var T=e.getRawIndex(M);T!==M?(h.push(e.getItemLayout(M)),f.push(c.dataToPoint([e.get(b.dataDimsForPoint[0],M),e.get(b.dataDimsForPoint[1],M)])),p.push(n[M]),g.push(o(b,c,e,M)),y.push(T)):w=!1}w&&(m.push(x),v.push(v.length))}v.sort((function(e,t){return y[e]-y[t]}));var k=[],E=[],A=[],D=[],O=[];for(S=0;S<v.length;S++){M=v[S];k[S]=h[M],E[S]=f[M],A[S]=p[M],D[S]=g[M],O[S]=m[M]}return{current:k,next:E,stackedOnCurrent:A,stackedOnNext:D,status:O}}e.exports=s},f138:function(e,t,n){var r=n("dcb3"),i=n("ff2e"),o=n("edb9"),a=n("6679"),s=["x","y"],c=["width","height"],u=r.extend({makeElOption:function(e,t,n,r,a){var s=n.axis,c=s.coordinateSystem,u=h(c,1-d(s)),f=c.dataToPoint(t)[0],p=r.get("type");if(p&&"none"!==p){var g=i.buildElStyle(r),m=l[p](s,f,u);m.style=g,e.graphicKey=m.type,e.pointer=m}var v=o.layout(n);i.buildCartesianSingleLabelElOption(t,e,v,n,r,a)},getHandleTransform:function(e,t,n){var r=o.layout(t,{labelInside:!1});return r.labelMargin=n.get("handle.margin"),{position:i.getTransformedPosition(t.axis,e,r),rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(e,t,n,r){var i=n.axis,o=i.coordinateSystem,a=d(i),s=h(o,a),c=e.position;c[a]+=t[a],c[a]=Math.min(s[1],c[a]),c[a]=Math.max(s[0],c[a]);var u=h(o,1-a),l=(u[1]+u[0])/2,f=[l,l];return f[a]=c[a],{position:c,rotation:e.rotation,cursorPoint:f,tooltipOption:{verticalAlign:"middle"}}}}),l={line:function(e,t,n){var r=i.makeLineShape([t,n[0]],[t,n[1]],d(e));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(e,t,n){var r=e.getBandWidth(),o=n[1]-n[0];return{type:"Rect",shape:i.makeRectShape([t-r/2,n[0]],[r,o],d(e))}}};function d(e){return e.isHorizontal()?0:1}function h(e,t){var n=e.getRect();return[n[s[t]],n[s[t]]+n[c[t]]]}a.registerAxisPointerClass("SingleAxisPointer",u);var f=u;e.exports=f},f14c:function(e,t,n){var r=n("84d5"),i=n("f934"),o=i.mergeLayoutParam,a=i.getLayoutParams,s=r.extend({type:"legend.scroll",setScrollDataIndex:function(e){this.option.scrollDataIndex=e},defaultOption:{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800},init:function(e,t,n,r){var i=a(e);s.superCall(this,"init",e,t,n,r),c(this,e,i)},mergeOption:function(e,t){s.superCall(this,"mergeOption",e,t),c(this,this.option,e)}});function c(e,t,n){var r=e.getOrient(),i=[1,1];i[r.index]=0,o(t,n,{type:"box",ignoreSize:i})}var u=s;e.exports=u},f170:function(e,t,n){n("a87d");var r=n("697e7"),i=r.registerPainter,o=n("e9f9");i("vml",o)},f17f:function(e,t,n){var r=n("4e08"),i=(r.__DEV__,n("6d8b")),o=n("e263"),a=o.fromPoints,s=n("f706"),c=n("1418"),u=n("f123"),l=n("2306"),d=n("e0d3"),h=n("d4d1"),f=h.Polyline,p=h.Polygon,g=n("e887"),m=n("9f82"),v=m.prepareDataCoordInfo,y=m.getStackedOnPoint,_=n("b0af"),b=_.createGridClipPath,S=_.createPolarClipPath;function x(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++){var r=e[n],i=t[n];if(r[0]!==i[0]||r[1]!==i[1])return}return!0}}function w(e,t){var n=[],r=[],i=[],o=[];return a(e,n,r),a(t,i,o),Math.max(Math.abs(n[0]-i[0]),Math.abs(n[1]-i[1]),Math.abs(r[0]-o[0]),Math.abs(r[1]-o[1]))}function I(e){return"number"===typeof e?e:e?.5:0}function C(e,t,n){if(!n.valueDim)return[];for(var r=[],i=0,o=t.count();i<o;i++)r.push(y(n,e,t,i));return r}function M(e,t,n){for(var r=t.getBaseAxis(),i="x"===r.dim||"radius"===r.dim?0:1,o=[],a=0;a<e.length-1;a++){var s=e[a+1],c=e[a];o.push(c);var u=[];switch(n){case"end":u[i]=s[i],u[1-i]=c[1-i],o.push(u);break;case"middle":var l=(c[i]+s[i])/2,d=[];u[i]=d[i]=l,u[1-i]=c[1-i],d[1-i]=s[1-i],o.push(u),o.push(d);break;default:u[i]=c[i],u[1-i]=s[1-i],o.push(u)}}return e[a]&&o.push(e[a]),o}function T(e,t){var n=e.getVisual("visualMeta");if(n&&n.length&&e.count()&&"cartesian2d"===t.type){for(var r,o,a=n.length-1;a>=0;a--){var s=n[a].dimension,c=e.dimensions[s],u=e.getDimensionInfo(c);if(r=u&&u.coordDim,"x"===r||"y"===r){o=n[a];break}}if(o){var d=t.getAxis(r),h=i.map(o.stops,(function(e){return{coord:d.toGlobalCoord(d.dataToCoord(e.value)),color:e.color}})),f=h.length,p=o.outerColors.slice();f&&h[0].coord>h[f-1].coord&&(h.reverse(),p.reverse());var g=10,m=h[0].coord-g,v=h[f-1].coord+g,y=v-m;if(y<.001)return"transparent";i.each(h,(function(e){e.offset=(e.coord-m)/y})),h.push({offset:f?h[f-1].offset:.5,color:p[1]||"transparent"}),h.unshift({offset:f?h[0].offset:.5,color:p[0]||"transparent"});var _=new l.LinearGradient(0,0,0,0,h,!0);return _[r]=m,_[r+"2"]=v,_}}}function k(e,t,n){var r=e.get("showAllSymbol"),o="auto"===r;if(!r||o){var a=n.getAxesByScale("ordinal")[0];if(a&&(!o||!E(a,t))){var s=t.mapDimension(a.dim),c={};return i.each(a.getViewLabels(),(function(e){c[e.tickValue]=1})),function(e){return!c.hasOwnProperty(t.get(s,e))}}}}function E(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var i=t.count(),o=Math.max(1,Math.round(i/5)),a=0;a<i;a+=o)if(1.5*c.getSymbolSize(t,a)[e.isHorizontal()?1:0]>r)return!1;return!0}function A(e,t,n){if("cartesian2d"===e.type){var r=e.getBaseAxis().isHorizontal(),i=b(e,t,n);if(!n.get("clip",!0)){var o=i.shape,a=Math.max(o.width,o.height);r?(o.y-=a,o.height+=2*a):(o.x-=a,o.width+=2*a)}return i}return S(e,t,n)}var D=g.extend({type:"line",init:function(){var e=new l.Group,t=new s;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e},render:function(e,t,n){var r=e.coordinateSystem,o=this.group,a=e.getData(),s=e.getModel("lineStyle"),c=e.getModel("areaStyle"),u=a.mapArray(a.getItemLayout),l="polar"===r.type,d=this._coordSys,h=this._symbolDraw,f=this._polyline,p=this._polygon,g=this._lineGroup,m=e.get("animation"),y=!c.isEmpty(),_=c.get("origin"),b=v(r,a,_),S=C(r,a,b),w=e.get("showSymbol"),E=w&&!l&&k(e,a,r),D=this._data;D&&D.eachItemGraphicEl((function(e,t){e.__temp&&(o.remove(e),D.setItemGraphicEl(t,null))})),w||h.remove(),o.add(g);var O,R=!l&&e.get("step");r&&r.getArea&&e.get("clip",!0)&&(O=r.getArea(),null!=O.width?(O.x-=.1,O.y-=.1,O.width+=.2,O.height+=.2):O.r0&&(O.r0-=.5,O.r1+=.5)),this._clipShapeForSymbol=O,f&&d.type===r.type&&R===this._step?(y&&!p?p=this._newPolygon(u,S,r,m):p&&!y&&(g.remove(p),p=this._polygon=null),g.setClipPath(A(r,!1,e)),w&&h.updateData(a,{isIgnore:E,clipShape:O}),a.eachItemGraphicEl((function(e){e.stopAnimation(!0)})),x(this._stackedOnPoints,S)&&x(this._points,u)||(m?this._updateAnimation(a,S,r,n,R,_):(R&&(u=M(u,r,R),S=M(S,r,R)),f.setShape({points:u}),p&&p.setShape({points:u,stackedOnPoints:S})))):(w&&h.updateData(a,{isIgnore:E,clipShape:O}),R&&(u=M(u,r,R),S=M(S,r,R)),f=this._newPolyline(u,r,m),y&&(p=this._newPolygon(u,S,r,m)),g.setClipPath(A(r,!0,e)));var L=T(a,r)||a.getVisual("color");f.useStyle(i.defaults(s.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"}));var P=e.get("smooth");if(P=I(e.get("smooth")),f.setShape({smooth:P,smoothMonotone:e.get("smoothMonotone"),connectNulls:e.get("connectNulls")}),p){var N=a.getCalculationInfo("stackedOnSeries"),U=0;p.useStyle(i.defaults(c.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel"})),N&&(U=I(N.get("smooth"))),p.setShape({smooth:P,stackedOnSmooth:U,smoothMonotone:e.get("smoothMonotone"),connectNulls:e.get("connectNulls")})}this._data=a,this._coordSys=r,this._stackedOnPoints=S,this._points=u,this._step=R,this._valueOrigin=_},dispose:function(){},highlight:function(e,t,n,r){var i=e.getData(),o=d.queryDataIndex(i,r);if(!(o instanceof Array)&&null!=o&&o>=0){var a=i.getItemGraphicEl(o);if(!a){var s=i.getItemLayout(o);if(!s)return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(s[0],s[1]))return;a=new c(i,o),a.position=s,a.setZ(e.get("zlevel"),e.get("z")),a.ignore=isNaN(s[0])||isNaN(s[1]),a.__temp=!0,i.setItemGraphicEl(o,a),a.stopSymbolAnimation(!0),this.group.add(a)}a.highlight()}else g.prototype.highlight.call(this,e,t,n,r)},downplay:function(e,t,n,r){var i=e.getData(),o=d.queryDataIndex(i,r);if(null!=o&&o>=0){var a=i.getItemGraphicEl(o);a&&(a.__temp?(i.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else g.prototype.downplay.call(this,e,t,n,r)},_newPolyline:function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new f({shape:{points:e},silent:!0,z2:10}),this._lineGroup.add(t),this._polyline=t,t},_newPolygon:function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new p({shape:{points:e,stackedOnPoints:t},silent:!0}),this._lineGroup.add(n),this._polygon=n,n},_updateAnimation:function(e,t,n,r,i,o){var a=this._polyline,s=this._polygon,c=e.hostModel,d=u(this._data,e,this._stackedOnPoints,t,this._coordSys,n,this._valueOrigin,o),h=d.current,f=d.stackedOnCurrent,p=d.next,g=d.stackedOnNext;if(i&&(h=M(d.current,n,i),f=M(d.stackedOnCurrent,n,i),p=M(d.next,n,i),g=M(d.stackedOnNext,n,i)),w(h,p)>3e3||s&&w(f,g)>3e3)return a.setShape({points:p}),void(s&&s.setShape({points:p,stackedOnPoints:g}));a.shape.__points=d.current,a.shape.points=h,l.updateProps(a,{shape:{points:p}},c),s&&(s.setShape({points:h,stackedOnPoints:f}),l.updateProps(s,{shape:{points:p,stackedOnPoints:g}},c));for(var m=[],v=d.status,y=0;y<v.length;y++){var _=v[y].cmd;if("="===_){var b=e.getItemGraphicEl(v[y].idx1);b&&m.push({el:b,ptIdx:y})}}a.animators&&a.animators.length&&a.animators[0].during((function(){for(var e=0;e<m.length;e++){var t=m[e].el;t.attr("position",a.shape.__points[m[e].ptIdx])}}))},remove:function(e){var t=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl((function(e,r){e.__temp&&(t.remove(e),n.setItemGraphicEl(r,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._data=null}});e.exports=D},f183:function(e,t,n){var r=n("23e7"),i=n("e330"),o=n("d012"),a=n("861d"),s=n("1a2d"),c=n("9bf2").f,u=n("241c"),l=n("057f"),d=n("4fad"),h=n("90e3"),f=n("bb2f"),p=!1,g=h("meta"),m=0,v=function(e){c(e,g,{value:{objectID:"O"+m++,weakData:{}}})},y=function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,g)){if(!d(e))return"F";if(!t)return"E";v(e)}return e[g].objectID},_=function(e,t){if(!s(e,g)){if(!d(e))return!0;if(!t)return!1;v(e)}return e[g].weakData},b=function(e){return f&&p&&d(e)&&!s(e,g)&&v(e),e},S=function(){x.enable=function(){},p=!0;var e=u.f,t=i([].splice),n={};n[g]=1,e(n).length&&(u.f=function(n){for(var r=e(n),i=0,o=r.length;i<o;i++)if(r[i]===g){t(r,i,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:l.f}))},x=e.exports={enable:S,fastKey:y,getWeakData:_,onFreeze:b};o[g]=!0},f219:function(e,t){var n="#eee",r=function(){return{axisLine:{lineStyle:{color:n}},axisTick:{lineStyle:{color:n}},axisLabel:{textStyle:{color:n}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:n}}}},i=["#dd6b66","#759aa0","#e69d87","#8dc1a9","#ea7e53","#eedd78","#73a373","#73b9bc","#7289ab","#91ca8c","#f49f42"],o={color:i,backgroundColor:"#333",tooltip:{axisPointer:{lineStyle:{color:n},crossStyle:{color:n},label:{color:"#000"}}},legend:{textStyle:{color:n}},textStyle:{color:n},title:{textStyle:{color:n}},toolbox:{iconStyle:{normal:{borderColor:n}}},dataZoom:{textStyle:{color:n}},visualMap:{textStyle:{color:n}},timeline:{lineStyle:{color:n},itemStyle:{normal:{color:i[1]}},label:{normal:{textStyle:{color:n}}},controlStyle:{normal:{color:n,borderColor:n}}},timeAxis:r(),logAxis:r(),valueAxis:r(),categoryAxis:r(),line:{symbol:"circle"},graph:{color:i},gauge:{title:{textStyle:{color:n}}},candlestick:{itemStyle:{normal:{color:"#FD1050",color0:"#0CF49B",borderColor:"#FD1050",borderColor0:"#0CF49B"}}}};o.categoryAxis.splitLine.show=!1;var a=o;e.exports=a},f273:function(e,t,n){var r=n("6d8b"),i=n("2306"),o=n("fab2"),a=n("6679"),s=n("0156"),c=n("58df"),u=c.rectCoordAxisBuildSplitArea,l=c.rectCoordAxisHandleRemove,d=["axisLine","axisTickLabel","axisName"],h=["splitArea","splitLine","minorSplitLine"],f=a.extend({type:"cartesianAxis",axisPointerClass:"CartesianAxisPointer",render:function(e,t,n,a){this.group.removeAll();var c=this._axisGroup;if(this._axisGroup=new i.Group,this.group.add(this._axisGroup),e.get("show")){var u=e.getCoordSysModel(),l=s.layout(u,e),p=new o(e,l);r.each(d,p.add,p),this._axisGroup.add(p.getGroup()),r.each(h,(function(t){e.get(t+".show")&&this["_"+t](e,u)}),this),i.groupTransition(c,this._axisGroup,e),f.superCall(this,"render",e,t,n,a)}},remove:function(){l(this)},_splitLine:function(e,t){var n=e.axis;if(!n.scale.isBlank()){var o=e.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=r.isArray(s)?s:[s];for(var c=t.coordinateSystem.getRect(),u=n.isHorizontal(),l=0,d=n.getTicksCoords({tickModel:o}),h=[],f=[],p=a.getLineStyle(),g=0;g<d.length;g++){var m=n.toGlobalCoord(d[g].coord);u?(h[0]=m,h[1]=c.y,f[0]=m,f[1]=c.y+c.height):(h[0]=c.x,h[1]=m,f[0]=c.x+c.width,f[1]=m);var v=l++%s.length,y=d[g].tickValue;this._axisGroup.add(new i.Line({anid:null!=y?"line_"+d[g].tickValue:null,subPixelOptimize:!0,shape:{x1:h[0],y1:h[1],x2:f[0],y2:f[1]},style:r.defaults({stroke:s[v]},p),silent:!0}))}}},_minorSplitLine:function(e,t){var n=e.axis,r=e.getModel("minorSplitLine"),o=r.getModel("lineStyle"),a=t.coordinateSystem.getRect(),s=n.isHorizontal(),c=n.getMinorTicksCoords();if(c.length)for(var u=[],l=[],d=o.getLineStyle(),h=0;h<c.length;h++)for(var f=0;f<c[h].length;f++){var p=n.toGlobalCoord(c[h][f].coord);s?(u[0]=p,u[1]=a.y,l[0]=p,l[1]=a.y+a.height):(u[0]=a.x,u[1]=p,l[0]=a.x+a.width,l[1]=p),this._axisGroup.add(new i.Line({anid:"minor_line_"+c[h][f].tickValue,subPixelOptimize:!0,shape:{x1:u[0],y1:u[1],x2:l[0],y2:l[1]},style:d,silent:!0}))}},_splitArea:function(e,t){u(this,this._axisGroup,e,t)}});f.extend({type:"xAxis"}),f.extend({type:"yAxis"})},f279:function(e,t,n){var r=n("9850"),i=n("e263"),o=n("401b"),a=n("0655");function s(e,t,n){if(this.name=e,this.geometries=t,n)n=[n[0],n[1]];else{var r=this.getBoundingRect();n=[r.x+r.width/2,r.y+r.height/2]}this.center=n}s.prototype={constructor:s,properties:null,getBoundingRect:function(){var e=this._rect;if(e)return e;for(var t=Number.MAX_VALUE,n=[t,t],a=[-t,-t],s=[],c=[],u=this.geometries,l=0;l<u.length;l++)if("polygon"===u[l].type){var d=u[l].exterior;i.fromPoints(d,s,c),o.min(n,n,s),o.max(a,a,c)}return 0===l&&(n[0]=n[1]=a[0]=a[1]=0),this._rect=new r(n[0],n[1],a[0]-n[0],a[1]-n[1])},contain:function(e){var t=this.getBoundingRect(),n=this.geometries;if(!t.contain(e[0],e[1]))return!1;e:for(var r=0,i=n.length;r<i;r++)if("polygon"===n[r].type){var o=n[r].exterior,s=n[r].interiors;if(a.contain(o,e[0],e[1])){for(var c=0;c<(s?s.length:0);c++)if(a.contain(s[c]))continue e;return!0}}return!1},transformTo:function(e,t,n,i){var a=this.getBoundingRect(),s=a.width/a.height;n?i||(i=n/s):n=s*i;for(var c=new r(e,t,n,i),u=a.calculateTransform(c),l=this.geometries,d=0;d<l.length;d++)if("polygon"===l[d].type){for(var h=l[d].exterior,f=l[d].interiors,p=0;p<h.length;p++)o.applyTransform(h[p],h[p],u);for(var g=0;g<(f?f.length:0);g++)for(p=0;p<f[g].length;p++)o.applyTransform(f[g][p],f[g][p],u)}a=this._rect,a.copy(c),this.center=[a.x+a.width/2,a.y+a.height/2]},cloneShallow:function(e){null==e&&(e=this.name);var t=new s(e,this.geometries,this.center);return t._rect=this._rect,t.transformTo=null,t}};var c=s;e.exports=c},f306:function(e,t,n){var r=n("3eba"),i=n("6d8b"),o=n("88b3"),a=n("6569");n("849b"),n("217c"),n("c515");var s=5;r.extendComponentView({type:"parallel",render:function(e,t,n){this._model=e,this._api=n,this._handlers||(this._handlers={},i.each(c,(function(e,t){n.getZr().on(t,this._handlers[t]=i.bind(e,this))}),this)),o.createOrUpdate(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},dispose:function(e,t){i.each(this._handlers,(function(e,n){t.getZr().off(n,e)})),this._handlers=null},_throttledDispatchExpand:function(e){this._dispatchExpand(e)},_dispatchExpand:function(e){e&&this._api.dispatchAction(i.extend({type:"parallelAxisExpand"},e))}});var c={mousedown:function(e){u(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(u(this,"click")&&t){var n=[e.offsetX,e.offsetY],r=Math.pow(t[0]-n[0],2)+Math.pow(t[1]-n[1],2);if(r>s)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);"none"!==i.behavior&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!this._mouseDownPoint&&u(this,"mousemove")){var t=this._model,n=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),r=n.behavior;"jump"===r&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===r?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===r&&null})}}};function u(e,t){var n=e._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===t}r.registerPreprocessor(a)},f31f:function(e,t,n){var r=n("4e08"),i=(r.__DEV__,n("3eba")),o=n("6d8b"),a=n("2b8c"),s=n("4319"),c=["#ddd"],u=i.extendComponentModel({type:"brush",dependencies:["geo","grid","xAxis","yAxis","parallel","series"],defaultOption:{toolbox:null,brushLink:null,seriesIndex:"all",geoIndex:null,xAxisIndex:null,yAxisIndex:null,brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(120,140,180,0.3)",borderColor:"rgba(120,140,180,0.8)"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},areas:[],brushType:null,brushOption:{},coordInfoList:[],optionUpdated:function(e,t){var n=this.option;!t&&a.replaceVisualOption(n,e,["inBrush","outOfBrush"]);var r=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:c},r.hasOwnProperty("liftZ")||(r.liftZ=5)},setAreas:function(e){e&&(this.areas=o.map(e,(function(e){return l(this.option,e)}),this))},setBrushOption:function(e){this.brushOption=l(this.option,e),this.brushType=this.brushOption.brushType}});function l(e,t){return o.merge({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new s(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var d=u;e.exports=d},f36a:function(e,t,n){var r=n("e330");e.exports=r([].slice)},f3ad:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=73)}({0:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var c,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(c=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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=c):i&&(c=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(e,t){return c.call(t),l(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},11:function(e,t){e.exports=n("2bb5")},21:function(e,t){e.exports=n("d397")},4:function(e,t){e.exports=n("d010")},73:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["textarea"===e.type?"el-textarea":"el-input",e.inputSize?"el-input--"+e.inputSize:"",{"is-disabled":e.inputDisabled,"is-exceed":e.inputExceed,"el-input-group":e.$slots.prepend||e.$slots.append,"el-input-group--append":e.$slots.append,"el-input-group--prepend":e.$slots.prepend,"el-input--prefix":e.$slots.prefix||e.prefixIcon,"el-input--suffix":e.$slots.suffix||e.suffixIcon||e.clearable||e.showPassword}],on:{mouseenter:function(t){e.hovering=!0},mouseleave:function(t){e.hovering=!1}}},["textarea"!==e.type?[e.$slots.prepend?n("div",{staticClass:"el-input-group__prepend"},[e._t("prepend")],2):e._e(),"textarea"!==e.type?n("input",e._b({ref:"input",staticClass:"el-input__inner",attrs:{tabindex:e.tabindex,type:e.showPassword?e.passwordVisible?"text":"password":e.type,disabled:e.inputDisabled,readonly:e.readonly,autocomplete:e.autoComplete||e.autocomplete,"aria-label":e.label},on:{compositionstart:e.handleCompositionStart,compositionupdate:e.handleCompositionUpdate,compositionend:e.handleCompositionEnd,input:e.handleInput,focus:e.handleFocus,blur:e.handleBlur,change:e.handleChange}},"input",e.$attrs,!1)):e._e(),e.$slots.prefix||e.prefixIcon?n("span",{staticClass:"el-input__prefix"},[e._t("prefix"),e.prefixIcon?n("i",{staticClass:"el-input__icon",class:e.prefixIcon}):e._e()],2):e._e(),e.getSuffixVisible()?n("span",{staticClass:"el-input__suffix"},[n("span",{staticClass:"el-input__suffix-inner"},[e.showClear&&e.showPwdVisible&&e.isWordLimitVisible?e._e():[e._t("suffix"),e.suffixIcon?n("i",{staticClass:"el-input__icon",class:e.suffixIcon}):e._e()],e.showClear?n("i",{staticClass:"el-input__icon el-icon-circle-close el-input__clear",on:{mousedown:function(e){e.preventDefault()},click:e.clear}}):e._e(),e.showPwdVisible?n("i",{staticClass:"el-input__icon el-icon-view el-input__clear",on:{click:e.handlePasswordVisible}}):e._e(),e.isWordLimitVisible?n("span",{staticClass:"el-input__count"},[n("span",{staticClass:"el-input__count-inner"},[e._v("\n            "+e._s(e.textLength)+"/"+e._s(e.upperLimit)+"\n          ")])]):e._e()],2),e.validateState?n("i",{staticClass:"el-input__icon",class:["el-input__validateIcon",e.validateIcon]}):e._e()]):e._e(),e.$slots.append?n("div",{staticClass:"el-input-group__append"},[e._t("append")],2):e._e()]:n("textarea",e._b({ref:"textarea",staticClass:"el-textarea__inner",style:e.textareaStyle,attrs:{tabindex:e.tabindex,disabled:e.inputDisabled,readonly:e.readonly,autocomplete:e.autoComplete||e.autocomplete,"aria-label":e.label},on:{compositionstart:e.handleCompositionStart,compositionupdate:e.handleCompositionUpdate,compositionend:e.handleCompositionEnd,input:e.handleInput,focus:e.handleFocus,blur:e.handleBlur,change:e.handleChange}},"textarea",e.$attrs,!1)),e.isWordLimitVisible&&"textarea"===e.type?n("span",{staticClass:"el-input__count"},[e._v(e._s(e.textLength)+"/"+e._s(e.upperLimit))]):e._e()],2)},i=[];r._withStripped=!0;var o=n(4),a=n.n(o),s=n(11),c=n.n(s),u=void 0,l="\n  height:0 !important;\n  visibility:hidden !important;\n  overflow:hidden !important;\n  position:absolute !important;\n  z-index:-1000 !important;\n  top:0 !important;\n  right:0 !important\n",d=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function h(e){var t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=parseFloat(t.getPropertyValue("padding-bottom"))+parseFloat(t.getPropertyValue("padding-top")),i=parseFloat(t.getPropertyValue("border-bottom-width"))+parseFloat(t.getPropertyValue("border-top-width")),o=d.map((function(e){return e+":"+t.getPropertyValue(e)})).join(";");return{contextStyle:o,paddingSize:r,borderSize:i,boxSizing:n}}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;u||(u=document.createElement("textarea"),document.body.appendChild(u));var r=h(e),i=r.paddingSize,o=r.borderSize,a=r.boxSizing,s=r.contextStyle;u.setAttribute("style",s+";"+l),u.value=e.value||e.placeholder||"";var c=u.scrollHeight,d={};"border-box"===a?c+=o:"content-box"===a&&(c-=i),u.value="";var f=u.scrollHeight-i;if(null!==t){var p=f*t;"border-box"===a&&(p=p+i+o),c=Math.max(p,c),d.minHeight=p+"px"}if(null!==n){var g=f*n;"border-box"===a&&(g=g+i+o),c=Math.min(g,c)}return d.height=c+"px",u.parentNode&&u.parentNode.removeChild(u),u=null,d}var p=n(9),g=n.n(p),m=n(21),v={name:"ElInput",componentName:"ElInput",mixins:[a.a,c.a],inheritAttrs:!1,inject:{elForm:{default:""},elFormItem:{default:""}},data:function(){return{textareaCalcStyle:{},hovering:!1,focused:!1,isComposing:!1,passwordVisible:!1}},props:{value:[String,Number],size:String,resize:String,form:String,disabled:Boolean,readonly:Boolean,type:{type:String,default:"text"},autosize:{type:[Boolean,Object],default:!1},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(e){return!0}},validateEvent:{type:Boolean,default:!0},suffixIcon:String,prefixIcon:String,label:String,clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},tabindex:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},validateState:function(){return this.elFormItem?this.elFormItem.validateState:""},needStatusIcon:function(){return!!this.elForm&&this.elForm.statusIcon},validateIcon:function(){return{validating:"el-icon-loading",success:"el-icon-circle-check",error:"el-icon-circle-close"}[this.validateState]},textareaStyle:function(){return g()({},this.textareaCalcStyle,{resize:this.resize})},inputSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputDisabled:function(){return this.disabled||(this.elForm||{}).disabled},nativeInputValue:function(){return null===this.value||void 0===this.value?"":String(this.value)},showClear:function(){return this.clearable&&!this.inputDisabled&&!this.readonly&&this.nativeInputValue&&(this.focused||this.hovering)},showPwdVisible:function(){return this.showPassword&&!this.inputDisabled&&!this.readonly&&(!!this.nativeInputValue||this.focused)},isWordLimitVisible:function(){return this.showWordLimit&&this.$attrs.maxlength&&("text"===this.type||"textarea"===this.type)&&!this.inputDisabled&&!this.readonly&&!this.showPassword},upperLimit:function(){return this.$attrs.maxlength},textLength:function(){return"number"===typeof this.value?String(this.value).length:(this.value||"").length},inputExceed:function(){return this.isWordLimitVisible&&this.textLength>this.upperLimit}},watch:{value:function(e){this.$nextTick(this.resizeTextarea),this.validateEvent&&this.dispatch("ElFormItem","el.form.change",[e])},nativeInputValue:function(){this.setNativeInputValue()},type:function(){var e=this;this.$nextTick((function(){e.setNativeInputValue(),e.resizeTextarea(),e.updateIconOffset()}))}},methods:{focus:function(){this.getInput().focus()},blur:function(){this.getInput().blur()},getMigratingConfig:function(){return{props:{icon:"icon is removed, use suffix-icon / prefix-icon instead.","on-icon-click":"on-icon-click is removed."},events:{click:"click is removed."}}},handleBlur:function(e){this.focused=!1,this.$emit("blur",e),this.validateEvent&&this.dispatch("ElFormItem","el.form.blur",[this.value])},select:function(){this.getInput().select()},resizeTextarea:function(){if(!this.$isServer){var e=this.autosize,t=this.type;if("textarea"===t)if(e){var n=e.minRows,r=e.maxRows;this.textareaCalcStyle=f(this.$refs.textarea,n,r)}else this.textareaCalcStyle={minHeight:f(this.$refs.textarea).minHeight}}},setNativeInputValue:function(){var e=this.getInput();e&&e.value!==this.nativeInputValue&&(e.value=this.nativeInputValue)},handleFocus:function(e){this.focused=!0,this.$emit("focus",e)},handleCompositionStart:function(){this.isComposing=!0},handleCompositionUpdate:function(e){var t=e.target.value,n=t[t.length-1]||"";this.isComposing=!Object(m["isKorean"])(n)},handleCompositionEnd:function(e){this.isComposing&&(this.isComposing=!1,this.handleInput(e))},handleInput:function(e){this.isComposing||e.target.value!==this.nativeInputValue&&(this.$emit("input",e.target.value),this.$nextTick(this.setNativeInputValue))},handleChange:function(e){this.$emit("change",e.target.value)},calcIconOffset:function(e){var t=[].slice.call(this.$el.querySelectorAll(".el-input__"+e)||[]);if(t.length){for(var n=null,r=0;r<t.length;r++)if(t[r].parentNode===this.$el){n=t[r];break}if(n){var i={suffix:"append",prefix:"prepend"},o=i[e];this.$slots[o]?n.style.transform="translateX("+("suffix"===e?"-":"")+this.$el.querySelector(".el-input-group__"+o).offsetWidth+"px)":n.removeAttribute("style")}}},updateIconOffset:function(){this.calcIconOffset("prefix"),this.calcIconOffset("suffix")},clear:function(){this.$emit("input",""),this.$emit("change",""),this.$emit("clear")},handlePasswordVisible:function(){var e=this;this.passwordVisible=!this.passwordVisible,this.$nextTick((function(){e.focus()}))},getInput:function(){return this.$refs.input||this.$refs.textarea},getSuffixVisible:function(){return this.$slots.suffix||this.suffixIcon||this.showClear||this.showPassword||this.isWordLimitVisible||this.validateState&&this.needStatusIcon}},created:function(){this.$on("inputSelect",this.select)},mounted:function(){this.setNativeInputValue(),this.resizeTextarea(),this.updateIconOffset()},updated:function(){this.$nextTick(this.updateIconOffset)}},y=v,_=n(0),b=Object(_["a"])(y,r,i,!1,null,null,null);b.options.__file="packages/input/src/input.vue";var S=b.exports;S.install=function(e){e.component(S.name,S)};t["default"]=S},9:function(e,t){e.exports=n("7f4d")}})},f3cb:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.colorConfig=void 0;var r=["#37a2da","#32c5e9","#67e0e3","#9fe6b8","#ffdb5c","#ff9f7f","#fb7293","#e062ae","#e690d1","#e7bcf3","#9d96f5","#8378ea","#96bfff"];t.colorConfig=r},f47d:function(e,t,n){var r=n("6d8b"),i=(r.assert,r.isArray),o=n("4e08");o.__DEV__;function a(e){return new s(e)}function s(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0,this.context}var c=s.prototype;c.perform=function(e){var t,n=this._upstream,r=e&&e.skip;if(this._dirty&&n){var o=this.context;o.data=o.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(t=this._plan(this.context));var a,s=f(this._modBy),c=this._modDataCount||0,u=f(e&&e.modBy),h=e&&e.modDataCount||0;function f(e){return!(e>=1)&&(e=1),e}s===u&&c===h||(t="reset"),(this._dirty||"reset"===t)&&(this._dirty=!1,a=d(this,r)),this._modBy=u,this._modDataCount=h;var p=e&&e.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var g=this._dueIndex,m=Math.min(null!=p?this._dueIndex+p:1/0,this._dueEnd);if(!r&&(a||g<m)){var v=this._progress;if(i(v))for(var y=0;y<v.length;y++)l(this,v[y],g,m,u,h);else l(this,v,g,m,u,h)}this._dueIndex=m;var _=null!=this._settedOutputEnd?this._settedOutputEnd:m;this._outputDueEnd=_}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()};var u=function(){var e,t,n,r,i,o={reset:function(c,u,l,d){t=c,e=u,n=l,r=d,i=Math.ceil(r/n),o.next=n>1&&r>0?s:a}};return o;function a(){return t<e?t++:null}function s(){var o=t%i*n+Math.ceil(t/i),a=t>=e?null:o<r?o:t;return t++,a}}();function l(e,t,n,r,i,o){u.reset(n,r,i,o),e._callingProgress=t,e._callingProgress({start:n,end:r,count:r-n,next:u.next},e.context)}function d(e,t){var n,r;e._dueIndex=e._outputDueEnd=e._dueEnd=0,e._settedOutputEnd=null,!t&&e._reset&&(n=e._reset(e.context),n&&n.progress&&(r=n.forceFirstProgress,n=n.progress),i(n)&&!n.length&&(n=null)),e._progress=n,e._modBy=e._modDataCount=null;var o=e._downstream;return o&&o.dirty(),r}c.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},c.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},c.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},c.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},c.getUpstream=function(){return this._upstream},c.getDownstream=function(){return this._downstream},c.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},t.createTask=a},f4a2:function(e,t,n){var r=n("9850"),i=n("c526"),o=i.onIrrelevantElement,a=n("2306");function s(e){return e=l(e),function(t,n){return a.clipPointsByRect(t,e)}}function c(e,t){return e=l(e),function(n){var r=null!=t?t:n,i=r?e.width:e.height,o=r?e.x:e.y;return[o,o+(i||0)]}}function u(e,t,n){return e=l(e),function(r,i,a){return e.contain(i[0],i[1])&&!o(r,t,n)}}function l(e){return r.create(e)}t.makeRectPanelClipPath=s,t.makeLinearBrushOtherExtent=c,t.makeRectIsTargetByCursor=u},f529:function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=75)}({0:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var c,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(c=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__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=c):i&&(c=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(e,t){return c.call(t),l(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},13:function(e,t){e.exports=n("5128")},17:function(e,t){e.exports=n("a742")},23:function(e,t){e.exports=n("41f8")},7:function(e,t){e.exports=n("2b0e")},75:function(e,t,n){"use strict";n.r(t);var r=n(7),i=n.n(r),o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-message-fade"},on:{"after-leave":e.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],class:["el-message",e.type&&!e.iconClass?"el-message--"+e.type:"",e.center?"is-center":"",e.showClose?"is-closable":"",e.customClass],style:e.positionStyle,attrs:{role:"alert"},on:{mouseenter:e.clearTimer,mouseleave:e.startTimer}},[e.iconClass?n("i",{class:e.iconClass}):n("i",{class:e.typeClass}),e._t("default",[e.dangerouslyUseHTMLString?n("p",{staticClass:"el-message__content",domProps:{innerHTML:e._s(e.message)}}):n("p",{staticClass:"el-message__content"},[e._v(e._s(e.message))])]),e.showClose?n("i",{staticClass:"el-message__closeBtn el-icon-close",on:{click:e.close}}):e._e()],2)])},a=[];o._withStripped=!0;var s={success:"success",info:"info",warning:"warning",error:"error"},c={data:function(){return{visible:!1,message:"",duration:3e3,type:"info",iconClass:"",customClass:"",onClose:null,showClose:!1,closed:!1,verticalOffset:20,timer:null,dangerouslyUseHTMLString:!1,center:!1}},computed:{typeClass:function(){return this.type&&!this.iconClass?"el-message__icon el-icon-"+s[this.type]:""},positionStyle:function(){return{top:this.verticalOffset+"px"}}},watch:{closed:function(e){e&&(this.visible=!1)}},methods:{handleAfterLeave:function(){this.$destroy(!0),this.$el.parentNode.removeChild(this.$el)},close:function(){this.closed=!0,"function"===typeof this.onClose&&this.onClose(this)},clearTimer:function(){clearTimeout(this.timer)},startTimer:function(){var e=this;this.duration>0&&(this.timer=setTimeout((function(){e.closed||e.close()}),this.duration))},keydown:function(e){27===e.keyCode&&(this.closed||this.close())}},mounted:function(){this.startTimer(),document.addEventListener("keydown",this.keydown)},beforeDestroy:function(){document.removeEventListener("keydown",this.keydown)}},u=c,l=n(0),d=Object(l["a"])(u,o,a,!1,null,null,null);d.options.__file="packages/message/src/main.vue";var h=d.exports,f=n(13),p=n(23),g=n(17),m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v=i.a.extend(h),y=void 0,_=[],b=1,S=function e(t){if(!i.a.prototype.$isServer){t=t||{},"string"===typeof t&&(t={message:t});var n=t.onClose,r="message_"+b++;t.onClose=function(){e.close(r,n)},y=new v({data:t}),y.id=r,Object(p["isVNode"])(y.message)&&(y.$slots.default=[y.message],y.message=null),y.$mount(),document.body.appendChild(y.$el);var o=t.offset||20;return _.forEach((function(e){o+=e.$el.offsetHeight+16})),y.verticalOffset=o,y.visible=!0,y.$el.style.zIndex=f["PopupManager"].nextZIndex(),_.push(y),y}};["success","warning","info","error"].forEach((function(e){S[e]=function(t){return Object(g["isObject"])(t)&&!Object(p["isVNode"])(t)?S(m({},t,{type:e})):S({type:e,message:t})}})),S.close=function(e,t){for(var n=_.length,r=-1,i=void 0,o=0;o<n;o++)if(e===_[o].id){i=_[o].$el.offsetHeight,r=o,"function"===typeof t&&t(_[o]),_.splice(o,1);break}if(!(n<=1||-1===r||r>_.length-1))for(var a=r;a<n-1;a++){var s=_[a].$el;s.style["top"]=parseInt(s.style["top"],10)-i-16+"px"}},S.closeAll=function(){for(var e=_.length-1;e>=0;e--)_[e].close()};var x=S;t["default"]=x}})},f5df:function(e,t,n){var r=n("da84"),i=n("00ee"),o=n("1626"),a=n("c6b6"),s=n("b622"),c=s("toStringTag"),u=r.Object,l="Arguments"==a(function(){return arguments}()),d=function(e,t){try{return e[t]}catch(n){}};e.exports=i?a:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=d(t=u(e),c))?n:l?a(t):"Object"==(r=a(t))&&o(t.callee)?"Arguments":r}},f5e6:function(e,t,n){n("1ccf"),n("b419")},f610:function(e,t,n){var r=n("2306"),i=n("f934"),o=n("6d8b"),a=n("55ac"),s=a.wrapTreePathInfo,c=8,u=8,l=5;function d(e){this.group=new r.Group,e.add(this.group)}function h(e,t,n,r,i,o){var a=[[i?e:e-l,t],[e+n,t],[e+n,t+r],[i?e:e-l,t+r]];return!o&&a.splice(2,0,[e+n+l,t+r/2]),!i&&a.push([e,t+r/2]),a}function f(e,t,n){e.eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.componentIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&s(n,t)}}d.prototype={constructor:d,render:function(e,t,n,r){var o=e.getModel("breadcrumb"),a=this.group;if(a.removeAll(),o.get("show")&&n){var s=o.getModel("itemStyle"),c=s.getModel("textStyle"),u={pos:{left:o.get("left"),right:o.get("right"),top:o.get("top"),bottom:o.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:o.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,u,c),this._renderContent(e,u,s,c,r),i.positionElement(a,u.pos,u.box)}},_prepare:function(e,t,n){for(var r=e;r;r=r.parentNode){var i=r.getModel().get("name"),o=n.getTextRect(i),a=Math.max(o.width+2*c,t.emptyItemWidth);t.totalWidth+=a+u,t.renderList.push({node:r,text:i,width:a})}},_renderContent:function(e,t,n,a,s){for(var c=0,l=t.emptyItemWidth,d=e.get("breadcrumb.height"),p=i.getAvailableSize(t.pos,t.box),g=t.totalWidth,m=t.renderList,v=m.length-1;v>=0;v--){var y=m[v],_=y.node,b=y.width,S=y.text;g>p.width&&(g-=b-l,b=l,S=null);var x=new r.Polygon({shape:{points:h(c,0,b,d,v===m.length-1,0===v)},style:o.defaults(n.getItemStyle(),{lineJoin:"bevel",text:S,textFill:a.getTextColor(),textFont:a.getFont()}),z:10,onclick:o.curry(s,_)});this.group.add(x),f(x,e,_),c+=b+u}},remove:function(){this.group.removeAll()}};var p=d;e.exports=p},f6b4:function(e,t,n){"use strict";var r=n("c532");function i(){this.handlers=[]}i.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},f6ed:function(e,t,n){var r=n("6d8b");function i(e,t){var n={};return r.each(e,(function(e){e.each(e.mapDimension("value"),(function(t,r){var i="ec-"+e.getName(r);n[i]=n[i]||[],isNaN(t)||n[i].push(t)}))})),e[0].map(e[0].mapDimension("value"),(function(r,i){for(var o,a="ec-"+e[0].getName(i),s=0,c=1/0,u=-1/0,l=n[a].length,d=0;d<l;d++)c=Math.min(c,n[a][d]),u=Math.max(u,n[a][d]),s+=n[a][d];return o="min"===t?c:"max"===t?u:"average"===t?s/l:s,0===l?NaN:o}))}function o(e){var t={};e.eachSeriesByType("map",(function(e){var n=e.getHostGeoModel(),r=n?"o"+n.id:"i"+e.getMapType();(t[r]=t[r]||[]).push(e)})),r.each(t,(function(e,t){for(var n=i(r.map(e,(function(e){return e.getData()})),e[0].get("mapValueCalculation")),o=0;o<e.length;o++)e[o].originalData=e[o].getData();for(o=0;o<e.length;o++)e[o].seriesGroup=e,e[o].needsDrawMap=0===o&&!e[o].getHostGeoModel(),e[o].setData(n.cloneShallow()),e[o].mainSeries=e[0]}))}e.exports=o},f706:function(e,t,n){var r=n("2306"),i=n("1418"),o=n("6d8b"),a=o.isObject;function s(e){this.group=new r.Group,this._symbolCtor=e||i}var c=s.prototype;function u(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&"none"!==e.getItemVisual(n,"symbol")}function l(e){return null==e||a(e)||(e={isIgnore:e}),e||{}}function d(e){var t=e.hostModel;return{itemStyle:t.getModel("itemStyle").getItemStyle(["color"]),hoverItemStyle:t.getModel("emphasis.itemStyle").getItemStyle(),symbolRotate:t.get("symbolRotate"),symbolOffset:t.get("symbolOffset"),hoverAnimation:t.get("hoverAnimation"),labelModel:t.getModel("label"),hoverLabelModel:t.getModel("emphasis.label"),cursorStyle:t.get("cursor")}}c.updateData=function(e,t){t=l(t);var n=this.group,i=e.hostModel,o=this._data,a=this._symbolCtor,s=d(e);o||n.removeAll(),e.diff(o).add((function(r){var i=e.getItemLayout(r);if(u(e,i,r,t)){var o=new a(e,r,s);o.attr("position",i),e.setItemGraphicEl(r,o),n.add(o)}})).update((function(c,l){var d=o.getItemGraphicEl(l),h=e.getItemLayout(c);u(e,h,c,t)?(d?(d.updateData(e,c,s),r.updateProps(d,{position:h},i)):(d=new a(e,c),d.attr("position",h)),n.add(d),e.setItemGraphicEl(c,d)):n.remove(d)})).remove((function(e){var t=o.getItemGraphicEl(e);t&&t.fadeOut((function(){n.remove(t)}))})).execute(),this._data=e},c.isPersistent=function(){return!0},c.updateLayout=function(){var e=this._data;e&&e.eachItemGraphicEl((function(t,n){var r=e.getItemLayout(n);t.attr("position",r)}))},c.incrementalPrepareUpdate=function(e){this._seriesScope=d(e),this._data=null,this.group.removeAll()},c.incrementalUpdate=function(e,t,n){function r(e){e.isGroup||(e.incremental=e.useHoverLayer=!0)}n=l(n);for(var i=e.start;i<e.end;i++){var o=t.getItemLayout(i);if(u(t,o,i,n)){var a=new this._symbolCtor(t,i,this._seriesScope);a.traverse(r),a.attr("position",o),this.group.add(a),t.setItemGraphicEl(i,a)}}},c.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl((function(e){e.fadeOut((function(){t.remove(e)}))})):t.removeAll()};var h=s;e.exports=h},f772:function(e,t,n){var r=n("5692"),i=n("90e3"),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},f7c6:function(e,t,n){var r=n("3eba"),i=n("e46b"),o=n("6d8b"),a=n("e0d3"),s=n("3842"),c=s.getPercentWithPrecision,u=n("7023"),l=n("2b17"),d=l.retrieveRawAttr,h=n("0f99"),f=h.makeSeriesEncodeForNameBased,p=n("c4a3"),g=r.extendSeriesModel({type:"series.pie",init:function(e){g.superApply(this,"init",arguments),this.legendVisualProvider=new p(o.bind(this.getData,this),o.bind(this.getRawData,this)),this.updateSelectedMap(this._createSelectableList()),this._defaultLabelLine(e)},mergeOption:function(e){g.superCall(this,"mergeOption",e),this.updateSelectedMap(this._createSelectableList())},getInitialData:function(e,t){return i(this,{coordDimensions:["value"],encodeDefaulter:o.curry(f,this)})},_createSelectableList:function(){for(var e=this.getRawData(),t=e.mapDimension("value"),n=[],r=0,i=e.count();r<i;r++)n.push({name:e.getName(r),value:e.get(t,r),selected:d(e,r,"selected")});return n},getDataParams:function(e){var t=this.getData(),n=g.superCall(this,"getDataParams",e),r=[];return t.each(t.mapDimension("value"),(function(e){r.push(e)})),n.percent=c(r,e,t.hostModel.get("percentPrecision")),n.$vars.push("percent"),n},_defaultLabelLine:function(e){a.defaultEmphasis(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},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,hoverOffset:10,avoidLabelOverlap:!0,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:!1,show:!0,position:"outer",alignTo:"none",margin:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1},animationType:"expansion",animationTypeUpdate:"transition",animationEasing:"cubicOut"}});o.mixin(g,u);var m=g;e.exports=m},f8c9:function(e,t,n){var r=n("23e7"),i=n("da84"),o=n("d44e");r({global:!0},{Reflect:{}}),o(i.Reflect,"Reflect",!0)},f8cd:function(e,t,n){var r=n("da84"),i=n("5926"),o=r.RangeError;e.exports=function(e){var t=i(e);if(t<0)throw o("The argument can't be less than 0");return t}},f934:function(e,t,n){var r=n("6d8b"),i=n("9850"),o=n("3842"),a=o.parsePercent,s=n("eda2"),c=r.each,u=["left","right","top","bottom","width","height"],l=[["width","left","right"],["height","top","bottom"]];function d(e,t,n,r,i){var o=0,a=0;null==r&&(r=1/0),null==i&&(i=1/0);var s=0;t.eachChild((function(c,u){var l,d,h=c.position,f=c.getBoundingRect(),p=t.childAt(u+1),g=p&&p.getBoundingRect();if("horizontal"===e){var m=f.width+(g?-g.x+f.x:0);l=o+m,l>r||c.newline?(o=0,l=m,a+=s+n,s=f.height):s=Math.max(s,f.height)}else{var v=f.height+(g?-g.y+f.y:0);d=a+v,d>i||c.newline?(o+=s+n,a=0,d=v,s=f.width):s=Math.max(s,f.width)}c.newline||(h[0]=o,h[1]=a,"horizontal"===e?o=l+n:a=d+n)}))}var h=d,f=r.curry(d,"vertical"),p=r.curry(d,"horizontal");function g(e,t,n){var r=t.width,i=t.height,o=a(e.x,r),c=a(e.y,i),u=a(e.x2,r),l=a(e.y2,i);return(isNaN(o)||isNaN(parseFloat(e.x)))&&(o=0),(isNaN(u)||isNaN(parseFloat(e.x2)))&&(u=r),(isNaN(c)||isNaN(parseFloat(e.y)))&&(c=0),(isNaN(l)||isNaN(parseFloat(e.y2)))&&(l=i),n=s.normalizeCssArray(n||0),{width:Math.max(u-o-n[1]-n[3],0),height:Math.max(l-c-n[0]-n[2],0)}}function m(e,t,n){n=s.normalizeCssArray(n||0);var r=t.width,o=t.height,c=a(e.left,r),u=a(e.top,o),l=a(e.right,r),d=a(e.bottom,o),h=a(e.width,r),f=a(e.height,o),p=n[2]+n[0],g=n[1]+n[3],m=e.aspect;switch(isNaN(h)&&(h=r-l-g-c),isNaN(f)&&(f=o-d-p-u),null!=m&&(isNaN(h)&&isNaN(f)&&(m>r/o?h=.8*r:f=.8*o),isNaN(h)&&(h=m*f),isNaN(f)&&(f=h/m)),isNaN(c)&&(c=r-l-h-g),isNaN(u)&&(u=o-d-f-p),e.left||e.right){case"center":c=r/2-h/2-n[3];break;case"right":c=r-h-g;break}switch(e.top||e.bottom){case"middle":case"center":u=o/2-f/2-n[0];break;case"bottom":u=o-f-p;break}c=c||0,u=u||0,isNaN(h)&&(h=r-g-c-(l||0)),isNaN(f)&&(f=o-p-u-(d||0));var v=new i(c+n[3],u+n[0],h,f);return v.margin=n,v}function v(e,t,n,o,a){var s=!a||!a.hv||a.hv[0],c=!a||!a.hv||a.hv[1],u=a&&a.boundingMode||"all";if(s||c){var l;if("raw"===u)l="group"===e.type?new i(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(l=e.getBoundingRect(),e.needLocalTransform()){var d=e.getLocalTransform();l=l.clone(),l.applyTransform(d)}t=m(r.defaults({width:l.width,height:l.height},t),n,o);var h=e.position,f=s?t.x-l.x:0,p=c?t.y-l.y:0;e.attr("position","raw"===u?[f,p]:[h[0]+f,h[1]+p])}}function y(e,t){return null!=e[l[t][0]]||null!=e[l[t][1]]&&null!=e[l[t][2]]}function _(e,t,n){!r.isObject(n)&&(n={});var i=n.ignoreSize;!r.isArray(i)&&(i=[i,i]);var o=s(l[0],0),a=s(l[1],1);function s(n,r){var o={},a=0,s={},l=0,h=2;if(c(n,(function(t){s[t]=e[t]})),c(n,(function(e){u(t,e)&&(o[e]=s[e]=t[e]),d(o,e)&&a++,d(s,e)&&l++})),i[r])return d(t,n[1])?s[n[2]]=null:d(t,n[2])&&(s[n[1]]=null),s;if(l!==h&&a){if(a>=h)return o;for(var f=0;f<n.length;f++){var p=n[f];if(!u(o,p)&&u(e,p)){o[p]=e[p];break}}return o}return s}function u(e,t){return e.hasOwnProperty(t)}function d(e,t){return null!=e[t]&&"auto"!==e[t]}function h(e,t,n){c(e,(function(e){t[e]=n[e]}))}h(l[0],e,o),h(l[1],e,a)}function b(e){return S({},e)}function S(e,t){return t&&e&&c(u,(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e}t.LOCATION_PARAMS=u,t.HV_NAMES=l,t.box=h,t.vbox=f,t.hbox=p,t.getAvailableSize=g,t.getLayoutRect=m,t.positionElement=v,t.sizeCalculable=y,t.mergeLayoutParam=_,t.getLayoutParams=b,t.copyLayoutParams=S},fa10:function(e,t,n){},fa52:function(e,t,n){var r=n("3eba");n("febc"),n("dcea");var i=n("2f91"),o=n("ecf8");r.registerVisual(i),r.registerLayout(o)},fab2:function(e,t,n){var r=n("6d8b"),i=r.retrieve,o=r.defaults,a=r.extend,s=r.each,c=n("eda2"),u=n("2306"),l=n("4319"),d=n("3842"),h=d.isRadianAroundZero,f=d.remRadian,p=n("a15a"),g=p.createSymbol,m=n("1687"),v=n("401b"),y=v.applyTransform,_=n("697e"),b=_.shouldShowAllLabels,S=Math.PI,x=function(e,t){this.opt=t,this.axisModel=e,o(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new u.Group;var n=new u.Group({position:t.position.slice(),rotation:t.rotation});n.updateTransform(),this._transform=n.transform,this._dumbGroup=n};x.prototype={constructor:x,hasBuilder:function(e){return!!w[e]},add:function(e){w[e].call(this)},getGroup:function(){return this.group}};var w={axisLine:function(){var e=this.opt,t=this.axisModel;if(t.get("axisLine.show")){var n=this.axisModel.axis.getExtent(),r=this._transform,i=[n[0],0],o=[n[1],0];r&&(y(i,i,r),y(o,o,r));var c=a({lineCap:"round"},t.getModel("axisLine.lineStyle").getLineStyle());this.group.add(new u.Line({anid:"line",subPixelOptimize:!0,shape:{x1:i[0],y1:i[1],x2:o[0],y2:o[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1}));var l=t.get("axisLine.symbol"),d=t.get("axisLine.symbolSize"),h=t.get("axisLine.symbolOffset")||0;if("number"===typeof h&&(h=[h,h]),null!=l){"string"===typeof l&&(l=[l,l]),"string"!==typeof d&&"number"!==typeof d||(d=[d,d]);var f=d[0],p=d[1];s([{rotate:e.rotation+Math.PI/2,offset:h[0],r:0},{rotate:e.rotation-Math.PI/2,offset:h[1],r:Math.sqrt((i[0]-o[0])*(i[0]-o[0])+(i[1]-o[1])*(i[1]-o[1]))}],(function(t,n){if("none"!==l[n]&&null!=l[n]){var r=g(l[n],-f/2,-p/2,f,p,c.stroke,!0),o=t.r+t.offset,a=[i[0]+o*Math.cos(e.rotation),i[1]-o*Math.sin(e.rotation)];r.attr({rotation:t.rotate,position:a,silent:!0,z2:11}),this.group.add(r)}}),this)}}},axisTickLabel:function(){var e=this.axisModel,t=this.opt,n=R(this,e,t),r=P(this,e,t);k(e,r,n),L(this,e,t)},axisName:function(){var e=this.opt,t=this.axisModel,n=i(e.axisName,t.get("name"));if(n){var r,o,s=t.get("nameLocation"),l=e.nameDirection,d=t.getModel("nameTextStyle"),h=t.get("nameGap")||0,f=this.axisModel.axis.getExtent(),p=f[0]>f[1]?-1:1,g=["start"===s?f[0]-p*h:"end"===s?f[1]+p*h:(f[0]+f[1])/2,D(s)?e.labelOffset+l*h:0],m=t.get("nameRotate");null!=m&&(m=m*S/180),D(s)?r=C(e.rotation,null!=m?m:e.rotation,l):(r=M(e,s,m||0,f),o=e.axisNameAvailableWidth,null!=o&&(o=Math.abs(o/Math.sin(r.rotation)),!isFinite(o)&&(o=null)));var v=d.getFont(),y=t.get("nameTruncate",!0)||{},_=y.ellipsis,b=i(e.nameTruncateMaxWidth,y.maxWidth,o),x=null!=_&&null!=b?c.truncateText(n,b,v,_,{minChar:2,placeholder:y.placeholder}):n,w=t.get("tooltip",!0),k=t.mainType,E={componentType:k,name:n,$vars:["name"]};E[k+"Index"]=t.componentIndex;var A=new u.Text({anid:"name",__fullText:n,__truncatedText:x,position:g,rotation:r.rotation,silent:T(t),z2:1,tooltip:w&&w.show?a({content:n,formatter:function(){return n},formatterParams:E},w):null});u.setTextStyle(A.style,d,{text:x,textFont:v,textFill:d.getTextColor()||t.get("axisLine.lineStyle.color"),textAlign:d.get("align")||r.textAlign,textVerticalAlign:d.get("verticalAlign")||r.textVerticalAlign}),t.get("triggerEvent")&&(A.eventData=I(t),A.eventData.targetType="axisName",A.eventData.name=n),this._dumbGroup.add(A),A.updateTransform(),this.group.add(A),A.decomposeTransform()}}},I=x.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},C=x.innerTextLayout=function(e,t,n){var r,i,o=f(t-e);return h(o)?(i=n>0?"top":"bottom",r="center"):h(o-S)?(i=n>0?"bottom":"top",r="center"):(i="middle",r=o>0&&o<S?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:r,textVerticalAlign:i}};function M(e,t,n,r){var i,o,a=f(n-e.rotation),s=r[0]>r[1],c="start"===t&&!s||"start"!==t&&s;return h(a-S/2)?(o=c?"bottom":"top",i="center"):h(a-1.5*S)?(o=c?"top":"bottom",i="center"):(o="middle",i=a<1.5*S&&a>S/2?c?"left":"right":c?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}var T=x.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)};function k(e,t,n){if(!b(e.axis)){var r=e.get("axisLabel.showMinLabel"),i=e.get("axisLabel.showMaxLabel");t=t||[],n=n||[];var o=t[0],a=t[1],s=t[t.length-1],c=t[t.length-2],u=n[0],l=n[1],d=n[n.length-1],h=n[n.length-2];!1===r?(E(o),E(u)):A(o,a)&&(r?(E(a),E(l)):(E(o),E(u))),!1===i?(E(s),E(d)):A(c,s)&&(i?(E(c),E(h)):(E(s),E(d)))}}function E(e){e&&(e.ignore=!0)}function A(e,t,n){var r=e&&e.getBoundingRect().clone(),i=t&&t.getBoundingRect().clone();if(r&&i){var o=m.identity([]);return m.rotate(o,o,-e.rotation),r.applyTransform(m.mul([],o,e.getLocalTransform())),i.applyTransform(m.mul([],o,t.getLocalTransform())),r.intersect(i)}}function D(e){return"middle"===e||"center"===e}function O(e,t,n,r,i){for(var o=[],a=[],s=[],c=0;c<e.length;c++){var l=e[c].coord;a[0]=l,a[1]=0,s[0]=l,s[1]=n,t&&(y(a,a,t),y(s,s,t));var d=new u.Line({anid:i+"_"+e[c].tickValue,subPixelOptimize:!0,shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:r,z2:2,silent:!0});o.push(d)}return o}function R(e,t,n){var r=t.axis,i=t.getModel("axisTick");if(i.get("show")&&!r.scale.isBlank()){for(var a=i.getModel("lineStyle"),s=n.tickDirection*i.get("length"),c=r.getTicksCoords(),u=O(c,e._transform,s,o(a.getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")}),"ticks"),l=0;l<u.length;l++)e.group.add(u[l]);return u}}function L(e,t,n){var r=t.axis,i=t.getModel("minorTick");if(i.get("show")&&!r.scale.isBlank()){var a=r.getMinorTicksCoords();if(a.length)for(var s=i.getModel("lineStyle"),c=n.tickDirection*i.get("length"),u=o(s.getLineStyle(),o(t.getModel("axisTick").getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")})),l=0;l<a.length;l++)for(var d=O(a[l],e._transform,c,u,"minorticks_"+l),h=0;h<d.length;h++)e.group.add(d[h])}}function P(e,t,n){var r=t.axis,o=i(n.axisLabelShow,t.get("axisLabel.show"));if(o&&!r.scale.isBlank()){var a=t.getModel("axisLabel"),c=a.get("margin"),d=r.getViewLabels(),h=(i(n.labelRotate,a.get("rotate"))||0)*S/180,f=C(n.rotation,h,n.labelDirection),p=t.getCategories&&t.getCategories(!0),g=[],m=T(t),v=t.get("triggerEvent");return s(d,(function(i,o){var s=i.tickValue,d=i.formattedLabel,h=i.rawLabel,y=a;p&&p[s]&&p[s].textStyle&&(y=new l(p[s].textStyle,a,t.ecModel));var _=y.getTextColor()||t.get("axisLine.lineStyle.color"),b=r.dataToCoord(s),S=[b,n.labelOffset+n.labelDirection*c],x=new u.Text({anid:"label_"+s,position:S,rotation:f.rotation,silent:m,z2:10});u.setTextStyle(x.style,y,{text:d,textAlign:y.getShallow("align",!0)||f.textAlign,textVerticalAlign:y.getShallow("verticalAlign",!0)||y.getShallow("baseline",!0)||f.textVerticalAlign,textFill:"function"===typeof _?_("category"===r.type?h:"value"===r.type?s+"":s,o):_}),v&&(x.eventData=I(t),x.eventData.targetType="axisLabel",x.eventData.value=h),e._dumbGroup.add(x),x.updateTransform(),g.push(x),e.group.add(x),x.decomposeTransform()})),g}}var N=x;e.exports=N},fb05:function(e,t,n){var r=n("6d8b"),i=r.each,o=r.isArray,a=r.isObject,s=n("26e1"),c=n("e0d3"),u=c.normalizeToArray;function l(e,t){t=t.split(",");for(var n=e,r=0;r<t.length;r++)if(n=n&&n[t[r]],null==n)break;return n}function d(e,t,n,r){t=t.split(",");for(var i,o=e,a=0;a<t.length-1;a++)i=t[a],null==o[i]&&(o[i]={}),o=o[i];(r||null==o[t[a]])&&(o[t[a]]=n)}function h(e){i(f,(function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])}))}var f=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],p=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"];function g(e,t){s(e,t),e.series=u(e.series),i(e.series,(function(e){if(a(e)){var t=e.type;if("line"===t)null!=e.clipOverflow&&(e.clip=e.clipOverflow);else if("pie"===t||"gauge"===t)null!=e.clockWise&&(e.clockwise=e.clockWise);else if("gauge"===t){var n=l(e,"pointer.color");null!=n&&d(e,"itemStyle.color",n)}h(e)}})),e.dataRange&&(e.visualMap=e.dataRange),i(p,(function(t){var n=e[t];n&&(o(n)||(n=[n]),i(n,(function(e){h(e)})))}))}e.exports=g},fb2c:function(e,t,n){var r=n("74e8");r("Uint32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},fb6a:function(e,t,n){"use strict";var r=n("23e7"),i=n("da84"),o=n("e8b5"),a=n("68ee"),s=n("861d"),c=n("23cb"),u=n("07fa"),l=n("fc6a"),d=n("8418"),h=n("b622"),f=n("1dde"),p=n("f36a"),g=f("slice"),m=h("species"),v=i.Array,y=Math.max;r({target:"Array",proto:!0,forced:!g},{slice:function(e,t){var n,r,i,h=l(this),f=u(h),g=c(e,f),_=c(void 0===t?f:t,f);if(o(h)&&(n=h.constructor,a(n)&&(n===v||o(n.prototype))?n=void 0:s(n)&&(n=n[m],null===n&&(n=void 0)),n===v||void 0===n))return p(h,g,_);for(r=new(void 0===n?v:n)(y(_-g,0)),i=0;g<_;g++,i++)g in h&&d(r,i,h[g]);return r.length=i,r}})},fc6a:function(e,t,n){var r=n("44ad"),i=n("1d80");e.exports=function(e){return r(i(e))}},fc82:function(e,t,n){var r=n("4e08"),i=(r.__DEV__,n("6d8b")),o=n("1fab"),a=n("2306"),s=n("a4fe"),c=n("80f0"),u=i.curry,l=i.each,d=i.map,h=Math.min,f=Math.max,p=Math.pow,g=1e4,m=6,v=6,y="globalPan",_={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},b={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},S={brushStyle:{lineWidth:2,stroke:"rgba(0,0,0,0.3)",fill:"rgba(0,0,0,0.1)"},transformable:!0,brushMode:"single",removeOnClick:!1},x=0;function w(e){o.call(this),this._zr=e,this.group=new a.Group,this._brushType,this._brushOption,this._panels,this._track=[],this._dragging,this._covers=[],this._creatingCover,this._creatingPanel,this._enableGlobalPan,this._uid="brushController_"+x++,this._handlers={},l(ie,(function(e,t){this._handlers[t]=i.bind(e,this)}),this)}function I(e,t){var n=e._zr;e._enableGlobalPan||s.take(n,y,e._uid),M(n,e._handlers),e._brushType=t.brushType,e._brushOption=i.merge(i.clone(S),t,!0)}function C(e){var t=e._zr;s.release(t,y,e._uid),T(t,e._handlers),e._brushType=e._brushOption=null}function M(e,t){l(t,(function(t,n){e.on(n,t)}))}function T(e,t){l(t,(function(t,n){e.off(n,t)}))}function k(e,t){var n=se[t.brushType].createCover(e,t);return n.__brushOption=t,D(n,t),e.group.add(n),n}function E(e,t){var n=R(t);return n.endCreating&&(n.endCreating(e,t),D(t,t.__brushOption)),t}function A(e,t){var n=t.__brushOption;R(t).updateCoverShape(e,t,n.range,n)}function D(e,t){var n=t.z;null==n&&(n=g),e.traverse((function(e){e.z=n,e.z2=n}))}function O(e,t){R(t).updateCommon(e,t),A(e,t)}function R(e){return se[e.__brushOption.brushType]}function L(e,t,n){var r,i=e._panels;if(!i)return!0;var o=e._transform;return l(i,(function(e){e.isTargetByCursor(t,n,o)&&(r=e)})),r}function P(e,t){var n=e._panels;if(!n)return!0;var r=t.__brushOption.panelId;return null==r||n[r]}function N(e){var t=e._covers,n=t.length;return l(t,(function(t){e.group.remove(t)}),e),t.length=0,!!n}function U(e,t){var n=d(e._covers,(function(e){var t=e.__brushOption,n=i.clone(t.range);return{brushType:t.brushType,panelId:t.panelId,range:n}}));e.trigger("brush",n,{isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function F(e){var t=e._track;if(!t.length)return!1;var n=t[t.length-1],r=t[0],i=n[0]-r[0],o=n[1]-r[1],a=p(i*i+o*o,.5);return a>m}function G(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function V(e,t,n,r){var i=new a.Group;return i.add(new a.Rect({name:"main",style:H(n),silent:!0,draggable:!0,cursor:"move",drift:u(e,t,i,"nswe"),ondragend:u(U,t,{isEnd:!0})})),l(r,(function(n){i.add(new a.Rect({name:n,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:u(e,t,i,n),ondragend:u(U,t,{isEnd:!0})}))})),i}function j(e,t,n,r){var i=r.brushStyle.lineWidth||0,o=f(i,v),a=n[0][0],s=n[1][0],c=a-i/2,u=s-i/2,l=n[0][1],d=n[1][1],h=l-o+i/2,p=d-o+i/2,g=l-a,m=d-s,y=g+i,_=m+i;z(e,t,"main",a,s,g,m),r.transformable&&(z(e,t,"w",c,u,o,_),z(e,t,"e",h,u,o,_),z(e,t,"n",c,u,y,o),z(e,t,"s",c,p,y,o),z(e,t,"nw",c,u,o,o),z(e,t,"ne",h,u,o,o),z(e,t,"sw",c,p,o,o),z(e,t,"se",h,p,o,o))}function B(e,t){var n=t.__brushOption,r=n.transformable,i=t.childAt(0);i.useStyle(H(n)),i.attr({silent:!r,cursor:r?"move":"default"}),l(["w","e","n","s","se","sw","ne","nw"],(function(n){var i=t.childOfName(n),o=$(e,n);i&&i.attr({silent:!r,invisible:!r,cursor:r?b[o]+"-resize":null})}))}function z(e,t,n,r,i,o,a){var s=t.childOfName(n);s&&s.setShape(Z(X(e,t,[[r,i],[r+o,i+a]])))}function H(e){return i.defaults({strokeNoScale:!0},e.brushStyle)}function W(e,t,n,r){var i=[h(e,n),h(t,r)],o=[f(e,n),f(t,r)];return[[i[0],o[0]],[i[1],o[1]]]}function q(e){return a.getTransform(e.group)}function $(e,t){if(t.length>1){t=t.split("");var n=[$(e,t[0]),$(e,t[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}var r={w:"left",e:"right",n:"top",s:"bottom"},i={left:"w",right:"e",top:"n",bottom:"s"};n=a.transformDirection(r[t],q(e));return i[n]}function K(e,t,n,r,i,o,a,s){var c=r.__brushOption,u=e(c.range),d=J(n,o,a);l(i.split(""),(function(e){var t=_[e];u[t[0]][t[1]]+=d[t[0]]})),c.range=t(W(u[0][0],u[1][0],u[0][1],u[1][1])),O(n,r),U(n,{isEnd:!1})}function Y(e,t,n,r,i){var o=t.__brushOption.range,a=J(e,n,r);l(o,(function(e){e[0]+=a[0],e[1]+=a[1]})),O(e,t),U(e,{isEnd:!1})}function J(e,t,n){var r=e.group,i=r.transformCoordToLocal(t,n),o=r.transformCoordToLocal(0,0);return[i[0]-o[0],i[1]-o[1]]}function X(e,t,n){var r=P(e,t);return r&&!0!==r?r.clipPath(n,e._transform):i.clone(n)}function Z(e){var t=h(e[0][0],e[1][0]),n=h(e[0][1],e[1][1]),r=f(e[0][0],e[1][0]),i=f(e[0][1],e[1][1]);return{x:t,y:n,width:r-t,height:i-n}}function Q(e,t,n){if(e._brushType&&!ae(e,t)){var r=e._zr,i=e._covers,o=L(e,t,n);if(!e._dragging)for(var a=0;a<i.length;a++){var s=i[a].__brushOption;if(o&&(!0===o||s.panelId===o.panelId)&&se[s.brushType].contain(i[a],n[0],n[1]))return}o&&r.setCursorStyle("crosshair")}}function ee(e){var t=e.event;t.preventDefault&&t.preventDefault()}function te(e,t,n){return e.childOfName("main").contain(t,n)}function ne(e,t,n,r){var o,a=e._creatingCover,s=e._creatingPanel,c=e._brushOption;if(e._track.push(n.slice()),F(e)||a){if(s&&!a){"single"===c.brushMode&&N(e);var u=i.clone(c);u.brushType=re(u.brushType,s),u.panelId=!0===s?null:s.panelId,a=e._creatingCover=k(e,u),e._covers.push(a)}if(a){var l=se[re(e._brushType,s)],d=a.__brushOption;d.range=l.getCreatingRange(X(e,a,e._track)),r&&(E(e,a),l.updateCommon(e,a)),A(e,a),o={isEnd:r}}}else r&&"single"===c.brushMode&&c.removeOnClick&&L(e,t,n)&&N(e)&&(o={isEnd:r,removeOnClick:!0});return o}function re(e,t){return"auto"===e?t.defaultBrushType:e}w.prototype={constructor:w,enableBrush:function(e){return this._brushType&&C(this),e.brushType&&I(this,e),this},setPanels:function(e){if(e&&e.length){var t=this._panels={};i.each(e,(function(e){t[e.panelId]=i.clone(e)}))}else this._panels=null;return this},mount:function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var t=this.group;return this._zr.add(t),t.attr({position:e.position||[0,0],rotation:e.rotation||0,scale:e.scale||[1,1]}),this._transform=t.getLocalTransform(),this},eachCover:function(e,t){l(this._covers,e,t)},updateCovers:function(e){e=i.map(e,(function(e){return i.merge(i.clone(S),e,!0)}));var t="\0-brush-index-",n=this._covers,r=this._covers=[],o=this,a=this._creatingCover;return new c(n,e,u,s).add(l).update(l).remove(d).execute(),this;function s(e,n){return(null!=e.id?e.id:t+n)+"-"+e.brushType}function u(e,t){return s(e.__brushOption,t)}function l(t,i){var s=e[t];if(null!=i&&n[i]===a)r[t]=n[i];else{var c=r[t]=null!=i?(n[i].__brushOption=s,n[i]):E(o,k(o,s));O(o,c)}}function d(e){n[e]!==a&&o.group.remove(n[e])}},unmount:function(){return this.enableBrush(!1),N(this),this._zr.remove(this.group),this},dispose:function(){this.unmount(),this.off()}},i.mixin(w,o);var ie={mousedown:function(e){if(this._dragging)oe(this,e);else if(!e.target||!e.target.draggable){ee(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null;var n=this._creatingPanel=L(this,e,t);n&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,n=e.offsetY,r=this.group.transformCoordToLocal(t,n);if(Q(this,e,r),this._dragging){ee(e);var i=ne(this,e,r,!1);i&&U(this,i)}},mouseup:function(e){oe(this,e)}};function oe(e,t){if(e._dragging){ee(t);var n=t.offsetX,r=t.offsetY,i=e.group.transformCoordToLocal(n,r),o=ne(e,t,i,!0);e._dragging=!1,e._track=[],e._creatingCover=null,o&&U(e,o)}}function ae(e,t,n){var r=e._zr;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var se={lineX:ce(0),lineY:ce(1),rect:{createCover:function(e,t){return V(u(K,(function(e){return e}),(function(e){return e})),e,t,["w","e","n","s","se","sw","ne","nw"])},getCreatingRange:function(e){var t=G(e);return W(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,r){j(e,t,n,r)},updateCommon:B,contain:te},polygon:{createCover:function(e,t){var n=new a.Group;return n.add(new a.Polyline({name:"main",style:H(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new a.Polygon({name:"main",draggable:!0,drift:u(Y,e,t),ondragend:u(U,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,r){t.childAt(0).setShape({points:X(e,t,n)})},updateCommon:B,contain:te}};function ce(e){return{createCover:function(t,n){return V(u(K,(function(t){var n=[t,[0,100]];return e&&n.reverse(),n}),(function(t){return t[e]})),t,n,[["w","e"],["n","s"]][e])},getCreatingRange:function(t){var n=G(t),r=h(n[0][e],n[1][e]),i=f(n[0][e],n[1][e]);return[r,i]},updateCoverShape:function(t,n,r,i){var o,a=P(t,n);if(!0!==a&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(e,t._transform);else{var s=t._zr;o=[0,[s.getWidth(),s.getHeight()][1-e]]}var c=[r,o];e&&c.reverse(),j(t,n,c,i)},updateCommon:B,contain:te}}var ue=w;e.exports=ue},fc9e:function(e,t,n){!function(t,r){e.exports=r(n("5781"),n("e23e"),n("b3bc"))}(window,(function(e,t,n){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=23)}([function(e,t,n){"use strict";n.r(t),n.d(t,"isMap",(function(){return i})),n.d(t,"isSet",(function(){return o})),n.d(t,"isFile",(function(){return a})),n.d(t,"isNumber",(function(){return s})),n.d(t,"isString",(function(){return c})),n.d(t,"isObject",(function(){return u})),n.d(t,"isPlainObject",(function(){return l})),n.d(t,"isArray",(function(){return d})),n.d(t,"isUndefined",(function(){return h})),n.d(t,"isNativeClass",(function(){return p})),n.d(t,"isArrayOrObject",(function(){return g})),n.d(t,"isFunction",(function(){return m})),n.d(t,"isInstanceOfError",(function(){return v})),n.d(t,"getType",(function(){return y})),n.d(t,"TimeUtil",(function(){return b})),n.d(t,"stringifyError",(function(){return S})),n.d(t,"map2String",(function(){return x})),n.d(t,"randomString",(function(){return C})),n.d(t,"isValidType",(function(){return M})),n.d(t,"mapKeys",(function(){return T})),n.d(t,"mapValues",(function(){return k})),n.d(t,"generateRandomRoomID",(function(){return E})),n.d(t,"formatDuration",(function(){return D})),n.d(t,"compareVersion",(function(){return O})),n.d(t,"date2ISOString",(function(){return R})),n.d(t,"getHostType",(function(){return L}));var r=n(5);const i=function(e){return"map"===y(e)},o=function(e){return"set"===y(e)},a=function(e){return"file"===y(e)},s=function(e){return null!==e&&("number"==typeof e&&!isNaN(e-0)||"object"==typeof e&&e.constructor===Number)},c=function(e){return"string"==typeof e},u=function(e){return null!==e&&"object"==typeof e},l=function(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);if(null===t)return!0;let n=t;for(;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return t===n},d=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"array"===y(e)},h=function(e){return void 0===e},f=/^class\s/,p=function(e){return"function"==typeof e&&f.test(e.toString())},g=function(e){return d(e)||u(e)},m=function(e){return"function"==typeof e},v=function(e){return e instanceof Error},y=function(e){return Object.prototype.toString.call(e).match(/^\[object (.*)\]$/)[1].toLowerCase()};let _=0;Date.now||(Date.now=function(){return(new Date).getTime()});const b={now(){0===_&&(_=Date.now()-1);const e=Date.now()-_;return e>4294967295?(_+=4294967295,Date.now()-_):e},utc:()=>Math.round(Date.now()/1e3)},S=function(e){return JSON.stringify(e,["message","code"])},x=function(e){if(!i(e))return"not a map!!!";let t="";for(const[n,r]of e.entries()){if(i(r))return`[k=${n} -> ${x(r)}`;t+=`[k=${n} v=${r}] `}return t},w="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",I=w.length,C=function(){let e="";for(let t=32;t>0;--t)e+=w[Math.floor(Math.random()*I)];return e},M=function(e,t){for(const n in e)if(e[n]===t)return!0;return!1};function T(e,t){const n={};return Object.keys(e).forEach(r=>{n[t(e[r],r)]=e[r]}),n}function k(e,t){const n={};return Object.keys(e).forEach(r=>{n[r]=t(e[r],r)}),n}function E(){return Math.round(1e8*Math.random())}function A(e){return e<10?"0"+e:e}function D(e){if(e<60)return"00:00:"+A(e);if(e<3600){const t=parseInt(e/60),n=e-60*t;return`00:${A(t)}:${A(n)}`}const t=parseInt(e/3600),n=e-3600*t,r=parseInt(n/60),i=n-60*r;return`${A(t)}:${A(r)}:${A(i)}`}function O(e,t){e=e.split("."),t=t.split(".");const n=Math.max(e.length,t.length);for(;e.length<n;)e.push("0");for(;t.length<n;)t.push("0");for(let r=0;r<n;r++){const n=parseInt(e[r]),i=parseInt(t[r]);if(n>i)return 1;if(n<i)return-1}return 0}const R=function(){const e=new Date,t=e.toISOString(),n=e.getTimezoneOffset()/60;let r="";return r=n<0?n>-10?"+0"+Math.abs(100*n):"+"+Math.abs(100*n):n>=10?"-"+100*n:"-0"+100*n,t.replace("Z",r)};function L(){let e="unknown";return r.IS_MAC&&(e="mac"),r.IS_WIN&&(e="windows"),r.IS_IOS&&(e="ios"),r.IS_ANDROID&&(e="android"),e}},function(e,t,n){"use strict";n.r(t);var r=n(3),i=n(0);let o=0;const a=new Map;function s(){const e=new Date;return`TRTCCalling ${e.toLocaleTimeString("en-US",{hour12:!1})}.${function(e){let t;switch(e.toString().length){case 1:t="00"+e;break;case 2:t="0"+e;break;default:t=e}return t}(e.getMilliseconds())}:`}const c={_data:[],_length:0,_visible:!1,arguments2String(e){let t;if(1===e.length)t=s()+e[0];else{t=s();for(let n=0,{length:r}=e;n<r;n++)Object(i.isArrayOrObject)(e[n])?Object(i.isInstanceOfError)(e[n])?t+=Object(i.stringifyError)(e[n]):t+=JSON.stringify(e[n]):t+=e[n],t+=" "}return t},debug(){if(o<=-1){const e=this.arguments2String(arguments);c.record(e,"debug"),r.a.debug(e)}},log(){if(o<=0){const e=this.arguments2String(arguments);c.record(e,"log"),r.a.log(e)}},info(){if(o<=1){const e=this.arguments2String(arguments);c.record(e,"info"),r.a.info(e)}},warn(){if(o<=2){const e=this.arguments2String(arguments);c.record(e,"warn"),r.a.warn(e)}},error(){if(o<=3){const e=this.arguments2String(arguments);c.record(e,"error"),r.a.error(e)}},time(e){a.set(e,i.TimeUtil.now())},timeEnd(e){if(a.has(e)){const t=i.TimeUtil.now()-a.get(e);return a.delete(e),t}return r.a.warn(`未找到对应label: ${e}, 请在调用 logger.timeEnd 前,调用 logger.time`),0},setLevel(e){e<4&&r.a.log(`${s()}set level from ${o} to ${e}`),o=e},getLevel:()=>o,record(e,t){1100===c._length&&(c._data.splice(0,100),c._length=1e3),c._length++,c._data.push(`${e} [${t}] \n`)},getLog:()=>c._data};t.default=c},function(e,t,n){"use strict";var r=n(12),i=Object.prototype.toString;function o(e){return"[object Array]"===i.call(e)}function a(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function c(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){return"[object Function]"===i.call(e)}function l(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),o(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}e.exports={isArray:o,isArrayBuffer:function(e){return"[object ArrayBuffer]"===i.call(e)},isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:s,isPlainObject:c,isUndefined:a,isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:u,isStream:function(e){return s(e)&&u(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:l,merge:function e(){var t={};function n(n,r){c(t[r])&&c(n)?t[r]=e(t[r],n):c(n)?t[r]=e({},n):o(n)?t[r]=n.slice():t[r]=n}for(var r=0,i=arguments.length;r<i;r++)l(arguments[r],n);return t},extend:function(e,t,n){return l(t,(function(t,i){e[i]=n&&"function"==typeof t?r(t,n):t})),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},function(e,t,n){"use strict";(function(e){let n,r;n="undefined"!=typeof console?console:void 0!==e&&e.console?e.console:"undefined"!=typeof window&&window.console?window.console:{};const i=function(){},o=["assert","clear","count","debug","dir","dirxml","error","exception","group","groupCollapsed","groupEnd","info","log","markTimeline","profile","profileEnd","table","time","timeEnd","timeStamp","trace","warn"];let{length:a}=o;for(;a--;)r=o[a],console[r]||(n[r]=i);n.methods=o,t.a=n}).call(this,n(26))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={UNKNOWN:65535,NO_SDK_APPID:2e3,NO_ACCOUNT_TYPE:2001,NO_IDENTIFIER:2002,NO_USER_SIG:2003,NO_TINY_ID:2022,NO_A2KEY:2023,USER_NOT_LOGGED_IN:2024,NO_NETWORK:2805,FAILURE_SWITCH_TO_AUDIO:60001,FAILURE_SWITCH_TO_VIDEO:60002,NOT_MICROPHONE_LIST:60003,NOT_CAMERA_LIST:60004,NOT_MEDIA_ACCESS:60005,NOT_SUPPORT:60006}},function(e,t,n){"use strict";n.r(t),n.d(t,"IN_Browser",(function(){return r})),n.d(t,"IN_WXMiniProgram",(function(){return i})),n.d(t,"USER_AGENT",(function(){return o})),n.d(t,"IS_IPAD",(function(){return c})),n.d(t,"IS_IPHONE",(function(){return u})),n.d(t,"IS_IPOD",(function(){return l})),n.d(t,"IS_IOS",(function(){return d})),n.d(t,"IOS_VERSION",(function(){return h})),n.d(t,"IS_ANDROID",(function(){return f})),n.d(t,"ANDROID_VERSION",(function(){return p})),n.d(t,"IS_OLD_ANDROID",(function(){return g})),n.d(t,"IS_NATIVE_ANDROID",(function(){return m})),n.d(t,"IS_FIREFOX",(function(){return v})),n.d(t,"FIREFOX_VERSION",(function(){return y})),n.d(t,"IS_EDGE",(function(){return _})),n.d(t,"IS_EDG",(function(){return b})),n.d(t,"EDG_VERSION",(function(){return S})),n.d(t,"IS_CHROME",(function(){return x})),n.d(t,"CHROME_MAJOR_VERSION",(function(){return w})),n.d(t,"CHROME_VERSION",(function(){return I})),n.d(t,"IS_IE8",(function(){return C})),n.d(t,"IE_VERSION",(function(){return M})),n.d(t,"IS_SAFARI",(function(){return T})),n.d(t,"IS_ANY_SAFARI",(function(){return k})),n.d(t,"SAFARI_VERSION",(function(){return E})),n.d(t,"IS_TBS",(function(){return A})),n.d(t,"TBS_VERSION",(function(){return D})),n.d(t,"IS_MQQB",(function(){return O})),n.d(t,"IS_QQB",(function(){return R})),n.d(t,"IS_WECHAT",(function(){return L})),n.d(t,"IS_WIN",(function(){return P})),n.d(t,"IS_MAC",(function(){return N})),n.d(t,"IS_LINUX",(function(){return U})),n.d(t,"IS_WX",(function(){return F})),n.d(t,"IS_UCBROWSER",(function(){return G})),n.d(t,"IS_MIUIBROWSER",(function(){return V})),n.d(t,"IS_HUAWEIBROWSER",(function(){return j})),n.d(t,"BROWSER_VERSION",(function(){return B})),n.d(t,"IS_LOCAL",(function(){return z}));const r="undefined"!=typeof window,i="undefined"!=typeof wx,o=window.navigator&&window.navigator.userAgent||"",a=/AppleWebKit\/([\d.]+)/i.exec(o),s=a?parseFloat(a.pop()):null,c=/iPad/i.test(o),u=/iPhone/i.test(o)&&!c,l=/iPod/i.test(o),d=u||c||l,h=function(){const e=o.match(/OS (\d+)_/i);return e&&e[1]?e[1]:null}(),f=/Android/i.test(o),p=function(){const e=o.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;const t=e[1]&&parseFloat(e[1]),n=e[2]&&parseFloat(e[2]);return t&&n?parseFloat(`${e[1]}.${e[2]}`):t||null}(),g=f&&/webkit/i.test(o)&&p<2.3,m=f&&p<5&&s<537,v=/Firefox/i.test(o),y=function(){const e=o.match(/Firefox\/(\d+)/);return e&&e[1]?parseFloat(e[1]):null}(),_=/Edge\//i.test(o),b=/Edg\//i.test(o),S=function(){const e=o.match(/Edg\/(\d+)/);return e&&e[1]?parseFloat(e[1]):null}(),x=!_&&/Chrome/i.test(o),w=function(){const e=o.match(/Chrome\/(\d+)/);return e&&e[1]?parseFloat(e[1]):null}(),I=function(){const e=o.match(/Chrome\/([\d.]+)/);return e&&e[1]?e[1]:null}(),C=/MSIE\s8\.0/.test(o),M=function(){const e=/MSIE\s(\d+)\.\d/.exec(o);let t=e&&parseFloat(e[1]);return!t&&/Trident\/7.0/i.test(o)&&/rv:11.0/.test(o)&&(t=11),t}(),T=/Safari/i.test(o)&&!x&&!f&&!_,k=T||d,E=function(){const e=o.match(/Version\/([\d.]+)/);return e&&e[1]?e[1]:null}(),A=/TBS\/\d+/i.test(o),D=function(){const e=o.match(/TBS\/(\d+)/i);if(e&&e[1])return e[1]}(),O=!A&&/MQQBrowser\/\d+/i.test(o),R=!A&&/ QQBrowser\/\d+/i.test(o),L=/(micromessenger|webbrowser)/i.test(o),P=/Windows/i.test(o),N=/MAC OS X/i.test(o),U=/Linux/i.test(o),F=/MicroMessenger/i.test(o),G=/UCBrowser/i.test(o),V=/MiuiBrowser/i.test(o),j=/HuaweiBrowser/i.test(o),B=x?"Chrome/"+I:T?"Safari/"+E:"NotSupportedBrowser",z="file:"===location.protocol||"localhost"===location.hostname||/^\d+\.\d+\.\d+\.\d+$/.test(location.hostname)},function(e,t,n){"use strict";n.r(t);var r=n(0),i=n(1),o=n(4),a=n.n(o),s=n(21),c=n.n(s);class u{constructor(e){this.sdkappid="",this.version="",this.userid="",this.platform="",this.useragent="",this.method=e,this.codeint=1,this.calltype=1,this.talktime=0,this.message="",this.text="",this.startts=Date.now(),this.endts=0,this.timespan=0,this.time="",this.networktype="",this.host=Object(r.getHostType)()}static bindController(e){u.prototype._eventStatController=e}setCommonInfo(e){const{SDKAppID:t,version:n,userID:i,platform:o,scene:a}=e;this.sdkappid=t,this.version=""+n,this.userid=i,this.platform=o,this.scene=a,this.time=Object(r.date2ISOString)(),this.startts&&this.endts&&!this.timespan&&(this.timespan=Math.abs(this.endts-this.startts))}setEnd(e=!1){this.endts=Date.now(),e?this._eventStatController.pushIn(this):setTimeout(()=>{this._eventStatController.pushIn(this)},0)}setError(e,t,n){return this.setNetworkType(n),t?(e.code&&this.setCode(e.code),e.message&&this.setMessage(e.message)):(this.setCode(a.a.NO_NETWORK),this.setMessage(c.a.NO_NETWORK)),this}setCode(e){return"ECONNABORTED"===e&&(this.codeint=103),Object(r.isNumber)(e)?this.codeint=e:i.default.warn("SSOLogData.setCode value not a number, please check!",e,typeof e),this}setMessage(e){return Object(r.isString)(e)?(this.message=e,this):this}setText(e){return Object(r.isNumber)(e)?this.text=e.toString():Object(r.isString)(e)&&(this.text=e),this}setTalkTime(e){return this.talktime=e,this}setMessageType(e){return this.msgType=e,this}setCallType(e){return this.calltype=e,this}setNetworkType(e){return Object(r.isUndefined)(e)?i.default.warn("SSOLogData.setNetworkType value is undefined, please check!"):this.networktype=e,this}}t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MODE_TYPE=t.VALID_VIDEO_PROFILE_LIST=t.BUSINESS_ID=t.ACTION_TYPE=t.CALL_STATUS=t.CMD_TYPE_LIST=t.CALL_TYPE=void 0,function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.AUDIO_CALL=1]="AUDIO_CALL",e[e.VIDEO_CALL=2]="VIDEO_CALL"}(t.CALL_TYPE||(t.CALL_TYPE={})),t.CMD_TYPE_LIST=["","audioCall","videoCall"],function(e){e.IDLE="idle",e.CALLING="calling",e.CONNECTED="connected"}(t.CALL_STATUS||(t.CALL_STATUS={})),function(e){e[e.INVITE=1]="INVITE",e[e.CANCEL_INVITE=2]="CANCEL_INVITE",e[e.ACCEPT_INVITE=3]="ACCEPT_INVITE",e[e.REJECT_INVITE=4]="REJECT_INVITE",e[e.INVITE_TIMEOUT=5]="INVITE_TIMEOUT"}(t.ACTION_TYPE||(t.ACTION_TYPE={})),function(e){e[e.SIGNAL=1]="SIGNAL"}(t.BUSINESS_ID||(t.BUSINESS_ID={})),t.VALID_VIDEO_PROFILE_LIST=["240p","360p","480p","720p","1080p"],function(e){e.AUDIO="audio",e.VIDEO="video"}(t.MODE_TYPE||(t.MODE_TYPE={}))},function(e,t,n){"use strict";n.r(t),t.default={SDK_CONSTRUCT:"sdkConstruct",SDK_READY:"sdkReady",SDK_NOT_READY:"sdkNotReady",LOGIN:"login",LOGOUT:"logout",CALL:"call",GROUP_CALL:"groupCall",ACCEPT:"accept",REJECT:"reject",HANGUP:"hangup",START_REMOTE_VIEW:"startRemoteView",STOP_REMOTE_VIEW:"stopRemoteView",START_LOCAL_VIEW:"startLocalView",STOP_LOCAL_VIEW:"stopLocalView",OPEN_CAMERA:"openCamera",CLOSE_CAMERA:"closeCamera",SET_MIC_MUTE:"setMicMute",SET_VIDEO_QUALITY:"setVideoQuality",SWITCH_TO_AUDIO_CALL:"switchToAudioCall",SWITCH_TO_VIDEO_CALL:"switchToVideoCall",CHANGE_CALL_STATUS:"changeCallStatus",TALK_TIME:"talktime",ERROR:"error",INVITED:"invited",GROUP_CALL_INVITEE_LIST_UPDATE:"group_call_invitee_list_update",USER_ENTER:"user_enter",USER_LEAVE:"user_leave",NO_RESP:"no_resp",LINE_BUSY:"line_busy",CALLING_CANCEL:"calling_cancel",KICKED_OUT:"kicked_out",CALLING_TIMEOUT:"calling_timeout",CALLING_END:"calling_end",USER_VIDEO_AVAILABLE:"user_video_available",USER_AUDIO_AVAILABLE:"user_audio_available",USER_VOICE_VOLUME:"user_voice_volume"}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return p}));var r=n(1),i=n(0);class o{constructor(){this._table="timweb-trtccalling",this._report=[]}pushIn(e){r.default.debug("SSOLogBody.pushIn",this._report.length,e),this._report.push(e)}backfill(e){Object(i.isArray)(e)&&0!==e.length&&(r.default.debug("SSOLogBody.backfill",this._report.length,e.length),this._report.unshift(...e))}getLogsNumInMemory(){return this._report.length}isEmpty(){return 0===this._report.length}_reset(){this._report.length=0,this._report=[]}getTable(){return this._table}getLogsInMemory(){const e=this._report.slice();return this._reset(),e}}var a=n(6),s=n(10),c=n(22),u=n.n(c);const l={CURRENT:{COMMON:"https://webim.tim.qq.com"},PRODUCTION:{COMMON:"https://webim.tim.qq.com"},OVERSEA_PRODUCTION:{COMMON:"https://api.im.qcloud.com"},SANDBOX:{COMMON:"https://events.tim.qq.com"},TEST:{COMMON:"https://test.tim.qq.com"}},d={IM_OPEN_STAT:"imopenstat"},h={TIM_WEB_TRTCCALLING_REPORT:"tweb_trtccalling_report"},f={imopenstat:"v4"};class p{constructor(){this.TAG="trtccalling-ssolog-event",this._reportBody=new o,this._version=s.version||"",this.MIN_THRESHOLD=20,this.MAX_THRESHOLD=100,this.WAITING_TIME=6e4,this.INTERVAL=2e4,this._timerID=0,this._resetLastReportTime(),this._startReportTimer(),this._retryCount=0,this.MAX_RETRY_COUNT=3}reportAtOnce(){r.default.debug("EventStatController.reportAtOnce"),this._report()}pushIn(e){e instanceof a.default&&(e.setCommonInfo({SDKAppID:Number(sessionStorage.getItem("sdkAppId")),version:this._version,userID:sessionStorage.getItem("userId")}),this._reportBody.pushIn(e),this._report())}_resetLastReportTime(){this._lastReportTime=Date.now()}_startReportTimer(){this._timerID=setInterval(()=>{Date.now()<this._lastReportTime+this.WAITING_TIME||this._reportBody.isEmpty()||this._report()},this.INTERVAL)}_stopReportTimer(){this._timerID>0&&(clearInterval(this._timerID),this._timerID=0)}_report(){if(this._reportBody.isEmpty())return;const e=Math.ceil(+new Date/1e3),t=sessionStorage.getItem("sdkAppId"),n=this._reportBody.getLogsInMemory(),o={table:this._reportBody.getTable(),report:n},a=`${l.CURRENT.COMMON}/${f.imopenstat}/${d.IM_OPEN_STAT}/${h.TIM_WEB_TRTCCALLING_REPORT}/?sdkappid=${t}&reqtime=${e}`;u.a.post(a,JSON.stringify(o)).then(()=>{this._resetLastReportTime(),this._retryCount>0&&(r.default.debug("EventStatController.report retry success"),this._retryCount=0)}).catch(e=>{r.default.warn("EventStatController.report, error:"+Object(i.stringifyError)(e)),this._reportBody.backfill(n),this._reportBody.getLogsNumInMemory()>this.MAX_THRESHOLD||this._retryCount===this.MAX_RETRY_COUNT||0===this._timerID?this._retryCount=0:this._retryCount+=1})}reset(){r.default.log("EventStatController.reset"),this._stopReportTimer(),this._report()}}},function(e){e.exports=JSON.parse('{"name":"trtc-calling-js","version":"1.0.5","description":"腾讯云 TRTC CALLING SDK","main":"index","dependencies":{"axios":"^0.21.0","EventEmitter":"^1.0.0","tim-js-sdk":"^2.13.1","trtc-js-sdk":"^4.11.5","tsignaling":"^0.9.0"},"devDependencies":{"@babel/preset-typescript":"^7.12.7","@tencent/eslint-config-tencent":"^0.16.0","@typescript-eslint/eslint-plugin":"^4.33.0","@typescript-eslint/parser":"^4.33.0","docdash-blue":"^1.1.3","eslint":"^7.27.0","eslint-config-google":"^0.14.0","eslint-plugin-prettier":"^4.0.0","fs-extra":"^9.0.1","jsdoc":"^3.6.5","prettier":"^2.5.0","pretty":"^2.0.0","replace":"^1.2.0","ts-loader":"^8.0.2","typescript":"^3.9.7","webpack":"^4.44.1","webpack-cli":"^3.3.12"},"scripts":{"build":"webpack --config webpack.config.js","build_withcopy":"npm run build && cp dist/npm/trtc-calling-js.js ../TIM-demo-web/node_modules/trtc-calling-js/trtc-calling-js.js","build_withcopy2":"npm run build && cp dist/npm/trtc-calling-js.js ../trtc-calling-webrtc-demo/node_modules/trtc-calling-js/trtc-calling-js.js","build:package":"node build/package-bundle.js","lint":"./node_modules/.bin/eslint ./src; exit 0","fix":"./node_modules/.bin/eslint --fix ./src; exit 0","prerelease":"npm run lint && npm run build && npm run doc && npm run build:package","ts2js":"tsc src/index.ts --outDir build/ts2js --lib es2015,DOM","doc":"npm run ts2js && npm run doc:clean && npm run doc:build","doc:build":"./node_modules/.bin/jsdoc -c build/jsdoc/jsdoc.json && node ./build/jsdoc/fix-doc.js","doc:clean":"node ./build/jsdoc/clean-doc.js","changelog":"cp CHANGELOG.md build/jsdoc/tutorials/CHANGELOG.md"},"repository":{"type":"git","url":"git@git.code.oa.com:TRDCWeb/trtc-calling-webrtc.git"},"author":"Tencent Cloud Terminal R&D Center","license":"ISC"}')},function(t,n){t.exports=e},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t,n){"use strict";var r=n(2);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))})))})),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";(function(t){var r=n(2),i=n(33),o={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s,c={adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==t&&"[object process]"===Object.prototype.toString.call(t))&&(s=n(16)),s),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.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(e){}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, */*"}}};r.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){c.headers[e]=r.merge(o)})),e.exports=c}).call(this,n(32))},function(e,t,n){"use strict";var r=n(2),i=n(34),o=n(36),a=n(13),s=n(37),c=n(40),u=n(41),l=n(17);e.exports=function(e){return new Promise((function(t,n){var d=e.data,h=e.headers;r.isFormData(d)&&delete h["Content-Type"];var f=new XMLHttpRequest;if(e.auth){var p=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";h.Authorization="Basic "+btoa(p+":"+g)}var m=s(e.baseURL,e.url);if(f.open(e.method.toUpperCase(),a(m,e.params,e.paramsSerializer),!0),f.timeout=e.timeout,f.onreadystatechange=function(){if(f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in f?c(f.getAllResponseHeaders()):null,o={data:e.responseType&&"text"!==e.responseType?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:r,config:e,request:f};i(t,n,o),f=null}},f.onabort=function(){f&&(n(l("Request aborted",e,"ECONNABORTED",f)),f=null)},f.onerror=function(){n(l("Network Error",e,null,f)),f=null},f.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(l(t,e,"ECONNABORTED",f)),f=null},r.isStandardBrowserEnv()){var v=(e.withCredentials||u(m))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;v&&(h[e.xsrfHeaderName]=v)}if("setRequestHeader"in f&&r.forEach(h,(function(e,t){void 0===d&&"content-type"===t.toLowerCase()?delete h[t]:f.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),e.responseType)try{f.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&f.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){f&&(f.abort(),n(e),f=null)})),d||(d=null),f.send(d)}))}},function(e,t,n){"use strict";var r=n(35);e.exports=function(e,t,n,i,o){var a=new Error(e);return r(a,t,n,i,o)}},function(e,t,n){"use strict";var r=n(2);e.exports=function(e,t){t=t||{};var n={},i=["url","method","data"],o=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function c(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function u(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=c(void 0,e[i])):n[i]=c(e[i],t[i])}r.forEach(i,(function(e){r.isUndefined(t[e])||(n[e]=c(void 0,t[e]))})),r.forEach(o,u),r.forEach(a,(function(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=c(void 0,e[i])):n[i]=c(void 0,t[i])})),r.forEach(s,(function(r){r in t?n[r]=c(e[r],t[r]):r in e&&(n[r]=c(void 0,e[r]))}));var l=i.concat(o).concat(a).concat(s),d=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===l.indexOf(e)}));return r.forEach(d,u),n}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EVENT=void 0,t.EVENT={ERROR:"onError",SDK_READY:"sdkReady",INVITED:"onInvited",USER_ACCEPT:"onUserAccept",USER_ENTER:"onUserEnter",USER_LEAVE:"onUserLeave",REJECT:"onReject",NO_RESP:"onNoResp",LINE_BUSY:"onLineBusy",CALLING_CANCEL:"onCallingCancel",KICKED_OUT:"onKickedOut",CALLING_TIMEOUT:"onCallingTimeout",CALL_END:"onCallEnd",CALLING_END:"onCallEnd",USER_VIDEO_AVAILABLE:"onUserVideoAvailable",USER_AUDIO_AVAILABLE:"onUserAudioAvailable",USER_VOICE_VOLUME:"onUserVoiceVolume",GROUP_CALL_INVITEE_LIST_UPDATE:"onGroupCallInviteeListUpdate"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={NO_SDK_APPID:"无 SDKAppID",NO_ACCOUNT_TYPE:"无 accountType",NO_IDENTIFIER:"无 userID",NO_USER_SIG:"无 userSig",NO_NETWORK:"未连接到网络"}},function(e,t,n){e.exports=n(27)},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!((i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},a=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};Object.defineProperty(t,"__esModule",{value:!0});var s=n(24),c=n(0),u=n(25),l=n(11),d=n(45),h=n(46),f=n(48),p=n(20),g=n(6),m=n(8),v=n(9),y=n(5),_=n(49),b=n(1),S=n(7),x=n(50),w=n(51),I=n(4),C=n(10),M="TRTCCalling",T=function(){function e(e){this._sdkAppID=e.SDKAppID,this._trtcClient=null,this._userID="",this._userSig="",this._switchCallModeStatus=!0,this._inviterInviteID=[],this._callTimeout=30,this._callStatus=S.CALL_STATUS.IDLE,this._callType=S.CALL_TYPE.UNKNOWN,this._roomID=0,this._isInviter=!1,this._isGroupCall=!1,this._groupCallStatus=!1,this._inviteeList=[],this._unHandledInviteeList=[],sessionStorage.setItem("sdkAppId",""+this._sdkAppID),this._netMonitor=new _.default,this._outerEmitter=new s.default,this._delegate=new f.default(this._outerEmitter),this.tim=e.tim||d.create(e),this._tsignalingClient=new h.default(this,r({tim:this.tim},e)),this._quality="480p";var t=new g.default(m.default.SDK_CONSTRUCT);this._eventStatController=new v.default,g.default.bindController(this._eventStatController),t.setText("version="+C.version+"-ua="+y.USER_AGENT).setEnd(),b.default.info(M+" SDK Version:"+C.version+", SDKAppID:"+e.SDKAppID+", UserAgent:"+y.USER_AGENT)}return e.prototype.getUserID=function(){return this._userID},e.prototype.getCallType=function(){return this._callType},e.prototype.setCallType=function(e){this._callType=e},e.prototype.isInviter=function(){return this._isInviter},e.prototype.getInviteeList=function(){return this._inviteeList},e.prototype.setInviteeList=function(e){this._inviteeList=a(e)},e.prototype.getUnHandledInviteeList=function(){return this._unHandledInviteeList},e.prototype.setUnHandledInviteeList=function(e){this._unHandledInviteeList=a(e),b.default.debug(M+".setUnHandledInviteeList",this._unHandledInviteeList)},e.prototype.isGroupCall=function(){return this._isGroupCall},e.prototype.setIsGroupCall=function(e){this._isGroupCall=e},e.prototype.getGroupID=function(){return this._groupID},e.prototype.setGroupID=function(e){this._groupID=e},e.prototype.hasRemoteConnectedUsers=function(){return this.getRemoteStreamCount()>0},e.prototype.getRemoteStreamCount=function(){return this._trtcClient?this._trtcClient.getRemoteStreams().length:0},e.prototype.setLogLevel=function(e){b.default.setLevel(e),this._tsignalingClient.setLogLevel(e),l.Logger.setLogLevel(e+1)},e.prototype.on=function(e,t,n){this._outerEmitter.on(e,t,n||this)},e.prototype.off=function(e,t,n){this._outerEmitter.off(e,t,n||this)},e.prototype.login=function(e){return i(this,void 0,void 0,(function(){var t,n,r;return o(this,(function(i){switch(i.label){case 0:b.default.debug(M+".login - params:",e),this._netMonitor.start(),t=e.userID,n=e.userSig,this._userID=t,this._userSig=n,this._trtcClient=new u.default({sdkAppID:this._sdkAppID,userID:t,userSig:n,trtcCalling:this}),sessionStorage.setItem("userId",""+this._userID),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this._tsignalingClient.login({userID:t,userSig:n})];case 2:return i.sent(),this._setInterfaceUpLoad(m.default.LOGIN).setText("userId: "+this._userID+" login succeeded").setEnd(),[3,4];case 3:return r=i.sent(),console.log(r),this._setInterfaceUpLoad(m.default.LOGIN).setText("userId: "+this._userID+" login failed, error: "+r).setEnd(),[3,4];case 4:return[2]}}))}))},e.prototype.logout=function(){return i(this,void 0,void 0,(function(){return o(this,(function(e){return b.default.debug(M+".logout"),this._setInterfaceUpLoad(m.default.LOGOUT).setText("userId: "+this._userID+" logout").setEnd(),this._userID="",this._userSig="",this._resetTRTCClient(),this._trtcClient=null,[2,this._tsignalingClient.logout()]}))}))},e.prototype.call=function(e){return i(this,void 0,void 0,(function(){var t,n,r,i,a,s,u;return o(this,(function(o){switch(o.label){case 0:if(this._callStatus!==S.CALL_STATUS.IDLE)throw new Error(M+".call - CALL_STATUS: "+this._callStatus);this._callStatus=S.CALL_STATUS.CALLING,o.label=1;case 1:return o.trys.push([1,3,,4]),[4,navigator.mediaDevices.getUserMedia({audio:!0,video:e.type===S.CALL_TYPE.VIDEO_CALL})];case 2:return t=o.sent(),this._trtcClient.releaseStream(t),[3,4];case 3:throw n=o.sent(),this._callStatus=S.CALL_STATUS.IDLE,this._delegate.onError(I.default.NOT_MEDIA_ACCESS,JSON.stringify(n)),new Error(M+".call - 获取用户设备权限失败,可以通过 https://web.sdk.qcloud.com/trtc/webrtc/demo/detect/index.html 进行trtc能力测试。");case 4:return b.default.log(M+".call - params:",e),r=e.userID,i=e.type,a=e.offlinePushInfo,this._callType=i,this._isInviter=!0,this._inviterID=this._userID,this._inviteeID=r,this._isGroupCall=!1,this._groupID="",this._roomID=c.generateRandomRoomID(),[4,this._tsignalingClient.invite({userID:r,type:i,roomID:this._roomID,timeout:this._callTimeout,offlinePushInfo:a})];case 5:return s=o.sent(),u="callType: "+(i+1)+", \n        conversationType: "+s.data.message.conversationType+", \n        userId:{ "+s.data.message.from+" } invite userId:{ "+s.data.message.to+" }",0===s.code?(this.setInviterInviteID(s.inviteID),this._setInterfaceUpLoad(m.default.CALL).setCallType(i+1).setText(u+" succeeded").setEnd()):(this._setInterfaceUpLoad(m.default.CALL).setCallType(i+1).setText(u+" failed").setEnd(),this._resetTRTCClient()),[2,s]}}))}))},e.prototype.setInviterInviteID=function(e){this._inviterInviteID.push(e),this._inviterInviteID=Array.from(new Set(this._inviterInviteID))},e.prototype.getInviterInviteID=function(){return this._inviterInviteID},e.prototype.delInviterInviteID=function(e){this._inviterInviteID=this._inviterInviteID.filter((function(t){return t!==e}))},e.prototype._setInterfaceUpLoad=function(e){return b.default.time(e),new g.default(e)},e.prototype.getInviterID=function(){return this._inviterID},e.prototype.setInviterID=function(e){this._inviterID=e},e.prototype.groupCall=function(e){return i(this,void 0,void 0,(function(){var t,n,r,i,a,s,u,l,d=this;return o(this,(function(o){switch(o.label){case 0:if(this._groupCallStatus)throw new Error(M+".call - CALL_STATUS: "+this._callStatus);o.label=1;case 1:return o.trys.push([1,3,,4]),[4,navigator.mediaDevices.getUserMedia({audio:!0,video:e.type===S.CALL_TYPE.VIDEO_CALL})];case 2:return t=o.sent(),this._trtcClient.releaseStream(t),[3,4];case 3:throw n=o.sent(),this._delegate.onError(I.default.NOT_MEDIA_ACCESS,JSON.stringify(n)),new Error(M+".call - 获取用户设备权限失败,可以通过 https://web.sdk.qcloud.com/trtc/webrtc/demo/detect/index.html 进行trtc能力测试。");case 4:return this._groupCallStatus=!0,b.default.debug(M+".groupCall - params:",e),r=e.userIDList,i=e.type,a=e.groupID,s=e.offlinePushInfo,this._callType=i,this._isInviter=!0,this._isGroupCall=!0,this._inviterID=this._userID,this._groupID=a||"",this.setInviteeList(r),this.setUnHandledInviteeList(r),this._roomID||(this._roomID=c.generateRandomRoomID(),this._callStatus=S.CALL_STATUS.CALLING),[4,this._tsignalingClient.inviteInGroup({groupID:this._groupID,userIDList:r,type:i,roomID:this._roomID,timeout:this._callTimeout,offlinePushInfo:s})];case 5:return u=o.sent(),b.default.log("groupCall res",u),a?(l="callType: "+(i+1)+",\n      conversationType: "+u.data.message.conversationType+",\n      userId:{ "+u.data.message.from+" } invite { "+u.data.message.to+": "+r+" }",0===u.code?(this.setInviterInviteID(u.inviteID),this._setInterfaceUpLoad(m.default.GROUP_CALL).setCallType(i+1).setText(l+"  succeeded").setEnd()):this._setInterfaceUpLoad(m.default.GROUP_CALL).setCallType(i+1).setText(l+"  failed").setEnd()):(l="callType: "+(i+1)+",\n      result: "+JSON.stringify(u),0===u.code?(u.data.map((function(e){d.setInviterInviteID(e.inviteID)})),this._setInterfaceUpLoad(m.default.GROUP_CALL).setCallType(i+1).setText(l+"  succeeded").setEnd()):(this._setInterfaceUpLoad(m.default.GROUP_CALL).setCallType(i+1).setText(l+"  failed").setEnd(),this._resetTRTCClient())),this._groupCallStatus=!1,[2,u]}}))}))},e.prototype.accept=function(){return i(this,void 0,void 0,(function(){var e,t,n,r,i,a,s,c,u,l=this;return o(this,(function(o){switch(o.label){case 0:if(b.default.debug(M+".accept"),!this._tsignalingClient.getInviteData())return b.default.warn(M+".accept - there are no calls to accept"),[2];e=this._tsignalingClient.getInviteData(),t=e.inviteID,n=e.inviteData,r=n.roomID,i=n.callType,b.default.debug(M+".accept - params","inviteID: "+t+",callType: "+i+",roomID: "+r+"."),this._callType=i,this._callStatus=S.CALL_STATUS.CALLING,o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this._trtcClient.join(r)];case 2:return o.sent(),this._roomID=r,this._tsignalingClient.setInviteData(null),this.changeCallStatus(S.CALL_STATUS.CONNECTED),[3,4];case 3:throw o.sent(),this._resetTRTCClient(),new Error(M+".accept - join room failed");case 4:return o.trys.push([4,6,,7]),[4,this._tsignalingClient.accept({inviteID:t,callType:i})];case 5:return a=o.sent(),u="callType: "+(i+1)+",\n      conversationType: "+a.data.message.conversationType+",\n      userId:{ "+this._userID+" } accept userId:{ "+a.data.message.to+" } succeeded",this._setInterfaceUpLoad(m.default.ACCEPT).setCallType(i+1).setText(""+u).setEnd(),[3,7];case 6:return s=o.sent(),b.default.error(s),this._resetTRTCClient(),u="callType: "+(i+1)+",\n      conversationType: "+a.data.message.conversationType+",\n      userId:{ "+this._userID+" } accept userId:{ "+a.data.message.to+" } failed",this._setInterfaceUpLoad(m.default.ACCEPT).setCallType(i+1).setText(""+u).setEnd(),[2];case 7:return this.isGroupCall()&&(c=this._unHandledInviteeList.filter((function(e){return e!==l._userID})),this.setUnHandledInviteeList(c),u="callType: "+(i+1)+",\n      conversationType: "+a.data.message.conversationType+",\n      userId:{ "+this._userID+" } accept userId:{ "+a.data.message.to+" } succeeded",this._setInterfaceUpLoad(m.default.ACCEPT).setCallType(i+1).setText(u).setEnd()),[2,a]}}))}))},e.prototype.reject=function(){return i(this,void 0,void 0,(function(){var e,t,n,r,i,a,s;return o(this,(function(o){switch(o.label){case 0:return b.default.debug(M+".reject"),this._tsignalingClient.getInviteData()?(e=this._callStatus===S.CALL_STATUS.CONNECTED,b.default.log(M+".reject - status:"+e),t=this._tsignalingClient.getInviteData(),n=t.inviteID,r=t.inviteData,i=r.callType,b.default.debug(M+".reject - params","inviteID: "+n+",callType: "+i+",isBusy: "+e+"."),[4,this._tsignalingClient.reject({inviteID:n,callType:i,isBusy:e})]):(b.default.warn(M+".reject - there are no calls to reject"),[2]);case 1:return a=o.sent(),s="callType: "+(i+1)+",\n    conversationType: "+a.data.message.conversationType+",\n    userId:{ "+this._userID+" } reject userId:{ "+a.data.message.to+" } succeeded",this._setInterfaceUpLoad(m.default.REJECT).setCallType(i+1).setText(s).setEnd(),e||this._resetTRTCClient(),[2,a]}}))}))},e.prototype.hangup=function(){return i(this,void 0,void 0,(function(){var e,t,n;return o(this,(function(r){switch(r.label){case 0:if(b.default.log(M+". - callStatus:"+this._callStatus+" inviteID:"+this._inviterInviteID),this._callStatus===S.CALL_STATUS.CALLING&&0===this._inviterInviteID.length)throw new Error(M+".call/groupCall incomplete。please wait cancel");r.label=1;case 1:return r.trys.push([1,3,,5]),[4,this._cancel()];case 2:return e=r.sent(),[3,5];case 3:return t=r.sent(),[4,this._resetTRTCClient()];case 4:throw r.sent(),b.default.error("leave _cancel",t),new Error(t);case 5:if(this._callStatus!==S.CALL_STATUS.CONNECTED)return[3,11];r.label=6;case 6:return r.trys.push([6,8,,10]),[4,this._trtcClient.leave()];case 7:return e=r.sent(),[3,10];case 8:return n=r.sent(),[4,this._resetTRTCClient()];case 9:throw r.sent(),console.error("hangup leave error",n),new Error(n);case 10:this._setInterfaceUpLoad(m.default.REJECT).setText("userId: "+this._userID+" hangup succeeded").setEnd(),r.label=11;case 11:return[4,this._resetTRTCClient()];case 12:return r.sent(),[2,e]}}))}))},e.prototype._cancel=function(){return i(this,void 0,void 0,(function(){var e,t,n,r,i,a;return o(this,(function(o){switch(o.label){case 0:if(b.default.log("_cancel _inviterInviteID",this._inviterInviteID),0===this._inviterInviteID.length)return[2];e=[],o.label=1;case 1:o.trys.push([1,6,,7]),t=0,o.label=2;case 2:return t<this._inviterInviteID.length?(n=this._inviterInviteID[t],[4,this._tsignalingClient.cancel({inviteID:n})]):[3,5];case 3:r=o.sent(),e.push(r),o.label=4;case 4:return t++,[3,2];case 5:return[3,7];case 6:throw i=o.sent(),new Error(i);case 7:return a="cancel "+JSON.stringify(e)+" succeeded",b.default.log(M+"._cancel "+a),this._setInterfaceUpLoad(m.default.CALLING_CANCEL).setText(a).setEnd(),[2,e]}}))}))},e.prototype.startRemoteView=function(e){return i(this,void 0,void 0,(function(){var t,n;return o(this,(function(r){return b.default.debug(M+".startRemoteView - params:",e),t=e.userID,n=e.videoViewDomID,this._setInterfaceUpLoad(m.default.START_REMOTE_VIEW).setText("remote userId:{ "+t+" } startRemoveView succeeded").setEnd(),[2,this._trtcClient.playVideo({domID:n,type:"remote",userID:t})]}))}))},e.prototype.stopRemoteView=function(e){b.default.debug(M+".stopRemoteView - params:",e);var t=e.userID;this._setInterfaceUpLoad(m.default.STOP_REMOTE_VIEW).setText("remote userId:{ "+t+" } stopRemoveView succeeded").setEnd(),this._trtcClient.stopVideo({type:"remote",userID:t})},e.prototype.startLocalView=function(e){return i(this,void 0,void 0,(function(){var t,n;return o(this,(function(r){return b.default.debug(M+".startLocalView - params:",e),t=e.userID,n=e.videoViewDomID,this._setInterfaceUpLoad(m.default.START_LOCAL_VIEW).setText("remote userId:{ "+t+" } startLocalView succeeded").setEnd(),[2,this._trtcClient.playVideo({domID:n,type:"local",userID:t})]}))}))},e.prototype.stopLocalView=function(e){b.default.debug(M+".stopLocalView - params:",e);var t=e.userID;this._setInterfaceUpLoad(m.default.STOP_LOCAL_VIEW).setText("remote userId:{ "+t+" } stopLocalView succeeded").setEnd(),this._trtcClient.stopVideo({type:"local",userID:t})},e.prototype.openCamera=function(){b.default.debug(M+".openCamera"),this._setInterfaceUpLoad(m.default.OPEN_CAMERA).setText("open camera").setEnd(),this._trtcClient.unMuteLocalVideo()},e.prototype.closeCamera=function(){b.default.debug(M+".closeCamera"),this._setInterfaceUpLoad(m.default.CLOSE_CAMERA).setText("close camera").setEnd(),this._trtcClient.muteLocalVideo()},e.prototype.setMicMute=function(e){b.default.debug(M+".setMicMute - isMute:"+e),this._setInterfaceUpLoad(m.default.SET_MIC_MUTE).setText("setMicMute: "+e).setEnd(),e?this._trtcClient.muteLocalAudio():this._trtcClient.unMuteLocalAudio()},e.prototype.setVideoQuality=function(e){if(!x.isString(e)&&!x.isPlainObject(e)||x.isString(e)&&-1===S.VALID_VIDEO_PROFILE_LIST.indexOf(e.toString()))throw new w.default({message:"params validate failed."});b.default.debug(M+".setVideoQuality - quality:"+JSON.stringify(e)),this._setInterfaceUpLoad(m.default.SET_VIDEO_QUALITY).setText("setVideoQuality: "+JSON.stringify(e)).setEnd(),this._quality=e||"480p"},e.prototype.getVideoQuality=function(){return this._quality},e.prototype.switchToAudioCall=function(){this._callStatus!==S.CALL_STATUS.IDLE?this._isGroupCall?b.default.warn(M+".switchToAudioCall is not applicable to groupCall."):this._callType!==S.CALL_TYPE.AUDIO_CALL?this._switchCallModeStatus?(b.default.log(M+".switchToAudioCall",this._inviterID,this._inviteeID),this._setInterfaceUpLoad(m.default.SWITCH_TO_AUDIO_CALL).setText("switchToAudioCall").setEnd(),this._tsignalingClient.switchCallMode({userID:this._isInviter?this._inviteeID:this._inviterID,call_type:this._callType,roomID:this._roomID,timeout:this._callTimeout,mode:S.MODE_TYPE.AUDIO}),this.setSwitchCallModeStatus(!1)):b.default.warn(M+" audio and video call switching."):b.default.warn(M+" Now the call mode is audio call."):b.default.warn(M+".switchToAudioCall is applicable to  calling or connected.")},e.prototype.setSwitchCallModeStatus=function(e){this._switchCallModeStatus=e},e.prototype.getSwitchCallModeStatus=function(){return this._switchCallModeStatus},e.prototype.switchToVideoCall=function(){this._callStatus!==S.CALL_STATUS.IDLE?this._isGroupCall?b.default.warn(M+".switchToVideoCall is not applicable to groupCall."):this._callType!==S.CALL_TYPE.VIDEO_CALL?this._switchCallModeStatus?(b.default.log(M+".switchToVideoCall",this._inviterID,this._inviteeID),this._setInterfaceUpLoad(m.default.SWITCH_TO_VIDEO_CALL).setText("switchToVideoCall").setEnd(),this._tsignalingClient.switchCallMode({userID:this._isInviter?this._inviteeID:this._inviterID,call_type:this._callType,roomID:this._roomID,timeout:this._callTimeout,mode:S.MODE_TYPE.VIDEO}),this.setSwitchCallModeStatus(!1)):b.default.warn(M+" audio and video call switching."):b.default.warn(M+" Now the call mode is video call."):b.default.warn(M+".switchToVideoCall is applicable to  calling or connected.")},e.prototype.getCameras=function(){return i(this,void 0,void 0,(function(){return o(this,(function(e){return b.default.log(M+".getCameras"),[2,this._trtcClient.getCamera()]}))}))},e.prototype.getMicrophones=function(){return i(this,void 0,void 0,(function(){return o(this,(function(e){return b.default.log(M+".getCameras"),[2,this._trtcClient.getMicrophone()]}))}))},e.prototype.switchDevice=function(e){return i(this,void 0,void 0,(function(){var t,n;return o(this,(function(r){return t=e.deviceType,n=e.deviceId,b.default.debug(M+".switchDevice -params: deviceType:"+t+",deviceID:"+n),[2,this._trtcClient.switchDevice(t,n)]}))}))},e.prototype._resetTRTCClient=function(){return i(this,void 0,void 0,(function(){var e;return o(this,(function(t){switch(t.label){case 0:return b.default.debug(M+"._resetTRTCClient"),this._roomID=null,this._isInviter=!1,this._isGroupCall=!1,this.setSwitchCallModeStatus(!0),this._groupID="",this._callStatus=S.CALL_STATUS.IDLE,this._inviteeList=[],this._unHandledInviteeList=[],this._inviterInviteID=[],[4,this._trtcClient.reset()];case 1:return t.sent(),this._tsignalingClient.setInviteData(null),this._tsignalingClient.resetJoined(),(e=document.getElementById("_trtc_calling_layer"))&&(e.innerHTML=""),[2]}}))}))},e.prototype.getCallStatus=function(){return this._callStatus},e.prototype.changeCallStatus=function(e){this._callStatus!==e&&(b.default.debug(M+".changeCallStatus from "+this._callStatus+" to "+e),this._setInterfaceUpLoad(m.default.CHANGE_CALL_STATUS).setText("changeCallStatus from "+this._callStatus+" to "+e).setEnd(),this._callStatus=e)},e.prototype.extractCallingInfoFromMessage=function(e){if(!e)return"";if("TIMCustomElem"!==e.type)return"";var t=JSON.parse(e.payload.data);if(b.default.debug(M+".extractCallingInfoFromMessage - signalingData:",e.payload.data),t.businessID!==S.BUSINESS_ID.SIGNAL)return"";switch(t.actionType){case S.ACTION_TYPE.INVITE:var n=JSON.parse(t.data);return n.call_end>0?"结束通话,通话时长:"+c.formatDuration(n.call_end):0!==n.call_end&&n.room_id?"发起通话":"结束群聊";case S.ACTION_TYPE.CANCEL_INVITE:return"取消通话";case S.ACTION_TYPE.ACCEPT_INVITE:return"已接听";case S.ACTION_TYPE.REJECT_INVITE:return"拒绝通话";case S.ACTION_TYPE.INVITE_TIMEOUT:return"无应答";default:return""}},e.EVENT=p.EVENT,e.CALL_TYPE=S.CALL_TYPE,e}();t.default=T},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));const r=Function.prototype.apply,i=new WeakMap;function o(e){return i.has(e)||i.set(e,{}),i.get(e)}class a{constructor(e=null,t=console){const n=o(this);return n._events=new Set,n._callbacks={},n._console=t,n._maxListeners=null===e?null:parseInt(e,10),this}_addCallback(e,t,n,r){return this._getCallbacks(e).push({callback:t,context:n,weight:r}),this._getCallbacks(e).sort((e,t)=>e.weight>t.weight),this}_getCallbacks(e){return o(this)._callbacks[e]}_getCallbackIndex(e,t){return this._has(e)?this._getCallbacks(e).findIndex(e=>e.callback===t):null}_achieveMaxListener(e){return null!==o(this)._maxListeners&&o(this)._maxListeners<=this.listenersNumber(e)}_callbackIsExists(e,t,n){const r=this._getCallbackIndex(e,t),i=-1!==r?this._getCallbacks(e)[r]:void 0;return-1!==r&&i&&i.context===n}_has(e){return o(this)._events.has(e)}on(e,t,n=null,r=1){const i=o(this);if("function"!=typeof t)throw new TypeError(t+" is not a function");return this._has(e)?(this._achieveMaxListener(e)&&i._console.warn(`Max listeners (${i._maxListeners}) for event "${e}" is reached!`),this._callbackIsExists(...arguments)&&i._console.warn(`Event "${e}" already has the callback ${t}.`)):(i._events.add(e),i._callbacks[e]=[]),this._addCallback(...arguments),this}once(e,t,n=null,i=1){const o=(...i)=>(this.off(e,o),r.call(t,n,i));return this.on(e,o,n,i)}off(e,t=null){const n=o(this);let r;return this._has(e)&&(null===t?(n._events.delete(e),n._callbacks[e]=null):(r=this._getCallbackIndex(e,t),-1!==r&&(n._callbacks[e].splice(r,1),this.off(...arguments)))),this}emit(e,...t){return this._has(e)&&this._getCallbacks(e).forEach(e=>r.call(e.callback,e.context,t)),this}clear(){const e=o(this);return e._events.clear(),e._callbacks={},this}listenersNumber(e){return this._has(e)?this._getCallbacks(e).length:null}}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!((i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};Object.defineProperty(t,"__esModule",{value:!0});var a=n(11),s=n(1),c=n(7),u=n(0),l=n(6),d=n(8),h=n(9),f=n(4),p="TRTCClient",g=function(){function e(e){var t=this;this._sdkAppID=e.sdkAppID,this._userID=e.userID,this._userSig=e.userSig,this._trtcCalling=e.trtcCalling,this._connectStartTime=0,this._isJoined=!1,this._isPublished=!1,this._localStream=null,this._remoteStreams=[],this._device={video:null,audio:null},this._eventStatController=new h.default,l.default.bindController(this._eventStatController);var n=a.VERSION;u.compareVersion(n,"4.7.0")>=0?a.checkSystemRequirements().then((function(e){if(!e.result)throw t._trtcCalling._delegate.onError(f.default.NOT_SUPPORT,e),new Error(p+".当前页面不具备 webRTC 能力"+JSON.stringify(e))})):a.checkSystemRequirements().then((function(e){if(!e)throw t._trtcCalling._delegate.onError(f.default.NOT_SUPPORT,e),new Error(p+".当前页面不具备 webRTC 能力"+JSON.stringify(e))})),this.init()}return e.prototype.init=function(){this._client=a.createClient({mode:"rtc",sdkAppId:this._sdkAppID,userId:this._userID,userSig:this._userSig,frameWorkType:32}),this.handleEvents()},e.prototype.getRemoteStreams=function(){return this._remoteStreams},e.prototype.getCamera=function(){return r(this,void 0,void 0,(function(){var e,t=this;return i(this,(function(n){switch(n.label){case 0:return[4,a.getCameras()];case 1:return e=n.sent(),s.default.log(p+".getCamera - "+JSON.stringify(e)),e.length>0?this._device.video&&e.some((function(e){return e.deviceId===t._device.video.deviceId}))||(this._device.video=e[0]):this._device.video=null,[2,e]}}))}))},e.prototype.getMicrophone=function(){return r(this,void 0,void 0,(function(){var e,t=this;return i(this,(function(n){switch(n.label){case 0:return[4,a.getMicrophones()];case 1:return e=n.sent(),s.default.log(p+".getMicrophone - "+JSON.stringify(e)),e.length>0?this._device.audio&&e.some((function(e){return e.deviceId===t._device.audio.deviceId}))||(this._device.audio=e[0]):this._device.audio=null,[2,e]}}))}))},e.prototype.switchDevice=function(e,t){return r(this,void 0,void 0,(function(){var n;return i(this,(function(r){return s.default.log(p+".switchDevice - params: deviceType:"+e+",deviceID:"+t),this._localStream?this._localStream.switchDevice(e,t):(n={deviceType:e,deviceId:t},this._device[e]=n),[2]}))}))},e.prototype.join=function(e){return r(this,void 0,void 0,(function(){var t,n,r,o,u,l;return i(this,(function(i){switch(i.label){case 0:return[4,this.getCamera()];case 1:return i.sent(),[4,this.getMicrophone()];case 2:if(i.sent(),t=this.getCallType(),!this._device.audio)return s.default.warn(p+".join - invalid microphone"),this._trtcCalling._delegate.onError(f.default.NOT_MICROPHONE_LIST,"invalid microphone"),this._trtcCalling._resetTRTCClient(),[2];if(!this._device.video&&t===c.CALL_TYPE.VIDEO_CALL)return s.default.warn(p+".join - invalid camera"),this._trtcCalling._delegate.onError(f.default.NOT_CAMERA_LIST,"invalid camera"),this._trtcCalling._resetTRTCClient(),[2];if(this._isJoined)return s.default.warn(p+".join - duplicate RtcClient.join() observed"),[2];i.label=3;case 3:return i.trys.push([3,14,,15]),[4,this._client.join({roomId:e})];case 4:if(i.sent(),this._isJoined=!0,this._trtcCalling.getCallStatus()===c.CALL_STATUS.IDLE)return s.default.warn(p+".join - early hangup"),this._trtcCalling.hangup(),[2];if(s.default.log(p+".join - join room success, callType:"+t),t!==c.CALL_TYPE.AUDIO_CALL&&t!==c.CALL_TYPE.VIDEO_CALL)return s.default.log(p+".join - invalid callType"),[2];n={audio:!0,video:!1,userId:this._userID,microphoneId:this._device.audio.deviceId,cameraId:null},t===c.CALL_TYPE.VIDEO_CALL?(n.video=!0,n.cameraId=this._device.video.deviceId):delete n.cameraId,this._localStream=a.createStream(n),this._localStream.setVideoProfile(this._trtcCalling.getVideoQuality()),i.label=5;case 5:return i.trys.push([5,8,,13]),[4,this._localStream.initialize()];case 6:return i.sent(),s.default.log(p+".join - initialize local stream success"),this._localStream.on("player-state-changed",(function(e){s.default.log(p+".join - local stream "+e.type+" player is "+e.state)})),[4,this.publish()];case 7:return i.sent(),s.default.log(p+".publish success"),this._joinedTimestamp=new Date,[3,13];case 8:r=i.sent(),s.default.error(p+".join - failed to initialize local stream - "+r),i.label=9;case 9:return i.trys.push([9,11,,12]),[4,navigator.mediaDevices.getUserMedia({audio:!0,video:!0})];case 10:return o=i.sent(),this.releaseStream(o),[3,12];case 11:return u=i.sent(),this._trtcCalling._delegate.onError(f.default.NOT_MEDIA_ACCESS,JSON.stringify(u)),[3,12];case 12:return[3,13];case 13:return[3,15];case 14:return l=i.sent(),s.default.error(p+".join - join room failed! "+l),[3,15];case 15:return[2]}}))}))},e.prototype.playVideo=function(e){var t;s.default.debug(p+".playVideo - params:",e);var n=e.domID,r=e.type,i=e.userID;if("local"===r&&(null===(t=null==this?void 0:this._localStream)||void 0===t||t.play(n)),"remote"===r){var o=this._remoteStreams.find((function(e){return e.getUserId()===i}));o&&(null==o||o.play(n))}},e.prototype.stopVideo=function(e){s.default.debug(p+".stopVideo - params:",e);var t=e.type,n=e.userID;if("local"===t&&this._localStream.stop(),"remote"===t){var r=this._remoteStreams.find((function(e){return e.getUserId()===n}));r&&r.stop()}},e.prototype.getCallType=function(){return this._trtcCalling.getCallType()},e.prototype.leave=function(){var e,t;return r(this,void 0,void 0,(function(){var n;return i(this,(function(r){switch(r.label){case 0:return s.default.log(p+"-leave._isJoined:"+this._isJoined),s.default.log(p+"-leave._localStream:"+this._localStream),this._isJoined?this._localStream?[4,this.unpublish()]:[3,2]:(s.default.warn(p+".leave - please join() firstly"),[2]);case 1:r.sent(),null===(e=null==this?void 0:this._localStream)||void 0===e||e.stop(),null===(t=null==this?void 0:this._localStream)||void 0===t||t.close(),this._localStream=null,r.label=2;case 2:return r.trys.push([2,4,,5]),[4,this._client.leave()];case 3:return r.sent(),this._isJoined=!1,this._leaveTimestamp=new Date,n=Math.floor((this._leaveTimestamp-this._joinedTimestamp)/1e3),new l.default(d.default.TALK_TIME).setTalkTime(n).setText("talkTime record").setEnd(),[3,5];case 4:throw r.sent(),this._trtcCalling._resetTRTCClient(),new Error("leave room error");case 5:return[2]}}))}))},e.prototype.publish=function(){return r(this,void 0,void 0,(function(){var e;return i(this,(function(t){switch(t.label){case 0:if(!this._isJoined)return s.default.warn(p+".publish - please join() firstly"),[2];if(this._isPublished)return s.default.warn(p+".publish - duplicate RtcClient.publish() observed"),[2];if(this._trtcCalling.getCallStatus()===c.CALL_STATUS.IDLE)return s.default.warn(p+".join - early hangup"),this._trtcCalling.hangup(),[2];t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this._client.publish(this._localStream)];case 2:return t.sent(),s.default.log(p+".publish - success"),[3,4];case 3:return e=t.sent(),s.default.error(p+".publish - failed to publish local stream "+e),this._isPublished=!1,[3,4];case 4:return this._isPublished=!0,[2]}}))}))},e.prototype.unpublish=function(){return r(this,void 0,void 0,(function(){var e;return i(this,(function(t){switch(t.label){case 0:if(!this._isJoined)return s.default.warn(p+".unpublish - please join() firstly"),[2];if(!this._isPublished)return s.default.warn(p+".unpublish - RtcClient.unpublish() called but not published yet"),[2];t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this._client.unpublish(this._localStream)];case 2:return t.sent(),s.default.log(p+".unpublish - success"),[3,4];case 3:return e=t.sent(),s.default.error(p+".unpublish - failed to publish local stream "+e),[3,4];case 4:return this._isPublished=!1,[2]}}))}))},e.prototype.handleEvents=function(){var e=this;this._client.on("error",(function(t){s.default.error(p+".handleEvents - client on error "+t);var n=t.getCode(),r=JSON.stringify({name:"TRTC",error:t});e._trtcCalling._delegate.onError(n,r)})),this._client.on("client-banned",(function(e){s.default.error(p+".handleEvents - client has been banned for "+e)})),this._client.on("peer-join",(function(t){var n=t.userId;if(s.default.debug(p+".handleEvents - peer-join "+n),e._connectStartTime||(e._connectStartTime=Date.now()),e._trtcCalling.isGroupCall()){var r=e._trtcCalling.getUnHandledInviteeList(),i=o(r,[n]);e._trtcCalling.setUnHandledInviteeList(i),e._trtcCalling._delegate.onGroupCallInviteeListUpdate(i)}})),this._client.on("peer-leave",(function(t){return r(e,void 0,void 0,(function(){var e,n,r,o,a;return i(this,(function(i){switch(i.label){case 0:return e=t.userId,n=this._remoteStreams.filter((function(t){return t.getUserId()!==e})),r=this._trtcCalling.getUnHandledInviteeList(),o=this._trtcCalling.isGroupCall(),s.default.log(p+".handleEvents - peer-leave isGroupCall:"+o+" userID:"+e+",\n       remainStreamsCount:"+n.length+" unHandledListLength:"+r.length),o&&0!==r.length&&(a=r.filter((function(t){return t!==e})),this._trtcCalling.setUnHandledInviteeList(a),this._trtcCalling._delegate.onGroupCallInviteeListUpdate(a)),0!==n.length?[3,3]:[4,this.leave()];case 1:return i.sent(),[4,this._trtcCalling._tsignalingClient.lastOneHangup({userIDList:[e],callType:this.getCallType(),callEnd:Math.round((Date.now()-this._connectStartTime)/1e3)})];case 2:i.sent(),this._trtcCalling._resetTRTCClient(),this._connectStartTime=0,i.label=3;case 3:return[2]}}))}))})),this._client.on("stream-added",(function(t){return r(e,void 0,void 0,(function(){var e,n,r;return i(this,(function(i){switch(i.label){case 0:e=t.stream,n=e.getId(),r=e.getUserId(),s.default.log(p+".handleEvents - remote stream added, userID:"+r+" streamID:"+n+" type:"+e.getType()),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this._client.subscribe(e)];case 2:return i.sent(),[3,4];case 3:return i.sent(),0===this._remoteStreams.length&&this._trtcCalling.hangup(),[3,4];case 4:return[2]}}))}))})),this._client.on("stream-subscribed",(function(t){return r(e,void 0,void 0,(function(){var e,n,r,o,a,u,l;return i(this,(function(i){return e=t.stream,this._remoteStreams.push(e),n=e.getUserId(),this._trtcCalling._delegate.onUserEnter(n),r="_trtc_calling_audio_call-"+n,s.default.log(p+".handleEvents - stream subscribed, _remoteStreams:"+this._remoteStreams),this.getCallType()===c.CALL_TYPE.AUDIO_CALL&&((o=document.getElementById("_trtc_calling_layer"))||((o=document.createElement("div")).setAttribute("id","_trtc_calling_layer"),o.style.display="none",document.body.appendChild(o)),(a=document.createElement("div")).setAttribute("id",r),o.appendChild(a),(u=document.createElement("button")).onclick=function(){s.default.log(p+".remoteStream - resume"),e.resume()},u.setAttribute("class","resume"),u.style.display="none",document.body.appendChild(u),null==e||e.play(r),l=setTimeout((function(){u.click(),clearTimeout(l),document.body.removeChild(u)}),0)),[2]}))}))})),this._client.on("stream-removed",(function(t){var n=t.stream,r=n.getId(),i=n.getUserId(),o="_trtc_calling_audio_call-"+i;if(n.stop(),n.close(),e._remoteStreams=e._remoteStreams.filter((function(e){return e.getId()!==r})),e._trtcCalling._delegate.onUserLeave(i),e.getCallType()===c.CALL_TYPE.AUDIO_CALL){var a=document.getElementById("_trtc_calling_layer"),u=document.getElementById(o);a&&u&&a.removeChild(u)}s.default.log(p+".handleEvents - remote stream-removed, streamID:"+r+" type:"+n.getType())})),this._client.on("stream-updated",(function(e){var t=e.stream,n=t.getType(),r=t.hasAudio(),i=t.hasVideo();s.default.log(p+".handleEvents - stream-updated, type:"+n+" hasAudio:"+r+" hasVideo:"+i)})),this._client.on("mute-audio",(function(t){s.default.debug(p+".handleEvents - "+t.userId+" mute audio"),e._trtcCalling._delegate.onUserAudioAvailable({userID:t.userId,isAudioAvailable:!1})})),this._client.on("unmute-audio",(function(t){s.default.debug(p+".handleEvents - "+t.userId+" unmute audio"),e._trtcCalling._delegate.onUserAudioAvailable({userID:t.userId,isAudioAvailable:!0})})),this._client.on("mute-video",(function(t){s.default.debug(p+".handleEvents - "+t.userId+" mute video"),e._trtcCalling._delegate.onUserVideoAvailable({userID:t.userId,isVideoAvailable:!1})})),this._client.on("unmute-video",(function(t){s.default.debug(p+".handleEvents - "+t.userId+" unmute video"),e._trtcCalling._delegate.onUserVideoAvailable({userID:t.userId,isVideoAvailable:!0})})),this._client.on("connection-state-changed",(function(e){s.default.log(p+".handleEvents - RtcClient state changed from "+e.prevState+" to "+e.state)}))},e.prototype.muteLocalVideo=function(){this._localStream.muteVideo()},e.prototype.unMuteLocalVideo=function(){this._localStream.unmuteVideo()},e.prototype.muteLocalAudio=function(){this._localStream.muteAudio()},e.prototype.unMuteLocalAudio=function(){this._localStream.unmuteAudio()},e.prototype.switchCallMode=function(e){s.default.log(p+".switchCallMode - type",e);var t=this._localStream.getVideoTrack();switch(e){case c.CALL_TYPE.VIDEO_CALL:this.removeTrack(t),this._trtcCalling.setSwitchCallModeStatus(!0);break;case c.CALL_TYPE.AUDIO_CALL:this.addTrack(t),this._trtcCalling.setSwitchCallModeStatus(!0)}},e.prototype.removeTrack=function(e){return r(this,void 0,void 0,(function(){var t;return i(this,(function(n){switch(n.label){case 0:if(s.default.log(p+".removeTrack ",!!e),!e)return[3,4];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this._localStream.removeTrack(e)];case 2:return n.sent(),e.stop(),this._trtcCalling.setCallType(c.CALL_TYPE.AUDIO_CALL),[3,4];case 3:return t=n.sent(),s.default.error(p+".removeTrack - failed to removeTrack local stream "+t),this._trtcCalling._delegate.onError(f.default.FAILURE_SWITCH_TO_AUDIO,"switch to audio call error'"),[3,4];case 4:return[2]}}))}))},e.prototype.addTrack=function(e){return r(this,void 0,void 0,(function(){var t,n,r;return i(this,(function(i){switch(i.label){case 0:return s.default.log(p+".addTrack ",!e),e?[3,5]:[4,(t=a.createStream({userId:this._trtcCalling.getUserID(),audio:!1,video:!0})).initialize()];case 1:i.sent(),n=t.getVideoTrack(),i.label=2;case 2:return i.trys.push([2,4,,5]),[4,this._localStream.addTrack(n)];case 3:return i.sent(),this._trtcCalling.setCallType(c.CALL_TYPE.VIDEO_CALL),[3,5];case 4:return r=i.sent(),s.default.error(p+".addTrack - failed to addTrack local stream "+r),this._trtcCalling._delegate.onError(f.default.FAILURE_SWITCH_TO_VIDEO,"switch to video call error'"),[3,5];case 5:return[2]}}))}))},e.prototype.reset=function(){return r(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return console.log(p+"._isJoined:"+this._isJoined+",_localStream:"+this._localStream),this._isJoined&&this._localStream?[4,this.leave()]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))},e.prototype.releaseStream=function(e){for(var t=e.getTracks(),n=0;n<t.length;n++)t[n].stop()},e}();t.default=g},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";var r=n(2),i=n(12),o=n(28),a=n(18);function s(e){var t=new o(e),n=i(o.prototype.request,t);return r.extend(n,o.prototype,t),r.extend(n,t),n}var c=s(n(15));c.Axios=o,c.create=function(e){return s(a(c.defaults,e))},c.Cancel=n(19),c.CancelToken=n(42),c.isCancel=n(14),c.all=function(e){return Promise.all(e)},c.spread=n(43),c.isAxiosError=n(44),e.exports=c,e.exports.default=c},function(e,t,n){"use strict";var r=n(2),i=n(13),o=n(29),a=n(30),s=n(18);function c(e){this.defaults=e,this.interceptors={request:new o,response:new o}}c.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,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);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},c.prototype.getUri=function(e){return e=s(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){c.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){c.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}})),e.exports=c},function(e,t,n){"use strict";var r=n(2);function i(){this.handlers=[]}i.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},function(e,t,n){"use strict";var r=n(2),i=n(31),o=n(14),a=n(15);function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return s(e),t.data=i(t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(s(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},function(e,t,n){"use strict";var r=n(2);e.exports=function(e,t,n){return r.forEach(n,(function(n){e=n(e,t)})),e}},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var c,u=[],l=!1,d=-1;function h(){l&&c&&(l=!1,c.length?u=c.concat(u):d=-1,u.length&&f())}function f(){if(!l){var e=s(h);l=!0;for(var t=u.length;t;){for(c=u,u=[];++d<t;)c&&c[d].run();d=-1,t=u.length}c=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function g(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new p(e,t)),1!==u.length||l||s(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){"use strict";var r=n(2);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},function(e,t,n){"use strict";var r=n(17);e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,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}},function(e,t,n){"use strict";var r=n(2);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,i,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,n){"use strict";var r=n(38),i=n(39);e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var r=n(2),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,a={};return e?(r.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(a[t]&&i.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},function(e,t,n){"use strict";var r=n(2);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},function(e,t,n){"use strict";var r=n(19);function i(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e;return{token:new i((function(t){e=t})),cancel:e}},e.exports=i},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},function(e,n){e.exports=t},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!((i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},a=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};Object.defineProperty(t,"__esModule",{value:!0});var s=n(47),c=n(1),u=n(7),l=n(0),d=n(4),h="TSignalClient",f=function(){function e(e,t){this._trtcCalling=e,this._tsignaling=new s(t),this._tsignalingReady=!1,this._joined=!1,this._newInvitationData=null,this.initEvents()}return e.prototype.setLogLevel=function(e){this._tsignaling.setLogLevel(e)},e.prototype.initEvents=function(){var e=this._tsignaling;e.on(s.EVENT.SDK_READY,this.onSdkReady,this),e.on(s.EVENT.SDK_NOT_READY,this.onSdkNotReady,this),e.on(s.EVENT.NEW_INVITATION_RECEIVED,this.onNewInvitationReceived,this),e.on(s.EVENT.INVITEE_ACCEPTED,this.onInviteeAccepted,this),e.on(s.EVENT.INVITEE_REJECTED,this.onInviteeRejected,this),e.on(s.EVENT.INVITATION_CANCELLED,this.onInvitationCancelled,this),e.on(s.EVENT.INVITATION_TIMEOUT,this.onInvitationTimeout,this),e.on(s.EVENT.KICKED_OUT,this.onKickedOut,this),e.on(s.EVENT.NET_STATE_CHANGE,this.onNetStateChange,this)},e.prototype.onSdkReady=function(e){this._tsignalingReady=!0,this._trtcCalling._delegate.onSdkReady(e)},e.prototype.onSdkNotReady=function(){this._tsignalingReady=!1},e.prototype.onNewInvitationReceived=function(e){var t;return i(this,void 0,void 0,(function(){var n,r,i,a,s,f,p,g,m,v,y;return o(this,(function(o){switch(o.label){case 0:if(n=this._trtcCalling.getCallStatus(),c.default.log(h+".onNewInvitationReceived - params:",e,"currentCallStatus:"+n),r=e.data,i=r.inviter,a=r.inviteeList,s=r.data,f=r.inviteID,p=r.groupID,g=JSON.parse(s),m=!!(p||a.length>=2||(null===(t=null==g?void 0:g.data)||void 0===t?void 0:t.userIDs)&&g.data.userIDs.length>=2)){if(!g.room_id||0===g.call_end)return this._trtcCalling._delegate.onCallEnd(i,g.call_end||0),[2]}else if(l.isNumber(g.call_end)&&g.call_end>=0)return this._trtcCalling._delegate.onCallEnd(i,g.call_end),[2];if(!p&&this.judgeSwitchCallMode(g))return this.handleSwitchCallMode(f,g),[2];if(this._isOnACall()||n===u.CALL_STATUS.CALLING)return this.reject({inviteID:f,callType:g.call_type,isBusy:!0}),this._trtcCalling.setSwitchCallModeStatus(!0),this._trtcCalling._delegate.onLineBusy(i,this._trtcCalling.getUserID()),[2];this._trtcCalling.setInviterID(i),m&&(this._trtcCalling.setIsGroupCall(m),this._trtcCalling.setInviteeList(a),this._trtcCalling.setUnHandledInviteeList(a),this._trtcCalling.setGroupID(p)),this._trtcCalling.changeCallStatus(u.CALL_STATUS.CALLING),this._newInvitationData={sponsor:i,userIDList:a,isFromGroup:m,inviteID:f,inviteData:{version:g.version,callType:g.call_type,callEnd:0,roomID:g.room_id}},o.label=1;case 1:return o.trys.push([1,3,,4]),[4,navigator.mediaDevices.getUserMedia({audio:!0,video:g.call_type===u.CALL_TYPE.VIDEO_CALL})];case 2:return v=o.sent(),c.default.log("getUserMedia info",JSON.stringify(v)),this._trtcCalling._trtcClient.releaseStream(v),this._trtcCalling._delegate.onInvited(this._newInvitationData),[3,4];case 3:return y=o.sent(),this._trtcCalling._delegate.onError(d.default.NOT_MEDIA_ACCESS,JSON.stringify(y)),c.default.error("onNewInvitationReceived getUserMedia failure "+JSON.stringify(y)+". reject remote invite"),this._trtcCalling.reject(),[3,4];case 4:return[2]}}))}))},e.prototype.getInviteData=function(){return this._newInvitationData},e.prototype.setInviteData=function(e){this._newInvitationData=e},e.prototype.handleSwitchCallMode=function(e,t){var n={inviteID:e,callType:t.call_type,switch_to_audio_call:null},r={cmd:"switchToVideo"};if(t.call_type===u.CALL_TYPE.VIDEO_CALL?(n.switch_to_audio_call="switch_to_audio_call",r.cmd="switchToAudio"):delete n.switch_to_audio_call,this.accept(n,r),this._trtcCalling.getCallStatus()===u.CALL_STATUS.CALLING){var i=t.call_type===u.CALL_TYPE.VIDEO_CALL?u.CALL_TYPE.AUDIO_CALL:u.CALL_TYPE.VIDEO_CALL;this._newInvitationData.inviteData.callType=i}else this._isOnACall()&&(this._trtcCalling.setSwitchCallModeStatus(!1),this._trtcCalling._trtcClient.switchCallMode(this._trtcCalling.getCallType()))},e.prototype.judgeSwitchCallMode=function(e){var t=e.switch_to_audio_call&&"switch_to_audio_call"===e.switch_to_audio_call||e.data&&"switchToAudio"===e.data.cmd||e.data&&"switchToVideo"===e.data.cmd;return c.default.log(h+".switchCallMode:",e,"isSwitchCallMode-"+t),t},e.prototype.onInviteeAccepted=function(e){c.default.log(h+".onInviteeAccepted - params:",e);var t=JSON.parse(e.data.data);if(this._trtcCalling.isGroupCall()||!this.judgeSwitchCallMode(t)||this._trtcCalling.getSwitchCallModeStatus()){this._trtcCalling._delegate.onUserAccept(this._trtcCalling.getUserID()),this._trtcCalling.delInviterInviteID(e.data.inviteID);var n=e.data.invitee;if(this._trtcCalling.isGroupCall()){var r=this._trtcCalling.getUnHandledInviteeList().filter((function(e){return e!==n}));this._trtcCalling.setUnHandledInviteeList(r)}return n===this._trtcCalling.getUserID()&&this._trtcCalling.getCallStatus()===u.CALL_STATUS.CONNECTED?(this._trtcCalling._resetTRTCClient(),void this._trtcCalling._delegate.onReject(this._trtcCalling.getInviterID())):void 0}this._trtcCalling._trtcClient.switchCallMode(this._trtcCalling.getCallType())},e.prototype.onInviteeRejected=function(e){var t;if(!this._trtcCalling.isGroupCall()&&!this._trtcCalling.getSwitchCallModeStatus())return c.default.log(h+".onInviteeRejected - Audio and video switching is not available"),void this._trtcCalling.setSwitchCallModeStatus(!0);c.default.log(h+".onInviteeRejected - params:",e);var n=e.data.invitee,r=e.data.inviter,i=e.data.inviteID,o=JSON.parse(e.data.data);if("line_busy"===o.line_busy||""===o.line_busy||(null===(t=null==o?void 0:o.data)||void 0===t?void 0:t.message)&&"lineBusy"===o.data.message?this._trtcCalling._delegate.onLineBusy(r,n):this._trtcCalling._delegate.onReject(n),this._trtcCalling.delInviterInviteID(i),this._trtcCalling.isGroupCall()){var a=this._trtcCalling.getUnHandledInviteeList();a=a.filter((function(e){return e!==n})),this._trtcCalling.setUnHandledInviteeList(a),0===a.length&&(this._trtcCalling.getCallStatus()===u.CALL_STATUS.CALLING&&this._trtcCalling._resetTRTCClient(),this._trtcCalling.getCallStatus()===u.CALL_STATUS.CONNECTED&&(this._trtcCalling.hasRemoteConnectedUsers()||(this._trtcCalling._delegate.onCallEnd(n,0),this._trtcCalling._resetTRTCClient())))}else this._trtcCalling._resetTRTCClient()},e.prototype.onInvitationCancelled=function(e){c.default.log(h+".onInvitationCancelled - params:",e),this._trtcCalling._delegate.onCallingCancel(),this._trtcCalling._resetTRTCClient()},e.prototype.onInvitationTimeout=function(e){var t=e.data,n=t.inviter,r=t.inviteeList,i=t.isSelfTimeout,o=this._trtcCalling.getUserID(),a=this._trtcCalling.isGroupCall(),s=n===o,l=this._isOnACall(),d=this._trtcCalling.getRemoteStreamCount();if(c.default.log(h+".onInvitationTimeout - params:",e,"currentUserID:"+o+" isInviter:"+s+" isGroupCall:"+a+" isOnACall:"+l+" remoteStreamCount:"+d),this._trtcCalling.delInviterInviteID(e.data.inviteID),i&&s)return this._trtcCalling._delegate.onNoResp(n,r),void(a&&0!==d||(this._trtcCalling._resetTRTCClient(),this._trtcCalling._delegate.onCallEnd(n,0)));if(this._trtcCalling._delegate.onCallingTimeout(n,r),a){var f=this._trtcCalling.getUnHandledInviteeList(),p=[];f.forEach((function(e){-1===r.indexOf(e)&&p.push(e)})),this._trtcCalling.setUnHandledInviteeList(p),0===d&&0===p.length&&(l?this.lastOneHangup({userIDList:[n],callType:this._trtcCalling.getCallType(),callEnd:0}):(this._trtcCalling._delegate.onCallEnd(n,0),this._trtcCalling.changeCallStatus(u.CALL_STATUS.IDLE)),this._trtcCalling._resetTRTCClient())}else this._trtcCalling._delegate.onCallEnd(n,0),this._trtcCalling._resetTRTCClient(),this._trtcCalling.changeCallStatus(u.CALL_STATUS.IDLE)},e.prototype._isOnACall=function(){return this._trtcCalling.getCallStatus()===u.CALL_STATUS.CONNECTED},e.prototype.onKickedOut=function(){c.default.debug(h+".onKickedOut"),this._trtcCalling._delegate.onKickedOut(),this._trtcCalling.changeCallStatus(u.CALL_STATUS.IDLE)},e.prototype.onNetStateChange=function(){c.default.debug(h+".onNetStateChange")},e.prototype.login=function(e){return i(this,void 0,void 0,(function(){return o(this,(function(t){return[2,this._tsignaling.login(e)]}))}))},e.prototype.logout=function(){return i(this,void 0,void 0,(function(){return o(this,(function(e){return this._joined=!1,[2,this._tsignaling.logout()]}))}))},e.prototype.invite=function(e){return i(this,void 0,void 0,(function(){var t,n,r,i,a,s;return o(this,(function(o){switch(o.label){case 0:return t=e.userID,n=e.type,r=e.roomID,i=e.timeout,a=e.offlinePushInfo,s=e.userIDList,this._trtcCalling.isGroupCall()||!this._trtcCalling.isInviter()||this._joined||this._trtcCalling.getCallStatus()!==u.CALL_STATUS.CALLING?[3,2]:[4,this._trtcCalling._trtcClient.join(this._trtcCalling._roomID)];case 1:o.sent(),this._trtcCalling.changeCallStatus(u.CALL_STATUS.CONNECTED),this._joined=!0,o.label=2;case 2:return[4,this._tsignaling.invite({userID:t,data:JSON.stringify(this.handleNewSignaling({version:0,call_type:n,room_id:r},{userIDs:s})),timeout:i,offlinePushInfo:a})];case 3:return[2,o.sent()]}}))}))},e.prototype.inviteInGroup=function(e){return i(this,void 0,void 0,(function(){var t,n,r,i,a,s,c;return o(this,(function(o){switch(o.label){case 0:return t=e.groupID,n=e.userIDList,r=e.roomID,i=e.type,a=e.timeout,s=e.offlinePushInfo,c=null,!this._trtcCalling.isInviter()||this._joined||this._trtcCalling.getCallStatus()!==u.CALL_STATUS.CALLING?[3,2]:[4,this._trtcCalling._trtcClient.join(this._trtcCalling._roomID)];case 1:o.sent(),this._trtcCalling.changeCallStatus(u.CALL_STATUS.CONNECTED),this._joined=!0,o.label=2;case 2:return t?[3,4]:[4,this.inviteInGroupTRTC(e)];case 3:return c=o.sent(),[3,6];case 4:return[4,this._tsignaling.inviteInGroup({groupID:t,inviteeList:n,data:JSON.stringify(this.handleNewSignaling({version:0,call_type:i,room_id:r})),timeout:a,offlinePushInfo:s})];case 5:c=o.sent(),o.label=6;case 6:return[2,c]}}))}))},e.prototype.inviteInGroupTRTC=function(e){return i(this,void 0,void 0,(function(){var t,n,r,i,a,s,c,u,l,d=this;return o(this,(function(o){switch(o.label){case 0:t=e.userIDList,n=e.roomID,r=e.type,i=e.timeout,a=e.offlinePushInfo,s={code:0,data:[],error:null},o.label=1;case 1:return o.trys.push([1,3,,4]),c=t.map((function(e){return d.invite({userID:e,type:r,roomID:n,timeout:i,offlinePushInfo:a,userIDList:t})})),[4,Promise.all(c)];case 2:return u=o.sent(),s.data=u,delete s.error,[3,4];case 3:return l=o.sent(),s.code=1,s.error=l,[3,4];case 4:return[2,s]}}))}))},e.prototype.lastOneHangup=function(e){return i(this,void 0,void 0,(function(){var t,n,r;return o(this,(function(i){switch(i.label){case 0:return c.default.log(h+".lastOneHangup - params:",e),t=e.userIDList,n=e.callType,r=e.callEnd,this._trtcCalling.isGroupCall()&&this._trtcCalling.getGroupID()?[4,this._tsignaling.inviteInGroup({inviteeList:t,groupID:this._trtcCalling.getGroupID(),data:JSON.stringify(this.handleNewSignaling({version:0,call_type:n,call_end:r},{cmd:"hangup"})),timeout:0})]:[3,2];case 1:return i.sent(),[3,4];case 2:return[4,this._tsignaling.invite({userID:t[0],data:JSON.stringify(this.handleNewSignaling({version:0,call_type:n,call_end:r},{cmd:"hangup"})),timeout:0})];case 3:i.sent(),i.label=4;case 4:return this._joined=!1,this._trtcCalling._delegate.onCallEnd(this._trtcCalling.getInviterID(),r),[2]}}))}))},e.prototype.accept=function(e,t){return i(this,void 0,void 0,(function(){var n,i,s;return o(this,(function(o){switch(o.label){case 0:return n=e.inviteID,i=e.callType,s=a(e,["inviteID","callType"]),[4,this._tsignaling.accept({inviteID:n,data:JSON.stringify(this.handleNewSignaling(r({version:0,call_type:i},s),t))})];case 1:return[2,o.sent()]}}))}))},e.prototype.reject=function(e){return i(this,void 0,void 0,(function(){var t,n,r,i;return o(this,(function(o){return t=e.inviteID,n=e.callType,r=e.isBusy,i={version:0,call_type:n},r&&(i.line_busy="line_busy"),[2,this._tsignaling.reject({inviteID:t,data:JSON.stringify(this.handleNewSignaling(i,{message:r?"lineBusy":""}))})]}))}))},e.prototype.cancel=function(e){return i(this,void 0,void 0,(function(){var t;return o(this,(function(n){return t=e.inviteID,[2,this._tsignaling.cancel({inviteID:t,data:JSON.stringify(this.handleNewSignaling({version:4,businessID:"av_call",call_type:this._trtcCalling.getCallType()}))})]}))}))},e.prototype.resetJoined=function(){this._joined=!1},e.prototype.switchCallMode=function(e){return i(this,void 0,void 0,(function(){var t,n,r,i,a,s,c;return o(this,(function(o){return t=e.userID,n=e.call_type,r=e.roomID,i=e.timeout,a=e.mode,s={version:0,call_type:n,room_id:r,switch_to_audio_call:null},c={cmd:"switchToVideo"},a===u.MODE_TYPE.AUDIO?(s.switch_to_audio_call="switch_to_audio_call",c.cmd="switchToAudio"):delete s.switch_to_audio_call,[2,this._tsignaling.invite({userID:t,data:JSON.stringify(this.handleNewSignaling(s,c)),timeout:i})]}))}))},e.prototype.handleNewSignaling=function(e,t){return r(r({extraInfo:""},e),{version:4,businessID:"av_call",platform:"Web",data:r({cmd:u.CMD_TYPE_LIST[e.call_type],room_id:e.room_id,message:""},t)})},e}();t.default=f},function(e,t){e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(20),i=n(1),o=n(6),a=n(8),s=n(9),c="TRTCCallingDelegate",u=function(){function e(e){this._eventEmitter=e,this._eventStatController=new s.default,o.default.bindController(this._eventStatController)}return e.prototype._setInterfaceUpLoad=function(e){return i.default.time(e),new o.default(e)},e.prototype.onError=function(e,t){i.default.debug(c+".onError code:"+e+" msg:"+t),this._eventEmitter.emit(r.EVENT.ERROR,{code:e,msg:t}),this._setInterfaceUpLoad(a.default.ERROR).setText("").setEnd()},e.prototype.onSdkReady=function(e){i.default.debug(c+".onSdkReady params:"+e),this._eventEmitter.emit(r.EVENT.SDK_READY,e),this._setInterfaceUpLoad(a.default.SDK_READY).setText("").setEnd()},e.prototype.onInvited=function(e){i.default.debug(c+".onInvited params:",e);var t=e.sponsor,n=e.userIDList,o=e.isFromGroup,s=e.inviteData,u=e.inviteID;this._eventEmitter.emit(r.EVENT.INVITED,{sponsor:t,userIDList:n,isFromGroup:o,inviteData:s,inviteID:u}),this._setInterfaceUpLoad(a.default.INVITED).setText("EVENT.INVITED emitted").setEnd()},e.prototype.onUserAccept=function(e){i.default.debug(c+".onUserAccept userID:"+e),this._eventEmitter.emit(r.EVENT.USER_ACCEPT,{userID:e})},e.prototype.onUserEnter=function(e){i.default.debug(c+".onUserEnter userID:"+e),this._eventEmitter.emit(r.EVENT.USER_ENTER,{userID:e}),this._setInterfaceUpLoad(a.default.USER_ENTER).setText("EVENT.USER_ENTER emitted").setEnd()},e.prototype.onUserLeave=function(e){i.default.debug(c+".onUserLeave userID:"+e),this._eventEmitter.emit(r.EVENT.USER_LEAVE,{userID:e}),this._setInterfaceUpLoad(a.default.USER_LEAVE).setText("EVENT.USER_LEAVE emitted").setEnd()},e.prototype.onReject=function(e){i.default.debug(c+".onReject userID:"+e),this._eventEmitter.emit(r.EVENT.REJECT,{userID:e}),this._setInterfaceUpLoad(a.default.REJECT).setText("EVENT.REJECT emitted").setEnd()},e.prototype.onNoResp=function(e,t){i.default.debug(c+".onNoResp userIDList:",t),this._eventEmitter.emit(r.EVENT.NO_RESP,{sponsor:e,userIDList:t}),this._setInterfaceUpLoad(a.default.NO_RESP).setText("EVENT.NO_RESP emitted").setEnd()},e.prototype.onLineBusy=function(e,t){i.default.debug(c+".onLineBusy sponsor:"+e+" userID:"+t),this._eventEmitter.emit(r.EVENT.LINE_BUSY,{sponsor:e,userID:t}),this._setInterfaceUpLoad(a.default.LINE_BUSY).setText("EVENT.LINE_BUSY emitted").setEnd()},e.prototype.onCallingCancel=function(){i.default.debug(c+".onCallingCancel"),this._eventEmitter.emit(r.EVENT.CALLING_CANCEL,{}),this._setInterfaceUpLoad(a.default.CALLING_CANCEL).setText("EVENT.CALLING_CANCEL emitted").setEnd()},e.prototype.onKickedOut=function(){i.default.debug(c+".onKickedOut"),this._eventEmitter.emit(r.EVENT.KICKED_OUT,{}),this._setInterfaceUpLoad(a.default.KICKED_OUT).setText("EVENT.KICKED_OUT emitted").setEnd()},e.prototype.onCallingTimeout=function(e,t){i.default.debug(c+".onCallingTimeout userIDList:",t),this._eventEmitter.emit(r.EVENT.CALLING_TIMEOUT,{sponsor:e,userIDList:t}),this._setInterfaceUpLoad(a.default.CALLING_TIMEOUT).setText("EVENT.CALLING_TIMEOUT emitted").setEnd()},e.prototype.onCallEnd=function(e,t){i.default.debug(c+".onCallEnd userID:"+e+" callEnd:"+t),this._eventEmitter.emit(r.EVENT.CALLING_END,{userID:e,callEnd:t}),this._setInterfaceUpLoad(a.default.CALLING_END).setText("EVENT.CALLING_END emitted").setEnd()},e.prototype.onUserVideoAvailable=function(e){i.default.debug(c+".onUserVideoAvailable params:",e);var t=e.userID,n=e.isVideoAvailable;this._eventEmitter.emit(r.EVENT.USER_VIDEO_AVAILABLE,{userID:t,isVideoAvailable:n});var o="EVENT.USER_VIDEO_AVAILABLE emitted, userID: "+t+", video: "+n;this._setInterfaceUpLoad(a.default.USER_VIDEO_AVAILABLE).setText(o).setEnd()},e.prototype.onUserAudioAvailable=function(e){i.default.debug(c+".onUserAudioAvailable params:",e);var t=e.userID,n=e.isAudioAvailable;this._eventEmitter.emit(r.EVENT.USER_AUDIO_AVAILABLE,{userID:t,isAudioAvailable:n});var o="EVENT.USER_AUDIO_AVAILABLE emitted, userID: "+t+", mic: "+n;this._setInterfaceUpLoad(a.default.USER_AUDIO_AVAILABLE).setText(o).setEnd()},e.prototype.onUserVoiceVolume=function(e){this._eventEmitter.emit(r.EVENT.USER_VOICE_VOLUME,{volumeMap:e}),this._setInterfaceUpLoad(a.default.USER_VOICE_VOLUME).setText("EVENT.USER_VOICE_VOLUME emitted").setEnd()},e.prototype.onGroupCallInviteeListUpdate=function(e){this._eventEmitter.emit(r.EVENT.GROUP_CALL_INVITEE_LIST_UPDATE,{userIDList:e}),this._setInterfaceUpLoad(a.default.GROUP_CALL_INVITEE_LIST_UPDATE).setText("EVENT.GROUP_CALL_INVITEE_LIST_UPDATE emitted").setEnd()},e}();t.default=u},function(e,t,n){"use strict";n.r(t);var r=n(1);const i="none",o="online",a=function(){let e=window.location.protocol;return["http:","https:"].indexOf(e)<0&&(e="http:"),e};t.default=class{constructor(){this._networkType="",this.maxWaitTime=3e3}start(){this._networkType=o}_onNetworkStatusChange(e){this._networkType=e.networkType,e.isConnected?r.default.info("NetMonitor networkType:"+e.networkType):r.default.warn("NetMonitor no network, please check!")}probe(){return new Promise(e=>{if(window&&window.fetch)fetch(`${a()}//webim-1252463788.file.myqcloud.com/assets/test/speed.xml?random=${Math.random()}`).then(t=>{t.ok?e([!0,o]):e([!1,i])}).catch(()=>{e([!1,i])});else{const t=new XMLHttpRequest,n=setTimeout(()=>{r.default.warn("NetMonitor fetch timeout. Probably no network, please check!"),t.abort(),this._networkType=i,e([!1,i])},this.maxWaitTime);t.onreadystatechange=function(){4===t.readyState&&(clearTimeout(n),200===t.status||304===t.status?(this._networkType=o,e([!0,o])):(r.default.warn(`NetMonitor fetch status:${t.status}. Probably no network, please check!`),this._networkType=i,e([!1,i])))},t.open("GET",`${a()}//webim-1252463788.file.myqcloud.com/assets/test/speed.xml?random=${Math.random()}`),t.send()}})}getNetworkType(){return this._networkType}reset(){this._networkType=""}}},function(e,t,n){"use strict";n.r(t),n.d(t,"isFunction",(function(){return r})),n.d(t,"isUndefined",(function(){return i})),n.d(t,"isString",(function(){return o})),n.d(t,"isNumber",(function(){return a})),n.d(t,"isBoolean",(function(){return s})),n.d(t,"isPlainObject",(function(){return c}));const r=e=>"function"==typeof e,i=e=>void 0===e,o=e=>"string"==typeof e,a=e=>"number"==typeof e,s=e=>"boolean"==typeof e,c=function(e){if(!e||"object"!=typeof e||"[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);if(null===t)return!0;const n=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Function.prototype.toString.call(n)===Function.prototype.toString.call(Object)}},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(4),a=function(e){function t(t){var n=t.message,r=t.code,i=void 0===r?o.default.UNKNOWN:r,a=e.call(this,n+" <"+function(e){for(var t in o.default)if(o.default[t]===e)return t;return"UNKNOWN"}(i)+" "+i+">")||this;return a.code_=i,a.name="TRTCCallingError",a.message_=n,a}return i(t,e),t.prototype.getCode=function(){return this.code_},t}(Error);t.default=a}]).default}))},fce3:function(e,t,n){var r=n("d039"),i=n("da84"),o=i.RegExp;e.exports=r((function(){var e=o(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}))},fd27:function(e,t,n){var r=n("9273"),i=n("a991"),o=function(e){this.name=e||"",this.cx=0,this.cy=0,this._radiusAxis=new r,this._angleAxis=new i,this._radiusAxis.polar=this._angleAxis.polar=this};o.prototype={type:"polar",axisPointerEnabled:!0,constructor:o,dimensions:["radius","angle"],model:null,containPoint:function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},containData:function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},getAxis:function(e){return this["_"+e+"Axis"]},getAxes:function(){return[this._radiusAxis,this._angleAxis]},getAxesByScale:function(e){var t=[],n=this._angleAxis,r=this._radiusAxis;return n.scale.type===e&&t.push(n),r.scale.type===e&&t.push(r),t},getAngleAxis:function(){return this._angleAxis},getRadiusAxis:function(){return this._radiusAxis},getOtherAxis:function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},getTooltipAxes:function(e){var t=null!=e&&"auto"!==e?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},dataToPoint:function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},pointToData:function(e,t){var n=this.pointToCoord(e);return[this._radiusAxis.radiusToData(n[0],t),this._angleAxis.angleToData(n[1],t)]},pointToCoord:function(e){var t=e[0]-this.cx,n=e[1]-this.cy,r=this.getAngleAxis(),i=r.getExtent(),o=Math.min(i[0],i[1]),a=Math.max(i[0],i[1]);r.inverse?o=a-360:a=o+360;var s=Math.sqrt(t*t+n*n);t/=s,n/=s;var c=Math.atan2(-n,t)/Math.PI*180,u=c<o?1:-1;while(c<o||c>a)c+=360*u;return[s,c]},coordToPoint:function(e){var t=e[0],n=e[1]/180*Math.PI,r=Math.cos(n)*t+this.cx,i=-Math.sin(n)*t+this.cy;return[r,i]},getArea:function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),n=t.getExtent().slice();n[0]>n[1]&&n.reverse();var r=e.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-r[0]*i,endAngle:-r[1]*i,clockwise:e.inverse,contain:function(e,t){var n=e-this.cx,r=t-this.cy,i=n*n+r*r,o=this.r,a=this.r0;return i<=o*o&&i>=a*a}}}};var a=o;e.exports=a},fd63:function(e,t,n){var r=n("42e5"),i=n("6d8b"),o=i.isFunction,a={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),i=(e.visualColorAccessPath||"itemStyle.color").split("."),a=e.get(i),s=!o(a)||a instanceof r?null:a;a&&!s||(a=e.getColorFromPalette(e.name,null,t.getSeriesCount())),n.setVisual("color",a);var c=(e.visualBorderColorAccessPath||"itemStyle.borderColor").split("."),u=e.get(c);if(n.setVisual("borderColor",u),!t.isSeriesFiltered(e)){s&&n.each((function(t){n.setItemVisual(t,"color",s(e.getDataParams(t)))}));var l=function(e,t){var n=e.getItemModel(t),r=n.get(i,!0),o=n.get(c,!0);null!=r&&e.setItemVisual(t,"color",r),null!=o&&e.setItemVisual(t,"borderColor",o)};return{dataEach:n.hasItemOption?l:null}}}};e.exports=a},fd87:function(e,t,n){var r=n("74e8");r("Int8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},fdbc:function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(e,t,n){var r=n("4930");e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},fdde:function(e,t){var n={average:function(e){for(var t=0,n=0,r=0;r<e.length;r++)isNaN(e[r])||(t+=e[r],n++);return 0===n?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},r=function(e,t){return Math.round(e.length/2)};function i(e){return{seriesType:e,modifyOutputEnd:!0,reset:function(e,t,i){var o=e.getData(),a=e.get("sampling"),s=e.coordinateSystem;if("cartesian2d"===s.type&&a){var c,u=s.getBaseAxis(),l=s.getOtherAxis(u),d=u.getExtent(),h=Math.abs(d[1]-d[0]),f=Math.round(o.count()/h);if(f>1)"string"===typeof a?c=n[a]:"function"===typeof a&&(c=a),c&&e.setData(o.downSample(o.mapDimension(l.dim),1/f,c,r))}}}}e.exports=i},fe21:function(e,t,n){var r=n("e86a"),i=n("2306"),o=["textStyle","color"],a={getTextColor:function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(o):null)},getFont:function(){return i.getFont({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},getTextRect:function(e){return r.getBoundingRect(e,this.getFont(),this.getShallow("align"),this.getShallow("verticalAlign")||this.getShallow("baseline"),this.getShallow("padding"),this.getShallow("lineHeight"),this.getShallow("rich"),this.getShallow("truncateText"))}};e.exports=a},fe7b:function(e,t,n){},fea9:function(e,t,n){var r=n("da84");e.exports=r.Promise},febc:function(e,t,n){var r=n("6d8b"),i=n("4f85"),o=n("e468"),a=o.seriesModelMixin,s=i.extend({type:"series.boxplot",dependencies:["xAxis","yAxis","grid"],defaultValueDimensions:[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:2,shadowOffsetY:2,shadowColor:"rgba(0,0,0,0.4)"}},animationEasing:"elasticOut",animationDuration:800}});r.mixin(s,a,!0);var c=s;e.exports=c},fecb:function(e,t,n){var r=n("6d8b"),i=n("2145"),o=n("29a8"),a=o.toolbox.brush;function s(e,t,n){this.model=e,this.ecModel=t,this.api=n,this._brushType,this._brushMode}s.defaultOption={show:!0,type:["rect","polygon","lineX","lineY","keep","clear"],icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:r.clone(a.title)};var c=s.prototype;c.render=c.updateView=function(e,t,n){var i,o,a;t.eachComponent({mainType:"brush"},(function(e){i=e.brushType,o=e.brushOption.brushMode||"single",a|=e.areas.length})),this._brushType=i,this._brushMode=o,r.each(e.get("type",!0),(function(t){e.setIconStatus(t,("keep"===t?"multiple"===o:"clear"===t?a:t===i)?"emphasis":"normal")}))},c.getIcons=function(){var e=this.model,t=e.get("icon",!0),n={};return r.each(e.get("type",!0),(function(e){t[e]&&(n[e]=t[e])})),n},c.onclick=function(e,t,n){var r=this._brushType,i=this._brushMode;"clear"===n?(t.dispatchAction({type:"axisAreaSelect",intervals:[]}),t.dispatchAction({type:"brush",command:"clear",areas:[]})):t.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?r:r!==n&&n,brushMode:"keep"===n?"multiple"===i?"single":"multiple":i}})},i.register("brush",s);var u=s;e.exports=u},ff2e:function(e,t,n){var r=n("6d8b"),i=n("2306"),o=n("e86a"),a=n("eda2"),s=n("1687"),c=n("697e"),u=n("fab2");function l(e){var t,n=e.get("type"),r=e.getModel(n+"Style");return"line"===n?(t=r.getLineStyle(),t.fill=null):"shadow"===n&&(t=r.getAreaStyle(),t.stroke=null),t}function d(e,t,n,r,i){var s=n.get("value"),c=f(s,t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get("label.precision"),formatter:n.get("label.formatter")}),u=n.getModel("label"),l=a.normalizeCssArray(u.get("padding")||0),d=u.getFont(),p=o.getBoundingRect(c,d),g=i.position,m=p.width+l[1]+l[3],v=p.height+l[0]+l[2],y=i.align;"right"===y&&(g[0]-=m),"center"===y&&(g[0]-=m/2);var _=i.verticalAlign;"bottom"===_&&(g[1]-=v),"middle"===_&&(g[1]-=v/2),h(g,m,v,r);var b=u.get("backgroundColor");b&&"auto"!==b||(b=t.get("axisLine.lineStyle.color")),e.label={shape:{x:0,y:0,width:m,height:v,r:u.get("borderRadius")},position:g.slice(),style:{text:c,textFont:d,textFill:u.getTextColor(),textPosition:"inside",textPadding:l,fill:b,stroke:u.get("borderColor")||"transparent",lineWidth:u.get("borderWidth")||0,shadowBlur:u.get("shadowBlur"),shadowColor:u.get("shadowColor"),shadowOffsetX:u.get("shadowOffsetX"),shadowOffsetY:u.get("shadowOffsetY")},z2:10}}function h(e,t,n,r){var i=r.getWidth(),o=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,o)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function f(e,t,n,i,o){e=t.scale.parse(e);var a=t.scale.getLabel(e,{precision:o.precision}),s=o.formatter;if(s){var u={value:c.getAxisRawValue(t,e),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};r.each(i,(function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&u.seriesData.push(i)})),r.isString(s)?a=s.replace("{value}",a):r.isFunction(s)&&(a=s(u))}return a}function p(e,t,n){var r=s.create();return s.rotate(r,r,n.rotation),s.translate(r,r,n.position),i.applyTransform([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function g(e,t,n,r,i,o){var a=u.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get("label.margin"),d(t,r,i,o,{position:p(r.axis,e,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function m(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function v(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function y(e,t,n,r,i,o){return{cx:e,cy:t,r0:n,r:r,startAngle:i,endAngle:o,clockwise:!0}}t.buildElStyle=l,t.buildLabelElOption=d,t.getValueLabel=f,t.getTransformedPosition=p,t.buildCartesianSingleLabelElOption=g,t.makeLineShape=m,t.makeRectShape=v,t.makeSectorShape=y}}]);
//# sourceMappingURL=chunk-vendors.0488c6c1.js.map