104 lines
2.1 MiB
104 lines
2.1 MiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-libs"],{"0050":function(t,e,n){"use strict";(function(e){function n(t){return t instanceof e?e.from(t):new t.constructor(t.buffer.slice(),t.byteOffset,t.length)}function r(t){return t=t||{},t.circles?i(t):t.proto?o:r;function e(t,e){for(var r=Object.keys(t),i=new Array(r.length),o=0;o<r.length;o++){var a=r[o],s=t[a];"object"!==typeof s||null===s?i[a]=s:s instanceof Date?i[a]=new Date(s):ArrayBuffer.isView(s)?i[a]=n(s):i[a]=e(s)}return i}function r(t){if("object"!==typeof t||null===t)return t;if(t instanceof Date)return new Date(t);if(Array.isArray(t))return e(t,r);if(t instanceof Map)return new Map(e(Array.from(t),r));if(t instanceof Set)return new Set(e(Array.from(t),r));var i={};for(var o in t)if(!1!==Object.hasOwnProperty.call(t,o)){var a=t[o];"object"!==typeof a||null===a?i[o]=a:a instanceof Date?i[o]=new Date(a):a instanceof Map?i[o]=new Map(e(Array.from(a),r)):a instanceof Set?i[o]=new Set(e(Array.from(a),r)):ArrayBuffer.isView(a)?i[o]=n(a):i[o]=r(a)}return i}function o(t){if("object"!==typeof t||null===t)return t;if(t instanceof Date)return new Date(t);if(Array.isArray(t))return e(t,o);if(t instanceof Map)return new Map(e(Array.from(t),o));if(t instanceof Set)return new Set(e(Array.from(t),o));var r={};for(var i in t){var a=t[i];"object"!==typeof a||null===a?r[i]=a:a instanceof Date?r[i]=new Date(a):a instanceof Map?r[i]=new Map(e(Array.from(a),o)):a instanceof Set?r[i]=new Set(e(Array.from(a),o)):ArrayBuffer.isView(a)?r[i]=n(a):r[i]=o(a)}return r}}function i(t){var e=[],r=[];return t.proto?a:o;function i(t,i){for(var o=Object.keys(t),a=new Array(o.length),s=0;s<o.length;s++){var l=o[s],u=t[l];if("object"!==typeof u||null===u)a[l]=u;else if(u instanceof Date)a[l]=new Date(u);else if(ArrayBuffer.isView(u))a[l]=n(u);else{var c=e.indexOf(u);a[l]=-1!==c?r[c]:i(u)}}return a}function o(t){if("object"!==typeof t||null===t)return t;if(t instanceof Date)return new Date(t);if(Array.isArray(t))return i(t,o);if(t instanceof Map)return new Map(i(Array.from(t),o));if(t instanceof Set)return new Set(i(Array.from(t),o));var a={};for(var s in e.push(t),r.push(a),t)if(!1!==Object.hasOwnProperty.call(t,s)){var l=t[s];if("object"!==typeof l||null===l)a[s]=l;else if(l instanceof Date)a[s]=new Date(l);else if(l instanceof Map)a[s]=new Map(i(Array.from(l),o));else if(l instanceof Set)a[s]=new Set(i(Array.from(l),o));else if(ArrayBuffer.isView(l))a[s]=n(l);else{var u=e.indexOf(l);a[s]=-1!==u?r[u]:o(l)}}return e.pop(),r.pop(),a}function a(t){if("object"!==typeof t||null===t)return t;if(t instanceof Date)return new Date(t);if(Array.isArray(t))return i(t,a);if(t instanceof Map)return new Map(i(Array.from(t),a));if(t instanceof Set)return new Set(i(Array.from(t),a));var o={};for(var s in e.push(t),r.push(o),t){var l=t[s];if("object"!==typeof l||null===l)o[s]=l;else if(l instanceof Date)o[s]=new Date(l);else if(l instanceof Map)o[s]=new Map(i(Array.from(l),a));else if(l instanceof Set)o[s]=new Set(i(Array.from(l),a));else if(ArrayBuffer.isView(l))o[s]=n(l);else{var u=e.indexOf(l);o[s]=-1!==u?r[u]:a(l)}}return e.pop(),r.pop(),o}}t.exports=r}).call(this,n("1c35").Buffer)},"00b4":function(t,e,n){"use strict";n("ac1f");var r=n("23e7"),i=n("c65b"),o=n("1626"),a=n("825a"),s=n("577e"),l=function(){var t=!1,e=/[ac]/;return e.exec=function(){return t=!0,/./.exec.apply(this,arguments)},!0===e.test("abc")&&t}(),u=/./.test;r({target:"RegExp",proto:!0,forced:!l},{test:function(t){var e=a(this),n=s(t),r=e.exec;if(!o(r))return i(u,e,n);var l=i(r,e,n);return null!==l&&(a(l),!0)}})},"00ee":function(t,e,n){var r=n("b622"),i=r("toStringTag"),o={};o[i]="z",t.exports="[object z]"===String(o)},"015d":function(t,e,n){"use strict";(function(e){function n(t,n){var o=this,s=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return s||l?(n?n(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(a,this,t)):e.nextTick(a,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!n&&t?o._writableState?o._writableState.errorEmitted?e.nextTick(i,o):(o._writableState.errorEmitted=!0,e.nextTick(r,o,t)):e.nextTick(r,o,t):n?(e.nextTick(i,o),n(t)):e.nextTick(i,o)})),this)}function r(t,e){a(t,e),i(t)}function i(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function o(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function a(t,e){t.emit("error",e)}function s(t,e){var n=t._readableState,r=t._writableState;n&&n.autoDestroy||r&&r.autoDestroy?t.destroy(e):t.emit("error",e)}t.exports={destroy:n,undestroy:o,errorOrDestroy:s}}).call(this,n("4362"))},"01b4":function(t,e){var n=function(){this.head=null,this.tail=null};n.prototype={add:function(t){var e={item:t,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return this.head=t.next,this.tail===t&&(this.tail=null),t.item}},t.exports=n},"0278":function(t,e,n){var r;r=function(){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function r(t,e,r){return e&&n(t.prototype,e),r&&n(t,r),t}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function h(t){var e=function(){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(t){return!1}}();return function(){var n,r=l(t);if(e){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return c(this,n)}}function f(t){return function(t){if(Array.isArray(t))return d(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return d(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(t,e):void 0}}(t)||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 d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function p(t){return Array.isArray?Array.isArray(t):"[object Array]"===x(t)}function g(t){return"string"==typeof t}function v(t){return"number"==typeof t}function y(t){return!0===t||!1===t||function(t){return m(t)&&null!==t}(t)&&"[object Boolean]"==x(t)}function m(e){return"object"===t(e)}function b(t){return null!=t}function _(t){return!t.trim().length}function x(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}var w=function(t){return"Invalid value for key ".concat(t)},S=function(t){return"Pattern length exceeds max of ".concat(t,".")},O=Object.prototype.hasOwnProperty,C=function(){function t(n){var r=this;e(this,t),this._keys=[],this._keyMap={};var i=0;n.forEach((function(t){var e=k(t);i+=e.weight,r._keys.push(e),r._keyMap[e.id]=e,i+=e.weight})),this._keys.forEach((function(t){t.weight/=i}))}return r(t,[{key:"get",value:function(t){return this._keyMap[t]}},{key:"keys",value:function(){return this._keys}},{key:"toJSON",value:function(){return JSON.stringify(this._keys)}}]),t}();function k(t){var e=null,n=null,r=null,i=1;if(g(t)||p(t))r=t,e=A(t),n=M(t);else{if(!O.call(t,"name"))throw new Error(function(t){return"Missing ".concat(t," property in key")}("name"));var o=t.name;if(r=o,O.call(t,"weight")&&(i=t.weight)<=0)throw new Error(function(t){return"Property 'weight' in key '".concat(t,"' must be a positive integer")}(o));e=A(o),n=M(o)}return{path:e,id:n,weight:i,src:r}}function A(t){return p(t)?t:t.split(".")}function M(t){return p(t)?t.join("."):t}var T=a({},{isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:function(t,e){return t.score===e.score?t.idx<e.idx?-1:1:t.score<e.score?-1:1}},{},{includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},{},{location:0,threshold:.6,distance:100},{},{useExtendedSearch:!1,getFn:function(t,e){var n=[],r=!1;return function t(e,i,o){if(b(e))if(i[o]){var a=e[i[o]];if(!b(a))return;if(o===i.length-1&&(g(a)||v(a)||y(a)))n.push(function(t){return null==t?"":function(t){if("string"==typeof t)return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}(t)}(a));else if(p(a)){r=!0;for(var s=0,l=a.length;s<l;s+=1)t(a[s],i,o+1)}else i.length&&t(a,i,o+1)}else n.push(e)}(t,g(e)?e.split("."):e,0),r?n:n[0]},ignoreLocation:!1,ignoreFieldNorm:!1}),I=/[^ ]+/g;function E(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3,e=new Map;return{get:function(n){var r=n.match(I).length;if(e.has(r))return e.get(r);var i=parseFloat((1/Math.sqrt(r)).toFixed(t));return e.set(r,i),i},clear:function(){e.clear()}}}var P=function(){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.getFn,i=void 0===r?T.getFn:r;e(this,t),this.norm=E(3),this.getFn=i,this.isCreated=!1,this.setIndexRecords()}return r(t,[{key:"setSources",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.docs=t}},{key:"setIndexRecords",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.records=t}},{key:"setKeys",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.keys=e,this._keysMap={},e.forEach((function(e,n){t._keysMap[e.id]=n}))}},{key:"create",value:function(){var t=this;!this.isCreated&&this.docs.length&&(this.isCreated=!0,g(this.docs[0])?this.docs.forEach((function(e,n){t._addString(e,n)})):this.docs.forEach((function(e,n){t._addObject(e,n)})),this.norm.clear())}},{key:"add",value:function(t){var e=this.size();g(t)?this._addString(t,e):this._addObject(t,e)}},{key:"removeAt",value:function(t){this.records.splice(t,1);for(var e=t,n=this.size();e<n;e+=1)this.records[e].i-=1}},{key:"getValueForItemAtKeyId",value:function(t,e){return t[this._keysMap[e]]}},{key:"size",value:function(){return this.records.length}},{key:"_addString",value:function(t,e){if(b(t)&&!_(t)){var n={v:t,i:e,n:this.norm.get(t)};this.records.push(n)}}},{key:"_addObject",value:function(t,e){var n=this,r={i:e,$:{}};this.keys.forEach((function(e,i){var o=n.getFn(t,e.path);if(b(o))if(p(o))!function(){for(var t=[],e=[{nestedArrIndex:-1,value:o}];e.length;){var a=e.pop(),s=a.nestedArrIndex,l=a.value;if(b(l))if(g(l)&&!_(l)){var u={v:l,i:s,n:n.norm.get(l)};t.push(u)}else p(l)&&l.forEach((function(t,n){e.push({nestedArrIndex:n,value:t})}))}r.$[i]=t}();else if(!_(o)){var a={v:o,n:n.norm.get(o)};r.$[i]=a}})),this.records.push(r)}},{key:"toJSON",value:function(){return{keys:this.keys,records:this.records}}}]),t}();function j(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.getFn,i=void 0===r?T.getFn:r,o=new P({getFn:i});return o.setKeys(t.map(k)),o.setSources(e),o.create(),o}function L(t,e){var n=t.matches;e.matches=[],b(n)&&n.forEach((function(t){if(b(t.indices)&&t.indices.length){var n={indices:t.indices,value:t.value};t.key&&(n.key=t.key.src),t.idx>-1&&(n.refIndex=t.idx),e.matches.push(n)}}))}function D(t,e){e.score=t.score}function R(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.errors,r=void 0===n?0:n,i=e.currentLocation,o=void 0===i?0:i,a=e.expectedLocation,s=void 0===a?0:a,l=e.distance,u=void 0===l?T.distance:l,c=e.ignoreLocation,h=void 0===c?T.ignoreLocation:c,f=r/t.length;if(h)return f;var d=Math.abs(s-o);return u?f+d/u:d?1:f}function N(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:T.minMatchCharLength,n=[],r=-1,i=-1,o=0,a=t.length;o<a;o+=1){var s=t[o];s&&-1===r?r=o:s||-1===r||((i=o-1)-r+1>=e&&n.push([r,i]),r=-1)}return t[o-1]&&o-r>=e&&n.push([r,o-1]),n}function B(t){for(var e={},n=0,r=t.length;n<r;n+=1){var i=t.charAt(n);e[i]=(e[i]||0)|1<<r-n-1}return e}var F=function(){function t(n){var r=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.location,a=void 0===o?T.location:o,s=i.threshold,l=void 0===s?T.threshold:s,u=i.distance,c=void 0===u?T.distance:u,h=i.includeMatches,f=void 0===h?T.includeMatches:h,d=i.findAllMatches,p=void 0===d?T.findAllMatches:d,g=i.minMatchCharLength,v=void 0===g?T.minMatchCharLength:g,y=i.isCaseSensitive,m=void 0===y?T.isCaseSensitive:y,b=i.ignoreLocation,_=void 0===b?T.ignoreLocation:b;if(e(this,t),this.options={location:a,threshold:l,distance:c,includeMatches:f,findAllMatches:p,minMatchCharLength:v,isCaseSensitive:m,ignoreLocation:_},this.pattern=m?n:n.toLowerCase(),this.chunks=[],this.pattern.length){var x=function(t,e){r.chunks.push({pattern:t,alphabet:B(t),startIndex:e})},w=this.pattern.length;if(w>32){for(var S=0,O=w%32,C=w-O;S<C;)x(this.pattern.substr(S,32),S),S+=32;if(O){var k=w-32;x(this.pattern.substr(k),k)}}else x(this.pattern,0)}}return r(t,[{key:"searchIn",value:function(t){var e=this.options,n=e.isCaseSensitive,r=e.includeMatches;if(n||(t=t.toLowerCase()),this.pattern===t){var i={isMatch:!0,score:0};return r&&(i.indices=[[0,t.length-1]]),i}var o=this.options,a=o.location,s=o.distance,l=o.threshold,u=o.findAllMatches,c=o.minMatchCharLength,h=o.ignoreLocation,d=[],p=0,g=!1;this.chunks.forEach((function(e){var n=e.pattern,i=e.alphabet,o=e.startIndex,v=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=r.location,o=void 0===i?T.location:i,a=r.distance,s=void 0===a?T.distance:a,l=r.threshold,u=void 0===l?T.threshold:l,c=r.findAllMatches,h=void 0===c?T.findAllMatches:c,f=r.minMatchCharLength,d=void 0===f?T.minMatchCharLength:f,p=r.includeMatches,g=void 0===p?T.includeMatches:p,v=r.ignoreLocation,y=void 0===v?T.ignoreLocation:v;if(e.length>32)throw new Error(S(32));for(var m,b=e.length,_=t.length,x=Math.max(0,Math.min(o,_)),w=u,O=x,C=d>1||g,k=C?Array(_):[];(m=t.indexOf(e,O))>-1;){var A=R(e,{currentLocation:m,expectedLocation:x,distance:s,ignoreLocation:y});if(w=Math.min(A,w),O=m+b,C)for(var M=0;M<b;)k[m+M]=1,M+=1}O=-1;for(var I=[],E=1,P=b+_,j=1<<b-1,L=0;L<b;L+=1){for(var D=0,B=P;D<B;){var F=R(e,{errors:L,currentLocation:x+B,expectedLocation:x,distance:s,ignoreLocation:y});F<=w?D=B:P=B,B=Math.floor((P-D)/2+D)}P=B;var z=Math.max(1,x-B+1),V=h?_:Math.min(x+B,_)+b,q=Array(V+2);q[V+1]=(1<<L)-1;for(var G=V;G>=z;G-=1){var H=G-1,W=n[t.charAt(H)];if(C&&(k[H]=+!!W),q[G]=(q[G+1]<<1|1)&W,L&&(q[G]|=(I[G+1]|I[G])<<1|1|I[G+1]),q[G]&j&&(E=R(e,{errors:L,currentLocation:H,expectedLocation:x,distance:s,ignoreLocation:y}))<=w){if(w=E,(O=H)<=x)break;z=Math.max(1,2*x-O)}}var U=R(e,{errors:L+1,currentLocation:x,expectedLocation:x,distance:s,ignoreLocation:y});if(U>w)break;I=q}var $={isMatch:O>=0,score:Math.max(.001,E)};if(C){var Y=N(k,d);Y.length?g&&($.indices=Y):$.isMatch=!1}return $}(t,n,i,{location:a+o,distance:s,threshold:l,findAllMatches:u,minMatchCharLength:c,includeMatches:r,ignoreLocation:h}),y=v.isMatch,m=v.score,b=v.indices;y&&(g=!0),p+=m,y&&b&&(d=[].concat(f(d),f(b)))}));var v={isMatch:g,score:g?p/this.chunks.length:1};return g&&r&&(v.indices=d),v}}]),t}(),z=function(){function t(n){e(this,t),this.pattern=n}return r(t,[{key:"search",value:function(){}}],[{key:"isMultiMatch",value:function(t){return V(t,this.multiRegex)}},{key:"isSingleMatch",value:function(t){return V(t,this.singleRegex)}}]),t}();function V(t,e){var n=t.match(e);return n?n[1]:null}var q=function(t){s(i,t);var n=h(i);function i(t){return e(this,i),n.call(this,t)}return r(i,[{key:"search",value:function(t){var e=t===this.pattern;return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}}],[{key:"type",get:function(){return"exact"}},{key:"multiRegex",get:function(){return/^="(.*)"$/}},{key:"singleRegex",get:function(){return/^=(.*)$/}}]),i}(z),G=function(t){s(i,t);var n=h(i);function i(t){return e(this,i),n.call(this,t)}return r(i,[{key:"search",value:function(t){var e=-1===t.indexOf(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}}],[{key:"type",get:function(){return"inverse-exact"}},{key:"multiRegex",get:function(){return/^!"(.*)"$/}},{key:"singleRegex",get:function(){return/^!(.*)$/}}]),i}(z),H=function(t){s(i,t);var n=h(i);function i(t){return e(this,i),n.call(this,t)}return r(i,[{key:"search",value:function(t){var e=t.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}}],[{key:"type",get:function(){return"prefix-exact"}},{key:"multiRegex",get:function(){return/^\^"(.*)"$/}},{key:"singleRegex",get:function(){return/^\^(.*)$/}}]),i}(z),W=function(t){s(i,t);var n=h(i);function i(t){return e(this,i),n.call(this,t)}return r(i,[{key:"search",value:function(t){var e=!t.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}}],[{key:"type",get:function(){return"inverse-prefix-exact"}},{key:"multiRegex",get:function(){return/^!\^"(.*)"$/}},{key:"singleRegex",get:function(){return/^!\^(.*)$/}}]),i}(z),U=function(t){s(i,t);var n=h(i);function i(t){return e(this,i),n.call(this,t)}return r(i,[{key:"search",value:function(t){var e=t.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}],[{key:"type",get:function(){return"suffix-exact"}},{key:"multiRegex",get:function(){return/^"(.*)"\$$/}},{key:"singleRegex",get:function(){return/^(.*)\$$/}}]),i}(z),$=function(t){s(i,t);var n=h(i);function i(t){return e(this,i),n.call(this,t)}return r(i,[{key:"search",value:function(t){var e=!t.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}}],[{key:"type",get:function(){return"inverse-suffix-exact"}},{key:"multiRegex",get:function(){return/^!"(.*)"\$$/}},{key:"singleRegex",get:function(){return/^!(.*)\$$/}}]),i}(z),Y=function(t){s(i,t);var n=h(i);function i(t){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=o.location,s=void 0===a?T.location:a,l=o.threshold,u=void 0===l?T.threshold:l,c=o.distance,h=void 0===c?T.distance:c,f=o.includeMatches,d=void 0===f?T.includeMatches:f,p=o.findAllMatches,g=void 0===p?T.findAllMatches:p,v=o.minMatchCharLength,y=void 0===v?T.minMatchCharLength:v,m=o.isCaseSensitive,b=void 0===m?T.isCaseSensitive:m,_=o.ignoreLocation,x=void 0===_?T.ignoreLocation:_;return e(this,i),(r=n.call(this,t))._bitapSearch=new F(t,{location:s,threshold:u,distance:h,includeMatches:d,findAllMatches:g,minMatchCharLength:y,isCaseSensitive:b,ignoreLocation:x}),r}return r(i,[{key:"search",value:function(t){return this._bitapSearch.searchIn(t)}}],[{key:"type",get:function(){return"fuzzy"}},{key:"multiRegex",get:function(){return/^"(.*)"$/}},{key:"singleRegex",get:function(){return/^(.*)$/}}]),i}(z),X=function(t){s(i,t);var n=h(i);function i(t){return e(this,i),n.call(this,t)}return r(i,[{key:"search",value:function(t){for(var e,n=0,r=[],i=this.pattern.length;(e=t.indexOf(this.pattern,n))>-1;)n=e+i,r.push([e,n-1]);var o=!!r.length;return{isMatch:o,score:o?1:0,indices:r}}}],[{key:"type",get:function(){return"include"}},{key:"multiRegex",get:function(){return/^'"(.*)"$/}},{key:"singleRegex",get:function(){return/^'(.*)$/}}]),i}(z),K=[q,X,H,W,$,U,G,Y],Z=K.length,Q=/ +(?=([^\"]*\"[^\"]*\")*[^\"]*$)/;function J(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.split("|").map((function(t){for(var n=t.trim().split(Q).filter((function(t){return t&&!!t.trim()})),r=[],i=0,o=n.length;i<o;i+=1){for(var a=n[i],s=!1,l=-1;!s&&++l<Z;){var u=K[l],c=u.isMultiMatch(a);c&&(r.push(new u(c,e)),s=!0)}if(!s)for(l=-1;++l<Z;){var h=K[l],f=h.isSingleMatch(a);if(f){r.push(new h(f,e));break}}}return r}))}var tt=new Set([Y.type,X.type]),et=function(){function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.isCaseSensitive,o=void 0===i?T.isCaseSensitive:i,a=r.includeMatches,s=void 0===a?T.includeMatches:a,l=r.minMatchCharLength,u=void 0===l?T.minMatchCharLength:l,c=r.ignoreLocation,h=void 0===c?T.ignoreLocation:c,f=r.findAllMatches,d=void 0===f?T.findAllMatches:f,p=r.location,g=void 0===p?T.location:p,v=r.threshold,y=void 0===v?T.threshold:v,m=r.distance,b=void 0===m?T.distance:m;e(this,t),this.query=null,this.options={isCaseSensitive:o,includeMatches:s,minMatchCharLength:u,findAllMatches:d,ignoreLocation:h,location:g,threshold:y,distance:b},this.pattern=o?n:n.toLowerCase(),this.query=J(this.pattern,this.options)}return r(t,[{key:"searchIn",value:function(t){var e=this.query;if(!e)return{isMatch:!1,score:1};var n=this.options,r=n.includeMatches;t=n.isCaseSensitive?t:t.toLowerCase();for(var i=0,o=[],a=0,s=0,l=e.length;s<l;s+=1){var u=e[s];o.length=0,i=0;for(var c=0,h=u.length;c<h;c+=1){var d=u[c],p=d.search(t),g=p.isMatch,v=p.indices,y=p.score;if(!g){a=0,i=0,o.length=0;break}if(i+=1,a+=y,r){var m=d.constructor.type;tt.has(m)?o=[].concat(f(o),f(v)):o.push(v)}}if(i){var b={isMatch:!0,score:a/i};return r&&(b.indices=o),b}}return{isMatch:!1,score:1}}}],[{key:"condition",value:function(t,e){return e.useExtendedSearch}}]),t}(),nt=[];function rt(t,e){for(var n=0,r=nt.length;n<r;n+=1){var i=nt[n];if(i.condition(t,e))return new i(t,e)}return new F(t,e)}var it="$and",ot="$or",at="$path",st="$val",lt=function(t){return!(!t[it]&&!t[ot])},ut=function(t){return!!t[at]},ct=function(t){return!p(t)&&m(t)&&!lt(t)},ht=function(t){return i({},it,Object.keys(t).map((function(e){return i({},e,t[e])})))},ft=function(){function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0;e(this,t),this.options=a({},T,{},r),this.options.useExtendedSearch,this._keyStore=new C(this.options.keys),this.setCollection(n,i)}return r(t,[{key:"setCollection",value:function(t,e){if(this._docs=t,e&&!(e instanceof P))throw new Error("Incorrect 'index' type");this._myIndex=e||j(this.options.keys,this._docs,{getFn:this.options.getFn})}},{key:"add",value:function(t){b(t)&&(this._docs.push(t),this._myIndex.add(t))}},{key:"remove",value:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){return!1},e=[],n=0,r=this._docs.length;n<r;n+=1){var i=this._docs[n];t(i,n)&&(this.removeAt(n),n-=1,r-=1,e.push(i))}return e}},{key:"removeAt",value:function(t){this._docs.splice(t,1),this._myIndex.removeAt(t)}},{key:"getIndex",value:function(){return this._myIndex}},{key:"search",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.limit,r=void 0===n?-1:n,i=this.options,o=i.includeMatches,a=i.includeScore,s=i.shouldSort,l=i.sortFn,u=i.ignoreFieldNorm,c=g(t)?g(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return dt(c,{ignoreFieldNorm:u}),s&&c.sort(l),v(r)&&r>-1&&(c=c.slice(0,r)),pt(c,this._docs,{includeMatches:o,includeScore:a})}},{key:"_searchStringList",value:function(t){var e=rt(t,this.options),n=this._myIndex.records,r=[];return n.forEach((function(t){var n=t.v,i=t.i,o=t.n;if(b(n)){var a=e.searchIn(n),s=a.isMatch,l=a.score,u=a.indices;s&&r.push({item:n,idx:i,matches:[{score:l,value:n,norm:o,indices:u}]})}})),r}},{key:"_searchLogical",value:function(t){var e=this,n=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.auto,i=void 0===r||r,o=function t(n){var r=Object.keys(n),o=ut(n);if(!o&&r.length>1&&!lt(n))return t(ht(n));if(ct(n)){var a=o?n[at]:r[0],s=o?n[st]:n[a];if(!g(s))throw new Error(w(a));var l={keyId:M(a),pattern:s};return i&&(l.searcher=rt(s,e)),l}var u={children:[],operator:r[0]};return r.forEach((function(e){var r=n[e];p(r)&&r.forEach((function(e){u.children.push(t(e))}))})),u};return lt(t)||(t=ht(t)),o(t)}(t,this.options),r=this._myIndex.records,i={},o=[];return r.forEach((function(t){var r=t.$,a=t.i;if(b(r)){var s=function t(n,r,i){if(!n.children){var o=n.keyId,a=n.searcher,s=e._findMatches({key:e._keyStore.get(o),value:e._myIndex.getValueForItemAtKeyId(r,o),searcher:a});return s&&s.length?[{idx:i,item:r,matches:s}]:[]}switch(n.operator){case it:for(var l=[],u=0,c=n.children.length;u<c;u+=1){var h=t(n.children[u],r,i);if(!h.length)return[];l.push.apply(l,f(h))}return l;case ot:for(var d=[],p=0,g=n.children.length;p<g;p+=1){var v=t(n.children[p],r,i);if(v.length){d.push.apply(d,f(v));break}}return d}}(n,r,a);s.length&&(i[a]||(i[a]={idx:a,item:r,matches:[]},o.push(i[a])),s.forEach((function(t){var e,n=t.matches;(e=i[a].matches).push.apply(e,f(n))})))}})),o}},{key:"_searchObjectList",value:function(t){var e=this,n=rt(t,this.options),r=this._myIndex,i=r.keys,o=r.records,a=[];return o.forEach((function(t){var r=t.$,o=t.i;if(b(r)){var s=[];i.forEach((function(t,i){s.push.apply(s,f(e._findMatches({key:t,value:r[i],searcher:n})))})),s.length&&a.push({idx:o,item:r,matches:s})}})),a}},{key:"_findMatches",value:function(t){var e=t.key,n=t.value,r=t.searcher;if(!b(n))return[];var i=[];if(p(n))n.forEach((function(t){var n=t.v,o=t.i,a=t.n;if(b(n)){var s=r.searchIn(n),l=s.isMatch,u=s.score,c=s.indices;l&&i.push({score:u,key:e,value:n,idx:o,norm:a,indices:c})}}));else{var o=n.v,a=n.n,s=r.searchIn(o),l=s.isMatch,u=s.score,c=s.indices;l&&i.push({score:u,key:e,value:o,norm:a,indices:c})}return i}}]),t}();function dt(t,e){var n=e.ignoreFieldNorm,r=void 0===n?T.ignoreFieldNorm:n;t.forEach((function(t){var e=1;t.matches.forEach((function(t){var n=t.key,i=t.norm,o=t.score,a=n?n.weight:null;e*=Math.pow(0===o&&a?Number.EPSILON:o,(a||1)*(r?1:i))})),t.score=e}))}function pt(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.includeMatches,i=void 0===r?T.includeMatches:r,o=n.includeScore,a=void 0===o?T.includeScore:o,s=[];return i&&s.push(L),a&&s.push(D),t.map((function(t){var n=t.idx,r={item:e[n],refIndex:n};return s.length&&s.forEach((function(e){e(t,r)})),r}))}return ft.version="6.4.3",ft.createIndex=j,ft.parseIndex=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.getFn,r=void 0===n?T.getFn:n,i=t.keys,o=t.records,a=new P({getFn:r});return a.setKeys(i),a.setIndexRecords(o),a},ft.config=T,function(){nt.push.apply(nt,arguments)}(et),ft},t.exports=r()},"030c":function(t,e,n){"use strict";(function(e){var r=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=u;var i=n("3bd2"),o=n("1beb");n("3fb5")(u,i);for(var a=r(o.prototype),s=0;s<a.length;s++){var l=a[s];u.prototype[l]||(u.prototype[l]=o.prototype[l])}function u(t){if(!(this instanceof u))return new u(t);i.call(this,t),o.call(this,t),this.allowHalfOpen=!0,t&&(!1===t.readable&&(this.readable=!1),!1===t.writable&&(this.writable=!1),!1===t.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",c)))}function c(){this._writableState.ended||e.nextTick(h,this)}function h(t){t.end()}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}})}).call(this,n("4362"))},"035d":function(t,e,n){e=t.exports=n("85f8"),e.Stream=e,e.Readable=e,e.Writable=n("13a8"),e.Duplex=n("be3f"),e.Transform=n("3ca2"),e.PassThrough=n("7058"),e.finished=n("d9e1"),e.pipeline=n("652a")},"0366":function(t,e,n){var r=n("e330"),i=n("59ed"),o=n("40d5"),a=r(r.bind);t.exports=function(t,e){return i(t),void 0===e?t:o?a(t,e):function(){return t.apply(e,arguments)}}},"037e":function(t,e,n){},"03d6":function(t,e,n){var r=n("9c0e"),i=n("6ca1"),o=n("39ad")(!1),a=n("5a94")("IE_PROTO");t.exports=function(t,e){var n,s=i(t),l=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);while(e.length>l)r(s,n=e[l++])&&(~o(u,n)||u.push(n));return u}},"042d":function(t,e,n){},"04d1":function(t,e,n){var r=n("342f"),i=r.match(/firefox\/(\d+)/i);t.exports=!!i&&+i[1]},"04f8":function(t,e,n){var r=n("2d00"),i=n("d039");t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},"04fb":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=void 0;var i=r(n("7037")),o=r(n("970b"));n("0ca1");var a=r(n("9886")),s=n("5557"),l=n("a736"),u=function t(e){if((0,o["default"])(this,t),!e)return console.error("Charts Missing parameters!"),!1;var n=e.clientWidth,r=e.clientHeight,i=document.createElement("canvas");i.setAttribute("width",n),i.setAttribute("height",r),e.appendChild(i);var s={container:e,canvas:i,render:new a["default"](i),option:null};Object.assign(this,s)};e["default"]=u,u.prototype.setOption=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t||"object"!==(0,i["default"])(t))return console.error("setOption Missing parameters!"),!1;e&&this.render.graphs.forEach((function(t){return t.animationEnd()}));var n=(0,s.deepClone)(t,!0);(0,l.mergeColor)(this,n),(0,l.grid)(this,n),(0,l.axis)(this,n),(0,l.radarAxis)(this,n),(0,l.title)(this,n),(0,l.bar)(this,n),(0,l.line)(this,n),(0,l.pie)(this,n),(0,l.radar)(this,n),(0,l.gauge)(this,n),(0,l.legend)(this,n),this.option=t,this.render.launchAnimation()},u.prototype.resize=function(){var t=this.container,e=this.canvas,n=this.render,r=this.option,i=t.clientWidth,o=t.clientHeight;e.setAttribute("width",i),e.setAttribute("height",o),n.area=[i,o],this.setOption(r)}},"050c":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"bezierCurveToPolyline",{enumerable:!0,get:function(){return i.bezierCurveToPolyline}}),Object.defineProperty(e,"getBezierCurveLength",{enumerable:!0,get:function(){return i.getBezierCurveLength}}),Object.defineProperty(e,"polylineToBezierCurve",{enumerable:!0,get:function(){return o["default"]}}),e["default"]=void 0;var i=n("2db9"),o=r(n("ae10")),a={bezierCurveToPolyline:i.bezierCurveToPolyline,getBezierCurveLength:i.getBezierCurveLength,polylineToBezierCurve:o["default"]};e["default"]=a},"051b":function(t,e,n){var r=n("1a14"),i=n("10db");t.exports=n("0bad")?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},"057f":function(t,e,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):[],l=function(t){try{return o(t)}catch(e){return a(s)}};t.exports.f=function(t){return s&&"Window"==r(t)?l(t):o(i(t))}},"05ee":function(t,e,n){"use strict";const r=n(0),i=n("34eb")("mqttjs:tcp");function o(t,e){e.port=e.port||1883,e.hostname=e.hostname||e.host||"localhost";const n=e.port,o=e.hostname;return i("port %d and host %s",n,o),r.createConnection(n,o)}t.exports=o},"05f5":function(t,e,n){var r=n("7a41"),i=n("ef08").document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},"0676":function(t,e,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"),t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},"0680":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.axis=y;var i=r(n("7037")),o=r(n("278c")),a=r(n("9523")),s=r(n("448a")),l=n("18ad"),u=n("9d85"),c=n("becb"),h=n("5557");function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){(0,a["default"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var p={xAxisConfig:u.xAxisConfig,yAxisConfig:u.yAxisConfig},g=(Math.min,Math.max,Math.abs),v=Math.pow;function y(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.xAxis,r=e.yAxis,i=e.series,o=[];n&&r&&i&&(o=m(n,r),o=b(o),o=o.filter((function(t){var e=t.show;return e})),o=_(o),o=x(o,i),o=L(o),o=D(o,t),o=R(o,t),o=B(o,t),o=F(o,t)),(0,l.doUpdate)({chart:t,series:o,key:"axisLine",getGraphConfig:z}),(0,l.doUpdate)({chart:t,series:o,key:"axisTick",getGraphConfig:G}),(0,l.doUpdate)({chart:t,series:o,key:"axisLabel",getGraphConfig:U}),(0,l.doUpdate)({chart:t,series:o,key:"axisName",getGraphConfig:Z}),(0,l.doUpdate)({chart:t,series:o,key:"splitLine",getGraphConfig:et}),t.axisData=o}function m(t,e){var n,r,i=[],o=[];t instanceof Array?(n=i).push.apply(n,(0,s["default"])(t)):i.push(t);e instanceof Array?(r=o).push.apply(r,(0,s["default"])(e)):o.push(e);return i.splice(2),o.splice(2),i=i.map((function(t,e){return d(d({},t),{},{index:e,axis:"x"})})),o=o.map((function(t,e){return d(d({},t),{},{index:e,axis:"y"})})),[].concat((0,s["default"])(i),(0,s["default"])(o))}function b(t){var e=t.filter((function(t){var e=t.axis;return"x"===e})),n=t.filter((function(t){var e=t.axis;return"y"===e}));return e=e.map((function(t){return(0,c.deepMerge)((0,h.deepClone)(u.xAxisConfig),t)})),n=n.map((function(t){return(0,c.deepMerge)((0,h.deepClone)(u.yAxisConfig),t)})),[].concat((0,s["default"])(e),(0,s["default"])(n))}function _(t){var e=t.filter((function(t){var e=t.data;return"value"===e})),n=t.filter((function(t){var e=t.data;return"value"!==e}));return e.forEach((function(t){"boolean"!==typeof t.boundaryGap&&(t.boundaryGap=!1)})),n.forEach((function(t){"boolean"!==typeof t.boundaryGap&&(t.boundaryGap=!0)})),[].concat((0,s["default"])(e),(0,s["default"])(n))}function x(t,e){var n=t.filter((function(t){var e=t.data;return"value"===e})),r=t.filter((function(t){var e=t.data;return e instanceof Array}));return n=w(n,e),r=P(r),[].concat((0,s["default"])(n),(0,s["default"])(r))}function w(t,e){return t.map((function(t){var n=S(t,e),r=k(t,n),i=(0,o["default"])(r,2),a=i[0],s=i[1],l=j(a,s,t),u=t.axisLabel.formatter,c=[];return c=a<0&&s>0?T(a,s,l):I(a,s,l),c=c.map((function(t){return parseFloat(t.toFixed(2))})),d(d({},t),{},{maxValue:c.slice(-1)[0],minValue:c[0],label:E(c,u)})}))}function S(t,e){if(e=e.filter((function(t){var e=t.show,n=t.type;return!1!==e&&"pie"!==n})),0===e.length)return[0,0];var n=t.index,r=t.axis;e=C(e);var i=r+"Axis",o=e.filter((function(t){return t[i]===n}));return o.length||(o=e),O(o)}function O(t){if(t){var e=Math.min.apply(Math,(0,s["default"])(t.map((function(t){var e=t.data;return Math.min.apply(Math,(0,s["default"])((0,c.filterNonNumber)(e)))})))),n=Math.max.apply(Math,(0,s["default"])(t.map((function(t){var e=t.data;return Math.max.apply(Math,(0,s["default"])((0,c.filterNonNumber)(e)))}))));return[e,n]}}function C(t){var e=(0,h.deepClone)(t,!0);return t.forEach((function(n,r){var i=(0,c.mergeSameStackData)(n,t);e[r].data=i})),e}function k(t,e){var n=t.min,r=t.max,a=t.axis,s=(0,o["default"])(e,2),l=s[0],u=s[1],c=(0,i["default"])(n),h=(0,i["default"])(r);if(M(n)||(n=p[a+"AxisConfig"].min,c="string"),M(r)||(r=p[a+"AxisConfig"].max,h="string"),"string"===c){n=parseInt(l-g(l*parseFloat(n)/100));var f=A(n);n=parseFloat((n/f-.1).toFixed(1))*f}if("string"===h){r=parseInt(u+g(u*parseFloat(r)/100));var d=A(r);r=parseFloat((r/d+.1).toFixed(1))*d}return[n,r]}function A(t){var e=g(t).toString(),n=e.length,r=e.replace(/0*$/g,"").indexOf("0"),i=n-1;return-1!==r&&(i-=r),v(10,i)}function M(t){var e=(0,i["default"])(t),n="string"===e&&/^\d+%$/.test(t),r="number"===e;return n||r}function T(t,e,n){var r=[],i=[],o=0,a=0;do{r.push(o-=n)}while(o>t);do{i.push(a+=n)}while(a<e);return[].concat((0,s["default"])(r.reverse()),[0],(0,s["default"])(i))}function I(t,e,n){var r=[t],i=t;do{r.push(i+=n)}while(i<e);return r}function E(t,e){return e?("string"===typeof e&&(t=t.map((function(t){return e.replace("{value}",t)}))),"function"===typeof e&&(t=t.map((function(t,n){return e({value:t,index:n})}))),t):t}function P(t){return t.map((function(t){var e=t.data,n=t.axisLabel.formatter;return d(d({},t),{},{label:E(e,n)})}))}function j(t,e,n){var r=n.interval,i=n.minInterval,o=n.maxInterval,a=n.splitNumber,s=n.axis,l=p[s+"AxisConfig"];if("number"!==typeof r&&(r=l.interval),"number"!==typeof i&&(i=l.minInterval),"number"!==typeof o&&(o=l.maxInterval),"number"!==typeof a&&(a=l.splitNumber),"number"===typeof r)return r;var u=parseInt((e-t)/(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(t){var e=t.filter((function(t){var e=t.axis;return"x"===e})),n=t.filter((function(t){var e=t.axis;return"y"===e}));return e[0]&&!e[0].position&&(e[0].position=u.xAxisConfig.position),e[1]&&!e[1].position&&(e[1].position="bottom"===e[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"])(e),(0,s["default"])(n))}function D(t,e){var n=e.gridArea,r=n.x,i=n.y,o=n.w,a=n.h;return t=t.map((function(t){var e=t.position,n=[];return"left"===e?n=[[r,i],[r,i+a]].reverse():"right"===e?n=[[r+o,i],[r+o,i+a]].reverse():"top"===e?n=[[r,i],[r+o,i]]:"bottom"===e&&(n=[[r,i+a],[r+o,i+a]]),d(d({},t),{},{linePosition:n})})),t}function R(t,e){return t.map((function(t){var e=t.axis,n=t.linePosition,r=t.position,i=t.label,a=t.boundaryGap;"boolean"!==typeof a&&(a=p[e+"AxisConfig"].boundaryGap);var s=i.length,l=(0,o["default"])(n,2),u=(0,o["default"])(l[0],2),c=u[0],h=u[1],f=(0,o["default"])(l[1],2),g=f[0],v=f[1],y="x"===e?g-c:v-h,m=y/(a?s:s-1),b=new Array(s).fill(0).map((function(t,n){return"x"===e?[c+m*(a?n+.5:n),h]:[c,h+m*(a?n+.5:n)]})),_=N(e,a,r,b,m);return d(d({},t),{},{tickPosition:b,tickLinePosition:_,tickGap:m})}))}function N(t,e,n,r,i){var a="x"===t?1:0,s=5;"x"===t&&"top"===n&&(s=-5),"y"===t&&"left"===n&&(s=-5);var l=r.map((function(t){var e=(0,h.deepClone)(t);return e[a]+=s,[(0,h.deepClone)(t),e]}));return e?(a="x"===t?0:1,s=i/2,l.forEach((function(t){var e=(0,o["default"])(t,2),n=e[0],r=e[1];n[a]+=s,r[a]+=s})),l):l}function B(t,e){return t.map((function(t){var e=t.nameGap,n=t.nameLocation,r=t.position,i=t.linePosition,a=(0,o["default"])(i,2),l=a[0],u=a[1],c=(0,s["default"])(l);"end"===n&&(c=(0,s["default"])(u)),"center"===n&&(c[0]=(l[0]+u[0])/2,c[1]=(l[1]+u[1])/2);var h=0;"top"===r&&"center"===n&&(h=1),"bottom"===r&&"center"===n&&(h=1),"left"===r&&"center"!==n&&(h=1),"right"===r&&"center"!==n&&(h=1);var f=e;return"top"===r&&"end"!==n&&(f*=-1),"left"===r&&"start"!==n&&(f*=-1),"bottom"===r&&"start"===n&&(f*=-1),"right"===r&&"end"===n&&(f*=-1),c[h]+=f,d(d({},t),{},{namePosition:c})}))}function F(t,e){var n=e.gridArea,r=n.w,i=n.h;return t.map((function(t){var e=t.tickLinePosition,n=t.position,a=t.boundaryGap,l=0,u=r;"top"!==n&&"bottom"!==n||(l=1),"top"!==n&&"bottom"!==n||(u=i),"right"!==n&&"bottom"!==n||(u*=-1);var c=e.map((function(t){var e=(0,o["default"])(t,1),n=e[0],r=(0,s["default"])(n);return r[l]+=u,[(0,s["default"])(n),r]}));return a||c.shift(),d(d({},t),{},{splitLinePosition:c})}))}function z(t){var e=t.animationCurve,n=t.animationFrame,r=t.rLevel;return[{name:"polyline",index:r,visible:t.axisLine.show,animationCurve:e,animationFrame:n,shape:V(t),style:q(t)}]}function V(t){var e=t.linePosition;return{points:e}}function q(t){return t.axisLine.style}function G(t){var e=t.animationCurve,n=t.animationFrame,r=t.rLevel,i=H(t),o=W(t);return i.map((function(i){return{name:"polyline",index:r,visible:t.axisTick.show,animationCurve:e,animationFrame:n,shape:i,style:o}}))}function H(t){var e=t.tickLinePosition;return e.map((function(t){return{points:t}}))}function W(t){return t.axisTick.style}function U(t){var e=t.animationCurve,n=t.animationFrame,r=t.rLevel,i=$(t),o=X(t,i);return i.map((function(i,a){return{name:"text",index:r,visible:t.axisLabel.show,animationCurve:e,animationFrame:n,shape:i,style:o[a],setGraphCenter:function(){}}}))}function $(t){var e=t.label,n=t.tickPosition,r=t.position;return n.map((function(t,n){return{position:Y(t,r),content:e[n].toString()}}))}function Y(t,e){var n=0,r=10;return"top"!==e&&"bottom"!==e||(n=1),"top"!==e&&"left"!==e||(r=-10),t=(0,h.deepClone)(t),t[n]+=r,t}function X(t,e){var n=t.position,r=t.axisLabel.style,i=K(n);r=(0,c.deepMerge)(i,r);var o=e.map((function(t){var e=t.position;return d(d({},r),{},{graphCenter:e})}));return o}function K(t){return"left"===t?{textAlign:"right",textBaseline:"middle"}:"right"===t?{textAlign:"left",textBaseline:"middle"}:"top"===t?{textAlign:"center",textBaseline:"bottom"}:"bottom"===t?{textAlign:"center",textBaseline:"top"}:void 0}function Z(t){var e=t.animationCurve,n=t.animationFrame,r=t.rLevel;return[{name:"text",index:r,animationCurve:e,animationFrame:n,shape:Q(t),style:J(t)}]}function Q(t){var e=t.name,n=t.namePosition;return{content:e,position:n}}function J(t){var e=t.nameLocation,n=t.position,r=t.nameTextStyle,i=tt(n,e);return(0,c.deepMerge)(i,r)}function tt(t,e){return"top"===t&&"start"===e||"bottom"===t&&"start"===e||"left"===t&&"center"===e?{textAlign:"right",textBaseline:"middle"}:"top"===t&&"end"===e||"bottom"===t&&"end"===e||"right"===t&&"center"===e?{textAlign:"left",textBaseline:"middle"}:"top"===t&&"center"===e||"left"===t&&"end"===e||"right"===t&&"end"===e?{textAlign:"center",textBaseline:"bottom"}:"bottom"===t&&"center"===e||"left"===t&&"start"===e||"right"===t&&"start"===e?{textAlign:"center",textBaseline:"top"}:void 0}function et(t){var e=t.animationCurve,n=t.animationFrame,r=t.rLevel,i=nt(t),o=rt(t);return i.map((function(i){return{name:"polyline",index:r,visible:t.splitLine.show,animationCurve:e,animationFrame:n,shape:i,style:o}}))}function nt(t){var e=t.splitLinePosition;return e.map((function(t){return{points:t}}))}function rt(t){return t.splitLine.style}},"06c5":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));n("fb6a"),n("d3b7"),n("b0c0"),n("a630"),n("3ca3"),n("ac1f"),n("00b4");var r=n("6b75");function i(t,e){if(t){if("string"===typeof t)return Object(r["a"])(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r["a"])(t,e):void 0}}},"06cf":function(t,e,n){var r=n("83ab"),i=n("c65b"),o=n("d1e7"),a=n("5c6c"),s=n("fc6a"),l=n("a04b"),u=n("1a2d"),c=n("0cfb"),h=Object.getOwnPropertyDescriptor;e.f=r?h:function(t,e){if(t=s(t),e=l(e),c)try{return h(t,e)}catch(n){}if(u(t,e))return a(!i(o.f,t,e),t[e])}},"072d":function(t,e,n){"use strict";var r=n("0bad"),i=n("9876"),o=n("fed5"),a=n("1917"),s=n("0983"),l=n("9fbb"),u=Object.assign;t.exports=!u||n("4b8b")((function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=u({},t)[n]||Object.keys(u({},e)).join("")!=r}))?function(t,e){var n=s(t),u=arguments.length,c=1,h=o.f,f=a.f;while(u>c){var d,p=l(arguments[c++]),g=h?i(p).concat(h(p)):i(p),v=g.length,y=0;while(v>y)d=g[y++],r&&!f.call(p,d)||(n[d]=p[d])}return n}:u},"07fa":function(t,e,n){var r=n("50c4");t.exports=function(t){return r(t.length)}},"083a":function(t,e,n){"use strict";var r=n("0d51"),i=TypeError;t.exports=function(t,e){if(!delete t[e])throw i("Cannot delete property "+r(e)+" of "+r(t))}},"0983":function(t,e,n){var r=n("c901");t.exports=function(t){return Object(r(t))}},"0a06":function(t,e,n){"use strict";var r=n("c532"),i=n("30b5"),o=n("f6b4"),a=n("5270"),s=n("4a7b"),l=n("848b"),u=l.validators;function c(t){this.defaults=t,this.interceptors={request:new o,response:new o}}c.prototype.request=function(t){"string"===typeof t?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},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 e=t.transitional;void 0!==e&&l.assertOptions(e,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var n=[],r=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(r=r&&e.synchronous,n.unshift(e.fulfilled,e.rejected))}));var i,o=[];if(this.interceptors.response.forEach((function(t){o.push(t.fulfilled,t.rejected)})),!r){var c=[a,void 0];Array.prototype.unshift.apply(c,n),c=c.concat(o),i=Promise.resolve(t);while(c.length)i=i.then(c.shift(),c.shift());return i}var h=t;while(n.length){var f=n.shift(),d=n.shift();try{h=f(h)}catch(p){d(p);break}}try{i=a(h)}catch(p){return Promise.reject(p)}while(o.length)i=i.then(o.shift(),o.shift());return i},c.prototype.getUri=function(t){return t=s(this.defaults,t),i(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(t){c.prototype[t]=function(e,n){return this.request(s(n||{},{method:t,url:e,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(t){c.prototype[t]=function(e,n,r){return this.request(s(r||{},{method:t,url:e,data:n}))}})),t.exports=c},"0ae2":function(t,e,n){var r=n("9876"),i=n("fed5"),o=n("1917");t.exports=function(t){var e=r(t),n=i.f;if(n){var a,s=n(t),l=o.f,u=0;while(s.length>u)l.call(t,a=s[u++])&&e.push(a)}return e}},"0b16":function(t,e,n){"use strict";var r=n("1985"),i=n("35e8");function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}e.parse=x,e.resolve=S,e.resolveObject=O,e.format=w,e.Url=o;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,l=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,u=["<",">",'"',"`"," ","\r","\n","\t"],c=["{","}","|","\\","^","`"].concat(u),h=["'"].concat(c),f=["%","/","?",";","#"].concat(h),d=["/","?","#"],p=255,g=/^[+a-z0-9A-Z_-]{0,63}$/,v=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,y={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},b={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},_=n("b383");function x(t,e,n){if(t&&i.isObject(t)&&t instanceof o)return t;var r=new o;return r.parse(t,e,n),r}function w(t){return i.isString(t)&&(t=x(t)),t instanceof o?t.format():o.prototype.format.call(t)}function S(t,e){return x(t,!1,!0).resolve(e)}function O(t,e){return t?x(t,!1,!0).resolveObject(e):e}o.prototype.parse=function(t,e,n){if(!i.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var o=t.indexOf("?"),s=-1!==o&&o<t.indexOf("#")?"?":"#",u=t.split(s),c=/\\/g;u[0]=u[0].replace(c,"/"),t=u.join(s);var x=t;if(x=x.trim(),!n&&1===t.split("#").length){var w=l.exec(x);if(w)return this.path=x,this.href=x,this.pathname=w[1],w[2]?(this.search=w[2],this.query=e?_.parse(this.search.substr(1)):this.search.substr(1)):e&&(this.search="",this.query={}),this}var S=a.exec(x);if(S){S=S[0];var O=S.toLowerCase();this.protocol=O,x=x.substr(S.length)}if(n||S||x.match(/^\/\/[^@\/]+@[^@\/]+/)){var C="//"===x.substr(0,2);!C||S&&m[S]||(x=x.substr(2),this.slashes=!0)}if(!m[S]&&(C||S&&!b[S])){for(var k,A,M=-1,T=0;T<d.length;T++){var I=x.indexOf(d[T]);-1!==I&&(-1===M||I<M)&&(M=I)}A=-1===M?x.lastIndexOf("@"):x.lastIndexOf("@",M),-1!==A&&(k=x.slice(0,A),x=x.slice(A+1),this.auth=decodeURIComponent(k)),M=-1;for(T=0;T<f.length;T++){I=x.indexOf(f[T]);-1!==I&&(-1===M||I<M)&&(M=I)}-1===M&&(M=x.length),this.host=x.slice(0,M),x=x.slice(M),this.parseHost(),this.hostname=this.hostname||"";var E="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!E)for(var P=this.hostname.split(/\./),j=(T=0,P.length);T<j;T++){var L=P[T];if(L&&!L.match(g)){for(var D="",R=0,N=L.length;R<N;R++)L.charCodeAt(R)>127?D+="x":D+=L[R];if(!D.match(g)){var B=P.slice(0,T),F=P.slice(T+1),z=L.match(v);z&&(B.push(z[1]),F.unshift(z[2])),F.length&&(x="/"+F.join(".")+x),this.hostname=B.join(".");break}}}this.hostname.length>p?this.hostname="":this.hostname=this.hostname.toLowerCase(),E||(this.hostname=r.toASCII(this.hostname));var V=this.port?":"+this.port:"",q=this.hostname||"";this.host=q+V,this.href+=this.host,E&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==x[0]&&(x="/"+x))}if(!y[O])for(T=0,j=h.length;T<j;T++){var G=h[T];if(-1!==x.indexOf(G)){var H=encodeURIComponent(G);H===G&&(H=escape(G)),x=x.split(G).join(H)}}var W=x.indexOf("#");-1!==W&&(this.hash=x.substr(W),x=x.slice(0,W));var U=x.indexOf("?");if(-1!==U?(this.search=x.substr(U),this.query=x.substr(U+1),e&&(this.query=_.parse(this.query)),x=x.slice(0,U)):e&&(this.search="",this.query={}),x&&(this.pathname=x),b[O]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){V=this.pathname||"";var $=this.search||"";this.path=V+$}return this.href=this.format(),this},o.prototype.format=function(){var t=this.auth||"";t&&(t=encodeURIComponent(t),t=t.replace(/%3A/i,":"),t+="@");var e=this.protocol||"",n=this.pathname||"",r=this.hash||"",o=!1,a="";this.host?o=t+this.host:this.hostname&&(o=t+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&i.isObject(this.query)&&Object.keys(this.query).length&&(a=_.stringify(this.query));var s=this.search||a&&"?"+a||"";return e&&":"!==e.substr(-1)&&(e+=":"),this.slashes||(!e||b[e])&&!1!==o?(o="//"+(o||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):o||(o=""),r&&"#"!==r.charAt(0)&&(r="#"+r),s&&"?"!==s.charAt(0)&&(s="?"+s),n=n.replace(/[?#]/g,(function(t){return encodeURIComponent(t)})),s=s.replace("#","%23"),e+o+n+s+r},o.prototype.resolve=function(t){return this.resolveObject(x(t,!1,!0)).format()},o.prototype.resolveObject=function(t){if(i.isString(t)){var e=new o;e.parse(t,!1,!0),t=e}for(var n=new o,r=Object.keys(this),a=0;a<r.length;a++){var s=r[a];n[s]=this[s]}if(n.hash=t.hash,""===t.href)return n.href=n.format(),n;if(t.slashes&&!t.protocol){for(var l=Object.keys(t),u=0;u<l.length;u++){var c=l[u];"protocol"!==c&&(n[c]=t[c])}return b[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(t.protocol&&t.protocol!==n.protocol){if(!b[t.protocol]){for(var h=Object.keys(t),f=0;f<h.length;f++){var d=h[f];n[d]=t[d]}return n.href=n.format(),n}if(n.protocol=t.protocol,t.host||m[t.protocol])n.pathname=t.pathname;else{var p=(t.pathname||"").split("/");while(p.length&&!(t.host=p.shift()));t.host||(t.host=""),t.hostname||(t.hostname=""),""!==p[0]&&p.unshift(""),p.length<2&&p.unshift(""),n.pathname=p.join("/")}if(n.search=t.search,n.query=t.query,n.host=t.host||"",n.auth=t.auth,n.hostname=t.hostname||t.host,n.port=t.port,n.pathname||n.search){var g=n.pathname||"",v=n.search||"";n.path=g+v}return n.slashes=n.slashes||t.slashes,n.href=n.format(),n}var y=n.pathname&&"/"===n.pathname.charAt(0),_=t.host||t.pathname&&"/"===t.pathname.charAt(0),x=_||y||n.host&&t.pathname,w=x,S=n.pathname&&n.pathname.split("/")||[],O=(p=t.pathname&&t.pathname.split("/")||[],n.protocol&&!b[n.protocol]);if(O&&(n.hostname="",n.port=null,n.host&&(""===S[0]?S[0]=n.host:S.unshift(n.host)),n.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===p[0]?p[0]=t.host:p.unshift(t.host)),t.host=null),x=x&&(""===p[0]||""===S[0])),_)n.host=t.host||""===t.host?t.host:n.host,n.hostname=t.hostname||""===t.hostname?t.hostname:n.hostname,n.search=t.search,n.query=t.query,S=p;else if(p.length)S||(S=[]),S.pop(),S=S.concat(p),n.search=t.search,n.query=t.query;else if(!i.isNullOrUndefined(t.search)){if(O){n.hostname=n.host=S.shift();var C=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@");C&&(n.auth=C.shift(),n.host=n.hostname=C.shift())}return n.search=t.search,n.query=t.query,i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!S.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var k=S.slice(-1)[0],A=(n.host||t.host||S.length>1)&&("."===k||".."===k)||""===k,M=0,T=S.length;T>=0;T--)k=S[T],"."===k?S.splice(T,1):".."===k?(S.splice(T,1),M++):M&&(S.splice(T,1),M--);if(!x&&!w)for(;M--;M)S.unshift("..");!x||""===S[0]||S[0]&&"/"===S[0].charAt(0)||S.unshift(""),A&&"/"!==S.join("/").substr(-1)&&S.push("");var I=""===S[0]||S[0]&&"/"===S[0].charAt(0);if(O){n.hostname=n.host=I?"":S.length?S.shift():"";C=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@");C&&(n.auth=C.shift(),n.host=n.hostname=C.shift())}return x=x||n.host&&S.length,x&&!I&&S.unshift(""),S.length?n.pathname=S.join("/"):(n.pathname=null,n.path=null),i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=t.auth||n.auth,n.slashes=n.slashes||t.slashes,n.href=n.format(),n},o.prototype.parseHost=function(){var t=this.host,e=s.exec(t);e&&(e=e[0],":"!==e&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},"0b42":function(t,e,n){var r=n("e8b5"),i=n("68ee"),o=n("861d"),a=n("b622"),s=a("species"),l=Array;t.exports=function(t){var e;return r(t)&&(e=t.constructor,i(e)&&(e===l||r(e.prototype))?e=void 0:o(e)&&(e=e[s],null===e&&(e=void 0))),void 0===e?l:e}},"0b43":function(t,e,n){var r=n("04f8");t.exports=r&&!!Symbol["for"]&&!!Symbol.keyFor},"0b99":function(t,e,n){"use strict";var r=n("19fa")(!0);n("393a")(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})}))},"0bad":function(t,e,n){t.exports=!n("4b8b")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"0c47":function(t,e,n){var r=n("da84"),i=n("d44e");i(r.JSON,"JSON",!0)},"0ca1":function(t,e,n){"use strict";var r=n("4ea4"),i=r(n("9523")),o=r(n("448a")),a=n("9886"),s=n("b06d"),l=n("5557"),u=n("a870"),c=n("becb");function h(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?h(Object(n),!0).forEach((function(e){(0,i["default"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var d={shape:{rx:0,ry:0,ir:0,or:0,startAngle:0,endAngle:0,clockWise:!0},validator:function(t){var e=t.shape,n=["rx","ry","ir","or","startAngle","endAngle"];return!n.find((function(t){return"number"!==typeof e[t]}))||(console.error("Pie shape configuration is abnormal!"),!1)},draw:function(t,e){var n=t.ctx,r=e.shape;n.beginPath();var i=r.rx,a=r.ry,s=r.ir,u=r.or,c=r.startAngle,h=r.endAngle,f=r.clockWise;i=parseInt(i)+.5,a=parseInt(a)+.5,n.arc(i,a,s>0?s:0,c,h,!f);var d=(0,l.getCircleRadianPoint)(i,a,u,h).map((function(t){return parseInt(t)+.5})),p=(0,l.getCircleRadianPoint)(i,a,s,c).map((function(t){return parseInt(t)+.5}));n.lineTo.apply(n,(0,o["default"])(d)),n.arc(i,a,u>0?u:0,h,c,f),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(t){var e=t.shape,n=["rx","ry","r","startAngle","endAngle"];return!n.find((function(t){return"number"!==typeof e[t]}))||(console.error("AgArc shape configuration is abnormal!"),!1)},draw:function(t,e){var n=t.ctx,r=e.shape,i=e.style,o=i.gradient;o=o.map((function(t){return(0,u.getColorFromRgbValue)(t)})),1===o.length&&(o=[o[0],o[0]]);var a=o.length-1,s=r.gradientStartAngle,h=r.gradientEndAngle,f=r.startAngle,d=r.endAngle,p=r.r,g=r.rx,v=r.ry;null===s&&(s=f),null===h&&(h=d);var y=(h-s)/a;y===2*Math.PI&&(y=2*Math.PI-.001);for(var m=0;m<a;m++){n.beginPath();var b=(0,l.getCircleRadianPoint)(g,v,p,f+y*m),_=(0,l.getCircleRadianPoint)(g,v,p,f+y*(m+1)),x=(0,c.getLinearGradientColor)(n,b,_,[o[m],o[m+1]]),w=f+y*m,S=f+y*(m+1),O=!1;if(S>d&&(S=d,O=!0),n.arc(g,v,p,w,S),n.strokeStyle=x,n.stroke(),O)break}}},g={shape:{number:[],content:"",position:[0,0],toFixed:0,rowGap:0,formatter:null},validator:function(t){var e=t.shape,n=e.number,r=e.content,i=e.position;return n instanceof Array&&"string"===typeof r&&i instanceof Array||(console.error("NumberText shape configuration is abnormal!"),!1)},draw:function(t,e){var n=t.ctx,r=e.shape,i=r.number,o=r.content,a=r.toFixed,l=r.rowGap,u=r.formatter,c=o.split("{nt}"),h="";c.forEach((function(t,e){var n=i[e];"number"!==typeof n&&(n=""),"number"===typeof n&&(n=n.toFixed(a),"function"===typeof u&&(n=u(n))),h+=t+(n||"")})),s.text.draw({ctx:n},{shape:f(f({},r),{},{content:h,rowGap:l})})}},v={shape:{x:0,y:0,w:0,h:0},validator:function(t){var e=t.shape,n=e.x,r=e.y,i=e.w,o=e.h;return"number"===typeof n&&"number"===typeof r&&"number"===typeof i&&"number"===typeof o||(console.error("lineIcon shape configuration is abnormal!"),!1)},draw:function(t,e){var n=t.ctx,r=e.shape;n.beginPath();var i=r.x,o=r.y,a=r.w,s=r.h,l=s/2;n.strokeStyle=n.fillStyle,n.moveTo(i,o+l),n.lineTo(i+a,o+l),n.lineWidth=1,n.stroke(),n.beginPath();var u=l-10;u<=0&&(u=3),n.arc(i+a/2,o+l,u,0,2*Math.PI),n.lineWidth=5,n.stroke(),n.fillStyle="#fff",n.fill()},hoverCheck:function(t,e){var n=e.shape,r=n.x,i=n.y,o=n.w,a=n.h;return(0,l.checkPointIsInRect)(t,r,i,o,a)},setGraphCenter:function(t,e){var n=e.shape,r=e.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",d),(0,a.extendNewGraph)("agArc",p),(0,a.extendNewGraph)("numberText",g),(0,a.extendNewGraph)("lineIcon",v)},"0cb2":function(t,e,n){var r=n("e330"),i=n("7b0b"),o=Math.floor,a=r("".charAt),s=r("".replace),l=r("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,r,h,f){var d=n+t.length,p=r.length,g=c;return void 0!==h&&(h=i(h),g=u),s(f,g,(function(i,s){var u;switch(a(s,0)){case"$":return"$";case"&":return t;case"`":return l(e,0,n);case"'":return l(e,d);case"<":u=h[l(s,1,-1)];break;default:var c=+s;if(0===c)return i;if(c>p){var f=o(c/10);return 0===f?i:f<=p?void 0===r[f-1]?a(s,1):r[f-1]+a(s,1):i}u=r[c-1]}return void 0===u?"":u}))}},"0cd4":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.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};e.radarAxisConfig=r},"0cfb":function(t,e,n){var r=n("83ab"),i=n("d039"),o=n("cc12");t.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"0d26":function(t,e,n){var r=n("e330"),i=Error,o=r("".replace),a=function(t){return String(i(t).stack)}("zxcasd"),s=/\n\s*at [^:]*:[^\n]*/,l=s.test(a);t.exports=function(t,e){if(l&&"string"==typeof t&&!i.prepareStackTrace)while(e--)t=o(t,s,"");return t}},"0d51":function(t,e){var n=String;t.exports=function(t){try{return n(t)}catch(e){return"Object"}}},"0df6":function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},"0e15":function(t,e,n){var r=n("597f");t.exports=function(t,e,n){return void 0===n?r(t,e,!1):r(t,n,!1!==e)}},"0e8b":function(t,e,n){"use strict";(function(e,r){var i;t.exports=T,T.ReadableState=M;n("faa1").EventEmitter;var o=function(t,e){return t.listeners(e).length},a=n("b98b"),s=n("1c35").Buffer,l=e.Uint8Array||function(){};function u(t){return s.from(t)}function c(t){return s.isBuffer(t)||t instanceof l}var h,f=n(4);h=f&&f.debuglog?f.debuglog("stream"):function(){};var d,p,g,v=n("e937"),y=n("f482"),m=n("86c6"),b=m.getHighWaterMark,_=n("9bfc").codes,x=_.ERR_INVALID_ARG_TYPE,w=_.ERR_STREAM_PUSH_AFTER_EOF,S=_.ERR_METHOD_NOT_IMPLEMENTED,O=_.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n("3fb5")(T,a);var C=y.errorOrDestroy,k=["error","close","destroy","pause","resume"];function A(t,e,n){if("function"===typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}function M(t,e,r){i=i||n("a493"),t=t||{},"boolean"!==typeof r&&(r=e instanceof i),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=b(this,t,"readableHighWaterMark",r),this.buffer=new v,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(d||(d=n("aa22").StringDecoder),this.decoder=new d(t.encoding),this.encoding=t.encoding)}function T(t){if(i=i||n("a493"),!(this instanceof T))return new T(t);var e=this instanceof i;this._readableState=new M(t,this,e),this.readable=!0,t&&("function"===typeof t.read&&(this._read=t.read),"function"===typeof t.destroy&&(this._destroy=t.destroy)),a.call(this)}function I(t,e,n,r,i){h("readableAddChunk",e);var o,a=t._readableState;if(null===e)a.reading=!1,R(t,a);else if(i||(o=P(a,e)),o)C(t,o);else if(a.objectMode||e&&e.length>0)if("string"===typeof e||a.objectMode||Object.getPrototypeOf(e)===s.prototype||(e=u(e)),r)a.endEmitted?C(t,new O):E(t,a,e,!0);else if(a.ended)C(t,new w);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!n?(e=a.decoder.write(e),a.objectMode||0!==e.length?E(t,a,e,!1):F(t,a)):E(t,a,e,!1)}else r||(a.reading=!1,F(t,a));return!a.ended&&(a.length<a.highWaterMark||0===a.length)}function E(t,e,n,r){e.flowing&&0===e.length&&!e.sync?(e.awaitDrain=0,t.emit("data",n)):(e.length+=e.objectMode?1:n.length,r?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&N(t)),F(t,e)}function P(t,e){var n;return c(e)||"string"===typeof e||void 0===e||t.objectMode||(n=new x("chunk",["string","Buffer","Uint8Array"],e)),n}Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),T.prototype.destroy=y.destroy,T.prototype._undestroy=y.undestroy,T.prototype._destroy=function(t,e){e(t)},T.prototype.push=function(t,e){var n,r=this._readableState;return r.objectMode?n=!0:"string"===typeof t&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=s.from(t,e),e=""),n=!0),I(this,t,e,!1,n)},T.prototype.unshift=function(t){return I(this,t,null,!0,!1)},T.prototype.isPaused=function(){return!1===this._readableState.flowing},T.prototype.setEncoding=function(t){d||(d=n("aa22").StringDecoder);var e=new d(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;var r=this._readableState.buffer.head,i="";while(null!==r)i+=e.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var j=1073741824;function L(t){return t>=j?t=j:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function D(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=L(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function R(t,e){if(h("onEofChunk"),!e.ended){if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,e.sync?N(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,B(t)))}}function N(t){var e=t._readableState;h("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(h("emitReadable",e.flowing),e.emittedReadable=!0,r.nextTick(B,t))}function B(t){var e=t._readableState;h("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,U(t)}function F(t,e){e.readingMore||(e.readingMore=!0,r.nextTick(z,t,e))}function z(t,e){while(!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&0===e.length)){var n=e.length;if(h("maybeReadMore read 0"),t.read(0),n===e.length)break}e.readingMore=!1}function V(t){return function(){var e=t._readableState;h("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&o(t,"data")&&(e.flowing=!0,U(t))}}function q(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function G(t){h("readable nexttick read 0"),t.read(0)}function H(t,e){e.resumeScheduled||(e.resumeScheduled=!0,r.nextTick(W,t,e))}function W(t,e){h("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),U(t),e.flowing&&!e.reading&&t.read(0)}function U(t){var e=t._readableState;h("flow",e.flowing);while(e.flowing&&null!==t.read());}function $(t,e){return 0===e.length?null:(e.objectMode?n=e.buffer.shift():!t||t>=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):n=e.buffer.consume(t,e.decoder),n);var n}function Y(t){var e=t._readableState;h("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,r.nextTick(X,e,t))}function X(t,e){if(h("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var n=e._writableState;(!n||n.autoDestroy&&n.finished)&&e.destroy()}}function K(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1}T.prototype.read=function(t){h("read",t),t=parseInt(t,10);var e=this._readableState,n=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&((0!==e.highWaterMark?e.length>=e.highWaterMark:e.length>0)||e.ended))return h("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?Y(this):N(this),null;if(t=D(t,e),0===t&&e.ended)return 0===e.length&&Y(this),null;var r,i=e.needReadable;return h("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&(i=!0,h("length less than watermark",i)),e.ended||e.reading?(i=!1,h("reading or ended",i)):i&&(h("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=D(n,e))),r=t>0?$(t,e):null,null===r?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&Y(this)),null!==r&&this.emit("data",r),r},T.prototype._read=function(t){C(this,new S("_read()"))},T.prototype.pipe=function(t,e){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t);break}i.pipesCount+=1,h("pipe count=%d opts=%j",i.pipesCount,e);var a=(!e||!1!==e.end)&&t!==r.stdout&&t!==r.stderr,s=a?u:m;function l(t,e){h("onunpipe"),t===n&&e&&!1===e.hasUnpiped&&(e.hasUnpiped=!0,d())}function u(){h("onend"),t.end()}i.endEmitted?r.nextTick(s):n.once("end",s),t.on("unpipe",l);var c=V(n);t.on("drain",c);var f=!1;function d(){h("cleanup"),t.removeListener("close",v),t.removeListener("finish",y),t.removeListener("drain",c),t.removeListener("error",g),t.removeListener("unpipe",l),n.removeListener("end",u),n.removeListener("end",m),n.removeListener("data",p),f=!0,!i.awaitDrain||t._writableState&&!t._writableState.needDrain||c()}function p(e){h("ondata");var r=t.write(e);h("dest.write",r),!1===r&&((1===i.pipesCount&&i.pipes===t||i.pipesCount>1&&-1!==K(i.pipes,t))&&!f&&(h("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function g(e){h("onerror",e),m(),t.removeListener("error",g),0===o(t,"error")&&C(t,e)}function v(){t.removeListener("finish",y),m()}function y(){h("onfinish"),t.removeListener("close",v),m()}function m(){h("unpipe"),n.unpipe(t)}return n.on("data",p),A(t,"error",g),t.once("close",v),t.once("finish",y),t.emit("pipe",n),i.flowing||(h("pipe resume"),n.resume()),t},T.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n)),this;if(!t){var r=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<i;o++)r[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=K(e.pipes,t);return-1===a||(e.pipes.splice(a,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,n)),this},T.prototype.on=function(t,e){var n=a.prototype.on.call(this,t,e),i=this._readableState;return"data"===t?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"===t&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,h("on readable",i.length,i.reading),i.length?N(this):i.reading||r.nextTick(G,this))),n},T.prototype.addListener=T.prototype.on,T.prototype.removeListener=function(t,e){var n=a.prototype.removeListener.call(this,t,e);return"readable"===t&&r.nextTick(q,this),n},T.prototype.removeAllListeners=function(t){var e=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||r.nextTick(q,this),e},T.prototype.resume=function(){var t=this._readableState;return t.flowing||(h("resume"),t.flowing=!t.readableListening,H(this,t)),t.paused=!1,this},T.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},T.prototype.wrap=function(t){var e=this,n=this._readableState,r=!1;for(var i in t.on("end",(function(){if(h("wrapped end"),n.decoder&&!n.ended){var t=n.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(i){if(h("wrapped data"),n.decoder&&(i=n.decoder.write(i)),(!n.objectMode||null!==i&&void 0!==i)&&(n.objectMode||i&&i.length)){var o=e.push(i);o||(r=!0,t.pause())}})),t)void 0===this[i]&&"function"===typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var o=0;o<k.length;o++)t.on(k[o],this.emit.bind(this,k[o]));return this._read=function(e){h("wrapped _read",e),r&&(r=!1,t.resume())},this},"function"===typeof Symbol&&(T.prototype[Symbol.asyncIterator]=function(){return void 0===p&&(p=n("782c")),p(this)}),Object.defineProperty(T.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(T.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(T.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}}),T._fromList=$,Object.defineProperty(T.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"===typeof Symbol&&(T.from=function(t,e){return void 0===g&&(g=n("a50f")),g(T,t,e)})}).call(this,n("c8ba"),n("4362"))},"107c":function(t,e,n){var r=n("d039"),i=n("da84"),o=i.RegExp;t.exports=r((function(){var t=o("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},1098:function(t,e,n){"use strict";e.__esModule=!0;var r=n("17ed"),i=l(r),o=n("f893"),a=l(o),s="function"===typeof a.default&&"symbol"===typeof i.default?function(t){return typeof t}:function(t){return t&&"function"===typeof a.default&&t.constructor===a.default&&t!==a.default.prototype?"symbol":typeof t};function l(t){return t&&t.__esModule?t:{default:t}}e.default="function"===typeof a.default&&"symbol"===s(i.default)?function(t){return"undefined"===typeof t?"undefined":s(t)}:function(t){return t&&"function"===typeof a.default&&t.constructor===a.default&&t!==a.default.prototype?"symbol":"undefined"===typeof t?"undefined":s(t)}},"10db":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},1148:function(t,e,n){"use strict";var r=n("5926"),i=n("577e"),o=n("1d80"),a=RangeError;t.exports=function(t){var e=i(o(this)),n="",s=r(t);if(s<0||s==1/0)throw a("Wrong number of repetitions");for(;s>0;(s>>>=1)&&(e+=e))1&s&&(n+=e);return n}},"11b0":function(t,e,n){function r(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),n("a630"),t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},"11b09":function(t,e,n){},1276:function(t,e,n){"use strict";var r=n("2ba4"),i=n("c65b"),o=n("e330"),a=n("d784"),s=n("825a"),l=n("7234"),u=n("44e7"),c=n("1d80"),h=n("4840"),f=n("8aa5"),d=n("50c4"),p=n("577e"),g=n("dc4a"),v=n("4dae"),y=n("14c3"),m=n("9263"),b=n("9f7f"),_=n("d039"),x=b.UNSUPPORTED_Y,w=4294967295,S=Math.min,O=[].push,C=o(/./.exec),k=o(O),A=o("".slice),M=!_((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));a("split",(function(t,e,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(t,n){var o=p(c(this)),a=void 0===n?w:n>>>0;if(0===a)return[];if(void 0===t)return[o];if(!u(t))return i(e,o,t,a);var s,l,h,f=[],d=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),g=0,y=new RegExp(t.source,d+"g");while(s=i(m,y,o)){if(l=y.lastIndex,l>g&&(k(f,A(o,g,s.index)),s.length>1&&s.index<o.length&&r(O,f,v(s,1)),h=s[0].length,g=l,f.length>=a))break;y.lastIndex===s.index&&y.lastIndex++}return g===o.length?!h&&C(y,"")||k(f,""):k(f,A(o,g)),f.length>a?v(f,0,a):f}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:i(e,this,t,n)}:e,[function(e,n){var r=c(this),a=l(e)?void 0:g(e,t);return a?i(a,e,r,n):i(o,p(r),e,n)},function(t,r){var i=s(this),a=p(t),l=n(o,i,a,r,o!==e);if(l.done)return l.value;var u=h(i,RegExp),c=i.unicode,g=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(x?"g":"y"),v=new u(x?"^(?:"+i.source+")":i,g),m=void 0===r?w:r>>>0;if(0===m)return[];if(0===a.length)return null===y(v,a)?[a]:[];var b=0,_=0,O=[];while(_<a.length){v.lastIndex=x?0:_;var C,M=y(v,x?A(a,_):a);if(null===M||(C=S(d(v.lastIndex+(x?_:0)),a.length))===b)_=f(a,_,c);else{if(k(O,A(a,b,_)),O.length===m)return O;for(var T=1;T<=M.length-1;T++)if(k(O,M[T]),O.length===m)return O;_=b=C}}return k(O,A(a,b)),O}]}),!M,x)},"129f":function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t===1/e:t!=t&&e!=e}},"131a":function(t,e,n){var r=n("23e7"),i=n("d2bb");r({target:"Object",stat:!0},{setPrototypeOf:i})},"13a8":function(t,e,n){"use strict";(function(e,r){function i(t){var e=this;this.next=null,this.entry=null,this.finish=function(){W(e,t)}}var o;t.exports=M,M.WritableState=A;var a={deprecate:n("b7d1")},s=n("9ede"),l=n("1c35").Buffer,u=e.Uint8Array||function(){};function c(t){return l.from(t)}function h(t){return l.isBuffer(t)||t instanceof u}var f,d=n("edb3"),p=n("31b5"),g=p.getHighWaterMark,v=n("fbd7").codes,y=v.ERR_INVALID_ARG_TYPE,m=v.ERR_METHOD_NOT_IMPLEMENTED,b=v.ERR_MULTIPLE_CALLBACK,_=v.ERR_STREAM_CANNOT_PIPE,x=v.ERR_STREAM_DESTROYED,w=v.ERR_STREAM_NULL_VALUES,S=v.ERR_STREAM_WRITE_AFTER_END,O=v.ERR_UNKNOWN_ENCODING,C=d.errorOrDestroy;function k(){}function A(t,e,r){o=o||n("be3f"),t=t||{},"boolean"!==typeof r&&(r=e instanceof o),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=g(this,t,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===t.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){R(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function M(t){o=o||n("be3f");var e=this instanceof o;if(!e&&!f.call(M,this))return new M(t);this._writableState=new A(t,this,e),this.writable=!0,t&&("function"===typeof t.write&&(this._write=t.write),"function"===typeof t.writev&&(this._writev=t.writev),"function"===typeof t.destroy&&(this._destroy=t.destroy),"function"===typeof t.final&&(this._final=t.final)),s.call(this)}function T(t,e){var n=new S;C(t,n),r.nextTick(e,n)}function I(t,e,n,i){var o;return null===n?o=new w:"string"===typeof n||e.objectMode||(o=new y("chunk",["string","Buffer"],n)),!o||(C(t,o),r.nextTick(i,o),!1)}function E(t,e,n){return t.objectMode||!1===t.decodeStrings||"string"!==typeof e||(e=l.from(e,n)),e}function P(t,e,n,r,i,o){if(!n){var a=E(e,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=e.objectMode?1:r.length;e.length+=s;var l=e.length<e.highWaterMark;if(l||(e.needDrain=!0),e.writing||e.corked){var u=e.lastBufferedRequest;e.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},u?u.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else j(t,e,!1,s,r,i,o);return l}function j(t,e,n,r,i,o,a){e.writelen=r,e.writecb=a,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new x("write")):n?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function L(t,e,n,i,o){--e.pendingcb,n?(r.nextTick(o,i),r.nextTick(G,t,e),t._writableState.errorEmitted=!0,C(t,i)):(o(i),t._writableState.errorEmitted=!0,C(t,i),G(t,e))}function D(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function R(t,e){var n=t._writableState,i=n.sync,o=n.writecb;if("function"!==typeof o)throw new b;if(D(n),e)L(t,n,i,e,o);else{var a=z(n)||t.destroyed;a||n.corked||n.bufferProcessing||!n.bufferedRequest||F(t,n),i?r.nextTick(N,t,n,a,o):N(t,n,a,o)}}function N(t,e,n,r){n||B(t,e),e.pendingcb--,r(),G(t,e)}function B(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function F(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var r=e.bufferedRequestCount,o=new Array(r),a=e.corkedRequestsFree;a.entry=n;var s=0,l=!0;while(n)o[s]=n,n.isBuf||(l=!1),n=n.next,s+=1;o.allBuffers=l,j(t,e,!0,e.length,o,"",a.finish),e.pendingcb++,e.lastBufferedRequest=null,a.next?(e.corkedRequestsFree=a.next,a.next=null):e.corkedRequestsFree=new i(e),e.bufferedRequestCount=0}else{while(n){var u=n.chunk,c=n.encoding,h=n.callback,f=e.objectMode?1:u.length;if(j(t,e,!1,f,u,c,h),n=n.next,e.bufferedRequestCount--,e.writing)break}null===n&&(e.lastBufferedRequest=null)}e.bufferedRequest=n,e.bufferProcessing=!1}function z(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function V(t,e){t._final((function(n){e.pendingcb--,n&&C(t,n),e.prefinished=!0,t.emit("prefinish"),G(t,e)}))}function q(t,e){e.prefinished||e.finalCalled||("function"!==typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.pendingcb++,e.finalCalled=!0,r.nextTick(V,t,e)))}function G(t,e){var n=z(e);if(n&&(q(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var r=t._readableState;(!r||r.autoDestroy&&r.endEmitted)&&t.destroy()}return n}function H(t,e,n){e.ending=!0,G(t,e),n&&(e.finished?r.nextTick(n):t.once("finish",n)),e.ended=!0,t.writable=!1}function W(t,e,n){var r=t.entry;t.entry=null;while(r){var i=r.callback;e.pendingcb--,i(n),r=r.next}e.corkedRequestsFree.next=t}n("3fb5")(M,s),A.prototype.getBuffer=function(){var t=this.bufferedRequest,e=[];while(t)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(A.prototype,"buffer",{get:a.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"===typeof Symbol&&Symbol.hasInstance&&"function"===typeof Function.prototype[Symbol.hasInstance]?(f=Function.prototype[Symbol.hasInstance],Object.defineProperty(M,Symbol.hasInstance,{value:function(t){return!!f.call(this,t)||this===M&&(t&&t._writableState instanceof A)}})):f=function(t){return t instanceof this},M.prototype.pipe=function(){C(this,new _)},M.prototype.write=function(t,e,n){var r=this._writableState,i=!1,o=!r.objectMode&&h(t);return o&&!l.isBuffer(t)&&(t=c(t)),"function"===typeof e&&(n=e,e=null),o?e="buffer":e||(e=r.defaultEncoding),"function"!==typeof n&&(n=k),r.ending?T(this,n):(o||I(this,r,t,n))&&(r.pendingcb++,i=P(this,r,o,t,e,n)),i},M.prototype.cork=function(){this._writableState.corked++},M.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||F(this,t))},M.prototype.setDefaultEncoding=function(t){if("string"===typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new O(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(M.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(M.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),M.prototype._write=function(t,e,n){n(new m("_write()"))},M.prototype._writev=null,M.prototype.end=function(t,e,n){var r=this._writableState;return"function"===typeof t?(n=t,t=null,e=null):"function"===typeof e&&(n=e,e=null),null!==t&&void 0!==t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||H(this,r,n),this},Object.defineProperty(M.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(M.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),M.prototype.destroy=d.destroy,M.prototype._undestroy=d.undestroy,M.prototype._destroy=function(t,e){e(t)}}).call(this,n("c8ba"),n("4362"))},"13d2":function(t,e,n){var r=n("d039"),i=n("1626"),o=n("1a2d"),a=n("83ab"),s=n("5e77").CONFIGURABLE,l=n("8925"),u=n("69f3"),c=u.enforce,h=u.get,f=Object.defineProperty,d=a&&!r((function(){return 8!==f((function(){}),"length",{value:8}).length})),p=String(String).split("String"),g=t.exports=function(t,e,n){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!o(t,"name")||s&&t.name!==e)&&(a?f(t,"name",{value:e,configurable:!0}):t.name=e),d&&n&&o(n,"arity")&&t.length!==n.arity&&f(t,"length",{value:n.arity});try{n&&o(n,"constructor")&&n.constructor?a&&f(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(i){}var r=c(t);return o(r,"source")||(r.source=p.join("string"==typeof e?e:"")),t};Function.prototype.toString=g((function(){return i(this)&&h(this).source||l(this)}),"toString")},"13d5":function(t,e,n){"use strict";var r=n("23e7"),i=n("d58f").left,o=n("a640"),a=n("2d00"),s=n("605d"),l=o("reduce"),u=!s&&a>79&&a<83;r({target:"Array",proto:!0,forced:!l||u},{reduce:function(t){var e=arguments.length;return i(this,t,e,e>1?arguments[1]:void 0)}})},1468:function(t,e){var n=1e3,r=60*n,i=60*r,o=24*i,a=7*o,s=365.25*o;function l(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var l=parseFloat(e[1]),u=(e[2]||"ms").toLowerCase();switch(u){case"years":case"year":case"yrs":case"yr":case"y":return l*s;case"weeks":case"week":case"w":return l*a;case"days":case"day":case"d":return l*o;case"hours":case"hour":case"hrs":case"hr":case"h":return l*i;case"minutes":case"minute":case"mins":case"min":case"m":return l*r;case"seconds":case"second":case"secs":case"sec":case"s":return l*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:return}}}}function u(t){var e=Math.abs(t);return e>=o?Math.round(t/o)+"d":e>=i?Math.round(t/i)+"h":e>=r?Math.round(t/r)+"m":e>=n?Math.round(t/n)+"s":t+"ms"}function c(t){var e=Math.abs(t);return e>=o?h(t,e,o,"day"):e>=i?h(t,e,i,"hour"):e>=r?h(t,e,r,"minute"):e>=n?h(t,e,n,"second"):t+" ms"}function h(t,e,n,r){var i=e>=1.5*n;return Math.round(t/n)+" "+r+(i?"s":"")}t.exports=function(t,e){e=e||{};var n=typeof t;if("string"===n&&t.length>0)return l(t);if("number"===n&&isFinite(t))return e.long?c(t):u(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},"14c3":function(t,e,n){var r=n("c65b"),i=n("825a"),o=n("1626"),a=n("c6b6"),s=n("9263"),l=TypeError;t.exports=function(t,e){var n=t.exec;if(o(n)){var u=r(n,t,e);return null!==u&&i(u),u}if("RegExp"===a(t))return r(s,t,e);throw l("RegExp#exec called on incompatible receiver")}},"14d9":function(t,e,n){"use strict";var r=n("23e7"),i=n("7b0b"),o=n("07fa"),a=n("3a34"),s=n("3511"),l=n("d039"),u=l((function(){return 4294967297!==[].push.call({length:4294967296},1)})),c=!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}();r({target:"Array",proto:!0,arity:1,forced:u||c},{push:function(t){var e=i(this),n=o(e),r=arguments.length;s(n+r);for(var l=0;l<r;l++)e[n]=arguments[l],n++;return a(e,n),n}})},"14e1":function(t,e,n){},"14e5":function(t,e,n){"use strict";var r=n("23e7"),i=n("c65b"),o=n("59ed"),a=n("f069"),s=n("e667"),l=n("2266"),u=n("5eed");r({target:"Promise",stat:!0,forced:u},{all:function(t){var e=this,n=a.f(e),r=n.resolve,u=n.reject,c=s((function(){var n=o(e.resolve),a=[],s=0,c=1;l(t,(function(t){var o=s++,l=!1;c++,i(n,e,t).then((function(t){l||(l=!0,a[o]=t,--c||r(a))}),u)})),--c||r(a)}));return c.error&&u(c.value),n.promise}})},"159b":function(t,e,n){var r=n("da84"),i=n("fdbc"),o=n("785a"),a=n("17c2"),s=n("9112"),l=function(t){if(t&&t.forEach!==a)try{s(t,"forEach",a)}catch(e){t.forEach=a}};for(var u in i)i[u]&&l(r[u]&&r[u].prototype);l(o)},1609:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},1626:function(t,e,n){var r=n("8ea1"),i=r.all;t.exports=r.IS_HTMLDDA?function(t){return"function"==typeof t||t===i}:function(t){return"function"==typeof t}},"17c2":function(t,e,n){"use strict";var r=n("b727").forEach,i=n("a640"),o=i("forEach");t.exports=o?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},"17ed":function(t,e,n){t.exports={default:n("511f"),__esModule:!0}},1836:function(t,e,n){var r=n("6ca1"),i=n("6438").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return i(t)}catch(e){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?s(t):i(r(t))}},"18ad":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.doUpdate=d,e.Updater=void 0;var i=r(n("448a")),o=r(n("7037")),a=r(n("970b")),s=function t(e,n){(0,a["default"])(this,t);var r=e.chart,i=e.key,o=e.getGraphConfig;"function"===typeof o?(r[i]||(this.graphs=r[i]=[]),Object.assign(this,e),this.update(n)):console.warn("Updater need function getGraphConfig!")};function l(t,e){var n=t.graphs,r=t.chart.render,i=n.length,o=e.length;if(i>o){var a=n.splice(o);a.forEach((function(t){return t.forEach((function(t){return r.delGraph(t)}))}))}}function u(t,e,n,r){var i=r.getGraphConfig,o=r.chart.render,a=r.beforeChange,s=i(e,r);c(t,s,o),t.forEach((function(t,e){var n=s[e];"function"===typeof a&&a(t,n),f(t,n)}))}function c(t,e,n){var r=t.length,o=e.length;if(o>r){var a=t.slice(-1)[0],s=o-r,l=new Array(s).fill(0).map((function(t){return n.clone(a)}));t.push.apply(t,(0,i["default"])(l))}else if(o<r){var u=t.splice(o);u.forEach((function(t){return n.delGraph(t)}))}}function h(t,e,n,r){var i=r.getGraphConfig,o=r.getStartGraphConfig,a=r.chart,s=a.render,l=null;"function"===typeof o&&(l=o(e,r));var u=i(e,r);if(u.length){l?(t[n]=l.map((function(t){return s.add(t)})),t[n].forEach((function(t,e){var n=u[e];f(t,n)}))):t[n]=u.map((function(t){return s.add(t)}));var c=r.afterAddGraph;"function"===typeof c&&c(t[n])}}function f(t,e){var n=Object.keys(e);n.forEach((function(n){"shape"===n||"style"===n?t.animation(n,e[n],!0):t[n]=e[n]}))}function d(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.chart,n=t.series,r=t.key,i=t.getGraphConfig,o=t.getStartGraphConfig,a=t.beforeChange,l=t.beforeUpdate,u=t.afterAddGraph;e[r]?e[r].update(n):e[r]=new s({chart:e,key:r,getGraphConfig:i,getStartGraphConfig:o,beforeChange:a,beforeUpdate:l,afterAddGraph:u},n)}e.Updater=s,s.prototype.update=function(t){var e=this,n=this.graphs,r=this.beforeUpdate;if(l(this,t),t.length){var i=(0,o["default"])(r);t.forEach((function(t,o){"function"===i&&r(n,t,o,e);var a=n[o];a?u(a,t,o,e):h(n,t,o,e)}))}}},1917:function(t,e){e.f={}.propertyIsEnumerable},1985:function(t,e,n){(function(t,r){var i;/*! https://mths.be/punycode v1.4.1 by @mathias */(function(o){e&&e.nodeType,t&&t.nodeType;var a="object"==typeof r&&r;a.global!==a&&a.window!==a&&a.self;var s,l=2147483647,u=36,c=1,h=26,f=38,d=700,p=72,g=128,v="-",y=/^xn--/,m=/[^\x20-\x7E]/,b=/[\x2E\u3002\uFF0E\uFF61]/g,_={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},x=u-c,w=Math.floor,S=String.fromCharCode;function O(t){throw new RangeError(_[t])}function C(t,e){var n=t.length,r=[];while(n--)r[n]=e(t[n]);return r}function k(t,e){var n=t.split("@"),r="";n.length>1&&(r=n[0]+"@",t=n[1]),t=t.replace(b,".");var i=t.split("."),o=C(i,e).join(".");return r+o}function A(t){var e,n,r=[],i=0,o=t.length;while(i<o)e=t.charCodeAt(i++),e>=55296&&e<=56319&&i<o?(n=t.charCodeAt(i++),56320==(64512&n)?r.push(((1023&e)<<10)+(1023&n)+65536):(r.push(e),i--)):r.push(e);return r}function M(t){return C(t,(function(t){var e="";return t>65535&&(t-=65536,e+=S(t>>>10&1023|55296),t=56320|1023&t),e+=S(t),e})).join("")}function T(t){return t-48<10?t-22:t-65<26?t-65:t-97<26?t-97:u}function I(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function E(t,e,n){var r=0;for(t=n?w(t/d):t>>1,t+=w(t/e);t>x*h>>1;r+=u)t=w(t/x);return w(r+(x+1)*t/(t+f))}function P(t){var e,n,r,i,o,a,s,f,d,y,m=[],b=t.length,_=0,x=g,S=p;for(n=t.lastIndexOf(v),n<0&&(n=0),r=0;r<n;++r)t.charCodeAt(r)>=128&&O("not-basic"),m.push(t.charCodeAt(r));for(i=n>0?n+1:0;i<b;){for(o=_,a=1,s=u;;s+=u){if(i>=b&&O("invalid-input"),f=T(t.charCodeAt(i++)),(f>=u||f>w((l-_)/a))&&O("overflow"),_+=f*a,d=s<=S?c:s>=S+h?h:s-S,f<d)break;y=u-d,a>w(l/y)&&O("overflow"),a*=y}e=m.length+1,S=E(_-o,e,0==o),w(_/e)>l-x&&O("overflow"),x+=w(_/e),_%=e,m.splice(_++,0,x)}return M(m)}function j(t){var e,n,r,i,o,a,s,f,d,y,m,b,_,x,C,k=[];for(t=A(t),b=t.length,e=g,n=0,o=p,a=0;a<b;++a)m=t[a],m<128&&k.push(S(m));r=i=k.length,i&&k.push(v);while(r<b){for(s=l,a=0;a<b;++a)m=t[a],m>=e&&m<s&&(s=m);for(_=r+1,s-e>w((l-n)/_)&&O("overflow"),n+=(s-e)*_,e=s,a=0;a<b;++a)if(m=t[a],m<e&&++n>l&&O("overflow"),m==e){for(f=n,d=u;;d+=u){if(y=d<=o?c:d>=o+h?h:d-o,f<y)break;C=f-y,x=u-y,k.push(S(I(y+C%x,0))),f=w(C/x)}k.push(S(I(f,0))),o=E(n,_,r==i),n=0,++r}++n,++e}return k.join("")}function L(t){return k(t,(function(t){return y.test(t)?P(t.slice(4).toLowerCase()):t}))}function D(t){return k(t,(function(t){return m.test(t)?"xn--"+j(t):t}))}s={version:"1.4.1",ucs2:{decode:A,encode:M},decode:P,encode:j,toASCII:D,toUnicode:L},i=function(){return s}.call(e,n,e,t),void 0===i||(t.exports=i)})()}).call(this,n("62e4")(t),n("c8ba"))},"19aa":function(t,e,n){var r=n("3a9b"),i=TypeError;t.exports=function(t,e){if(r(e,t))return t;throw i("Incorrect invocation")}},"19fa":function(t,e,n){var r=n("fc5e"),i=n("c901");t.exports=function(t){return function(e,n){var o,a,s=String(i(e)),l=r(n),u=s.length;return l<0||l>=u?t?"":void 0:(o=s.charCodeAt(l),o<55296||o>56319||l+1===u||(a=s.charCodeAt(l+1))<56320||a>57343?t?s.charAt(l):o:t?s.slice(l,l+2):a-56320+(o-55296<<10)+65536)}}},"1a14":function(t,e,n){var r=n("77e9"),i=n("faf5"),o=n("3397"),a=Object.defineProperty;e.f=n("0bad")?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return a(t,e,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},"1a2d":function(t,e,n){var r=n("e330"),i=n("7b0b"),o=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(i(t),e)}},"1be4":function(t,e,n){var r=n("d066");t.exports=r("document","documentElement")},"1beb":function(t,e,n){"use strict";(function(e,r){function i(t){var e=this;this.next=null,this.entry=null,this.finish=function(){W(e,t)}}var o;t.exports=M,M.WritableState=A;var a={deprecate:n("b7d1")},s=n("946b"),l=n("1c35").Buffer,u=e.Uint8Array||function(){};function c(t){return l.from(t)}function h(t){return l.isBuffer(t)||t instanceof u}var f,d=n("015d"),p=n("75d2"),g=p.getHighWaterMark,v=n("e142").codes,y=v.ERR_INVALID_ARG_TYPE,m=v.ERR_METHOD_NOT_IMPLEMENTED,b=v.ERR_MULTIPLE_CALLBACK,_=v.ERR_STREAM_CANNOT_PIPE,x=v.ERR_STREAM_DESTROYED,w=v.ERR_STREAM_NULL_VALUES,S=v.ERR_STREAM_WRITE_AFTER_END,O=v.ERR_UNKNOWN_ENCODING,C=d.errorOrDestroy;function k(){}function A(t,e,r){o=o||n("030c"),t=t||{},"boolean"!==typeof r&&(r=e instanceof o),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=g(this,t,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===t.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){R(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function M(t){o=o||n("030c");var e=this instanceof o;if(!e&&!f.call(M,this))return new M(t);this._writableState=new A(t,this,e),this.writable=!0,t&&("function"===typeof t.write&&(this._write=t.write),"function"===typeof t.writev&&(this._writev=t.writev),"function"===typeof t.destroy&&(this._destroy=t.destroy),"function"===typeof t.final&&(this._final=t.final)),s.call(this)}function T(t,e){var n=new S;C(t,n),r.nextTick(e,n)}function I(t,e,n,i){var o;return null===n?o=new w:"string"===typeof n||e.objectMode||(o=new y("chunk",["string","Buffer"],n)),!o||(C(t,o),r.nextTick(i,o),!1)}function E(t,e,n){return t.objectMode||!1===t.decodeStrings||"string"!==typeof e||(e=l.from(e,n)),e}function P(t,e,n,r,i,o){if(!n){var a=E(e,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=e.objectMode?1:r.length;e.length+=s;var l=e.length<e.highWaterMark;if(l||(e.needDrain=!0),e.writing||e.corked){var u=e.lastBufferedRequest;e.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},u?u.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else j(t,e,!1,s,r,i,o);return l}function j(t,e,n,r,i,o,a){e.writelen=r,e.writecb=a,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new x("write")):n?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function L(t,e,n,i,o){--e.pendingcb,n?(r.nextTick(o,i),r.nextTick(G,t,e),t._writableState.errorEmitted=!0,C(t,i)):(o(i),t._writableState.errorEmitted=!0,C(t,i),G(t,e))}function D(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function R(t,e){var n=t._writableState,i=n.sync,o=n.writecb;if("function"!==typeof o)throw new b;if(D(n),e)L(t,n,i,e,o);else{var a=z(n)||t.destroyed;a||n.corked||n.bufferProcessing||!n.bufferedRequest||F(t,n),i?r.nextTick(N,t,n,a,o):N(t,n,a,o)}}function N(t,e,n,r){n||B(t,e),e.pendingcb--,r(),G(t,e)}function B(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function F(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var r=e.bufferedRequestCount,o=new Array(r),a=e.corkedRequestsFree;a.entry=n;var s=0,l=!0;while(n)o[s]=n,n.isBuf||(l=!1),n=n.next,s+=1;o.allBuffers=l,j(t,e,!0,e.length,o,"",a.finish),e.pendingcb++,e.lastBufferedRequest=null,a.next?(e.corkedRequestsFree=a.next,a.next=null):e.corkedRequestsFree=new i(e),e.bufferedRequestCount=0}else{while(n){var u=n.chunk,c=n.encoding,h=n.callback,f=e.objectMode?1:u.length;if(j(t,e,!1,f,u,c,h),n=n.next,e.bufferedRequestCount--,e.writing)break}null===n&&(e.lastBufferedRequest=null)}e.bufferedRequest=n,e.bufferProcessing=!1}function z(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function V(t,e){t._final((function(n){e.pendingcb--,n&&C(t,n),e.prefinished=!0,t.emit("prefinish"),G(t,e)}))}function q(t,e){e.prefinished||e.finalCalled||("function"!==typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.pendingcb++,e.finalCalled=!0,r.nextTick(V,t,e)))}function G(t,e){var n=z(e);if(n&&(q(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var r=t._readableState;(!r||r.autoDestroy&&r.endEmitted)&&t.destroy()}return n}function H(t,e,n){e.ending=!0,G(t,e),n&&(e.finished?r.nextTick(n):t.once("finish",n)),e.ended=!0,t.writable=!1}function W(t,e,n){var r=t.entry;t.entry=null;while(r){var i=r.callback;e.pendingcb--,i(n),r=r.next}e.corkedRequestsFree.next=t}n("3fb5")(M,s),A.prototype.getBuffer=function(){var t=this.bufferedRequest,e=[];while(t)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(A.prototype,"buffer",{get:a.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"===typeof Symbol&&Symbol.hasInstance&&"function"===typeof Function.prototype[Symbol.hasInstance]?(f=Function.prototype[Symbol.hasInstance],Object.defineProperty(M,Symbol.hasInstance,{value:function(t){return!!f.call(this,t)||this===M&&(t&&t._writableState instanceof A)}})):f=function(t){return t instanceof this},M.prototype.pipe=function(){C(this,new _)},M.prototype.write=function(t,e,n){var r=this._writableState,i=!1,o=!r.objectMode&&h(t);return o&&!l.isBuffer(t)&&(t=c(t)),"function"===typeof e&&(n=e,e=null),o?e="buffer":e||(e=r.defaultEncoding),"function"!==typeof n&&(n=k),r.ending?T(this,n):(o||I(this,r,t,n))&&(r.pendingcb++,i=P(this,r,o,t,e,n)),i},M.prototype.cork=function(){this._writableState.corked++},M.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||F(this,t))},M.prototype.setDefaultEncoding=function(t){if("string"===typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new O(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(M.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(M.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),M.prototype._write=function(t,e,n){n(new m("_write()"))},M.prototype._writev=null,M.prototype.end=function(t,e,n){var r=this._writableState;return"function"===typeof t?(n=t,t=null,e=null):"function"===typeof e&&(n=e,e=null),null!==t&&void 0!==t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||H(this,r,n),this},Object.defineProperty(M.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(M.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),M.prototype.destroy=d.destroy,M.prototype._undestroy=d.undestroy,M.prototype._destroy=function(t,e){e(t)}}).call(this,n("c8ba"),n("4362"))},"1c35":function(t,e,n){"use strict";(function(t){
|
||
/*!
|
||
* The buffer module from node.js, for the browser.
|
||
*
|
||
* @author Feross Aboukhadijeh <http://feross.org>
|
||
* @license MIT
|
||
*/
|
||
var r=n("1fb5"),i=n("9152"),o=n("bf74");function a(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"===typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(e){return!1}}function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(t,e){if(s()<e)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=u.prototype):(null===t&&(t=new u(e)),t.length=e),t}function u(t,e,n){if(!u.TYPED_ARRAY_SUPPORT&&!(this instanceof u))return new u(t,e,n);if("number"===typeof t){if("string"===typeof e)throw new Error("If encoding is specified then the first argument must be a string");return d(this,t)}return c(this,t,e,n)}function c(t,e,n,r){if("number"===typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&e instanceof ArrayBuffer?v(t,e,n,r):"string"===typeof e?p(t,e,n):y(t,e)}function h(t){if("number"!==typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function f(t,e,n,r){return h(e),e<=0?l(t,e):void 0!==n?"string"===typeof r?l(t,e).fill(n,r):l(t,e).fill(n):l(t,e)}function d(t,e){if(h(e),t=l(t,e<0?0:0|m(e)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function p(t,e,n){if("string"===typeof n&&""!==n||(n="utf8"),!u.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|_(e,n);t=l(t,r);var i=t.write(e,n);return i!==r&&(t=t.slice(0,i)),t}function g(t,e){var n=e.length<0?0:0|m(e.length);t=l(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function v(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r),u.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=u.prototype):t=g(t,e),t}function y(t,e){if(u.isBuffer(e)){var n=0|m(e.length);return t=l(t,n),0===t.length?t:(e.copy(t,0,0,n),t)}if(e){if("undefined"!==typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!==typeof e.length||et(e.length)?l(t,0):g(t,e);if("Buffer"===e.type&&o(e.data))return g(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function m(t){if(t>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function b(t){return+t!=t&&(t=0),u.alloc(+t)}function _(t,e){if(u.isBuffer(t))return t.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!==typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return K(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return J(t).length;default:if(r)return K(t).length;e=(""+e).toLowerCase(),r=!0}}function x(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,e>>>=0,n<=e)return"";t||(t="utf8");while(1)switch(t){case"hex":return N(this,e,n);case"utf8":case"utf-8":return P(this,e,n);case"ascii":return D(this,e,n);case"latin1":case"binary":return R(this,e,n);case"base64":return E(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function w(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function S(t,e,n,r,i){if(0===t.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof e&&(e=u.from(e,r)),u.isBuffer(e))return 0===e.length?-1:O(t,e,n,r,i);if("number"===typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):O(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function O(t,e,n,r,i){var o,a=1,s=t.length,l=e.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,l/=2,n/=2}function u(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var c=-1;for(o=n;o<s;o++)if(u(t,o)===u(e,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===l)return c*a}else-1!==c&&(o-=o-c),c=-1}else for(n+l>s&&(n=s-l),o=n;o>=0;o--){for(var h=!0,f=0;f<l;f++)if(u(t,o+f)!==u(e,f)){h=!1;break}if(h)return o}return-1}function C(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;var o=e.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[n+a]=s}return a}function k(t,e,n,r){return tt(K(e,t.length-n),t,n,r)}function A(t,e,n,r){return tt(Z(e),t,n,r)}function M(t,e,n,r){return A(t,e,n,r)}function T(t,e,n,r){return tt(J(e),t,n,r)}function I(t,e,n,r){return tt(Q(e,t.length-n),t,n,r)}function E(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function P(t,e,n){n=Math.min(t.length,n);var r=[],i=e;while(i<n){var o,a,s,l,u=t[i],c=null,h=u>239?4:u>223?3:u>191?2:1;if(i+h<=n)switch(h){case 1:u<128&&(c=u);break;case 2:o=t[i+1],128===(192&o)&&(l=(31&u)<<6|63&o,l>127&&(c=l));break;case 3:o=t[i+1],a=t[i+2],128===(192&o)&&128===(192&a)&&(l=(15&u)<<12|(63&o)<<6|63&a,l>2047&&(l<55296||l>57343)&&(c=l));break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s,l>65535&&l<1114112&&(c=l))}null===c?(c=65533,h=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=h}return L(r)}e.Buffer=u,e.SlowBuffer=b,e.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:a(),e.kMaxLength=s(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,n){return c(null,t,e,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,e,n){return f(null,t,e,n)},u.allocUnsafe=function(t){return d(null,t)},u.allocUnsafeSlow=function(t){return d(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i<o;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(t,e){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=u.allocUnsafe(e),i=0;for(n=0;n<t.length;++n){var a=t[n];if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},u.byteLength=_,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)w(this,e,e+1);return this},u.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)w(this,e,e+3),w(this,e+1,e+2);return this},u.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)w(this,e,e+7),w(this,e+1,e+6),w(this,e+2,e+5),w(this,e+3,e+4);return this},u.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?P(this,0,t):x.apply(this,arguments)},u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},u.prototype.compare=function(t,e,n,r,i){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,r>>>=0,i>>>=0,this===t)return 0;for(var o=i-r,a=n-e,s=Math.min(o,a),l=this.slice(r,i),c=t.slice(e,n),h=0;h<s;++h)if(l[h]!==c[h]){o=l[h],a=c[h];break}return o<a?-1:a<o?1:0},u.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},u.prototype.indexOf=function(t,e,n){return S(this,t,e,n,!0)},u.prototype.lastIndexOf=function(t,e,n){return S(this,t,e,n,!1)},u.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"===typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return C(this,t,e,n);case"utf8":case"utf-8":return k(this,t,e,n);case"ascii":return A(this,t,e,n);case"latin1":case"binary":return M(this,t,e,n);case"base64":return T(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var j=4096;function L(t){var e=t.length;if(e<=j)return String.fromCharCode.apply(String,t);var n="",r=0;while(r<e)n+=String.fromCharCode.apply(String,t.slice(r,r+=j));return n}function D(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function R(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function N(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=e;o<n;++o)i+=X(t[o]);return i}function B(t,e,n){for(var r=t.slice(e,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function F(t,e,n){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function z(t,e,n,r,i,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function V(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i<o;++i)t[n+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function q(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i<o;++i)t[n+i]=e>>>8*(r?i:3-i)&255}function G(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function H(t,e,n,r,o){return o||G(t,e,n,4,34028234663852886e22,-34028234663852886e22),i.write(t,e,n,r,23,4),n+4}function W(t,e,n,r,o){return o||G(t,e,n,8,17976931348623157e292,-17976931348623157e292),i.write(t,e,n,r,52,8),n+8}u.prototype.slice=function(t,e){var n,r=this.length;if(t=~~t,e=void 0===e?r:~~e,t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),e<t&&(e=t),u.TYPED_ARRAY_SUPPORT)n=this.subarray(t,e),n.__proto__=u.prototype;else{var i=e-t;n=new u(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+t]}return n},u.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||F(t,e,this.length);var r=this[t],i=1,o=0;while(++o<e&&(i*=256))r+=this[t+o]*i;return r},u.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||F(t,e,this.length);var r=this[t+--e],i=1;while(e>0&&(i*=256))r+=this[t+--e]*i;return r},u.prototype.readUInt8=function(t,e){return e||F(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||F(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||F(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||F(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||F(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||F(t,e,this.length);var r=this[t],i=1,o=0;while(++o<e&&(i*=256))r+=this[t+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*e)),r},u.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||F(t,e,this.length);var r=e,i=1,o=this[t+--r];while(r>0&&(i*=256))o+=this[t+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return e||F(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||F(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(t,e){e||F(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(t,e){return e||F(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||F(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||F(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||F(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||F(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||F(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;z(this,t,e,n,i,0)}var o=1,a=0;this[e]=255&t;while(++a<n&&(o*=256))this[e+a]=t/o&255;return e+n},u.prototype.writeUIntBE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;z(this,t,e,n,i,0)}var o=n-1,a=1;this[e+o]=255&t;while(--o>=0&&(a*=256))this[e+o]=t/a&255;return e+n},u.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):V(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):V(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):q(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):q(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);z(this,t,e,n,i-1,-i)}var o=0,a=1,s=0;this[e]=255&t;while(++o<n&&(a*=256))t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},u.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);z(this,t,e,n,i-1,-i)}var o=n-1,a=1,s=0;this[e+o]=255&t;while(--o>=0&&(a*=256))t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},u.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):V(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):V(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):q(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||z(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):q(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,n){return H(this,t,e,!0,n)},u.prototype.writeFloatBE=function(t,e,n){return H(this,t,e,!1,n)},u.prototype.writeDoubleLE=function(t,e,n){return W(this,t,e,!0,n)},u.prototype.writeDoubleBE=function(t,e,n){return W(this,t,e,!1,n)},u.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var i,o=r-n;if(this===t&&n<e&&e<r)for(i=o-1;i>=0;--i)t[i+e]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+o),e);return o},u.prototype.fill=function(t,e,n,r){if("string"===typeof t){if("string"===typeof e?(r=e,e=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"===typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var o;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"===typeof t)for(o=e;o<n;++o)this[o]=t;else{var a=u.isBuffer(t)?t:K(new u(t,r).toString()),s=a.length;for(o=0;o<n-e;++o)this[o+e]=a[o%s]}return this};var U=/[^+\/0-9A-Za-z-_]/g;function $(t){if(t=Y(t).replace(U,""),t.length<2)return"";while(t.length%4!==0)t+="=";return t}function Y(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function X(t){return t<16?"0"+t.toString(16):t.toString(16)}function K(t,e){var n;e=e||1/0;for(var r=t.length,i=null,o=[],a=0;a<r;++a){if(n=t.charCodeAt(a),n>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function Z(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}function Q(t,e){for(var n,r,i,o=[],a=0;a<t.length;++a){if((e-=2)<0)break;n=t.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r)}return o}function J(t){return r.toByteArray($(t))}function tt(t,e,n,r){for(var i=0;i<r;++i){if(i+n>=e.length||i>=t.length)break;e[i+n]=t[i]}return i}function et(t){return t!==t}}).call(this,n("c8ba"))},"1c59":function(t,e,n){"use strict";var r=n("6d61"),i=n("6566");r("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),i)},"1c7e":function(t,e,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(l){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var r={};r[i]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(l){}return n}},"1cdc":function(t,e,n){var r=n("342f");t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},"1d2b":function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},"1d80":function(t,e,n){var r=n("7234"),i=TypeError;t.exports=function(t){if(r(t))throw i("Can't call method on "+t);return t}},"1da1":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));n("d3b7");function r(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,i)}function i(t){return function(){var e=this,n=arguments;return new Promise((function(i,o){var a=t.apply(e,n);function s(t){r(a,i,o,s,l,"next",t)}function l(t){r(a,i,o,s,l,"throw",t)}s(void 0)}))}}},"1dac":function(t,e,n){},"1dde":function(t,e,n){var r=n("d039"),i=n("b622"),o=n("2d00"),a=i("species");t.exports=function(t){return o>=51||!r((function(){var e=[],n=e.constructor={};return n[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},"1e4c":function(t,e,n){},"1e4d":function(t,e,n){"use strict";function r(){if(!(this instanceof r))return new r;this.nextId=Math.max(1,Math.floor(65535*Math.random()))}r.prototype.allocate=function(){const t=this.nextId++;return 65536===this.nextId&&(this.nextId=1),t},r.prototype.getLastAllocated=function(){return 1===this.nextId?65535:this.nextId-1},r.prototype.register=function(t){return!0},r.prototype.deallocate=function(t){},r.prototype.clear=function(){},t.exports=r},"1f55":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.gauge=g;var i=r(n("9523")),o=r(n("7037")),a=r(n("278c")),s=r(n("448a")),l=n("18ad"),u=n("cc6d"),c=n("5557"),h=n("becb"),f=n("a870");function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){(0,i["default"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function g(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.series;n||(n=[]);var r=(0,h.initNeedSeries)(n,u.gaugeConfig,"gauge");r=v(r,t),r=y(r,t),r=m(r,t),r=b(r,t),r=_(r,t),r=x(r,t),r=w(r,t),r=S(r,t),r=O(r,t),r=C(r,t),(0,l.doUpdate)({chart:t,series:r,key:"gaugeAxisTick",getGraphConfig:A}),(0,l.doUpdate)({chart:t,series:r,key:"gaugeAxisLabel",getGraphConfig:I}),(0,l.doUpdate)({chart:t,series:r,key:"gaugeBackgroundArc",getGraphConfig:j,getStartGraphConfig:R}),(0,l.doUpdate)({chart:t,series:r,key:"gaugeArc",getGraphConfig:N,getStartGraphConfig:z,beforeChange:V}),(0,l.doUpdate)({chart:t,series:r,key:"gaugePointer",getGraphConfig:q,getStartGraphConfig:U}),(0,l.doUpdate)({chart:t,series:r,key:"gaugeDetails",getGraphConfig:$})}function v(t,e){var n=e.render.area;return t.forEach((function(t){var e=t.center;e=e.map((function(t,e){return"number"===typeof t?t:parseInt(t)/100*n[e]})),t.center=e})),t}function y(t,e){var n=e.render.area,r=Math.min.apply(Math,(0,s["default"])(n))/2;return t.forEach((function(t){var e=t.radius;"number"!==typeof e&&(e=parseInt(e)/100*r),t.radius=e})),t}function m(t,e){var n=e.render.area,r=Math.min.apply(Math,(0,s["default"])(n))/2;return t.forEach((function(t){var e=t.radius,n=t.data,i=t.arcLineWidth;n.forEach((function(t){var n=t.radius,o=t.lineWidth;n||(n=e),"number"!==typeof n&&(n=parseInt(n)/100*r),t.radius=n,o||(o=i),t.lineWidth=o}))})),t}function b(t,e){return t.forEach((function(t){var e=t.startAngle,n=t.endAngle,r=t.data,i=t.min,o=t.max,a=n-e,s=o-i;r.forEach((function(t){var n=t.value,r=Math.abs((n-i)/s*a);t.startAngle=e,t.endAngle=e+r}))})),t}function _(t,e){return t.forEach((function(t){var e=t.data;e.forEach((function(t){var e=t.color,n=t.gradient;n&&n.length||(n=e),n instanceof Array||(n=[n]),t.gradient=n}))})),t}function x(t,e){return t.forEach((function(t){var e=t.startAngle,n=t.endAngle,r=t.splitNum,i=t.center,o=t.radius,a=t.arcLineWidth,l=t.axisTick,u=l.tickLength,h=l.style.lineWidth,f=n-e,d=o-a/2,p=d-u,g=f/(r-1),v=2*Math.PI*o*f/(2*Math.PI),y=Math.ceil(h/2)/v*f;t.tickAngles=[],t.tickInnerRadius=[],t.tickPosition=new Array(r).fill(0).map((function(n,o){var a=e+g*o;return 0===o&&(a+=y),o===r-1&&(a-=y),t.tickAngles[o]=a,t.tickInnerRadius[o]=p,[c.getCircleRadianPoint.apply(void 0,(0,s["default"])(i).concat([d,a])),c.getCircleRadianPoint.apply(void 0,(0,s["default"])(i).concat([p,a]))]}))})),t}function w(t,e){return t.forEach((function(t){var e=t.center,n=t.tickInnerRadius,r=t.tickAngles,i=t.axisLabel.labelGap,o=r.map((function(t,o){return c.getCircleRadianPoint.apply(void 0,(0,s["default"])(e).concat([n[o]-i,r[o]]))})),l=o.map((function(t){var n=(0,a["default"])(t,2),r=n[0],i=n[1];return{textAlign:r>e[0]?"right":"left",textBaseline:i>e[1]?"bottom":"top"}}));t.labelPosition=o,t.labelAlign=l})),t}function S(t,e){return t.forEach((function(t){var e=t.axisLabel,n=t.min,r=t.max,i=t.splitNum,a=e.data,s=e.formatter,l=(r-n)/(i-1),u=new Array(i).fill(0).map((function(t,e){return parseInt(n+l*e)})),c=(0,o["default"])(s);a=(0,h.deepMerge)(u,a).map((function(t,e){var n=t;return"string"===c&&(n=s.replace("{value}",t)),"function"===c&&(n=s({value:t,index:e})),n})),e.data=a})),t}function O(t,e){return t.forEach((function(t){var e=t.data,n=t.details,r=t.center,i=n.position,o=n.offset,a=e.map((function(t){var e=t.startAngle,n=t.endAngle,a=t.radius,l=null;return"center"===i?l=r:"start"===i?l=c.getCircleRadianPoint.apply(void 0,(0,s["default"])(r).concat([a,e])):"end"===i&&(l=c.getCircleRadianPoint.apply(void 0,(0,s["default"])(r).concat([a,n]))),k(l,o)}));t.detailsPosition=a})),t}function C(t,e){return t.forEach((function(t){var e=t.data,n=t.details,r=n.formatter,i=(0,o["default"])(r),a=e.map((function(t){var e=t.value;return"string"===i&&(e=r.replace("{value}","{nt}"),e=e.replace("{name}",t.name)),"function"===i&&(e=r(t)),e.toString()}));t.detailsContent=a})),t}function k(t,e){var n=(0,a["default"])(t,2),r=n[0],i=n[1],o=(0,a["default"])(e,2),s=o[0],l=o[1];return[r+s,i+l]}function A(t){var e=t.tickPosition,n=t.animationCurve,r=t.animationFrame,i=t.rLevel;return e.map((function(e,o){return{name:"polyline",index:i,visible:t.axisTick.show,animationCurve:n,animationFrame:r,shape:M(t,o),style:T(t,o)}}))}function M(t,e){var n=t.tickPosition;return{points:n[e]}}function T(t,e){var n=t.axisTick.style;return n}function I(t){var e=t.labelPosition,n=t.animationCurve,r=t.animationFrame,i=t.rLevel;return e.map((function(e,o){return{name:"text",index:i,visible:t.axisLabel.show,animationCurve:n,animationFrame:r,shape:E(t,o),style:P(t,o)}}))}function E(t,e){var n=t.labelPosition,r=t.axisLabel.data;return{content:r[e].toString(),position:n[e]}}function P(t,e){var n=t.labelAlign,r=t.axisLabel,i=r.style;return(0,h.deepMerge)(p({},n[e]),i)}function j(t){var e=t.animationCurve,n=t.animationFrame,r=t.rLevel;return[{name:"arc",index:r,visible:t.backgroundArc.show,animationCurve:e,animationFrame:n,shape:L(t),style:D(t)}]}function L(t){var e=t.startAngle,n=t.endAngle,r=t.center,i=t.radius;return{rx:r[0],ry:r[1],r:i,startAngle:e,endAngle:n}}function D(t){var e=t.backgroundArc,n=t.arcLineWidth,r=e.style;return(0,h.deepMerge)({lineWidth:n},r)}function R(t){var e=j(t)[0],n=p({},e.shape);return n.endAngle=e.shape.startAngle,e.shape=n,[e]}function N(t){var e=t.data,n=t.animationCurve,r=t.animationFrame,i=t.rLevel;return e.map((function(e,o){return{name:"agArc",index:i,animationCurve:n,animationFrame:r,shape:B(t,o),style:F(t,o)}}))}function B(t,e){var n=t.data,r=t.center,i=t.endAngle,o=n[e],a=o.radius,s=o.startAngle,l=o.endAngle,u=o.localGradient;return u&&(i=l),{rx:r[0],ry:r[1],r:a,startAngle:s,endAngle:l,gradientEndAngle:i}}function F(t,e){var n=t.data,r=t.dataItemStyle,i=n[e],o=i.lineWidth,a=i.gradient;return a=a.map((function(t){return(0,f.getRgbaValue)(t)})),(0,h.deepMerge)({lineWidth:o,gradient:a},r)}function z(t){var e=N(t);return e.map((function(t){var e=p({},t.shape);e.endAngle=t.shape.startAngle,t.shape=e})),e}function V(t,e){var n=t.style.gradient,r=n.length,i=e.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(t){return(0,s["default"])(o)}))))}}function q(t){var e=t.animationCurve,n=t.animationFrame,r=t.center,i=t.rLevel;return[{name:"polyline",index:i,visible:t.pointer.show,animationCurve:e,animationFrame:n,shape:G(t),style:H(t),setGraphCenter:function(t,e){e.style.graphCenter=r}}]}function G(t){var e=t.center;return{points:W(e),close:!0}}function H(t){var e=t.startAngle,n=t.endAngle,r=t.min,i=t.max,o=t.data,a=t.pointer,s=t.center,l=a.valueIndex,u=a.style,c=o[l]?o[l].value:0,f=(c-r)/(i-r)*(n-e)+e+Math.PI/2;return(0,h.deepMerge)({rotate:(0,h.radianToAngle)(f),scale:[1,1],graphCenter:s},u)}function W(t){var e=(0,a["default"])(t,2),n=e[0],r=e[1],i=[n,r-40],o=[n+5,r],s=[n,r+10],l=[n-5,r];return[i,o,s,l]}function U(t){var e=t.startAngle,n=q(t)[0];return n.style.rotate=(0,h.radianToAngle)(e+Math.PI/2),[n]}function $(t){var e=t.detailsPosition,n=t.animationCurve,r=t.animationFrame,i=t.rLevel,o=t.details.show;return e.map((function(e,a){return{name:"numberText",index:i,visible:o,animationCurve:n,animationFrame:r,shape:Y(t,a),style:X(t,a)}}))}function Y(t,e){var n=t.detailsPosition,r=t.detailsContent,i=t.data,o=t.details,a=n[e],s=r[e],l=i[e].value,u=o.valueToFixed;return{number:[l],content:s,position:a,toFixed:u}}function X(t,e){var n=t.details,r=t.data,i=n.style,o=r[e].color;return(0,h.deepMerge)({fill:o},i)}},"1f68":function(t,e,n){"use strict";var r=n("83ab"),i=n("edd0"),o=n("861d"),a=n("7b0b"),s=n("1d80"),l=Object.getPrototypeOf,u=Object.setPrototypeOf,c=Object.prototype,h="__proto__";if(r&&l&&u&&!(h in c))try{i(c,h,{configurable:!0,get:function(){return l(a(this))},set:function(t){var e=s(this);(o(t)||null===t)&&o(e)&&u(e,t)}})}catch(f){}},"1fad":function(t,e,n){const r=n("51e9"),i=n("faa1"),o=n("a7c9"),a=n("b289"),s=n("34eb")("mqtt-packet:parser");class l extends i{constructor(){super(),this.parser=this.constructor.parser}static parser(t){return this instanceof l?(this.settings=t||{},this._states=["_parseHeader","_parseLength","_parsePayload","_newPacket"],this._resetState(),this):(new l).parser(t)}_resetState(){s("_resetState: resetting packet, error, _list, and _stateCounter"),this.packet=new o,this.error=null,this._list=r(),this._stateCounter=0}parse(t){this.error&&this._resetState(),this._list.append(t),s("parse: current state: %s",this._states[this._stateCounter]);while((-1!==this.packet.length||this._list.length>0)&&this[this._states[this._stateCounter]]()&&!this.error)this._stateCounter++,s("parse: state complete. _stateCounter is now: %d",this._stateCounter),s("parse: packet.length: %d, buffer list length: %d",this.packet.length,this._list.length),this._stateCounter>=this._states.length&&(this._stateCounter=0);return s("parse: exited while loop. packet: %d, buffer list length: %d",this.packet.length,this._list.length),this._list.length}_parseHeader(){const t=this._list.readUInt8(0);return this.packet.cmd=a.types[t>>a.CMD_SHIFT],this.packet.retain=0!==(t&a.RETAIN_MASK),this.packet.qos=t>>a.QOS_SHIFT&a.QOS_MASK,this.packet.dup=0!==(t&a.DUP_MASK),s("_parseHeader: packet: %o",this.packet),this._list.consume(1),!0}_parseLength(){const t=this._parseVarByteNum(!0);return t&&(this.packet.length=t.value,this._list.consume(t.bytes)),s("_parseLength %d",t.value),!!t}_parsePayload(){s("_parsePayload: payload %O",this._list);let t=!1;if(0===this.packet.length||this._list.length>=this.packet.length){switch(this._pos=0,this.packet.cmd){case"connect":this._parseConnect();break;case"connack":this._parseConnack();break;case"publish":this._parsePublish();break;case"puback":case"pubrec":case"pubrel":case"pubcomp":this._parseConfirmation();break;case"subscribe":this._parseSubscribe();break;case"suback":this._parseSuback();break;case"unsubscribe":this._parseUnsubscribe();break;case"unsuback":this._parseUnsuback();break;case"pingreq":case"pingresp":break;case"disconnect":this._parseDisconnect();break;case"auth":this._parseAuth();break;default:this._emitError(new Error("Not supported"))}t=!0}return s("_parsePayload complete result: %s",t),t}_parseConnect(){let t,e,n,r;s("_parseConnect");const i={},o=this.packet,l=this._parseString();if(null===l)return this._emitError(new Error("Cannot parse protocolId"));if("MQTT"!==l&&"MQIsdp"!==l)return this._emitError(new Error("Invalid protocolId"));if(o.protocolId=l,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(o.protocolVersion=this._list.readUInt8(this._pos),o.protocolVersion>=128&&(o.bridgeMode=!0,o.protocolVersion=o.protocolVersion-128),3!==o.protocolVersion&&4!==o.protocolVersion&&5!==o.protocolVersion)return this._emitError(new Error("Invalid protocol version"));if(this._pos++,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(i.username=this._list.readUInt8(this._pos)&a.USERNAME_MASK,i.password=this._list.readUInt8(this._pos)&a.PASSWORD_MASK,i.will=this._list.readUInt8(this._pos)&a.WILL_FLAG_MASK,i.will&&(o.will={},o.will.retain=0!==(this._list.readUInt8(this._pos)&a.WILL_RETAIN_MASK),o.will.qos=(this._list.readUInt8(this._pos)&a.WILL_QOS_MASK)>>a.WILL_QOS_SHIFT),o.clean=0!==(this._list.readUInt8(this._pos)&a.CLEAN_SESSION_MASK),this._pos++,o.keepalive=this._parseNum(),-1===o.keepalive)return this._emitError(new Error("Packet too short"));if(5===o.protocolVersion){const t=this._parseProperties();Object.getOwnPropertyNames(t).length&&(o.properties=t)}const u=this._parseString();if(null===u)return this._emitError(new Error("Packet too short"));if(o.clientId=u,s("_parseConnect: packet.clientId: %s",o.clientId),i.will){if(5===o.protocolVersion){const t=this._parseProperties();Object.getOwnPropertyNames(t).length&&(o.will.properties=t)}if(t=this._parseString(),null===t)return this._emitError(new Error("Cannot parse will topic"));if(o.will.topic=t,s("_parseConnect: packet.will.topic: %s",o.will.topic),e=this._parseBuffer(),null===e)return this._emitError(new Error("Cannot parse will payload"));o.will.payload=e,s("_parseConnect: packet.will.paylaod: %s",o.will.payload)}if(i.username){if(r=this._parseString(),null===r)return this._emitError(new Error("Cannot parse username"));o.username=r,s("_parseConnect: packet.username: %s",o.username)}if(i.password){if(n=this._parseBuffer(),null===n)return this._emitError(new Error("Cannot parse password"));o.password=n}return this.settings=o,s("_parseConnect: complete"),o}_parseConnack(){s("_parseConnack");const t=this.packet;if(this._list.length<1)return null;if(t.sessionPresent=!!(this._list.readUInt8(this._pos++)&a.SESSIONPRESENT_MASK),5===this.settings.protocolVersion)this._list.length>=2?t.reasonCode=this._list.readUInt8(this._pos++):t.reasonCode=0;else{if(this._list.length<2)return null;t.returnCode=this._list.readUInt8(this._pos++)}if(-1===t.returnCode||-1===t.reasonCode)return this._emitError(new Error("Cannot parse return code"));if(5===this.settings.protocolVersion){const e=this._parseProperties();Object.getOwnPropertyNames(e).length&&(t.properties=e)}s("_parseConnack: complete")}_parsePublish(){s("_parsePublish");const t=this.packet;if(t.topic=this._parseString(),null===t.topic)return this._emitError(new Error("Cannot parse topic"));if(!(t.qos>0)||this._parseMessageId()){if(5===this.settings.protocolVersion){const e=this._parseProperties();Object.getOwnPropertyNames(e).length&&(t.properties=e)}t.payload=this._list.slice(this._pos,t.length),s("_parsePublish: payload from buffer list: %o",t.payload)}}_parseSubscribe(){s("_parseSubscribe");const t=this.packet;let e,n,r,i,o,l,u;if(1!==t.qos)return this._emitError(new Error("Wrong subscribe header"));if(t.subscriptions=[],this._parseMessageId()){if(5===this.settings.protocolVersion){const e=this._parseProperties();Object.getOwnPropertyNames(e).length&&(t.properties=e)}while(this._pos<t.length){if(e=this._parseString(),null===e)return this._emitError(new Error("Cannot parse topic"));if(this._pos>=t.length)return this._emitError(new Error("Malformed Subscribe Payload"));n=this._parseByte(),r=n&a.SUBSCRIBE_OPTIONS_QOS_MASK,l=0!==(n>>a.SUBSCRIBE_OPTIONS_NL_SHIFT&a.SUBSCRIBE_OPTIONS_NL_MASK),o=0!==(n>>a.SUBSCRIBE_OPTIONS_RAP_SHIFT&a.SUBSCRIBE_OPTIONS_RAP_MASK),i=n>>a.SUBSCRIBE_OPTIONS_RH_SHIFT&a.SUBSCRIBE_OPTIONS_RH_MASK,u={topic:e,qos:r},5===this.settings.protocolVersion?(u.nl=l,u.rap=o,u.rh=i):this.settings.bridgeMode&&(u.rh=0,u.rap=!0,u.nl=!0),s("_parseSubscribe: push subscription `%s` to subscription",u),t.subscriptions.push(u)}}}_parseSuback(){s("_parseSuback");const t=this.packet;if(this.packet.granted=[],this._parseMessageId()){if(5===this.settings.protocolVersion){const e=this._parseProperties();Object.getOwnPropertyNames(e).length&&(t.properties=e)}while(this._pos<this.packet.length)this.packet.granted.push(this._list.readUInt8(this._pos++))}}_parseUnsubscribe(){s("_parseUnsubscribe");const t=this.packet;if(t.unsubscriptions=[],this._parseMessageId()){if(5===this.settings.protocolVersion){const e=this._parseProperties();Object.getOwnPropertyNames(e).length&&(t.properties=e)}while(this._pos<t.length){const e=this._parseString();if(null===e)return this._emitError(new Error("Cannot parse topic"));s("_parseUnsubscribe: push topic `%s` to unsubscriptions",e),t.unsubscriptions.push(e)}}}_parseUnsuback(){s("_parseUnsuback");const t=this.packet;if(!this._parseMessageId())return this._emitError(new Error("Cannot parse messageId"));if(5===this.settings.protocolVersion){const e=this._parseProperties();Object.getOwnPropertyNames(e).length&&(t.properties=e),t.granted=[];while(this._pos<this.packet.length)this.packet.granted.push(this._list.readUInt8(this._pos++))}}_parseConfirmation(){s("_parseConfirmation: packet.cmd: `%s`",this.packet.cmd);const t=this.packet;if(this._parseMessageId(),5===this.settings.protocolVersion&&(t.length>2?(t.reasonCode=this._parseByte(),s("_parseConfirmation: packet.reasonCode `%d`",t.reasonCode)):t.reasonCode=0,t.length>3)){const e=this._parseProperties();Object.getOwnPropertyNames(e).length&&(t.properties=e)}return!0}_parseDisconnect(){const t=this.packet;if(s("_parseDisconnect"),5===this.settings.protocolVersion){this._list.length>0?t.reasonCode=this._parseByte():t.reasonCode=0;const e=this._parseProperties();Object.getOwnPropertyNames(e).length&&(t.properties=e)}return s("_parseDisconnect result: true"),!0}_parseAuth(){s("_parseAuth");const t=this.packet;if(5!==this.settings.protocolVersion)return this._emitError(new Error("Not supported auth packet for this version MQTT"));t.reasonCode=this._parseByte();const e=this._parseProperties();return Object.getOwnPropertyNames(e).length&&(t.properties=e),s("_parseAuth: result: true"),!0}_parseMessageId(){const t=this.packet;return t.messageId=this._parseNum(),null===t.messageId?(this._emitError(new Error("Cannot parse messageId")),!1):(s("_parseMessageId: packet.messageId %d",t.messageId),!0)}_parseString(t){const e=this._parseNum(),n=e+this._pos;if(-1===e||n>this._list.length||n>this.packet.length)return null;const r=this._list.toString("utf8",this._pos,n);return this._pos+=e,s("_parseString: result: %s",r),r}_parseStringPair(){return s("_parseStringPair"),{name:this._parseString(),value:this._parseString()}}_parseBuffer(){const t=this._parseNum(),e=t+this._pos;if(-1===t||e>this._list.length||e>this.packet.length)return null;const n=this._list.slice(this._pos,e);return this._pos+=t,s("_parseBuffer: result: %o",n),n}_parseNum(){if(this._list.length-this._pos<2)return-1;const t=this._list.readUInt16BE(this._pos);return this._pos+=2,s("_parseNum: result: %s",t),t}_parse4ByteNum(){if(this._list.length-this._pos<4)return-1;const t=this._list.readUInt32BE(this._pos);return this._pos+=4,s("_parse4ByteNum: result: %s",t),t}_parseVarByteNum(t){s("_parseVarByteNum");const e=4;let n,r=0,i=1,o=0,l=!1;const u=this._pos?this._pos:0;while(r<e&&u+r<this._list.length){if(n=this._list.readUInt8(u+r++),o+=i*(n&a.VARBYTEINT_MASK),i*=128,0===(n&a.VARBYTEINT_FIN_MASK)){l=!0;break}if(this._list.length<=r)break}return!l&&r===e&&this._list.length>=r&&this._emitError(new Error("Invalid variable byte integer")),u&&(this._pos+=r),l=!!l&&(t?{bytes:r,value:o}:o),s("_parseVarByteNum: result: %o",l),l}_parseByte(){let t;return this._pos<this._list.length&&(t=this._list.readUInt8(this._pos),this._pos++),s("_parseByte: result: %o",t),t}_parseByType(t){switch(s("_parseByType: type: %s",t),t){case"byte":return 0!==this._parseByte();case"int8":return this._parseByte();case"int16":return this._parseNum();case"int32":return this._parse4ByteNum();case"var":return this._parseVarByteNum();case"string":return this._parseString();case"pair":return this._parseStringPair();case"binary":return this._parseBuffer()}}_parseProperties(){s("_parseProperties");const t=this._parseVarByteNum(),e=this._pos,n=e+t,r={};while(this._pos<n){const t=this._parseByte();if(!t)return this._emitError(new Error("Cannot parse property code type")),!1;const e=a.propertiesCodes[t];if(!e)return this._emitError(new Error("Unknown property")),!1;if("userProperties"!==e)r[e]?(Array.isArray(r[e])||(r[e]=[r[e]]),r[e].push(this._parseByType(a.propertiesTypes[e]))):r[e]=this._parseByType(a.propertiesTypes[e]);else{r[e]||(r[e]=Object.create(null));const t=this._parseByType(a.propertiesTypes[e]);if(r[e][t.name])if(Array.isArray(r[e][t.name]))r[e][t.name].push(t.value);else{const n=r[e][t.name];r[e][t.name]=[n],r[e][t.name].push(t.value)}else r[e][t.name]=t.value}}return r}_newPacket(){return s("_newPacket"),this.packet&&(this._list.consume(this.packet.length),s("_newPacket: parser emit packet: packet.cmd: %s, packet.payload: %s, packet.length: %d",this.packet.cmd,this.packet.payload,this.packet.length),this.emit("packet",this.packet)),s("_newPacket: new packet"),this.packet=new o,this._pos=0,!0}_emitError(t){s("_emitError"),this.error=t,this.emit("error",t)}}t.exports=l},"1fb5":function(t,e,n){"use strict";e.byteLength=c,e.toByteArray=f,e.fromByteArray=g;for(var r=[],i=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s<l;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function u(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");-1===n&&(n=e);var r=n===e?0:4-n%4;return[n,r]}function c(t){var e=u(t),n=e[0],r=e[1];return 3*(n+r)/4-r}function h(t,e,n){return 3*(e+n)/4-n}function f(t){var e,n,r=u(t),a=r[0],s=r[1],l=new o(h(t,a,s)),c=0,f=s>0?a-4:a;for(n=0;n<f;n+=4)e=i[t.charCodeAt(n)]<<18|i[t.charCodeAt(n+1)]<<12|i[t.charCodeAt(n+2)]<<6|i[t.charCodeAt(n+3)],l[c++]=e>>16&255,l[c++]=e>>8&255,l[c++]=255&e;return 2===s&&(e=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,l[c++]=255&e),1===s&&(e=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,l[c++]=e>>8&255,l[c++]=255&e),l}function d(t){return r[t>>18&63]+r[t>>12&63]+r[t>>6&63]+r[63&t]}function p(t,e,n){for(var r,i=[],o=e;o<n;o+=3)r=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2]),i.push(d(r));return i.join("")}function g(t){for(var e,n=t.length,i=n%3,o=[],a=16383,s=0,l=n-i;s<l;s+=a)o.push(p(t,s,s+a>l?l:s+a));return 1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},"204e":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.bar=p;var i=r(n("7037")),o=r(n("9523")),a=r(n("278c")),s=r(n("448a")),l=n("18ad"),u=n("9d85"),c=n("5557"),h=n("becb");function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){(0,o["default"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.xAxis,r=e.yAxis,i=e.series,o=[];n&&r&&i&&(o=(0,h.initNeedSeries)(i,u.barConfig,"bar"),o=g(o,t),o=v(o,t),o=k(o,t)),(0,l.doUpdate)({chart:t,series:o.slice(-1),key:"backgroundBar",getGraphConfig:j}),o.reverse(),(0,l.doUpdate)({chart:t,series:o,key:"bar",getGraphConfig:N,getStartGraphConfig:W,beforeUpdate:X}),(0,l.doUpdate)({chart:t,series:o,key:"barLabel",getGraphConfig:K})}function g(t,e){var n=e.axisData;return t.forEach((function(t){var e=t.xAxisIndex,r=t.yAxisIndex;"number"!==typeof e&&(e=0),"number"!==typeof r&&(r=0);var i=n.find((function(t){var n=t.axis,r=t.index;return"".concat(n).concat(r)==="x".concat(e)})),o=n.find((function(t){var e=t.axis,n=t.index;return"".concat(e).concat(n)==="y".concat(r)})),a=[i,o],s=a.findIndex((function(t){var e=t.data;return"value"===e}));t.valueAxis=a[s],t.labelAxis=a[1-s]})),t}function v(t,e){var n=m(t);return n.forEach((function(t){y(t),_(t),x(t,e),w(t),C(t)})),t}function y(t){var e=b(t);e=e.map((function(t){return{stack:t,index:-1}}));var n=0;t.forEach((function(t){var r=t.stack;if(r){var i=e.find((function(t){var e=t.stack;return e===r}));-1===i.index&&(i.index=n,n++),t.barIndex=i.index}else t.barIndex=n,n++}))}function m(t){var e=t.map((function(t){var e=t.labelAxis,n=e.axis,r=e.index;return n+r}));return e=(0,s["default"])(new Set(e)),e.map((function(e){return t.filter((function(t){var n=t.labelAxis,r=n.axis,i=n.index;return r+i===e}))}))}function b(t){var e=[];return t.forEach((function(t){var n=t.stack;n&&e.push(n)})),(0,s["default"])(new Set(e))}function _(t){var e=(0,s["default"])(new Set(t.map((function(t){var e=t.barIndex;return e})))).length;t.forEach((function(t){return t.barNum=e}))}function x(t){var e=t.slice(-1)[0],n=e.barCategoryGap,r=e.labelAxis.tickGap,i=0;i="number"===typeof n?n:(1-parseInt(n)/100)*r,t.forEach((function(t){return t.barCategoryWidth=i}))}function w(t){var e=t.slice(-1)[0],n=e.barCategoryWidth,r=e.barWidth,i=e.barGap,o=e.barNum,s=[];"number"===typeof r||"auto"!==r?s=S(n,r,i,o):"auto"===r&&(s=O(n,r,i,o));var l=s,u=(0,a["default"])(l,2),c=u[0],h=u[1];t.forEach((function(t){t.barWidth=c,t.barGap=h}))}function S(t,e,n){var r=0,i=0;return r="number"===typeof e?e:parseInt(e)/100*t,i="number"===typeof n?n:parseInt(n)/100*r,[r,i]}function O(t,e,n,r){var i=0,o=0,a=t/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(t){var e=t.slice(-1)[0],n=e.barGap,r=e.barWidth,i=e.barNum,o=(n+r)*i-n;t.forEach((function(t){return t.barAllWidthAndGap=o}))}function k(t,e){return t=M(t),t=A(t),t=I(t),t=E(t),t}function A(t){return t.map((function(t){var e=t.labelAxis,n=t.barAllWidthAndGap,r=t.barGap,i=t.barWidth,o=t.barIndex,a=e.tickGap,s=e.tickPosition,l=e.axis,u="x"===l?0:1,c=s.map((function(t,e){var l=s[e][u]-a/2,c=l+(a-n)/2;return c+(o+.5)*i+o*r}));return d(d({},t),{},{barLabelAxisPos:c})}))}function M(t){return t.map((function(e){var n=(0,h.mergeSameStackData)(e,t);n=T(e,n);var r=e.valueAxis,i=r.axis,o=r.minValue,a=r.maxValue,s=r.linePosition,l=P(o,a,o<0?0:o,s,i),u=n.map((function(t){return P(o,a,t,s,i)})),c=u.map((function(t){return[l,t]}));return d(d({},e),{},{barValueAxisPos:c})}))}function T(t,e){var n=t.data;return e.map((function(t,e){return"number"===typeof n[e]?t:null})).filter((function(t){return null!==t}))}function I(t){return t.map((function(t){var e=t.barLabelAxisPos,n=t.data;return n.forEach((function(t,n){"number"!==typeof t&&(e[n]=null)})),d(d({},t),{},{barLabelAxisPos:e.filter((function(t){return null!==t}))})}))}function E(t){return t.forEach((function(t){var e=t.data,n=t.barLabelAxisPos,r=t.barValueAxisPos,i=e.filter((function(t){return"number"===typeof t})).length,o=n.length;o>i&&(n.splice(i),r.splice(i))})),t}function P(t,e,n,r,i){if("number"!==typeof n)return null;var o=e-t,a="x"===i?0:1,s=r[1][a]-r[0][a],l=(n-t)/o;0===o&&(l=0);var u=l*s;return u+r[0][a]}function j(t){var e=t.animationCurve,n=t.animationFrame,r=t.rLevel,i=L(t),o=R(t);return i.map((function(i){return{name:"rect",index:r,visible:t.backgroundBar.show,animationCurve:e,animationFrame:n,shape:i,style:o}}))}function L(t){var e=t.labelAxis,n=t.valueAxis,r=e.tickPosition,i=n.axis,o=n.linePosition,a=D(t),s=a/2,l="x"===i?0:1,u=r.map((function(t){return t[1-l]})),c=[o[0][l],o[1][l]],h=c[0],f=c[1];return u.map((function(t){return"x"===i?{x:h,y:t-s,w:f-h,h:a}:{x:t-s,y:f,w:a,h:h-f}}))}function D(t){var e=t.barAllWidthAndGap,n=t.barCategoryWidth,r=t.backgroundBar,i=r.width;return"number"===typeof i?i:"auto"===i?e:parseInt(i)/100*n}function R(t){return t.backgroundBar.style}function N(t){var e=t.barLabelAxisPos,n=t.animationCurve,r=t.animationFrame,i=t.rLevel,o=B(t);return e.map((function(e,a){return{name:o,index:i,animationCurve:n,animationFrame:r,shape:F(t,a),style:G(t,a)}}))}function B(t){var e=t.shapeType;return"leftEchelon"===e||"rightEchelon"===e?"polyline":"rect"}function F(t,e){var n=t.shapeType;return"leftEchelon"===n?z(t,e):"rightEchelon"===n?V(t,e):q(t,e)}function z(t,e){var n=t.barValueAxisPos,r=t.barLabelAxisPos,i=t.barWidth,o=t.echelonOffset,s=(0,a["default"])(n[e],2),l=s[0],u=s[1],c=r[e],h=i/2,f=t.valueAxis.axis,d=[];return"x"===f?(d[0]=[u,c-h],d[1]=[u,c+h],d[2]=[l,c+h],d[3]=[l+o,c-h],u-l<o&&d.splice(3,1)):(d[0]=[c-h,u],d[1]=[c+h,u],d[2]=[c+h,l],d[3]=[c-h,l-o],l-u<o&&d.splice(3,1)),{points:d,close:!0}}function V(t,e){var n=t.barValueAxisPos,r=t.barLabelAxisPos,i=t.barWidth,o=t.echelonOffset,s=(0,a["default"])(n[e],2),l=s[0],u=s[1],c=r[e],h=i/2,f=t.valueAxis.axis,d=[];return"x"===f?(d[0]=[u,c+h],d[1]=[u,c-h],d[2]=[l,c-h],d[3]=[l+o,c+h],u-l<o&&d.splice(2,1)):(d[0]=[c+h,u],d[1]=[c-h,u],d[2]=[c-h,l],d[3]=[c+h,l-o],l-u<o&&d.splice(2,1)),{points:d,close:!0}}function q(t,e){var n=t.barValueAxisPos,r=t.barLabelAxisPos,i=t.barWidth,o=(0,a["default"])(n[e],2),s=o[0],l=o[1],u=r[e],c=t.valueAxis.axis,h={};return"x"===c?(h.x=s,h.y=u-i/2,h.w=l-s,h.h=i):(h.x=u-i/2,h.y=l,h.w=i,h.h=s-l),h}function G(t,e){var n=t.barStyle,r=t.gradient,i=t.color,o=t.independentColor,a=t.independentColors,s=[n.fill||i],l=(0,h.deepMerge)(s,r.color);if(o){var u=a[e%a.length];l=u instanceof Array?u:[u]}1===l.length&&l.push(l[0]);var c=H(t,e);return(0,h.deepMerge)({gradientColor:l,gradientParams:c,gradientType:"linear",gradientWith:"fill"},n)}function H(t,e){var n=t.barValueAxisPos,r=t.barLabelAxisPos,i=t.data,o=t.valueAxis,s=o.linePosition,l=o.axis,u=(0,a["default"])(n[e],2),c=u[0],h=u[1],f=r[e],d=i[e],p=(0,a["default"])(s,2),g=p[0],v=p[1],y="x"===l?0:1,m=h;return t.gradient.local||(m=d<0?g[y]:v[y]),"y"===l?[f,m,f,c]:[m,f,c,f]}function W(t){var e=N(t),n=t.shapeType;return e.forEach((function(e){var r=e.shape;r="leftEchelon"===n?U(r,t):"rightEchelon"===n?$(r,t):Y(r,t),e.shape=r})),e}function U(t,e){var n=e.valueAxis.axis;t=(0,c.deepClone)(t);var r=t,i=r.points,o="x"===n?0:1,a=i[2][o];return i.forEach((function(t){return t[o]=a})),t}function $(t,e){var n=e.valueAxis.axis;t=(0,c.deepClone)(t);var r=t,i=r.points,o="x"===n?0:1,a=i[2][o];return i.forEach((function(t){return t[o]=a})),t}function Y(t,e){var n=e.valueAxis.axis,r=t.x,i=t.y,o=t.w,a=t.h;return"x"===n?o=0:(i+=a,a=0),{x:r,y:i,w:o,h:a}}function X(t,e,n,r){var i=r.chart.render,o=B(e);t[n]&&t[n][0].name!==o&&(t[n].forEach((function(t){return i.delGraph(t)})),t[n]=null)}function K(t){var e=t.animationCurve,n=t.animationFrame,r=t.rLevel,i=Z(t),o=et(t);return i.map((function(i){return{name:"text",index:r,visible:t.label.show,animationCurve:e,animationFrame:n,shape:i,style:o}}))}function Z(t){var e=Q(t),n=J(t);return n.map((function(t,n){return{position:t,content:e[n]}}))}function Q(t){var e=t.data,n=t.label,r=n.formatter;if(e=e.filter((function(t){return"number"===typeof t})).map((function(t){return t.toString()})),!r)return e;var o=(0,i["default"])(r);return"string"===o?e.map((function(t){return r.replace("{value}",t)})):"function"===o?e.map((function(t,e){return r({value:t,index:e})})):e}function J(t){var e=t.label,n=t.barValueAxisPos,r=t.barLabelAxisPos,i=e.position,o=e.offset,s=t.valueAxis.axis;return n.map((function(t,e){var n=(0,a["default"])(t,2),l=n[0],u=n[1],c=r[e],h=[u,c];return"bottom"===i&&(h=[l,c]),"center"===i&&(h=[(l+u)/2,c]),"y"===s&&h.reverse(),tt(h,o)}))}function tt(t,e){var n=(0,a["default"])(t,2),r=n[0],i=n[1],o=(0,a["default"])(e,2),s=o[0],l=o[1];return[r+s,i+l]}function et(t){var e=t.color,n=t.label.style,r=t.gradient.color;return r.length&&(e=r[0]),n=(0,h.deepMerge)({fill:e},n),n}},"21a1":function(t,e,n){(function(e){(function(e,n){t.exports=n()})(0,(function(){"use strict";"undefined"!==typeof window?window:"undefined"!==typeof e||"undefined"!==typeof self&&self;function t(t,e){return e={exports:{}},t(e,e.exports),e.exports}var n=t((function(t,e){(function(e,n){t.exports=n()})(0,(function(){function t(t){var e=t&&"object"===typeof t;return e&&"[object RegExp]"!==Object.prototype.toString.call(t)&&"[object Date]"!==Object.prototype.toString.call(t)}function e(t){return Array.isArray(t)?[]:{}}function n(n,r){var i=r&&!0===r.clone;return i&&t(n)?o(e(n),n,r):n}function r(e,r,i){var a=e.slice();return r.forEach((function(r,s){"undefined"===typeof a[s]?a[s]=n(r,i):t(r)?a[s]=o(e[s],r,i):-1===e.indexOf(r)&&a.push(n(r,i))})),a}function i(e,r,i){var a={};return t(e)&&Object.keys(e).forEach((function(t){a[t]=n(e[t],i)})),Object.keys(r).forEach((function(s){t(r[s])&&e[s]?a[s]=o(e[s],r[s],i):a[s]=n(r[s],i)})),a}function o(t,e,o){var a=Array.isArray(e),s=o||{arrayMerge:r},l=s.arrayMerge||r;return a?Array.isArray(t)?l(t,e,o):n(e,o):i(t,e,o)}return o.all=function(t,e){if(!Array.isArray(t)||t.length<2)throw new Error("first argument should be an array with at least two elements");return t.reduce((function(t,n){return o(t,n,e)}))},o}))}));function r(t){return t=t||Object.create(null),{on:function(e,n){(t[e]||(t[e]=[])).push(n)},off:function(e,n){t[e]&&t[e].splice(t[e].indexOf(n)>>>0,1)},emit:function(e,n){(t[e]||[]).map((function(t){t(n)})),(t["*"]||[]).map((function(t){t(e,n)}))}}}var i=t((function(t,e){var n={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}};e.default=n,t.exports=e.default})),o=function(t){return Object.keys(t).map((function(e){var n=t[e].toString().replace(/"/g,""");return e+'="'+n+'"'})).join(" ")},a=i.svg,s=i.xlink,l={};l[a.name]=a.uri,l[s.name]=s.uri;var u,c=function(t,e){void 0===t&&(t="");var r=n(l,e||{}),i=o(r);return"<svg "+i+">"+t+"</svg>"},h=i.svg,f=i.xlink,d={attrs:(u={style:["position: absolute","width: 0","height: 0"].join("; "),"aria-hidden":"true"},u[h.name]=h.uri,u[f.name]=f.uri,u)},p=function(t){this.config=n(d,t||{}),this.symbols=[]};p.prototype.add=function(t){var e=this,n=e.symbols,r=this.find(t.id);return r?(n[n.indexOf(r)]=t,!1):(n.push(t),!0)},p.prototype.remove=function(t){var e=this,n=e.symbols,r=this.find(t);return!!r&&(n.splice(n.indexOf(r),1),r.destroy(),!0)},p.prototype.find=function(t){return this.symbols.filter((function(e){return e.id===t}))[0]||null},p.prototype.has=function(t){return null!==this.find(t)},p.prototype.stringify=function(){var t=this.config,e=t.attrs,n=this.symbols.map((function(t){return t.stringify()})).join("");return c(n,e)},p.prototype.toString=function(){return this.stringify()},p.prototype.destroy=function(){this.symbols.forEach((function(t){return t.destroy()}))};var g=function(t){var e=t.id,n=t.viewBox,r=t.content;this.id=e,this.viewBox=n,this.content=r};g.prototype.stringify=function(){return this.content},g.prototype.toString=function(){return this.stringify()},g.prototype.destroy=function(){var t=this;["id","viewBox","content"].forEach((function(e){return delete t[e]}))};var v=function(t){var e=!!document.importNode,n=(new DOMParser).parseFromString(t,"image/svg+xml").documentElement;return e?document.importNode(n,!0):n},y=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={isMounted:{}};return n.isMounted.get=function(){return!!this.node},e.createFromExistingNode=function(t){return new e({id:t.getAttribute("id"),viewBox:t.getAttribute("viewBox"),content:t.outerHTML})},e.prototype.destroy=function(){this.isMounted&&this.unmount(),t.prototype.destroy.call(this)},e.prototype.mount=function(t){if(this.isMounted)return this.node;var e="string"===typeof t?document.querySelector(t):t,n=this.render();return this.node=n,e.appendChild(n),n},e.prototype.render=function(){var t=this.stringify();return v(c(t)).childNodes[0]},e.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(e.prototype,n),e}(g),m={autoConfigure:!0,mountTo:"body",syncUrlsWithBaseTag:!1,listenLocationChangeEvent:!0,locationChangeEvent:"locationChange",locationChangeAngularEmitter:!1,usagesToUpdate:"use[*|href]",moveGradientsOutsideSymbol:!1},b=function(t){return Array.prototype.slice.call(t,0)},_={isChrome:function(){return/chrome/i.test(navigator.userAgent)},isFirefox:function(){return/firefox/i.test(navigator.userAgent)},isIE:function(){return/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)},isEdge:function(){return/edge/i.test(navigator.userAgent)}},x=function(t,e){var n=document.createEvent("CustomEvent");n.initCustomEvent(t,!1,!1,e),window.dispatchEvent(n)},w=function(t){var e=[];return b(t.querySelectorAll("style")).forEach((function(t){t.textContent+="",e.push(t)})),e},S=function(t){return(t||window.location.href).split("#")[0]},O=function(t){angular.module("ng").run(["$rootScope",function(e){e.$on("$locationChangeSuccess",(function(e,n,r){x(t,{oldUrl:r,newUrl:n})}))}])},C="linearGradient, radialGradient, pattern, mask, clipPath",k=function(t,e){return void 0===e&&(e=C),b(t.querySelectorAll("symbol")).forEach((function(t){b(t.querySelectorAll(e)).forEach((function(e){t.parentNode.insertBefore(e,t)}))})),t};function A(t,e){var n=b(t).reduce((function(t,n){if(!n.attributes)return t;var r=b(n.attributes),i=e?r.filter(e):r;return t.concat(i)}),[]);return n}var M=i.xlink.uri,T="xlink:href",I=/[{}|\\\^\[\]`"<>]/g;function E(t){return t.replace(I,(function(t){return"%"+t[0].charCodeAt(0).toString(16).toUpperCase()}))}function P(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function j(t,e,n){return b(t).forEach((function(t){var r=t.getAttribute(T);if(r&&0===r.indexOf(e)){var i=r.replace(e,n);t.setAttributeNS(M,T,i)}})),t}var L,D=["clipPath","colorProfile","src","cursor","fill","filter","marker","markerStart","markerMid","markerEnd","mask","stroke","style"],R=D.map((function(t){return"["+t+"]"})).join(","),N=function(t,e,n,r){var i=E(n),o=E(r),a=t.querySelectorAll(R),s=A(a,(function(t){var e=t.localName,n=t.value;return-1!==D.indexOf(e)&&-1!==n.indexOf("url("+i)}));s.forEach((function(t){return t.value=t.value.replace(new RegExp(P(i),"g"),o)})),j(e,i,o)},B={MOUNT:"mount",SYMBOL_MOUNT:"symbol_mount"},F=function(t){function e(e){var i=this;void 0===e&&(e={}),t.call(this,n(m,e));var o=r();this._emitter=o,this.node=null;var a=this,s=a.config;if(s.autoConfigure&&this._autoConfigure(e),s.syncUrlsWithBaseTag){var l=document.getElementsByTagName("base")[0].getAttribute("href");o.on(B.MOUNT,(function(){return i.updateUrls("#",l)}))}var u=this._handleLocationChange.bind(this);this._handleLocationChange=u,s.listenLocationChangeEvent&&window.addEventListener(s.locationChangeEvent,u),s.locationChangeAngularEmitter&&O(s.locationChangeEvent),o.on(B.MOUNT,(function(t){s.moveGradientsOutsideSymbol&&k(t)})),o.on(B.SYMBOL_MOUNT,(function(t){s.moveGradientsOutsideSymbol&&k(t.parentNode),(_.isIE()||_.isEdge())&&w(t)}))}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var i={isMounted:{}};return i.isMounted.get=function(){return!!this.node},e.prototype._autoConfigure=function(t){var e=this,n=e.config;"undefined"===typeof t.syncUrlsWithBaseTag&&(n.syncUrlsWithBaseTag="undefined"!==typeof document.getElementsByTagName("base")[0]),"undefined"===typeof t.locationChangeAngularEmitter&&(n.locationChangeAngularEmitter="undefined"!==typeof window.angular),"undefined"===typeof t.moveGradientsOutsideSymbol&&(n.moveGradientsOutsideSymbol=_.isFirefox())},e.prototype._handleLocationChange=function(t){var e=t.detail,n=e.oldUrl,r=e.newUrl;this.updateUrls(n,r)},e.prototype.add=function(e){var n=this,r=t.prototype.add.call(this,e);return this.isMounted&&r&&(e.mount(n.node),this._emitter.emit(B.SYMBOL_MOUNT,e.node)),r},e.prototype.attach=function(t){var e=this,n=this;if(n.isMounted)return n.node;var r="string"===typeof t?document.querySelector(t):t;return n.node=r,this.symbols.forEach((function(t){t.mount(n.node),e._emitter.emit(B.SYMBOL_MOUNT,t.node)})),b(r.querySelectorAll("symbol")).forEach((function(t){var e=y.createFromExistingNode(t);e.node=t,n.add(e)})),this._emitter.emit(B.MOUNT,r),r},e.prototype.destroy=function(){var t=this,e=t.config,n=t.symbols,r=t._emitter;n.forEach((function(t){return t.destroy()})),r.off("*"),window.removeEventListener(e.locationChangeEvent,this._handleLocationChange),this.isMounted&&this.unmount()},e.prototype.mount=function(t,e){void 0===t&&(t=this.config.mountTo),void 0===e&&(e=!1);var n=this;if(n.isMounted)return n.node;var r="string"===typeof t?document.querySelector(t):t,i=n.render();return this.node=i,e&&r.childNodes[0]?r.insertBefore(i,r.childNodes[0]):r.appendChild(i),this._emitter.emit(B.MOUNT,i),i},e.prototype.render=function(){return v(this.stringify())},e.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},e.prototype.updateUrls=function(t,e){if(!this.isMounted)return!1;var n=document.querySelectorAll(this.config.usagesToUpdate);return N(this.node,n,S(t)+"#",S(e)+"#"),!0},Object.defineProperties(e.prototype,i),e}(p),z=t((function(t){
|
||
/*!
|
||
* domready (c) Dustin Diaz 2014 - License MIT
|
||
*/
|
||
!function(e,n){t.exports=n()}(0,(function(){var t,e=[],n=document,r=n.documentElement.doScroll,i="DOMContentLoaded",o=(r?/^loaded|^c/:/^loaded|^i|^c/).test(n.readyState);return o||n.addEventListener(i,t=function(){n.removeEventListener(i,t),o=1;while(t=e.shift())t()}),function(t){o?setTimeout(t,0):e.push(t)}}))})),V="__SVG_SPRITE_NODE__",q="__SVG_SPRITE__",G=!!window[q];G?L=window[q]:(L=new F({attrs:{id:V,"aria-hidden":"true"}}),window[q]=L);var H=function(){var t=document.getElementById(V);t?L.attach(t):L.mount(document.body,!0)};document.body?H():z(H);var W=L;return W}))}).call(this,n("c8ba"))},"21a6":function(t,e,n){(function(n){var r,i,o;(function(n,a){i=[],r=a,o="function"===typeof r?r.apply(e,i):r,void 0===o||(t.exports=o)})(0,(function(){"use strict";function e(t,e){return"undefined"==typeof e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}function r(t,e,n){var r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){l(r.response,e,n)},r.onerror=function(){console.error("could not download file")},r.send()}function i(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function o(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(r){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var a="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n&&n.global===n?n:void 0,s=a.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=a.saveAs||("object"!=typeof window||window!==a?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(t,e,n){var s=a.URL||a.webkitURL,l=document.createElement("a");e=e||t.name||"download",l.download=e,l.rel="noopener","string"==typeof t?(l.href=t,l.origin===location.origin?o(l):i(l.href)?r(t,e,n):o(l,l.target="_blank")):(l.href=s.createObjectURL(t),setTimeout((function(){s.revokeObjectURL(l.href)}),4e4),setTimeout((function(){o(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,n,a){if(n=n||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(e(t,a),n);else if(i(t))r(t,n,a);else{var s=document.createElement("a");s.href=t,s.target="_blank",setTimeout((function(){o(s)}))}}:function(t,e,n,i){if(i=i||open("","_blank"),i&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof t)return r(t,e,n);var o="application/octet-stream"===t.type,l=/constructor/i.test(a.HTMLElement)||a.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||o&&l||s)&&"undefined"!=typeof FileReader){var c=new FileReader;c.onloadend=function(){var t=c.result;t=u?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=t:location=t,i=null},c.readAsDataURL(t)}else{var h=a.URL||a.webkitURL,f=h.createObjectURL(t);i?i.location=f:location.href=f,i=null,setTimeout((function(){h.revokeObjectURL(f)}),4e4)}});a.saveAs=l.saveAs=l,t.exports=l}))}).call(this,n("c8ba"))},"222a":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.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};e.pieConfig=r},2236:function(t,e,n){var r=n("5a43");function i(t){if(Array.isArray(t))return r(t)}t.exports=i,t.exports.__esModule=!0,t.exports["default"]=t.exports},2266:function(t,e,n){var r=n("0366"),i=n("c65b"),o=n("825a"),a=n("0d51"),s=n("e95a"),l=n("07fa"),u=n("3a9b"),c=n("9a1f"),h=n("35a1"),f=n("2a62"),d=TypeError,p=function(t,e){this.stopped=t,this.result=e},g=p.prototype;t.exports=function(t,e,n){var v,y,m,b,_,x,w,S=n&&n.that,O=!(!n||!n.AS_ENTRIES),C=!(!n||!n.IS_RECORD),k=!(!n||!n.IS_ITERATOR),A=!(!n||!n.INTERRUPTED),M=r(e,S),T=function(t){return v&&f(v,"normal",t),new p(!0,t)},I=function(t){return O?(o(t),A?M(t[0],t[1],T):M(t[0],t[1])):A?M(t,T):M(t)};if(C)v=t.iterator;else if(k)v=t;else{if(y=h(t),!y)throw d(a(t)+" is not iterable");if(s(y)){for(m=0,b=l(t);b>m;m++)if(_=I(t[m]),_&&u(g,_))return _;return new p(!1)}v=c(t,y)}x=C?t.next:v.next;while(!(w=i(x,v)).done){try{_=I(w.value)}catch(E){f(v,"throw",E)}if("object"==typeof _&&_&&u(g,_))return _}return new p(!1)}},"22d1":function(t,e,n){"use strict";var r=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),i=function(){function t(){this.browser=new r,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!==typeof window}return t}(),o=new i;function a(t,e){var n=e.browser,r=t.match(/Firefox\/([\d.]+)/),i=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),a&&(n.weChat=!0),e.svgSupported="undefined"!==typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!==typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}"object"===typeof wx&&"function"===typeof wx.getSystemInfoSync?(o.wxa=!0,o.touchEventsSupported=!0):"undefined"===typeof document&&"undefined"!==typeof self?o.worker=!0:"undefined"===typeof navigator?(o.node=!0,o.svgSupported=!0):a(navigator.userAgent,o),e["a"]=o},"23cb":function(t,e,n){var r=n("5926"),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},"23dc":function(t,e,n){var r=n("d44e");r(Math,"Math",!0)},"23e7":function(t,e,n){var r=n("da84"),i=n("06cf").f,o=n("9112"),a=n("cb2d"),s=n("6374"),l=n("e893"),u=n("94ca");t.exports=function(t,e){var n,c,h,f,d,p,g=t.target,v=t.global,y=t.stat;if(c=v?r:y?r[g]||s(g,{}):(r[g]||{}).prototype,c)for(h in e){if(d=e[h],t.dontCallGetSet?(p=i(c,h),f=p&&p.value):f=c[h],n=u(v?h:g+(y?".":"#")+h,t.forced),!n&&void 0!==f){if(typeof d==typeof f)continue;l(d,f)}(t.sham||f&&f.sham)&&o(d,"sham",!0),a(c,h,d,t)}}},"241c":function(t,e,n){var r=n("ca84"),i=n("7839"),o=i.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},2444:function(t,e,n){"use strict";(function(e){var r=n("c532"),i=n("c8af"),o=n("387f"),a={"Content-Type":"application/x-www-form-urlencoded"};function s(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function l(){var t;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof e&&"[object process]"===Object.prototype.toString.call(e))&&(t=n("b50d")),t}function u(t,e,n){if(r.isString(t))try{return(e||JSON.parse)(t),r.trim(t)}catch(i){if("SyntaxError"!==i.name)throw i}return(n||JSON.stringify)(t)}var c={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:l(),transformRequest:[function(t,e){return i(e,"Accept"),i(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(s(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)||e&&"application/json"===e["Content-Type"]?(s(e,"application/json"),u(t)):t}],transformResponse:[function(t){var e=this.transitional||c.transitional,n=e&&e.silentJSONParsing,i=e&&e.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||i&&r.isString(t)&&t.length)try{return JSON.parse(t)}catch(s){if(a){if("SyntaxError"===s.name)throw o(s,this,"E_JSON_PARSE");throw s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(t){c.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){c.headers[t]=r.merge(a)})),t.exports=c}).call(this,n("4362"))},2527:function(t,e){t.exports=function(){throw new Error("Readable.from is not available in the browser")}},"252f":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.line=v;var i=r(n("7037")),o=r(n("278c")),a=r(n("448a")),s=r(n("9523")),l=n("18ad"),u=n("9d85"),c=r(n("050c")),h=n("becb");function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){(0,s["default"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var p=c["default"].polylineToBezierCurve,g=c["default"].getBezierCurveLength;function v(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.xAxis,r=e.yAxis,i=e.series,o=[];n&&r&&i&&(o=(0,h.initNeedSeries)(i,u.lineConfig,"line"),o=y(o,t)),(0,l.doUpdate)({chart:t,series:o,key:"lineArea",getGraphConfig:w,getStartGraphConfig:A,beforeUpdate:M,beforeChange:T}),(0,l.doUpdate)({chart:t,series:o,key:"line",getGraphConfig:I,getStartGraphConfig:L,beforeUpdate:M,beforeChange:T}),(0,l.doUpdate)({chart:t,series:o,key:"linePoint",getGraphConfig:D,getStartGraphConfig:B}),(0,l.doUpdate)({chart:t,series:o,key:"lineLabel",getGraphConfig:F})}function y(t,e){var n=e.axisData;return t.map((function(e){var r=(0,h.mergeSameStackData)(e,t);r=m(e,r);var i=b(e,n),o=_(r,i),a=x(i);return d(d({},e),{},{linePosition:o.filter((function(t){return t})),lineFillBottomPos:a})}))}function m(t,e){var n=t.data;return e.map((function(t,e){return"number"===typeof n[e]?t:null}))}function b(t,e){var n=t.xAxisIndex,r=t.yAxisIndex,i=e.find((function(t){var e=t.axis,r=t.index;return"x"===e&&r===n})),o=e.find((function(t){var e=t.axis,n=t.index;return"y"===e&&n===r}));return[i,o]}function _(t,e){var n=e.findIndex((function(t){var e=t.data;return"value"===e})),r=e[n],i=e[1-n],o=r.linePosition,a=r.axis,s=i.tickPosition,l=s.length,u="x"===a?0:1,c=o[0][u],h=o[1][u],f=h-c,d=r.maxValue,p=r.minValue,g=d-p,v=new Array(l).fill(0).map((function(e,n){var r=t[n];if("number"!==typeof r)return null;var i=(r-p)/g;return 0===g&&(i=0),i*f+c}));return v.map((function(t,e){if(e>=l||"number"!==typeof t)return null;var n=[t,s[e][1-u]];return 0===u||n.reverse(),n}))}function x(t){var e=t.find((function(t){var e=t.data;return"value"===e})),n=e.axis,r=e.linePosition,i=e.minValue,o=e.maxValue,a="x"===n?0:1,s=r[0][a];if(i<0&&o>0){var l=o-i,u=Math.abs(r[0][a]-r[1][a]),c=Math.abs(i)/l*u;"y"===n&&(c*=-1),s+=c}return{changeIndex:a,changeValue:s}}function w(t){var e=t.animationCurve,n=t.animationFrame,r=t.lineFillBottomPos,i=t.rLevel;return[{name:E(t),index:i,animationCurve:e,animationFrame:n,visible:t.lineArea.show,lineFillBottomPos:r,shape:S(t),style:O(t),drawed:k}]}function S(t){var e=t.linePosition;return{points:e}}function O(t){var e=t.lineArea,n=t.color,r=e.gradient,i=e.style,o=[i.fill||n],a=(0,h.deepMerge)(o,r);1===a.length&&a.push(a[0]);var s=C(t);return i=d(d({},i),{},{stroke:"rgba(0, 0, 0, 0)"}),(0,h.deepMerge)({gradientColor:a,gradientParams:s,gradientType:"linear",gradientWith:"fill"},i)}function C(t){var e=t.lineFillBottomPos,n=t.linePosition,r=e.changeIndex,i=e.changeValue,o=n.map((function(t){return t[r]})),s=Math.max.apply(Math,(0,a["default"])(o)),l=Math.min.apply(Math,(0,a["default"])(o)),u=s;return 1===r&&(u=l),1===r?[0,u,0,i]:[u,0,i,0]}function k(t,e){var n=t.lineFillBottomPos,r=t.shape,i=e.ctx,o=r.points,s=n.changeIndex,l=n.changeValue,u=(0,a["default"])(o[o.length-1]),c=(0,a["default"])(o[0]);u[s]=l,c[s]=l,i.lineTo.apply(i,(0,a["default"])(u)),i.lineTo.apply(i,(0,a["default"])(c)),i.closePath(),i.fill()}function A(t){var e=w(t)[0],n=d({},e.style);return n.opacity=0,e.style=n,[e]}function M(t,e,n,r){var i=t[n];if(i){var o=E(e),a=r.chart.render,s=i[0].name,l=o!==s;l&&(i.forEach((function(t){return a.delGraph(t)})),t[n]=null)}}function T(t,e){var n=e.shape.points,r=t.shape.points,i=r.length,o=n.length;if(o>i){var s=r.slice(-1)[0],l=new Array(o-i).fill(0).map((function(t){return(0,a["default"])(s)}));r.push.apply(r,(0,a["default"])(l))}else o<i&&r.splice(o)}function I(t){var e=t.animationCurve,n=t.animationFrame,r=t.rLevel;return[{name:E(t),index:r+1,animationCurve:e,animationFrame:n,shape:S(t),style:P(t)}]}function E(t){var e=t.smooth;return e?"smoothline":"polyline"}function P(t){var e=t.lineStyle,n=t.color,r=t.smooth,i=t.linePosition,o=j(i,r);return(0,h.deepMerge)({stroke:n,lineDash:[o,0]},e)}function j(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return(0,h.getPolylineLength)(t);var n=p(t);return g(n)}function L(t){var e=t.lineStyle.lineDash,n=I(t)[0],r=n.style.lineDash;return r=e?[0,0]:(0,a["default"])(r).reverse(),n.style.lineDash=r,[n]}function D(t){var e=t.animationCurve,n=t.animationFrame,r=t.rLevel,i=R(t),o=N(t);return i.map((function(i){return{name:"circle",index:r+2,visible:t.linePoint.show,animationCurve:e,animationFrame:n,shape:i,style:o}}))}function R(t){var e=t.linePosition,n=t.linePoint.radius;return e.map((function(t){var e=(0,o["default"])(t,2),r=e[0],i=e[1];return{r:n,rx:r,ry:i}}))}function N(t){var e=t.color,n=t.linePoint.style;return(0,h.deepMerge)({stroke:e},n)}function B(t){var e=D(t);return e.forEach((function(t){t.shape.r=.1})),e}function F(t){var e=t.animationCurve,n=t.animationFrame,r=t.rLevel,i=z(t),o=W(t);return i.map((function(i,a){return{name:"text",index:r+3,visible:t.label.show,animationCurve:e,animationFrame:n,shape:i,style:o}}))}function z(t){var e=H(t),n=V(t);return e.map((function(t,e){return{content:t,position:n[e]}}))}function V(t){var e=t.linePosition,n=t.lineFillBottomPos,r=t.label,i=r.position,o=r.offset,s=n.changeIndex,l=n.changeValue;return e.map((function(t){if("bottom"===i&&(t=(0,a["default"])(t),t[s]=l),"center"===i){var e=(0,a["default"])(t);e[s]=l,t=G(t,e)}return q(t,o)}))}function q(t,e){var n=(0,o["default"])(t,2),r=n[0],i=n[1],a=(0,o["default"])(e,2),s=a[0],l=a[1];return[r+s,i+l]}function G(t,e){var n=(0,o["default"])(t,2),r=n[0],i=n[1],a=(0,o["default"])(e,2),s=a[0],l=a[1];return[(r+s)/2,(i+l)/2]}function H(t){var e=t.data,n=t.label.formatter;if(e=e.filter((function(t){return"number"===typeof t})).map((function(t){return t.toString()})),!n)return e;var r=(0,i["default"])(n);return"string"===r?e.map((function(t){return n.replace("{value}",t)})):"function"===r?e.map((function(t,e){return n({value:t,index:e})})):e}function W(t){var e=t.color,n=t.label.style;return(0,h.deepMerge)({fill:e},n)}},2532:function(t,e,n){"use strict";var r=n("23e7"),i=n("e330"),o=n("5a34"),a=n("1d80"),s=n("577e"),l=n("ab13"),u=i("".indexOf);r({target:"String",proto:!0,forced:!l("includes")},{includes:function(t){return!!~u(s(a(this)),s(o(t)),arguments.length>1?arguments[1]:void 0)}})},2554:function(t,e,n){"use strict";var r=function(t){return i(t)&&!o(t)};function i(t){return!!t&&"object"===typeof t}function o(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||l(t)}var a="function"===typeof Symbol&&Symbol.for,s=a?Symbol.for("react.element"):60103;function l(t){return t.$$typeof===s}function u(t){return Array.isArray(t)?[]:{}}function c(t,e){return!1!==e.clone&&e.isMergeableObject(t)?m(u(t),t,e):t}function h(t,e,n){return t.concat(e).map((function(t){return c(t,n)}))}function f(t,e){if(!e.customMerge)return m;var n=e.customMerge(t);return"function"===typeof n?n:m}function d(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return t.propertyIsEnumerable(e)})):[]}function p(t){return Object.keys(t).concat(d(t))}function g(t,e){try{return e in t}catch(n){return!1}}function v(t,e){return g(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function y(t,e,n){var r={};return n.isMergeableObject(t)&&p(t).forEach((function(e){r[e]=c(t[e],n)})),p(e).forEach((function(i){v(t,i)||(g(t,i)&&n.isMergeableObject(e[i])?r[i]=f(i,n)(t[i],e[i],n):r[i]=c(e[i],n))})),r}function m(t,e,n){n=n||{},n.arrayMerge=n.arrayMerge||h,n.isMergeableObject=n.isMergeableObject||r,n.cloneUnlessOtherwiseSpecified=c;var i=Array.isArray(e),o=Array.isArray(t),a=i===o;return a?i?n.arrayMerge(t,e,n):y(t,e,n):c(e,n)}m.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,n){return m(t,n,e)}),{})};var b=m;t.exports=b},"25f0":function(t,e,n){"use strict";var r=n("5e77").PROPER,i=n("cb2d"),o=n("825a"),a=n("577e"),s=n("d039"),l=n("90d8"),u="toString",c=RegExp.prototype,h=c[u],f=s((function(){return"/a/b"!=h.call({source:"a",flags:"b"})})),d=r&&h.name!=u;(f||d)&&i(RegExp.prototype,u,(function(){var t=o(this),e=a(t.source),n=a(l(t));return"/"+e+"/"+n}),{unsafe:!0})},2626:function(t,e,n){"use strict";var r=n("d066"),i=n("9bf2"),o=n("b622"),a=n("83ab"),s=o("species");t.exports=function(t){var e=r(t),n=i.f;a&&e&&!e[s]&&n(e,s,{configurable:!0,get:function(){return this}})}},"26dd":function(t,e,n){"use strict";var r=n("6f4f"),i=n("10db"),o=n("92f0"),a={};n("051b")(a,n("cc15")("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=r(a,{next:i(1,n)}),o(t,e+" Iterator")}},"278c":function(t,e,n){var r=n("c135"),i=n("9b42"),o=n("6613"),a=n("c240");function s(t,e){return r(t)||i(t,e)||o(t,e)||a()}t.exports=s,t.exports.__esModule=!0,t.exports["default"]=t.exports},2848:function(t,e,n){},2877:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var l,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:u}}n.d(e,"a",(function(){return r}))},2909:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n("6b75");function i(t){if(Array.isArray(t))return Object(r["a"])(t)}n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),n("a630");function o(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}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 l(t){return i(t)||o(t)||Object(a["a"])(t)||s()}},"29a2":function(t,e,n){"use strict";function r(t,e,n){var r=this;this._callback=t,this._args=n,this._interval=setInterval(t,e,this._args),this.reschedule=function(t){t||(t=r._interval),r._interval&&clearInterval(r._interval),r._interval=setInterval(r._callback,t,r._args)},this.clear=function(){r._interval&&(clearInterval(r._interval),r._interval=void 0)},this.destroy=function(){r._interval&&clearInterval(r._interval),r._callback=void 0,r._interval=void 0,r._args=void 0}}function i(){if("function"!==typeof arguments[0])throw new Error("callback needed");if("number"!==typeof arguments[1])throw new Error("interval needed");var t;if(arguments.length>0){t=new Array(arguments.length-2);for(var e=0;e<t.length;e++)t[e]=arguments[e+2]}return new r(arguments[0],arguments[1],t)}t.exports=i},"2a28":function(t,e,n){"use strict";t.exports=n("0050")()},"2a62":function(t,e,n){var r=n("c65b"),i=n("825a"),o=n("dc4a");t.exports=function(t,e,n){var a,s;i(t);try{if(a=o(t,"return"),!a){if("throw"===e)throw n;return n}a=r(a,t)}catch(l){s=!0,a=l}if("throw"===e)throw n;if(s)throw a;return i(a),n}},"2b0e":function(t,e,n){"use strict";n.r(e),function(t){
|
||
/*!
|
||
* Vue.js v2.6.12
|
||
* (c) 2014-2020 Evan You
|
||
* Released under the MIT License.
|
||
*/
|
||
var n=Object.freeze({});function r(t){return void 0===t||null===t}function i(t){return void 0!==t&&null!==t}function o(t){return!0===t}function a(t){return!1===t}function s(t){return"string"===typeof t||"number"===typeof t||"symbol"===typeof t||"boolean"===typeof t}function l(t){return null!==t&&"object"===typeof t}var u=Object.prototype.toString;function c(t){return"[object Object]"===u.call(t)}function h(t){return"[object RegExp]"===u.call(t)}function f(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function d(t){return i(t)&&"function"===typeof t.then&&"function"===typeof t.catch}function p(t){return null==t?"":Array.isArray(t)||c(t)&&t.toString===u?JSON.stringify(t,null,2):String(t)}function g(t){var e=parseFloat(t);return isNaN(e)?t:e}function v(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return e?function(t){return n[t.toLowerCase()]}:function(t){return n[t]}}v("slot,component",!0);var y=v("key,ref,slot,slot-scope,is");function m(t,e){if(t.length){var n=t.indexOf(e);if(n>-1)return t.splice(n,1)}}var b=Object.prototype.hasOwnProperty;function _(t,e){return b.call(t,e)}function x(t){var e=Object.create(null);return function(n){var r=e[n];return r||(e[n]=t(n))}}var w=/-(\w)/g,S=x((function(t){return t.replace(w,(function(t,e){return e?e.toUpperCase():""}))})),O=x((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),C=/\B([A-Z])/g,k=x((function(t){return t.replace(C,"-$1").toLowerCase()}));function A(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function M(t,e){return t.bind(e)}var T=Function.prototype.bind?M:A;function I(t,e){e=e||0;var n=t.length-e,r=new Array(n);while(n--)r[n]=t[n+e];return r}function E(t,e){for(var n in e)t[n]=e[n];return t}function P(t){for(var e={},n=0;n<t.length;n++)t[n]&&E(e,t[n]);return e}function j(t,e,n){}var L=function(t,e,n){return!1},D=function(t){return t};function R(t,e){if(t===e)return!0;var n=l(t),r=l(e);if(!n||!r)return!n&&!r&&String(t)===String(e);try{var i=Array.isArray(t),o=Array.isArray(e);if(i&&o)return t.length===e.length&&t.every((function(t,n){return R(t,e[n])}));if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(i||o)return!1;var a=Object.keys(t),s=Object.keys(e);return a.length===s.length&&a.every((function(n){return R(t[n],e[n])}))}catch(u){return!1}}function N(t,e){for(var n=0;n<t.length;n++)if(R(t[n],e))return n;return-1}function B(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}var F="data-server-rendered",z=["component","directive","filter"],V=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],q={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:j,parsePlatformTagName:D,mustUseProp:L,async:!0,_lifecycleHooks:V},G=/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(t){var e=(t+"").charCodeAt(0);return 36===e||95===e}function W(t,e,n,r){Object.defineProperty(t,e,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var U=new RegExp("[^"+G.source+".$_\\d]");function $(t){if(!U.test(t)){var e=t.split(".");return function(t){for(var n=0;n<e.length;n++){if(!t)return;t=t[e[n]]}return t}}}var Y,X="__proto__"in{},K="undefined"!==typeof window,Z="undefined"!==typeof WXEnvironment&&!!WXEnvironment.platform,Q=Z&&WXEnvironment.platform.toLowerCase(),J=K&&window.navigator.userAgent.toLowerCase(),tt=J&&/msie|trident/.test(J),et=J&&J.indexOf("msie 9.0")>0,nt=J&&J.indexOf("edge/")>0,rt=(J&&J.indexOf("android"),J&&/iphone|ipad|ipod|ios/.test(J)||"ios"===Q),it=(J&&/chrome\/\d+/.test(J),J&&/phantomjs/.test(J),J&&J.match(/firefox\/(\d+)/)),ot={}.watch,at=!1;if(K)try{var st={};Object.defineProperty(st,"passive",{get:function(){at=!0}}),window.addEventListener("test-passive",null,st)}catch(Sa){}var lt=function(){return void 0===Y&&(Y=!K&&!Z&&"undefined"!==typeof t&&(t["process"]&&"server"===t["process"].env.VUE_ENV)),Y},ut=K&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ct(t){return"function"===typeof t&&/native code/.test(t.toString())}var ht,ft="undefined"!==typeof Symbol&&ct(Symbol)&&"undefined"!==typeof Reflect&&ct(Reflect.ownKeys);ht="undefined"!==typeof Set&&ct(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var dt=j,pt=0,gt=function(){this.id=pt++,this.subs=[]};gt.prototype.addSub=function(t){this.subs.push(t)},gt.prototype.removeSub=function(t){m(this.subs,t)},gt.prototype.depend=function(){gt.target&>.target.addDep(this)},gt.prototype.notify=function(){var t=this.subs.slice();for(var e=0,n=t.length;e<n;e++)t[e].update()},gt.target=null;var vt=[];function yt(t){vt.push(t),gt.target=t}function mt(){vt.pop(),gt.target=vt[vt.length-1]}var bt=function(t,e,n,r,i,o,a,s){this.tag=t,this.data=e,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=e&&e.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},_t={child:{configurable:!0}};_t.child.get=function(){return this.componentInstance},Object.defineProperties(bt.prototype,_t);var xt=function(t){void 0===t&&(t="");var e=new bt;return e.text=t,e.isComment=!0,e};function wt(t){return new bt(void 0,void 0,void 0,String(t))}function St(t){var e=new bt(t.tag,t.data,t.children&&t.children.slice(),t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.fnContext=t.fnContext,e.fnOptions=t.fnOptions,e.fnScopeId=t.fnScopeId,e.asyncMeta=t.asyncMeta,e.isCloned=!0,e}var Ot=Array.prototype,Ct=Object.create(Ot),kt=["push","pop","shift","unshift","splice","sort","reverse"];kt.forEach((function(t){var e=Ot[t];W(Ct,t,(function(){var n=[],r=arguments.length;while(r--)n[r]=arguments[r];var i,o=e.apply(this,n),a=this.__ob__;switch(t){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2);break}return i&&a.observeArray(i),a.dep.notify(),o}))}));var At=Object.getOwnPropertyNames(Ct),Mt=!0;function Tt(t){Mt=t}var It=function(t){this.value=t,this.dep=new gt,this.vmCount=0,W(t,"__ob__",this),Array.isArray(t)?(X?Et(t,Ct):Pt(t,Ct,At),this.observeArray(t)):this.walk(t)};function Et(t,e){t.__proto__=e}function Pt(t,e,n){for(var r=0,i=n.length;r<i;r++){var o=n[r];W(t,o,e[o])}}function jt(t,e){var n;if(l(t)&&!(t instanceof bt))return _(t,"__ob__")&&t.__ob__ instanceof It?n=t.__ob__:Mt&&!lt()&&(Array.isArray(t)||c(t))&&Object.isExtensible(t)&&!t._isVue&&(n=new It(t)),e&&n&&n.vmCount++,n}function Lt(t,e,n,r,i){var o=new gt,a=Object.getOwnPropertyDescriptor(t,e);if(!a||!1!==a.configurable){var s=a&&a.get,l=a&&a.set;s&&!l||2!==arguments.length||(n=t[e]);var u=!i&&jt(n);Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=s?s.call(t):n;return gt.target&&(o.depend(),u&&(u.dep.depend(),Array.isArray(e)&&Nt(e))),e},set:function(e){var r=s?s.call(t):n;e===r||e!==e&&r!==r||s&&!l||(l?l.call(t,e):n=e,u=!i&&jt(e),o.notify())}})}}function Dt(t,e,n){if(Array.isArray(t)&&f(e))return t.length=Math.max(t.length,e),t.splice(e,1,n),n;if(e in t&&!(e in Object.prototype))return t[e]=n,n;var r=t.__ob__;return t._isVue||r&&r.vmCount?n:r?(Lt(r.value,e,n),r.dep.notify(),n):(t[e]=n,n)}function Rt(t,e){if(Array.isArray(t)&&f(e))t.splice(e,1);else{var n=t.__ob__;t._isVue||n&&n.vmCount||_(t,e)&&(delete t[e],n&&n.dep.notify())}}function Nt(t){for(var e=void 0,n=0,r=t.length;n<r;n++)e=t[n],e&&e.__ob__&&e.__ob__.dep.depend(),Array.isArray(e)&&Nt(e)}It.prototype.walk=function(t){for(var e=Object.keys(t),n=0;n<e.length;n++)Lt(t,e[n])},It.prototype.observeArray=function(t){for(var e=0,n=t.length;e<n;e++)jt(t[e])};var Bt=q.optionMergeStrategies;function Ft(t,e){if(!e)return t;for(var n,r,i,o=ft?Reflect.ownKeys(e):Object.keys(e),a=0;a<o.length;a++)n=o[a],"__ob__"!==n&&(r=t[n],i=e[n],_(t,n)?r!==i&&c(r)&&c(i)&&Ft(r,i):Dt(t,n,i));return t}function zt(t,e,n){return n?function(){var r="function"===typeof e?e.call(n,n):e,i="function"===typeof t?t.call(n,n):t;return r?Ft(r,i):i}:e?t?function(){return Ft("function"===typeof e?e.call(this,this):e,"function"===typeof t?t.call(this,this):t)}:e:t}function Vt(t,e){var n=e?t?t.concat(e):Array.isArray(e)?e:[e]:t;return n?qt(n):n}function qt(t){for(var e=[],n=0;n<t.length;n++)-1===e.indexOf(t[n])&&e.push(t[n]);return e}function Gt(t,e,n,r){var i=Object.create(t||null);return e?E(i,e):i}Bt.data=function(t,e,n){return n?zt(t,e,n):e&&"function"!==typeof e?t:zt(t,e)},V.forEach((function(t){Bt[t]=Vt})),z.forEach((function(t){Bt[t+"s"]=Gt})),Bt.watch=function(t,e,n,r){if(t===ot&&(t=void 0),e===ot&&(e=void 0),!e)return Object.create(t||null);if(!t)return e;var i={};for(var o in E(i,t),e){var a=i[o],s=e[o];a&&!Array.isArray(a)&&(a=[a]),i[o]=a?a.concat(s):Array.isArray(s)?s:[s]}return i},Bt.props=Bt.methods=Bt.inject=Bt.computed=function(t,e,n,r){if(!t)return e;var i=Object.create(null);return E(i,t),e&&E(i,e),i},Bt.provide=zt;var Ht=function(t,e){return void 0===e?t:e};function Wt(t,e){var n=t.props;if(n){var r,i,o,a={};if(Array.isArray(n)){r=n.length;while(r--)i=n[r],"string"===typeof i&&(o=S(i),a[o]={type:null})}else if(c(n))for(var s in n)i=n[s],o=S(s),a[o]=c(i)?i:{type:i};else 0;t.props=a}}function Ut(t,e){var n=t.inject;if(n){var r=t.inject={};if(Array.isArray(n))for(var i=0;i<n.length;i++)r[n[i]]={from:n[i]};else if(c(n))for(var o in n){var a=n[o];r[o]=c(a)?E({from:o},a):{from:a}}else 0}}function $t(t){var e=t.directives;if(e)for(var n in e){var r=e[n];"function"===typeof r&&(e[n]={bind:r,update:r})}}function Yt(t,e,n){if("function"===typeof e&&(e=e.options),Wt(e,n),Ut(e,n),$t(e),!e._base&&(e.extends&&(t=Yt(t,e.extends,n)),e.mixins))for(var r=0,i=e.mixins.length;r<i;r++)t=Yt(t,e.mixins[r],n);var o,a={};for(o in t)s(o);for(o in e)_(t,o)||s(o);function s(r){var i=Bt[r]||Ht;a[r]=i(t[r],e[r],n,r)}return a}function Xt(t,e,n,r){if("string"===typeof n){var i=t[e];if(_(i,n))return i[n];var o=S(n);if(_(i,o))return i[o];var a=O(o);if(_(i,a))return i[a];var s=i[n]||i[o]||i[a];return s}}function Kt(t,e,n,r){var i=e[t],o=!_(n,t),a=n[t],s=te(Boolean,i.type);if(s>-1)if(o&&!_(i,"default"))a=!1;else if(""===a||a===k(t)){var l=te(String,i.type);(l<0||s<l)&&(a=!0)}if(void 0===a){a=Zt(r,i,t);var u=Mt;Tt(!0),jt(a),Tt(u)}return a}function Zt(t,e,n){if(_(e,"default")){var r=e.default;return t&&t.$options.propsData&&void 0===t.$options.propsData[n]&&void 0!==t._props[n]?t._props[n]:"function"===typeof r&&"Function"!==Qt(e.type)?r.call(t):r}}function Qt(t){var e=t&&t.toString().match(/^\s*function (\w+)/);return e?e[1]:""}function Jt(t,e){return Qt(t)===Qt(e)}function te(t,e){if(!Array.isArray(e))return Jt(e,t)?0:-1;for(var n=0,r=e.length;n<r;n++)if(Jt(e[n],t))return n;return-1}function ee(t,e,n){yt();try{if(e){var r=e;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,t,e,n);if(a)return}catch(Sa){re(Sa,r,"errorCaptured hook")}}}re(t,e,n)}finally{mt()}}function ne(t,e,n,r,i){var o;try{o=n?t.apply(e,n):t.call(e),o&&!o._isVue&&d(o)&&!o._handled&&(o.catch((function(t){return ee(t,r,i+" (Promise/async)")})),o._handled=!0)}catch(Sa){ee(Sa,r,i)}return o}function re(t,e,n){if(q.errorHandler)try{return q.errorHandler.call(null,t,e,n)}catch(Sa){Sa!==t&&ie(Sa,null,"config.errorHandler")}ie(t,e,n)}function ie(t,e,n){if(!K&&!Z||"undefined"===typeof console)throw t;console.error(t)}var oe,ae=!1,se=[],le=!1;function ue(){le=!1;var t=se.slice(0);se.length=0;for(var e=0;e<t.length;e++)t[e]()}if("undefined"!==typeof Promise&&ct(Promise)){var ce=Promise.resolve();oe=function(){ce.then(ue),rt&&setTimeout(j)},ae=!0}else if(tt||"undefined"===typeof MutationObserver||!ct(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())oe="undefined"!==typeof setImmediate&&ct(setImmediate)?function(){setImmediate(ue)}:function(){setTimeout(ue,0)};else{var he=1,fe=new MutationObserver(ue),de=document.createTextNode(String(he));fe.observe(de,{characterData:!0}),oe=function(){he=(he+1)%2,de.data=String(he)},ae=!0}function pe(t,e){var n;if(se.push((function(){if(t)try{t.call(e)}catch(Sa){ee(Sa,e,"nextTick")}else n&&n(e)})),le||(le=!0,oe()),!t&&"undefined"!==typeof Promise)return new Promise((function(t){n=t}))}var ge=new ht;function ve(t){ye(t,ge),ge.clear()}function ye(t,e){var n,r,i=Array.isArray(t);if(!(!i&&!l(t)||Object.isFrozen(t)||t instanceof bt)){if(t.__ob__){var o=t.__ob__.dep.id;if(e.has(o))return;e.add(o)}if(i){n=t.length;while(n--)ye(t[n],e)}else{r=Object.keys(t),n=r.length;while(n--)ye(t[r[n]],e)}}}var me=x((function(t){var e="&"===t.charAt(0);t=e?t.slice(1):t;var n="~"===t.charAt(0);t=n?t.slice(1):t;var r="!"===t.charAt(0);return t=r?t.slice(1):t,{name:t,once:n,capture:r,passive:e}}));function be(t,e){function n(){var t=arguments,r=n.fns;if(!Array.isArray(r))return ne(r,null,arguments,e,"v-on handler");for(var i=r.slice(),o=0;o<i.length;o++)ne(i[o],null,t,e,"v-on handler")}return n.fns=t,n}function _e(t,e,n,i,a,s){var l,u,c,h;for(l in t)u=t[l],c=e[l],h=me(l),r(u)||(r(c)?(r(u.fns)&&(u=t[l]=be(u,s)),o(h.once)&&(u=t[l]=a(h.name,u,h.capture)),n(h.name,u,h.capture,h.passive,h.params)):u!==c&&(c.fns=u,t[l]=c));for(l in e)r(t[l])&&(h=me(l),i(h.name,e[l],h.capture))}function xe(t,e,n){var a;t instanceof bt&&(t=t.data.hook||(t.data.hook={}));var s=t[e];function l(){n.apply(this,arguments),m(a.fns,l)}r(s)?a=be([l]):i(s.fns)&&o(s.merged)?(a=s,a.fns.push(l)):a=be([s,l]),a.merged=!0,t[e]=a}function we(t,e,n){var o=e.options.props;if(!r(o)){var a={},s=t.attrs,l=t.props;if(i(s)||i(l))for(var u in o){var c=k(u);Se(a,l,u,c,!0)||Se(a,s,u,c,!1)}return a}}function Se(t,e,n,r,o){if(i(e)){if(_(e,n))return t[n]=e[n],o||delete e[n],!0;if(_(e,r))return t[n]=e[r],o||delete e[r],!0}return!1}function Oe(t){for(var e=0;e<t.length;e++)if(Array.isArray(t[e]))return Array.prototype.concat.apply([],t);return t}function Ce(t){return s(t)?[wt(t)]:Array.isArray(t)?Ae(t):void 0}function ke(t){return i(t)&&i(t.text)&&a(t.isComment)}function Ae(t,e){var n,a,l,u,c=[];for(n=0;n<t.length;n++)a=t[n],r(a)||"boolean"===typeof a||(l=c.length-1,u=c[l],Array.isArray(a)?a.length>0&&(a=Ae(a,(e||"")+"_"+n),ke(a[0])&&ke(u)&&(c[l]=wt(u.text+a[0].text),a.shift()),c.push.apply(c,a)):s(a)?ke(u)?c[l]=wt(u.text+a):""!==a&&c.push(wt(a)):ke(a)&&ke(u)?c[l]=wt(u.text+a.text):(o(t._isVList)&&i(a.tag)&&r(a.key)&&i(e)&&(a.key="__vlist"+e+"_"+n+"__"),c.push(a)));return c}function Me(t){var e=t.$options.provide;e&&(t._provided="function"===typeof e?e.call(t):e)}function Te(t){var e=Ie(t.$options.inject,t);e&&(Tt(!1),Object.keys(e).forEach((function(n){Lt(t,n,e[n])})),Tt(!0))}function Ie(t,e){if(t){for(var n=Object.create(null),r=ft?Reflect.ownKeys(t):Object.keys(t),i=0;i<r.length;i++){var o=r[i];if("__ob__"!==o){var a=t[o].from,s=e;while(s){if(s._provided&&_(s._provided,a)){n[o]=s._provided[a];break}s=s.$parent}if(!s)if("default"in t[o]){var l=t[o].default;n[o]="function"===typeof l?l.call(e):l}else 0}}return n}}function Ee(t,e){if(!t||!t.length)return{};for(var n={},r=0,i=t.length;r<i;r++){var o=t[r],a=o.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,o.context!==e&&o.fnContext!==e||!a||null==a.slot)(n.default||(n.default=[])).push(o);else{var s=a.slot,l=n[s]||(n[s]=[]);"template"===o.tag?l.push.apply(l,o.children||[]):l.push(o)}}for(var u in n)n[u].every(Pe)&&delete n[u];return n}function Pe(t){return t.isComment&&!t.asyncFactory||" "===t.text}function je(t,e,r){var i,o=Object.keys(e).length>0,a=t?!!t.$stable:!o,s=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(a&&r&&r!==n&&s===r.$key&&!o&&!r.$hasNormal)return r;for(var l in i={},t)t[l]&&"$"!==l[0]&&(i[l]=Le(e,l,t[l]))}else i={};for(var u in e)u in i||(i[u]=De(e,u));return t&&Object.isExtensible(t)&&(t._normalized=i),W(i,"$stable",a),W(i,"$key",s),W(i,"$hasNormal",o),i}function Le(t,e,n){var r=function(){var t=arguments.length?n.apply(null,arguments):n({});return t=t&&"object"===typeof t&&!Array.isArray(t)?[t]:Ce(t),t&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:r,enumerable:!0,configurable:!0}),r}function De(t,e){return function(){return t[e]}}function Re(t,e){var n,r,o,a,s;if(Array.isArray(t)||"string"===typeof t)for(n=new Array(t.length),r=0,o=t.length;r<o;r++)n[r]=e(t[r],r);else if("number"===typeof t)for(n=new Array(t),r=0;r<t;r++)n[r]=e(r+1,r);else if(l(t))if(ft&&t[Symbol.iterator]){n=[];var u=t[Symbol.iterator](),c=u.next();while(!c.done)n.push(e(c.value,n.length)),c=u.next()}else for(a=Object.keys(t),n=new Array(a.length),r=0,o=a.length;r<o;r++)s=a[r],n[r]=e(t[s],s,r);return i(n)||(n=[]),n._isVList=!0,n}function Ne(t,e,n,r){var i,o=this.$scopedSlots[t];o?(n=n||{},r&&(n=E(E({},r),n)),i=o(n)||e):i=this.$slots[t]||e;var a=n&&n.slot;return a?this.$createElement("template",{slot:a},i):i}function Be(t){return Xt(this.$options,"filters",t,!0)||D}function Fe(t,e){return Array.isArray(t)?-1===t.indexOf(e):t!==e}function ze(t,e,n,r,i){var o=q.keyCodes[e]||n;return i&&r&&!q.keyCodes[e]?Fe(i,r):o?Fe(o,t):r?k(r)!==e:void 0}function Ve(t,e,n,r,i){if(n)if(l(n)){var o;Array.isArray(n)&&(n=P(n));var a=function(a){if("class"===a||"style"===a||y(a))o=t;else{var s=t.attrs&&t.attrs.type;o=r||q.mustUseProp(e,s,a)?t.domProps||(t.domProps={}):t.attrs||(t.attrs={})}var l=S(a),u=k(a);if(!(l in o)&&!(u in o)&&(o[a]=n[a],i)){var c=t.on||(t.on={});c["update:"+a]=function(t){n[a]=t}}};for(var s in n)a(s)}else;return t}function qe(t,e){var n=this._staticTrees||(this._staticTrees=[]),r=n[t];return r&&!e||(r=n[t]=this.$options.staticRenderFns[t].call(this._renderProxy,null,this),He(r,"__static__"+t,!1)),r}function Ge(t,e,n){return He(t,"__once__"+e+(n?"_"+n:""),!0),t}function He(t,e,n){if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]&&"string"!==typeof t[r]&&We(t[r],e+"_"+r,n);else We(t,e,n)}function We(t,e,n){t.isStatic=!0,t.key=e,t.isOnce=n}function Ue(t,e){if(e)if(c(e)){var n=t.on=t.on?E({},t.on):{};for(var r in e){var i=n[r],o=e[r];n[r]=i?[].concat(i,o):o}}else;return t}function $e(t,e,n,r){e=e||{$stable:!n};for(var i=0;i<t.length;i++){var o=t[i];Array.isArray(o)?$e(o,e,n):o&&(o.proxy&&(o.fn.proxy=!0),e[o.key]=o.fn)}return r&&(e.$key=r),e}function Ye(t,e){for(var n=0;n<e.length;n+=2){var r=e[n];"string"===typeof r&&r&&(t[e[n]]=e[n+1])}return t}function Xe(t,e){return"string"===typeof t?e+t:t}function Ke(t){t._o=Ge,t._n=g,t._s=p,t._l=Re,t._t=Ne,t._q=R,t._i=N,t._m=qe,t._f=Be,t._k=ze,t._b=Ve,t._v=wt,t._e=xt,t._u=$e,t._g=Ue,t._d=Ye,t._p=Xe}function Ze(t,e,r,i,a){var s,l=this,u=a.options;_(i,"_uid")?(s=Object.create(i),s._original=i):(s=i,i=i._original);var c=o(u._compiled),h=!c;this.data=t,this.props=e,this.children=r,this.parent=i,this.listeners=t.on||n,this.injections=Ie(u.inject,i),this.slots=function(){return l.$slots||je(t.scopedSlots,l.$slots=Ee(r,i)),l.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return je(t.scopedSlots,this.slots())}}),c&&(this.$options=u,this.$slots=this.slots(),this.$scopedSlots=je(t.scopedSlots,this.$slots)),u._scopeId?this._c=function(t,e,n,r){var o=hn(s,t,e,n,r,h);return o&&!Array.isArray(o)&&(o.fnScopeId=u._scopeId,o.fnContext=i),o}:this._c=function(t,e,n,r){return hn(s,t,e,n,r,h)}}function Qe(t,e,r,o,a){var s=t.options,l={},u=s.props;if(i(u))for(var c in u)l[c]=Kt(c,u,e||n);else i(r.attrs)&&tn(l,r.attrs),i(r.props)&&tn(l,r.props);var h=new Ze(r,l,a,o,t),f=s.render.call(null,h._c,h);if(f instanceof bt)return Je(f,r,h.parent,s,h);if(Array.isArray(f)){for(var d=Ce(f)||[],p=new Array(d.length),g=0;g<d.length;g++)p[g]=Je(d[g],r,h.parent,s,h);return p}}function Je(t,e,n,r,i){var o=St(t);return o.fnContext=n,o.fnOptions=r,e.slot&&((o.data||(o.data={})).slot=e.slot),o}function tn(t,e){for(var n in e)t[S(n)]=e[n]}Ke(Ze.prototype);var en={init:function(t,e){if(t.componentInstance&&!t.componentInstance._isDestroyed&&t.data.keepAlive){var n=t;en.prepatch(n,n)}else{var r=t.componentInstance=on(t,In);r.$mount(e?t.elm:void 0,e)}},prepatch:function(t,e){var n=e.componentOptions,r=e.componentInstance=t.componentInstance;Dn(r,n.propsData,n.listeners,e,n.children)},insert:function(t){var e=t.context,n=t.componentInstance;n._isMounted||(n._isMounted=!0,Fn(n,"mounted")),t.data.keepAlive&&(e._isMounted?Qn(n):Nn(n,!0))},destroy:function(t){var e=t.componentInstance;e._isDestroyed||(t.data.keepAlive?Bn(e,!0):e.$destroy())}},nn=Object.keys(en);function rn(t,e,n,a,s){if(!r(t)){var u=n.$options._base;if(l(t)&&(t=u.extend(t)),"function"===typeof t){var c;if(r(t.cid)&&(c=t,t=xn(c,u),void 0===t))return _n(c,e,n,a,s);e=e||{},xr(t),i(e.model)&&ln(t.options,e);var h=we(e,t,s);if(o(t.options.functional))return Qe(t,h,e,n,a);var f=e.on;if(e.on=e.nativeOn,o(t.options.abstract)){var d=e.slot;e={},d&&(e.slot=d)}an(e);var p=t.options.name||s,g=new bt("vue-component-"+t.cid+(p?"-"+p:""),e,void 0,void 0,void 0,n,{Ctor:t,propsData:h,listeners:f,tag:s,children:a},c);return g}}}function on(t,e){var n={_isComponent:!0,_parentVnode:t,parent:e},r=t.data.inlineTemplate;return i(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns),new t.componentOptions.Ctor(n)}function an(t){for(var e=t.hook||(t.hook={}),n=0;n<nn.length;n++){var r=nn[n],i=e[r],o=en[r];i===o||i&&i._merged||(e[r]=i?sn(o,i):o)}}function sn(t,e){var n=function(n,r){t(n,r),e(n,r)};return n._merged=!0,n}function ln(t,e){var n=t.model&&t.model.prop||"value",r=t.model&&t.model.event||"input";(e.attrs||(e.attrs={}))[n]=e.model.value;var o=e.on||(e.on={}),a=o[r],s=e.model.callback;i(a)?(Array.isArray(a)?-1===a.indexOf(s):a!==s)&&(o[r]=[s].concat(a)):o[r]=s}var un=1,cn=2;function hn(t,e,n,r,i,a){return(Array.isArray(n)||s(n))&&(i=r,r=n,n=void 0),o(a)&&(i=cn),fn(t,e,n,r,i)}function fn(t,e,n,r,o){if(i(n)&&i(n.__ob__))return xt();if(i(n)&&i(n.is)&&(e=n.is),!e)return xt();var a,s,l;(Array.isArray(r)&&"function"===typeof r[0]&&(n=n||{},n.scopedSlots={default:r[0]},r.length=0),o===cn?r=Ce(r):o===un&&(r=Oe(r)),"string"===typeof e)?(s=t.$vnode&&t.$vnode.ns||q.getTagNamespace(e),a=q.isReservedTag(e)?new bt(q.parsePlatformTagName(e),n,r,void 0,void 0,t):n&&n.pre||!i(l=Xt(t.$options,"components",e))?new bt(e,n,r,void 0,void 0,t):rn(l,n,t,r,e)):a=rn(e,n,t,r);return Array.isArray(a)?a:i(a)?(i(s)&&dn(a,s),i(n)&&pn(n),a):xt()}function dn(t,e,n){if(t.ns=e,"foreignObject"===t.tag&&(e=void 0,n=!0),i(t.children))for(var a=0,s=t.children.length;a<s;a++){var l=t.children[a];i(l.tag)&&(r(l.ns)||o(n)&&"svg"!==l.tag)&&dn(l,e,n)}}function pn(t){l(t.style)&&ve(t.style),l(t.class)&&ve(t.class)}function gn(t){t._vnode=null,t._staticTrees=null;var e=t.$options,r=t.$vnode=e._parentVnode,i=r&&r.context;t.$slots=Ee(e._renderChildren,i),t.$scopedSlots=n,t._c=function(e,n,r,i){return hn(t,e,n,r,i,!1)},t.$createElement=function(e,n,r,i){return hn(t,e,n,r,i,!0)};var o=r&&r.data;Lt(t,"$attrs",o&&o.attrs||n,null,!0),Lt(t,"$listeners",e._parentListeners||n,null,!0)}var vn,yn=null;function mn(t){Ke(t.prototype),t.prototype.$nextTick=function(t){return pe(t,this)},t.prototype._render=function(){var t,e=this,n=e.$options,r=n.render,i=n._parentVnode;i&&(e.$scopedSlots=je(i.data.scopedSlots,e.$slots,e.$scopedSlots)),e.$vnode=i;try{yn=e,t=r.call(e._renderProxy,e.$createElement)}catch(Sa){ee(Sa,e,"render"),t=e._vnode}finally{yn=null}return Array.isArray(t)&&1===t.length&&(t=t[0]),t instanceof bt||(t=xt()),t.parent=i,t}}function bn(t,e){return(t.__esModule||ft&&"Module"===t[Symbol.toStringTag])&&(t=t.default),l(t)?e.extend(t):t}function _n(t,e,n,r,i){var o=xt();return o.asyncFactory=t,o.asyncMeta={data:e,context:n,children:r,tag:i},o}function xn(t,e){if(o(t.error)&&i(t.errorComp))return t.errorComp;if(i(t.resolved))return t.resolved;var n=yn;if(n&&i(t.owners)&&-1===t.owners.indexOf(n)&&t.owners.push(n),o(t.loading)&&i(t.loadingComp))return t.loadingComp;if(n&&!i(t.owners)){var a=t.owners=[n],s=!0,u=null,c=null;n.$on("hook:destroyed",(function(){return m(a,n)}));var h=function(t){for(var e=0,n=a.length;e<n;e++)a[e].$forceUpdate();t&&(a.length=0,null!==u&&(clearTimeout(u),u=null),null!==c&&(clearTimeout(c),c=null))},f=B((function(n){t.resolved=bn(n,e),s?a.length=0:h(!0)})),p=B((function(e){i(t.errorComp)&&(t.error=!0,h(!0))})),g=t(f,p);return l(g)&&(d(g)?r(t.resolved)&&g.then(f,p):d(g.component)&&(g.component.then(f,p),i(g.error)&&(t.errorComp=bn(g.error,e)),i(g.loading)&&(t.loadingComp=bn(g.loading,e),0===g.delay?t.loading=!0:u=setTimeout((function(){u=null,r(t.resolved)&&r(t.error)&&(t.loading=!0,h(!1))}),g.delay||200)),i(g.timeout)&&(c=setTimeout((function(){c=null,r(t.resolved)&&p(null)}),g.timeout)))),s=!1,t.loading?t.loadingComp:t.resolved}}function wn(t){return t.isComment&&t.asyncFactory}function Sn(t){if(Array.isArray(t))for(var e=0;e<t.length;e++){var n=t[e];if(i(n)&&(i(n.componentOptions)||wn(n)))return n}}function On(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&Mn(t,e)}function Cn(t,e){vn.$on(t,e)}function kn(t,e){vn.$off(t,e)}function An(t,e){var n=vn;return function r(){var i=e.apply(null,arguments);null!==i&&n.$off(t,r)}}function Mn(t,e,n){vn=t,_e(e,n||{},Cn,kn,An,t),vn=void 0}function Tn(t){var e=/^hook:/;t.prototype.$on=function(t,n){var r=this;if(Array.isArray(t))for(var i=0,o=t.length;i<o;i++)r.$on(t[i],n);else(r._events[t]||(r._events[t]=[])).push(n),e.test(t)&&(r._hasHookEvent=!0);return r},t.prototype.$once=function(t,e){var n=this;function r(){n.$off(t,r),e.apply(n,arguments)}return r.fn=e,n.$on(t,r),n},t.prototype.$off=function(t,e){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(t)){for(var r=0,i=t.length;r<i;r++)n.$off(t[r],e);return n}var o,a=n._events[t];if(!a)return n;if(!e)return n._events[t]=null,n;var s=a.length;while(s--)if(o=a[s],o===e||o.fn===e){a.splice(s,1);break}return n},t.prototype.$emit=function(t){var e=this,n=e._events[t];if(n){n=n.length>1?I(n):n;for(var r=I(arguments,1),i='event handler for "'+t+'"',o=0,a=n.length;o<a;o++)ne(n[o],e,r,e,i)}return e}}var In=null;function En(t){var e=In;return In=t,function(){In=e}}function Pn(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){while(n.$options.abstract&&n.$parent)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}function jn(t){t.prototype._update=function(t,e){var n=this,r=n.$el,i=n._vnode,o=En(n);n._vnode=t,n.$el=i?n.__patch__(i,t):n.__patch__(n.$el,t,e,!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)},t.prototype.$forceUpdate=function(){var t=this;t._watcher&&t._watcher.update()},t.prototype.$destroy=function(){var t=this;if(!t._isBeingDestroyed){Fn(t,"beforeDestroy"),t._isBeingDestroyed=!0;var e=t.$parent;!e||e._isBeingDestroyed||t.$options.abstract||m(e.$children,t),t._watcher&&t._watcher.teardown();var n=t._watchers.length;while(n--)t._watchers[n].teardown();t._data.__ob__&&t._data.__ob__.vmCount--,t._isDestroyed=!0,t.__patch__(t._vnode,null),Fn(t,"destroyed"),t.$off(),t.$el&&(t.$el.__vue__=null),t.$vnode&&(t.$vnode.parent=null)}}}function Ln(t,e,n){var r;return t.$el=e,t.$options.render||(t.$options.render=xt),Fn(t,"beforeMount"),r=function(){t._update(t._render(),n)},new nr(t,r,j,{before:function(){t._isMounted&&!t._isDestroyed&&Fn(t,"beforeUpdate")}},!0),n=!1,null==t.$vnode&&(t._isMounted=!0,Fn(t,"mounted")),t}function Dn(t,e,r,i,o){var a=i.data.scopedSlots,s=t.$scopedSlots,l=!!(a&&!a.$stable||s!==n&&!s.$stable||a&&t.$scopedSlots.$key!==a.$key),u=!!(o||t.$options._renderChildren||l);if(t.$options._parentVnode=i,t.$vnode=i,t._vnode&&(t._vnode.parent=i),t.$options._renderChildren=o,t.$attrs=i.data.attrs||n,t.$listeners=r||n,e&&t.$options.props){Tt(!1);for(var c=t._props,h=t.$options._propKeys||[],f=0;f<h.length;f++){var d=h[f],p=t.$options.props;c[d]=Kt(d,p,e,t)}Tt(!0),t.$options.propsData=e}r=r||n;var g=t.$options._parentListeners;t.$options._parentListeners=r,Mn(t,r,g),u&&(t.$slots=Ee(o,i.context),t.$forceUpdate())}function Rn(t){while(t&&(t=t.$parent))if(t._inactive)return!0;return!1}function Nn(t,e){if(e){if(t._directInactive=!1,Rn(t))return}else if(t._directInactive)return;if(t._inactive||null===t._inactive){t._inactive=!1;for(var n=0;n<t.$children.length;n++)Nn(t.$children[n]);Fn(t,"activated")}}function Bn(t,e){if((!e||(t._directInactive=!0,!Rn(t)))&&!t._inactive){t._inactive=!0;for(var n=0;n<t.$children.length;n++)Bn(t.$children[n]);Fn(t,"deactivated")}}function Fn(t,e){yt();var n=t.$options[e],r=e+" hook";if(n)for(var i=0,o=n.length;i<o;i++)ne(n[i],t,null,t,r);t._hasHookEvent&&t.$emit("hook:"+e),mt()}var zn=[],Vn=[],qn={},Gn=!1,Hn=!1,Wn=0;function Un(){Wn=zn.length=Vn.length=0,qn={},Gn=Hn=!1}var $n=0,Yn=Date.now;if(K&&!tt){var Xn=window.performance;Xn&&"function"===typeof Xn.now&&Yn()>document.createEvent("Event").timeStamp&&(Yn=function(){return Xn.now()})}function Kn(){var t,e;for($n=Yn(),Hn=!0,zn.sort((function(t,e){return t.id-e.id})),Wn=0;Wn<zn.length;Wn++)t=zn[Wn],t.before&&t.before(),e=t.id,qn[e]=null,t.run();var n=Vn.slice(),r=zn.slice();Un(),Jn(n),Zn(r),ut&&q.devtools&&ut.emit("flush")}function Zn(t){var e=t.length;while(e--){var n=t[e],r=n.vm;r._watcher===n&&r._isMounted&&!r._isDestroyed&&Fn(r,"updated")}}function Qn(t){t._inactive=!1,Vn.push(t)}function Jn(t){for(var e=0;e<t.length;e++)t[e]._inactive=!0,Nn(t[e],!0)}function tr(t){var e=t.id;if(null==qn[e]){if(qn[e]=!0,Hn){var n=zn.length-1;while(n>Wn&&zn[n].id>t.id)n--;zn.splice(n+1,0,t)}else zn.push(t);Gn||(Gn=!0,pe(Kn))}}var er=0,nr=function(t,e,n,r,i){this.vm=t,i&&(t._watcher=this),t._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=++er,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new ht,this.newDepIds=new ht,this.expression="","function"===typeof e?this.getter=e:(this.getter=$(e),this.getter||(this.getter=j)),this.value=this.lazy?void 0:this.get()};nr.prototype.get=function(){var t;yt(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(Sa){if(!this.user)throw Sa;ee(Sa,e,'getter for watcher "'+this.expression+'"')}finally{this.deep&&ve(t),mt(),this.cleanupDeps()}return t},nr.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},nr.prototype.cleanupDeps=function(){var t=this.deps.length;while(t--){var e=this.deps[t];this.newDepIds.has(e.id)||e.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},nr.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():tr(this)},nr.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||l(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(Sa){ee(Sa,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},nr.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},nr.prototype.depend=function(){var t=this.deps.length;while(t--)this.deps[t].depend()},nr.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||m(this.vm._watchers,this);var t=this.deps.length;while(t--)this.deps[t].removeSub(this);this.active=!1}};var rr={enumerable:!0,configurable:!0,get:j,set:j};function ir(t,e,n){rr.get=function(){return this[e][n]},rr.set=function(t){this[e][n]=t},Object.defineProperty(t,n,rr)}function or(t){t._watchers=[];var e=t.$options;e.props&&ar(t,e.props),e.methods&&pr(t,e.methods),e.data?sr(t):jt(t._data={},!0),e.computed&&cr(t,e.computed),e.watch&&e.watch!==ot&&gr(t,e.watch)}function ar(t,e){var n=t.$options.propsData||{},r=t._props={},i=t.$options._propKeys=[],o=!t.$parent;o||Tt(!1);var a=function(o){i.push(o);var a=Kt(o,e,n,t);Lt(r,o,a),o in t||ir(t,"_props",o)};for(var s in e)a(s);Tt(!0)}function sr(t){var e=t.$options.data;e=t._data="function"===typeof e?lr(e,t):e||{},c(e)||(e={});var n=Object.keys(e),r=t.$options.props,i=(t.$options.methods,n.length);while(i--){var o=n[i];0,r&&_(r,o)||H(o)||ir(t,"_data",o)}jt(e,!0)}function lr(t,e){yt();try{return t.call(e,e)}catch(Sa){return ee(Sa,e,"data()"),{}}finally{mt()}}var ur={lazy:!0};function cr(t,e){var n=t._computedWatchers=Object.create(null),r=lt();for(var i in e){var o=e[i],a="function"===typeof o?o:o.get;0,r||(n[i]=new nr(t,a||j,j,ur)),i in t||hr(t,i,o)}}function hr(t,e,n){var r=!lt();"function"===typeof n?(rr.get=r?fr(e):dr(n),rr.set=j):(rr.get=n.get?r&&!1!==n.cache?fr(e):dr(n.get):j,rr.set=n.set||j),Object.defineProperty(t,e,rr)}function fr(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),gt.target&&e.depend(),e.value}}function dr(t){return function(){return t.call(this,this)}}function pr(t,e){t.$options.props;for(var n in e)t[n]="function"!==typeof e[n]?j:T(e[n],t)}function gr(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)vr(t,n,r[i]);else vr(t,n,r)}}function vr(t,e,n,r){return c(n)&&(r=n,n=n.handler),"string"===typeof n&&(n=t[n]),t.$watch(e,n,r)}function yr(t){var e={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",n),t.prototype.$set=Dt,t.prototype.$delete=Rt,t.prototype.$watch=function(t,e,n){var r=this;if(c(e))return vr(r,t,e,n);n=n||{},n.user=!0;var i=new nr(r,t,e,n);if(n.immediate)try{e.call(r,i.value)}catch(o){ee(o,r,'callback for immediate watcher "'+i.expression+'"')}return function(){i.teardown()}}}var mr=0;function br(t){t.prototype._init=function(t){var e=this;e._uid=mr++,e._isVue=!0,t&&t._isComponent?_r(e,t):e.$options=Yt(xr(e.constructor),t||{},e),e._renderProxy=e,e._self=e,Pn(e),On(e),gn(e),Fn(e,"beforeCreate"),Te(e),or(e),Me(e),Fn(e,"created"),e.$options.el&&e.$mount(e.$options.el)}}function _r(t,e){var n=t.$options=Object.create(t.constructor.options),r=e._parentVnode;n.parent=e.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}function xr(t){var e=t.options;if(t.super){var n=xr(t.super),r=t.superOptions;if(n!==r){t.superOptions=n;var i=wr(t);i&&E(t.extendOptions,i),e=t.options=Yt(n,t.extendOptions),e.name&&(e.components[e.name]=t)}}return e}function wr(t){var e,n=t.options,r=t.sealedOptions;for(var i in n)n[i]!==r[i]&&(e||(e={}),e[i]=n[i]);return e}function Sr(t){this._init(t)}function Or(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=I(arguments,1);return n.unshift(this),"function"===typeof t.install?t.install.apply(t,n):"function"===typeof t&&t.apply(null,n),e.push(t),this}}function Cr(t){t.mixin=function(t){return this.options=Yt(this.options,t),this}}function kr(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=n.cid,i=t._Ctor||(t._Ctor={});if(i[r])return i[r];var o=t.name||n.options.name;var a=function(t){this._init(t)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=e++,a.options=Yt(n.options,t),a["super"]=n,a.options.props&&Ar(a),a.options.computed&&Mr(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,z.forEach((function(t){a[t]=n[t]})),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=t,a.sealedOptions=E({},a.options),i[r]=a,a}}function Ar(t){var e=t.options.props;for(var n in e)ir(t.prototype,"_props",n)}function Mr(t){var e=t.options.computed;for(var n in e)hr(t.prototype,n,e[n])}function Tr(t){z.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&c(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"===typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}function Ir(t){return t&&(t.Ctor.options.name||t.tag)}function Er(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"===typeof t?t.split(",").indexOf(e)>-1:!!h(t)&&t.test(e)}function Pr(t,e){var n=t.cache,r=t.keys,i=t._vnode;for(var o in n){var a=n[o];if(a){var s=Ir(a.componentOptions);s&&!e(s)&&jr(n,o,r,i)}}}function jr(t,e,n,r){var i=t[e];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),t[e]=null,m(n,e)}br(Sr),yr(Sr),Tn(Sr),jn(Sr),mn(Sr);var Lr=[String,RegExp,Array],Dr={name:"keep-alive",abstract:!0,props:{include:Lr,exclude:Lr,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)jr(this.cache,t,this.keys)},mounted:function(){var t=this;this.$watch("include",(function(e){Pr(t,(function(t){return Er(e,t)}))})),this.$watch("exclude",(function(e){Pr(t,(function(t){return!Er(e,t)}))}))},render:function(){var t=this.$slots.default,e=Sn(t),n=e&&e.componentOptions;if(n){var r=Ir(n),i=this,o=i.include,a=i.exclude;if(o&&(!r||!Er(o,r))||a&&r&&Er(a,r))return e;var s=this,l=s.cache,u=s.keys,c=null==e.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):e.key;l[c]?(e.componentInstance=l[c].componentInstance,m(u,c),u.push(c)):(l[c]=e,u.push(c),this.max&&u.length>parseInt(this.max)&&jr(l,u[0],u,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}},Rr={KeepAlive:Dr};function Nr(t){var e={get:function(){return q}};Object.defineProperty(t,"config",e),t.util={warn:dt,extend:E,mergeOptions:Yt,defineReactive:Lt},t.set=Dt,t.delete=Rt,t.nextTick=pe,t.observable=function(t){return jt(t),t},t.options=Object.create(null),z.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,E(t.options.components,Rr),Or(t),Cr(t),kr(t),Tr(t)}Nr(Sr),Object.defineProperty(Sr.prototype,"$isServer",{get:lt}),Object.defineProperty(Sr.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Sr,"FunctionalRenderContext",{value:Ze}),Sr.version="2.6.12";var Br=v("style,class"),Fr=v("input,textarea,option,select,progress"),zr=function(t,e,n){return"value"===n&&Fr(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},Vr=v("contenteditable,draggable,spellcheck"),qr=v("events,caret,typing,plaintext-only"),Gr=function(t,e){return Yr(e)||"false"===e?"false":"contenteditable"===t&&qr(e)?e:"true"},Hr=v("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,translate,truespeed,typemustmatch,visible"),Wr="http://www.w3.org/1999/xlink",Ur=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},$r=function(t){return Ur(t)?t.slice(6,t.length):""},Yr=function(t){return null==t||!1===t};function Xr(t){var e=t.data,n=t,r=t;while(i(r.componentInstance))r=r.componentInstance._vnode,r&&r.data&&(e=Kr(r.data,e));while(i(n=n.parent))n&&n.data&&(e=Kr(e,n.data));return Zr(e.staticClass,e.class)}function Kr(t,e){return{staticClass:Qr(t.staticClass,e.staticClass),class:i(t.class)?[t.class,e.class]:e.class}}function Zr(t,e){return i(t)||i(e)?Qr(t,Jr(e)):""}function Qr(t,e){return t?e?t+" "+e:t:e||""}function Jr(t){return Array.isArray(t)?ti(t):l(t)?ei(t):"string"===typeof t?t:""}function ti(t){for(var e,n="",r=0,o=t.length;r<o;r++)i(e=Jr(t[r]))&&""!==e&&(n&&(n+=" "),n+=e);return n}function ei(t){var e="";for(var n in t)t[n]&&(e&&(e+=" "),e+=n);return e}var ni={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},ri=v("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"),ii=v("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),oi=function(t){return ri(t)||ii(t)};function ai(t){return ii(t)?"svg":"math"===t?"math":void 0}var si=Object.create(null);function li(t){if(!K)return!0;if(oi(t))return!1;if(t=t.toLowerCase(),null!=si[t])return si[t];var e=document.createElement(t);return t.indexOf("-")>-1?si[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:si[t]=/HTMLUnknownElement/.test(e.toString())}var ui=v("text,number,password,search,email,tel,url");function ci(t){if("string"===typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}function hi(t,e){var n=document.createElement(t);return"select"!==t||e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n}function fi(t,e){return document.createElementNS(ni[t],e)}function di(t){return document.createTextNode(t)}function pi(t){return document.createComment(t)}function gi(t,e,n){t.insertBefore(e,n)}function vi(t,e){t.removeChild(e)}function yi(t,e){t.appendChild(e)}function mi(t){return t.parentNode}function bi(t){return t.nextSibling}function _i(t){return t.tagName}function xi(t,e){t.textContent=e}function wi(t,e){t.setAttribute(e,"")}var Si=Object.freeze({createElement:hi,createElementNS:fi,createTextNode:di,createComment:pi,insertBefore:gi,removeChild:vi,appendChild:yi,parentNode:mi,nextSibling:bi,tagName:_i,setTextContent:xi,setStyleScope:wi}),Oi={create:function(t,e){Ci(e)},update:function(t,e){t.data.ref!==e.data.ref&&(Ci(t,!0),Ci(e))},destroy:function(t){Ci(t,!0)}};function Ci(t,e){var n=t.data.ref;if(i(n)){var r=t.context,o=t.componentInstance||t.elm,a=r.$refs;e?Array.isArray(a[n])?m(a[n],o):a[n]===o&&(a[n]=void 0):t.data.refInFor?Array.isArray(a[n])?a[n].indexOf(o)<0&&a[n].push(o):a[n]=[o]:a[n]=o}}var ki=new bt("",{},[]),Ai=["create","activate","update","remove","destroy"];function Mi(t,e){return t.key===e.key&&(t.tag===e.tag&&t.isComment===e.isComment&&i(t.data)===i(e.data)&&Ti(t,e)||o(t.isAsyncPlaceholder)&&t.asyncFactory===e.asyncFactory&&r(e.asyncFactory.error))}function Ti(t,e){if("input"!==t.tag)return!0;var n,r=i(n=t.data)&&i(n=n.attrs)&&n.type,o=i(n=e.data)&&i(n=n.attrs)&&n.type;return r===o||ui(r)&&ui(o)}function Ii(t,e,n){var r,o,a={};for(r=e;r<=n;++r)o=t[r].key,i(o)&&(a[o]=r);return a}function Ei(t){var e,n,a={},l=t.modules,u=t.nodeOps;for(e=0;e<Ai.length;++e)for(a[Ai[e]]=[],n=0;n<l.length;++n)i(l[n][Ai[e]])&&a[Ai[e]].push(l[n][Ai[e]]);function c(t){return new bt(u.tagName(t).toLowerCase(),{},[],void 0,t)}function h(t,e){function n(){0===--n.listeners&&f(t)}return n.listeners=e,n}function f(t){var e=u.parentNode(t);i(e)&&u.removeChild(e,t)}function d(t,e,n,r,a,s,l){if(i(t.elm)&&i(s)&&(t=s[l]=St(t)),t.isRootInsert=!a,!p(t,e,n,r)){var c=t.data,h=t.children,f=t.tag;i(f)?(t.elm=t.ns?u.createElementNS(t.ns,f):u.createElement(f,t),w(t),b(t,h,e),i(c)&&x(t,e),m(n,t.elm,r)):o(t.isComment)?(t.elm=u.createComment(t.text),m(n,t.elm,r)):(t.elm=u.createTextNode(t.text),m(n,t.elm,r))}}function p(t,e,n,r){var a=t.data;if(i(a)){var s=i(t.componentInstance)&&a.keepAlive;if(i(a=a.hook)&&i(a=a.init)&&a(t,!1),i(t.componentInstance))return g(t,e),m(n,t.elm,r),o(s)&&y(t,e,n,r),!0}}function g(t,e){i(t.data.pendingInsert)&&(e.push.apply(e,t.data.pendingInsert),t.data.pendingInsert=null),t.elm=t.componentInstance.$el,_(t)?(x(t,e),w(t)):(Ci(t),e.push(t))}function y(t,e,n,r){var o,s=t;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](ki,s);e.push(s);break}m(n,t.elm,r)}function m(t,e,n){i(t)&&(i(n)?u.parentNode(n)===t&&u.insertBefore(t,e,n):u.appendChild(t,e))}function b(t,e,n){if(Array.isArray(e)){0;for(var r=0;r<e.length;++r)d(e[r],n,t.elm,null,!0,e,r)}else s(t.text)&&u.appendChild(t.elm,u.createTextNode(String(t.text)))}function _(t){while(t.componentInstance)t=t.componentInstance._vnode;return i(t.tag)}function x(t,n){for(var r=0;r<a.create.length;++r)a.create[r](ki,t);e=t.data.hook,i(e)&&(i(e.create)&&e.create(ki,t),i(e.insert)&&n.push(t))}function w(t){var e;if(i(e=t.fnScopeId))u.setStyleScope(t.elm,e);else{var n=t;while(n)i(e=n.context)&&i(e=e.$options._scopeId)&&u.setStyleScope(t.elm,e),n=n.parent}i(e=In)&&e!==t.context&&e!==t.fnContext&&i(e=e.$options._scopeId)&&u.setStyleScope(t.elm,e)}function S(t,e,n,r,i,o){for(;r<=i;++r)d(n[r],o,t,e,!1,n,r)}function O(t){var e,n,r=t.data;if(i(r))for(i(e=r.hook)&&i(e=e.destroy)&&e(t),e=0;e<a.destroy.length;++e)a.destroy[e](t);if(i(e=t.children))for(n=0;n<t.children.length;++n)O(t.children[n])}function C(t,e,n){for(;e<=n;++e){var r=t[e];i(r)&&(i(r.tag)?(k(r),O(r)):f(r.elm))}}function k(t,e){if(i(e)||i(t.data)){var n,r=a.remove.length+1;for(i(e)?e.listeners+=r:e=h(t.elm,r),i(n=t.componentInstance)&&i(n=n._vnode)&&i(n.data)&&k(n,e),n=0;n<a.remove.length;++n)a.remove[n](t,e);i(n=t.data.hook)&&i(n=n.remove)?n(t,e):e()}else f(t.elm)}function A(t,e,n,o,a){var s,l,c,h,f=0,p=0,g=e.length-1,v=e[0],y=e[g],m=n.length-1,b=n[0],_=n[m],x=!a;while(f<=g&&p<=m)r(v)?v=e[++f]:r(y)?y=e[--g]:Mi(v,b)?(T(v,b,o,n,p),v=e[++f],b=n[++p]):Mi(y,_)?(T(y,_,o,n,m),y=e[--g],_=n[--m]):Mi(v,_)?(T(v,_,o,n,m),x&&u.insertBefore(t,v.elm,u.nextSibling(y.elm)),v=e[++f],_=n[--m]):Mi(y,b)?(T(y,b,o,n,p),x&&u.insertBefore(t,y.elm,v.elm),y=e[--g],b=n[++p]):(r(s)&&(s=Ii(e,f,g)),l=i(b.key)?s[b.key]:M(b,e,f,g),r(l)?d(b,o,t,v.elm,!1,n,p):(c=e[l],Mi(c,b)?(T(c,b,o,n,p),e[l]=void 0,x&&u.insertBefore(t,c.elm,v.elm)):d(b,o,t,v.elm,!1,n,p)),b=n[++p]);f>g?(h=r(n[m+1])?null:n[m+1].elm,S(t,h,n,p,m,o)):p>m&&C(e,f,g)}function M(t,e,n,r){for(var o=n;o<r;o++){var a=e[o];if(i(a)&&Mi(t,a))return o}}function T(t,e,n,s,l,c){if(t!==e){i(e.elm)&&i(s)&&(e=s[l]=St(e));var h=e.elm=t.elm;if(o(t.isAsyncPlaceholder))i(e.asyncFactory.resolved)?P(t.elm,e,n):e.isAsyncPlaceholder=!0;else if(o(e.isStatic)&&o(t.isStatic)&&e.key===t.key&&(o(e.isCloned)||o(e.isOnce)))e.componentInstance=t.componentInstance;else{var f,d=e.data;i(d)&&i(f=d.hook)&&i(f=f.prepatch)&&f(t,e);var p=t.children,g=e.children;if(i(d)&&_(e)){for(f=0;f<a.update.length;++f)a.update[f](t,e);i(f=d.hook)&&i(f=f.update)&&f(t,e)}r(e.text)?i(p)&&i(g)?p!==g&&A(h,p,g,n,c):i(g)?(i(t.text)&&u.setTextContent(h,""),S(h,null,g,0,g.length-1,n)):i(p)?C(p,0,p.length-1):i(t.text)&&u.setTextContent(h,""):t.text!==e.text&&u.setTextContent(h,e.text),i(d)&&i(f=d.hook)&&i(f=f.postpatch)&&f(t,e)}}}function I(t,e,n){if(o(n)&&i(t.parent))t.parent.data.pendingInsert=e;else for(var r=0;r<e.length;++r)e[r].data.hook.insert(e[r])}var E=v("attrs,class,staticClass,staticStyle,key");function P(t,e,n,r){var a,s=e.tag,l=e.data,u=e.children;if(r=r||l&&l.pre,e.elm=t,o(e.isComment)&&i(e.asyncFactory))return e.isAsyncPlaceholder=!0,!0;if(i(l)&&(i(a=l.hook)&&i(a=a.init)&&a(e,!0),i(a=e.componentInstance)))return g(e,n),!0;if(i(s)){if(i(u))if(t.hasChildNodes())if(i(a=l)&&i(a=a.domProps)&&i(a=a.innerHTML)){if(a!==t.innerHTML)return!1}else{for(var c=!0,h=t.firstChild,f=0;f<u.length;f++){if(!h||!P(h,u[f],n,r)){c=!1;break}h=h.nextSibling}if(!c||h)return!1}else b(e,u,n);if(i(l)){var d=!1;for(var p in l)if(!E(p)){d=!0,x(e,n);break}!d&&l["class"]&&ve(l["class"])}}else t.data!==e.text&&(t.data=e.text);return!0}return function(t,e,n,s){if(!r(e)){var l=!1,h=[];if(r(t))l=!0,d(e,h);else{var f=i(t.nodeType);if(!f&&Mi(t,e))T(t,e,h,null,null,s);else{if(f){if(1===t.nodeType&&t.hasAttribute(F)&&(t.removeAttribute(F),n=!0),o(n)&&P(t,e,h))return I(e,h,!0),t;t=c(t)}var p=t.elm,g=u.parentNode(p);if(d(e,h,p._leaveCb?null:g,u.nextSibling(p)),i(e.parent)){var v=e.parent,y=_(e);while(v){for(var m=0;m<a.destroy.length;++m)a.destroy[m](v);if(v.elm=e.elm,y){for(var b=0;b<a.create.length;++b)a.create[b](ki,v);var x=v.data.hook.insert;if(x.merged)for(var w=1;w<x.fns.length;w++)x.fns[w]()}else Ci(v);v=v.parent}}i(g)?C([t],0,0):i(t.tag)&&O(t)}}return I(e,h,l),e.elm}i(t)&&O(t)}}var Pi={create:ji,update:ji,destroy:function(t){ji(t,ki)}};function ji(t,e){(t.data.directives||e.data.directives)&&Li(t,e)}function Li(t,e){var n,r,i,o=t===ki,a=e===ki,s=Ri(t.data.directives,t.context),l=Ri(e.data.directives,e.context),u=[],c=[];for(n in l)r=s[n],i=l[n],r?(i.oldValue=r.value,i.oldArg=r.arg,Bi(i,"update",e,t),i.def&&i.def.componentUpdated&&c.push(i)):(Bi(i,"bind",e,t),i.def&&i.def.inserted&&u.push(i));if(u.length){var h=function(){for(var n=0;n<u.length;n++)Bi(u[n],"inserted",e,t)};o?xe(e,"insert",h):h()}if(c.length&&xe(e,"postpatch",(function(){for(var n=0;n<c.length;n++)Bi(c[n],"componentUpdated",e,t)})),!o)for(n in s)l[n]||Bi(s[n],"unbind",t,t,a)}var Di=Object.create(null);function Ri(t,e){var n,r,i=Object.create(null);if(!t)return i;for(n=0;n<t.length;n++)r=t[n],r.modifiers||(r.modifiers=Di),i[Ni(r)]=r,r.def=Xt(e.$options,"directives",r.name,!0);return i}function Ni(t){return t.rawName||t.name+"."+Object.keys(t.modifiers||{}).join(".")}function Bi(t,e,n,r,i){var o=t.def&&t.def[e];if(o)try{o(n.elm,t,n,r,i)}catch(Sa){ee(Sa,n.context,"directive "+t.name+" "+e+" hook")}}var Fi=[Oi,Pi];function zi(t,e){var n=e.componentOptions;if((!i(n)||!1!==n.Ctor.options.inheritAttrs)&&(!r(t.data.attrs)||!r(e.data.attrs))){var o,a,s,l=e.elm,u=t.data.attrs||{},c=e.data.attrs||{};for(o in i(c.__ob__)&&(c=e.data.attrs=E({},c)),c)a=c[o],s=u[o],s!==a&&Vi(l,o,a);for(o in(tt||nt)&&c.value!==u.value&&Vi(l,"value",c.value),u)r(c[o])&&(Ur(o)?l.removeAttributeNS(Wr,$r(o)):Vr(o)||l.removeAttribute(o))}}function Vi(t,e,n){t.tagName.indexOf("-")>-1?qi(t,e,n):Hr(e)?Yr(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):Vr(e)?t.setAttribute(e,Gr(e,n)):Ur(e)?Yr(n)?t.removeAttributeNS(Wr,$r(e)):t.setAttributeNS(Wr,e,n):qi(t,e,n)}function qi(t,e,n){if(Yr(n))t.removeAttribute(e);else{if(tt&&!et&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,n)}}var Gi={create:zi,update:zi};function Hi(t,e){var n=e.elm,o=e.data,a=t.data;if(!(r(o.staticClass)&&r(o.class)&&(r(a)||r(a.staticClass)&&r(a.class)))){var s=Xr(e),l=n._transitionClasses;i(l)&&(s=Qr(s,Jr(l))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var Wi,Ui={create:Hi,update:Hi},$i="__r",Yi="__c";function Xi(t){if(i(t[$i])){var e=tt?"change":"input";t[e]=[].concat(t[$i],t[e]||[]),delete t[$i]}i(t[Yi])&&(t.change=[].concat(t[Yi],t.change||[]),delete t[Yi])}function Ki(t,e,n){var r=Wi;return function i(){var o=e.apply(null,arguments);null!==o&&Ji(t,i,n,r)}}var Zi=ae&&!(it&&Number(it[1])<=53);function Qi(t,e,n,r){if(Zi){var i=$n,o=e;e=o._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=i||t.timeStamp<=0||t.target.ownerDocument!==document)return o.apply(this,arguments)}}Wi.addEventListener(t,e,at?{capture:n,passive:r}:n)}function Ji(t,e,n,r){(r||Wi).removeEventListener(t,e._wrapper||e,n)}function to(t,e){if(!r(t.data.on)||!r(e.data.on)){var n=e.data.on||{},i=t.data.on||{};Wi=e.elm,Xi(n),_e(n,i,Qi,Ji,Ki,e.context),Wi=void 0}}var eo,no={create:to,update:to};function ro(t,e){if(!r(t.data.domProps)||!r(e.data.domProps)){var n,o,a=e.elm,s=t.data.domProps||{},l=e.data.domProps||{};for(n in i(l.__ob__)&&(l=e.data.domProps=E({},l)),s)n in l||(a[n]="");for(n in l){if(o=l[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.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);io(a,u)&&(a.value=u)}else if("innerHTML"===n&&ii(a.tagName)&&r(a.innerHTML)){eo=eo||document.createElement("div"),eo.innerHTML="<svg>"+o+"</svg>";var c=eo.firstChild;while(a.firstChild)a.removeChild(a.firstChild);while(c.firstChild)a.appendChild(c.firstChild)}else if(o!==s[n])try{a[n]=o}catch(Sa){}}}}function io(t,e){return!t.composing&&("OPTION"===t.tagName||oo(t,e)||ao(t,e))}function oo(t,e){var n=!0;try{n=document.activeElement!==t}catch(Sa){}return n&&t.value!==e}function ao(t,e){var n=t.value,r=t._vModifiers;if(i(r)){if(r.number)return g(n)!==g(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}var so={create:ro,update:ro},lo=x((function(t){var e={},n=/;(?![^(]*\))/g,r=/:(.+)/;return t.split(n).forEach((function(t){if(t){var n=t.split(r);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}));function uo(t){var e=co(t.style);return t.staticStyle?E(t.staticStyle,e):e}function co(t){return Array.isArray(t)?P(t):"string"===typeof t?lo(t):t}function ho(t,e){var n,r={};if(e){var i=t;while(i.componentInstance)i=i.componentInstance._vnode,i&&i.data&&(n=uo(i.data))&&E(r,n)}(n=uo(t.data))&&E(r,n);var o=t;while(o=o.parent)o.data&&(n=uo(o.data))&&E(r,n);return r}var fo,po=/^--/,go=/\s*!important$/,vo=function(t,e,n){if(po.test(e))t.style.setProperty(e,n);else if(go.test(n))t.style.setProperty(k(e),n.replace(go,""),"important");else{var r=mo(e);if(Array.isArray(n))for(var i=0,o=n.length;i<o;i++)t.style[r]=n[i];else t.style[r]=n}},yo=["Webkit","Moz","ms"],mo=x((function(t){if(fo=fo||document.createElement("div").style,t=S(t),"filter"!==t&&t in fo)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<yo.length;n++){var r=yo[n]+e;if(r in fo)return r}}));function bo(t,e){var n=e.data,o=t.data;if(!(r(n.staticStyle)&&r(n.style)&&r(o.staticStyle)&&r(o.style))){var a,s,l=e.elm,u=o.staticStyle,c=o.normalizedStyle||o.style||{},h=u||c,f=co(e.data.style)||{};e.data.normalizedStyle=i(f.__ob__)?E({},f):f;var d=ho(e,!0);for(s in h)r(d[s])&&vo(l,s,"");for(s in d)a=d[s],a!==h[s]&&vo(l,s,null==a?"":a)}}var _o={create:bo,update:bo},xo=/\s+/;function wo(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(xo).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function So(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(xo).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{var n=" "+(t.getAttribute("class")||"")+" ",r=" "+e+" ";while(n.indexOf(r)>=0)n=n.replace(r," ");n=n.trim(),n?t.setAttribute("class",n):t.removeAttribute("class")}}function Oo(t){if(t){if("object"===typeof t){var e={};return!1!==t.css&&E(e,Co(t.name||"v")),E(e,t),e}return"string"===typeof t?Co(t):void 0}}var Co=x((function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}})),ko=K&&!et,Ao="transition",Mo="animation",To="transition",Io="transitionend",Eo="animation",Po="animationend";ko&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(To="WebkitTransition",Io="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Eo="WebkitAnimation",Po="webkitAnimationEnd"));var jo=K?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function Lo(t){jo((function(){jo(t)}))}function Do(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),wo(t,e))}function Ro(t,e){t._transitionClasses&&m(t._transitionClasses,e),So(t,e)}function No(t,e,n){var r=Fo(t,e),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===Ao?Io:Po,l=0,u=function(){t.removeEventListener(s,c),n()},c=function(e){e.target===t&&++l>=a&&u()};setTimeout((function(){l<a&&u()}),o+1),t.addEventListener(s,c)}var Bo=/\b(transform|all)(,|$)/;function Fo(t,e){var n,r=window.getComputedStyle(t),i=(r[To+"Delay"]||"").split(", "),o=(r[To+"Duration"]||"").split(", "),a=zo(i,o),s=(r[Eo+"Delay"]||"").split(", "),l=(r[Eo+"Duration"]||"").split(", "),u=zo(s,l),c=0,h=0;e===Ao?a>0&&(n=Ao,c=a,h=o.length):e===Mo?u>0&&(n=Mo,c=u,h=l.length):(c=Math.max(a,u),n=c>0?a>u?Ao:Mo:null,h=n?n===Ao?o.length:l.length:0);var f=n===Ao&&Bo.test(r[To+"Property"]);return{type:n,timeout:c,propCount:h,hasTransform:f}}function zo(t,e){while(t.length<e.length)t=t.concat(t);return Math.max.apply(null,e.map((function(e,n){return Vo(e)+Vo(t[n])})))}function Vo(t){return 1e3*Number(t.slice(0,-1).replace(",","."))}function qo(t,e){var n=t.elm;i(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var o=Oo(t.data.transition);if(!r(o)&&!i(n._enterCb)&&1===n.nodeType){var a=o.css,s=o.type,u=o.enterClass,c=o.enterToClass,h=o.enterActiveClass,f=o.appearClass,d=o.appearToClass,p=o.appearActiveClass,v=o.beforeEnter,y=o.enter,m=o.afterEnter,b=o.enterCancelled,_=o.beforeAppear,x=o.appear,w=o.afterAppear,S=o.appearCancelled,O=o.duration,C=In,k=In.$vnode;while(k&&k.parent)C=k.context,k=k.parent;var A=!C._isMounted||!t.isRootInsert;if(!A||x||""===x){var M=A&&f?f:u,T=A&&p?p:h,I=A&&d?d:c,E=A&&_||v,P=A&&"function"===typeof x?x:y,j=A&&w||m,L=A&&S||b,D=g(l(O)?O.enter:O);0;var R=!1!==a&&!et,N=Wo(P),F=n._enterCb=B((function(){R&&(Ro(n,I),Ro(n,T)),F.cancelled?(R&&Ro(n,M),L&&L(n)):j&&j(n),n._enterCb=null}));t.data.show||xe(t,"insert",(function(){var e=n.parentNode,r=e&&e._pending&&e._pending[t.key];r&&r.tag===t.tag&&r.elm._leaveCb&&r.elm._leaveCb(),P&&P(n,F)})),E&&E(n),R&&(Do(n,M),Do(n,T),Lo((function(){Ro(n,M),F.cancelled||(Do(n,I),N||(Ho(D)?setTimeout(F,D):No(n,s,F)))}))),t.data.show&&(e&&e(),P&&P(n,F)),R||N||F()}}}function Go(t,e){var n=t.elm;i(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var o=Oo(t.data.transition);if(r(o)||1!==n.nodeType)return e();if(!i(n._leaveCb)){var a=o.css,s=o.type,u=o.leaveClass,c=o.leaveToClass,h=o.leaveActiveClass,f=o.beforeLeave,d=o.leave,p=o.afterLeave,v=o.leaveCancelled,y=o.delayLeave,m=o.duration,b=!1!==a&&!et,_=Wo(d),x=g(l(m)?m.leave:m);0;var w=n._leaveCb=B((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[t.key]=null),b&&(Ro(n,c),Ro(n,h)),w.cancelled?(b&&Ro(n,u),v&&v(n)):(e(),p&&p(n)),n._leaveCb=null}));y?y(S):S()}function S(){w.cancelled||(!t.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[t.key]=t),f&&f(n),b&&(Do(n,u),Do(n,h),Lo((function(){Ro(n,u),w.cancelled||(Do(n,c),_||(Ho(x)?setTimeout(w,x):No(n,s,w)))}))),d&&d(n,w),b||_||w())}}function Ho(t){return"number"===typeof t&&!isNaN(t)}function Wo(t){if(r(t))return!1;var e=t.fns;return i(e)?Wo(Array.isArray(e)?e[0]:e):(t._length||t.length)>1}function Uo(t,e){!0!==e.data.show&&qo(e)}var $o=K?{create:Uo,activate:Uo,remove:function(t,e){!0!==t.data.show?Go(t,e):e()}}:{},Yo=[Gi,Ui,no,so,_o,$o],Xo=Yo.concat(Fi),Ko=Ei({nodeOps:Si,modules:Xo});et&&document.addEventListener("selectionchange",(function(){var t=document.activeElement;t&&t.vmodel&&ia(t,"input")}));var Zo={inserted:function(t,e,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?xe(n,"postpatch",(function(){Zo.componentUpdated(t,e,n)})):Qo(t,e,n.context),t._vOptions=[].map.call(t.options,ea)):("textarea"===n.tag||ui(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",na),t.addEventListener("compositionend",ra),t.addEventListener("change",ra),et&&(t.vmodel=!0)))},componentUpdated:function(t,e,n){if("select"===n.tag){Qo(t,e,n.context);var r=t._vOptions,i=t._vOptions=[].map.call(t.options,ea);if(i.some((function(t,e){return!R(t,r[e])}))){var o=t.multiple?e.value.some((function(t){return ta(t,i)})):e.value!==e.oldValue&&ta(e.value,i);o&&ia(t,"change")}}}};function Qo(t,e,n){Jo(t,e,n),(tt||nt)&&setTimeout((function(){Jo(t,e,n)}),0)}function Jo(t,e,n){var r=e.value,i=t.multiple;if(!i||Array.isArray(r)){for(var o,a,s=0,l=t.options.length;s<l;s++)if(a=t.options[s],i)o=N(r,ea(a))>-1,a.selected!==o&&(a.selected=o);else if(R(ea(a),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));i||(t.selectedIndex=-1)}}function ta(t,e){return e.every((function(e){return!R(e,t)}))}function ea(t){return"_value"in t?t._value:t.value}function na(t){t.target.composing=!0}function ra(t){t.target.composing&&(t.target.composing=!1,ia(t.target,"input"))}function ia(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function oa(t){return!t.componentInstance||t.data&&t.data.transition?t:oa(t.componentInstance._vnode)}var aa={bind:function(t,e,n){var r=e.value;n=oa(n);var i=n.data&&n.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&i?(n.data.show=!0,qo(n,(function(){t.style.display=o}))):t.style.display=r?o:"none"},update:function(t,e,n){var r=e.value,i=e.oldValue;if(!r!==!i){n=oa(n);var o=n.data&&n.data.transition;o?(n.data.show=!0,r?qo(n,(function(){t.style.display=t.__vOriginalDisplay})):Go(n,(function(){t.style.display="none"}))):t.style.display=r?t.__vOriginalDisplay:"none"}},unbind:function(t,e,n,r,i){i||(t.style.display=t.__vOriginalDisplay)}},sa={model:Zo,show:aa},la={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 ua(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?ua(Sn(e.children)):t}function ca(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var i=n._parentListeners;for(var o in i)e[S(o)]=i[o];return e}function ha(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}function fa(t){while(t=t.parent)if(t.data.transition)return!0}function da(t,e){return e.key===t.key&&e.tag===t.tag}var pa=function(t){return t.tag||wn(t)},ga=function(t){return"show"===t.name},va={name:"transition",props:la,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(pa),n.length)){0;var r=this.mode;0;var i=n[0];if(fa(this.$vnode))return i;var o=ua(i);if(!o)return i;if(this._leaving)return ha(t,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 l=(o.data||(o.data={})).transition=ca(this),u=this._vnode,c=ua(u);if(o.data.directives&&o.data.directives.some(ga)&&(o.data.show=!0),c&&c.data&&!da(o,c)&&!wn(c)&&(!c.componentInstance||!c.componentInstance._vnode.isComment)){var h=c.data.transition=E({},l);if("out-in"===r)return this._leaving=!0,xe(h,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),ha(t,i);if("in-out"===r){if(wn(o))return u;var f,d=function(){f()};xe(l,"afterEnter",d),xe(l,"enterCancelled",d),xe(h,"delayLeave",(function(t){f=t}))}}return i}}},ya=E({tag:String,moveClass:String},la);delete ya.mode;var ma={props:ya,beforeMount:function(){var t=this,e=this._update;this._update=function(n,r){var i=En(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,i(),e.call(t,n,r)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=ca(this),s=0;s<i.length;s++){var l=i[s];if(l.tag)if(null!=l.key&&0!==String(l.key).indexOf("__vlist"))o.push(l),n[l.key]=l,(l.data||(l.data={})).transition=a;else;}if(r){for(var u=[],c=[],h=0;h<r.length;h++){var f=r[h];f.data.transition=a,f.data.pos=f.elm.getBoundingClientRect(),n[f.key]?u.push(f):c.push(f)}this.kept=t(e,null,u),this.removed=c}return t(e,null,o)},updated:function(){var t=this.prevChildren,e=this.moveClass||(this.name||"v")+"-move";t.length&&this.hasMove(t[0].elm,e)&&(t.forEach(ba),t.forEach(_a),t.forEach(xa),this._reflow=document.body.offsetHeight,t.forEach((function(t){if(t.data.moved){var n=t.elm,r=n.style;Do(n,e),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(Io,n._moveCb=function t(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(Io,t),n._moveCb=null,Ro(n,e))})}})))},methods:{hasMove:function(t,e){if(!ko)return!1;if(this._hasMove)return this._hasMove;var n=t.cloneNode();t._transitionClasses&&t._transitionClasses.forEach((function(t){So(n,t)})),wo(n,e),n.style.display="none",this.$el.appendChild(n);var r=Fo(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}};function ba(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function _a(t){t.data.newPos=t.elm.getBoundingClientRect()}function xa(t){var e=t.data.pos,n=t.data.newPos,r=e.left-n.left,i=e.top-n.top;if(r||i){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}var wa={Transition:va,TransitionGroup:ma};Sr.config.mustUseProp=zr,Sr.config.isReservedTag=oi,Sr.config.isReservedAttr=Br,Sr.config.getTagNamespace=ai,Sr.config.isUnknownElement=li,E(Sr.options.directives,sa),E(Sr.options.components,wa),Sr.prototype.__patch__=K?Ko:j,Sr.prototype.$mount=function(t,e){return t=t&&K?ci(t):void 0,Ln(this,t,e)},K&&setTimeout((function(){q.devtools&&ut&&ut.emit("init",Sr)}),0),e["default"]=Sr}.call(this,n("c8ba"))},"2ba4":function(t,e,n){var r=n("40d5"),i=Function.prototype,o=i.apply,a=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(o):function(){return a.apply(o,arguments)})},"2c3e":function(t,e,n){var r=n("83ab"),i=n("9f7f").MISSED_STICKY,o=n("c6b6"),a=n("edd0"),s=n("69f3").get,l=RegExp.prototype,u=TypeError;r&&i&&a(l,"sticky",{configurable:!0,get:function(){if(this!==l){if("RegExp"===o(this))return!!s(this).sticky;throw u("Incompatible receiver, RegExp required")}}})},"2ca0":function(t,e,n){"use strict";var r=n("23e7"),i=n("e330"),o=n("06cf").f,a=n("50c4"),s=n("577e"),l=n("5a34"),u=n("1d80"),c=n("ab13"),h=n("c430"),f=i("".startsWith),d=i("".slice),p=Math.min,g=c("startsWith"),v=!h&&!g&&!!function(){var t=o(String.prototype,"startsWith");return t&&!t.writable}();r({target:"String",proto:!0,forced:!v&&!g},{startsWith:function(t){var e=s(u(this));l(t);var n=a(p(arguments.length>1?arguments[1]:void 0,e.length)),r=s(t);return f?f(e,r,n):d(e,n,n+r.length)===r}})},"2cf4":function(t,e,n){var r,i,o,a,s=n("da84"),l=n("2ba4"),u=n("0366"),c=n("1626"),h=n("1a2d"),f=n("d039"),d=n("1be4"),p=n("f36a"),g=n("cc12"),v=n("d6d6"),y=n("1cdc"),m=n("605d"),b=s.setImmediate,_=s.clearImmediate,x=s.process,w=s.Dispatch,S=s.Function,O=s.MessageChannel,C=s.String,k=0,A={},M="onreadystatechange";try{r=s.location}catch(j){}var T=function(t){if(h(A,t)){var e=A[t];delete A[t],e()}},I=function(t){return function(){T(t)}},E=function(t){T(t.data)},P=function(t){s.postMessage(C(t),r.protocol+"//"+r.host)};b&&_||(b=function(t){v(arguments.length,1);var e=c(t)?t:S(t),n=p(arguments,1);return A[++k]=function(){l(e,void 0,n)},i(k),k},_=function(t){delete A[t]},m?i=function(t){x.nextTick(I(t))}:w&&w.now?i=function(t){w.now(I(t))}:O&&!y?(o=new O,a=o.port2,o.port1.onmessage=E,i=u(a.postMessage,a)):s.addEventListener&&c(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!f(P)?(i=P,s.addEventListener("message",E,!1)):i=M in g("script")?function(t){d.appendChild(g("script"))[M]=function(){d.removeChild(this),T(t)}}:function(t){setTimeout(I(t),0)}),t.exports={set:b,clear:_}},"2d00":function(t,e,n){var r,i,o=n("da84"),a=n("342f"),s=o.process,l=o.Deno,u=s&&s.versions||l&&l.version,c=u&&u.v8;c&&(r=c.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]))),t.exports=i},"2d83":function(t,e,n){"use strict";var r=n("387f");t.exports=function(t,e,n,i,o){var a=new Error(t);return r(a,e,n,i,o)}},"2db9":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.bezierCurveToPolyline=b,e.getBezierCurveLength=_,e["default"]=void 0;var i=r(n("278c")),o=r(n("448a")),a=Math.sqrt,s=Math.pow,l=Math.ceil,u=Math.abs,c=50;function h(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,n=t.length-1,r=t[0],i=t[n][2],a=t.slice(1),s=a.map((function(t,e){var n=0===e?r:a[e-1][2];return f.apply(void 0,[n].concat((0,o["default"])(t)))})),l=new Array(n).fill(c),u=v(s,l),h=m(u,s,a,e);return h.segmentPoints.push(i),h}function f(t,e,n,r){return function(i){var o=1-i,a=s(o,3),l=s(o,2),u=s(i,3),c=s(i,2);return[t[0]*a+3*e[0]*i*l+3*n[0]*c*o+r[0]*u,t[1]*a+3*e[1]*i*l+3*n[1]*c*o+r[1]*u]}}function d(t,e){var n=(0,i["default"])(t,2),r=n[0],o=n[1],l=(0,i["default"])(e,2),u=l[0],c=l[1];return a(s(r-u,2)+s(o-c,2))}function p(t){return t.reduce((function(t,e){return t+e}),0)}function g(t){return t.map((function(t,e){return new Array(t.length-1).fill(0).map((function(e,n){return d(t[n],t[n+1])}))}))}function v(t,e){return t.map((function(t,n){var r=1/e[n];return new Array(e[n]).fill("").map((function(e,n){return t(n*r)}))}))}function y(t,e){return t.map((function(t){return t.map((function(t){return u(t-e)}))})).map((function(t){return p(t)})).reduce((function(t,e){return t+e}),0)}function m(t,e,n,r){var i=4,o=1,a=function(){var a=t.reduce((function(t,e){return t+e.length}),0);t.forEach((function(t,e){return t.push(n[e][2])}));var s=g(t),u=s.reduce((function(t,e){return t+e.length}),0),c=s.map((function(t){return p(t)})),h=p(c),f=h/u,d=y(s,f);if(d<=r)return"break";a=l(f/r*a*1.1);var m=c.map((function(t){return l(t/h*a)}));t=v(e,m),a=t.reduce((function(t,e){return t+e.length}),0);var b=JSON.parse(JSON.stringify(t));b.forEach((function(t,e){return t.push(n[e][2])})),s=g(b),u=s.reduce((function(t,e){return t+e.length}),0),c=s.map((function(t){return p(t)})),h=p(c),f=h/u;var _=1/a/10;e.forEach((function(e,n){for(var r=m[n],o=new Array(r).fill("").map((function(t,e){return e/m[n]})),a=0;a<i;a++)for(var s=g([t[n]])[0],l=s.map((function(t){return t-f})),u=0,c=0;c<r;c++){if(0===c)return;u+=l[c-1],o[c]-=_*u,o[c]>1&&(o[c]=1),o[c]<0&&(o[c]=0),t[n][c]=e(o[c])}})),i*=4,o++};do{var s=a();if("break"===s)break}while(i<=1025);return t=t.reduce((function(t,e){return t.concat(e)}),[]),{segmentPoints:t,cycles:o,rounds:i}}function b(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;if(!t)return console.error("bezierCurveToPolyline: Missing parameters!"),!1;if(!(t instanceof Array))return console.error("bezierCurveToPolyline: Parameter bezierCurve must be an array!"),!1;if("number"!==typeof e)return console.error("bezierCurveToPolyline: Parameter precision must be a number!"),!1;var n=h(t,e),r=n.segmentPoints;return r}function _(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;if(!t)return console.error("getBezierCurveLength: Missing parameters!"),!1;if(!(t instanceof Array))return console.error("getBezierCurveLength: Parameter bezierCurve must be an array!"),!1;if("number"!==typeof e)return console.error("getBezierCurveLength: Parameter precision must be a number!"),!1;var n=h(t,e),r=n.segmentPoints,i=g([r])[0],o=p(i);return o}var x=b;e["default"]=x},"2e67":function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},"2f62":function(t,e,n){"use strict";(function(t){
|
||
/*!
|
||
* vuex v3.6.0
|
||
* (c) 2020 Evan You
|
||
* @license MIT
|
||
*/
|
||
function r(t){var e=Number(t.version.split(".")[0]);if(e>=2)t.mixin({beforeCreate:r});else{var n=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[r].concat(t.init):r,n.call(this,t)}}function r(){var t=this.$options;t.store?this.$store="function"===typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}n.d(e,"b",(function(){return D})),n.d(e,"c",(function(){return j}));var i="undefined"!==typeof window?window:"undefined"!==typeof t?t:{},o=i.__VUE_DEVTOOLS_GLOBAL_HOOK__;function a(t){o&&(t._devtoolHook=o,o.emit("vuex:init",t),o.on("vuex:travel-to-state",(function(e){t.replaceState(e)})),t.subscribe((function(t,e){o.emit("vuex:mutation",t,e)}),{prepend:!0}),t.subscribeAction((function(t,e){o.emit("vuex:action",t,e)}),{prepend:!0}))}function s(t,e){return t.filter(e)[0]}function l(t,e){if(void 0===e&&(e=[]),null===t||"object"!==typeof t)return t;var n=s(e,(function(e){return e.original===t}));if(n)return n.copy;var r=Array.isArray(t)?[]:{};return e.push({original:t,copy:r}),Object.keys(t).forEach((function(n){r[n]=l(t[n],e)})),r}function u(t,e){Object.keys(t).forEach((function(n){return e(t[n],n)}))}function c(t){return null!==t&&"object"===typeof t}function h(t){return t&&"function"===typeof t.then}function f(t,e){return function(){return t(e)}}var d=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"===typeof n?n():n)||{}},p={namespaced:{configurable:!0}};p.namespaced.get=function(){return!!this._rawModule.namespaced},d.prototype.addChild=function(t,e){this._children[t]=e},d.prototype.removeChild=function(t){delete this._children[t]},d.prototype.getChild=function(t){return this._children[t]},d.prototype.hasChild=function(t){return t in this._children},d.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},d.prototype.forEachChild=function(t){u(this._children,t)},d.prototype.forEachGetter=function(t){this._rawModule.getters&&u(this._rawModule.getters,t)},d.prototype.forEachAction=function(t){this._rawModule.actions&&u(this._rawModule.actions,t)},d.prototype.forEachMutation=function(t){this._rawModule.mutations&&u(this._rawModule.mutations,t)},Object.defineProperties(d.prototype,p);var g=function(t){this.register([],t,!1)};function v(t,e,n){if(e.update(n),n.modules)for(var r in n.modules){if(!e.getChild(r))return void 0;v(t.concat(r),e.getChild(r),n.modules[r])}}g.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},g.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,n){return e=e.getChild(n),t+(e.namespaced?n+"/":"")}),"")},g.prototype.update=function(t){v([],this.root,t)},g.prototype.register=function(t,e,n){var r=this;void 0===n&&(n=!0);var i=new d(e,n);if(0===t.length)this.root=i;else{var o=this.get(t.slice(0,-1));o.addChild(t[t.length-1],i)}e.modules&&u(e.modules,(function(e,i){r.register(t.concat(i),e,n)}))},g.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1],r=e.getChild(n);r&&r.runtime&&e.removeChild(n)},g.prototype.isRegistered=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];return!!e&&e.hasChild(n)};var y;var m=function(t){var e=this;void 0===t&&(t={}),!y&&"undefined"!==typeof window&&window.Vue&&P(window.Vue);var n=t.plugins;void 0===n&&(n=[]);var r=t.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(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new y,this._makeLocalGettersCache=Object.create(null);var i=this,o=this,s=o.dispatch,l=o.commit;this.dispatch=function(t,e){return s.call(i,t,e)},this.commit=function(t,e,n){return l.call(i,t,e,n)},this.strict=r;var u=this._modules.root.state;S(this,u,[],this._modules.root),w(this,u),n.forEach((function(t){return t(e)}));var c=void 0!==t.devtools?t.devtools:y.config.devtools;c&&a(this)},b={state:{configurable:!0}};function _(t,e,n){return e.indexOf(t)<0&&(n&&n.prepend?e.unshift(t):e.push(t)),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function x(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;S(t,n,[],t._modules.root,!0),w(t,n,e)}function w(t,e,n){var r=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var i=t._wrappedGetters,o={};u(i,(function(e,n){o[n]=f(e,t),Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})}));var a=y.config.silent;y.config.silent=!0,t._vm=new y({data:{$$state:e},computed:o}),y.config.silent=a,t.strict&&T(t),r&&(n&&t._withCommit((function(){r._data.$$state=null})),y.nextTick((function(){return r.$destroy()})))}function S(t,e,n,r,i){var o=!n.length,a=t._modules.getNamespace(n);if(r.namespaced&&(t._modulesNamespaceMap[a],t._modulesNamespaceMap[a]=r),!o&&!i){var s=I(e,n.slice(0,-1)),l=n[n.length-1];t._withCommit((function(){y.set(s,l,r.state)}))}var u=r.context=O(t,a,n);r.forEachMutation((function(e,n){var r=a+n;k(t,r,e,u)})),r.forEachAction((function(e,n){var r=e.root?n:a+n,i=e.handler||e;A(t,r,i,u)})),r.forEachGetter((function(e,n){var r=a+n;M(t,r,e,u)})),r.forEachChild((function(r,o){S(t,e,n.concat(o),r,i)}))}function O(t,e,n){var r=""===e,i={dispatch:r?t.dispatch:function(n,r,i){var o=E(n,r,i),a=o.payload,s=o.options,l=o.type;return s&&s.root||(l=e+l),t.dispatch(l,a)},commit:r?t.commit:function(n,r,i){var o=E(n,r,i),a=o.payload,s=o.options,l=o.type;s&&s.root||(l=e+l),t.commit(l,a,s)}};return Object.defineProperties(i,{getters:{get:r?function(){return t.getters}:function(){return C(t,e)}},state:{get:function(){return I(t.state,n)}}}),i}function C(t,e){if(!t._makeLocalGettersCache[e]){var n={},r=e.length;Object.keys(t.getters).forEach((function(i){if(i.slice(0,r)===e){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return t.getters[i]},enumerable:!0})}})),t._makeLocalGettersCache[e]=n}return t._makeLocalGettersCache[e]}function k(t,e,n,r){var i=t._mutations[e]||(t._mutations[e]=[]);i.push((function(e){n.call(t,r.state,e)}))}function A(t,e,n,r){var i=t._actions[e]||(t._actions[e]=[]);i.push((function(e){var i=n.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},e);return h(i)||(i=Promise.resolve(i)),t._devtoolHook?i.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):i}))}function M(t,e,n,r){t._wrappedGetters[e]||(t._wrappedGetters[e]=function(t){return n(r.state,r.getters,t.state,t.getters)})}function T(t){t._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function I(t,e){return e.reduce((function(t,e){return t[e]}),t)}function E(t,e,n){return c(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function P(t){y&&t===y||(y=t,r(y))}b.state.get=function(){return this._vm._data.$$state},b.state.set=function(t){0},m.prototype.commit=function(t,e,n){var r=this,i=E(t,e,n),o=i.type,a=i.payload,s=(i.options,{type:o,payload:a}),l=this._mutations[o];l&&(this._withCommit((function(){l.forEach((function(t){t(a)}))})),this._subscribers.slice().forEach((function(t){return t(s,r.state)})))},m.prototype.dispatch=function(t,e){var n=this,r=E(t,e),i=r.type,o=r.payload,a={type:i,payload:o},s=this._actions[i];if(s){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(a,n.state)}))}catch(u){0}var l=s.length>1?Promise.all(s.map((function(t){return t(o)}))):s[0](o);return new Promise((function(t,e){l.then((function(e){try{n._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(a,n.state)}))}catch(u){0}t(e)}),(function(t){try{n._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(a,n.state,t)}))}catch(u){0}e(t)}))}))}},m.prototype.subscribe=function(t,e){return _(t,this._subscribers,e)},m.prototype.subscribeAction=function(t,e){var n="function"===typeof t?{before:t}:t;return _(n,this._actionSubscribers,e)},m.prototype.watch=function(t,e,n){var r=this;return this._watcherVM.$watch((function(){return t(r.state,r.getters)}),e,n)},m.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},m.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"===typeof t&&(t=[t]),this._modules.register(t,e),S(this,this.state,t,this._modules.get(t),n.preserveState),w(this,this.state)},m.prototype.unregisterModule=function(t){var e=this;"string"===typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var n=I(e.state,t.slice(0,-1));y.delete(n,t[t.length-1])})),x(this)},m.prototype.hasModule=function(t){return"string"===typeof t&&(t=[t]),this._modules.isRegistered(t)},m.prototype.hotUpdate=function(t){this._modules.update(t),x(this,!0)},m.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(m.prototype,b);var j=z((function(t,e){var n={};return B(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var r=V(this.$store,"mapState",t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"===typeof i?i.call(this,e,n):e[i]},n[r].vuex=!0})),n})),L=z((function(t,e){var n={};return B(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var r=this.$store.commit;if(t){var o=V(this.$store,"mapMutations",t);if(!o)return;r=o.context.commit}return"function"===typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n})),D=z((function(t,e){var n={};return B(e).forEach((function(e){var r=e.key,i=e.val;i=t+i,n[r]=function(){if(!t||V(this.$store,"mapGetters",t))return this.$store.getters[i]},n[r].vuex=!0})),n})),R=z((function(t,e){var n={};return B(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var r=this.$store.dispatch;if(t){var o=V(this.$store,"mapActions",t);if(!o)return;r=o.context.dispatch}return"function"===typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n})),N=function(t){return{mapState:j.bind(null,t),mapGetters:D.bind(null,t),mapMutations:L.bind(null,t),mapActions:R.bind(null,t)}};function B(t){return F(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function F(t){return Array.isArray(t)||c(t)}function z(t){return function(e,n){return"string"!==typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function V(t,e,n){var r=t._modulesNamespaceMap[n];return r}function q(t){void 0===t&&(t={});var e=t.collapsed;void 0===e&&(e=!0);var n=t.filter;void 0===n&&(n=function(t,e,n){return!0});var r=t.transformer;void 0===r&&(r=function(t){return t});var i=t.mutationTransformer;void 0===i&&(i=function(t){return t});var o=t.actionFilter;void 0===o&&(o=function(t,e){return!0});var a=t.actionTransformer;void 0===a&&(a=function(t){return t});var s=t.logMutations;void 0===s&&(s=!0);var u=t.logActions;void 0===u&&(u=!0);var c=t.logger;return void 0===c&&(c=console),function(t){var h=l(t.state);"undefined"!==typeof c&&(s&&t.subscribe((function(t,o){var a=l(o);if(n(t,h,a)){var s=W(),u=i(t),f="mutation "+t.type+s;G(c,f,e),c.log("%c prev state","color: #9E9E9E; font-weight: bold",r(h)),c.log("%c mutation","color: #03A9F4; font-weight: bold",u),c.log("%c next state","color: #4CAF50; font-weight: bold",r(a)),H(c)}h=a})),u&&t.subscribeAction((function(t,n){if(o(t,n)){var r=W(),i=a(t),s="action "+t.type+r;G(c,s,e),c.log("%c action","color: #03A9F4; font-weight: bold",i),H(c)}})))}}function G(t,e,n){var r=n?t.groupCollapsed:t.group;try{r.call(t,e)}catch(i){t.log(e)}}function H(t){try{t.groupEnd()}catch(e){t.log("—— log end ——")}}function W(){var t=new Date;return" @ "+$(t.getHours(),2)+":"+$(t.getMinutes(),2)+":"+$(t.getSeconds(),2)+"."+$(t.getMilliseconds(),3)}function U(t,e){return new Array(e+1).join(t)}function $(t,e){return U("0",e-t.toString().length)+t}var Y={Store:m,install:P,version:"3.6.0",mapState:j,mapMutations:L,mapGetters:D,mapActions:R,createNamespacedHelpers:N,createLogger:q};e["a"]=Y}).call(this,n("c8ba"))},"2f9a":function(t,e){t.exports=function(){}},"2fae":function(t,e,n){"use strict";function r(t){var e=this;if(e instanceof r||(e=new r),e.tail=null,e.head=null,e.length=0,t&&"function"===typeof t.forEach)t.forEach((function(t){e.push(t)}));else if(arguments.length>0)for(var n=0,i=arguments.length;n<i;n++)e.push(arguments[n]);return e}function i(t,e,n){var r=e===t.head?new s(n,null,e,t):new s(n,e,e.next,t);return null===r.next&&(t.tail=r),null===r.prev&&(t.head=r),t.length++,r}function o(t,e){t.tail=new s(e,t.tail,null,t),t.head||(t.head=t.tail),t.length++}function a(t,e){t.head=new s(e,null,t.head,t),t.tail||(t.tail=t.head),t.length++}function s(t,e,n,r){if(!(this instanceof s))return new s(t,e,n,r);this.list=r,this.value=t,e?(e.next=this,this.prev=e):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}t.exports=r,r.Node=s,r.create=r,r.prototype.removeNode=function(t){if(t.list!==this)throw new Error("removing node which does not belong to this list");var e=t.next,n=t.prev;return e&&(e.prev=n),n&&(n.next=e),t===this.head&&(this.head=e),t===this.tail&&(this.tail=n),t.list.length--,t.next=null,t.prev=null,t.list=null,e},r.prototype.unshiftNode=function(t){if(t!==this.head){t.list&&t.list.removeNode(t);var e=this.head;t.list=this,t.next=e,e&&(e.prev=t),this.head=t,this.tail||(this.tail=t),this.length++}},r.prototype.pushNode=function(t){if(t!==this.tail){t.list&&t.list.removeNode(t);var e=this.tail;t.list=this,t.prev=e,e&&(e.next=t),this.tail=t,this.head||(this.head=t),this.length++}},r.prototype.push=function(){for(var t=0,e=arguments.length;t<e;t++)o(this,arguments[t]);return this.length},r.prototype.unshift=function(){for(var t=0,e=arguments.length;t<e;t++)a(this,arguments[t]);return this.length},r.prototype.pop=function(){if(this.tail){var t=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,t}},r.prototype.shift=function(){if(this.head){var t=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,t}},r.prototype.forEach=function(t,e){e=e||this;for(var n=this.head,r=0;null!==n;r++)t.call(e,n.value,r,this),n=n.next},r.prototype.forEachReverse=function(t,e){e=e||this;for(var n=this.tail,r=this.length-1;null!==n;r--)t.call(e,n.value,r,this),n=n.prev},r.prototype.get=function(t){for(var e=0,n=this.head;null!==n&&e<t;e++)n=n.next;if(e===t&&null!==n)return n.value},r.prototype.getReverse=function(t){for(var e=0,n=this.tail;null!==n&&e<t;e++)n=n.prev;if(e===t&&null!==n)return n.value},r.prototype.map=function(t,e){e=e||this;for(var n=new r,i=this.head;null!==i;)n.push(t.call(e,i.value,this)),i=i.next;return n},r.prototype.mapReverse=function(t,e){e=e||this;for(var n=new r,i=this.tail;null!==i;)n.push(t.call(e,i.value,this)),i=i.prev;return n},r.prototype.reduce=function(t,e){var n,r=this.head;if(arguments.length>1)n=e;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");r=this.head.next,n=this.head.value}for(var i=0;null!==r;i++)n=t(n,r.value,i),r=r.next;return n},r.prototype.reduceReverse=function(t,e){var n,r=this.tail;if(arguments.length>1)n=e;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");r=this.tail.prev,n=this.tail.value}for(var i=this.length-1;null!==r;i--)n=t(n,r.value,i),r=r.prev;return n},r.prototype.toArray=function(){for(var t=new Array(this.length),e=0,n=this.head;null!==n;e++)t[e]=n.value,n=n.next;return t},r.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,n=this.tail;null!==n;e++)t[e]=n.value,n=n.prev;return t},r.prototype.slice=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var n=new r;if(e<t||e<0)return n;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=0,o=this.head;null!==o&&i<t;i++)o=o.next;for(;null!==o&&i<e;i++,o=o.next)n.push(o.value);return n},r.prototype.sliceReverse=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var n=new r;if(e<t||e<0)return n;t<0&&(t=0),e>this.length&&(e=this.length);for(var i=this.length,o=this.tail;null!==o&&i>e;i--)o=o.prev;for(;null!==o&&i>t;i--,o=o.prev)n.push(o.value);return n},r.prototype.splice=function(t,e,...n){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var r=0,o=this.head;null!==o&&r<t;r++)o=o.next;var a=[];for(r=0;o&&r<e;r++)a.push(o.value),o=this.removeNode(o);null===o&&(o=this.tail),o!==this.head&&o!==this.tail&&(o=o.prev);for(r=0;r<n.length;r++)o=i(this,o,n[r]);return a},r.prototype.reverse=function(){for(var t=this.head,e=this.tail,n=t;null!==n;n=n.prev){var r=n.prev;n.prev=n.next,n.next=r}return this.head=e,this.tail=t,this};try{n("aff9")(r)}catch(l){}},"301c":function(t,e,n){n("e198")("asyncIterator")},"30b5":function(t,e,n){"use strict";var r=n("c532");function i(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var o;if(n)o=n(e);else if(r.isURLSearchParams(e))o=e.toString();else{var a=[];r.forEach(e,(function(t,e){null!==t&&"undefined"!==typeof t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,(function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),a.push(i(e)+"="+i(t))})))})),o=a.join("&")}if(o){var s=t.indexOf("#");-1!==s&&(t=t.slice(0,s)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}},"313e":function(t,e,n){"use strict";n.r(e),n.d(e,"version",(function(){return Mb})),n.d(e,"dependencies",(function(){return Tb})),n.d(e,"PRIORITY",(function(){return Ub})),n.d(e,"init",(function(){return z_})),n.d(e,"connect",(function(){return V_})),n.d(e,"disConnect",(function(){return q_})),n.d(e,"disconnect",(function(){return G_})),n.d(e,"dispose",(function(){return H_})),n.d(e,"getInstanceByDom",(function(){return W_})),n.d(e,"getInstanceById",(function(){return U_})),n.d(e,"registerTheme",(function(){return $_})),n.d(e,"registerPreprocessor",(function(){return Y_})),n.d(e,"registerProcessor",(function(){return X_})),n.d(e,"registerPostInit",(function(){return K_})),n.d(e,"registerPostUpdate",(function(){return Z_})),n.d(e,"registerUpdateLifecycle",(function(){return Q_})),n.d(e,"registerAction",(function(){return J_})),n.d(e,"registerCoordinateSystem",(function(){return tx})),n.d(e,"getCoordinateSystemDimensions",(function(){return ex})),n.d(e,"registerLocale",(function(){return oc})),n.d(e,"registerLayout",(function(){return nx})),n.d(e,"registerVisual",(function(){return rx})),n.d(e,"registerLoading",(function(){return ax})),n.d(e,"setCanvasCreator",(function(){return sx})),n.d(e,"registerMap",(function(){return lx})),n.d(e,"getMap",(function(){return ux})),n.d(e,"registerTransform",(function(){return cx})),n.d(e,"dataTool",(function(){return hx})),n.d(e,"zrender",(function(){return o})),n.d(e,"matrix",(function(){return i})),n.d(e,"vector",(function(){return r})),n.d(e,"zrUtil",(function(){return v})),n.d(e,"color",(function(){return Qe})),n.d(e,"throttle",(function(){return yy})),n.d(e,"helper",(function(){return s})),n.d(e,"use",(function(){return px})),n.d(e,"setPlatformAPI",(function(){return fr["e"]})),n.d(e,"parseGeoJSON",(function(){return oO})),n.d(e,"parseGeoJson",(function(){return oO})),n.d(e,"number",(function(){return l})),n.d(e,"time",(function(){return u})),n.d(e,"graphic",(function(){return c})),n.d(e,"format",(function(){return h})),n.d(e,"util",(function(){return f})),n.d(e,"env",(function(){return g["a"]})),n.d(e,"List",(function(){return Yx})),n.d(e,"Model",(function(){return Wu})),n.d(e,"Axis",(function(){return kO})),n.d(e,"ComponentModel",(function(){return vh})),n.d(e,"ComponentView",(function(){return Up})),n.d(e,"SeriesModel",(function(){return Hp})),n.d(e,"ChartView",(function(){return dy})),n.d(e,"innerDrawElementOnCanvas",(function(){return ub})),n.d(e,"extendComponentModel",(function(){return AO})),n.d(e,"extendComponentView",(function(){return MO})),n.d(e,"extendSeriesModel",(function(){return TO})),n.d(e,"extendChartView",(function(){return IO}));var r={};n.r(r),n.d(r,"create",(function(){return y})),n.d(r,"copy",(function(){return m})),n.d(r,"clone",(function(){return b})),n.d(r,"set",(function(){return _})),n.d(r,"add",(function(){return x})),n.d(r,"scaleAndAdd",(function(){return w})),n.d(r,"sub",(function(){return S})),n.d(r,"len",(function(){return O})),n.d(r,"length",(function(){return C})),n.d(r,"lenSquare",(function(){return k})),n.d(r,"lengthSquare",(function(){return A})),n.d(r,"mul",(function(){return M})),n.d(r,"div",(function(){return T})),n.d(r,"dot",(function(){return I})),n.d(r,"scale",(function(){return E})),n.d(r,"normalize",(function(){return P})),n.d(r,"distance",(function(){return j})),n.d(r,"dist",(function(){return L})),n.d(r,"distanceSquare",(function(){return D})),n.d(r,"distSquare",(function(){return R})),n.d(r,"negate",(function(){return N})),n.d(r,"lerp",(function(){return B})),n.d(r,"applyTransform",(function(){return F})),n.d(r,"min",(function(){return z})),n.d(r,"max",(function(){return V}));var i={};n.r(i),n.d(i,"create",(function(){return wt})),n.d(i,"identity",(function(){return St})),n.d(i,"copy",(function(){return Ot})),n.d(i,"mul",(function(){return Ct})),n.d(i,"translate",(function(){return kt})),n.d(i,"rotate",(function(){return At})),n.d(i,"scale",(function(){return Mt})),n.d(i,"invert",(function(){return Tt})),n.d(i,"clone",(function(){return It}));var o={};n.r(o),n.d(o,"init",(function(){return Gr})),n.d(o,"dispose",(function(){return Hr})),n.d(o,"disposeAll",(function(){return Wr})),n.d(o,"getInstance",(function(){return Ur})),n.d(o,"registerPainter",(function(){return $r})),n.d(o,"version",(function(){return Yr}));var a={};n.r(a),n.d(a,"updateProps",(function(){return lu})),n.d(a,"initProps",(function(){return uu})),n.d(a,"removeElement",(function(){return hu})),n.d(a,"removeElementWithFadeOut",(function(){return du})),n.d(a,"isElementRemoved",(function(){return cu})),n.d(a,"extendShape",(function(){return Iv})),n.d(a,"extendPath",(function(){return Pv})),n.d(a,"registerShape",(function(){return jv})),n.d(a,"getShapeClass",(function(){return Lv})),n.d(a,"makePath",(function(){return Dv})),n.d(a,"makeImage",(function(){return Rv})),n.d(a,"mergePath",(function(){return Bv})),n.d(a,"resizePath",(function(){return Fv})),n.d(a,"subPixelOptimizeLine",(function(){return zv})),n.d(a,"subPixelOptimizeRect",(function(){return Vv})),n.d(a,"subPixelOptimize",(function(){return qv})),n.d(a,"getTransform",(function(){return Gv})),n.d(a,"applyTransform",(function(){return Hv})),n.d(a,"transformDirection",(function(){return Wv})),n.d(a,"groupTransition",(function(){return Yv})),n.d(a,"clipPointsByRect",(function(){return Xv})),n.d(a,"clipRectByRect",(function(){return Kv})),n.d(a,"createIcon",(function(){return Zv})),n.d(a,"linePolygonIntersect",(function(){return Qv})),n.d(a,"lineLineIntersect",(function(){return Jv})),n.d(a,"setTooltipConfig",(function(){return ny})),n.d(a,"traverseElements",(function(){return iy})),n.d(a,"Group",(function(){return Nr})),n.d(a,"Image",(function(){return gs})),n.d(a,"Text",(function(){return qs})),n.d(a,"Circle",(function(){return bg})),n.d(a,"Ellipse",(function(){return wg})),n.d(a,"Sector",(function(){return zg})),n.d(a,"Ring",(function(){return Gg})),n.d(a,"Polygon",(function(){return Yg})),n.d(a,"Polyline",(function(){return Zg})),n.d(a,"Rect",(function(){return Os})),n.d(a,"Line",(function(){return ev})),n.d(a,"BezierCurve",(function(){return av})),n.d(a,"Arc",(function(){return uv})),n.d(a,"IncrementalDisplayable",(function(){return kv})),n.d(a,"CompoundPath",(function(){return hv})),n.d(a,"LinearGradient",(function(){return gv})),n.d(a,"RadialGradient",(function(){return yv})),n.d(a,"BoundingRect",(function(){return qt})),n.d(a,"OrientedBoundingRect",(function(){return Sv})),n.d(a,"Point",(function(){return Pt})),n.d(a,"Path",(function(){return ss}));var s={};n.r(s),n.d(s,"createList",(function(){return FS})),n.d(s,"getLayoutRect",(function(){return ah})),n.d(s,"createDimensions",(function(){return Xx})),n.d(s,"dataStack",(function(){return zS})),n.d(s,"createSymbol",(function(){return km})),n.d(s,"createScale",(function(){return VS})),n.d(s,"mixinAxisModelCommonMethods",(function(){return qS})),n.d(s,"getECData",(function(){return Gs})),n.d(s,"enableHoverEmphasis",(function(){return Wl})),n.d(s,"createTextStyle",(function(){return GS}));var l={};n.r(l),n.d(l,"linearMap",(function(){return Qr})),n.d(l,"round",(function(){return ti})),n.d(l,"asc",(function(){return ei})),n.d(l,"getPrecision",(function(){return ni})),n.d(l,"getPrecisionSafe",(function(){return ri})),n.d(l,"getPixelPrecision",(function(){return ii})),n.d(l,"getPercentWithPrecision",(function(){return oi})),n.d(l,"MAX_SAFE_INTEGER",(function(){return li})),n.d(l,"remRadian",(function(){return ui})),n.d(l,"isRadianAroundZero",(function(){return ci})),n.d(l,"parseDate",(function(){return fi})),n.d(l,"quantity",(function(){return di})),n.d(l,"quantityExponent",(function(){return pi})),n.d(l,"nice",(function(){return gi})),n.d(l,"quantile",(function(){return vi})),n.d(l,"reformIntervals",(function(){return yi})),n.d(l,"isNumeric",(function(){return bi})),n.d(l,"numericToNumber",(function(){return mi}));var u={};n.r(u),n.d(u,"parse",(function(){return fi})),n.d(u,"format",(function(){return Sc}));var c={};n.r(c),n.d(c,"extendShape",(function(){return Iv})),n.d(c,"extendPath",(function(){return Pv})),n.d(c,"makePath",(function(){return Dv})),n.d(c,"makeImage",(function(){return Rv})),n.d(c,"mergePath",(function(){return Bv})),n.d(c,"resizePath",(function(){return Fv})),n.d(c,"createIcon",(function(){return Zv})),n.d(c,"updateProps",(function(){return lu})),n.d(c,"initProps",(function(){return uu})),n.d(c,"getTransform",(function(){return Gv})),n.d(c,"clipPointsByRect",(function(){return Xv})),n.d(c,"clipRectByRect",(function(){return Kv})),n.d(c,"registerShape",(function(){return jv})),n.d(c,"getShapeClass",(function(){return Lv})),n.d(c,"Group",(function(){return Nr})),n.d(c,"Image",(function(){return gs})),n.d(c,"Text",(function(){return qs})),n.d(c,"Circle",(function(){return bg})),n.d(c,"Ellipse",(function(){return wg})),n.d(c,"Sector",(function(){return zg})),n.d(c,"Ring",(function(){return Gg})),n.d(c,"Polygon",(function(){return Yg})),n.d(c,"Polyline",(function(){return Zg})),n.d(c,"Rect",(function(){return Os})),n.d(c,"Line",(function(){return ev})),n.d(c,"BezierCurve",(function(){return av})),n.d(c,"Arc",(function(){return uv})),n.d(c,"IncrementalDisplayable",(function(){return kv})),n.d(c,"CompoundPath",(function(){return hv})),n.d(c,"LinearGradient",(function(){return gv})),n.d(c,"RadialGradient",(function(){return yv})),n.d(c,"BoundingRect",(function(){return qt}));var h={};n.r(h),n.d(h,"addCommas",(function(){return Vc})),n.d(h,"toCamelCase",(function(){return qc})),n.d(h,"normalizeCssArray",(function(){return Gc})),n.d(h,"encodeHTML",(function(){return ot})),n.d(h,"formatTpl",(function(){return $c})),n.d(h,"getTooltipMarker",(function(){return Xc})),n.d(h,"formatTime",(function(){return Kc})),n.d(h,"capitalFirst",(function(){return Zc})),n.d(h,"truncateText",(function(){return Eo})),n.d(h,"getTextRect",(function(){return aO}));var f={};n.r(f),n.d(f,"map",(function(){return v["map"]})),n.d(f,"each",(function(){return v["each"]})),n.d(f,"indexOf",(function(){return v["indexOf"]})),n.d(f,"inherits",(function(){return v["inherits"]})),n.d(f,"reduce",(function(){return v["reduce"]})),n.d(f,"filter",(function(){return v["filter"]})),n.d(f,"bind",(function(){return v["bind"]})),n.d(f,"curry",(function(){return v["curry"]})),n.d(f,"isArray",(function(){return v["isArray"]})),n.d(f,"isString",(function(){return v["isString"]})),n.d(f,"isObject",(function(){return v["isObject"]})),n.d(f,"isFunction",(function(){return v["isFunction"]})),n.d(f,"extend",(function(){return v["extend"]})),n.d(f,"defaults",(function(){return v["defaults"]})),n.d(f,"clone",(function(){return v["clone"]})),n.d(f,"merge",(function(){return v["merge"]}));
|
||
/*! *****************************************************************************
|
||
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 d=function(t,e){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},d(t,e)};function p(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}d(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create;Object.create;var g=n("22d1"),v=n("6d8b");function y(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function m(t,e){return t[0]=e[0],t[1]=e[1],t}function b(t){return[t[0],t[1]]}function _(t,e,n){return t[0]=e,t[1]=n,t}function x(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function w(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t}function S(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function O(t){return Math.sqrt(k(t))}var C=O;function k(t){return t[0]*t[0]+t[1]*t[1]}var A=k;function M(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function T(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function I(t,e){return t[0]*e[0]+t[1]*e[1]}function E(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function P(t,e){var n=O(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function j(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var L=j;function D(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var R=D;function N(t,e){return t[0]=-e[0],t[1]=-e[1],t}function B(t,e,n,r){return t[0]=e[0]+r*(n[0]-e[0]),t[1]=e[1]+r*(n[1]-e[1]),t}function F(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t}function z(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function V(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}var q=function(){function t(t,e){this.target=t,this.topTarget=e&&e.topTarget}return t}(),G=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(t){var e=t.target;while(e&&!e.draggable)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new q(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,r=t.offsetY,i=n-this._x,o=r-this._y;this._x=n,this._y=r,e.drift(i,o,t),this.handler.dispatchToElement(new q(e,t),"drag",t.event);var a=this.handler.findHover(n,r,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.handler.dispatchToElement(new q(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(new q(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new q(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new q(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}(),H=G,W=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,n,r){this._$handlers||(this._$handlers={});var i=this._$handlers;if("function"===typeof e&&(r=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),i[t]||(i[t]=[]);for(var a=0;a<i[t].length;a++)if(i[t][a].h===n)return this;var s={h:n,query:e,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},l=i[t].length-1,u=i[t][l];return u&&u.callAtLast?i[t].splice(l,0,s):i[t].push(s),this},t.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},t.prototype.off=function(t,e){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var r=[],i=0,o=n[t].length;i<o;i++)n[t][i].h!==e&&r.push(n[t][i]);n[t]=r}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];return this},t.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[t],i=this._$eventProcessor;if(r)for(var o=e.length,a=r.length,s=0;s<a;s++){var l=r[s];if(!i||!i.filter||null==l.query||i.filter(t,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e);break}}return i&&i.afterTrigger&&i.afterTrigger(t),this},t.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[t],i=this._$eventProcessor;if(r)for(var o=e.length,a=e[o-1],s=r.length,l=0;l<s;l++){var u=r[l];if(!i||!i.filter||null==u.query||i.filter(t,u.query))switch(o){case 0:u.h.call(a);break;case 1:u.h.call(a,e[0]);break;case 2:u.h.call(a,e[0],e[1]);break;default:u.h.apply(a,e.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(t),this},t}(),U=W,$=Math.log(2);function Y(t,e,n,r,i,o){var a=r+"-"+i,s=t.length;if(o.hasOwnProperty(a))return o[a];if(1===e){var l=Math.round(Math.log((1<<s)-1&~i)/$);return t[n][l]}var u=r|1<<n,c=n+1;while(r&1<<c)c++;for(var h=0,f=0,d=0;f<s;f++){var p=1<<f;p&i||(h+=(d%2?-1:1)*t[n][f]*Y(t,e-1,c,u,i|p,o),d++)}return o[a]=h,h}function X(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],r={},i=Y(n,8,0,0,0,r);if(0!==i){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*Y(n,7,0===a?1:0,1<<a,1<<s,r)/i*e[a];return function(t,e,n){var r=e*o[6]+n*o[7]+1;t[0]=(e*o[0]+n*o[1]+o[2])/r,t[1]=(e*o[3]+n*o[4]+o[5])/r}}}var K="___zrEVENTSAVED",Z=[];function Q(t,e,n,r,i){return J(Z,e,r,i,!0)&&J(t,n,Z[0],Z[1])}function J(t,e,n,r,i){if(e.getBoundingClientRect&&g["a"].domSupported&&!nt(e)){var o=e[K]||(e[K]={}),a=tt(e,o),s=et(a,o,i);if(s)return s(t,n,r),!0}return!1}function tt(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var r=["left","right"],i=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=a.style,l=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[l]+":0",i[u]+":0",r[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}function et(t,e,n){for(var r=n?"invTrans":"trans",i=e[r],o=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var c=t[u].getBoundingClientRect(),h=2*u,f=c.left,d=c.top;a.push(f,d),l=l&&o&&f===o[h]&&d===o[h+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&i?i:(e.srcCoords=a,e[r]=n?X(s,a):X(a,s))}function nt(t){return"CANVAS"===t.nodeName.toUpperCase()}var rt=/([&<>"'])/g,it={"&":"&","<":"<",">":">",'"':""","'":"'"};function ot(t){return null==t?"":(t+"").replace(rt,(function(t,e){return it[e]}))}var at=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,st=[],lt=g["a"].browser.firefox&&+g["a"].browser.version.split(".")[0]<39;function ut(t,e,n,r){return n=n||{},r?ct(t,e,n):lt&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):ct(t,e,n),n}function ct(t,e,n){if(g["a"].domSupported&&t.getBoundingClientRect){var r=e.clientX,i=e.clientY;if(nt(t)){var o=t.getBoundingClientRect();return n.zrX=r-o.left,void(n.zrY=i-o.top)}if(J(st,t,r,i))return n.zrX=st[0],void(n.zrY=st[1])}n.zrX=n.zrY=0}function ht(t){return t||window.event}function ft(t,e,n){if(e=ht(e),null!=e.zrX)return e;var r=e.type,i=r&&r.indexOf("touch")>=0;if(i){var o="touchend"!==r?e.targetTouches[0]:e.changedTouches[0];o&&ut(t,o,e,n)}else{ut(t,e,e,n);var a=dt(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return null==e.which&&void 0!==s&&at.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function dt(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,r=t.deltaY;if(null==n||null==r)return e;var i=0!==r?Math.abs(r):Math.abs(n),o=r>0?-1:r<0?1:n>0?-1:1;return 3*i*o}function pt(t,e,n,r){t.addEventListener(e,n,r)}function gt(t,e,n,r){t.removeEventListener(e,n,r)}var vt=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function yt(t){return 2===t.which||3===t.which}var mt=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var r=t.touches;if(r){for(var i={points:[],touches:[],target:e,event:t},o=0,a=r.length;o<a;o++){var s=r[o],l=ut(n,s,{});i.points.push([l.zrX,l.zrY]),i.touches.push(s)}this._track.push(i)}},t.prototype._recognize=function(t){for(var e in xt)if(xt.hasOwnProperty(e)){var n=xt[e](this._track,t);if(n)return n}},t}();function bt(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}function _t(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var xt={pinch:function(t,e){var n=t.length;if(n){var r=(t[n-1]||{}).points,i=(t[n-2]||{}).points||r;if(i&&i.length>1&&r&&r.length>1){var o=bt(r)/bt(i);!isFinite(o)&&(o=1),e.pinchScale=o;var a=_t(r);return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:t[0].target,event:e}}}}};function wt(){return[1,0,0,1,0,0]}function St(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Ot(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function Ct(t,e,n){var r=e[0]*n[0]+e[2]*n[1],i=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function kt(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function At(t,e,n){var r=e[0],i=e[2],o=e[4],a=e[1],s=e[3],l=e[5],u=Math.sin(n),c=Math.cos(n);return t[0]=r*c+a*u,t[1]=-r*u+a*c,t[2]=i*c+s*u,t[3]=-i*u+c*s,t[4]=c*o+u*l,t[5]=c*l-u*o,t}function Mt(t,e,n){var r=n[0],i=n[1];return t[0]=e[0]*r,t[1]=e[1]*i,t[2]=e[2]*r,t[3]=e[3]*i,t[4]=e[4]*r,t[5]=e[5]*i,t}function Tt(t,e){var n=e[0],r=e[2],i=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*r;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-r*l,t[3]=n*l,t[4]=(r*s-a*i)*l,t[5]=(o*i-n*s)*l,t):null}function It(t){var e=wt();return Ot(e,t),e}var Et=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,r){t.x=e.x+n.x*r,t.y=e.y+n.y*r},t.lerp=function(t,e,n,r){var i=1-r;t.x=i*e.x+r*n.x,t.y=i*e.y+r*n.y},t}(),Pt=Et,jt=Math.min,Lt=Math.max,Dt=new Pt,Rt=new Pt,Nt=new Pt,Bt=new Pt,Ft=new Pt,zt=new Pt,Vt=function(){function t(t,e,n,r){n<0&&(t+=n,n=-n),r<0&&(e+=r,r=-r),this.x=t,this.y=e,this.width=n,this.height=r}return t.prototype.union=function(t){var e=jt(t.x,this.x),n=jt(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Lt(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Lt(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,r=t.height/e.height,i=wt();return kt(i,i,[-e.x,-e.y]),Mt(i,i,[n,r]),kt(i,i,[t.x,t.y]),i},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var r=this,i=r.x,o=r.x+r.width,a=r.y,s=r.y+r.height,l=e.x,u=e.x+e.width,c=e.y,h=e.y+e.height,f=!(o<l||u<i||s<c||h<a);if(n){var d=1/0,p=0,g=Math.abs(o-l),v=Math.abs(u-i),y=Math.abs(s-c),m=Math.abs(h-a),b=Math.min(g,v),_=Math.min(y,m);o<l||u<i?b>p&&(p=b,g<v?Pt.set(zt,-g,0):Pt.set(zt,v,0)):b<d&&(d=b,g<v?Pt.set(Ft,g,0):Pt.set(Ft,-v,0)),s<c||h<a?_>p&&(p=_,y<m?Pt.set(zt,0,-y):Pt.set(zt,0,m)):b<d&&(d=b,y<m?Pt.set(Ft,0,y):Pt.set(Ft,0,-m))}return n&&Pt.copy(n,f?Ft:zt),f},t.prototype.contain=function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,r){if(r){if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],o=r[3],a=r[4],s=r[5];return e.x=n.x*i+a,e.y=n.y*o+s,e.width=n.width*i,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}Dt.x=Nt.x=n.x,Dt.y=Bt.y=n.y,Rt.x=Bt.x=n.x+n.width,Rt.y=Nt.y=n.y+n.height,Dt.transform(r),Bt.transform(r),Rt.transform(r),Nt.transform(r),e.x=jt(Dt.x,Rt.x,Nt.x,Bt.x),e.y=jt(Dt.y,Rt.y,Nt.y,Bt.y);var l=Lt(Dt.x,Rt.x,Nt.x,Bt.x),u=Lt(Dt.y,Rt.y,Nt.y,Bt.y);e.width=l-e.x,e.height=u-e.y}else e!==n&&t.copy(e,n)},t}(),qt=Vt,Gt="silent";function Ht(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.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:Wt}}function Wt(){vt(this.event)}var Ut=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return p(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(U),$t=function(){function t(t,e){this.x=t,this.y=e}return t}(),Yt=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Xt=new qt(0,0,0,0),Kt=function(t){function e(e,n,r,i,o){var a=t.call(this)||this;return a._hovered=new $t(0,0),a.storage=e,a.painter=n,a.painterRoot=i,a._pointerSize=o,r=r||new Ut,a.proxy=null,a.setHandlerProxy(r),a._draggingMgr=new H(a),a}return p(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(v["each"](Yt,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,r=Jt(this,e,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?new $t(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(i,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new $t(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,n){t=t||{};var r=t.target;if(!r||!r.silent){var i="on"+e,o=Ht(e,t,n);while(r)if(r[i]&&(o.cancelBubble=!!r[i].call(r,o)),r.trigger(e,o),r=r.__hostTarget?r.__hostTarget:r.parent,o.cancelBubble)break;o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(t){"function"===typeof t[i]&&t[i].call(t,o),t.trigger&&t.trigger(e,o)})))}},e.prototype.findHover=function(t,e,n){var r=this.storage.getDisplayList(),i=new $t(t,e);if(Qt(r,i,t,e,n),this._pointerSize&&!i.target){for(var o=[],a=this._pointerSize,s=a/2,l=new qt(t-s,e-s,a,a),u=r.length-1;u>=0;u--){var c=r[u];c===n||c.ignore||c.ignoreCoarsePointer||c.parent&&c.parent.ignoreCoarsePointer||(Xt.copy(c.getBoundingRect()),c.transform&&Xt.applyTransform(c.transform),Xt.intersect(l)&&o.push(c))}if(o.length)for(var h=4,f=Math.PI/12,d=2*Math.PI,p=0;p<s;p+=h)for(var g=0;g<d;g+=f){var v=t+p*Math.cos(g),y=e+p*Math.sin(g);if(Qt(o,i,v,y,n),i.target)return i}}return i},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new mt);var n=this._gestureMgr;"start"===e&&n.clear();var r=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),r){var i=r.type;t.gestureEvent=i;var o=new $t;o.target=r.target,this.dispatchToElement(o,i,r.event)}},e}(U);function Zt(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){var r=t,i=void 0,o=!1;while(r){if(r.ignoreClip&&(o=!0),!o){var a=r.getClipPath();if(a&&!a.contain(e,n))return!1;r.silent&&(i=!0)}var s=r.__hostTarget;r=s||r.parent}return!i||Gt}return!1}function Qt(t,e,n,r,i){for(var o=t.length-1;o>=0;o--){var a=t[o],s=void 0;if(a!==i&&!a.ignore&&(s=Zt(a,n,r))&&(!e.topTarget&&(e.topTarget=a),s!==Gt)){e.target=a;break}}}function Jt(t,e,n){var r=t.painter;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}v["each"](["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){Kt.prototype[t]=function(e){var n,r,i=e.zrX,o=e.zrY,a=Jt(this,i,o);if("mouseup"===t&&a||(n=this.findHover(i,o),r=n.target),"mousedown"===t)this._downEl=r,this._downPoint=[e.zrX,e.zrY],this._upEl=r;else if("mouseup"===t)this._upEl=r;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||L(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}}));var te=Kt,ee=32,ne=7;function re(t){var e=0;while(t>=ee)e|=1&t,t>>=1;return t+e}function ie(t,e,n,r){var i=e+1;if(i===n)return 1;if(r(t[i++],t[e])<0){while(i<n&&r(t[i],t[i-1])<0)i++;oe(t,e,i)}else while(i<n&&r(t[i],t[i-1])>=0)i++;return i-e}function oe(t,e,n){n--;while(e<n){var r=t[e];t[e++]=t[n],t[n--]=r}}function ae(t,e,n,r,i){for(r===e&&r++;r<n;r++){var o,a=t[r],s=e,l=r;while(s<l)o=s+l>>>1,i(a,t[o])<0?l=o:s=o+1;var u=r-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:while(u>0)t[s+u]=t[s+u-1],u--}t[s]=a}}function se(t,e,n,r,i,o){var a=0,s=0,l=1;if(o(t,e[n+i])>0){s=r-i;while(l<s&&o(t,e[n+i+l])>0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}else{s=i+1;while(l<s&&o(t,e[n+i-l])<=0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}a++;while(a<l){var c=a+(l-a>>>1);o(t,e[n+c])>0?a=c+1:l=c}return l}function le(t,e,n,r,i,o){var a=0,s=0,l=1;if(o(t,e[n+i])<0){s=i+1;while(l<s&&o(t,e[n+i-l])<0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s);var u=a;a=i-l,l=i-u}else{s=r-i;while(l<s&&o(t,e[n+i+l])>=0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}a++;while(a<l){var c=a+(l-a>>>1);o(t,e[n+c])<0?l=c:a=c+1}return l}function ue(t,e){var n,r,i=ne,o=0,a=0;o=t.length;var s=[];function l(t,e){n[a]=t,r[a]=e,a+=1}function u(){while(a>1){var t=a-2;if(t>=1&&r[t-1]<=r[t]+r[t+1]||t>=2&&r[t-2]<=r[t]+r[t-1])r[t-1]<r[t+1]&&t--;else if(r[t]>r[t+1])break;h(t)}}function c(){while(a>1){var t=a-2;t>0&&r[t-1]<r[t+1]&&t--,h(t)}}function h(i){var o=n[i],s=r[i],l=n[i+1],u=r[i+1];r[i]=s+u,i===a-3&&(n[i+1]=n[i+2],r[i+1]=r[i+2]),a--;var c=le(t[l],t,o,s,0,e);o+=c,s-=c,0!==s&&(u=se(t[o+s-1],t,l,u,u-1,e),0!==u&&(s<=u?f(o,s,l,u):d(o,s,l,u)))}function f(n,r,o,a){var l=0;for(l=0;l<r;l++)s[l]=t[n+l];var u=0,c=o,h=n;if(t[h++]=t[c++],0!==--a)if(1!==r){var f,d,p,g=i;while(1){f=0,d=0,p=!1;do{if(e(t[c],s[u])<0){if(t[h++]=t[c++],d++,f=0,0===--a){p=!0;break}}else if(t[h++]=s[u++],f++,d=0,1===--r){p=!0;break}}while((f|d)<g);if(p)break;do{if(f=le(t[c],s,u,r,0,e),0!==f){for(l=0;l<f;l++)t[h+l]=s[u+l];if(h+=f,u+=f,r-=f,r<=1){p=!0;break}}if(t[h++]=t[c++],0===--a){p=!0;break}if(d=se(s[u],t,c,a,0,e),0!==d){for(l=0;l<d;l++)t[h+l]=t[c+l];if(h+=d,c+=d,a-=d,0===a){p=!0;break}}if(t[h++]=s[u++],1===--r){p=!0;break}g--}while(f>=ne||d>=ne);if(p)break;g<0&&(g=0),g+=2}if(i=g,i<1&&(i=1),1===r){for(l=0;l<a;l++)t[h+l]=t[c+l];t[h+a]=s[u]}else{if(0===r)throw new Error;for(l=0;l<r;l++)t[h+l]=s[u+l]}}else{for(l=0;l<a;l++)t[h+l]=t[c+l];t[h+a]=s[u]}else for(l=0;l<r;l++)t[h+l]=s[u+l]}function d(n,r,o,a){var l=0;for(l=0;l<a;l++)s[l]=t[o+l];var u=n+r-1,c=a-1,h=o+a-1,f=0,d=0;if(t[h--]=t[u--],0!==--r)if(1!==a){var p=i;while(1){var g=0,v=0,y=!1;do{if(e(s[c],t[u])<0){if(t[h--]=t[u--],g++,v=0,0===--r){y=!0;break}}else if(t[h--]=s[c--],v++,g=0,1===--a){y=!0;break}}while((g|v)<p);if(y)break;do{if(g=r-le(s[c],t,n,r,r-1,e),0!==g){for(h-=g,u-=g,r-=g,d=h+1,f=u+1,l=g-1;l>=0;l--)t[d+l]=t[f+l];if(0===r){y=!0;break}}if(t[h--]=s[c--],1===--a){y=!0;break}if(v=a-se(t[u],s,0,a,a-1,e),0!==v){for(h-=v,c-=v,a-=v,d=h+1,f=c+1,l=0;l<v;l++)t[d+l]=s[f+l];if(a<=1){y=!0;break}}if(t[h--]=t[u--],0===--r){y=!0;break}p--}while(g>=ne||v>=ne);if(y)break;p<0&&(p=0),p+=2}if(i=p,i<1&&(i=1),1===a){for(h-=r,u-=r,d=h+1,f=u+1,l=r-1;l>=0;l--)t[d+l]=t[f+l];t[h]=s[c]}else{if(0===a)throw new Error;for(f=h-(a-1),l=0;l<a;l++)t[f+l]=s[l]}}else{for(h-=r,u-=r,d=h+1,f=u+1,l=r-1;l>=0;l--)t[d+l]=t[f+l];t[h]=s[c]}else for(f=h-(a-1),l=0;l<a;l++)t[f+l]=s[l]}return o<120?5:o<1542?10:o<119151?19:40,n=[],r=[],{mergeRuns:u,forceMergeRuns:c,pushRun:l}}function ce(t,e,n,r){n||(n=0),r||(r=t.length);var i=r-n;if(!(i<2)){var o=0;if(i<ee)return o=ie(t,n,r,e),void ae(t,n,r,n+o,e);var a=ue(t,e),s=re(i);do{if(o=ie(t,n,r,e),o<s){var l=i;l>s&&(l=s),ae(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),i-=o,n+=o}while(0!==i);a.forceMergeRuns()}}var he=1,fe=2,de=4,pe=!1;function ge(){pe||(pe=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function ve(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var ye,me=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=ve}return t.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},t.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return!t&&n.length||this.updateDisplayList(e),n},t.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,r=0,i=e.length;r<i;r++)this._updateAndAddDisplayable(e[r],null,t);n.length=this._displayListLen,ce(n,ve)},t.prototype._updateAndAddDisplayable=function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.update(),t.afterUpdate();var r=t.getClipPath();if(t.ignoreClip)e=null;else if(r){e=e?e.slice():[];var i=r,o=t;while(i)i.parent=o,i.updateTransform(),e.push(i),o=i,i=i.getClipPath()}if(t.childrenRef){for(var a=t.childrenRef(),s=0;s<a.length;s++){var l=a[s];t.__dirty&&(l.__dirty|=he),this._updateAndAddDisplayable(l,e,n)}t.__dirty=0}else{var u=t;e&&e.length?u.__clipPaths=e:u.__clipPaths&&u.__clipPaths.length>0&&(u.__clipPaths=[]),isNaN(u.z)&&(ge(),u.z=0),isNaN(u.z2)&&(ge(),u.z2=0),isNaN(u.zlevel)&&(ge(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var c=t.getDecalElement&&t.getDecalElement();c&&this._updateAndAddDisplayable(c,e,n);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,e,n);var f=t.getTextContent();f&&this._updateAndAddDisplayable(f,e,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e<n;e++)this.delRoot(t[e]);else{var r=v["indexOf"](this._roots,t);r>=0&&this._roots.splice(r,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}(),be=me;ye=g["a"].hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var _e=ye,xe={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1,r=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r))},elasticOut:function(t){var e,n=.1,r=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/r)+1)},elasticInOut:function(t){var e,n=.1,r=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-xe.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*xe.bounceIn(2*t):.5*xe.bounceOut(2*t-1)+.5}},we=xe,Se=Math.pow,Oe=Math.sqrt,Ce=1e-8,ke=1e-4,Ae=Oe(3),Me=1/3,Te=y(),Ie=y(),Ee=y();function Pe(t){return t>-Ce&&t<Ce}function je(t){return t>Ce||t<-Ce}function Le(t,e,n,r,i){var o=1-i;return o*o*(o*t+3*i*e)+i*i*(i*r+3*o*n)}function De(t,e,n,r,i){var o=1-i;return 3*(((e-t)*o+2*(n-e)*i)*o+(r-n)*i*i)}function Re(t,e,n,r,i,o){var a=r+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-i,c=s*s-3*a*l,h=s*l-9*a*u,f=l*l-3*s*u,d=0;if(Pe(c)&&Pe(h))if(Pe(s))o[0]=0;else{var p=-l/s;p>=0&&p<=1&&(o[d++]=p)}else{var g=h*h-4*c*f;if(Pe(g)){var v=h/c,y=(p=-s/a+v,-v/2);p>=0&&p<=1&&(o[d++]=p),y>=0&&y<=1&&(o[d++]=y)}else if(g>0){var m=Oe(g),b=c*s+1.5*a*(-h+m),_=c*s+1.5*a*(-h-m);b=b<0?-Se(-b,Me):Se(b,Me),_=_<0?-Se(-_,Me):Se(_,Me);p=(-s-(b+_))/(3*a);p>=0&&p<=1&&(o[d++]=p)}else{var x=(2*c*s-3*a*h)/(2*Oe(c*c*c)),w=Math.acos(x)/3,S=Oe(c),O=Math.cos(w),C=(p=(-s-2*S*O)/(3*a),y=(-s+S*(O+Ae*Math.sin(w)))/(3*a),(-s+S*(O-Ae*Math.sin(w)))/(3*a));p>=0&&p<=1&&(o[d++]=p),y>=0&&y<=1&&(o[d++]=y),C>=0&&C<=1&&(o[d++]=C)}}return d}function Ne(t,e,n,r,i){var o=6*n-12*e+6*t,a=9*e+3*r-3*t-9*n,s=3*e-3*t,l=0;if(Pe(a)){if(je(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(Pe(c))i[0]=-o/(2*a);else if(c>0){var h=Oe(c),f=(u=(-o+h)/(2*a),(-o-h)/(2*a));u>=0&&u<=1&&(i[l++]=u),f>=0&&f<=1&&(i[l++]=f)}}return l}function Be(t,e,n,r,i,o){var a=(e-t)*i+t,s=(n-e)*i+e,l=(r-n)*i+n,u=(s-a)*i+a,c=(l-s)*i+s,h=(c-u)*i+u;o[0]=t,o[1]=a,o[2]=u,o[3]=h,o[4]=h,o[5]=c,o[6]=l,o[7]=r}function Fe(t,e,n,r,i,o,a,s,l,u,c){var h,f,d,p,g,v=.005,y=1/0;Te[0]=l,Te[1]=u;for(var m=0;m<1;m+=.05)Ie[0]=Le(t,n,i,a,m),Ie[1]=Le(e,r,o,s,m),p=R(Te,Ie),p<y&&(h=m,y=p);y=1/0;for(var b=0;b<32;b++){if(v<ke)break;f=h-v,d=h+v,Ie[0]=Le(t,n,i,a,f),Ie[1]=Le(e,r,o,s,f),p=R(Ie,Te),f>=0&&p<y?(h=f,y=p):(Ee[0]=Le(t,n,i,a,d),Ee[1]=Le(e,r,o,s,d),g=R(Ee,Te),d<=1&&g<y?(h=d,y=g):v*=.5)}return c&&(c[0]=Le(t,n,i,a,h),c[1]=Le(e,r,o,s,h)),Oe(y)}function ze(t,e,n,r,i,o,a,s,l){for(var u=t,c=e,h=0,f=1/l,d=1;d<=l;d++){var p=d*f,g=Le(t,n,i,a,p),v=Le(e,r,o,s,p),y=g-u,m=v-c;h+=Math.sqrt(y*y+m*m),u=g,c=v}return h}function Ve(t,e,n,r){var i=1-r;return i*(i*t+2*r*e)+r*r*n}function qe(t,e,n,r){return 2*((1-r)*(e-t)+r*(n-e))}function Ge(t,e,n,r,i){var o=t-2*e+n,a=2*(e-t),s=t-r,l=0;if(Pe(o)){if(je(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(Pe(c)){u=-a/(2*o);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var h=Oe(c),f=(u=(-a+h)/(2*o),(-a-h)/(2*o));u>=0&&u<=1&&(i[l++]=u),f>=0&&f<=1&&(i[l++]=f)}}return l}function He(t,e,n){var r=t+n-2*e;return 0===r?.5:(t-e)/r}function We(t,e,n,r,i){var o=(e-t)*r+t,a=(n-e)*r+e,s=(a-o)*r+o;i[0]=t,i[1]=o,i[2]=s,i[3]=s,i[4]=a,i[5]=n}function Ue(t,e,n,r,i,o,a,s,l){var u,c=.005,h=1/0;Te[0]=a,Te[1]=s;for(var f=0;f<1;f+=.05){Ie[0]=Ve(t,n,i,f),Ie[1]=Ve(e,r,o,f);var d=R(Te,Ie);d<h&&(u=f,h=d)}h=1/0;for(var p=0;p<32;p++){if(c<ke)break;var g=u-c,v=u+c;Ie[0]=Ve(t,n,i,g),Ie[1]=Ve(e,r,o,g);d=R(Ie,Te);if(g>=0&&d<h)u=g,h=d;else{Ee[0]=Ve(t,n,i,v),Ee[1]=Ve(e,r,o,v);var y=R(Ee,Te);v<=1&&y<h?(u=v,h=y):c*=.5}}return l&&(l[0]=Ve(t,n,i,u),l[1]=Ve(e,r,o,u)),Oe(h)}function $e(t,e,n,r,i,o,a){for(var s=t,l=e,u=0,c=1/a,h=1;h<=a;h++){var f=h*c,d=Ve(t,n,i,f),p=Ve(e,r,o,f),g=d-s,v=p-l;u+=Math.sqrt(g*g+v*v),s=d,l=p}return u}var Ye=/cubic-bezier\(([0-9,\.e ]+)\)/;function Xe(t){var e=t&&Ye.exec(t);if(e){var n=e[1].split(","),r=+Object(v["trim"])(n[0]),i=+Object(v["trim"])(n[1]),o=+Object(v["trim"])(n[2]),a=+Object(v["trim"])(n[3]);if(isNaN(r+i+o+a))return;var s=[];return function(t){return t<=0?0:t>=1?1:Re(0,r,o,1,t,s)&&Le(0,i,a,1,s[0])}}}var Ke=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||v["noop"],this.ondestroy=t.ondestroy||v["noop"],this.onrestart=t.onrestart||v["noop"],t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,r=t-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,a=o?o(i):i;if(this.onframe(a),1===i){if(!this.loop)return!0;var s=r%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Object(v["isFunction"])(t)?t:we[t]||Xe(t)},t}(),Ze=Ke,Qe=n("41ef"),Je=n("7a29"),tn=Array.prototype.slice;function en(t,e,n){return(e-t)*n+t}function nn(t,e,n,r){for(var i=e.length,o=0;o<i;o++)t[o]=en(e[o],n[o],r);return t}function rn(t,e,n,r){for(var i=e.length,o=i&&e[0].length,a=0;a<i;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=en(e[a][s],n[a][s],r)}return t}function on(t,e,n,r){for(var i=e.length,o=0;o<i;o++)t[o]=e[o]+n[o]*r;return t}function an(t,e,n,r){for(var i=e.length,o=i&&e[0].length,a=0;a<i;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=e[a][s]+n[a][s]*r}return t}function sn(t,e){for(var n=t.length,r=e.length,i=n>r?e:t,o=Math.min(n,r),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,r);s++)i.push({offset:a.offset,color:a.color.slice()})}function ln(t,e,n){var r=t,i=e;if(r.push&&i.push){var o=r.length,a=i.length;if(o!==a){var s=o>a;if(s)r.length=a;else for(var l=o;l<a;l++)r.push(1===n?i[l]:tn.call(i[l]))}var u=r[0]&&r[0].length;for(l=0;l<r.length;l++)if(1===n)isNaN(r[l])&&(r[l]=i[l]);else for(var c=0;c<u;c++)isNaN(r[l][c])&&(r[l][c]=i[l][c])}}function un(t){if(Object(v["isArrayLike"])(t)){var e=t.length;if(Object(v["isArrayLike"])(t[0])){for(var n=[],r=0;r<e;r++)n.push(tn.call(t[r]));return n}return tn.call(t)}return t}function cn(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function hn(t){return Object(v["isArrayLike"])(t&&t[0])?2:1}var fn=0,dn=1,pn=2,gn=3,vn=4,yn=5,mn=6;function bn(t){return t===vn||t===yn}function _n(t){return t===dn||t===pn}var xn=[0,0,0,0],wn=function(){function t(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var r=this.keyframes,i=r.length,o=!1,a=mn,s=e;if(Object(v["isArrayLike"])(e)){var l=hn(e);a=l,(1===l&&!Object(v["isNumber"])(e[0])||2===l&&!Object(v["isNumber"])(e[0][0]))&&(o=!0)}else if(Object(v["isNumber"])(e)&&!Object(v["eqNaN"])(e))a=fn;else if(Object(v["isString"])(e))if(isNaN(+e)){var u=Qe["parse"](e);u&&(s=u,a=gn)}else a=fn;else if(Object(v["isGradientObject"])(e)){var c=Object(v["extend"])({},s);c.colorStops=Object(v["map"])(e.colorStops,(function(t){return{offset:t.offset,color:Qe["parse"](t.color)}})),Object(Je["m"])(e)?a=vn:Object(Je["o"])(e)&&(a=yn),s=c}0===i?this.valType=a:a===this.valType&&a!==mn||(o=!0),this.discrete=this.discrete||o;var h={time:t,value:s,rawValue:e,percent:0};return n&&(h.easing=n,h.easingFunc=Object(v["isFunction"])(n)?n:we[n]||Xe(n)),r.push(h),h},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort((function(t,e){return t.time-e.time}));for(var r=this.valType,i=n.length,o=n[i-1],a=this.discrete,s=_n(r),l=bn(r),u=0;u<i;u++){var c=n[u],h=c.value,f=o.value;c.percent=c.time/t,a||(s&&u!==i-1?ln(h,f,r):l&&sn(h.colorStops,f.colorStops))}if(!a&&r!==yn&&e&&this.needsAnimate()&&e.needsAnimate()&&r===e.valType&&!e._finished){this._additiveTrack=e;var d=n[0].value;for(u=0;u<i;u++)r===fn?n[u].additiveValue=n[u].value-d:r===gn?n[u].additiveValue=on([],n[u].value,d,-1):_n(r)&&(n[u].additiveValue=r===dn?on([],n[u].value,d,-1):an([],n[u].value,d,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,r,i,o=null!=this._additiveTrack,a=o?"additiveValue":"value",s=this.valType,l=this.keyframes,u=l.length,c=this.propName,h=s===gn,f=this._lastFr,d=Math.min;if(1===u)r=i=l[0];else{if(e<0)n=0;else if(e<this._lastFrP){var p=d(f+1,u-1);for(n=p;n>=0;n--)if(l[n].percent<=e)break;n=d(n,u-2)}else{for(n=f;n<u;n++)if(l[n].percent>e)break;n=d(n-1,u-2)}i=l[n+1],r=l[n]}if(r&&i){this._lastFr=n,this._lastFrP=e;var g=i.percent-r.percent,y=0===g?1:d((e-r.percent)/g,1);i.easingFunc&&(y=i.easingFunc(y));var m=o?this._additiveValue:h?xn:t[c];if(!_n(s)&&!h||m||(m=this._additiveValue=[]),this.discrete)t[c]=y<1?r.rawValue:i.rawValue;else if(_n(s))s===dn?nn(m,r[a],i[a],y):rn(m,r[a],i[a],y);else if(bn(s)){var b=r[a],_=i[a],x=s===vn;t[c]={type:x?"linear":"radial",x:en(b.x,_.x,y),y:en(b.y,_.y,y),colorStops:Object(v["map"])(b.colorStops,(function(t,e){var n=_.colorStops[e];return{offset:en(t.offset,n.offset,y),color:cn(nn([],t.color,n.color,y))}})),global:_.global},x?(t[c].x2=en(b.x2,_.x2,y),t[c].y2=en(b.y2,_.y2,y)):t[c].r=en(b.r,_.r,y)}else if(h)nn(m,r[a],i[a],y),o||(t[c]=cn(m));else{var w=en(r[a],i[a],y);o?this._additiveValue=w:t[c]=w}o&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,r=this._additiveValue;e===fn?t[n]=t[n]+r:e===gn?(Qe["parse"](t[n],xn),on(xn,xn,r,1),t[n]=cn(xn)):e===dn?on(t[n],t[n],r,1):e===pn&&an(t[n],t[n],r,1)},t}(),Sn=function(){function t(t,e,n,r){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&r?Object(v["logError"])("Can' use additive animation on looped animation."):(this._additiveAnimators=r,this._allowDiscrete=n)}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,Object(v["keys"])(e),n)},t.prototype.whenWithKeys=function(t,e,n,r){for(var i=this._tracks,o=0;o<n.length;o++){var a=n[o],s=i[a];if(!s){s=i[a]=new wn(a);var l=void 0,u=this._getAdditiveTrack(a);if(u){var c=u.keyframes,h=c[c.length-1];l=h&&h.value,u.valType===gn&&l&&(l=cn(l))}else l=this._target[a];if(null==l)continue;t>0&&s.addKeyframe(0,un(l),r),this._trackKeys.push(a)}s.addKeyframe(t,un(e[a]),r)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n<e;n++)t[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},t.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},t.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var r=0;r<n.length;r++){var i=n[r].getTrack(t);i&&(e=i)}return e},t.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,n=[],r=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],a=this._tracks[o],s=this._getAdditiveTrack(o),l=a.keyframes,u=l.length;if(a.prepare(r,s),a.needsAnimate())if(!this._allowDiscrete&&a.discrete){var c=l[u-1];c&&(e._target[a.propName]=c.rawValue),a.setFinished()}else n.push(a)}if(n.length||this._force){var h=new Ze({life:r,loop:this._loop,delay:this._delay||0,onframe:function(t){e._started=2;var r=e._additiveAnimators;if(r){for(var i=!1,o=0;o<r.length;o++)if(r[o]._clip){i=!0;break}i||(e._additiveAnimators=null)}for(o=0;o<n.length;o++)n[o].step(e._target,t);var a=e._onframeCbs;if(a)for(o=0;o<a.length;o++)a[o](e._target,t)},ondestroy:function(){e._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),t&&h.setEasing(t)}else this._doneCallback();return this}},t.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},t.prototype.delay=function(t){return this._delay=t,this},t.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},t.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},t.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(t){return this._tracks[t]},t.prototype.getTracks=function(){var t=this;return Object(v["map"])(this._trackKeys,(function(e){return t._tracks[e]}))},t.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,i=0;i<t.length;i++){var o=n[t[i]];o&&!o.isFinished()&&(e?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}var a=!0;for(i=0;i<r.length;i++)if(!n[r[i]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},t.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var r=0;r<e.length;r++){var i=e[r],o=this._tracks[i];if(o&&!o.isFinished()){var a=o.keyframes,s=a[n?0:a.length-1];s&&(t[i]=un(s.rawValue))}}}},t.prototype.__changeFinalValue=function(t,e){e=e||Object(v["keys"])(t);for(var n=0;n<e.length;n++){var r=e[n],i=this._tracks[r];if(i){var o=i.keyframes;if(o.length>1){var a=o.pop();i.addKeyframe(a.time,t[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},t}(),On=Sn;function Cn(){return(new Date).getTime()}var kn=function(t){function e(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return p(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){var e=Cn()-this._pausedTime,n=e-this._time,r=this._head;while(r){var i=r.next,o=r.step(e,n);o?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;function e(){t._running&&(_e(e),!t._paused&&t.update())}this._running=!0,_e(e)},e.prototype.start=function(){this._running||(this._time=Cn(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Cn(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Cn()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){var t=this._head;while(t){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new On(t,e.loop);return this.addAnimator(n),n},e}(U),An=kn,Mn=300,Tn=g["a"].domSupported,In=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=v["map"](t,(function(t){var e=t.replace("mouse","pointer");return n.hasOwnProperty(e)?e:t}));return{mouse:t,touch:e,pointer:r}}(),En={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Pn=!1;function jn(t){var e=t.pointerType;return"pen"===e||"touch"===e}function Ln(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout((function(){t.touching=!1,t.touchTimer=null}),700)}function Dn(t){t&&(t.zrByTouch=!0)}function Rn(t,e){return ft(t.dom,new Bn(t,e),!0)}function Nn(t,e){var n=e,r=!1;while(n&&9!==n.nodeType&&!(r=n.domBelongToZr||n!==e&&n===t.painterRoot))n=n.parentNode;return r}var Bn=function(){function t(t,e){this.stopPropagation=v["noop"],this.stopImmediatePropagation=v["noop"],this.preventDefault=v["noop"],this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return t}(),Fn={mousedown:function(t){t=ft(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=ft(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=ft(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=ft(this.dom,t);var e=t.toElement||t.relatedTarget;Nn(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){Pn=!0,t=ft(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Pn||(t=ft(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=ft(this.dom,t),Dn(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Fn.mousemove.call(this,t),Fn.mousedown.call(this,t)},touchmove:function(t){t=ft(this.dom,t),Dn(t),this.handler.processGesture(t,"change"),Fn.mousemove.call(this,t)},touchend:function(t){t=ft(this.dom,t),Dn(t),this.handler.processGesture(t,"end"),Fn.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<Mn&&Fn.click.call(this,t)},pointerdown:function(t){Fn.mousedown.call(this,t)},pointermove:function(t){jn(t)||Fn.mousemove.call(this,t)},pointerup:function(t){Fn.mouseup.call(this,t)},pointerout:function(t){jn(t)||Fn.mouseout.call(this,t)}};v["each"](["click","dblclick","contextmenu"],(function(t){Fn[t]=function(e){e=ft(this.dom,e),this.trigger(t,e)}}));var zn={pointermove:function(t){jn(t)||zn.mousemove.call(this,t)},pointerup:function(t){zn.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function Vn(t,e){var n=e.domHandlers;g["a"].pointerEventsSupported?v["each"](In.pointer,(function(r){Gn(e,r,(function(e){n[r].call(t,e)}))})):(g["a"].touchEventsSupported&&v["each"](In.touch,(function(r){Gn(e,r,(function(i){n[r].call(t,i),Ln(e)}))})),v["each"](In.mouse,(function(r){Gn(e,r,(function(i){i=ht(i),e.touching||n[r].call(t,i)}))})))}function qn(t,e){function n(n){function r(r){r=ht(r),Nn(t,r.target)||(r=Rn(t,r),e.domHandlers[n].call(t,r))}Gn(e,n,r,{capture:!0})}g["a"].pointerEventsSupported?v["each"](En.pointer,n):g["a"].touchEventsSupported||v["each"](En.mouse,n)}function Gn(t,e,n,r){t.mounted[e]=n,t.listenerOpts[e]=r,pt(t.domTarget,e,n,r)}function Hn(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&>(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}var Wn=function(){function t(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return t}(),Un=function(t){function e(e,n){var r=t.call(this)||this;return r.__pointerCapturing=!1,r.dom=e,r.painterRoot=n,r._localHandlerScope=new Wn(e,Fn),Tn&&(r._globalHandlerScope=new Wn(document,zn)),Vn(r,r._localHandlerScope),r}return p(e,t),e.prototype.dispose=function(){Hn(this._localHandlerScope),Tn&&Hn(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,Tn&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?qn(this,e):Hn(e)}},e}(U),$n=Un,Yn=1;g["a"].hasGlobalWindow&&(Yn=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Xn=Yn,Kn=.4,Zn="#333",Qn="#ccc",Jn="#eee",tr=St,er=5e-5;function nr(t){return t>er||t<-er}var rr=[],ir=[],or=wt(),ar=Math.abs,sr=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return nr(this.rotation)||nr(this.x)||nr(this.y)||nr(this.scaleX-1)||nr(this.scaleY-1)||nr(this.skewX)||nr(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||wt(),e?this.getLocalTransform(n):tr(n),t&&(e?Ct(n,t,n):Ot(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&tr(n)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(rr);var n=rr[0]<0?-1:1,r=rr[1]<0?-1:1,i=((rr[0]-n)*e+n)/rr[0]||0,o=((rr[1]-r)*e+r)/rr[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||wt(),Tt(this.invTransform,t)},t.prototype.getComputedTransform=function(){var t=this,e=[];while(t)e.push(t),t=t.parent;while(t=e.pop())t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],r=Math.atan2(t[1],t[0]),i=Math.PI/2+r-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(i),e=Math.sqrt(e),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(Ct(ir,t.invTransform,e),e=ir);var n=this.originX,r=this.originY;(n||r)&&(or[4]=n,or[5]=r,Ct(ir,e,or),ir[4]-=n,ir[5]-=r,e=ir),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],r=this.invTransform;return r&&F(n,n,r),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],r=this.transform;return r&&F(n,n,r),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&ar(t[0]-1)>1e-10&&ar(t[3]-1)>1e-10?Math.sqrt(ar(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){ur(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,r=t.originY||0,i=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,c=t.y,h=t.skewX?Math.tan(t.skewX):0,f=t.skewY?Math.tan(-t.skewY):0;if(n||r||a||s){var d=n+a,p=r+s;e[4]=-d*i-h*p*o,e[5]=-p*o-f*d*i}else e[4]=e[5]=0;return e[0]=i,e[3]=o,e[1]=f*i,e[2]=h*o,l&&At(e,e,l),e[4]+=n+u,e[5]+=r+c,e},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),lr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function ur(t,e){for(var n=0;n<lr.length;n++){var r=lr[n];t[r]=e[r]}}var cr=sr,hr=n("d51b"),fr=n("726e"),dr={};function pr(t,e){e=e||fr["a"];var n=dr[e];n||(n=dr[e]=new hr["a"](500));var r=n.get(t);return null==r&&(r=fr["d"].measureText(t,e).width,n.put(t,r)),r}function gr(t,e,n,r){var i=pr(t,e),o=br(e),a=yr(0,i,n),s=mr(0,o,r),l=new qt(a,s,i,o);return l}function vr(t,e,n,r){var i=((t||"")+"").split("\n"),o=i.length;if(1===o)return gr(i[0],e,n,r);for(var a=new qt(0,0,0,0),s=0;s<i.length;s++){var l=gr(i[s],e,n,r);0===s?a.copy(l):a.union(l)}return a}function yr(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function mr(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function br(t){return pr("国",t)}function _r(t,e){return"string"===typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function xr(t,e,n){var r=e.position||"inside",i=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,c="left",h="top";if(r instanceof Array)l+=_r(r[0],n.width),u+=_r(r[1],n.height),c=null,h=null;else switch(r){case"left":l-=i,u+=s,c="right",h="middle";break;case"right":l+=i+a,u+=s,h="middle";break;case"top":l+=a/2,u-=i,c="center",h="bottom";break;case"bottom":l+=a/2,u+=o+i,c="center";break;case"inside":l+=a/2,u+=s,c="center",h="middle";break;case"insideLeft":l+=i,u+=s,h="middle";break;case"insideRight":l+=a-i,u+=s,c="right",h="middle";break;case"insideTop":l+=a/2,u+=i,c="center";break;case"insideBottom":l+=a/2,u+=o-i,c="center",h="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=a-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=o-i,h="bottom";break;case"insideBottomRight":l+=a-i,u+=o-i,c="right",h="bottom";break}return t=t||{},t.x=l,t.y=u,t.align=c,t.verticalAlign=h,t}var wr="__zr_normal__",Sr=lr.concat(["ignore"]),Or=Object(v["reduce"])(lr,(function(t,e){return t[e]=!0,t}),{ignore:!1}),Cr={},kr=new qt(0,0,0,0),Ar=function(){function t(t){this.id=Object(v["guid"])(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=t,r[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,r=n.local,i=e.innerTransformable,o=void 0,a=void 0,s=!1;i.parent=r?this:null;var l=!1;if(i.copyTransform(e),null!=n.position){var u=kr;n.layoutRect?u.copy(n.layoutRect):u.copy(this.getBoundingRect()),r||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Cr,n,u):xr(Cr,n,u),i.x=Cr.x,i.y=Cr.y,o=Cr.align,a=Cr.verticalAlign;var c=n.origin;if(c&&null!=n.rotation){var h=void 0,f=void 0;"center"===c?(h=.5*u.width,f=.5*u.height):(h=_r(c[0],u.width),f=_r(c[1],u.height)),l=!0,i.originX=-i.x+h+(r?0:u.x),i.originY=-i.y+f+(r?0:u.y)}}null!=n.rotation&&(i.rotation=n.rotation);var d=n.offset;d&&(i.x+=d[0],i.y+=d[1],l||(i.originX=-d[0],i.originY=-d[1]));var p=null==n.inside?"string"===typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),v=void 0,y=void 0,m=void 0;p&&this.canBeInsideText()?(v=n.insideFill,y=n.insideStroke,null!=v&&"auto"!==v||(v=this.getInsideTextFill()),null!=y&&"auto"!==y||(y=this.getInsideTextStroke(v),m=!0)):(v=n.outsideFill,y=n.outsideStroke,null!=v&&"auto"!==v||(v=this.getOutsideFill()),null!=y&&"auto"!==y||(y=this.getOutsideStroke(v),m=!0)),v=v||"#000",v===g.fill&&y===g.stroke&&m===g.autoStroke&&o===g.align&&a===g.verticalAlign||(s=!0,g.fill=v,g.stroke=y,g.autoStroke=m,g.align=o,g.verticalAlign=a,e.setDefaultTextStyle(g)),e.__dirty|=he,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Qn:Zn},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"===typeof e&&Object(Qe["parse"])(e);n||(n=[255,255,255,1]);for(var r=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*r+(i?0:255)*(1-r);return n[3]=1,Object(Qe["stringify"])(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},Object(v["extend"])(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"===typeof t)this.attrKV(t,e);else if(Object(v["isObject"])(t))for(var n=t,r=Object(v["keys"])(n),i=0;i<r.length;i++){var o=r[i];this.attrKV(o,t[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var r=this.animators[n],i=r.__fromStateTransition;if(!(r.getLoop()||i&&i!==wr)){var o=r.targetName,a=o?e[o]:e;r.saveTo(a)}}},t.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,Sr)},t.prototype._savePrimaryToNormal=function(t,e,n){for(var r=0;r<n.length;r++){var i=n[r];null==t[i]||i in e||(e[i]=this[i])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(wr,!1,t)},t.prototype.useState=function(t,e,n,r){var i=t===wr,o=this.hasState();if(o||!i){var a=this.currentStates,s=this.stateTransition;if(!(Object(v["indexOf"])(a,t)>=0)||!e&&1!==a.length){var l;if(this.stateProxy&&!i&&(l=this.stateProxy(t)),l||(l=this.states&&this.states[t]),l||i){i||this.saveCurrentToNormalState(l);var u=!!(l&&l.hoverLayer||r);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,l,this._normalState,e,!n&&!this.__inHover&&s&&s.duration>0,s);var c=this._textContent,h=this._textGuide;return c&&c.useState(t,e,n,u),h&&h.useState(t,e,n,u),i?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~he),l}Object(v["logError"])("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,n){if(t.length){var r=[],i=this.currentStates,o=t.length,a=o===i.length;if(a)for(var s=0;s<o;s++)if(t[s]!==i[s]){a=!1;break}if(a)return;for(s=0;s<o;s++){var l=t[s],u=void 0;this.stateProxy&&(u=this.stateProxy(l,t)),u||(u=this.states[l]),u&&r.push(u)}var c=r[o-1],h=!!(c&&c.hoverLayer||n);h&&this._toggleHoverLayerFlag(!0);var f=this._mergeStates(r),d=this.stateTransition;this.saveCurrentToNormalState(f),this._applyStateObj(t.join(","),f,this._normalState,!1,!e&&!this.__inHover&&d&&d.duration>0,d);var p=this._textContent,g=this._textGuide;p&&p.useStates(t,e,h),g&&g.useStates(t,e,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~he)}else this.clearStates()},t.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},t.prototype.removeState=function(t){var e=Object(v["indexOf"])(this.currentStates,t);if(e>=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var r=this.currentStates.slice(),i=Object(v["indexOf"])(r,t),o=Object(v["indexOf"])(r,e)>=0;i>=0?o?r.splice(i,1):r[i]=e:n&&!o&&r.push(e),this.useStates(r)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},r=0;r<t.length;r++){var i=t[r];Object(v["extend"])(n,i),i.textConfig&&(e=e||{},Object(v["extend"])(e,i.textConfig))}return e&&(n.textConfig=e),n},t.prototype._applyStateObj=function(t,e,n,r,i,o){var a=!(e&&r);e&&e.textConfig?(this.textConfig=Object(v["extend"])({},r?this.textConfig:n.textConfig),Object(v["extend"])(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,u=0;u<Sr.length;u++){var c=Sr[u],h=i&&Or[c];e&&null!=e[c]?h?(l=!0,s[c]=e[c]):this[c]=e[c]:a&&null!=n[c]&&(h?(l=!0,s[c]=n[c]):this[c]=n[c])}if(!i)for(u=0;u<this.animators.length;u++){var f=this.animators[u],d=f.targetName;f.getLoop()||f.__changeFinalValue(d?(e||n)[d]:e||n)}l&&this._transitionState(t,s,o)},t.prototype._attachComponent=function(t){if((!t.__zr||t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},t.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},t.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new cr,this._attachComponent(t),this._textContent=t,this.markRedraw())},t.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),Object(v["extend"])(this.textConfig,t),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=he;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},t.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},t.prototype.animate=function(t,e,n){var r=t?this[t]:this;var i=new On(r,e,n);return t&&(i.targetName=t),this.addAnimator(i,t),i},t.prototype.addAnimator=function(t,e){var n=this.__zr,r=this;t.during((function(){r.updateDuringAnimation(e)})).done((function(){var e=r.animators,n=Object(v["indexOf"])(e,t);n>=0&&e.splice(n,1)})),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,r=n.length,i=[],o=0;o<r;o++){var a=n[o];t&&t!==a.scope?i.push(a):a.stop(e)}return this.animators=i,this},t.prototype.animateTo=function(t,e,n){Mr(this,t,e,n)},t.prototype.animateFrom=function(t,e,n){Mr(this,t,e,n,!0)},t.prototype._transitionState=function(t,e,n,r){for(var i=Mr(this,e,n,r),o=0;o<i.length;o++)i[o].__fromStateTransition=t},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=he;function n(t,n,r,i){function o(t,e){Object.defineProperty(e,0,{get:function(){return t[r]},set:function(e){t[r]=e}}),Object.defineProperty(e,1,{get:function(){return t[i]},set:function(e){t[i]=e}})}Object.defineProperty(e,t,{get:function(){if(!this[n]){var t=this[n]=[];o(this,t)}return this[n]},set:function(t){this[r]=t[0],this[i]=t[1],this[n]=t,o(this,t)}})}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),t}();function Mr(t,e,n,r,i){n=n||{};var o=[];Lr(t,"",t,e,n,r,o,i);var a=o.length,s=!1,l=n.done,u=n.aborted,c=function(){s=!0,a--,a<=0&&(s?l&&l():u&&u())},h=function(){a--,a<=0&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&n.during&&o[0].during((function(t,e){n.during(e)}));for(var f=0;f<o.length;f++){var d=o[f];c&&d.done(c),h&&d.aborted(h),n.force&&d.duration(n.duration),d.start(n.easing)}return o}function Tr(t,e,n){for(var r=0;r<n;r++)t[r]=e[r]}function Ir(t){return Object(v["isArrayLike"])(t[0])}function Er(t,e,n){if(Object(v["isArrayLike"])(e[n]))if(Object(v["isArrayLike"])(t[n])||(t[n]=[]),Object(v["isTypedArray"])(e[n])){var r=e[n].length;t[n].length!==r&&(t[n]=new e[n].constructor(r),Tr(t[n],e[n],r))}else{var i=e[n],o=t[n],a=i.length;if(Ir(i))for(var s=i[0].length,l=0;l<a;l++)o[l]?Tr(o[l],i[l],s):o[l]=Array.prototype.slice.call(i[l]);else Tr(o,i,a);o.length=i.length}else t[n]=e[n]}function Pr(t,e){return t===e||Object(v["isArrayLike"])(t)&&Object(v["isArrayLike"])(e)&&jr(t,e)}function jr(t,e){var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Lr(t,e,n,r,i,o,a,s){for(var l=Object(v["keys"])(r),u=i.duration,c=i.delay,h=i.additive,f=i.setToFinal,d=!Object(v["isObject"])(o),p=t.animators,g=[],y=0;y<l.length;y++){var m=l[y],b=r[m];if(null!=b&&null!=n[m]&&(d||o[m]))if(!Object(v["isObject"])(b)||Object(v["isArrayLike"])(b)||Object(v["isGradientObject"])(b))g.push(m);else{if(e){s||(n[m]=b,t.updateDuringAnimation(e));continue}Lr(t,m,n[m],b,i,o&&o[m],a,s)}else s||(n[m]=b,t.updateDuringAnimation(e),g.push(m))}var _=g.length;if(!h&&_)for(var x=0;x<p.length;x++){var w=p[x];if(w.targetName===e){var S=w.stopTracks(g);if(S){var O=Object(v["indexOf"])(p,w);p.splice(O,1)}}}if(i.force||(g=Object(v["filter"])(g,(function(t){return!Pr(r[t],n[t])})),_=g.length),_>0||i.force&&!a.length){var C=void 0,k=void 0,A=void 0;if(s){k={},f&&(C={});for(x=0;x<_;x++){m=g[x];k[m]=n[m],f?C[m]=r[m]:n[m]=r[m]}}else if(f){A={};for(x=0;x<_;x++){m=g[x];A[m]=un(n[m]),Er(n,r,m)}}w=new On(n,!1,!1,h?Object(v["filter"])(p,(function(t){return t.targetName===e})):null);w.targetName=e,i.scope&&(w.scope=i.scope),f&&C&&w.whenWithKeys(0,C,g),A&&w.whenWithKeys(0,A,g),w.whenWithKeys(null==u?500:u,s?k:r,g).delay(c||0),t.addAnimator(w,e),a.push(w)}}Object(v["mixin"])(Ar,U),Object(v["mixin"])(Ar,cr);var Dr=Ar,Rr=function(t){function e(e){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return p(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var n=this._children,r=n.indexOf(e);r>=0&&(n.splice(r,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var n=v["indexOf"](this._children,t);return n>=0&&this.replaceAt(e,n),this},e.prototype.replaceAt=function(t,e){var n=this._children,r=n[e];if(t&&t!==this&&t.parent!==this&&t!==r){n[e]=t,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,n=this._children,r=v["indexOf"](n,t);return r<0||(n.splice(r,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n<t.length;n++){var r=t[n];e&&r.removeSelfFromZr(e),r.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,e){for(var n=this._children,r=0;r<n.length;r++){var i=n[r];t.call(e,i,r)}return this},e.prototype.traverse=function(t,e){for(var n=0;n<this._children.length;n++){var r=this._children[n],i=t.call(e,r);r.isGroup&&!i&&r.traverse(t,e)}return this},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++){var r=this._children[n];r.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++){var r=this._children[n];r.removeSelfFromZr(e)}},e.prototype.getBoundingRect=function(t){for(var e=new qt(0,0,0,0),n=t||this._children,r=[],i=null,o=0;o<n.length;o++){var a=n[o];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),l=a.getLocalTransform(r);l?(qt.applyTransform(e,s,l),i=i||e.clone(),i.union(e)):(i=i||s.clone(),i.union(s))}}return i||e},e}(Dr);Rr.prototype.type="group";var Nr=Rr,Br={},Fr={};
|
||
/*!
|
||
* ZRender, a high performance 2d drawing library.
|
||
*
|
||
* Copyright (c) 2013, Baidu Inc.
|
||
* All rights reserved.
|
||
*
|
||
* LICENSE
|
||
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
|
||
*/function zr(t){delete Fr[t]}function Vr(t){if(!t)return!1;if("string"===typeof t)return Object(Qe["lum"])(t,1)<Kn;if(t.colorStops){for(var e=t.colorStops,n=0,r=e.length,i=0;i<r;i++)n+=Object(Qe["lum"])(e[i].color,1);return n/=r,n<Kn}return!1}var qr=function(){function t(t,e,n){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t;var i=new be,o=n.renderer||"canvas";Br[o]||(o=v["keys"](Br)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var a=new Br[o](e,i,n,t),s=n.ssr||a.ssrOnly;this.storage=i,this.painter=a;var l,u=g["a"].node||g["a"].worker||s?null:new $n(a.getViewportRoot(),a.root),c=n.useCoarsePointer,h=null==c||"auto"===c?g["a"].touchEventsSupported:!!c,f=44;h&&(l=v["retrieve2"](n.pointerSize,f)),this.handler=new te(i,a,u,a.root,l),this.animation=new An({stage:{update:s?null:function(){return r._flush(!0)}}}),s||this.animation.start()}return t.prototype.add=function(t){t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},t.prototype.remove=function(t){t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh()},t.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=Vr(t)},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(t){this._darkMode=t},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(t){t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},t.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},t.prototype.flush=function(){this._flush(!1)},t.prototype._flush=function(t){var e,n=Cn();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var r=Cn();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:r-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},t.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},t.prototype.clearAnimation=function(){this.animation.clear()},t.prototype.getWidth=function(){return this.painter.getWidth()},t.prototype.getHeight=function(){return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this.handler.off(t,e)},t.prototype.trigger=function(t,e){this.handler.trigger(t,e)},t.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof Nr&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},t.prototype.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,zr(this.id)},t}();function Gr(t,e){var n=new qr(v["guid"](),t,e);return Fr[n.id]=n,n}function Hr(t){t.dispose()}function Wr(){for(var t in Fr)Fr.hasOwnProperty(t)&&Fr[t].dispose();Fr={}}function Ur(t){return Fr[t]}function $r(t,e){Br[t]=e}var Yr="5.4.0",Xr=1e-4,Kr=20;function Zr(t){return t.replace(/^\s+|\s+$/g,"")}function Qr(t,e,n,r){var i=e[0],o=e[1],a=n[0],s=n[1],l=o-i,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(r)if(l>0){if(t<=i)return a;if(t>=o)return s}else{if(t>=i)return a;if(t<=o)return s}else{if(t===i)return a;if(t===o)return s}return(t-i)/l*u+a}function Jr(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return v["isString"](t)?Zr(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function ti(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),Kr),t=(+t).toFixed(e),n?t:+t}function ei(t){return t.sort((function(t,e){return t-e})),t}function ni(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return ri(t)}function ri(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),r=n>0?+e.slice(n+1):0,i=n>0?n:e.length,o=e.indexOf("."),a=o<0?0:i-1-o;return Math.max(0,a-r)}function ii(t,e){var n=Math.log,r=Math.LN10,i=Math.floor(n(t[1]-t[0])/r),o=Math.round(n(Math.abs(e[1]-e[0]))/r),a=Math.min(Math.max(-i+o,0),20);return isFinite(a)?a:20}function oi(t,e,n){if(!t[e])return 0;var r=ai(t,n);return r[e]||0}function ai(t,e){var n=v["reduce"](t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===n)return[];var r=Math.pow(10,e),i=v["map"](t,(function(t){return(isNaN(t)?0:t)/n*r*100})),o=100*r,a=v["map"](i,(function(t){return Math.floor(t)})),s=v["reduce"](a,(function(t,e){return t+e}),0),l=v["map"](i,(function(t,e){return t-a[e]}));while(s<o){for(var u=Number.NEGATIVE_INFINITY,c=null,h=0,f=l.length;h<f;++h)l[h]>u&&(u=l[h],c=h);++a[c],l[c]=0,++s}return v["map"](a,(function(t){return t/r}))}function si(t,e){var n=Math.max(ni(t),ni(e)),r=t+e;return n>Kr?r:ti(r,n)}var li=9007199254740991;function ui(t){var e=2*Math.PI;return(t%e+e)%e}function ci(t){return t>-Xr&&t<Xr}var hi=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function fi(t){if(t instanceof Date)return t;if(v["isString"](t)){var e=hi.exec(t);if(!e)return new Date(NaN);if(e[8]){var n=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}return null==t?new Date(NaN):new Date(Math.round(t))}function di(t){return Math.pow(10,pi(t))}function pi(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function gi(t,e){var n,r=pi(t),i=Math.pow(10,r),o=t/i;return n=e?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,t=n*i,r>=-20?+t.toFixed(r<0?-r:0):t}function vi(t,e){var n=(t.length-1)*e+1,r=Math.floor(n),i=+t[r-1],o=n-r;return o?i+o*(t[r]-i):i}function yi(t){t.sort((function(t,e){return s(t,e,0)?-1:1}));for(var e=-1/0,n=1,r=0;r<t.length;){for(var i=t[r].interval,o=t[r].close,a=0;a<2;a++)i[a]<=e&&(i[a]=e,o[a]=a?1:1-n),e=i[a],n=o[a];i[0]===i[1]&&o[0]*o[1]!==1?t.splice(r,1):r++}return t;function s(t,e,n){return t.interval[n]<e.interval[n]||t.interval[n]===e.interval[n]&&(t.close[n]-e.close[n]===(n?-1:1)||!n&&s(t,e,1))}}function mi(t){var e=parseFloat(t);return e==t&&(0!==e||!v["isString"](t)||t.indexOf("x")<=0)?e:NaN}function bi(t){return!isNaN(mi(t))}function _i(){return Math.round(9*Math.random())}function xi(t,e){return 0===e?t:xi(e,t%e)}function wi(t,e){return null==t?e:null==e?t:t*e/xi(t,e)}function Si(t,e,n){return(e-t)*n+t}var Oi="series\0",Ci="\0_ec_\0";function ki(t){return t instanceof Array?t:null==t?[]:[t]}function Ai(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var r=0,i=n.length;r<i;r++){var o=n[r];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}var Mi=["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 Ti(t){return!Object(v["isObject"])(t)||Object(v["isArray"])(t)||t instanceof Date?t:t.value}function Ii(t){return Object(v["isObject"])(t)&&!(t instanceof Array)}function Ei(t,e,n){var r="normalMerge"===n,i="replaceMerge"===n,o="replaceAll"===n;t=t||[],e=(e||[]).slice();var a=Object(v["createHashMap"])();Object(v["each"])(e,(function(t,n){Object(v["isObject"])(t)||(e[n]=null)}));var s=Pi(t,a,n);return(r||i)&&ji(s,t,a,e),r&&Li(s,e),r||i?Di(s,e,i):o&&Ri(s,e),Ni(s),s}function Pi(t,e,n){var r=[];if("replaceAll"===n)return r;for(var i=0;i<t.length;i++){var o=t[i];o&&null!=o.id&&e.set(o.id,i),r.push({existing:"replaceMerge"===n||qi(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return r}function ji(t,e,n,r){Object(v["each"])(r,(function(i,o){if(i&&null!=i.id){var a=Fi(i.id),s=n.get(a);if(null!=s){var l=t[s];Object(v["assert"])(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=i,l.existing=e[s],r[o]=null}}}))}function Li(t,e){Object(v["each"])(e,(function(n,r){if(n&&null!=n.name)for(var i=0;i<t.length;i++){var o=t[i].existing;if(!t[i].newOption&&o&&(null==o.id||null==n.id)&&!qi(n)&&!qi(o)&&Bi("name",o,n))return t[i].newOption=n,void(e[r]=null)}}))}function Di(t,e,n){Object(v["each"])(e,(function(e){if(e){var r,i=0;while((r=t[i])&&(r.newOption||qi(r.existing)||r.existing&&null!=e.id&&!Bi("id",e,r.existing)))i++;r?(r.newOption=e,r.brandNew=n):t.push({newOption:e,brandNew:n,existing:null,keyInfo:null}),i++}}))}function Ri(t,e){Object(v["each"])(e,(function(e){t.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})}))}function Ni(t){var e=Object(v["createHashMap"])();Object(v["each"])(t,(function(t){var n=t.existing;n&&e.set(n.id,t)})),Object(v["each"])(t,(function(t){var n=t.newOption;Object(v["assert"])(!n||null==n.id||!e.get(n.id)||e.get(n.id)===t,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&e.set(n.id,t),!t.keyInfo&&(t.keyInfo={})})),Object(v["each"])(t,(function(t,n){var r=t.existing,i=t.newOption,o=t.keyInfo;if(Object(v["isObject"])(i)){if(o.name=null!=i.name?Fi(i.name):r?r.name:Oi+n,r)o.id=Fi(r.id);else if(null!=i.id)o.id=Fi(i.id);else{var a=0;do{o.id="\0"+o.name+"\0"+a++}while(e.get(o.id))}e.set(o.id,t)}}))}function Bi(t,e,n){var r=zi(e[t],null),i=zi(n[t],null);return null!=r&&null!=i&&r===i}function Fi(t){return zi(t,"")}function zi(t,e){return null==t?e:Object(v["isString"])(t)?t:Object(v["isNumber"])(t)||Object(v["isStringSafe"])(t)?t+"":e}function Vi(t){var e=t.name;return!(!e||!e.indexOf(Oi))}function qi(t){return t&&null!=t.id&&0===Fi(t.id).indexOf(Ci)}function Gi(t){return Ci+t}function Hi(t,e,n){Object(v["each"])(t,(function(t){var r=t.newOption;Object(v["isObject"])(r)&&(t.keyInfo.mainType=e,t.keyInfo.subType=Wi(e,r,t.existing,n))}))}function Wi(t,e,n,r){var i=e.type?e.type:n?n.subType:r.determineSubType(t,e);return i}function Ui(t,e){var n={},r={};return i(t||[],n),i(e||[],r,n),[o(n),o(r)];function i(t,e,n){for(var r=0,i=t.length;r<i;r++){var o=zi(t[r].seriesId,null);if(null==o)return;for(var a=ki(t[r].dataIndex),s=n&&n[o],l=0,u=a.length;l<u;l++){var c=a[l];s&&s[c]?s[c]=null:(e[o]||(e[o]={}))[c]=1}}}function o(t,e){var n=[];for(var r in t)if(t.hasOwnProperty(r)&&null!=t[r])if(e)n.push(+r);else{var i=o(t[r],!0);i.length&&n.push({seriesId:r,dataIndex:i})}return n}}function $i(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?Object(v["isArray"])(e.dataIndex)?Object(v["map"])(e.dataIndex,(function(e){return t.indexOfRawIndex(e)})):t.indexOfRawIndex(e.dataIndex):null!=e.name?Object(v["isArray"])(e.name)?Object(v["map"])(e.name,(function(e){return t.indexOfName(e)})):t.indexOfName(e.name):void 0}function Yi(){var t="__ec_inner_"+Xi++;return function(e){return e[t]||(e[t]={})}}var Xi=_i();function Ki(t,e,n){var r=Zi(e,n),i=r.mainTypeSpecified,o=r.queryOptionMap,a=r.others,s=a,l=n?n.defaultMainType:null;return!i&&l&&o.set(l,{}),o.each((function(e,r){var i=to(t,r,e,{useDefault:l===r,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});s[r+"Models"]=i.models,s[r+"Model"]=i.models[0]})),s}function Zi(t,e){var n;if(Object(v["isString"])(t)){var r={};r[t+"Index"]=0,n=r}else n=t;var i=Object(v["createHashMap"])(),o={},a=!1;return Object(v["each"])(n,(function(t,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],l=(r[2]||"").toLowerCase();if(s&&l&&!(e&&e.includeMainTypes&&Object(v["indexOf"])(e.includeMainTypes,s)<0)){a=a||!!s;var u=i.get(s)||i.set(s,{});u[l]=t}}else o[n]=t})),{mainTypeSpecified:a,queryOptionMap:i,others:o}}var Qi={useDefault:!0,enableAll:!1,enableNone:!1},Ji={useDefault:!1,enableAll:!0,enableNone:!0};function to(t,e,n,r){r=r||Qi;var i=n.index,o=n.id,a=n.name,s={models:null,specified:null!=i||null!=o||null!=a};if(!s.specified){var l=void 0;return s.models=r.useDefault&&(l=t.getComponent(e))?[l]:[],s}return"none"===i||!1===i?(Object(v["assert"])(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):("all"===i&&(Object(v["assert"])(r.enableAll,'`"all"` is not a valid value on index option.'),i=o=a=null),s.models=t.queryComponents({mainType:e,index:i,id:o,name:a}),s)}function eo(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function no(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function ro(t){return"auto"===t?g["a"].domSupported?"html":"richText":t||"html"}function io(t,e){var n=Object(v["createHashMap"])(),r=[];return Object(v["each"])(t,(function(t){var i=e(t);(n.get(i)||(r.push(i),n.set(i,[]))).push(t)})),{keys:r,buckets:n}}function oo(t,e,n,r,i){var o=null==e||"auto"===e;if(null==r)return r;if(Object(v["isNumber"])(r)){var a=Si(n||0,r,i);return ti(a,o?Math.max(ni(n||0),ni(r)):e)}if(Object(v["isString"])(r))return i<1?n:r;for(var s=[],l=n,u=r,c=Math.max(l?l.length:0,u.length),h=0;h<c;++h){var f=t.getDimensionInfo(h);if(f&&"ordinal"===f.type)s[h]=(i<1&&l?l:u)[h];else{var d=l&&l[h]?l[h]:0,p=u[h];a=Si(d,p,i);s[h]=ti(a,o?Math.max(ni(d),ni(p)):e)}}return s}var ao=".",so="___EC__COMPONENT__CONTAINER___",lo="___EC__EXTENDED_CLASS___";function uo(t){var e={main:"",sub:""};if(t){var n=t.split(ao);e.main=n[0]||"",e.sub=n[1]||""}return e}function co(t){v["assert"](/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function ho(t){return!(!t||!t[lo])}function fo(t,e){t.$constructor=t,t.extend=function(t){var e,n=this;return po(n)?e=function(t){function e(){return t.apply(this,arguments)||this}return p(e,t),e}(n):(e=function(){(t.$constructor||n).apply(this,arguments)},v["inherits"](e,this)),v["extend"](e.prototype,t),e[lo]=!0,e.extend=this.extend,e.superCall=mo,e.superApply=bo,e.superClass=n,e}}function po(t){return v["isFunction"](t)&&/^class\s/.test(Function.prototype.toString.call(t))}function go(t,e){t.extend=e.extend}var vo=Math.round(10*Math.random());function yo(t){var e=["__\0is_clz",vo++].join("_");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}}function mo(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[e].apply(t,n)}function bo(t,e,n){return this.superClass.prototype[e].apply(t,n)}function _o(t){var e={};function n(t){var n=e[t.main];return n&&n[so]||(n=e[t.main]={},n[so]=!0),n}t.registerClass=function(t){var r=t.type||t.prototype.type;if(r){co(r),t.prototype.type=r;var i=uo(r);if(i.sub){if(i.sub!==so){var o=n(i);o[i.sub]=t}}else e[i.main]=t}return t},t.getClass=function(t,n,r){var i=e[t];if(i&&i[so]&&(i=n?i[n]:null),r&&!i)throw new Error(n?"Component "+t+"."+(n||"")+" is used but not imported.":t+".type should be specified.");return i},t.getClassesByMainType=function(t){var n=uo(t),r=[],i=e[n.main];return i&&i[so]?v["each"](i,(function(t,e){e!==so&&r.push(t)})):r.push(i),r},t.hasClass=function(t){var n=uo(t);return!!e[n.main]},t.getAllClassMainTypes=function(){var t=[];return v["each"](e,(function(e,n){t.push(n)})),t},t.hasSubTypes=function(t){var n=uo(t),r=e[n.main];return r&&r[so]}}function xo(t,e){for(var n=0;n<t.length;n++)t[n][1]||(t[n][1]=t[n][0]);return e=e||!1,function(n,r,i){for(var o={},a=0;a<t.length;a++){var s=t[a][1];if(!(r&&v["indexOf"](r,s)>=0||i&&v["indexOf"](i,s)<0)){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}var wo=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],So=xo(wo),Oo=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return So(this,t,e)},t}(),Co=new hr["a"](50);function ko(t){if("string"===typeof t){var e=Co.get(t);return e&&e.image}return t}function Ao(t,e,n,r,i){if(t){if("string"===typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=Co.get(t),a={hostEl:n,cb:r,cbPayload:i};return o?(e=o.image,!To(e)&&o.pending.push(a)):(e=fr["d"].loadImage(t,Mo,Mo),e.__zrImageSrc=t,Co.put(t,e.__cachedImgObj={image:e,pending:[a]})),e}return t}return e}function Mo(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function To(t){return t&&t.width&&t.height}var Io=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Eo(t,e,n,r,i){if(!e)return"";var o=(t+"").split("\n");i=Po(e,n,r,i);for(var a=0,s=o.length;a<s;a++)o[a]=jo(o[a],i);return o.join("\n")}function Po(t,e,n,r){r=r||{};var i=Object(v["extend"])({},r);i.font=e,n=Object(v["retrieve2"])(n,"..."),i.maxIterations=Object(v["retrieve2"])(r.maxIterations,2);var o=i.minChar=Object(v["retrieve2"])(r.minChar,0);i.cnCharWidth=pr("国",e);var a=i.ascCharWidth=pr("a",e);i.placeholder=Object(v["retrieve2"])(r.placeholder,"");for(var s=t=Math.max(0,t-1),l=0;l<o&&s>=a;l++)s-=a;var u=pr(n,e);return u>s&&(n="",u=0),s=t-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=t,i}function jo(t,e){var n=e.containerWidth,r=e.font,i=e.contentWidth;if(!n)return"";var o=pr(t,r);if(o<=n)return t;for(var a=0;;a++){if(o<=i||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?Lo(t,i,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,s),o=pr(t,r)}return""===t&&(t=e.placeholder),t}function Lo(t,e,n,r){for(var i=0,o=0,a=t.length;o<a&&i<e;o++){var s=t.charCodeAt(o);i+=0<=s&&s<=127?n:r}return o}function Do(t,e){null!=t&&(t+="");var n,r=e.overflow,i=e.padding,o=e.font,a="truncate"===r,s=br(o),l=Object(v["retrieve2"])(e.lineHeight,s),u=!!e.backgroundColor,c="truncate"===e.lineOverflow,h=e.width;n=null==h||"break"!==r&&"breakAll"!==r?t?t.split("\n"):[]:t?Ho(t,e.font,h,"breakAll"===r,0).lines:[];var f=n.length*l,d=Object(v["retrieve2"])(e.height,f);if(f>d&&c){var p=Math.floor(d/l);n=n.slice(0,p)}if(t&&a&&null!=h)for(var g=Po(h,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),y=0;y<n.length;y++)n[y]=jo(n[y],g);var m=d,b=0;for(y=0;y<n.length;y++)b=Math.max(pr(n[y],o),b);null==h&&(h=b);var _=b;return i&&(m+=i[0]+i[2],_+=i[1]+i[3],h+=i[1]+i[3]),u&&(_=h),{lines:n,height:d,outerWidth:_,outerHeight:m,lineHeight:l,calculatedLineHeight:s,contentWidth:b,contentHeight:f,width:h}}var Ro=function(){function t(){}return t}(),No=function(){function t(t){this.tokens=[],t&&(this.tokens=t)}return t}(),Bo=function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return t}();function Fo(t,e){var n=new Bo;if(null!=t&&(t+=""),!t)return n;var r,i=e.width,o=e.height,a=e.overflow,s="break"!==a&&"breakAll"!==a||null==i?null:{width:i,accumWidth:0,breakAll:"breakAll"===a},l=Io.lastIndex=0;while(null!=(r=Io.exec(t))){var u=r.index;u>l&&zo(n,t.substring(l,u),e,s),zo(n,r[2],e,s,r[1]),l=Io.lastIndex}l<t.length&&zo(n,t.substring(l,t.length),e,s);var c=[],h=0,f=0,d=e.padding,p="truncate"===a,g="truncate"===e.lineOverflow;function y(t,e,n){t.width=e,t.lineHeight=n,h+=n,f=Math.max(f,e)}t:for(var m=0;m<n.lines.length;m++){for(var b=n.lines[m],_=0,x=0,w=0;w<b.tokens.length;w++){var S=b.tokens[w],O=S.styleName&&e.rich[S.styleName]||{},C=S.textPadding=O.padding,k=C?C[1]+C[3]:0,A=S.font=O.font||e.font;S.contentHeight=br(A);var M=Object(v["retrieve2"])(O.height,S.contentHeight);if(S.innerHeight=M,C&&(M+=C[0]+C[2]),S.height=M,S.lineHeight=Object(v["retrieve3"])(O.lineHeight,e.lineHeight,M),S.align=O&&O.align||e.align,S.verticalAlign=O&&O.verticalAlign||"middle",g&&null!=o&&h+S.lineHeight>o){w>0?(b.tokens=b.tokens.slice(0,w),y(b,x,_),n.lines=n.lines.slice(0,m+1)):n.lines=n.lines.slice(0,m);break t}var T=O.width,I=null==T||"auto"===T;if("string"===typeof T&&"%"===T.charAt(T.length-1))S.percentWidth=T,c.push(S),S.contentWidth=pr(S.text,A);else{if(I){var E=O.backgroundColor,P=E&&E.image;P&&(P=ko(P),To(P)&&(S.width=Math.max(S.width,P.width*M/P.height)))}var j=p&&null!=i?i-x:null;null!=j&&j<S.width?!I||j<k?(S.text="",S.width=S.contentWidth=0):(S.text=Eo(S.text,j-k,A,e.ellipsis,{minChar:e.truncateMinChar}),S.width=S.contentWidth=pr(S.text,A)):S.contentWidth=pr(S.text,A)}S.width+=k,x+=S.width,O&&(_=Math.max(_,S.lineHeight))}y(b,x,_)}n.outerWidth=n.width=Object(v["retrieve2"])(i,f),n.outerHeight=n.height=Object(v["retrieve2"])(o,h),n.contentHeight=h,n.contentWidth=f,d&&(n.outerWidth+=d[1]+d[3],n.outerHeight+=d[0]+d[2]);for(m=0;m<c.length;m++){S=c[m];var L=S.percentWidth;S.width=parseInt(L,10)/100*n.width}return n}function zo(t,e,n,r,i){var o,a,s=""===e,l=i&&n.rich[i]||{},u=t.lines,c=l.font||n.font,h=!1;if(r){var f=l.padding,d=f?f[1]+f[3]:0;if(null!=l.width&&"auto"!==l.width){var p=_r(l.width,r.width)+d;u.length>0&&p+r.accumWidth>r.width&&(o=e.split("\n"),h=!0),r.accumWidth=p}else{var g=Ho(e,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=g.accumWidth+d,a=g.linesWidths,o=g.lines}}else o=e.split("\n");for(var v=0;v<o.length;v++){var y=o[v],m=new Ro;if(m.styleName=i,m.text=y,m.isLineHolder=!y&&!s,"number"===typeof l.width?m.width=l.width:m.width=a?a[v]:pr(y,c),v||h)u.push(new No([m]));else{var b=(u[u.length-1]||(u[0]=new No)).tokens,_=b.length;1===_&&b[0].isLineHolder?b[0]=m:(y||!_||s)&&b.push(m)}}}function Vo(t){var e=t.charCodeAt(0);return e>=33&&e<=383}var qo=Object(v["reduce"])(",&?/;] ".split(""),(function(t,e){return t[e]=!0,t}),{});function Go(t){return!Vo(t)||!!qo[t]}function Ho(t,e,n,r,i){for(var o=[],a=[],s="",l="",u=0,c=0,h=0;h<t.length;h++){var f=t.charAt(h);if("\n"!==f){var d=pr(f,e),p=!r&&!Go(f);(o.length?c+d>n:i+c+d>n)?c?(s||l)&&(p?(s||(s=l,l="",u=0,c=u),o.push(s),a.push(c-u),l+=f,u+=d,s="",c=u):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=f,c=d)):p?(o.push(l),a.push(u),l=f,u=d):(o.push(f),a.push(d)):(c+=d,p?(l+=f,u+=d):(l&&(s+=l,l="",u=0),s+=f))}else l&&(s+=l,c+=u),o.push(s),a.push(c),s="",l="",u=0,c=0}return o.length||s||(s=t,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(c)),1===o.length&&(c+=i),{accumWidth:c,lines:o,linesWidths:a}}var Wo="__zr_style_"+Math.round(10*Math.random()),Uo={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},$o={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Uo[Wo]=!0;var Yo=["z","z2","invisible"],Xo=["invisible"],Ko=function(t){function e(e){return t.call(this,e)||this}return p(e,t),e.prototype._init=function(e){for(var n=Object(v["keys"])(e),r=0;r<n.length;r++){var i=n[r];"style"===i?this.useStyle(e[i]):t.prototype.attrKV.call(this,i,e[i])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,e,n,r){var i=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&Jo(this,t,e)||i&&!i[0]&&!i[3])return!1;if(n&&this.__clipPaths)for(var o=0;o<this.__clipPaths.length;++o)if(this.__clipPaths[o].isZeroArea())return!1;if(r&&this.parent){var a=this.parent;while(a){if(a.ignore)return!1;a=a.parent}}return!0},e.prototype.contain=function(t,e){return this.rectContain(t,e)},e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.rectContain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect();return r.contain(n[0],n[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var e=this.transform,n=this.getBoundingRect(),r=this.style,i=r.shadowBlur||0,o=r.shadowOffsetX||0,a=r.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new qt(0,0,0,0)),e?qt.applyTransform(t,n,e):t.copy(n),(i||o||a)&&(t.width+=2*i+Math.abs(o),t.height+=2*i+Math.abs(a),t.x=Math.min(t.x,t.x+o-i),t.y=Math.min(t.y,t.y+a-i));var s=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-s),t.y=Math.floor(t.y-s),t.width=Math.ceil(t.width+1+2*s),t.height=Math.ceil(t.height+1+2*s))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new qt(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(e,n){"style"!==e?t.prototype.attrKV.call(this,e,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(t,e){return"string"===typeof t?this.style[t]=e:Object(v["extend"])(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=fe,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&fe)},e.prototype.styleUpdated=function(){this.__dirty&=~fe},e.prototype.createStyle=function(t){return Object(v["createObject"])(Uo,t)},e.prototype.useStyle=function(t){t[Wo]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[Wo]},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,n,Yo)},e.prototype._applyStateObj=function(e,n,r,i,o,a){t.prototype._applyStateObj.call(this,e,n,r,i,o,a);var s,l=!(n&&i);if(n&&n.style?o?i?s=n.style:(s=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(s,n.style)):(s=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(s,n.style)):l&&(s=r.style),s)if(o){var u=this.style;if(this.style=this.createStyle(l?{}:u),l)for(var c=Object(v["keys"])(u),h=0;h<c.length;h++){var f=c[h];f in s&&(s[f]=s[f],this.style[f]=u[f])}var d=Object(v["keys"])(s);for(h=0;h<d.length;h++){f=d[h];this.style[f]=this.style[f]}this._transitionState(e,{style:s},a,this.getAnimationStyleProps())}else this.useStyle(s);var p=this.__inHover?Xo:Yo;for(h=0;h<p.length;h++){f=p[h];n&&null!=n[f]?this[f]=n[f]:l&&null!=r[f]&&(this[f]=r[f])}},e.prototype._mergeStates=function(e){for(var n,r=t.prototype._mergeStates.call(this,e),i=0;i<e.length;i++){var o=e[i];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(r.style=n),r},e.prototype._mergeStyle=function(t,e){return Object(v["extend"])(t,e),t},e.prototype.getAnimationStyleProps=function(){return $o},e.initDefaultProps=function(){var t=e.prototype;t.type="displayable",t.invisible=!1,t.z=0,t.z2=0,t.zlevel=0,t.culling=!1,t.cursor="pointer",t.rectHover=!1,t.incremental=!1,t._rect=null,t.dirtyRectTolerance=0,t.__dirty=he|fe}(),e}(Dr),Zo=new qt(0,0,0,0),Qo=new qt(0,0,0,0);function Jo(t,e,n){return Zo.copy(t.getBoundingRect()),t.transform&&Zo.applyTransform(t.transform),Qo.width=e,Qo.height=n,!Zo.intersect(Qo)}var ta=Ko,ea=Math.min,na=Math.max,ra=Math.sin,ia=Math.cos,oa=2*Math.PI,aa=y(),sa=y(),la=y();function ua(t,e,n){if(0!==t.length){for(var r=t[0],i=r[0],o=r[0],a=r[1],s=r[1],l=1;l<t.length;l++)r=t[l],i=ea(i,r[0]),o=na(o,r[0]),a=ea(a,r[1]),s=na(s,r[1]);e[0]=i,e[1]=a,n[0]=o,n[1]=s}}function ca(t,e,n,r,i,o){i[0]=ea(t,n),i[1]=ea(e,r),o[0]=na(t,n),o[1]=na(e,r)}var ha=[],fa=[];function da(t,e,n,r,i,o,a,s,l,u){var c=Ne,h=Le,f=c(t,n,i,a,ha);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var d=0;d<f;d++){var p=h(t,n,i,a,ha[d]);l[0]=ea(p,l[0]),u[0]=na(p,u[0])}f=c(e,r,o,s,fa);for(d=0;d<f;d++){var g=h(e,r,o,s,fa[d]);l[1]=ea(g,l[1]),u[1]=na(g,u[1])}l[0]=ea(t,l[0]),u[0]=na(t,u[0]),l[0]=ea(a,l[0]),u[0]=na(a,u[0]),l[1]=ea(e,l[1]),u[1]=na(e,u[1]),l[1]=ea(s,l[1]),u[1]=na(s,u[1])}function pa(t,e,n,r,i,o,a,s){var l=He,u=Ve,c=na(ea(l(t,n,i),1),0),h=na(ea(l(e,r,o),1),0),f=u(t,n,i,c),d=u(e,r,o,h);a[0]=ea(t,i,f),a[1]=ea(e,o,d),s[0]=na(t,i,f),s[1]=na(e,o,d)}function ga(t,e,n,r,i,o,a,s,l){var u=z,c=V,h=Math.abs(i-o);if(h%oa<1e-4&&h>1e-4)return s[0]=t-n,s[1]=e-r,l[0]=t+n,void(l[1]=e+r);if(aa[0]=ia(i)*n+t,aa[1]=ra(i)*r+e,sa[0]=ia(o)*n+t,sa[1]=ra(o)*r+e,u(s,aa,sa),c(l,aa,sa),i%=oa,i<0&&(i+=oa),o%=oa,o<0&&(o+=oa),i>o&&!a?o+=oa:i<o&&a&&(i+=oa),a){var f=o;o=i,i=f}for(var d=0;d<o;d+=Math.PI/2)d>i&&(la[0]=ia(d)*n+t,la[1]=ra(d)*r+e,u(s,la,s),c(l,la,l))}var va={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},ya=[],ma=[],ba=[],_a=[],xa=[],wa=[],Sa=Math.min,Oa=Math.max,Ca=Math.cos,ka=Math.sin,Aa=Math.abs,Ma=Math.PI,Ta=2*Ma,Ia="undefined"!==typeof Float32Array,Ea=[];function Pa(t){var e=Math.round(t/Ma*1e8)/1e8;return e%2*Ma}function ja(t,e){var n=Pa(t[0]);n<0&&(n+=Ta);var r=n-t[0],i=t[1];i+=r,!e&&i-n>=Ta?i=n+Ta:e&&n-i>=Ta?i=n-Ta:!e&&n>i?i=n+(Ta-Pa(n-i)):e&&n<i&&(i=n-(Ta-Pa(i-n))),t[0]=n,t[1]=i}var La=function(){function t(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(t,e,n){n=n||0,n>0&&(this._ux=Aa(n/Xn/t)||0,this._uy=Aa(n/Xn/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(va.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var n=Aa(t-this._xi),r=Aa(e-this._yi),i=n>this._ux||r>this._uy;if(this.addData(va.L,t,e),this._ctx&&i&&this._ctx.lineTo(t,e),i)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+r*r;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,n,r,i,o){return this._drawPendingPt(),this.addData(va.C,t,e,n,r,i,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,r,i,o),this._xi=i,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,r){return this._drawPendingPt(),this.addData(va.Q,t,e,n,r),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,r),this._xi=n,this._yi=r,this},t.prototype.arc=function(t,e,n,r,i,o){this._drawPendingPt(),Ea[0]=r,Ea[1]=i,ja(Ea,o),r=Ea[0],i=Ea[1];var a=i-r;return this.addData(va.A,t,e,n,n,r,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,r,i,o),this._xi=Ca(i)*n+t,this._yi=ka(i)*n+e,this},t.prototype.arcTo=function(t,e,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,r,i),this},t.prototype.rect=function(t,e,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,r),this.addData(va.R,t,e,n,r),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(va.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!Ia||(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e},t.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,n=0,r=this._len,i=0;i<e;i++)n+=t[i].len();Ia&&this.data instanceof Float32Array&&(this.data=new Float32Array(r+n));for(i=0;i<e;i++)for(var o=t[i].data,a=0;a<o.length;a++)this.data[r++]=o[a];this._len=r},t.prototype.addData=function(t,e,n,r,i,o,a,s,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var c=0;c<arguments.length;c++)u[this._len++]=arguments[c]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,Ia&&this._len>11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){ba[0]=ba[1]=xa[0]=xa[1]=Number.MAX_VALUE,_a[0]=_a[1]=wa[0]=wa[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,r=0,i=0,o=0;for(t=0;t<this._len;){var a=e[t++],s=1===t;switch(s&&(n=e[t],r=e[t+1],i=n,o=r),a){case va.M:n=i=e[t++],r=o=e[t++],xa[0]=i,xa[1]=o,wa[0]=i,wa[1]=o;break;case va.L:ca(n,r,e[t],e[t+1],xa,wa),n=e[t++],r=e[t++];break;case va.C:da(n,r,e[t++],e[t++],e[t++],e[t++],e[t],e[t+1],xa,wa),n=e[t++],r=e[t++];break;case va.Q:pa(n,r,e[t++],e[t++],e[t],e[t+1],xa,wa),n=e[t++],r=e[t++];break;case va.A:var l=e[t++],u=e[t++],c=e[t++],h=e[t++],f=e[t++],d=e[t++]+f;t+=1;var p=!e[t++];s&&(i=Ca(f)*c+l,o=ka(f)*h+u),ga(l,u,c,h,f,d,p,xa,wa),n=Ca(d)*c+l,r=ka(d)*h+u;break;case va.R:i=n=e[t++],o=r=e[t++];var g=e[t++],v=e[t++];ca(i,o,i+g,o+v,xa,wa);break;case va.Z:n=i,r=o;break}z(ba,ba,xa),V(_a,_a,wa)}return 0===t&&(ba[0]=ba[1]=_a[0]=_a[1]=0),new qt(ba[0],ba[1],_a[0]-ba[0],_a[1]-ba[1])},t.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,r=this._uy,i=0,o=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,c=0,h=0;h<e;){var f=t[h++],d=1===h;d&&(i=t[h],o=t[h+1],a=i,s=o);var p=-1;switch(f){case va.M:i=a=t[h++],o=s=t[h++];break;case va.L:var g=t[h++],v=t[h++],y=g-i,m=v-o;(Aa(y)>n||Aa(m)>r||h===e-1)&&(p=Math.sqrt(y*y+m*m),i=g,o=v);break;case va.C:var b=t[h++],_=t[h++],x=(g=t[h++],v=t[h++],t[h++]),w=t[h++];p=ze(i,o,b,_,g,v,x,w,10),i=x,o=w;break;case va.Q:b=t[h++],_=t[h++],g=t[h++],v=t[h++];p=$e(i,o,b,_,g,v,10),i=g,o=v;break;case va.A:var S=t[h++],O=t[h++],C=t[h++],k=t[h++],A=t[h++],M=t[h++],T=M+A;h+=1;t[h++];d&&(a=Ca(A)*C+S,s=ka(A)*k+O),p=Oa(C,k)*Sa(Ta,Math.abs(M)),i=Ca(T)*C+S,o=ka(T)*k+O;break;case va.R:a=i=t[h++],s=o=t[h++];var I=t[h++],E=t[h++];p=2*I+2*E;break;case va.Z:y=a-i,m=s-o;p=Math.sqrt(y*y+m*m),i=a,o=s;break}p>=0&&(l[c++]=p,u+=p)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var n,r,i,o,a,s,l,u,c,h,f,d=this.data,p=this._ux,g=this._uy,v=this._len,y=e<1,m=0,b=0,_=0;if(!y||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=this._pathLen,c=e*u,c))t:for(var x=0;x<v;){var w=d[x++],S=1===x;switch(S&&(i=d[x],o=d[x+1],n=i,r=o),w!==va.L&&_>0&&(t.lineTo(h,f),_=0),w){case va.M:n=i=d[x++],r=o=d[x++],t.moveTo(i,o);break;case va.L:a=d[x++],s=d[x++];var O=Aa(a-i),C=Aa(s-o);if(O>p||C>g){if(y){var k=l[b++];if(m+k>c){var A=(c-m)/k;t.lineTo(i*(1-A)+a*A,o*(1-A)+s*A);break t}m+=k}t.lineTo(a,s),i=a,o=s,_=0}else{var M=O*O+C*C;M>_&&(h=a,f=s,_=M)}break;case va.C:var T=d[x++],I=d[x++],E=d[x++],P=d[x++],j=d[x++],L=d[x++];if(y){k=l[b++];if(m+k>c){A=(c-m)/k;Be(i,T,E,j,A,ya),Be(o,I,P,L,A,ma),t.bezierCurveTo(ya[1],ma[1],ya[2],ma[2],ya[3],ma[3]);break t}m+=k}t.bezierCurveTo(T,I,E,P,j,L),i=j,o=L;break;case va.Q:T=d[x++],I=d[x++],E=d[x++],P=d[x++];if(y){k=l[b++];if(m+k>c){A=(c-m)/k;We(i,T,E,A,ya),We(o,I,P,A,ma),t.quadraticCurveTo(ya[1],ma[1],ya[2],ma[2]);break t}m+=k}t.quadraticCurveTo(T,I,E,P),i=E,o=P;break;case va.A:var D=d[x++],R=d[x++],N=d[x++],B=d[x++],F=d[x++],z=d[x++],V=d[x++],q=!d[x++],G=N>B?N:B,H=Aa(N-B)>.001,W=F+z,U=!1;if(y){k=l[b++];m+k>c&&(W=F+z*(c-m)/k,U=!0),m+=k}if(H&&t.ellipse?t.ellipse(D,R,N,B,V,F,W,q):t.arc(D,R,G,F,W,q),U)break t;S&&(n=Ca(F)*N+D,r=ka(F)*B+R),i=Ca(W)*N+D,o=ka(W)*B+R;break;case va.R:n=i=d[x],r=o=d[x+1],a=d[x++],s=d[x++];var $=d[x++],Y=d[x++];if(y){k=l[b++];if(m+k>c){var X=c-m;t.moveTo(a,s),t.lineTo(a+Sa(X,$),s),X-=$,X>0&&t.lineTo(a+$,s+Sa(X,Y)),X-=Y,X>0&&t.lineTo(a+Oa($-X,0),s+Y),X-=$,X>0&&t.lineTo(a,s+Oa(Y-X,0));break t}m+=k}t.rect(a,s,$,Y);break;case va.Z:if(y){k=l[b++];if(m+k>c){A=(c-m)/k;t.lineTo(i*(1-A)+n*A,o*(1-A)+r*A);break t}m+=k}t.closePath(),i=n,o=r}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=va,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}(),Da=La;function Ra(t,e,n,r,i,o,a){if(0===i)return!1;var s=i,l=0,u=t;if(a>e+s&&a>r+s||a<e-s&&a<r-s||o>t+s&&o>n+s||o<t-s&&o<n-s)return!1;if(t===n)return Math.abs(o-t)<=s/2;l=(e-r)/(t-n),u=(t*r-n*e)/(t-n);var c=l*o-a+u,h=c*c/(l*l+1);return h<=s/2*s/2}function Na(t,e,n,r,i,o,a,s,l,u,c){if(0===l)return!1;var h=l;if(c>e+h&&c>r+h&&c>o+h&&c>s+h||c<e-h&&c<r-h&&c<o-h&&c<s-h||u>t+h&&u>n+h&&u>i+h&&u>a+h||u<t-h&&u<n-h&&u<i-h&&u<a-h)return!1;var f=Fe(t,e,n,r,i,o,a,s,u,c,null);return f<=h/2}function Ba(t,e,n,r,i,o,a,s,l){if(0===a)return!1;var u=a;if(l>e+u&&l>r+u&&l>o+u||l<e-u&&l<r-u&&l<o-u||s>t+u&&s>n+u&&s>i+u||s<t-u&&s<n-u&&s<i-u)return!1;var c=Ue(t,e,n,r,i,o,s,l,null);return c<=u/2}var Fa=2*Math.PI;function za(t){return t%=Fa,t<0&&(t+=Fa),t}var Va=2*Math.PI;function qa(t,e,n,r,i,o,a,s,l){if(0===a)return!1;var u=a;s-=t,l-=e;var c=Math.sqrt(s*s+l*l);if(c-u>n||c+u<n)return!1;if(Math.abs(r-i)%Va<1e-4)return!0;if(o){var h=r;r=za(i),i=za(h)}else r=za(r),i=za(i);r>i&&(i+=Va);var f=Math.atan2(l,s);return f<0&&(f+=Va),f>=r&&f<=i||f+Va>=r&&f+Va<=i}function Ga(t,e,n,r,i,o){if(o>e&&o>r||o<e&&o<r)return 0;if(r===e)return 0;var a=(o-e)/(r-e),s=r<e?1:-1;1!==a&&0!==a||(s=r<e?.5:-.5);var l=a*(n-t)+t;return l===i?1/0:l>i?s:0}var Ha=Da.CMD,Wa=2*Math.PI,Ua=1e-4;function $a(t,e){return Math.abs(t-e)<Ua}var Ya=[-1,-1,-1],Xa=[-1,-1];function Ka(){var t=Xa[0];Xa[0]=Xa[1],Xa[1]=t}function Za(t,e,n,r,i,o,a,s,l,u){if(u>e&&u>r&&u>o&&u>s||u<e&&u<r&&u<o&&u<s)return 0;var c=Re(e,r,o,s,u,Ya);if(0===c)return 0;for(var h=0,f=-1,d=void 0,p=void 0,g=0;g<c;g++){var v=Ya[g],y=0===v||1===v?.5:1,m=Le(t,n,i,a,v);m<l||(f<0&&(f=Ne(e,r,o,s,Xa),Xa[1]<Xa[0]&&f>1&&Ka(),d=Le(e,r,o,s,Xa[0]),f>1&&(p=Le(e,r,o,s,Xa[1]))),2===f?v<Xa[0]?h+=d<e?y:-y:v<Xa[1]?h+=p<d?y:-y:h+=s<p?y:-y:v<Xa[0]?h+=d<e?y:-y:h+=s<d?y:-y)}return h}function Qa(t,e,n,r,i,o,a,s){if(s>e&&s>r&&s>o||s<e&&s<r&&s<o)return 0;var l=Ge(e,r,o,s,Ya);if(0===l)return 0;var u=He(e,r,o);if(u>=0&&u<=1){for(var c=0,h=Ve(e,r,o,u),f=0;f<l;f++){var d=0===Ya[f]||1===Ya[f]?.5:1,p=Ve(t,n,i,Ya[f]);p<a||(Ya[f]<u?c+=h<e?d:-d:c+=o<h?d:-d)}return c}d=0===Ya[0]||1===Ya[0]?.5:1,p=Ve(t,n,i,Ya[0]);return p<a?0:o<e?d:-d}function Ja(t,e,n,r,i,o,a,s){if(s-=e,s>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Ya[0]=-l,Ya[1]=l;var u=Math.abs(r-i);if(u<1e-4)return 0;if(u>=Wa-1e-4){r=0,i=Wa;var c=o?1:-1;return a>=Ya[0]+t&&a<=Ya[1]+t?c:0}if(r>i){var h=r;r=i,i=h}r<0&&(r+=Wa,i+=Wa);for(var f=0,d=0;d<2;d++){var p=Ya[d];if(p+t>a){var g=Math.atan2(s,p);c=o?1:-1;g<0&&(g=Wa+g),(g>=r&&g<=i||g+Wa>=r&&g+Wa<=i)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),f+=c)}}return f}function ts(t,e,n,r,i){for(var o,a,s=t.data,l=t.len(),u=0,c=0,h=0,f=0,d=0,p=0;p<l;){var g=s[p++],v=1===p;switch(g===Ha.M&&p>1&&(n||(u+=Ga(c,h,f,d,r,i))),v&&(c=s[p],h=s[p+1],f=c,d=h),g){case Ha.M:f=s[p++],d=s[p++],c=f,h=d;break;case Ha.L:if(n){if(Ra(c,h,s[p],s[p+1],e,r,i))return!0}else u+=Ga(c,h,s[p],s[p+1],r,i)||0;c=s[p++],h=s[p++];break;case Ha.C:if(n){if(Na(c,h,s[p++],s[p++],s[p++],s[p++],s[p],s[p+1],e,r,i))return!0}else u+=Za(c,h,s[p++],s[p++],s[p++],s[p++],s[p],s[p+1],r,i)||0;c=s[p++],h=s[p++];break;case Ha.Q:if(n){if(Ba(c,h,s[p++],s[p++],s[p],s[p+1],e,r,i))return!0}else u+=Qa(c,h,s[p++],s[p++],s[p],s[p+1],r,i)||0;c=s[p++],h=s[p++];break;case Ha.A:var y=s[p++],m=s[p++],b=s[p++],_=s[p++],x=s[p++],w=s[p++];p+=1;var S=!!(1-s[p++]);o=Math.cos(x)*b+y,a=Math.sin(x)*_+m,v?(f=o,d=a):u+=Ga(c,h,o,a,r,i);var O=(r-y)*_/b+y;if(n){if(qa(y,m,_,x,x+w,S,e,O,i))return!0}else u+=Ja(y,m,_,x,x+w,S,O,i);c=Math.cos(x+w)*b+y,h=Math.sin(x+w)*_+m;break;case Ha.R:f=c=s[p++],d=h=s[p++];var C=s[p++],k=s[p++];if(o=f+C,a=d+k,n){if(Ra(f,d,o,d,e,r,i)||Ra(o,d,o,a,e,r,i)||Ra(o,a,f,a,e,r,i)||Ra(f,a,f,d,e,r,i))return!0}else u+=Ga(o,d,o,a,r,i),u+=Ga(f,a,f,d,r,i);break;case Ha.Z:if(n){if(Ra(c,h,f,d,e,r,i))return!0}else u+=Ga(c,h,f,d,r,i);c=f,h=d;break}}return n||$a(h,d)||(u+=Ga(c,h,f,d,r,i)||0),0!==u}function es(t,e,n){return ts(t,0,!1,e,n)}function ns(t,e,n,r){return ts(t,e,!0,n,r)}var rs=Object(v["defaults"])({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Uo),is={style:Object(v["defaults"])({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},$o.style)},os=lr.concat(["invisible","culling","z","z2","zlevel","parent"]),as=function(t){function e(e){return t.call(this,e)||this}return p(e,t),e.prototype.update=function(){var n=this;t.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.prototype.buildPath&&(i.buildPath=function(t){n.buildPath(t,n.shape)}),i.silent=!0;var o=i.style;for(var a in r)o[a]!==r[a]&&(o[a]=r[a]);o.fill=r.fill?r.decal:null,o.decal=null,o.shadowColor=null,r.strokeFirst&&(o.stroke=null);for(var s=0;s<os.length;++s)i[os[s]]=this[os[s]];i.__dirty|=he}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(e){var n=Object(v["keys"])(e);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var i=0;i<n.length;i++){var o=n[i],a=e[o];"style"===o?this.style?Object(v["extend"])(this.style,a):this.useStyle(a):"shape"===o?Object(v["extend"])(this.shape,a):t.prototype.attrKV.call(this,o,a)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var t=this.style.fill;if("none"!==t){if(Object(v["isString"])(t)){var e=Object(Qe["lum"])(t,0);return e>.5?Zn:e>.2?Jn:Qn}if(t)return Qn}return Zn},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(Object(v["isString"])(e)){var n=this.__zr,r=!(!n||!n.isDarkMode()),i=Object(Qe["lum"])(t,0)<Kn;if(r===i)return e}},e.prototype.buildPath=function(t,e,n){},e.prototype.pathUpdated=function(){this.__dirty&=~de},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new Da(!1)},e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},e.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&de)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),t=i.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect(),i=this.style;if(t=n[0],e=n[1],r.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),ns(o,a/s,t,e)))return!0}if(this.hasFill())return es(o,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=de,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},e.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"===typeof t?n[t]=e:Object(v["extend"])(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&de)},e.prototype.createStyle=function(t){return Object(v["createObject"])(rs,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=Object(v["extend"])({},this.shape))},e.prototype._applyStateObj=function(e,n,r,i,o,a){t.prototype._applyStateObj.call(this,e,n,r,i,o,a);var s,l=!(n&&i);if(n&&n.shape?o?i?s=n.shape:(s=Object(v["extend"])({},r.shape),Object(v["extend"])(s,n.shape)):(s=Object(v["extend"])({},i?this.shape:r.shape),Object(v["extend"])(s,n.shape)):l&&(s=r.shape),s)if(o){this.shape=Object(v["extend"])({},this.shape);for(var u={},c=Object(v["keys"])(s),h=0;h<c.length;h++){var f=c[h];"object"===typeof s[f]?this.shape[f]=s[f]:u[f]=s[f]}this._transitionState(e,{shape:u},a)}else this.shape=s,this.dirtyShape()},e.prototype._mergeStates=function(e){for(var n,r=t.prototype._mergeStates.call(this,e),i=0;i<e.length;i++){var o=e[i];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(r.shape=n),r},e.prototype.getAnimationStyleProps=function(){return is},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var n=function(e){function n(n){var r=e.call(this,n)||this;return t.init&&t.init.call(r,n),r}return p(n,e),n.prototype.getDefaultStyle=function(){return Object(v["clone"])(t.style)},n.prototype.getDefaultShape=function(){return Object(v["clone"])(t.shape)},n}(e);for(var r in t)"function"===typeof t[r]&&(n.prototype[r]=t[r]);return n},e.initDefaultProps=function(){var t=e.prototype;t.type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=he|fe|de}(),e}(ta),ss=as,ls=Object(v["defaults"])({strokeFirst:!0,font:fr["a"],x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},rs),us=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0},e.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},e.prototype.createStyle=function(t){return Object(v["createObject"])(ls,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var n=vr(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var r=t.lineWidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(ta);us.prototype.type="tspan";var cs=us,hs=Object(v["defaults"])({x:0,y:0},Uo),fs={style:Object(v["defaults"])({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},$o.style)};function ds(t){return!!(t&&"string"!==typeof t&&t.width&&t.height)}var ps=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.createStyle=function(t){return Object(v["createObject"])(hs,t)},e.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var r=ds(e.image)?e.image:this.__image;if(!r)return 0;var i="width"===t?"height":"width",o=e[i];return null==o?r[t]:r[t]/r[i]*o},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return fs},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new qt(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(ta);ps.prototype.type="image";var gs=ps;function vs(t,e){var n,r,i,o,a,s=e.x,l=e.y,u=e.width,c=e.height,h=e.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"===typeof h?n=r=i=o=h:h instanceof Array?1===h.length?n=r=i=o=h[0]:2===h.length?(n=i=h[0],r=o=h[1]):3===h.length?(n=h[0],r=o=h[1],i=h[2]):(n=h[0],r=h[1],i=h[2],o=h[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>c&&(a=r+i,r*=c/a,i*=c/a),n+o>c&&(a=n+o,n*=c/a,o*=c/a),t.moveTo(s+n,l),t.lineTo(s+u-r,l),0!==r&&t.arc(s+u-r,l+r,r,-Math.PI/2,0),t.lineTo(s+u,l+c-i),0!==i&&t.arc(s+u-i,l+c-i,i,0,Math.PI/2),t.lineTo(s+o,l+c),0!==o&&t.arc(s+o,l+c-o,o,Math.PI/2,Math.PI),t.lineTo(s,l+n),0!==n&&t.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}var ys=Math.round;function ms(t,e,n){if(e){var r=e.x1,i=e.x2,o=e.y1,a=e.y2;t.x1=r,t.x2=i,t.y1=o,t.y2=a;var s=n&&n.lineWidth;return s?(ys(2*r)===ys(2*i)&&(t.x1=t.x2=_s(r,s,!0)),ys(2*o)===ys(2*a)&&(t.y1=t.y2=_s(o,s,!0)),t):t}}function bs(t,e,n){if(e){var r=e.x,i=e.y,o=e.width,a=e.height;t.x=r,t.y=i,t.width=o,t.height=a;var s=n&&n.lineWidth;return s?(t.x=_s(r,s,!0),t.y=_s(i,s,!0),t.width=Math.max(_s(r+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(_s(i+a,s,!1)-t.y,0===a?0:1),t):t}}function _s(t,e,n){if(!e)return t;var r=ys(2*t);return(r+ys(e))%2===0?r/2:(r+(n?1:-1))/2}var xs=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),ws={},Ss=function(t){function e(e){return t.call(this,e)||this}return p(e,t),e.prototype.getDefaultShape=function(){return new xs},e.prototype.buildPath=function(t,e){var n,r,i,o;if(this.subPixelOptimize){var a=bs(ws,e,this.style);n=a.x,r=a.y,i=a.width,o=a.height,a.r=e.r,e=a}else n=e.x,r=e.y,i=e.width,o=e.height;e.r?vs(t,e):t.rect(n,r,i,o)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(ss);Ss.prototype.type="rect";var Os=Ss,Cs={fill:"#000"},ks=2,As={style:Object(v["defaults"])({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},$o.style)},Ms=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Cs,n.attr(e),n}return p(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var n=this._children[e];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(e){var n=this.innerTransformable;return n?n.getLocalTransform(e):t.prototype.getLocalTransform.call(this,e)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,Ds(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=e},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new qt(0,0,0,0),e=this._children,n=[],r=null,i=0;i<e.length;i++){var o=e[i],a=o.getBoundingRect(),s=o.getLocalTransform(n);s?(t.copy(a),t.applyTransform(s),r=r||t.clone(),r.union(t)):(r=r||a.clone(),r.union(a))}this._rect=r||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||Cs},e.prototype.setTextContent=function(t){0},e.prototype._mergeStyle=function(t,e){if(!e)return t;var n=e.rich,r=t.rich||n&&{};return Object(v["extend"])(t,e),n&&r?(this._mergeRich(r,n),t.rich=r):r&&(t.rich=r),t},e.prototype._mergeRich=function(t,e){for(var n=Object(v["keys"])(e),r=0;r<n.length;r++){var i=n[r];t[i]=t[i]||{},Object(v["extend"])(t[i],e[i])}},e.prototype.getAnimationStyleProps=function(){return As},e.prototype._getOrCreateChild=function(t){var e=this._children[this._childCursor];return e&&e instanceof t||(e=new t),this._children[this._childCursor++]=e,e.__zr=this.__zr,e.parent=this,e},e.prototype._updatePlainTexts=function(){var t=this.style,e=t.font||fr["a"],n=t.padding,r=zs(t),i=Do(r,t),o=Vs(t),a=!!t.backgroundColor,s=i.outerHeight,l=i.outerWidth,u=i.contentWidth,c=i.lines,h=i.lineHeight,f=this._defaultStyle,d=t.x||0,p=t.y||0,g=t.align||f.align||"left",v=t.verticalAlign||f.verticalAlign||"top",y=d,m=mr(p,i.contentHeight,v);if(o||n){var b=yr(d,l,g),_=mr(p,s,v);o&&this._renderBackground(t,t,b,_,l,s)}m+=h/2,n&&(y=Fs(d,g,n),"top"===v?m+=n[0]:"bottom"===v&&(m-=n[2]));for(var x=0,w=!1,S=(Bs("fill"in t?t.fill:(w=!0,f.fill))),O=(Ns("stroke"in t?t.stroke:a||f.autoStroke&&!w?null:(x=ks,f.stroke))),C=t.textShadowBlur>0,k=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),A=i.calculatedLineHeight,M=0;M<c.length;M++){var T=this._getOrCreateChild(cs),I=T.createStyle();T.useStyle(I),I.text=c[M],I.x=y,I.y=m,g&&(I.textAlign=g),I.textBaseline="middle",I.opacity=t.opacity,I.strokeFirst=!0,C&&(I.shadowBlur=t.textShadowBlur||0,I.shadowColor=t.textShadowColor||"transparent",I.shadowOffsetX=t.textShadowOffsetX||0,I.shadowOffsetY=t.textShadowOffsetY||0),I.stroke=O,I.fill=S,O&&(I.lineWidth=t.lineWidth||x,I.lineDash=t.lineDash,I.lineDashOffset=t.lineDashOffset||0),I.font=e,js(I,t),m+=h,k&&T.setBoundingRect(new qt(yr(I.x,t.width,I.textAlign),mr(I.y,A,I.textBaseline),u,A))}},e.prototype._updateRichTexts=function(){var t=this.style,e=zs(t),n=Fo(e,t),r=n.width,i=n.outerWidth,o=n.outerHeight,a=t.padding,s=t.x||0,l=t.y||0,u=this._defaultStyle,c=t.align||u.align,h=t.verticalAlign||u.verticalAlign,f=yr(s,i,c),d=mr(l,o,h),p=f,g=d;a&&(p+=a[3],g+=a[0]);var v=p+r;Vs(t)&&this._renderBackground(t,t,f,d,i,o);for(var y=!!t.backgroundColor,m=0;m<n.lines.length;m++){var b=n.lines[m],_=b.tokens,x=_.length,w=b.lineHeight,S=b.width,O=0,C=p,k=v,A=x-1,M=void 0;while(O<x&&(M=_[O],!M.align||"left"===M.align))this._placeToken(M,t,w,g,C,"left",y),S-=M.width,C+=M.width,O++;while(A>=0&&(M=_[A],"right"===M.align))this._placeToken(M,t,w,g,k,"right",y),S-=M.width,k-=M.width,A--;C+=(r-(C-p)-(v-k)-S)/2;while(O<=A)M=_[O],this._placeToken(M,t,w,g,C+M.width/2,"center",y),C+=M.width,O++;g+=w}},e.prototype._placeToken=function(t,e,n,r,i,o,a){var s=e.rich[t.styleName]||{};s.text=t.text;var l=t.verticalAlign,u=r+n/2;"top"===l?u=r+t.height/2:"bottom"===l&&(u=r+n-t.height/2);var c=!t.isLineHolder&&Vs(s);c&&this._renderBackground(s,e,"right"===o?i-t.width:"center"===o?i-t.width/2:i,u-t.height/2,t.width,t.height);var h=!!s.backgroundColor,f=t.textPadding;f&&(i=Fs(i,o,f),u-=t.height/2-f[0]-t.innerHeight/2);var d=this._getOrCreateChild(cs),p=d.createStyle();d.useStyle(p);var g=this._defaultStyle,y=!1,m=0,b=Bs("fill"in s?s.fill:"fill"in e?e.fill:(y=!0,g.fill)),_=Ns("stroke"in s?s.stroke:"stroke"in e?e.stroke:h||a||g.autoStroke&&!y?null:(m=ks,g.stroke)),x=s.textShadowBlur>0||e.textShadowBlur>0;p.text=t.text,p.x=i,p.y=u,x&&(p.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,p.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",p.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,p.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),p.textAlign=o,p.textBaseline="middle",p.font=t.font||fr["a"],p.opacity=Object(v["retrieve3"])(s.opacity,e.opacity,1),js(p,s),_&&(p.lineWidth=Object(v["retrieve3"])(s.lineWidth,e.lineWidth,m),p.lineDash=Object(v["retrieve2"])(s.lineDash,e.lineDash),p.lineDashOffset=e.lineDashOffset||0,p.stroke=_),b&&(p.fill=b);var w=t.contentWidth,S=t.contentHeight;d.setBoundingRect(new qt(yr(p.x,w,p.textAlign),mr(p.y,S,p.textBaseline),w,S))},e.prototype._renderBackground=function(t,e,n,r,i,o){var a,s,l=t.backgroundColor,u=t.borderWidth,c=t.borderColor,h=l&&l.image,f=l&&!h,d=t.borderRadius,p=this;if(f||t.lineHeight||u&&c){a=this._getOrCreateChild(Os),a.useStyle(a.createStyle()),a.style.fill=null;var g=a.shape;g.x=n,g.y=r,g.width=i,g.height=o,g.r=d,a.dirtyShape()}if(f){var y=a.style;y.fill=l||null,y.fillOpacity=Object(v["retrieve2"])(t.fillOpacity,1)}else if(h){s=this._getOrCreateChild(gs),s.onload=function(){p.dirtyStyle()};var m=s.style;m.image=l.image,m.x=n,m.y=r,m.width=i,m.height=o}if(u&&c){y=a.style;y.lineWidth=u,y.stroke=c,y.strokeOpacity=Object(v["retrieve2"])(t.strokeOpacity,1),y.lineDash=t.borderDash,y.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var b=(a||s).style;b.shadowBlur=t.shadowBlur||0,b.shadowColor=t.shadowColor||"transparent",b.shadowOffsetX=t.shadowOffsetX||0,b.shadowOffsetY=t.shadowOffsetY||0,b.opacity=Object(v["retrieve3"])(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";return Ls(t)&&(e=[t.fontStyle,t.fontWeight,Ps(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&Object(v["trim"])(e)||t.textFont||t.font},e}(ta),Ts={left:!0,right:1,center:1},Is={top:1,bottom:1,middle:1},Es=["fontStyle","fontWeight","fontSize","fontFamily"];function Ps(t){return"string"!==typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?fr["c"]+"px":t+"px":t}function js(t,e){for(var n=0;n<Es.length;n++){var r=Es[n],i=e[r];null!=i&&(t[r]=i)}}function Ls(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}function Ds(t){return Rs(t),Object(v["each"])(t.rich,Rs),t}function Rs(t){if(t){t.font=Ms.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||Ts[e]?e:"left";var n=t.verticalAlign;"center"===n&&(n="middle"),t.verticalAlign=null==n||Is[n]?n:"top";var r=t.padding;r&&(t.padding=Object(v["normalizeCssArray"])(t.padding))}}function Ns(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function Bs(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function Fs(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function zs(t){var e=t.text;return null!=e&&(e+=""),e}function Vs(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var qs=Ms,Gs=Yi(),Hs=function(t,e,n,r){if(r){var i=Gs(r);i.dataIndex=n,i.dataType=e,i.seriesIndex=t,"group"===r.type&&r.traverse((function(r){var i=Gs(r);i.seriesIndex=t,i.dataIndex=n,i.dataType=e}))}},Ws=1,Us={},$s=Yi(),Ys=Yi(),Xs=0,Ks=1,Zs=2,Qs=["emphasis","blur","select"],Js=["normal","emphasis","blur","select"],tl=10,el=9,nl="highlight",rl="downplay",il="select",ol="unselect",al="toggleSelect";function sl(t){return null!=t&&"none"!==t}var ll=new hr["a"](100);function ul(t){if(Object(v["isString"])(t)){var e=ll.get(t);return e||(e=Qe["lift"](t,-.1),ll.put(t,e)),e}if(Object(v["isGradientObject"])(t)){var n=Object(v["extend"])({},t);return n.colorStops=Object(v["map"])(t.colorStops,(function(t){return{offset:t.offset,color:Qe["lift"](t.color,-.1)}})),n}return t}function cl(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function hl(t){cl(t,"emphasis",Zs)}function fl(t){t.hoverState===Zs&&cl(t,"normal",Xs)}function dl(t){cl(t,"blur",Ks)}function pl(t){t.hoverState===Ks&&cl(t,"normal",Xs)}function gl(t){t.selected=!0}function vl(t){t.selected=!1}function yl(t,e,n){e(t,n)}function ml(t,e,n){yl(t,e,n),t.isGroup&&t.traverse((function(t){yl(t,e,n)}))}function bl(t,e){switch(e){case"emphasis":t.hoverState=Zs;break;case"normal":t.hoverState=Xs;break;case"blur":t.hoverState=Ks;break;case"select":t.selected=!0}}function _l(t,e,n,r){for(var i=t.style,o={},a=0;a<e.length;a++){var s=e[a],l=i[s];o[s]=null==l?r&&r[s]:l}for(a=0;a<t.animators.length;a++){var u=t.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&"style"===u.targetName&&u.saveTo(o,e)}return o}function xl(t,e,n,r){var i=n&&Object(v["indexOf"])(n,"select")>=0,o=!1;if(t instanceof ss){var a=$s(t),s=i&&a.selectFill||a.normalFill,l=i&&a.selectStroke||a.normalStroke;if(sl(s)||sl(l)){r=r||{};var u=r.style||{};"inherit"===u.fill?(o=!0,r=Object(v["extend"])({},r),u=Object(v["extend"])({},u),u.fill=s):!sl(u.fill)&&sl(s)?(o=!0,r=Object(v["extend"])({},r),u=Object(v["extend"])({},u),u.fill=ul(s)):!sl(u.stroke)&&sl(l)&&(o||(r=Object(v["extend"])({},r),u=Object(v["extend"])({},u)),u.stroke=ul(l)),r.style=u}}if(r&&null==r.z2){o||(r=Object(v["extend"])({},r));var c=t.z2EmphasisLift;r.z2=t.z2+(null!=c?c:tl)}return r}function wl(t,e,n){if(n&&null==n.z2){n=Object(v["extend"])({},n);var r=t.z2SelectLift;n.z2=t.z2+(null!=r?r:el)}return n}function Sl(t,e,n){var r=Object(v["indexOf"])(t.currentStates,e)>=0,i=t.style.opacity,o=r?null:_l(t,["opacity"],e,{opacity:1});n=n||{};var a=n.style||{};return null==a.opacity&&(n=Object(v["extend"])({},n),a=Object(v["extend"])({opacity:r?i:.1*o.opacity},a),n.style=a),n}function Ol(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return xl(this,t,e,n);if("blur"===t)return Sl(this,t,n);if("select"===t)return wl(this,t,n)}return n}function Cl(t){t.stateProxy=Ol;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=Ol),n&&(n.stateProxy=Ol)}function kl(t,e){!Ll(t,e)&&!t.__highByOuter&&ml(t,hl)}function Al(t,e){!Ll(t,e)&&!t.__highByOuter&&ml(t,fl)}function Ml(t,e){t.__highByOuter|=1<<(e||0),ml(t,hl)}function Tl(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&ml(t,fl)}function Il(t){ml(t,dl)}function El(t){ml(t,pl)}function Pl(t){ml(t,gl)}function jl(t){ml(t,vl)}function Ll(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Dl(t){var e=t.getModel(),n=[],r=[];e.eachComponent((function(e,i){var o=Ys(i),a="series"===e,s=a?t.getViewOfSeriesModel(i):t.getViewOfComponentModel(i);!a&&r.push(s),o.isBlured&&(s.group.traverse((function(t){pl(t)})),a&&n.push(i)),o.isBlured=!1})),Object(v["each"])(r,(function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)}))}function Rl(t,e,n,r){var i=r.getModel();function o(t,e){for(var n=0;n<e.length;n++){var r=t.getItemGraphicEl(e[n]);r&&El(r)}}if(n=n||"coordinateSystem",null!=t&&e&&"none"!==e){var a=i.getSeriesByIndex(t),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries((function(t){var i=a===t,u=t.coordinateSystem;u&&u.master&&(u=u.master);var c=u&&s?u===s:i;if(!("series"===n&&!i||"coordinateSystem"===n&&!c||"series"===e&&i)){var h=r.getViewOfSeriesModel(t);if(h.group.traverse((function(t){dl(t)})),Object(v["isArrayLike"])(e))o(t.getData(),e);else if(Object(v["isObject"])(e))for(var f=Object(v["keys"])(e),d=0;d<f.length;d++)o(t.getData(f[d]),e[f[d]]);l.push(t),Ys(t).isBlured=!0}})),i.eachComponent((function(t,e){if("series"!==t){var n=r.getViewOfComponentModel(e);n&&n.toggleBlurSeries&&n.toggleBlurSeries(l,!0,i)}}))}}function Nl(t,e,n){if(null!=t&&null!=e){var r=n.getModel().getComponent(t,e);if(r){Ys(r).isBlured=!0;var i=n.getViewOfComponentModel(r);i&&i.focusBlurEnabled&&i.group.traverse((function(t){dl(t)}))}}}function Bl(t,e,n){var r=t.seriesIndex,i=t.getData(e.dataType);if(i){var o=$i(i,e);o=(Object(v["isArray"])(o)?o[0]:o)||0;var a=i.getItemGraphicEl(o);if(!a){var s=i.count(),l=0;while(!a&&l<s)a=i.getItemGraphicEl(l++)}if(a){var u=Gs(a);Rl(r,u.focus,u.blurScope,n)}else{var c=t.get(["emphasis","focus"]),h=t.get(["emphasis","blurScope"]);null!=c&&Rl(r,c,h,n)}}}function Fl(t,e,n,r){var i={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return i;var o=r.getModel().getComponent(t,e);if(!o)return i;var a=r.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return i;for(var s,l=a.findHighDownDispatchers(n),u=0;u<l.length;u++)if("self"===Gs(l[u]).focus){s=!0;break}return{focusSelf:s,dispatchers:l}}function zl(t,e,n){var r=Gs(t),i=Fl(r.componentMainType,r.componentIndex,r.componentHighDownName,n),o=i.dispatchers,a=i.focusSelf;o?(a&&Nl(r.componentMainType,r.componentIndex,n),Object(v["each"])(o,(function(t){return kl(t,e)}))):(Rl(r.seriesIndex,r.focus,r.blurScope,n),"self"===r.focus&&Nl(r.componentMainType,r.componentIndex,n),kl(t,e))}function Vl(t,e,n){Dl(n);var r=Gs(t),i=Fl(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?Object(v["each"])(i,(function(t){return Al(t,e)})):Al(t,e)}function ql(t,e,n){if(nu(e)){var r=e.dataType,i=t.getData(r),o=$i(i,e);Object(v["isArray"])(o)||(o=[o]),t[e.type===al?"toggleSelect":e.type===il?"select":"unselect"](o,r)}}function Gl(t){var e=t.getAllData();Object(v["each"])(e,(function(e){var n=e.data,r=e.type;n.eachItemGraphicEl((function(e,n){t.isSelected(n,r)?Pl(e):jl(e)}))}))}function Hl(t){var e=[];return t.eachSeries((function(t){var n=t.getAllData();Object(v["each"])(n,(function(n){n.data;var r=n.type,i=t.getSelectedDataIndices();if(i.length>0){var o={dataIndex:i,seriesIndex:t.seriesIndex};null!=r&&(o.dataType=r),e.push(o)}}))})),e}function Wl(t,e,n){Ql(t,!0),ml(t,Cl),Yl(t,e,n)}function Ul(t){Ql(t,!1)}function $l(t,e,n,r){r?Ul(t):Wl(t,e,n)}function Yl(t,e,n){var r=Gs(t);null!=e?(r.focus=e,r.blurScope=n):r.focus&&(r.focus=null)}var Xl=["emphasis","blur","select"],Kl={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Zl(t,e,n,r){n=n||"itemStyle";for(var i=0;i<Xl.length;i++){var o=Xl[i],a=e.getModel([o,n]),s=t.ensureState(o);s.style=r?r(a):a[Kl[n]]()}}function Ql(t,e){var n=!1===e,r=t;t.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=t.highDownSilentOnTouch),n&&!r.__highDownDispatcher||(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function Jl(t){return!(!t||!t.__highDownDispatcher)}function tu(t,e,n){var r=Gs(t);r.componentMainType=e.mainType,r.componentIndex=e.componentIndex,r.componentHighDownName=n}function eu(t){var e=Us[t];return null==e&&Ws<=32&&(e=Us[t]=Ws++),e}function nu(t){var e=t.type;return e===il||e===ol||e===al}function ru(t){var e=t.type;return e===nl||e===rl}function iu(t){var e=$s(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var n=t.states.select||{};e.selectFill=n.style&&n.style.fill||null,e.selectStroke=n.style&&n.style.stroke||null}var ou=Yi();function au(t,e,n,r,i){var o;if(e&&e.ecModel){var a=e.ecModel.getUpdatePayload();o=a&&a.animation}var s=e&&e.isAnimationEnabled(),l="update"===t;if(s){var u=void 0,c=void 0,h=void 0;r?(u=Object(v["retrieve2"])(r.duration,200),c=Object(v["retrieve2"])(r.easing,"cubicOut"),h=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),c=e.getShallow(l?"animationEasingUpdate":"animationEasing"),h=e.getShallow(l?"animationDelayUpdate":"animationDelay")),o&&(null!=o.duration&&(u=o.duration),null!=o.easing&&(c=o.easing),null!=o.delay&&(h=o.delay)),Object(v["isFunction"])(h)&&(h=h(n,i)),Object(v["isFunction"])(u)&&(u=u(n));var f={duration:u||0,delay:h,easing:c};return f}return null}function su(t,e,n,r,i,o,a){var s,l=!1;Object(v["isFunction"])(i)?(a=o,o=i,i=null):Object(v["isObject"])(i)&&(o=i.cb,a=i.during,l=i.isFrom,s=i.removeOpt,i=i.dataIndex);var u="leave"===t;u||e.stopAnimation("leave");var c=au(t,r,i,u?s||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(e,i):null);if(c&&c.duration>0){var h=c.duration,f=c.delay,d=c.easing,p={duration:h,delay:f||0,easing:d,done:o,force:!!o||!!a,setToFinal:!u,scope:t,during:a};l?e.animateFrom(n,p):e.animateTo(n,p)}else e.stopAnimation(),!l&&e.attr(n),a&&a(1),o&&o()}function lu(t,e,n,r,i,o){su("update",t,e,n,r,i,o)}function uu(t,e,n,r,i,o){su("enter",t,e,n,r,i,o)}function cu(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var n=t.animators[e];if("leave"===n.scope)return!0}return!1}function hu(t,e,n,r,i,o){cu(t)||su("leave",t,e,n,r,i,o)}function fu(t,e,n,r){t.removeTextContent(),t.removeTextGuideLine(),hu(t,{style:{opacity:0}},e,n,r)}function du(t,e,n){function r(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse((function(t){t.isGroup||fu(t,e,n,r)})):fu(t,e,n,r)}function pu(t){ou(t).oldStyle=t.style}function gu(t){return ou(t).oldStyle}var vu={};function yu(t,e){for(var n=0;n<Qs.length;n++){var r=Qs[n],i=e[r],o=t.ensureState(r);o.style=o.style||{},o.style.text=i}var a=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(a,!0)}function mu(t,e,n){var r,i=t.labelFetcher,o=t.labelDataIndex,a=t.labelDimIndex,s=e.normal;i&&(r=i.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==r&&(r=Object(v["isFunction"])(t.defaultText)?t.defaultText(o,t,n):t.defaultText);for(var l={normal:r},u=0;u<Qs.length;u++){var c=Qs[u],h=e[c];l[c]=Object(v["retrieve2"])(i?i.getFormattedLabel(o,c,null,a,h&&h.get("formatter")):null,r)}return l}function bu(t,e,n,r){n=n||vu;for(var i=t instanceof qs,o=!1,a=0;a<Js.length;a++){var s=e[Js[a]];if(s&&s.getShallow("show")){o=!0;break}}var l=i?t:t.getTextContent();if(o){i||(l||(l=new qs,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=mu(n,e),c=e.normal,h=!!c.getShallow("show"),f=xu(c,r&&r.normal,n,!1,!i);f.text=u.normal,i||t.setTextConfig(wu(c,n,!1));for(a=0;a<Qs.length;a++){var d=Qs[a];s=e[d];if(s){var p=l.ensureState(d),g=!!Object(v["retrieve2"])(s.getShallow("show"),h);if(g!==h&&(p.ignore=!g),p.style=xu(s,r&&r[d],n,!0,!i),p.style.text=u[d],!i){var y=t.ensureState(d);y.textConfig=wu(s,n,!0)}}}l.silent=!!c.getShallow("silent"),null!=l.style.x&&(f.x=l.style.x),null!=l.style.y&&(f.y=l.style.y),l.ignore=!h,l.useStyle(f),l.dirty(),n.enableTextSetter&&(Iu(l).setLabelText=function(t){var r=mu(n,e,t);yu(l,r)})}else l&&(l.ignore=!0);t.dirty()}function _u(t,e){e=e||"label";for(var n={normal:t.getModel(e)},r=0;r<Qs.length;r++){var i=Qs[r];n[i]=t.getModel([i,e])}return n}function xu(t,e,n,r,i){var o={};return Su(o,t,n,r,i),e&&Object(v["extend"])(o,e),o}function wu(t,e,n){e=e||{};var r,i={},o=t.getShallow("rotate"),a=Object(v["retrieve2"])(t.getShallow("distance"),n?null:5),s=t.getShallow("offset");return r=t.getShallow("position")||(n?null:"inside"),"outside"===r&&(r=e.defaultOutsidePosition||"top"),null!=r&&(i.position=r),null!=s&&(i.offset=s),null!=o&&(o*=Math.PI/180,i.rotation=o),null!=a&&(i.distance=a),i.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",i}function Su(t,e,n,r,i){n=n||vu;var o,a=e.ecModel,s=a&&a.option.textStyle,l=Ou(e);if(l)for(var u in o={},l)if(l.hasOwnProperty(u)){var c=e.getModel(["rich",u]);Mu(o[u]={},c,s,n,r,i,!1,!0)}o&&(t.rich=o);var h=e.get("overflow");h&&(t.overflow=h);var f=e.get("minMargin");null!=f&&(t.margin=f),Mu(t,e,s,n,r,i,!0,!1)}function Ou(t){var e;while(t&&t!==t.ecModel){var n=(t.option||vu).rich;if(n){e=e||{};for(var r=Object(v["keys"])(n),i=0;i<r.length;i++){var o=r[i];e[o]=1}}t=t.parentModel}return e}var Cu=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],ku=["align","lineHeight","width","height","tag","verticalAlign"],Au=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Mu(t,e,n,r,i,o,a,s){n=!i&&n||vu;var l=r&&r.inheritColor,u=e.getShallow("color"),c=e.getShallow("textBorderColor"),h=Object(v["retrieve2"])(e.getShallow("opacity"),n.opacity);"inherit"!==u&&"auto"!==u||(u=l||null),"inherit"!==c&&"auto"!==c||(c=l||null),o||(u=u||n.color,c=c||n.textBorderColor),null!=u&&(t.fill=u),null!=c&&(t.stroke=c);var f=Object(v["retrieve2"])(e.getShallow("textBorderWidth"),n.textBorderWidth);null!=f&&(t.lineWidth=f);var d=Object(v["retrieve2"])(e.getShallow("textBorderType"),n.textBorderType);null!=d&&(t.lineDash=d);var p=Object(v["retrieve2"])(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=p&&(t.lineDashOffset=p),i||null!=h||s||(h=r&&r.defaultOpacity),null!=h&&(t.opacity=h),i||o||null==t.fill&&r.inheritColor&&(t.fill=r.inheritColor);for(var g=0;g<Cu.length;g++){var y=Cu[g],m=Object(v["retrieve2"])(e.getShallow(y),n[y]);null!=m&&(t[y]=m)}for(g=0;g<ku.length;g++){y=ku[g],m=e.getShallow(y);null!=m&&(t[y]=m)}if(null==t.verticalAlign){var b=e.getShallow("baseline");null!=b&&(t.verticalAlign=b)}if(!a||!r.disableBox){for(g=0;g<Au.length;g++){y=Au[g],m=e.getShallow(y);null!=m&&(t[y]=m)}var _=e.getShallow("borderType");null!=_&&(t.borderDash=_),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!l||(t.backgroundColor=l),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!l||(t.borderColor=l)}}function Tu(t,e){var n=e&&e.getModel("textStyle");return Object(v["trim"])([t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var Iu=Yi();function Eu(t,e,n,r){if(t){var i=Iu(t);i.prevValue=i.value,i.value=n;var o=e.normal;i.valueAnimation=o.get("valueAnimation"),i.valueAnimation&&(i.precision=o.get("precision"),i.defaultInterpolatedText=r,i.statesModels=e)}}function Pu(t,e,n,r,i){var o=Iu(t);if(o.valueAnimation&&o.prevValue!==o.value){var a=o.defaultInterpolatedText,s=Object(v["retrieve2"])(o.interpolatedValue,o.prevValue),l=o.value;t.percent=0,(null==o.prevValue?uu:lu)(t,{percent:1},r,e,null,u)}function u(r){var u=oo(n,o.precision,s,l,r);o.interpolatedValue=1===r?null:u;var c=mu({labelDataIndex:e,labelFetcher:i,defaultText:a?a(u):u+""},o.statesModels,u);yu(t,c)}}var ju=["textStyle","color"],Lu=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Du=new qs,Ru=function(){function t(){}return t.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(ju):null)},t.prototype.getFont=function(){return Tu({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Lu.length;n++)e[Lu[n]]=this.getShallow(Lu[n]);return Du.useStyle(e),Du.update(),Du.getBoundingRect()},t}(),Nu=Ru,Bu=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Fu=xo(Bu),zu=function(){function t(){}return t.prototype.getLineStyle=function(t){return Fu(this,t)},t}(),Vu=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],qu=xo(Vu),Gu=function(){function t(){}return t.prototype.getItemStyle=function(t,e){return qu(this,t,e)},t}(),Hu=function(){function t(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}return t.prototype.init=function(t,e,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i]},t.prototype.mergeOption=function(t,e){Object(v["merge"])(this.option,t,!0)},t.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},t.prototype.getShallow=function(t,e){var n=this.option,r=null==n?n:n[t];if(null==r&&!e){var i=this.parentModel;i&&(r=i.getShallow(t))}return r},t.prototype.getModel=function(e,n){var r=null!=e,i=r?this.parsePath(e):null,o=r?this._doGet(i):this.option;return n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new t(o,n,this.ecModel)},t.prototype.isEmpty=function(){return null==this.option},t.prototype.restoreData=function(){},t.prototype.clone=function(){var t=this.constructor;return new t(Object(v["clone"])(this.option))},t.prototype.parsePath=function(t){return"string"===typeof t?t.split("."):t},t.prototype.resolveParentPath=function(t){return t},t.prototype.isAnimationEnabled=function(){if(!g["a"].node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(t,e){var n=this.option;if(!t)return n;for(var r=0;r<t.length;r++)if(t[r]&&(n=n&&"object"===typeof n?n[t[r]]:null,null==n))break;return null==n&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},t}();fo(Hu),yo(Hu),Object(v["mixin"])(Hu,zu),Object(v["mixin"])(Hu,Gu),Object(v["mixin"])(Hu,Oo),Object(v["mixin"])(Hu,Nu);var Wu=Hu,Uu=Math.round(10*Math.random());function $u(t){return[t||"",Uu++].join("_")}function Yu(t){var e={};t.registerSubTypeDefaulter=function(t,n){var r=uo(t);e[r.main]=n},t.determineSubType=function(n,r){var i=r.type;if(!i){var o=uo(n).main;t.hasSubTypes(n)&&e[o]&&(i=e[o](r))}return i}}function Xu(t,e){function n(t){var n={},o=[];return v["each"](t,(function(a){var s=r(n,a),l=s.originalDeps=e(a),u=i(l,t);s.entryCount=u.length,0===s.entryCount&&o.push(a),v["each"](u,(function(t){v["indexOf"](s.predecessor,t)<0&&s.predecessor.push(t);var e=r(n,t);v["indexOf"](e.successor,t)<0&&e.successor.push(a)}))})),{graph:n,noEntryList:o}}function r(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function i(t,e){var n=[];return v["each"](t,(function(t){v["indexOf"](e,t)>=0&&n.push(t)})),n}t.topologicalTravel=function(t,e,r,i){if(t.length){var o=n(e),a=o.graph,s=o.noEntryList,l={};v["each"](t,(function(t){l[t]=!0}));while(s.length){var u=s.pop(),c=a[u],h=!!l[u];h&&(r.call(i,u,c.originalDeps.slice()),delete l[u]),v["each"](c.successor,h?d:f)}v["each"](l,(function(){var t="";throw new Error(t)}))}function f(t){a[t].entryCount--,0===a[t].entryCount&&s.push(t)}function d(t){l[t]=!0,f(t)}}}function Ku(t,e){return v["merge"](v["merge"]({},t,!0),e,!0)}var Zu={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},Qu={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},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:""}}}},Ju="ZH",tc="EN",ec=tc,nc={},rc={},ic=g["a"].domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return t.indexOf(Ju)>-1?Ju:ec}():ec;function oc(t,e){t=t.toUpperCase(),rc[t]=new Wu(e),nc[t]=e}function ac(t){if(Object(v["isString"])(t)){var e=nc[t.toUpperCase()]||{};return t===Ju||t===tc?Object(v["clone"])(e):Object(v["merge"])(Object(v["clone"])(e),Object(v["clone"])(nc[ec]),!1)}return Object(v["merge"])(Object(v["clone"])(t),Object(v["clone"])(nc[ec]),!1)}function sc(t){return rc[t]}function lc(){return rc[ec]}oc(tc,Zu),oc(Ju,Qu);var uc=1e3,cc=60*uc,hc=60*cc,fc=24*hc,dc=365*fc,pc={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},gc="{yyyy}-{MM}-{dd}",vc={year:"{yyyy}",month:"{yyyy}-{MM}",day:gc,hour:gc+" "+pc.hour,minute:gc+" "+pc.minute,second:gc+" "+pc.second,millisecond:pc.none},yc=["year","month","day","hour","minute","second","millisecond"],mc=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function bc(t,e){return t+="","0000".substr(0,e-t.length)+t}function _c(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function xc(t){return t===_c(t)}function wc(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Sc(t,e,n,r){var i=fi(t),o=i[Ac(n)](),a=i[Mc(n)]()+1,s=Math.floor((a-1)/3)+1,l=i[Tc(n)](),u=i["get"+(n?"UTC":"")+"Day"](),c=i[Ic(n)](),h=(c-1)%12+1,f=i[Ec(n)](),d=i[Pc(n)](),p=i[jc(n)](),g=r instanceof Wu?r:sc(r||ic)||lc(),v=g.getModel("time"),y=v.get("month"),m=v.get("monthAbbr"),b=v.get("dayOfWeek"),_=v.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,o%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[a-1]).replace(/{MMM}/g,m[a-1]).replace(/{MM}/g,bc(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,bc(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,_[u]).replace(/{e}/g,u+"").replace(/{HH}/g,bc(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,bc(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,bc(f,2)).replace(/{m}/g,f+"").replace(/{ss}/g,bc(d,2)).replace(/{s}/g,d+"").replace(/{SSS}/g,bc(p,3)).replace(/{S}/g,p+"")}function Oc(t,e,n,r,i){var o=null;if(v["isString"](n))o=n;else if(v["isFunction"](n))o=n(t.value,e,{level:t.level});else{var a=v["extend"]({},pc);if(t.level>0)for(var s=0;s<yc.length;++s)a[yc[s]]="{primary|"+a[yc[s]]+"}";var l=n?!1===n.inherit?n:v["defaults"](n,a):a,u=Cc(t.value,i);if(l[u])o=l[u];else if(l.inherit){var c=mc.indexOf(u);for(s=c-1;s>=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(v["isArray"](o)){var h=null==t.level?0:t.level>=0?t.level:o.length+t.level;h=Math.min(h,o.length-1),o=o[h]}}return Sc(new Date(t.value),o,i,r)}function Cc(t,e){var n=fi(t),r=n[Mc(e)]()+1,i=n[Tc(e)](),o=n[Ic(e)](),a=n[Ec(e)](),s=n[Pc(e)](),l=n[jc(e)](),u=0===l,c=u&&0===s,h=c&&0===a,f=h&&0===o,d=f&&1===i,p=d&&1===r;return p?"year":d?"month":f?"day":h?"hour":c?"minute":u?"second":"millisecond"}function kc(t,e,n){var r=v["isNumber"](t)?fi(t):t;switch(e=e||Cc(t,n),e){case"year":return r[Ac(n)]();case"half-year":return r[Mc(n)]()>=6?1:0;case"quarter":return Math.floor((r[Mc(n)]()+1)/4);case"month":return r[Mc(n)]();case"day":return r[Tc(n)]();case"half-day":return r[Ic(n)]()/24;case"hour":return r[Ic(n)]();case"minute":return r[Ec(n)]();case"second":return r[Pc(n)]();case"millisecond":return r[jc(n)]()}}function Ac(t){return t?"getUTCFullYear":"getFullYear"}function Mc(t){return t?"getUTCMonth":"getMonth"}function Tc(t){return t?"getUTCDate":"getDate"}function Ic(t){return t?"getUTCHours":"getHours"}function Ec(t){return t?"getUTCMinutes":"getMinutes"}function Pc(t){return t?"getUTCSeconds":"getSeconds"}function jc(t){return t?"getUTCMilliseconds":"getMilliseconds"}function Lc(t){return t?"setUTCFullYear":"setFullYear"}function Dc(t){return t?"setUTCMonth":"setMonth"}function Rc(t){return t?"setUTCDate":"setDate"}function Nc(t){return t?"setUTCHours":"setHours"}function Bc(t){return t?"setUTCMinutes":"setMinutes"}function Fc(t){return t?"setUTCSeconds":"setSeconds"}function zc(t){return t?"setUTCMilliseconds":"setMilliseconds"}function Vc(t){if(!bi(t))return v["isString"](t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function qc(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()})),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var Gc=v["normalizeCssArray"];function Hc(t,e,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(t){return t&&v["trim"](t)?t:"-"}function o(t){return!(null==t||isNaN(t)||!isFinite(t))}var a="time"===e,s=t instanceof Date;if(a||s){var l=a?fi(t):t;if(!isNaN(+l))return Sc(l,r,n);if(s)return"-"}if("ordinal"===e)return v["isStringSafe"](t)?i(t):v["isNumber"](t)&&o(t)?t+"":"-";var u=mi(t);return o(u)?Vc(u):v["isStringSafe"](t)?i(t):"boolean"===typeof t?t+"":"-"}var Wc=["a","b","c","d","e","f","g"],Uc=function(t,e){return"{"+t+(null==e?"":e)+"}"};function $c(t,e,n){v["isArray"](e)||(e=[e]);var r=e.length;if(!r)return"";for(var i=e[0].$vars||[],o=0;o<i.length;o++){var a=Wc[o];t=t.replace(Uc(a),Uc(a,0))}for(var s=0;s<r;s++)for(var l=0;l<i.length;l++){var u=e[s][i[l]];t=t.replace(Uc(Wc[l],s),n?ot(u):u)}return t}function Yc(t,e,n){return v["each"](e,(function(e,r){t=t.replace("{"+r+"}",n?ot(e):e)})),t}function Xc(t,e){var n=v["isString"](t)?{color:t,extraCssText:e}:t||{},r=n.color,i=n.type;e=n.extraCssText;var o=n.renderMode||"html";if(!r)return"";if("html"===o)return"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:'+ot(r)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+ot(r)+";"+(e||"")+'"></span>';var a=n.markerId||"markerX";return{renderMode:o,content:"{"+a+"|} ",style:"subItem"===i?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function Kc(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var r=fi(e),i=n?"getUTC":"get",o=r[i+"FullYear"](),a=r[i+"Month"]()+1,s=r[i+"Date"](),l=r[i+"Hours"](),u=r[i+"Minutes"](),c=r[i+"Seconds"](),h=r[i+"Milliseconds"]();return t=t.replace("MM",bc(a,2)).replace("M",a).replace("yyyy",o).replace("yy",bc(o%100+"",2)).replace("dd",bc(s,2)).replace("d",s).replace("hh",bc(l,2)).replace("h",l).replace("mm",bc(u,2)).replace("m",u).replace("ss",bc(c,2)).replace("s",c).replace("SSS",bc(h,3)),t}function Zc(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}function Qc(t,e){return e=e||"transparent",v["isString"](t)?t:v["isObject"](t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function Jc(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}var th=v["each"],eh=["left","right","top","bottom","width","height"],nh=[["width","left","right"],["height","top","bottom"]];function rh(t,e,n,r,i){var o=0,a=0;null==r&&(r=1/0),null==i&&(i=1/0);var s=0;e.eachChild((function(l,u){var c,h,f=l.getBoundingRect(),d=e.childAt(u+1),p=d&&d.getBoundingRect();if("horizontal"===t){var g=f.width+(p?-p.x+f.x:0);c=o+g,c>r||l.newline?(o=0,c=g,a+=s+n,s=f.height):s=Math.max(s,f.height)}else{var v=f.height+(p?-p.y+f.y:0);h=a+v,h>i||l.newline?(o+=s+n,a=0,h=v,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=c+n:a=h+n)}))}var ih=rh;v["curry"](rh,"vertical"),v["curry"](rh,"horizontal");function oh(t,e,n){var r=e.width,i=e.height,o=Jr(t.left,r),a=Jr(t.top,i),s=Jr(t.right,r),l=Jr(t.bottom,i);return(isNaN(o)||isNaN(parseFloat(t.left)))&&(o=0),(isNaN(s)||isNaN(parseFloat(t.right)))&&(s=r),(isNaN(a)||isNaN(parseFloat(t.top)))&&(a=0),(isNaN(l)||isNaN(parseFloat(t.bottom)))&&(l=i),n=Gc(n||0),{width:Math.max(s-o-n[1]-n[3],0),height:Math.max(l-a-n[0]-n[2],0)}}function ah(t,e,n){n=Gc(n||0);var r=e.width,i=e.height,o=Jr(t.left,r),a=Jr(t.top,i),s=Jr(t.right,r),l=Jr(t.bottom,i),u=Jr(t.width,r),c=Jr(t.height,i),h=n[2]+n[0],f=n[1]+n[3],d=t.aspect;switch(isNaN(u)&&(u=r-s-f-o),isNaN(c)&&(c=i-l-h-a),null!=d&&(isNaN(u)&&isNaN(c)&&(d>r/i?u=.8*r:c=.8*i),isNaN(u)&&(u=d*c),isNaN(c)&&(c=u/d)),isNaN(o)&&(o=r-s-u-f),isNaN(a)&&(a=i-l-c-h),t.left||t.right){case"center":o=r/2-u/2-n[3];break;case"right":o=r-u-f;break}switch(t.top||t.bottom){case"middle":case"center":a=i/2-c/2-n[0];break;case"bottom":a=i-c-h;break}o=o||0,a=a||0,isNaN(u)&&(u=r-f-o-(s||0)),isNaN(c)&&(c=i-h-a-(l||0));var p=new qt(o+n[3],a+n[0],u,c);return p.margin=n,p}function sh(t,e,n,r,i,o){var a,s=!i||!i.hv||i.hv[0],l=!i||!i.hv||i.hv[1],u=i&&i.boundingMode||"all";if(o=o||t,o.x=t.x,o.y=t.y,!s&&!l)return!1;if("raw"===u)a="group"===t.type?new qt(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(a=t.getBoundingRect(),t.needLocalTransform()){var c=t.getLocalTransform();a=a.clone(),a.applyTransform(c)}var h=ah(v["defaults"]({width:a.width,height:a.height},e),n,r),f=s?h.x-a.x:0,d=l?h.y-a.y:0;return"raw"===u?(o.x=f,o.y=d):(o.x+=f,o.y+=d),o===t&&t.markRedraw(),!0}function lh(t,e){return null!=t[nh[e][0]]||null!=t[nh[e][1]]&&null!=t[nh[e][2]]}function uh(t){var e=t.layoutMode||t.constructor.layoutMode;return v["isObject"](e)?e:e?{type:e}:null}function ch(t,e,n){var r=n&&n.ignoreSize;!v["isArray"](r)&&(r=[r,r]);var i=a(nh[0],0),o=a(nh[1],1);function a(n,i){var o={},a=0,u={},c=0,h=2;if(th(n,(function(e){u[e]=t[e]})),th(n,(function(t){s(e,t)&&(o[t]=u[t]=e[t]),l(o,t)&&a++,l(u,t)&&c++})),r[i])return l(e,n[1])?u[n[2]]=null:l(e,n[2])&&(u[n[1]]=null),u;if(c!==h&&a){if(a>=h)return o;for(var f=0;f<n.length;f++){var d=n[f];if(!s(o,d)&&s(t,d)){o[d]=t[d];break}}return o}return u}function s(t,e){return t.hasOwnProperty(e)}function l(t,e){return null!=t[e]&&"auto"!==t[e]}function u(t,e,n){th(t,(function(t){e[t]=n[t]}))}u(nh[0],t,i),u(nh[1],t,o)}function hh(t){return fh({},t)}function fh(t,e){return e&&t&&th(eh,(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}var dh=Yi(),ph=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.uid=$u("ec_cpt_model"),i}return p(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=uh(this),r=n?hh(t):{},i=e.getTheme();v["merge"](t,i.get(this.mainType)),v["merge"](t,this.getDefaultOption()),n&&ch(t,r,n)},e.prototype.mergeOption=function(t,e){v["merge"](this.option,t,!0);var n=uh(this);n&&ch(this.option,t,n)},e.prototype.optionUpdated=function(t,e){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!ho(t))return t.defaultOption;var e=dh(this);if(!e.defaultOption){var n=[],r=t;while(r){var i=r.prototype.defaultOption;i&&n.push(i),r=r.superClass}for(var o={},a=n.length-1;a>=0;a--)o=v["merge"](o,n[a],!0);e.defaultOption=o}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var n=t+"Index",r=t+"Id";return to(this.ecModel,t,{index:this.get(n,!0),id:this.get(r,!0)},e)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(Wu);function gh(t){var e=[];return v["each"](ph.getClassesByMainType(t),(function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])})),e=v["map"](e,(function(t){return uo(t).main})),"dataset"!==t&&v["indexOf"](e,"dataset")<=0&&e.unshift("dataset"),e}go(ph,Wu),_o(ph),Yu(ph),Xu(ph,gh);var vh=ph,yh="";"undefined"!==typeof navigator&&(yh=navigator.platform||"");var mh="rgba(0, 0, 0, 0.2)",bh={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:mh,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:mh,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:mh,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:mh,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:mh,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:mh,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:yh.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},_h=Object(v["createHashMap"])(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),xh="original",wh="arrayRows",Sh="objectRows",Oh="keyedColumns",Ch="typedArray",kh="unknown",Ah="column",Mh="row",Th={Must:1,Might:2,Not:3},Ih=Yi();function Eh(t){Ih(t).datasetMap=Object(v["createHashMap"])()}function Ph(t,e,n){var r={},i=Lh(e);if(!i||!t)return r;var o,a,s=[],l=[],u=e.ecModel,c=Ih(u).datasetMap,h=i.uid+"_"+n.seriesLayoutBy;t=t.slice(),Object(v["each"])(t,(function(e,n){var i=Object(v["isObject"])(e)?e:t[n]={name:e};"ordinal"===i.type&&null==o&&(o=n,a=p(i)),r[i.name]=[]}));var f=c.get(h)||c.set(h,{categoryWayDim:a,valueWayDim:0});function d(t,e,n){for(var r=0;r<n;r++)t.push(e+r)}function p(t){var e=t.dimsDef;return e?e.length:1}return Object(v["each"])(t,(function(t,e){var n=t.name,i=p(t);if(null==o){var a=f.valueWayDim;d(r[n],a,i),d(l,a,i),f.valueWayDim+=i}else if(o===e)d(r[n],0,i),d(s,0,i);else{a=f.categoryWayDim;d(r[n],a,i),d(l,a,i),f.categoryWayDim+=i}})),s.length&&(r.itemName=s),l.length&&(r.seriesName=l),r}function jh(t,e,n){var r={},i=Lh(t);if(!i)return r;var o,a=e.sourceFormat,s=e.dimensionsDefine;a!==Sh&&a!==Oh||Object(v["each"])(s,(function(t,e){"name"===(Object(v["isObject"])(t)?t.name:t)&&(o=e)}));var l=function(){for(var t={},r={},i=[],l=0,u=Math.min(5,n);l<u;l++){var c=Nh(e.data,a,e.seriesLayoutBy,s,e.startIndex,l);i.push(c);var h=c===Th.Not;if(h&&null==t.v&&l!==o&&(t.v=l),(null==t.n||t.n===t.v||!h&&i[t.n]===Th.Not)&&(t.n=l),f(t)&&i[t.n]!==Th.Not)return t;h||(c===Th.Might&&null==r.v&&l!==o&&(r.v=l),null!=r.n&&r.n!==r.v||(r.n=l))}function f(t){return null!=t.v&&null!=t.n}return f(t)?t:f(r)?r:null}();if(l){r.value=[l.v];var u=null!=o?o:l.n;r.itemName=[u],r.seriesName=[u]}return r}function Lh(t){var e=t.get("data",!0);if(!e)return to(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},Qi).models[0]}function Dh(t){return t.get("transform",!0)||t.get("fromTransformResult",!0)?to(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},Qi).models:[]}function Rh(t,e){return Nh(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function Nh(t,e,n,r,i,o){var a,s,l,u=5;if(Object(v["isTypedArray"])(t))return Th.Not;if(r){var c=r[o];Object(v["isObject"])(c)?(s=c.name,l=c.type):Object(v["isString"])(c)&&(s=c)}if(null!=l)return"ordinal"===l?Th.Must:Th.Not;if(e===wh){var h=t;if(n===Mh){for(var f=h[o],d=0;d<(f||[]).length&&d<u;d++)if(null!=(a=x(f[i+d])))return a}else for(d=0;d<h.length&&d<u;d++){var p=h[i+d];if(p&&null!=(a=x(p[o])))return a}}else if(e===Sh){var g=t;if(!s)return Th.Not;for(d=0;d<g.length&&d<u;d++){var y=g[d];if(y&&null!=(a=x(y[s])))return a}}else if(e===Oh){var m=t;if(!s)return Th.Not;f=m[s];if(!f||Object(v["isTypedArray"])(f))return Th.Not;for(d=0;d<f.length&&d<u;d++)if(null!=(a=x(f[d])))return a}else if(e===xh){var b=t;for(d=0;d<b.length&&d<u;d++){y=b[d];var _=Ti(y);if(!Object(v["isArray"])(_))return Th.Not;if(null!=(a=x(_[o])))return a}}function x(t){var e=Object(v["isString"])(t);return null!=t&&isFinite(t)&&""!==t?e?Th.Might:Th.Not:e&&"-"!==t?Th.Must:void 0}return Th.Not}var Bh=Object(v["createHashMap"])();function Fh(t,e){Object(v["assert"])(null==Bh.get(t)&&e),Bh.set(t,e)}function zh(t,e,n){var r=Bh.get(e);if(!r)return n;var i=r(t);return i?n.concat(i):n}var Vh=Yi(),qh=Yi(),Gh=function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,n){var r=ki(this.get("color",!0)),i=this.get("colorLayer",!0);return Uh(this,Vh,r,i,t,e,n)},t.prototype.clearColorPalette=function(){$h(this,Vh)},t}();function Hh(t,e,n,r){var i=ki(t.get(["aria","decal","decals"]));return Uh(t,qh,i,null,e,n,r)}function Wh(t,e){for(var n=t.length,r=0;r<n;r++)if(t[r].length>e)return t[r];return t[n-1]}function Uh(t,e,n,r,i,o,a){o=o||t;var s=e(o),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=null!=a&&r?Wh(r,a):n;if(c=c||n,c&&c.length){var h=c[l];return i&&(u[i]=h),s.paletteIdx=(l+1)%c.length,h}}function $h(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var Yh,Xh,Kh;"undefined"!==typeof console&&console.warn&&console.log;function Zh(t){0}function Qh(t){throw new Error(t)}var Jh="\0_ec_inner",tf=1;var ef=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.init=function(t,e,n,r,i,o){r=r||{},this.option=null,this._theme=new Wu(r),this._locale=new Wu(i),this._optionManager=o},e.prototype.setOption=function(t,e,n){var r=sf(e);this._optionManager.setOption(t,n,r),this._resetOption(null,r)},e.prototype.resetOption=function(t,e){return this._resetOption(t,sf(e))},e.prototype._resetOption=function(t,e){var n=!1,r=this._optionManager;if(!t||"recreate"===t){var i=r.mountOption("recreate"===t);0,this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(i,e)):Kh(this,i),n=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=r.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=r.getMediaOption(this);a.length&&Object(v["each"])(a,(function(t){n=!0,this._mergeOption(t,e)}),this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,e){var n=this.option,r=this._componentsMap,i=this._componentsCount,o=[],a=Object(v["createHashMap"])(),s=e&&e.replaceMergeMainTypeMap;function l(e){var o=zh(this,e,ki(t[e])),a=r.get(e),l=a?s&&s.get(e)?"replaceMerge":"normalMerge":"replaceAll",u=Ei(a,o,l);Hi(u,e,vh),n[e]=null,r.set(e,null),i.set(e,0);var c,h=[],f=[],d=0;Object(v["each"])(u,(function(t,n){var r=t.existing,i=t.newOption;if(i){var o="series"===e,a=vh.getClass(e,t.keyInfo.subType,!o);if(!a)return;if("tooltip"===e){if(c)return void 0;c=!0}if(r&&r.constructor===a)r.name=t.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=Object(v["extend"])({componentIndex:n},t.keyInfo);r=new a(i,this,this,s),Object(v["extend"])(r,s),t.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}else r&&(r.mergeOption({},this),r.optionUpdated({},!1));r?(h.push(r.option),f.push(r),d++):(h.push(void 0),f.push(void 0))}),this),n[e]=h,r.set(e,f),i.set(e,d),"series"===e&&Yh(this)}Eh(this),Object(v["each"])(t,(function(t,e){null!=t&&(vh.hasClass(e)?e&&(o.push(e),a.set(e,!0)):n[e]=null==n[e]?Object(v["clone"])(t):Object(v["merge"])(n[e],t,!0))})),s&&s.each((function(t,e){vh.hasClass(e)&&!a.get(e)&&(o.push(e),a.set(e,!0))})),vh.topologicalTravel(o,vh.getAllClassMainTypes(),l,this),this._seriesIndices||Yh(this)},e.prototype.getOption=function(){var t=Object(v["clone"])(this.option);return Object(v["each"])(t,(function(e,n){if(vh.hasClass(n)){for(var r=ki(e),i=r.length,o=!1,a=i-1;a>=0;a--)r[a]&&!qi(r[a])?o=!0:(r[a]=null,!o&&i--);r.length=i,t[n]=r}})),delete t[Jh],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var r=n[e||0];if(r)return r;if(null==e)for(var i=0;i<n.length;i++)if(n[i])return n[i]}},e.prototype.queryComponents=function(t){var e=t.mainType;if(!e)return[];var n,r=t.index,i=t.id,o=t.name,a=this._componentsMap.get(e);return a&&a.length?(null!=r?(n=[],Object(v["each"])(ki(r),(function(t){a[t]&&n.push(a[t])}))):n=null!=i?of("id",i,a):null!=o?of("name",o,a):Object(v["filter"])(a,(function(t){return!!t})),af(n,t)):[]},e.prototype.findComponents=function(t){var e=t.query,n=t.mainType,r=o(e),i=r?this.queryComponents(r):Object(v["filter"])(this._componentsMap.get(n),(function(t){return!!t}));return a(af(i,t));function o(t){var e=n+"Index",r=n+"Id",i=n+"Name";return!t||null==t[e]&&null==t[r]&&null==t[i]?null:{mainType:n,index:t[e],id:t[r],name:t[i]}}function a(e){return t.filter?Object(v["filter"])(e,t.filter):e}},e.prototype.eachComponent=function(t,e,n){var r=this._componentsMap;if(Object(v["isFunction"])(t)){var i=e,o=t;r.each((function(t,e){for(var n=0;t&&n<t.length;n++){var r=t[n];r&&o.call(i,e,r,r.componentIndex)}}))}else for(var a=Object(v["isString"])(t)?r.get(t):Object(v["isObject"])(t)?this.findComponents(t):null,s=0;a&&s<a.length;s++){var l=a[s];l&&e.call(n,l,l.componentIndex)}},e.prototype.getSeriesByName=function(t){var e=zi(t,null);return Object(v["filter"])(this._componentsMap.get("series"),(function(t){return!!t&&null!=e&&t.name===e}))},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return Object(v["filter"])(this._componentsMap.get("series"),(function(e){return!!e&&e.subType===t}))},e.prototype.getSeries=function(){return Object(v["filter"])(this._componentsMap.get("series"),(function(t){return!!t}))},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,e){Xh(this),Object(v["each"])(this._seriesIndices,(function(n){var r=this._componentsMap.get("series")[n];t.call(e,r,n)}),this)},e.prototype.eachRawSeries=function(t,e){Object(v["each"])(this._componentsMap.get("series"),(function(n){n&&t.call(e,n,n.componentIndex)}))},e.prototype.eachSeriesByType=function(t,e,n){Xh(this),Object(v["each"])(this._seriesIndices,(function(r){var i=this._componentsMap.get("series")[r];i.subType===t&&e.call(n,i,r)}),this)},e.prototype.eachRawSeriesByType=function(t,e,n){return Object(v["each"])(this.getSeriesByType(t),e,n)},e.prototype.isSeriesFiltered=function(t){return Xh(this),null==this._seriesIndicesMap.get(t.componentIndex)},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,e){Xh(this);var n=[];Object(v["each"])(this._seriesIndices,(function(r){var i=this._componentsMap.get("series")[r];t.call(e,i,r)&&n.push(r)}),this),this._seriesIndices=n,this._seriesIndicesMap=Object(v["createHashMap"])(n)},e.prototype.restoreData=function(t){Yh(this);var e=this._componentsMap,n=[];e.each((function(t,e){vh.hasClass(e)&&n.push(e)})),vh.topologicalTravel(n,vh.getAllClassMainTypes(),(function(n){Object(v["each"])(e.get(n),(function(e){!e||"series"===n&&nf(e,t)||e.restoreData()}))}))},e.internalField=function(){Yh=function(t){var e=t._seriesIndices=[];Object(v["each"])(t._componentsMap.get("series"),(function(t){t&&e.push(t.componentIndex)})),t._seriesIndicesMap=Object(v["createHashMap"])(e)},Xh=function(t){0},Kh=function(t,e){t.option={},t.option[Jh]=tf,t._componentsMap=Object(v["createHashMap"])({series:[]}),t._componentsCount=Object(v["createHashMap"])();var n=e.aria;Object(v["isObject"])(n)&&null==n.enabled&&(n.enabled=!0),rf(e,t._theme.option),Object(v["merge"])(e,bh,!1),t._mergeOption(e,null)}}(),e}(Wu);function nf(t,e){if(e){var n=e.seriesIndex,r=e.seriesId,i=e.seriesName;return null!=n&&t.componentIndex!==n||null!=r&&t.id!==r||null!=i&&t.name!==i}}function rf(t,e){var n=t.color&&!t.colorLayer;Object(v["each"])(e,(function(e,r){"colorLayer"===r&&n||vh.hasClass(r)||("object"===typeof e?t[r]=t[r]?Object(v["merge"])(t[r],e,!1):Object(v["clone"])(e):null==t[r]&&(t[r]=e))}))}function of(t,e,n){if(Object(v["isArray"])(e)){var r=Object(v["createHashMap"])();return Object(v["each"])(e,(function(t){if(null!=t){var e=zi(t,null);null!=e&&r.set(t,!0)}})),Object(v["filter"])(n,(function(e){return e&&r.get(e[t])}))}var i=zi(e,null);return Object(v["filter"])(n,(function(e){return e&&null!=i&&e[t]===i}))}function af(t,e){return e.hasOwnProperty("subType")?Object(v["filter"])(t,(function(t){return t&&t.subType===e.subType})):t}function sf(t){var e=Object(v["createHashMap"])();return t&&Object(v["each"])(ki(t.replaceMerge),(function(t){e.set(t,!0)})),{replaceMergeMainTypeMap:e}}Object(v["mixin"])(ef,Gh);var lf=ef,uf=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],cf=function(){function t(t){v["each"](uf,(function(e){this[e]=v["bind"](t[e],t)}),this)}return t}(),hf=cf,ff={},df=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(t,e){var n=[];v["each"](ff,(function(r,i){var o=r.create(t,e);n=n.concat(o||[])})),this._coordinateSystems=n},t.prototype.update=function(t,e){v["each"](this._coordinateSystems,(function(n){n.update&&n.update(t,e)}))},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(t,e){ff[t]=e},t.get=function(t){return ff[t]},t}(),pf=df,gf=/^(min|max)?(.+)$/,vf=function(){function t(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return t.prototype.setOption=function(t,e,n){t&&(Object(v["each"])(ki(t.series),(function(t){t&&t.data&&Object(v["isTypedArray"])(t.data)&&Object(v["setAsPrimitive"])(t.data)})),Object(v["each"])(ki(t.dataset),(function(t){t&&t.source&&Object(v["isTypedArray"])(t.source)&&Object(v["setAsPrimitive"])(t.source)}))),t=Object(v["clone"])(t);var r=this._optionBackup,i=yf(t,e,!r);this._newBaseOption=i.baseOption,r?(i.timelineOptions.length&&(r.timelineOptions=i.timelineOptions),i.mediaList.length&&(r.mediaList=i.mediaList),i.mediaDefault&&(r.mediaDefault=i.mediaDefault)):this._optionBackup=i},t.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],Object(v["clone"])(t?e.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var r=t.getComponent("timeline");r&&(e=Object(v["clone"])(n[r.getCurrentIndex()]))}return e},t.prototype.getMediaOption=function(t){var e=this._api.getWidth(),n=this._api.getHeight(),r=this._mediaList,i=this._mediaDefault,o=[],a=[];if(!r.length&&!i)return a;for(var s=0,l=r.length;s<l;s++)mf(r[s].query,e,n)&&o.push(s);return!o.length&&i&&(o=[-1]),o.length&&!_f(o,this._currentMediaIndices)&&(a=Object(v["map"])(o,(function(t){return Object(v["clone"])(-1===t?i.option:r[t].option)}))),this._currentMediaIndices=o,a},t}();function yf(t,e,n){var r,i,o=[],a=t.baseOption,s=t.timeline,l=t.options,u=t.media,c=!!t.media,h=!!(l||s||a&&a.timeline);function f(t){Object(v["each"])(e,(function(e){e(t,n)}))}return a?(i=a,i.timeline||(i.timeline=s)):((h||c)&&(t.options=t.media=null),i=t),c&&Object(v["isArray"])(u)&&Object(v["each"])(u,(function(t){t&&t.option&&(t.query?o.push(t):r||(r=t))})),f(i),Object(v["each"])(l,(function(t){return f(t)})),Object(v["each"])(o,(function(t){return f(t.option)})),{baseOption:i,timelineOptions:l||[],mediaDefault:r,mediaList:o}}function mf(t,e,n){var r={width:e,height:n,aspectratio:e/n},i=!0;return Object(v["each"])(t,(function(t,e){var n=e.match(gf);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].toLowerCase();bf(r[a],t,o)||(i=!1)}})),i}function bf(t,e,n){return"min"===n?t>=e:"max"===n?t<=e:t===e}function _f(t,e){return t.join(",")===e.join(",")}var xf=vf,wf=v["each"],Sf=v["isObject"],Of=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Cf(t){var e=t&&t.itemStyle;if(e)for(var n=0,r=Of.length;n<r;n++){var i=Of[n],o=e.normal,a=e.emphasis;o&&o[i]&&(t[i]=t[i]||{},t[i].normal?v["merge"](t[i].normal,o[i]):t[i].normal=o[i],o[i]=null),a&&a[i]&&(t[i]=t[i]||{},t[i].emphasis?v["merge"](t[i].emphasis,a[i]):t[i].emphasis=a[i],a[i]=null)}}function kf(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var r=t[e].normal,i=t[e].emphasis;r&&(n?(t[e].normal=t[e].emphasis=null,v["defaults"](t[e],r)):t[e]=r),i&&(t.emphasis=t.emphasis||{},t.emphasis[e]=i,i.focus&&(t.emphasis.focus=i.focus),i.blurScope&&(t.emphasis.blurScope=i.blurScope))}}function Af(t){kf(t,"itemStyle"),kf(t,"lineStyle"),kf(t,"areaStyle"),kf(t,"label"),kf(t,"labelLine"),kf(t,"upperLabel"),kf(t,"edgeLabel")}function Mf(t,e){var n=Sf(t)&&t[e],r=Sf(n)&&n.textStyle;if(r){0;for(var i=0,o=Mi.length;i<o;i++){var a=Mi[i];r.hasOwnProperty(a)&&(n[a]=r[a])}}}function Tf(t){t&&(Af(t),Mf(t,"label"),t.emphasis&&Mf(t.emphasis,"label"))}function If(t){if(Sf(t)){Cf(t),Af(t),Mf(t,"label"),Mf(t,"upperLabel"),Mf(t,"edgeLabel"),t.emphasis&&(Mf(t.emphasis,"label"),Mf(t.emphasis,"upperLabel"),Mf(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(Cf(e),Tf(e));var n=t.markLine;n&&(Cf(n),Tf(n));var r=t.markArea;r&&Tf(r);var i=t.data;if("graph"===t.type){i=i||t.nodes;var o=t.links||t.edges;if(o&&!v["isTypedArray"](o))for(var a=0;a<o.length;a++)Tf(o[a]);v["each"](t.categories,(function(t){Af(t)}))}if(i&&!v["isTypedArray"](i))for(a=0;a<i.length;a++)Tf(i[a]);if(e=t.markPoint,e&&e.data){var s=e.data;for(a=0;a<s.length;a++)Tf(s[a])}if(n=t.markLine,n&&n.data){var l=n.data;for(a=0;a<l.length;a++)v["isArray"](l[a])?(Tf(l[a][0]),Tf(l[a][1])):Tf(l[a])}"gauge"===t.type?(Mf(t,"axisLabel"),Mf(t,"title"),Mf(t,"detail")):"treemap"===t.type?(kf(t.breadcrumb,"itemStyle"),v["each"](t.levels,(function(t){Af(t)}))):"tree"===t.type&&Af(t.leaves)}}function Ef(t){return v["isArray"](t)?t:t?[t]:[]}function Pf(t){return(v["isArray"](t)?t[0]:t)||{}}function jf(t,e){wf(Ef(t.series),(function(t){Sf(t)&&If(t)}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),wf(n,(function(e){wf(Ef(t[e]),(function(t){t&&(Mf(t,"axisLabel"),Mf(t.axisPointer,"label"))}))})),wf(Ef(t.parallel),(function(t){var e=t&&t.parallelAxisDefault;Mf(e,"axisLabel"),Mf(e&&e.axisPointer,"label")})),wf(Ef(t.calendar),(function(t){kf(t,"itemStyle"),Mf(t,"dayLabel"),Mf(t,"monthLabel"),Mf(t,"yearLabel")})),wf(Ef(t.radar),(function(t){Mf(t,"name"),t.name&&null==t.axisName&&(t.axisName=t.name,delete t.name),null!=t.nameGap&&null==t.axisNameGap&&(t.axisNameGap=t.nameGap,delete t.nameGap)})),wf(Ef(t.geo),(function(t){Sf(t)&&(Tf(t),wf(Ef(t.regions),(function(t){Tf(t)})))})),wf(Ef(t.timeline),(function(t){Tf(t),kf(t,"label"),kf(t,"itemStyle"),kf(t,"controlStyle",!0);var e=t.data;v["isArray"](e)&&v["each"](e,(function(t){v["isObject"](t)&&(kf(t,"label"),kf(t,"itemStyle"))}))})),wf(Ef(t.toolbox),(function(t){kf(t,"iconStyle"),wf(t.feature,(function(t){kf(t,"iconStyle")}))})),Mf(Pf(t.axisPointer),"label"),Mf(Pf(t.tooltip).axisPointer,"label")}function Lf(t,e){for(var n=e.split(","),r=t,i=0;i<n.length;i++)if(r=r&&r[n[i]],null==r)break;return r}function Df(t,e,n,r){for(var i,o=e.split(","),a=t,s=0;s<o.length-1;s++)i=o[s],null==a[i]&&(a[i]={}),a=a[i];(r||null==a[o[s]])&&(a[o[s]]=n)}function Rf(t){t&&Object(v["each"])(Nf,(function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])}))}var Nf=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Bf=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Ff=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function zf(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<Ff.length;n++){var r=Ff[n][1],i=Ff[n][0];null!=e[r]&&(e[i]=e[r])}}function Vf(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function qf(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function Gf(t){t&&null!=t.focusNodeAdjacency&&(t.emphasis=t.emphasis||{},null==t.emphasis.focus&&(t.emphasis.focus="adjacency"))}function Hf(t,e){if(t)for(var n=0;n<t.length;n++)e(t[n]),t[n]&&Hf(t[n].children,e)}function Wf(t,e){jf(t,e),t.series=ki(t.series),Object(v["each"])(t.series,(function(t){if(Object(v["isObject"])(t)){var e=t.type;if("line"===e)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===e||"gauge"===e){null!=t.clockWise&&(t.clockwise=t.clockWise),Vf(t.label);var n=t.data;if(n&&!Object(v["isTypedArray"])(n))for(var r=0;r<n.length;r++)Vf(n[r]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if("gauge"===e){var i=Lf(t,"pointer.color");null!=i&&Df(t,"itemStyle.color",i)}else if("bar"===e){zf(t),zf(t.backgroundStyle),zf(t.emphasis);n=t.data;if(n&&!Object(v["isTypedArray"])(n))for(r=0;r<n.length;r++)"object"===typeof n[r]&&(zf(n[r]),zf(n[r]&&n[r].emphasis))}else if("sunburst"===e){var o=t.highlightPolicy;o&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=o)),qf(t),Hf(t.data,qf)}else"graph"===e||"sankey"===e?Gf(t):"map"===e&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&Object(v["defaults"])(t,t.mapLocation));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation)),Rf(t)}})),t.dataRange&&(t.visualMap=t.dataRange),Object(v["each"])(Bf,(function(e){var n=t[e];n&&(Object(v["isArray"])(n)||(n=[n]),Object(v["each"])(n,(function(t){Rf(t)})))}))}function Uf(t){var e=Object(v["createHashMap"])();t.eachSeries((function(t){var n=t.get("stack");if(n){var r=e.get(n)||e.set(n,[]),i=t.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:t};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;r.length&&i.setCalculationInfo("stackedOnSeries",r[r.length-1].seriesModel),r.push(o)}})),e.each($f)}function $f(t){Object(v["each"])(t,(function(e,n){var r=[],i=[NaN,NaN],o=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";a.modify(o,(function(o,u,c){var h,f,d=a.get(e.stackedDimension,c);if(isNaN(d))return i;s?f=a.getRawIndex(c):h=a.get(e.stackedByDimension,c);for(var p=NaN,g=n-1;g>=0;g--){var v=t[g];if(s||(f=v.data.rawIndexOf(v.stackedByDimension,h)),f>=0){var y=v.data.getByRawIndex(v.stackResultDimension,f);if("all"===l||"positive"===l&&y>0||"negative"===l&&y<0||"samesign"===l&&d>=0&&y>0||"samesign"===l&&d<=0&&y<0){d=si(d,y),p=y;break}}}return r[0]=d,r[1]=p,r}))}))}var Yf,Xf,Kf,Zf,Qf,Jf=function(){function t(t){this.data=t.data||(t.sourceFormat===Oh?{}:[]),this.sourceFormat=t.sourceFormat||kh,this.seriesLayoutBy=t.seriesLayoutBy||Ah,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;n<e.length;n++){var r=e[n];null==r.type&&Rh(this,n)===Th.Must&&(r.type="ordinal")}}return t}();function td(t){return t instanceof Jf}function ed(t,e,n){n=n||id(t);var r=e.seriesLayoutBy,i=od(t,n,r,e.sourceHeader,e.dimensions),o=new Jf({data:t,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:Object(v["clone"])(e)});return o}function nd(t){return new Jf({data:t,sourceFormat:Object(v["isTypedArray"])(t)?Ch:xh})}function rd(t){return new Jf({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:Object(v["clone"])(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function id(t){var e=kh;if(Object(v["isTypedArray"])(t))e=Ch;else if(Object(v["isArray"])(t)){0===t.length&&(e=wh);for(var n=0,r=t.length;n<r;n++){var i=t[n];if(null!=i){if(Object(v["isArray"])(i)){e=wh;break}if(Object(v["isObject"])(i)){e=Sh;break}}}}else if(Object(v["isObject"])(t))for(var o in t)if(Object(v["hasOwn"])(t,o)&&Object(v["isArrayLike"])(t[o])){e=Oh;break}return e}function od(t,e,n,r,i){var o,a;if(!t)return{dimensionsDefine:sd(i),startIndex:a,dimensionsDetectedCount:o};if(e===wh){var s=t;"auto"===r||null==r?ld((function(t){null!=t&&"-"!==t&&(Object(v["isString"])(t)?null==a&&(a=1):a=0)}),n,s,10):a=Object(v["isNumber"])(r)?r:r?1:0,i||1!==a||(i=[],ld((function(t,e){i[e]=null!=t?t+"":""}),n,s,1/0)),o=i?i.length:n===Mh?s.length:s[0]?s[0].length:null}else if(e===Sh)i||(i=ad(t));else if(e===Oh)i||(i=[],Object(v["each"])(t,(function(t,e){i.push(e)})));else if(e===xh){var l=Ti(t[0]);o=Object(v["isArray"])(l)&&l.length||1}return{startIndex:a,dimensionsDefine:sd(i),dimensionsDetectedCount:o}}function ad(t){var e,n=0;while(n<t.length&&!(e=t[n++]));if(e){var r=[];return Object(v["each"])(e,(function(t,e){r.push(e)})),r}}function sd(t){if(t){var e=Object(v["createHashMap"])();return Object(v["map"])(t,(function(t,n){t=Object(v["isObject"])(t)?t:{name:t};var r={name:t.name,displayName:t.displayName,type:t.type};if(null==r.name)return r;r.name+="",null==r.displayName&&(r.displayName=r.name);var i=e.get(r.name);return i?r.name+="-"+i.count++:e.set(r.name,{count:1}),r}))}}function ld(t,e,n,r){if(e===Mh)for(var i=0;i<n.length&&i<r;i++)t(n[i]?n[i][0]:null,i);else{var o=n[0]||[];for(i=0;i<o.length&&i<r;i++)t(o[i],i)}}function ud(t){var e=t.sourceFormat;return e===Sh||e===Oh}var cd=function(){function t(t,e){var n=td(t)?t:nd(t);this._source=n;var r=this._data=n.data;n.sourceFormat===Ch&&(this._offset=0,this._dimSize=e,this._data=r),Qf(this,r,n)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(t,e){},t.prototype.appendData=function(t){},t.prototype.clean=function(){},t.protoInitialize=function(){var e=t.prototype;e.pure=!1,e.persistent=!0}(),t.internalField=function(){var t;Qf=function(t,i,o){var a=o.sourceFormat,s=o.seriesLayoutBy,l=o.startIndex,u=o.dimensionsDefine,c=Zf[_d(a,s)];if(Object(v["extend"])(t,c),a===Ch)t.getItem=e,t.count=r,t.fillStorage=n;else{var h=dd(a,s);t.getItem=Object(v["bind"])(h,null,i,l,u);var f=vd(a,s);t.count=Object(v["bind"])(f,null,i,l,u)}};var e=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,r=this._dimSize,i=r*t,o=0;o<r;o++)e[o]=n[i+o];return e},n=function(t,e,n,r){for(var i=this._data,o=this._dimSize,a=0;a<o;a++){for(var s=r[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],c=e-t,h=n[a],f=0;f<c;f++){var d=i[f*o+a];h[t+f]=d,d<l&&(l=d),d>u&&(u=d)}s[0]=l,s[1]=u}},r=function(){return this._data?this._data.length/this._dimSize:0};function i(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}t={},t[wh+"_"+Ah]={pure:!0,appendData:i},t[wh+"_"+Mh]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Sh]={pure:!0,appendData:i},t[Oh]={pure:!0,appendData:function(t){var e=this._data;Object(v["each"])(t,(function(t,n){for(var r=e[n]||(e[n]=[]),i=0;i<(t||[]).length;i++)r.push(t[i])}))}},t[xh]={appendData:i},t[Ch]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},Zf=t}(),t}(),hd=function(t,e,n,r){return t[r]},fd=(Yf={},Yf[wh+"_"+Ah]=function(t,e,n,r){return t[r+e]},Yf[wh+"_"+Mh]=function(t,e,n,r,i){r+=e;for(var o=i||[],a=t,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[r]:null}return o},Yf[Sh]=hd,Yf[Oh]=function(t,e,n,r,i){for(var o=i||[],a=0;a<n.length;a++){var s=n[a].name;0;var l=t[s];o[a]=l?l[r]:null}return o},Yf[xh]=hd,Yf);function dd(t,e){var n=fd[_d(t,e)];return n}var pd=function(t,e,n){return t.length},gd=(Xf={},Xf[wh+"_"+Ah]=function(t,e,n){return Math.max(0,t.length-e)},Xf[wh+"_"+Mh]=function(t,e,n){var r=t[0];return r?Math.max(0,r.length-e):0},Xf[Sh]=pd,Xf[Oh]=function(t,e,n){var r=n[0].name;var i=t[r];return i?i.length:0},Xf[xh]=pd,Xf);function vd(t,e){var n=gd[_d(t,e)];return n}var yd=function(t,e,n){return t[e]},md=(Kf={},Kf[wh]=yd,Kf[Sh]=function(t,e,n){return t[n]},Kf[Oh]=yd,Kf[xh]=function(t,e,n){var r=Ti(t);return r instanceof Array?r[e]:r},Kf[Ch]=yd,Kf);function bd(t){var e=md[t];return e}function _d(t,e){return t===wh?t+"_"+e:t}function xd(t,e,n){if(t){var r=t.getRawDataItem(e);if(null!=r){var i=t.getStore(),o=i.getSource().sourceFormat;if(null!=n){var a=t.getDimensionIndex(n),s=i.getDimensionProperty(a);return bd(o)(r,a,s)}var l=r;return o===xh&&(l=Ti(r)),l}}}var wd=/\{@(.+?)\}/g,Sd=function(){function t(){}return t.prototype.getDataParams=function(t,e){var n=this.getData(e),r=this.getRawValue(t,e),i=n.getRawIndex(t),o=n.getName(t),a=n.getRawDataItem(t),s=n.getItemVisual(t,"style"),l=s&&s[n.getItemVisual(t,"drawType")||"fill"],u=s&&s.stroke,c=this.mainType,h="series"===c,f=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:i,data:a,dataType:e,value:r,color:l,borderColor:u,dimensionNames:f?f.fullDimensions:null,encode:f?f.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(t,e,n,r,i,o){e=e||"normal";var a=this.getData(n),s=this.getDataParams(t,n);if(o&&(s.value=o.interpolatedValue),null!=r&&v["isArray"](s.value)&&(s.value=s.value[r]),!i){var l=a.getItemModel(t);i=l.get("normal"===e?["label","formatter"]:[e,"label","formatter"])}if(v["isFunction"](i))return s.status=e,s.dimensionIndex=r,i(s);if(v["isString"](i)){var u=$c(i,s);return u.replace(wd,(function(e,n){var r=n.length,i=n;"["===i.charAt(0)&&"]"===i.charAt(r-1)&&(i=+i.slice(1,r-1));var s=xd(a,t,i);if(o&&v["isArray"](o.interpolatedValue)){var l=a.getDimensionIndex(i);l>=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""}))}},t.prototype.getRawValue=function(t,e){return xd(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function Od(t){var e,n;return v["isObject"](t)?t.type&&(n=t):e=t,{text:e,frag:n}}function Cd(t){return new kd(t)}var kd=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){var e,n=this._upstream,r=t&&t.skip;if(this._dirty&&n){var i=this.context;i.data=i.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(e=this._plan(this.context));var o,a=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;function c(t){return!(t>=1)&&(t=1),t}a===l&&s===u||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,o=this._doReset(r)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,d=Math.min(null!=h?this._dueIndex+h:1/0,this._dueEnd);if(!r&&(o||f<d)){var p=this._progress;if(Object(v["isArray"])(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],f,d,l,u);else this._doProgress(p,f,d,l,u)}this._dueIndex=d;var y=null!=this._settedOutputEnd?this._settedOutputEnd:d;0,this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(t,e,n,r,i){Ad.reset(e,n,r,i),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:Ad.next},this.context)},t.prototype._doReset=function(t){var e,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(n=e.forceFirstProgress,e=e.progress),Object(v["isArray"])(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},t}(),Ad=function(){var t,e,n,r,i,o={reset:function(l,u,c,h){e=l,t=u,n=c,r=h,i=Math.ceil(r/n),o.next=n>1&&r>0?s:a}};return o;function a(){return e<t?e++:null}function s(){var o=e%i*n+Math.ceil(e/i),a=e>=t?null:o<r?o:e;return e++,a}}();function Md(t,e){var n=e&&e.type;return"ordinal"===n?t:("time"!==n||Object(v["isNumber"])(t)||null==t||"-"===t||(t=+fi(t)),null==t||""===t?NaN:+t)}var Td=Object(v["createHashMap"])({number:function(t){return parseFloat(t)},time:function(t){return+fi(t)},trim:function(t){return Object(v["isString"])(t)?Object(v["trim"])(t):t}});function Id(t){return Td.get(t)}var Ed={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}},Pd=function(){function t(t,e){if(!Object(v["isNumber"])(e)){var n="";0,Qh(n)}this._opFn=Ed[t],this._rvalFloat=mi(e)}return t.prototype.evaluate=function(t){return Object(v["isNumber"])(t)?this._opFn(t,this._rvalFloat):this._opFn(mi(t),this._rvalFloat)},t}(),jd=function(){function t(t,e){var n="desc"===t;this._resultLT=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=Object(v["isNumber"])(t)?t:mi(t),r=Object(v["isNumber"])(e)?e:mi(e),i=isNaN(n),o=isNaN(r);if(i&&(n=this._incomparable),o&&(r=this._incomparable),i&&o){var a=Object(v["isString"])(t),s=Object(v["isString"])(e);a&&(n=s?t:0),s&&(r=a?e:0)}return n<r?this._resultLT:n>r?-this._resultLT:0},t}(),Ld=function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=mi(e)}return t.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(e=mi(t)===this._rvalFloat)}return this._isEQ?e:!e},t}();function Dd(t,e){return"eq"===t||"ne"===t?new Ld("eq"===t,e):Object(v["hasOwn"])(Ed,t)?new Pd(t,e):null}var Rd=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(t){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(t){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(t,e){},t.prototype.retrieveValueFromItem=function(t,e){},t.prototype.convertValue=function(t,e){return Md(t,e)},t}();function Nd(t,e){var n=new Rd,r=t.data,i=n.sourceFormat=t.sourceFormat,o=t.startIndex,a="";t.seriesLayoutBy!==Ah&&Qh(a);var s=[],l={},u=t.dimensionsDefine;if(u)Object(v["each"])(u,(function(t,e){var n=t.name,r={index:e,name:n,displayName:t.displayName};if(s.push(r),null!=n){var i="";Object(v["hasOwn"])(l,n)&&Qh(i),l[n]=r}}));else for(var c=0;c<t.dimensionsDetectedCount;c++)s.push({index:c});var h=dd(i,Ah);e.__isBuiltIn&&(n.getRawDataItem=function(t){return h(r,o,s,t)},n.getRawData=Object(v["bind"])(Bd,null,t)),n.cloneRawData=Object(v["bind"])(Fd,null,t);var f=vd(i,Ah);n.count=Object(v["bind"])(f,null,r,o,s);var d=bd(i);n.retrieveValue=function(t,e){var n=h(r,o,s,t);return p(n,e)};var p=n.retrieveValueFromItem=function(t,e){if(null!=t){var n=s[e];return n?d(t,e,n.name):void 0}};return n.getDimensionInfo=Object(v["bind"])(zd,null,s,l),n.cloneAllDimensionInfo=Object(v["bind"])(Vd,null,s),n}function Bd(t){var e=t.sourceFormat;if(!Ud(e)){var n="";0,Qh(n)}return t.data}function Fd(t){var e=t.sourceFormat,n=t.data;if(!Ud(e)){var r="";0,Qh(r)}if(e===wh){for(var i=[],o=0,a=n.length;o<a;o++)i.push(n[o].slice());return i}if(e===Sh){for(i=[],o=0,a=n.length;o<a;o++)i.push(Object(v["extend"])({},n[o]));return i}}function zd(t,e,n){if(null!=n)return Object(v["isNumber"])(n)||!isNaN(n)&&!Object(v["hasOwn"])(e,n)?t[n]:Object(v["hasOwn"])(e,n)?e[n]:void 0}function Vd(t){return Object(v["clone"])(t)}var qd=Object(v["createHashMap"])();function Gd(t){t=Object(v["clone"])(t);var e=t.type,n="";e||Qh(n);var r=e.split(":");2!==r.length&&Qh(n);var i=!1;"echarts"===r[0]&&(e=r[1],i=!0),t.__isBuiltIn=i,qd.set(e,t)}function Hd(t,e,n){var r=ki(t),i=r.length,o="";i||Qh(o);for(var a=0,s=i;a<s;a++){var l=r[a];e=Wd(l,e,n,1===i?null:a),a!==s-1&&(e.length=Math.max(e.length,1))}return e}function Wd(t,e,n,r){var i="";e.length||Qh(i),Object(v["isObject"])(t)||Qh(i);var o=t.type,a=qd.get(o);a||Qh(i);var s=Object(v["map"])(e,(function(t){return Nd(t,a)})),l=ki(a.transform({upstream:s[0],upstreamList:s,config:Object(v["clone"])(t.config)}));return Object(v["map"])(l,(function(t,n){var r="";Object(v["isObject"])(t)||Qh(r),t.data||Qh(r);var i,o=id(t.data);Ud(o)||Qh(r);var a=e[0];if(a&&0===n&&!t.dimensions){var s=a.startIndex;s&&(t.data=a.data.slice(0,s).concat(t.data)),i={seriesLayoutBy:Ah,sourceHeader:s,dimensions:a.metaRawOption.dimensions}}else i={seriesLayoutBy:Ah,sourceHeader:0,dimensions:t.dimensions};return ed(t.data,i,null)}))}function Ud(t){return t===wh||t===Sh}var $d,Yd="undefined",Xd=typeof Uint32Array===Yd?Array:Uint32Array,Kd=typeof Uint16Array===Yd?Array:Uint16Array,Zd=typeof Int32Array===Yd?Array:Int32Array,Qd=typeof Float64Array===Yd?Array:Float64Array,Jd={float:Qd,int:Zd,ordinal:Array,number:Array,time:Qd};function tp(t){return t>65535?Xd:Kd}function ep(){return[1/0,-1/0]}function np(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function rp(t,e,n,r,i){var o=Jd[n||"float"];if(i){var a=t[e],s=a&&a.length;if(s!==r){for(var l=new o(r),u=0;u<s;u++)l[u]=a[u];t[e]=l}}else t[e]=new o(r)}var ip=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Object(v["createHashMap"])()}return t.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=t.getSource(),i=this.defaultDimValueGetter=$d[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[];ud(r);this._dimensions=Object(v["map"])(e,(function(t){return{type:t.type,property:t.property}})),this._initDataFromProvider(0,t.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,r=this._dimensions,i=n.get(t);if(null!=i){if(r[i].type===e)return i}else i=r.length;return r[i]={type:e},n.set(t,i),this._chunks[i]=new Jd[e||"float"](this._rawCount),this._rawExtent[i]=ep(),i},t.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],r=this._dimensions[t],i=this._rawExtent,o=r.ordinalOffset||0,a=n.length;0===o&&(i[t]=ep());for(var s=i[t],l=o;l<a;l++){var u=n[l]=e.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}r.ordinalMeta=e,r.ordinalOffset=a,r.type="ordinal"},t.prototype.getOrdinalMeta=function(t){var e=this._dimensions[t],n=e.ordinalMeta;return n},t.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},t.prototype.appendData=function(t){var e=this._provider,n=this.count();e.appendData(t);var r=e.count();return e.persistent||(r+=n),n<r&&this._initDataFromProvider(n,r,!0),[n,r]},t.prototype.appendValues=function(t,e){for(var n=this._chunks,r=this._dimensions,i=r.length,o=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;l<i;l++){var u=r[l];rp(n,l,u.type,s,!0)}for(var c=[],h=a;h<s;h++)for(var f=h-a,d=0;d<i;d++){u=r[d];var p=$d.arrayRows.call(this,t[f]||c,u.property,f,d);n[d][h]=p;var g=o[d];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=s,{start:a,end:s}},t.prototype._initDataFromProvider=function(t,e,n){for(var r=this._provider,i=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=Object(v["map"])(o,(function(t){return t.property})),u=0;u<a;u++){var c=o[u];s[u]||(s[u]=ep()),rp(i,u,c.type,e,n)}if(r.fillStorage)r.fillStorage(t,e,i,s);else for(var h=[],f=t;f<e;f++){h=r.getItem(f,h);for(var d=0;d<a;d++){var p=i[d],g=this._dimValueGetter(h,l[d],f,d);p[f]=g;var y=s[d];g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(e)]:NaN},t.prototype.getValues=function(t,e){var n=[],r=[];if(null==e){e=t,t=[];for(var i=0;i<this._dimensions.length;i++)r.push(i)}else r=t;i=0;for(var o=r.length;i<o;i++)n.push(this.get(r[i],e));return n},t.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var n=this._chunks[t];return n?n[e]:NaN},t.prototype.getSum=function(t){var e=this._chunks[t],n=0;if(e)for(var r=0,i=this.count();r<i;r++){var o=this.get(t,r);isNaN(o)||(n+=o)}return n},t.prototype.getMedian=function(t){var e=[];this.each([t],(function(t){isNaN(t)||e.push(t)}));var n=e.sort((function(t,e){return t-e})),r=this.count();return 0===r?0:r%2===1?n[(r-1)/2]:(n[r/2]+n[r/2-1])/2},t.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n<this._count&&n===t)return t;var r=0,i=this._count-1;while(r<=i){var o=(r+i)/2|0;if(e[o]<t)r=o+1;else{if(!(e[o]>t))return o;i=o-1}}return-1},t.prototype.indicesOfNearest=function(t,e,n){var r=this._chunks,i=r[t],o=[];if(!i)return o;null==n&&(n=1/0);for(var a=1/0,s=-1,l=0,u=0,c=this.count();u<c;u++){var h=this.getRawIndex(u),f=e-i[h],d=Math.abs(f);d<=n&&((d<a||d===a&&f>=0&&s<0)&&(a=d,s=f,l=0),f===s&&(o[l++]=u))}return o.length=l,o},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,r=this._count;if(n===Array){t=new n(r);for(var i=0;i<r;i++)t[i]=e[i]}else t=new n(e.buffer,0,r)}else{n=tp(this._rawCount);t=new n(this.count());for(i=0;i<t.length;i++)t[i]=i}return t},t.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),r=n.count(),i=tp(n._rawCount),o=new i(r),a=[],s=t.length,l=0,u=t[0],c=n._chunks,h=0;h<r;h++){var f=void 0,d=n.getRawIndex(h);if(0===s)f=e(h);else if(1===s){var p=c[u][d];f=e(p,h)}else{for(var g=0;g<s;g++)a[g]=c[t[g]][d];a[g]=h,f=e.apply(null,a)}f&&(o[l++]=d)}return l<r&&(n._indices=o),n._count=l,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var r=Object(v["keys"])(t),i=r.length;if(!i)return this;var o=e.count(),a=tp(e._rawCount),s=new a(o),l=0,u=r[0],c=t[u][0],h=t[u][1],f=e._chunks,d=!1;if(!e._indices){var p=0;if(1===i){for(var g=f[r[0]],y=0;y<n;y++){var m=g[y];(m>=c&&m<=h||isNaN(m))&&(s[l++]=p),p++}d=!0}else if(2===i){g=f[r[0]];var b=f[r[1]],_=t[r[1]][0],x=t[r[1]][1];for(y=0;y<n;y++){m=g[y];var w=b[y];(m>=c&&m<=h||isNaN(m))&&(w>=_&&w<=x||isNaN(w))&&(s[l++]=p),p++}d=!0}}if(!d)if(1===i)for(y=0;y<o;y++){var S=e.getRawIndex(y);m=f[r[0]][S];(m>=c&&m<=h||isNaN(m))&&(s[l++]=S)}else for(y=0;y<o;y++){for(var O=!0,C=(S=e.getRawIndex(y),0);C<i;C++){var k=r[C];m=f[k][S];(m<t[k][0]||m>t[k][1])&&(O=!1)}O&&(s[l++]=e.getRawIndex(y))}return l<o&&(e._indices=s),e._count=l,e._extent=[],e._updateGetRawIdx(),e},t.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},t.prototype.modify=function(t,e){this._updateDims(this,t,e)},t.prototype._updateDims=function(t,e,n){for(var r=t._chunks,i=[],o=e.length,a=t.count(),s=[],l=t._rawExtent,u=0;u<e.length;u++)l[e[u]]=ep();for(var c=0;c<a;c++){for(var h=t.getRawIndex(c),f=0;f<o;f++)s[f]=r[e[f]][h];s[o]=c;var d=n&&n.apply(null,s);if(null!=d){"object"!==typeof d&&(i[0]=d,d=i);for(u=0;u<d.length;u++){var p=e[u],g=d[u],v=l[p],y=r[p];y&&(y[h]=g),g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}}}},t.prototype.lttbDownSample=function(t,e){var n,r,i,o=this.clone([t],!0),a=o._chunks,s=a[t],l=this.count(),u=0,c=Math.floor(1/e),h=this.getRawIndex(0),f=new(tp(this._rawCount))(Math.min(2*(Math.ceil(l/c)+2),l));f[u++]=h;for(var d=1;d<l-1;d+=c){for(var p=Math.min(d+c,l-1),g=Math.min(d+2*c,l),v=(g+p)/2,y=0,m=p;m<g;m++){var b=this.getRawIndex(m),_=s[b];isNaN(_)||(y+=_)}y/=g-p;var x=d,w=Math.min(d+c,l),S=d-1,O=s[h];n=-1,i=x;var C=-1,k=0;for(m=x;m<w;m++){b=this.getRawIndex(m),_=s[b];isNaN(_)?(k++,C<0&&(C=b)):(r=Math.abs((S-v)*(_-O)-(S-m)*(y-O)),r>n&&(n=r,i=b))}k>0&&k<w-x&&(f[u++]=Math.min(C,i),i=Math.max(C,i)),f[u++]=i,h=i}return f[u++]=this.getRawIndex(l-1),o._count=u,o._indices=f,o.getRawIndex=this._getRawIdx,o},t.prototype.downSample=function(t,e,n,r){for(var i=this.clone([t],!0),o=i._chunks,a=[],s=Math.floor(1/e),l=o[t],u=this.count(),c=i._rawExtent[t]=ep(),h=new(tp(this._rawCount))(Math.ceil(u/s)),f=0,d=0;d<u;d+=s){s>u-d&&(s=u-d,a.length=s);for(var p=0;p<s;p++){var g=this.getRawIndex(d+p);a[p]=l[g]}var v=n(a),y=this.getRawIndex(Math.min(d+r(a,v)||0,u-1));l[y]=v,v<c[0]&&(c[0]=v),v>c[1]&&(c[1]=v),h[f++]=y}return i._count=f,i._indices=h,i._updateGetRawIdx(),i},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,r=this._chunks,i=0,o=this.count();i<o;i++){var a=this.getRawIndex(i);switch(n){case 0:e(i);break;case 1:e(r[t[0]][a],i);break;case 2:e(r[t[0]][a],r[t[1]][a],i);break;default:for(var s=0,l=[];s<n;s++)l[s]=r[t[s]][a];l[s]=i,e.apply(null,l)}}},t.prototype.getDataExtent=function(t){var e=this._chunks[t],n=ep();if(!e)return n;var r,i=this.count(),o=!this._indices;if(o)return this._rawExtent[t].slice();if(r=this._extent[t],r)return r.slice();r=n;for(var a=r[0],s=r[1],l=0;l<i;l++){var u=this.getRawIndex(l),c=e[u];c<a&&(a=c),c>s&&(s=c)}return r=[a,s],this._extent[t]=r,r},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],r=this._chunks,i=0;i<r.length;i++)n.push(r[i][e]);return n},t.prototype.clone=function(e,n){var r=new t,i=this._chunks,o=e&&Object(v["reduce"])(e,(function(t,e){return t[e]=!0,t}),{});if(o)for(var a=0;a<i.length;a++)r._chunks[a]=o[a]?np(i[a]):i[a];else r._chunks=i;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},t.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=Object(v["clone"])(this._extent),t._rawExtent=Object(v["clone"])(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var n=this._indices.length;e=new t(n);for(var r=0;r<n;r++)e[r]=this._indices[r]}else e=new t(this._indices);return e}return null},t.prototype._getRawIdxIdentity=function(t){return t},t.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,n,r){return Md(t[r],this._dimensions[r])}$d={arrayRows:t,objectRows:function(t,e,n,r){return Md(t[e],this._dimensions[r])},keyedColumns:t,original:function(t,e,n,r){var i=t&&(null==t.value?t:t.value);return Md(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(t,e,n,r){return t[r]}}}(),t}(),op=ip,ap=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length;if(lp(n)){var o=n,a=void 0,s=void 0,l=void 0;if(i){var u=r[0];u.prepareSource(),l=u.getSource(),a=l.data,s=l.sourceFormat,e=[u._getVersionSign()]}else a=o.get("data",!0),s=Object(v["isTypedArray"])(a)?Ch:xh,e=[];var c=this._getSourceMetaRawOption()||{},h=l&&l.metaRawOption||{},f=Object(v["retrieve2"])(c.seriesLayoutBy,h.seriesLayoutBy)||null,d=Object(v["retrieve2"])(c.sourceHeader,h.sourceHeader),p=Object(v["retrieve2"])(c.dimensions,h.dimensions),g=f!==h.seriesLayoutBy||!!d!==!!h.sourceHeader||p;t=g?[ed(a,{seriesLayoutBy:f,sourceHeader:d,dimensions:p},s)]:[]}else{var y=n;if(i){var m=this._applyTransform(r);t=m.sourceList,e=m.upstreamSignList}else{var b=y.get("source",!0);t=[ed(b,this._getSourceMetaRawOption(),null)],e=[]}}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n=this._sourceHost,r=n.get("transform",!0),i=n.get("fromTransformResult",!0);if(null!=i){var o="";1!==t.length&&up(o)}var a=[],s=[];return Object(v["each"])(t,(function(t){t.prepareSource();var e=t.getSource(i||0),n="";null==i||e||up(n),a.push(e),s.push(t._getVersionSign())})),r?e=Hd(r,a,{datasetIndex:n.componentIndex}):null!=i&&(e=[rd(a[0])]),{sourceList:e,upstreamSignList:s}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var n=t[e];if(n._isDirty()||this._upstreamSignList[e]!==n._getVersionSign())return!0}},t.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return e},t.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},t.prototype._innerGetDataStore=function(t,e,n){var r=0,i=this._storeList,o=i[r];o||(o=i[r]={});var a=o[n];if(!a){var s=this._getUpstreamSourceManagers()[0];lp(this._sourceHost)&&s?a=s._innerGetDataStore(t,e,n):(a=new op,a.initData(new cd(e,t.length),t)),o[n]=a}return a},t.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(lp(t)){var e=Lh(t);return e?[e.getSourceManager()]:[]}return Object(v["map"])(Dh(t),(function(t){return t.getSourceManager()}))},t.prototype._getSourceMetaRawOption=function(){var t,e,n,r=this._sourceHost;if(lp(r))t=r.get("seriesLayoutBy",!0),e=r.get("sourceHeader",!0),n=r.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=r;t=i.get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:e,dimensions:n}},t}();function sp(t){var e=t.option.transform;e&&Object(v["setAsPrimitive"])(t.option.transform)}function lp(t){return"series"===t.mainType}function up(t){throw new Error(t)}var cp="line-height:1";function hp(t,e){var n=t.color||"#6e7079",r=t.fontSize||12,i=t.fontWeight||"400",o=t.color||"#464646",a=t.fontSize||14,s=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+ot(r+"")+"px;color:"+ot(n)+";font-weight:"+ot(i+""),valueStyle:"font-size:"+ot(a+"")+"px;color:"+ot(o)+";font-weight:"+ot(s+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var fp=[0,10,20,30],dp=["","\n","\n\n","\n\n\n"];function pp(t,e){return e.type=t,e}function gp(t){return"section"===t.type}function vp(t){return gp(t)?mp:bp}function yp(t){if(gp(t)){var e=0,n=t.blocks.length,r=n>1||n>0&&!t.noHeader;return Object(v["each"])(t.blocks,(function(t){var n=yp(t);n>=e&&(e=n+ +(r&&(!n||gp(t)&&!t.noHeader)))})),e}return 0}function mp(t,e,n,r){var i=e.noHeader,o=xp(yp(e)),a=[],s=e.blocks||[];Object(v["assert"])(!s||Object(v["isArray"])(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Object(v["hasOwn"])(u,l)){var c=new jd(u[l],null);s.sort((function(t,e){return c.evaluate(t.sortParam,e.sortParam)}))}else"seriesDesc"===l&&s.reverse()}Object(v["each"])(s,(function(n,i){var s=e.valueFormatter,l=vp(n)(s?Object(v["extend"])(Object(v["extend"])({},t),{valueFormatter:s}):t,n,i>0?o.html:0,r);null!=l&&a.push(l)}));var h="richText"===t.renderMode?a.join(o.richText):wp(a.join(""),i?n:o.html);if(i)return h;var f=Hc(e.header,"ordinal",t.useUTC),d=hp(r,t.renderMode).nameStyle;return"richText"===t.renderMode?Cp(t,f,d)+o.richText+h:wp('<div style="'+d+";"+cp+';">'+ot(f)+"</div>"+h,n)}function bp(t,e,n,r){var i=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,c=e.valueFormatter||t.valueFormatter||function(t){return t=Object(v["isArray"])(t)?t:[t],Object(v["map"])(t,(function(t,e){return Hc(t,Object(v["isArray"])(d)?d[e]:d,u)}))};if(!o||!a){var h=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",i),f=o?"":Hc(l,"ordinal",u),d=e.valueType,p=a?[]:c(e.value),g=!s||!o,y=!s&&o,m=hp(r,i),b=m.nameStyle,_=m.valueStyle;return"richText"===i?(s?"":h)+(o?"":Cp(t,f,b))+(a?"":kp(t,p,g,y,_)):wp((s?"":h)+(o?"":Sp(f,!s,b))+(a?"":Op(p,g,y,_)),n)}}function _p(t,e,n,r,i,o){if(t){var a=vp(t),s={useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:e,valueFormatter:t.valueFormatter};return a(s,t,0,o)}}function xp(t){return{html:fp[t],richText:dp[t]}}function wp(t,e){var n='<div style="clear:both"></div>',r="margin: "+e+"px 0 0";return'<div style="'+r+";"+cp+';">'+t+n+"</div>"}function Sp(t,e,n){var r=e?"margin-left:2px":"";return'<span style="'+n+";"+r+'">'+ot(t)+"</span>"}function Op(t,e,n,r){var i=n?"10px":"20px",o=e?"float:right;margin-left:"+i:"";return t=Object(v["isArray"])(t)?t:[t],'<span style="'+o+";"+r+'">'+Object(v["map"])(t,(function(t){return ot(t)})).join(" ")+"</span>"}function Cp(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function kp(t,e,n,r,i){var o=[i],a=r?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(Object(v["isArray"])(e)?e.join(" "):e,o)}function Ap(t,e){var n=t.getData().getItemVisual(e,"style"),r=n[t.visualDrawType];return Qc(r)}function Mp(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var Tp=function(){function t(){this.richTextStyles={},this._nextStyleNameId=_i()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var r="richText"===n?this._generateStyleName():null,i=Xc({color:e,type:t,renderMode:n,markerId:r});return Object(v["isString"])(i)?i:(this.richTextStyles[r]=i.style,i.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};Object(v["isArray"])(e)?Object(v["each"])(e,(function(t){return Object(v["extend"])(n,t)})):Object(v["extend"])(n,e);var r=this._generateStyleName();return this.richTextStyles[r]=n,"{"+r+"|"+t+"}"},t}();function Ip(t){var e,n,r,i,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),c=u.length,h=o.getRawValue(a),f=Object(v["isArray"])(h),d=Ap(o,a);if(c>1||f&&!c){var p=Ep(h,o,a,u,d);e=p.inlineValues,n=p.inlineValueTypes,r=p.blocks,i=p.inlineValues[0]}else if(c){var g=l.getDimensionInfo(u[0]);i=e=xd(l,a,u[0]),n=g.type}else i=e=f?h[0]:h;var y=Vi(o),m=y&&o.name||"",b=l.getName(a),_=s?m:b;return pp("section",{header:m,noHeader:s||!y,sortParam:i,blocks:[pp("nameValue",{markerType:"item",markerColor:d,name:_,noName:!Object(v["trim"])(_),value:e,valueType:n})].concat(r||[])})}function Ep(t,e,n,r,i){var o=e.getData(),a=Object(v["reduce"])(t,(function(t,e,n){var r=o.getDimensionInfo(n);return t||r&&!1!==r.tooltip&&null!=r.displayName}),!1),s=[],l=[],u=[];function c(t,e){var n=o.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(a?u.push(pp("nameValue",{markerType:"subItem",markerColor:i,name:n.displayName,value:t,valueType:n.type})):(s.push(t),l.push(n.type)))}return r.length?Object(v["each"])(r,(function(t){c(xd(o,n,t),t)})):Object(v["each"])(t,c),{inlineValues:s,inlineValueTypes:l,blocks:u}}var Pp=Yi();function jp(t,e){return t.getName(e)||t.getId(e)}var Lp="__universalTransitionEnabled",Dp=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return p(e,t),e.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=Cd({count:Bp,reset:Fp}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n);var r=Pp(this).sourceManager=new ap(this);r.prepareSource();var i=this.getInitialData(t,n);Vp(i,this),this.dataTask.context.data=i,Pp(this).dataBeforeProcessed=i,Rp(this),this._initSelectedMapFromData(i)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=uh(this),r=n?hh(t):{},i=this.subType;vh.hasClass(i)&&(i+="Series"),v["merge"](t,e.getTheme().get(this.subType)),v["merge"](t,this.getDefaultOption()),Ai(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&ch(t,r,n)},e.prototype.mergeOption=function(t,e){t=v["merge"](this.option,t,!0),this.fillDataTextStyle(t.data);var n=uh(this);n&&ch(this.option,t,n);var r=Pp(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(t,e);Vp(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,Pp(this).dataBeforeProcessed=i,Rp(this),this._initSelectedMapFromData(i)},e.prototype.fillDataTextStyle=function(t){if(t&&!v["isTypedArray"](t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&Ai(t[n],"label",e)},e.prototype.getInitialData=function(t,e){},e.prototype.appendData=function(t){var e=this.getRawData();e.appendData(t.data)},e.prototype.getData=function(t){var e=Gp(this);if(e){var n=e.context.data;return null==t?n:n.getLinkedData(t)}return Pp(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var e=Gp(this);if(e){var n=e.context;n.outputData=t,e!==this.dataTask&&(n.data=t)}Pp(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return v["createHashMap"](t)},e.prototype.getSourceManager=function(){return Pp(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Pp(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var t=this.get("colorBy");return t||"series"},e.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.formatTooltip=function(t,e,n){return Ip({series:this,dataIndex:t,multipleSeries:e})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(g["a"].node&&(!t||!t.ssr))return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),!!e},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,e,n){var r=this.ecModel,i=Gh.prototype.getColorFromPalette.call(this,t,e,n);return i||(i=r.getColorFromPalette(t,e,n)),i},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},e.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(e);if("series"===r||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o<t.length;o++){var a=t[o],s=jp(i,a);n[s]=!1,this._selectedDataIndicesMap[s]=-1}}},e.prototype.toggleSelect=function(t,e){for(var n=[],r=0;r<t.length;r++)n[0]=t[r],this.isSelected(t[r],e)?this.unselect(n,e):this.select(n,e)},e.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=v["keys"](t),n=[],r=0;r<e.length;r++){var i=t[e[r]];i>=0&&n.push(i)}return n},e.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(e);return("all"===n||n[jp(r,t)])&&!r.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[Lp])return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},e.prototype._innerSelect=function(t,e){var n,r,i=this.option,o=i.selectedMode,a=e.length;if(o&&a)if("series"===o)i.selectedMap="all";else if("multiple"===o){v["isObject"](i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,l=0;l<a;l++){var u=e[l],c=jp(t,u);s[c]=!0,this._selectedDataIndicesMap[c]=t.getRawIndex(u)}}else if("single"===o||!0===o){var h=e[a-1];c=jp(t,h);i.selectedMap=(n={},n[c]=!0,n),this._selectedDataIndicesMap=(r={},r[c]=t.getRawIndex(h),r)}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var e=[];t.hasItemOption&&t.each((function(n){var r=t.getRawDataItem(n);r&&r.selected&&e.push(n)})),e.length>0&&this._innerSelect(t,e)}},e.registerClass=function(t){return vh.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(vh);function Rp(t){var e=t.name;Vi(t)||(t.name=Np(t)||e)}function Np(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),r=[];return v["each"](n,(function(t){var n=e.getDimensionInfo(t);n.displayName&&r.push(n.displayName)})),r.join(" ")}function Bp(t){return t.model.getRawData().count()}function Fp(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),zp}function zp(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Vp(t,e){v["each"](v["concatArray"](t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),(function(n){t.wrapMethod(n,v["curry"](qp,e))}))}function qp(t,e){var n=Gp(t);return n&&n.setOutputEnd((e||this).count()),e}function Gp(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(t.uid))}return r}}v["mixin"](Dp,Sd),v["mixin"](Dp,Gh),go(Dp,vh);var Hp=Dp,Wp=function(){function t(){this.group=new Nr,this.uid=$u("viewComponent")}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,r){},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,r){},t.prototype.updateLayout=function(t,e,n,r){},t.prototype.updateVisual=function(t,e,n,r){},t.prototype.toggleBlurSeries=function(t,e,n){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();fo(Wp),_o(Wp);var Up=Wp;function $p(){var t=Yi();return function(e){var n=t(e),r=e.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"}}var Yp=Da.CMD,Xp=[[],[],[]],Kp=Math.sqrt,Zp=Math.atan2;function Qp(t,e){if(e){var n,r,i,o,a,s,l=t.data,u=t.len(),c=Yp.M,h=Yp.C,f=Yp.L,d=Yp.R,p=Yp.A,g=Yp.Q;for(i=0,o=0;i<u;){switch(n=l[i++],o=i,r=0,n){case c:r=1;break;case f:r=1;break;case h:r=3;break;case g:r=2;break;case p:var v=e[4],y=e[5],m=Kp(e[0]*e[0]+e[1]*e[1]),b=Kp(e[2]*e[2]+e[3]*e[3]),_=Zp(-e[1]/b,e[0]/m);l[i]*=m,l[i++]+=v,l[i]*=b,l[i++]+=y,l[i++]*=m,l[i++]*=b,l[i++]+=_,l[i++]+=_,i+=2,o=i;break;case d:s[0]=l[i++],s[1]=l[i++],F(s,s,e),l[o++]=s[0],l[o++]=s[1],s[0]+=l[i++],s[1]+=l[i++],F(s,s,e),l[o++]=s[0],l[o++]=s[1]}for(a=0;a<r;a++){var x=Xp[a];x[0]=l[i++],x[1]=l[i++],F(x,x,e),l[o++]=x[0],l[o++]=x[1]}}t.increaseVersion()}}var Jp=Math.sqrt,tg=Math.sin,eg=Math.cos,ng=Math.PI;function rg(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function ig(t,e){return(t[0]*e[0]+t[1]*e[1])/(rg(t)*rg(e))}function og(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(ig(t,e))}function ag(t,e,n,r,i,o,a,s,l,u,c){var h=l*(ng/180),f=eg(h)*(t-n)/2+tg(h)*(e-r)/2,d=-1*tg(h)*(t-n)/2+eg(h)*(e-r)/2,p=f*f/(a*a)+d*d/(s*s);p>1&&(a*=Jp(p),s*=Jp(p));var g=(i===o?-1:1)*Jp((a*a*(s*s)-a*a*(d*d)-s*s*(f*f))/(a*a*(d*d)+s*s*(f*f)))||0,v=g*a*d/s,y=g*-s*f/a,m=(t+n)/2+eg(h)*v-tg(h)*y,b=(e+r)/2+tg(h)*v+eg(h)*y,_=og([1,0],[(f-v)/a,(d-y)/s]),x=[(f-v)/a,(d-y)/s],w=[(-1*f-v)/a,(-1*d-y)/s],S=og(x,w);if(ig(x,w)<=-1&&(S=ng),ig(x,w)>=1&&(S=0),S<0){var O=Math.round(S/ng*1e6)/1e6;S=2*ng+O%2*ng}c.addData(u,m,b,a,s,_,S,h,o)}var sg=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,lg=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function ug(t){var e=new Da;if(!t)return e;var n,r=0,i=0,o=r,a=i,s=Da.CMD,l=t.match(sg);if(!l)return e;for(var u=0;u<l.length;u++){for(var c=l[u],h=c.charAt(0),f=void 0,d=c.match(lg)||[],p=d.length,g=0;g<p;g++)d[g]=parseFloat(d[g]);var v=0;while(v<p){var y=void 0,m=void 0,b=void 0,_=void 0,x=void 0,w=void 0,S=void 0,O=r,C=i,k=void 0,A=void 0;switch(h){case"l":r+=d[v++],i+=d[v++],f=s.L,e.addData(f,r,i);break;case"L":r=d[v++],i=d[v++],f=s.L,e.addData(f,r,i);break;case"m":r+=d[v++],i+=d[v++],f=s.M,e.addData(f,r,i),o=r,a=i,h="l";break;case"M":r=d[v++],i=d[v++],f=s.M,e.addData(f,r,i),o=r,a=i,h="L";break;case"h":r+=d[v++],f=s.L,e.addData(f,r,i);break;case"H":r=d[v++],f=s.L,e.addData(f,r,i);break;case"v":i+=d[v++],f=s.L,e.addData(f,r,i);break;case"V":i=d[v++],f=s.L,e.addData(f,r,i);break;case"C":f=s.C,e.addData(f,d[v++],d[v++],d[v++],d[v++],d[v++],d[v++]),r=d[v-2],i=d[v-1];break;case"c":f=s.C,e.addData(f,d[v++]+r,d[v++]+i,d[v++]+r,d[v++]+i,d[v++]+r,d[v++]+i),r+=d[v-2],i+=d[v-1];break;case"S":y=r,m=i,k=e.len(),A=e.data,n===s.C&&(y+=r-A[k-4],m+=i-A[k-3]),f=s.C,O=d[v++],C=d[v++],r=d[v++],i=d[v++],e.addData(f,y,m,O,C,r,i);break;case"s":y=r,m=i,k=e.len(),A=e.data,n===s.C&&(y+=r-A[k-4],m+=i-A[k-3]),f=s.C,O=r+d[v++],C=i+d[v++],r+=d[v++],i+=d[v++],e.addData(f,y,m,O,C,r,i);break;case"Q":O=d[v++],C=d[v++],r=d[v++],i=d[v++],f=s.Q,e.addData(f,O,C,r,i);break;case"q":O=d[v++]+r,C=d[v++]+i,r+=d[v++],i+=d[v++],f=s.Q,e.addData(f,O,C,r,i);break;case"T":y=r,m=i,k=e.len(),A=e.data,n===s.Q&&(y+=r-A[k-4],m+=i-A[k-3]),r=d[v++],i=d[v++],f=s.Q,e.addData(f,y,m,r,i);break;case"t":y=r,m=i,k=e.len(),A=e.data,n===s.Q&&(y+=r-A[k-4],m+=i-A[k-3]),r+=d[v++],i+=d[v++],f=s.Q,e.addData(f,y,m,r,i);break;case"A":b=d[v++],_=d[v++],x=d[v++],w=d[v++],S=d[v++],O=r,C=i,r=d[v++],i=d[v++],f=s.A,ag(O,C,r,i,w,S,b,_,x,f,e);break;case"a":b=d[v++],_=d[v++],x=d[v++],w=d[v++],S=d[v++],O=r,C=i,r+=d[v++],i+=d[v++],f=s.A,ag(O,C,r,i,w,S,b,_,x,f,e);break}}"z"!==h&&"Z"!==h||(f=s.Z,e.addData(f),r=o,i=a),n=f}return e.toStatic(),e}var cg=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.applyTransform=function(t){},e}(ss);function hg(t){return null!=t.setData}function fg(t,e){var n=ug(t),r=Object(v["extend"])({},e);return r.buildPath=function(t){if(hg(t)){t.setData(n.data);var e=t.getContext();e&&t.rebuildPath(e,1)}else{e=t;n.rebuildPath(e,1)}},r.applyTransform=function(t){Qp(n,t),this.dirtyShape()},r}function dg(t,e){return new cg(fg(t,e))}function pg(t,e){var n=fg(t,e),r=function(t){function e(e){var r=t.call(this,e)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return p(e,t),e}(cg);return r}function gg(t,e){for(var n=[],r=t.length,i=0;i<r;i++){var o=t[i];n.push(o.getUpdatedPathProxy(!0))}var a=new ss(e);return a.createPathProxy(),a.buildPath=function(t){if(hg(t)){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e,1)}},a}function vg(t,e){e=e||{};var n=new ss;return t.shape&&n.setShape(t.shape),n.setStyle(t.style),e.bakeTransform?Qp(n.path,t.getComputedTransform()):e.toLocal?n.setLocalTransform(t.getComputedTransform()):n.copyTransform(t),n.buildPath=t.buildPath,n.applyTransform=n.applyTransform,n.z=t.z,n.z2=t.z2,n.zlevel=t.zlevel,n}var yg=function(){function t(){this.cx=0,this.cy=0,this.r=0}return t}(),mg=function(t){function e(e){return t.call(this,e)||this}return p(e,t),e.prototype.getDefaultShape=function(){return new yg},e.prototype.buildPath=function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},e}(ss);mg.prototype.type="circle";var bg=mg,_g=function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t}(),xg=function(t){function e(e){return t.call(this,e)||this}return p(e,t),e.prototype.getDefaultShape=function(){return new _g},e.prototype.buildPath=function(t,e){var n=.5522848,r=e.cx,i=e.cy,o=e.rx,a=e.ry,s=o*n,l=a*n;t.moveTo(r-o,i),t.bezierCurveTo(r-o,i-l,r-s,i-a,r,i-a),t.bezierCurveTo(r+s,i-a,r+o,i-l,r+o,i),t.bezierCurveTo(r+o,i+l,r+s,i+a,r,i+a),t.bezierCurveTo(r-s,i+a,r-o,i+l,r-o,i),t.closePath()},e}(ss);xg.prototype.type="ellipse";var wg=xg,Sg=Math.PI,Og=2*Sg,Cg=Math.sin,kg=Math.cos,Ag=Math.acos,Mg=Math.atan2,Tg=Math.abs,Ig=Math.sqrt,Eg=Math.max,Pg=Math.min,jg=1e-4;function Lg(t,e,n,r,i,o,a,s){var l=n-t,u=r-e,c=a-i,h=s-o,f=h*l-c*u;if(!(f*f<jg))return f=(c*(e-o)-h*(t-i))/f,[t+f*l,e+f*u]}function Dg(t,e,n,r,i,o,a){var s=t-n,l=e-r,u=(a?o:-o)/Ig(s*s+l*l),c=u*l,h=-u*s,f=t+c,d=e+h,p=n+c,g=r+h,v=(f+p)/2,y=(d+g)/2,m=p-f,b=g-d,_=m*m+b*b,x=i-o,w=f*g-p*d,S=(b<0?-1:1)*Ig(Eg(0,x*x*_-w*w)),O=(w*b-m*S)/_,C=(-w*m-b*S)/_,k=(w*b+m*S)/_,A=(-w*m+b*S)/_,M=O-v,T=C-y,I=k-v,E=A-y;return M*M+T*T>I*I+E*E&&(O=k,C=A),{cx:O,cy:C,x0:-c,y0:-h,x1:O*(i/x-1),y1:C*(i/x-1)}}function Rg(t){var e;if(Object(v["isArray"])(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e}function Ng(t,e){var n,r=Eg(e.r,0),i=Eg(e.r0||0,0),o=r>0,a=i>0;if(o||a){if(o||(r=i,i=0),i>r){var s=r;r=i,i=s}var l=e.startAngle,u=e.endAngle;if(!isNaN(l)&&!isNaN(u)){var c=e.cx,h=e.cy,f=!!e.clockwise,d=Tg(u-l),p=d>Og&&d%Og;if(p>jg&&(d=p),r>jg)if(d>Og-jg)t.moveTo(c+r*kg(l),h+r*Cg(l)),t.arc(c,h,r,l,u,!f),i>jg&&(t.moveTo(c+i*kg(u),h+i*Cg(u)),t.arc(c,h,i,u,l,f));else{var g=void 0,v=void 0,y=void 0,m=void 0,b=void 0,_=void 0,x=void 0,w=void 0,S=void 0,O=void 0,C=void 0,k=void 0,A=void 0,M=void 0,T=void 0,I=void 0,E=r*kg(l),P=r*Cg(l),j=i*kg(u),L=i*Cg(u),D=d>jg;if(D){var R=e.cornerRadius;R&&(n=Rg(R),g=n[0],v=n[1],y=n[2],m=n[3]);var N=Tg(r-i)/2;if(b=Pg(N,y),_=Pg(N,m),x=Pg(N,g),w=Pg(N,v),C=S=Eg(b,_),k=O=Eg(x,w),(S>jg||O>jg)&&(A=r*kg(u),M=r*Cg(u),T=i*kg(l),I=i*Cg(l),d<Sg)){var B=Lg(E,P,T,I,A,M,j,L);if(B){var F=E-B[0],z=P-B[1],V=A-B[0],q=M-B[1],G=1/Cg(Ag((F*V+z*q)/(Ig(F*F+z*z)*Ig(V*V+q*q)))/2),H=Ig(B[0]*B[0]+B[1]*B[1]);C=Pg(S,(r-H)/(G+1)),k=Pg(O,(i-H)/(G-1))}}}if(D)if(C>jg){var W=Pg(y,C),U=Pg(m,C),$=Dg(T,I,E,P,r,W,f),Y=Dg(A,M,j,L,r,U,f);t.moveTo(c+$.cx+$.x0,h+$.cy+$.y0),C<S&&W===U?t.arc(c+$.cx,h+$.cy,C,Mg($.y0,$.x0),Mg(Y.y0,Y.x0),!f):(W>0&&t.arc(c+$.cx,h+$.cy,W,Mg($.y0,$.x0),Mg($.y1,$.x1),!f),t.arc(c,h,r,Mg($.cy+$.y1,$.cx+$.x1),Mg(Y.cy+Y.y1,Y.cx+Y.x1),!f),U>0&&t.arc(c+Y.cx,h+Y.cy,U,Mg(Y.y1,Y.x1),Mg(Y.y0,Y.x0),!f))}else t.moveTo(c+E,h+P),t.arc(c,h,r,l,u,!f);else t.moveTo(c+E,h+P);if(i>jg&&D)if(k>jg){W=Pg(g,k),U=Pg(v,k),$=Dg(j,L,A,M,i,-U,f),Y=Dg(E,P,T,I,i,-W,f);t.lineTo(c+$.cx+$.x0,h+$.cy+$.y0),k<O&&W===U?t.arc(c+$.cx,h+$.cy,k,Mg($.y0,$.x0),Mg(Y.y0,Y.x0),!f):(U>0&&t.arc(c+$.cx,h+$.cy,U,Mg($.y0,$.x0),Mg($.y1,$.x1),!f),t.arc(c,h,i,Mg($.cy+$.y1,$.cx+$.x1),Mg(Y.cy+Y.y1,Y.cx+Y.x1),f),W>0&&t.arc(c+Y.cx,h+Y.cy,W,Mg(Y.y1,Y.x1),Mg(Y.y0,Y.x0),!f))}else t.lineTo(c+j,h+L),t.arc(c,h,i,u,l,f);else t.lineTo(c+j,h+L)}else t.moveTo(c,h);t.closePath()}}}var Bg=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0}return t}(),Fg=function(t){function e(e){return t.call(this,e)||this}return p(e,t),e.prototype.getDefaultShape=function(){return new Bg},e.prototype.buildPath=function(t,e){Ng(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(ss);Fg.prototype.type="sector";var zg=Fg,Vg=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),qg=function(t){function e(e){return t.call(this,e)||this}return p(e,t),e.prototype.getDefaultShape=function(){return new Vg},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=2*Math.PI;t.moveTo(n+e.r,r),t.arc(n,r,e.r,0,i,!1),t.moveTo(n+e.r0,r),t.arc(n,r,e.r0,0,i,!0)},e}(ss);qg.prototype.type="ring";var Gg=qg;function Hg(t,e,n,r){var i,o,a,s,l=[],u=[],c=[],h=[];if(r){a=[1/0,1/0],s=[-1/0,-1/0];for(var f=0,d=t.length;f<d;f++)z(a,a,t[f]),V(s,s,t[f]);z(a,a,r[0]),V(s,s,r[1])}for(f=0,d=t.length;f<d;f++){var p=t[f];if(n)i=t[f?f-1:d-1],o=t[(f+1)%d];else{if(0===f||f===d-1){l.push(b(t[f]));continue}i=t[f-1],o=t[f+1]}S(u,o,i),E(u,u,e);var g=j(p,i),v=j(p,o),y=g+v;0!==y&&(g/=y,v/=y),E(c,u,-g),E(h,u,v);var m=x([],p,c),_=x([],p,h);r&&(V(m,m,a),z(m,m,s),V(_,_,a),z(_,_,s)),l.push(m),l.push(_)}return n&&l.push(l.shift()),l}function Wg(t,e,n){var r=e.smooth,i=e.points;if(i&&i.length>=2){if(r){var o=Hg(i,r,n,e.smoothConstraint);t.moveTo(i[0][0],i[0][1]);for(var a=i.length,s=0;s<(n?a:a-1);s++){var l=o[2*s],u=o[2*s+1],c=i[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{t.moveTo(i[0][0],i[0][1]);s=1;for(var h=i.length;s<h;s++)t.lineTo(i[s][0],i[s][1])}n&&t.closePath()}}var Ug=function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t}(),$g=function(t){function e(e){return t.call(this,e)||this}return p(e,t),e.prototype.getDefaultShape=function(){return new Ug},e.prototype.buildPath=function(t,e){Wg(t,e,!0)},e}(ss);$g.prototype.type="polygon";var Yg=$g,Xg=function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t}(),Kg=function(t){function e(e){return t.call(this,e)||this}return p(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Xg},e.prototype.buildPath=function(t,e){Wg(t,e,!1)},e}(ss);Kg.prototype.type="polyline";var Zg=Kg,Qg={},Jg=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}(),tv=function(t){function e(e){return t.call(this,e)||this}return p(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Jg},e.prototype.buildPath=function(t,e){var n,r,i,o;if(this.subPixelOptimize){var a=ms(Qg,e,this.style);n=a.x1,r=a.y1,i=a.x2,o=a.y2}else n=e.x1,r=e.y1,i=e.x2,o=e.y2;var s=e.percent;0!==s&&(t.moveTo(n,r),s<1&&(i=n*(1-s)+i*s,o=r*(1-s)+o*s),t.lineTo(i,o))},e.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},e}(ss);tv.prototype.type="line";var ev=tv,nv=[],rv=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t}();function iv(t,e,n){var r=t.cpx2,i=t.cpy2;return null!=r||null!=i?[(n?De:Le)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?De:Le)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?qe:Ve)(t.x1,t.cpx1,t.x2,e),(n?qe:Ve)(t.y1,t.cpy1,t.y2,e)]}var ov=function(t){function e(e){return t.call(this,e)||this}return p(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new rv},e.prototype.buildPath=function(t,e){var n=e.x1,r=e.y1,i=e.x2,o=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,u=e.cpy2,c=e.percent;0!==c&&(t.moveTo(n,r),null==l||null==u?(c<1&&(We(n,a,i,c,nv),a=nv[1],i=nv[2],We(r,s,o,c,nv),s=nv[1],o=nv[2]),t.quadraticCurveTo(a,s,i,o)):(c<1&&(Be(n,a,l,i,c,nv),a=nv[1],l=nv[2],i=nv[3],Be(r,s,u,o,c,nv),s=nv[1],u=nv[2],o=nv[3]),t.bezierCurveTo(a,s,l,u,i,o)))},e.prototype.pointAt=function(t){return iv(this.shape,t,!1)},e.prototype.tangentAt=function(t){var e=iv(this.shape,t,!0);return P(e,e)},e}(ss);ov.prototype.type="bezier-curve";var av=ov,sv=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return t}(),lv=function(t){function e(e){return t.call(this,e)||this}return p(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new sv},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=e.clockwise,l=Math.cos(o),u=Math.sin(o);t.moveTo(l*i+n,u*i+r),t.arc(n,r,i,o,a,!s)},e}(ss);lv.prototype.type="arc";var uv=lv,cv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return p(e,t),e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),n=0;n<t.length;n++)e=e||t[n].shapeChanged();e&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(e[0],e[1],t[n].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,e){for(var n=e.paths||[],r=0;r<n.length;r++)n[r].buildPath(t,n[r].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),ss.prototype.getBoundingRect.call(this)},e}(ss),hv=cv,fv=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}(),dv=fv,pv=function(t){function e(e,n,r,i,o,a){var s=t.call(this,o)||this;return s.x=null==e?0:e,s.y=null==n?0:n,s.x2=null==r?1:r,s.y2=null==i?0:i,s.type="linear",s.global=a||!1,s}return p(e,t),e}(dv),gv=pv,vv=function(t){function e(e,n,r,i,o){var a=t.call(this,i)||this;return a.x=null==e?.5:e,a.y=null==n?.5:n,a.r=null==r?.5:r,a.type="radial",a.global=o||!1,a}return p(e,t),e}(dv),yv=vv,mv=[0,0],bv=[0,0],_v=new Pt,xv=new Pt,wv=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Pt;for(n=0;n<2;n++)this._axes[n]=new Pt;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var n=this._corners,r=this._axes,i=t.x,o=t.y,a=i+t.width,s=o+t.height;if(n[0].set(i,o),n[1].set(a,o),n[2].set(a,s),n[3].set(i,s),e)for(var l=0;l<4;l++)n[l].transform(e);Pt.sub(r[0],n[1],n[0]),Pt.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(l=0;l<2;l++)this._origin[l]=r[l].dot(n[0])},t.prototype.intersect=function(t,e){var n=!0,r=!e;return _v.set(1/0,1/0),xv.set(0,0),!this._intersectCheckOneSide(this,t,_v,xv,r,1)&&(n=!1,r)||!this._intersectCheckOneSide(t,this,_v,xv,r,-1)&&(n=!1,r)||r||Pt.copy(e,n?_v:xv),n},t.prototype._intersectCheckOneSide=function(t,e,n,r,i,o){for(var a=!0,s=0;s<2;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,t._corners,mv),this._getProjMinMaxOnAxis(s,e._corners,bv),mv[1]<bv[0]||mv[0]>bv[1]){if(a=!1,i)return a;var u=Math.abs(bv[0]-mv[1]),c=Math.abs(mv[0]-bv[1]);Math.min(u,c)>r.len()&&(u<c?Pt.scale(r,l,-u*o):Pt.scale(r,l,c*o))}else if(n){u=Math.abs(bv[0]-mv[1]),c=Math.abs(mv[0]-bv[1]);Math.min(u,c)<n.len()&&(u<c?Pt.scale(n,l,u*o):Pt.scale(n,l,-c*o))}}return a},t.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var r=this._axes[t],i=this._origin,o=e[0].dot(r)+i[t],a=o,s=o,l=1;l<e.length;l++){var u=e[l].dot(r)+i[t];a=Math.min(u,a),s=Math.max(u,s)}n[0]=a,n[1]=s},t}(),Sv=wv,Ov=[],Cv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return p(e,t),e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var e=this._displayables[t];e.parent=this,e.update(),e.parent=null}for(t=0;t<this._temporaryDisplayables.length;t++){e=this._temporaryDisplayables[t];e.parent=this,e.update(),e.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new qt(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var n=this._displayables[e],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform(Ov)),t.union(r)}this._rect=t}return this._rect},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),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(t,e))return!0}return!1},e}(ta),kv=Cv,Av=Math.max,Mv=Math.min,Tv={};function Iv(t){return ss.extend(t)}var Ev=pg;function Pv(t,e){return Ev(t,e)}function jv(t,e){Tv[t]=e}function Lv(t){if(Tv.hasOwnProperty(t))return Tv[t]}function Dv(t,e,n,r){var i=dg(t,e);return n&&("center"===r&&(n=Nv(n,i.getBoundingRect())),Fv(i,n)),i}function Rv(t,e,n){var r=new gs({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===n){var i={width:t.width,height:t.height};r.setStyle(Nv(e,i))}}});return r}function Nv(t,e){var n,r=e.width/e.height,i=t.height*r;i<=t.width?n=t.height:(i=t.width,n=i/r);var o=t.x+t.width/2,a=t.y+t.height/2;return{x:o-i/2,y:a-n/2,width:i,height:n}}var Bv=gg;function Fv(t,e){if(t.applyTransform){var n=t.getBoundingRect(),r=n.calculateTransform(e);t.applyTransform(r)}}function zv(t,e){return ms(t,t,{lineWidth:e}),t}function Vv(t){return bs(t.shape,t.shape,t.style),t}var qv=_s;function Gv(t,e){var n=St([]);while(t&&t!==e)Ct(n,t.getLocalTransform(),n),t=t.parent;return n}function Hv(t,e,n){return e&&!Object(v["isArrayLike"])(e)&&(e=cr.getLocalTransform(e)),n&&(e=Tt([],e)),F([],t,e)}function Wv(t,e,n){var r=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),i=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),o=["left"===t?-r:"right"===t?r:0,"top"===t?-i:"bottom"===t?i:0];return o=Hv(o,e,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Uv(t){return!t.isGroup}function $v(t){return null!=t.shape}function Yv(t,e,n){if(t&&e){var r=i(t);e.traverse((function(t){if(Uv(t)&&t.anid){var e=r[t.anid];if(e){var i=o(t);t.attr(o(e)),lu(t,i,n,Gs(t).dataIndex)}}}))}function i(t){var e={};return t.traverse((function(t){Uv(t)&&t.anid&&(e[t.anid]=t)})),e}function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return $v(t)&&(e.shape=Object(v["extend"])({},t.shape)),e}}function Xv(t,e){return Object(v["map"])(t,(function(t){var n=t[0];n=Av(n,e.x),n=Mv(n,e.x+e.width);var r=t[1];return r=Av(r,e.y),r=Mv(r,e.y+e.height),[n,r]}))}function Kv(t,e){var n=Av(t.x,e.x),r=Mv(t.x+t.width,e.x+e.width),i=Av(t.y,e.y),o=Mv(t.y+t.height,e.y+e.height);if(r>=n&&o>=i)return{x:n,y:i,width:r-n,height:o-i}}function Zv(t,e,n){var r=Object(v["extend"])({rectHover:!0},e),i=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(i.image=t.slice(8),Object(v["defaults"])(i,n),new gs(r)):Dv(t.replace("path://",""),r,n,"center")}function Qv(t,e,n,r,i){for(var o=0,a=i[i.length-1];o<i.length;o++){var s=i[o];if(Jv(t,e,n,r,s[0],s[1],a[0],a[1]))return!0;a=s}}function Jv(t,e,n,r,i,o,a,s){var l=n-t,u=r-e,c=a-i,h=s-o,f=ty(c,h,l,u);if(ey(f))return!1;var d=t-i,p=e-o,g=ty(d,p,l,u)/f;if(g<0||g>1)return!1;var v=ty(d,p,c,h)/f;return!(v<0||v>1)}function ty(t,e,n,r){return t*r-n*e}function ey(t){return t<=1e-6&&t>=-1e-6}function ny(t){var e=t.itemTooltipOption,n=t.componentModel,r=t.itemName,i=Object(v["isString"])(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:r,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&Object(v["each"])(Object(v["keys"])(l),(function(t){Object(v["hasOwn"])(s,t)||(s[t]=l[t],s.$vars.push(t))}));var u=Gs(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:r,option:Object(v["defaults"])({content:r,formatterParams:s},i)}}function ry(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function iy(t,e){if(t)if(Object(v["isArray"])(t))for(var n=0;n<t.length;n++)ry(t[n],e);else ry(t,e)}jv("circle",bg),jv("ellipse",wg),jv("sector",zg),jv("ring",Gg),jv("polygon",Yg),jv("polyline",Zg),jv("rect",Os),jv("line",ev),jv("bezierCurve",av),jv("arc",uv);var oy=Yi(),ay=$p(),sy=function(){function t(){this.group=new Nr,this.uid=$u("viewChart"),this.renderTask=Cd({plan:cy,reset:hy}),this.renderTask.context={view:this}}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,r){0},t.prototype.highlight=function(t,e,n,r){var i=t.getData(r&&r.dataType);i&&uy(i,r,"emphasis")},t.prototype.downplay=function(t,e,n,r){var i=t.getData(r&&r.dataType);i&&uy(i,r,"normal")},t.prototype.remove=function(t,e){this.group.removeAll()},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,r){this.render(t,e,n,r)},t.prototype.updateLayout=function(t,e,n,r){this.render(t,e,n,r)},t.prototype.updateVisual=function(t,e,n,r){this.render(t,e,n,r)},t.prototype.eachRendered=function(t){iy(this.group,t)},t.markUpdateMethod=function(t,e){oy(t).updateMethod=e},t.protoInitialize=function(){var e=t.prototype;e.type="chart"}(),t}();function ly(t,e,n){t&&Jl(t)&&("emphasis"===e?Ml:Tl)(t,n)}function uy(t,e,n){var r=$i(t,e),i=e&&null!=e.highlightKey?eu(e.highlightKey):null;null!=r?Object(v["each"])(ki(r),(function(e){ly(t.getItemGraphicEl(e),n,i)})):t.eachItemGraphicEl((function(t){ly(t,n,i)}))}function cy(t){return ay(t.model)}function hy(t){var e=t.model,n=t.ecModel,r=t.api,i=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=i&&oy(i).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,n,r,i),fy[l]}fo(sy,["dispose"]),_o(sy);var fy={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},dy=sy,py="\0__throttleOriginMethod",gy="\0__throttleRate",vy="\0__throttleType";function yy(t,e,n){var r,i,o,a,s,l=0,u=0,c=null;function h(){u=(new Date).getTime(),c=null,t.apply(o,a||[])}e=e||0;var f=function(){for(var t=[],f=0;f<arguments.length;f++)t[f]=arguments[f];r=(new Date).getTime(),o=this,a=t;var d=s||e,p=s||n;s=null,i=r-(p?l:u)-d,clearTimeout(c),p?c=setTimeout(h,d):i>=0?h():c=setTimeout(h,-i),l=r};return f.clear=function(){c&&(clearTimeout(c),c=null)},f.debounceNextCall=function(t){s=t},f}function my(t,e,n,r){var i=t[e];if(i){var o=i[py]||i,a=i[vy],s=i[gy];if(s!==n||a!==r){if(null==n||!r)return t[e]=o;i=t[e]=yy(o,n,"debounce"===r),i[py]=o,i[vy]=r,i[gy]=n}return i}}function by(t,e){var n=t[e];n&&n[py]&&(n.clear&&n.clear(),t[e]=n[py])}var _y=Yi(),xy={itemStyle:xo(Vu,!0),lineStyle:xo(Bu,!0)},wy={lineStyle:"stroke",itemStyle:"fill"};function Sy(t,e){var n=t.visualStyleMapper||xy[e];return n||(console.warn("Unkown style type '"+e+"'."),xy.itemStyle)}function Oy(t,e){var n=t.visualDrawType||wy[e];return n||(console.warn("Unkown style type '"+e+"'."),"fill")}var Cy={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=t.getModel(r),o=Sy(t,r),a=o(i),s=i.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=Oy(t,r),u=a[l],c=Object(v["isFunction"])(u)?u:null,h="auto"===a.fill||"auto"===a.stroke;if(!a[l]||c||h){var f=t.getColorFromPalette(t.name,null,e.getSeriesCount());a[l]||(a[l]=f,n.setVisual("colorFromPalette",!0)),a.fill="auto"===a.fill||Object(v["isFunction"])(a.fill)?f:a.fill,a.stroke="auto"===a.stroke||Object(v["isFunction"])(a.stroke)?f:a.stroke}if(n.setVisual("style",a),n.setVisual("drawType",l),!e.isSeriesFiltered(t)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var r=t.getDataParams(n),i=Object(v["extend"])({},a);i[l]=c(r),e.setItemVisual(n,"style",i)}}}},ky=new Wu,Ay={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=Sy(t,r),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[r]){ky.option=n[r];var a=i(ky),s=t.ensureUniqueItemVisual(e,"style");Object(v["extend"])(s,a),ky.option.decal&&(t.setItemVisual(e,"decal",ky.option.decal),ky.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},My={performRawSeries:!0,overallReset:function(t){var e=Object(v["createHashMap"])();t.eachSeries((function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var r=t.type+"-"+n,i=e.get(r);i||(i={},e.set(r,i)),_y(t).scope=i}})),t.eachSeries((function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),r={},i=e.getData(),o=_y(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=Oy(e,a);i.each((function(t){var e=i.getRawIndex(t);r[e]=t})),n.each((function(t){var a=r[t],l=i.getItemVisual(a,"colorFromPalette");if(l){var u=i.ensureUniqueItemVisual(a,"style"),c=n.getName(t)||t+"",h=n.count();u[s]=e.getColorFromPalette(c,o,h)}}))}}))}},Ty=Math.PI;function Iy(t,e){e=e||{},v["defaults"](e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Nr,r=new Os({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(r);var i,o=new qs({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new Os({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(a),e.showSpinner&&(i=new uv({shape:{startAngle:-Ty/2,endAngle:-Ty/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),i.animateShape(!0).when(1e3,{endAngle:3*Ty/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:3*Ty/2}).delay(300).start("circularInOut"),n.add(i)),n.resize=function(){var n=o.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:s),u=t.getHeight()/2;e.showSpinner&&i.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),r.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}var Ey=function(){function t(t,e,n,r){this._stageTaskMap=Object(v["createHashMap"])(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each((function(t){var e=t.overallTask;e&&e.dirty()}))},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),r=n.context,i=!e&&n.progressiveEnabled&&(!r||r.progressiveRender)&&t.__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}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),r=t.getData(),i=r.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,a=t.get("large")&&i>=t.get("largeThreshold"),s="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:s,large:a}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=Object(v["createHashMap"])();t.eachSeries((function(t){var r=t.getProgressive(),i=t.uid;n.set(i,{id:i,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:r&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),e._pipe(t,t.dataTask)}))},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;Object(v["each"])(this._allHandlers,(function(r){var i=t.get(r.uid)||t.set(r.uid,{}),o="";Object(v["assert"])(!(r.reset&&r.overallReset),o),r.reset&&this._createSeriesStageTask(r,i,e,n),r.overallReset&&this._createOverallStageTask(r,i,e,n)}),this)},t.prototype.prepareView=function(t,e,n,r){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=n,o.api=r,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,r){r=r||{};var i=!1,o=this;function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}Object(v["each"])(t,(function(t,s){if(!r.visualType||r.visualType===t.visualType){var l=o._stageTaskMap.get(t.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var h,f=c.agentStubMap;f.each((function(t){a(r,t)&&(t.dirty(),h=!0)})),h&&c.dirty(),o.updatePayload(c,n);var d=o.getPerformArgs(c,r.block);f.each((function(t){t.perform(d)})),c.perform(d)&&(i=!0)}else u&&u.each((function(s,l){a(r,s)&&s.dirty();var u=o.getPerformArgs(s,r.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(u)&&(i=!0)}))}})),this.unfinished=i||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e=t.dataTask.perform()||e})),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each((function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)}))},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,r){var i=this,o=e.seriesTaskMap,a=e.seriesTaskMap=Object(v["createHashMap"])(),s=t.seriesType,l=t.getTargetSeries;function u(e){var s=e.uid,l=a.set(s,o&&o.get(s)||Cd({plan:Ry,reset:Ny,count:zy}));l.context={model:e,ecModel:n,api:r,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(e,l)}t.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,r).each(u)},t.prototype._createOverallStageTask=function(t,e,n,r){var i=this,o=e.overallTask=e.overallTask||Cd({reset:Py});o.context={ecModel:n,api:r,overallReset:t.overallReset,scheduler:i};var a=o.agentStubMap,s=o.agentStubMap=Object(v["createHashMap"])(),l=t.seriesType,u=t.getTargetSeries,c=!0,h=!1,f="";function d(t){var e=t.uid,n=s.set(e,a&&a.get(e)||(h=!0,Cd({reset:jy,onDirty:Dy})));n.context={model:t,overallProgress:c},n.agent=o,n.__block=c,i._pipe(t,n)}Object(v["assert"])(!t.createOnAllSeries,f),l?n.eachRawSeriesByType(l,d):u?u(n,r).each(d):(c=!1,Object(v["each"])(n.getSeries(),d)),h&&o.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=e),r.tail&&r.tail.pipe(e),r.tail=e,e.__idxInPipeline=r.count++,e.__pipeline=r},t.wrapStageHandler=function(t,e){return Object(v["isFunction"])(t)&&(t={overallReset:t,seriesType:Vy(t)}),t.uid=$u("stageHandler"),e&&(t.visualType=e),t},t}();function Py(t){t.overallReset(t.ecModel,t.api,t.payload)}function jy(t){return t.overallProgress&&Ly}function Ly(){this.agent.dirty(),this.getDownstream().dirty()}function Dy(){this.agent&&this.agent.dirty()}function Ry(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Ny(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=ki(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?Object(v["map"])(e,(function(t,e){return Fy(e)})):By}var By=Fy(0);function Fy(t){return function(e,n){var r=n.data,i=n.resetDefines[t];if(i&&i.dataEach)for(var o=e.start;o<e.end;o++)i.dataEach(r,o);else i&&i.progress&&i.progress(e,r)}}function zy(t){return t.data.count()}function Vy(t){qy=null;try{t(Gy,Hy)}catch(e){}return qy}var qy,Gy={},Hy={};function Wy(t,e){for(var n in e.prototype)t[n]=v["noop"]}Wy(Gy,lf),Wy(Hy,hf),Gy.eachSeriesByType=Gy.eachRawSeriesByType=function(t){qy=t},Gy.eachComponent=function(t){"series"===t.mainType&&t.subType&&(qy=t.subType)};var Uy=Ey,$y=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],Yy={color:$y,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],$y]},Xy="#B9B8CE",Ky="#100C2A",Zy=function(){return{axisLine:{lineStyle:{color:Xy}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},Qy=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Jy={darkMode:!0,color:Qy,backgroundColor:Ky,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Xy}},textStyle:{color:Xy},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Xy}},dataZoom:{borderColor:"#71708A",textStyle:{color:Xy},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:Xy}},timeline:{lineStyle:{color:Xy},label:{color:Xy},controlStyle:{color:Xy,borderColor:Xy}},calendar:{itemStyle:{color:Ky},dayLabel:{color:Xy},monthLabel:{color:Xy},yearLabel:{color:Xy}},timeAxis:Zy(),logAxis:Zy(),valueAxis:Zy(),categoryAxis:Zy(),line:{symbol:"circle"},graph:{color:Qy},gauge:{title:{color:Xy},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Xy},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};Jy.categoryAxis.splitLine.show=!1;var tm=Jy,em=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},n={},r={};if(v["isString"](t)){var i=uo(t);e.mainType=i.main||null,e.subType=i.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};v["each"](t,(function(t,i){for(var s=!1,l=0;l<o.length;l++){var u=o[l],c=i.lastIndexOf(u);if(c>0&&c===i.length-u.length){var h=i.slice(0,c);"data"!==h&&(e.mainType=h,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(i)&&(n[i]=t,s=!0),s||(r[i]=t)}))}return{cptQuery:e,dataQuery:n,otherQuery:r}},t.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=e.cptQuery,l=e.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,i,"name")&&u(l,i,"dataIndex")&&u(l,i,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,r,i));function u(t,e,n,r){return null==t[n]||e[r||n]===t[n]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),nm=["symbol","symbolSize","symbolRotate","symbolOffset"],rm=nm.concat(["symbolKeepAspect"]),im={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var r={},i={},o=!1,a=0;a<nm.length;a++){var s=nm[a],l=t.get(s);Object(v["isFunction"])(l)?(o=!0,i[s]=l):r[s]=l}if(r.symbol=r.symbol||t.defaultSymbol,n.setVisual(Object(v["extend"])({legendIcon:t.legendIcon||r.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},r)),!e.isSeriesFiltered(t)){var u=Object(v["keys"])(i);return{dataEach:o?c:null}}}function c(e,n){for(var r=t.getRawValue(n),o=t.getDataParams(n),a=0;a<u.length;a++){var s=u[a];e.setItemVisual(n,s,i[s](r,o))}}}},om={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t)){var n=t.getData();return{dataEach:n.hasItemOption?r:null}}function r(t,e){for(var n=t.getItemModel(e),r=0;r<rm.length;r++){var i=rm[r],o=n.getShallow(i,!0);null!=o&&t.setItemVisual(e,i,o)}}}};function am(t,e,n){switch(n){case"color":var r=t.getItemVisual(e,"style");return r[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n);default:0}}function sm(t,e){switch(e){case"color":var n=t.getVisual("style");return n[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e);default:0}}function lm(t,e,n,r){switch(n){case"color":var i=t.ensureUniqueItemVisual(e,"style");i[t.getVisual("drawType")]=r,t.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":t.ensureUniqueItemVisual(e,"style").opacity=r;break;case"symbol":case"symbolSize":case"liftZ":t.setItemVisual(e,n,r);break;default:0}}function um(t,e){function n(e,n){var r=[];return e.eachComponent({mainType:"series",subType:t,query:n},(function(t){r.push(t.seriesIndex)})),r}Object(v["each"])([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],(function(t){e(t[0],(function(e,r,i){e=Object(v["extend"])({},e),i.dispatchAction(Object(v["extend"])(e,{type:t[1],seriesIndex:n(r,e)}))}))}))}function cm(t,e,n,r,i){var o=t+e;n.isSilent(o)||r.eachComponent({mainType:"series",subType:"pie"},(function(t){for(var e=t.seriesIndex,r=t.option.selectedMap,a=i.selected,s=0;s<a.length;s++)if(a[s].seriesIndex===e){var l=t.getData(),u=$i(l,i.fromActionPayload);n.trigger(o,{type:o,seriesId:t.id,name:Object(v["isArray"])(u)?l.getName(u[0]):l.getName(u),selected:Object(v["isString"])(r)?r:Object(v["extend"])({},r)})}}))}function hm(t,e,n){t.on("selectchanged",(function(t){var r=n.getModel();t.isFromClick?(cm("map","selectchanged",e,r,t),cm("pie","selectchanged",e,r,t)):"select"===t.fromAction?(cm("map","selected",e,r,t),cm("pie","selected",e,r,t)):"unselect"===t.fromAction&&(cm("map","unselected",e,r,t),cm("pie","unselected",e,r,t))}))}function fm(t,e,n){var r;while(t){if(e(t)&&(r=t,n))break;t=t.__hostTarget||t.parent}return r}var dm=Math.round(9*Math.random()),pm="function"===typeof Object.defineProperty,gm=function(){function t(){this._id="__ec_inner_"+dm++}return t.prototype.get=function(t){return this._guard(t)[this._id]},t.prototype.set=function(t,e){var n=this._guard(t);return pm?Object.defineProperty(n,this._id,{value:e,enumerable:!1,configurable:!0}):n[this._id]=e,this},t.prototype["delete"]=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},t.prototype.has=function(t){return!!this._guard(t)[this._id]},t.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},t}(),vm=gm,ym=ss.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,i=e.width/2,o=e.height/2;t.moveTo(n,r-o),t.lineTo(n+i,r+o),t.lineTo(n-i,r+o),t.closePath()}}),mm=ss.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,i=e.width/2,o=e.height/2;t.moveTo(n,r-o),t.lineTo(n+i,r),t.lineTo(n,r+o),t.lineTo(n-i,r),t.closePath()}}),bm=ss.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,r=e.y,i=e.width/5*3,o=Math.max(i,e.height),a=i/2,s=a*a/(o-a),l=r-o+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,h=Math.sin(u),f=Math.cos(u),d=.6*a,p=.7*a;t.moveTo(n-c,l+s),t.arc(n,l,a,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(n+c-h*d,l+s+f*d,n,r-p,n,r),t.bezierCurveTo(n,r-p,n-c+h*d,l+s+f*d,n-c,l+s),t.closePath()}}),_m=ss.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,r=e.width,i=e.x,o=e.y,a=r/3*2;t.moveTo(i,o),t.lineTo(i+a,o+n),t.lineTo(i,o+n/4*3),t.lineTo(i-a,o+n),t.lineTo(i,o),t.closePath()}}),xm={line:ev,rect:Os,roundRect:Os,square:Os,circle:bg,diamond:mm,pin:bm,arrow:_m,triangle:ym},wm={line:function(t,e,n,r,i){i.x1=t,i.y1=e+r/2,i.x2=t+n,i.y2=e+r/2},rect:function(t,e,n,r,i){i.x=t,i.y=e,i.width=n,i.height=r},roundRect:function(t,e,n,r,i){i.x=t,i.y=e,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(t,e,n,r,i){var o=Math.min(n,r);i.x=t,i.y=e,i.width=o,i.height=o},circle:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.r=Math.min(n,r)/2},diamond:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.width=n,i.height=r},pin:function(t,e,n,r,i){i.x=t+n/2,i.y=e+r/2,i.width=n,i.height=r},arrow:function(t,e,n,r,i){i.x=t+n/2,i.y=e+r/2,i.width=n,i.height=r},triangle:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.width=n,i.height=r}},Sm={};Object(v["each"])(xm,(function(t,e){Sm[e]=new t}));var Om=ss.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var r=xr(t,e,n),i=this.shape;return i&&"pin"===i.symbolType&&"inside"===e.position&&(r.y=n.y+.4*n.height),r},buildPath:function(t,e,n){var r=e.symbolType;if("none"!==r){var i=Sm[r];i||(r="rect",i=Sm[r]),wm[r](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,n)}}});function Cm(t,e){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=t:n.fill=t,this.markRedraw()}}function km(t,e,n,r,i,o,a){var s,l=0===t.indexOf("empty");return l&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),s=0===t.indexOf("image://")?Rv(t.slice(8),new qt(e,n,r,i),a?"center":"cover"):0===t.indexOf("path://")?Dv(t.slice(7),{},new qt(e,n,r,i),a?"center":"cover"):new Om({shape:{symbolType:t,x:e,y:n,width:r,height:i}}),s.__isEmptyBrush=l,s.setColor=Cm,o&&s.setColor(o),s}function Am(t){return Object(v["isArray"])(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function Mm(t,e){if(null!=t)return Object(v["isArray"])(t)||(t=[t,t]),[Jr(t[0],e[0])||0,Jr(Object(v["retrieve2"])(t[1],t[0]),e[1])||0]}function Tm(t){return isFinite(t)}function Im(t,e,n){var r=null==e.x?0:e.x,i=null==e.x2?1:e.x2,o=null==e.y?0:e.y,a=null==e.y2?0:e.y2;e.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=Tm(r)?r:0,i=Tm(i)?i:1,o=Tm(o)?o:0,a=Tm(a)?a:0;var s=t.createLinearGradient(r,o,i,a);return s}function Em(t,e,n){var r=n.width,i=n.height,o=Math.min(r,i),a=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;e.global||(a=a*r+n.x,s=s*i+n.y,l*=o),a=Tm(a)?a:.5,s=Tm(s)?s:.5,l=l>=0&&Tm(l)?l:.5;var u=t.createRadialGradient(a,s,0,a,s,l);return u}function Pm(t,e,n){for(var r="radial"===e.type?Em(t,e,n):Im(t,e,n),i=e.colorStops,o=0;o<i.length;o++)r.addColorStop(i[o].offset,i[o].color);return r}function jm(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!0;return!1}function Lm(t){return parseInt(t,10)}function Dm(t,e,n){var r=["width","height"][e],i=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e],a=["paddingRight","paddingBottom"][e];if(null!=n[r]&&"auto"!==n[r])return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(t);return(t[i]||Lm(s[r])||Lm(t.style[r]))-(Lm(s[o])||0)-(Lm(s[a])||0)|0}function Rm(t,e){return t&&"solid"!==t&&e>0?"dashed"===t?[4*e,2*e]:"dotted"===t?[e]:Object(v["isNumber"])(t)?[t]:Object(v["isArray"])(t)?t:null:null}function Nm(t){var e=t.style,n=e.lineDash&&e.lineWidth>0&&Rm(e.lineDash,e.lineWidth),r=e.lineDashOffset;if(n){var i=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;i&&1!==i&&(n=Object(v["map"])(n,(function(t){return t/i})),r/=i)}return[n,r]}var Bm=new Da(!0);function Fm(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function zm(t){return"string"===typeof t&&"none"!==t}function Vm(t){var e=t.fill;return null!=e&&"none"!==e}function qm(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function Gm(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function Hm(t,e,n){var r=Ao(e.image,e.__image,n);if(To(r)){var i=t.createPattern(r,e.repeat||"repeat");if("function"===typeof DOMMatrix&&i&&i.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*v["RADIAN_TO_DEGREE"]),o.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(o)}return i}}function Wm(t,e,n,r){var i,o=Fm(n),a=Vm(n),s=n.strokePercent,l=s<1,u=!e.path;e.silent&&!l||!u||e.createPathProxy();var c=e.path||Bm,h=e.__dirty;if(!r){var f=n.fill,d=n.stroke,p=a&&!!f.colorStops,g=o&&!!d.colorStops,v=a&&!!f.image,y=o&&!!d.image,m=void 0,b=void 0,_=void 0,x=void 0,w=void 0;(p||g)&&(w=e.getBoundingRect()),p&&(m=h?Pm(t,f,w):e.__canvasFillGradient,e.__canvasFillGradient=m),g&&(b=h?Pm(t,d,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=b),v&&(_=h||!e.__canvasFillPattern?Hm(t,f,e):e.__canvasFillPattern,e.__canvasFillPattern=_),y&&(x=h||!e.__canvasStrokePattern?Hm(t,d,e):e.__canvasStrokePattern,e.__canvasStrokePattern=_),p?t.fillStyle=m:v&&(_?t.fillStyle=_:a=!1),g?t.strokeStyle=b:y&&(x?t.strokeStyle=x:o=!1)}var S,O,C=e.getGlobalScale();c.setScale(C[0],C[1],e.segmentIgnoreThreshold),t.setLineDash&&n.lineDash&&(i=Nm(e),S=i[0],O=i[1]);var k=!0;(u||h&de)&&(c.setDPR(t.dpr),l?c.setContext(null):(c.setContext(t),k=!1),c.reset(),e.buildPath(c,e.shape,r),c.toStatic(),e.pathUpdated()),k&&c.rebuildPath(t,l?s:1),S&&(t.setLineDash(S),t.lineDashOffset=O),r||(n.strokeFirst?(o&&Gm(t,n),a&&qm(t,n)):(a&&qm(t,n),o&&Gm(t,n))),S&&t.setLineDash([])}function Um(t,e,n){var r=e.__image=Ao(n.image,e.__image,e,e.onload);if(r&&To(r)){var i=n.x||0,o=n.y||0,a=e.getWidth(),s=e.getHeight(),l=r.width/r.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=r.width,s=r.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;t.drawImage(r,u,c,n.sWidth,n.sHeight,i,o,a,s)}else if(n.sx&&n.sy){u=n.sx,c=n.sy;var h=a-u,f=s-c;t.drawImage(r,u,c,h,f,i,o,a,s)}else t.drawImage(r,i,o,a,s)}}function $m(t,e,n){var r,i=n.text;if(null!=i&&(i+=""),i){t.font=n.font||fr["a"],t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var o=void 0,a=void 0;t.setLineDash&&n.lineDash&&(r=Nm(e),o=r[0],a=r[1]),o&&(t.setLineDash(o),t.lineDashOffset=a),n.strokeFirst?(Fm(n)&&t.strokeText(i,n.x,n.y),Vm(n)&&t.fillText(i,n.x,n.y)):(Vm(n)&&t.fillText(i,n.x,n.y),Fm(n)&&t.strokeText(i,n.x,n.y)),o&&t.setLineDash([])}}var Ym=["shadowBlur","shadowOffsetX","shadowOffsetY"],Xm=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Km(t,e,n,r,i){var o=!1;if(!r&&(n=n||{},e===n))return!1;if(r||e.opacity!==n.opacity){sb(t,i),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?Uo.opacity:a}(r||e.blend!==n.blend)&&(o||(sb(t,i),o=!0),t.globalCompositeOperation=e.blend||Uo.blend);for(var s=0;s<Ym.length;s++){var l=Ym[s];(r||e[l]!==n[l])&&(o||(sb(t,i),o=!0),t[l]=t.dpr*(e[l]||0))}return(r||e.shadowColor!==n.shadowColor)&&(o||(sb(t,i),o=!0),t.shadowColor=e.shadowColor||Uo.shadowColor),o}function Zm(t,e,n,r,i){var o=lb(e,i.inHover),a=r?null:n&&lb(n,i.inHover)||{};if(o===a)return!1;var s=Km(t,o,a,r,i);if((r||o.fill!==a.fill)&&(s||(sb(t,i),s=!0),zm(o.fill)&&(t.fillStyle=o.fill)),(r||o.stroke!==a.stroke)&&(s||(sb(t,i),s=!0),zm(o.stroke)&&(t.strokeStyle=o.stroke)),(r||o.opacity!==a.opacity)&&(s||(sb(t,i),s=!0),t.globalAlpha=null==o.opacity?1:o.opacity),e.hasStroke()){var l=o.lineWidth,u=l/(o.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(sb(t,i),s=!0),t.lineWidth=u)}for(var c=0;c<Xm.length;c++){var h=Xm[c],f=h[0];(r||o[f]!==a[f])&&(s||(sb(t,i),s=!0),t[f]=o[f]||h[1])}return s}function Qm(t,e,n,r,i){return Km(t,lb(e,i.inHover),n&&lb(n,i.inHover),r,i)}function Jm(t,e){var n=e.transform,r=t.dpr||1;n?t.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):t.setTransform(r,0,0,r,0,0)}function tb(t,e,n){for(var r=!1,i=0;i<t.length;i++){var o=t[i];r=r||o.isZeroArea(),Jm(e,o),e.beginPath(),o.buildPath(e,o.shape),e.clip()}n.allClipped=r}function eb(t,e){return t&&e?t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||t[4]!==e[4]||t[5]!==e[5]:!(!t&&!e)}var nb=1,rb=2,ib=3,ob=4;function ab(t){var e=Vm(t),n=Fm(t);return!(t.lineDash||!(+e^+n)||e&&"string"!==typeof t.fill||n&&"string"!==typeof t.stroke||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function sb(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function lb(t,e){return e&&t.__hoverStyle||t.style}function ub(t,e){cb(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function cb(t,e,n,r){var i=e.transform;if(!e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return e.__dirty&=~he,void(e.__isRendered=!1);var o=e.__clipPaths,a=n.prevElClipPaths,s=!1,l=!1;if(a&&!jm(o,a)||(a&&a.length&&(sb(t,n),t.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length&&(sb(t,n),t.save(),tb(o,t,n),s=!0),n.prevElClipPaths=o),n.allClipped)e.__isRendered=!1;else{e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=n.prevEl;u||(l=s=!0);var c=e instanceof ss&&e.autoBatch&&ab(e.style);s||eb(i,u.transform)?(sb(t,n),Jm(t,e)):c||sb(t,n);var h=lb(e,n.inHover);e instanceof ss?(n.lastDrawType!==nb&&(l=!0,n.lastDrawType=nb),Zm(t,e,u,l,n),c&&(n.batchFill||n.batchStroke)||t.beginPath(),Wm(t,e,h,c),c&&(n.batchFill=h.fill||"",n.batchStroke=h.stroke||"")):e instanceof cs?(n.lastDrawType!==ib&&(l=!0,n.lastDrawType=ib),Zm(t,e,u,l,n),$m(t,e,h)):e instanceof gs?(n.lastDrawType!==rb&&(l=!0,n.lastDrawType=rb),Qm(t,e,u,l,n),Um(t,e,h)):e.getTemporalDisplayables&&(n.lastDrawType!==ob&&(l=!0,n.lastDrawType=ob),hb(t,e,n)),c&&r&&sb(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),n.prevEl=e,e.__dirty=0,e.__isRendered=!0}}function hb(t,e,n){var r=e.getDisplayables(),i=e.getTemporalDisplayables();t.save();var o,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(o=e.getCursor(),a=r.length;o<a;o++){var l=r[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),cb(t,l,s,o===a-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}for(var u=0,c=i.length;u<c;u++){l=i[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),cb(t,l,s,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var fb=new vm,db=new hr["a"](100),pb=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function gb(t,e){if("none"===t)return null;var n=e.getDevicePixelRatio(),r=e.getZr(),i="svg"===r.painter.type;t.dirty&&fb["delete"](t);var o=fb.get(t);if(o)return o;var a=Object(v["defaults"])(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===a.backgroundColor&&(a.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=a.rotation,s.scaleX=s.scaleY=i?1:1/n,fb.set(t,s),t.dirty=!1,s;function l(t){for(var e,o=[n],s=!0,l=0;l<pb.length;++l){var u=a[pb[l]];if(null!=u&&!Object(v["isArray"])(u)&&!Object(v["isString"])(u)&&!Object(v["isNumber"])(u)&&"boolean"!==typeof u){s=!1;break}o.push(u)}if(s){e=o.join(",")+(i?"-svg":"");var c=db.get(e);c&&(i?t.svgElement=c:t.image=c)}var h,f=yb(a.dashArrayX),d=mb(a.dashArrayY),p=vb(a.symbol),g=bb(f),y=_b(d),m=!i&&fr["d"].createCanvas(),b=i&&{tag:"g",attrs:{},key:"dcl",children:[]},_=x();function x(){for(var t=1,e=0,n=g.length;e<n;++e)t=wi(t,g[e]);var r=1;for(e=0,n=p.length;e<n;++e)r=wi(r,p[e].length);t*=r;var i=y*g.length*p.length;return{width:Math.max(1,Math.min(t,a.maxTileWidth)),height:Math.max(1,Math.min(i,a.maxTileHeight))}}function w(){h&&(h.clearRect(0,0,m.width,m.height),a.backgroundColor&&(h.fillStyle=a.backgroundColor,h.fillRect(0,0,m.width,m.height)));for(var t=0,e=0;e<d.length;++e)t+=d[e];if(!(t<=0)){var o=-y,s=0,l=0,u=0;while(o<_.height){if(s%2===0){var c=l/2%p.length,g=0,v=0,x=0;while(g<2*_.width){var w=0;for(e=0;e<f[u].length;++e)w+=f[u][e];if(w<=0)break;if(v%2===0){var S=.5*(1-a.symbolSize),O=g+f[u][v]*S,C=o+d[s]*S,k=f[u][v]*a.symbolSize,A=d[s]*a.symbolSize,M=x/2%p[c].length;T(O,C,k,A,p[c][M])}g+=f[u][v],++x,++v,v===f[u].length&&(v=0)}++u,u===f.length&&(u=0)}o+=d[s],++l,++s,s===d.length&&(s=0)}}function T(t,e,o,s,l){var u=i?1:n,c=km(l,t*u,e*u,o*u,s*u,a.color,a.symbolKeepAspect);if(i){var f=r.painter.renderOneToVNode(c);f&&b.children.push(f)}else ub(h,c)}}m&&(m.width=_.width*n,m.height=_.height*n,h=m.getContext("2d")),w(),s&&db.put(e,m||b),t.image=m,t.svgElement=b,t.svgWidth=_.width,t.svgHeight=_.height}}function vb(t){if(!t||0===t.length)return[["rect"]];if(Object(v["isString"])(t))return[[t]];for(var e=!0,n=0;n<t.length;++n)if(!Object(v["isString"])(t[n])){e=!1;break}if(e)return vb([t]);var r=[];for(n=0;n<t.length;++n)Object(v["isString"])(t[n])?r.push([t[n]]):r.push(t[n]);return r}function yb(t){if(!t||0===t.length)return[[0,0]];if(Object(v["isNumber"])(t)){var e=Math.ceil(t);return[[e,e]]}for(var n=!0,r=0;r<t.length;++r)if(!Object(v["isNumber"])(t[r])){n=!1;break}if(n)return yb([t]);var i=[];for(r=0;r<t.length;++r)if(Object(v["isNumber"])(t[r])){e=Math.ceil(t[r]);i.push([e,e])}else{e=Object(v["map"])(t[r],(function(t){return Math.ceil(t)}));e.length%2===1?i.push(e.concat(e)):i.push(e)}return i}function mb(t){if(!t||"object"===typeof t&&0===t.length)return[0,0];if(Object(v["isNumber"])(t)){var e=Math.ceil(t);return[e,e]}var n=Object(v["map"])(t,(function(t){return Math.ceil(t)}));return t.length%2?n.concat(n):n}function bb(t){return Object(v["map"])(t,(function(t){return _b(t)}))}function _b(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2===1?2*e:e}function xb(t,e){t.eachRawSeries((function(n){if(!t.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each((function(t){var n=r.getItemVisual(t,"decal");if(n){var i=r.ensureUniqueItemVisual(t,"style");i.decal=gb(n,e)}}));var i=r.getVisual("decal");if(i){var o=r.getVisual("style");o.decal=gb(i,e)}}}))}var wb=new U,Sb=wb,Ob={};function Cb(t,e){Ob[t]=e}function kb(t){return Ob[t]}var Ab="undefined"!==typeof window,Mb="5.4.0",Tb={zrender:"5.4.0"},Ib=1,Eb=800,Pb=900,jb=1e3,Lb=2e3,Db=5e3,Rb=1e3,Nb=1100,Bb=2e3,Fb=3e3,zb=4e3,Vb=4500,qb=4600,Gb=5e3,Hb=6e3,Wb=7e3,Ub={PROCESSOR:{FILTER:jb,SERIES_FILTER:Eb,STATISTIC:Db},VISUAL:{LAYOUT:Rb,PROGRESSIVE_LAYOUT:Nb,GLOBAL:Bb,CHART:Fb,POST_CHART_LAYOUT:qb,COMPONENT:zb,BRUSH:Gb,CHART_ITEM:Vb,ARIA:Hb,DECAL:Wb}},$b="__flagInMainProcess",Yb="__pendingUpdate",Xb="__needsUpdateStatus",Kb=/^[a-zA-Z0-9_]+$/,Zb="__connectUpdateStatus",Qb=0,Jb=1,t_=2;function e_(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(!this.isDisposed())return r_(this,t,e);A_(this.id)}}function n_(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return r_(this,t,e)}}function r_(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),U.prototype[e].apply(t,n)}var i_,o_,a_,s_,l_,u_,c_,h_,f_,d_,p_,g_,v_,y_,m_,b_,__,x_,w_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e}(U),S_=w_.prototype;S_.on=n_("on"),S_.off=n_("off");var O_=function(t){function e(e,n,r){var i=t.call(this,new em)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r=r||{},Object(v["isString"])(n)&&(n=j_[n]),i._dom=e;var o="canvas",a="auto",s=!1,l=i._zr=Gr(e,{renderer:r.renderer||o,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:Object(v["retrieve2"])(r.useDirtyRect,s),useCoarsePointer:Object(v["retrieve2"])(r.useCoarsePointer,a),pointerSize:r.pointerSize});i._ssr=r.ssr,i._throttledZrFlush=yy(Object(v["bind"])(l.flush,l),17),n=Object(v["clone"])(n),n&&Wf(n,!0),i._theme=n,i._locale=ac(r.locale||ic),i._coordSysMgr=new pf;var u=i._api=m_(i);function c(t,e){return t.__prio-e.__prio}return ce(P_,c),ce(I_,c),i._scheduler=new Uy(i,u,I_,P_),i._messageCenter=new w_,i._initEvents(),i.resize=Object(v["bind"])(i.resize,i),l.animation.on("frame",i._onframe,i),d_(l,i),p_(l,i),Object(v["setAsPrimitive"])(i),i}return p(e,t),e.prototype._onframe=function(){if(!this._disposed){x_(this);var t=this._scheduler;if(this[Yb]){var e=this[Yb].silent;this[$b]=!0;try{i_(this),s_.update.call(this,null,this[Yb].updateParams)}catch(a){throw this[$b]=!1,this[Yb]=null,a}this._zr.flush(),this[$b]=!1,this[Yb]=null,h_.call(this,e),f_.call(this,e)}else if(t.unfinished){var n=Ib,r=this._model,i=this._api;t.unfinished=!1;do{var o=+new Date;t.performSeriesTasks(r),t.performDataProcessorTasks(r),u_(this,r),t.performVisualTasks(r),y_(this,this._model,i,"remain",{}),n-=+new Date-o}while(n>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,e,n){if(!this[$b])if(this._disposed)A_(this.id);else{var r,i,o;if(Object(v["isObject"])(e)&&(n=e.lazyUpdate,r=e.silent,i=e.replaceMerge,o=e.transition,e=e.notMerge),this[$b]=!0,!this._model||e){var a=new xf(this._api),s=this._theme,l=this._model=new lf;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:i},E_);var u={seriesTransition:o,optionChanged:!0};if(n)this[Yb]={silent:r,updateParams:u},this[$b]=!1,this.getZr().wakeUp();else{try{i_(this),s_.update.call(this,null,u)}catch(c){throw this[Yb]=null,this[$b]=!1,c}this._ssr||this._zr.flush(),this[Yb]=null,this[$b]=!1,h_.call(this,r),f_.call(this,r)}}},e.prototype.setTheme=function(){Zh("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Ab&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var e=this._zr.painter;return e.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var e=this._zr.painter;return e.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(g["a"].svgSupported){var t=this._zr,e=t.storage.getDisplayList();return Object(v["each"])(e,(function(t){t.stopAnimation(null,!0)})),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(!this._disposed){t=t||{};var e=t.excludeComponents,n=this._model,r=[],i=this;Object(v["each"])(e,(function(t){n.eachComponent({mainType:t},(function(t){var e=i._componentsMap[t.__viewId];e.group.ignore||(r.push(e),e.group.ignore=!0)}))}));var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return Object(v["each"])(r,(function(t){t.group.ignore=!1})),o}A_(this.id)},e.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,r=Math.min,i=Math.max,o=1/0;if(R_[n]){var a=o,s=o,l=-o,u=-o,c=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();Object(v["each"])(D_,(function(o,h){if(o.group===n){var f=e?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(Object(v["clone"])(t)),d=o.getDom().getBoundingClientRect();a=r(d.left,a),s=r(d.top,s),l=i(d.right,l),u=i(d.bottom,u),c.push({dom:f,left:d.left,top:d.top})}})),a*=h,s*=h,l*=h,u*=h;var f=l-a,d=u-s,p=fr["d"].createCanvas(),g=Gr(p,{renderer:e?"svg":"canvas"});if(g.resize({width:f,height:d}),e){var y="";return Object(v["each"])(c,(function(t){var e=t.left-a,n=t.top-s;y+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"})),g.painter.getSvgRoot().innerHTML=y,t.connectedBackgroundColor&&g.painter.setBackgroundColor(t.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}return t.connectedBackgroundColor&&g.add(new Os({shape:{x:0,y:0,width:f,height:d},style:{fill:t.connectedBackgroundColor}})),Object(v["each"])(c,(function(t){var e=new gs({style:{x:t.left*h-a,y:t.top*h-s,image:t.dom}});g.add(e)})),g.refreshImmediately(),p.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}A_(this.id)},e.prototype.convertToPixel=function(t,e){return l_(this,"convertToPixel",t,e)},e.prototype.convertFromPixel=function(t,e){return l_(this,"convertFromPixel",t,e)},e.prototype.containPixel=function(t,e){if(!this._disposed){var n,r=this._model,i=Ki(r,t);return Object(v["each"])(i,(function(t,r){r.indexOf("Models")>=0&&Object(v["each"])(t,(function(t){var i=t.coordinateSystem;if(i&&i.containPoint)n=n||!!i.containPoint(e);else if("seriesModels"===r){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n=n||o.containPoint(e,t))}else 0}),this)}),this),!!n}A_(this.id)},e.prototype.getVisual=function(t,e){var n=this._model,r=Ki(n,t,{defaultMainType:"series"}),i=r.seriesModel;var o=i.getData(),a=r.hasOwnProperty("dataIndexInside")?r.dataIndexInside:r.hasOwnProperty("dataIndex")?o.indexOfRawIndex(r.dataIndex):null;return null!=a?am(o,a,e):sm(o,e)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;Object(v["each"])(k_,(function(e){var n=function(n){var r,i=t.getModel(),o=n.target,a="globalout"===e;if(a?r={}:o&&fm(o,(function(t){var e=Gs(t);if(e&&null!=e.dataIndex){var n=e.dataModel||i.getSeriesByIndex(e.seriesIndex);return r=n&&n.getDataParams(e.dataIndex,e.dataType)||{},!0}if(e.eventData)return r=Object(v["extend"])({},e.eventData),!0}),!0),r){var s=r.componentType,l=r.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=r.seriesIndex);var u=s&&null!=l&&i.getComponent(s,l),c=u&&t["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];0,r.event=n,r.type=e,t._$eventProcessor.eventInfo={targetEl:o,packedEvent:r,model:u,view:c},t.trigger(e,r)}};n.zrEventfulCallAtLast=!0,t._zr.on(e,n,t)})),Object(v["each"])(T_,(function(e,n){t._messageCenter.on(n,(function(t){this.trigger(n,t)}),t)})),Object(v["each"])(["selectchanged"],(function(e){t._messageCenter.on(e,(function(t){this.trigger(e,t)}),t)})),hm(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?A_(this.id):this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)A_(this.id);else{this._disposed=!0;var t=this.getDom();t&&eo(this.getDom(),F_,"");var e=this,n=e._api,r=e._model;Object(v["each"])(e._componentsViews,(function(t){t.dispose(r,n)})),Object(v["each"])(e._chartsViews,(function(t){t.dispose(r,n)})),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete D_[e.id]}},e.prototype.resize=function(t){if(!this[$b])if(this._disposed)A_(this.id);else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),r=t&&t.silent;this[Yb]&&(null==r&&(r=this[Yb].silent),n=!0,this[Yb]=null),this[$b]=!0;try{n&&i_(this),s_.update.call(this,{type:"resize",animation:Object(v["extend"])({duration:0},t&&t.animation)})}catch(i){throw this[$b]=!1,i}this[$b]=!1,h_.call(this,r),f_.call(this,r)}}},e.prototype.showLoading=function(t,e){if(this._disposed)A_(this.id);else if(Object(v["isObject"])(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),L_[t]){var n=L_[t](this._api,e),r=this._zr;this._loadingFX=n,r.add(n)}},e.prototype.hideLoading=function(){this._disposed?A_(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=Object(v["extend"])({},t);return e.type=T_[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)A_(this.id);else if(Object(v["isObject"])(e)||(e={silent:!!e}),M_[t.type]&&this._model)if(this[$b])this._pendingActions.push(t);else{var n=e.silent;c_.call(this,t,n);var r=e.flush;r?this._zr.flush():!1!==r&&g["a"].browser.weChat&&this._throttledZrFlush(),h_.call(this,n),f_.call(this,n)}},e.prototype.updateLabelLayout=function(){Sb.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)A_(this.id);else{var e=t.seriesIndex,n=this.getModel(),r=n.getSeriesByIndex(e);0,r.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},e.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries((function(t){t.clearColorPalette()}))}function e(t){var e=[],n=[],r=!1;if(t.eachComponent((function(t,i){var o=i.get("zlevel")||0,a=i.get("z")||0,s=i.getZLevelKey();r=r||!!s,("series"===t?n:e).push({zlevel:o,z:a,idx:i.componentIndex,type:t,key:s})})),r){var i,o,a=e.concat(n);ce(a,(function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel})),Object(v["each"])(a,(function(e){var n=t.getComponent(e.type,e.idx),r=e.zlevel,a=e.key;null!=i&&(r=Math.max(i,r)),a?(r===i&&a!==o&&r++,o=a):o&&(r===i&&r++,o=""),i=r,n.setZLevel(r)}))}}function n(t){for(var e=[],n=t.currentStates,r=0;r<n.length;r++){var i=n[r];"emphasis"!==i&&"blur"!==i&&"select"!==i&&e.push(i)}t.selected&&t.states.select&&e.push("select"),t.hoverState===Zs&&t.states.emphasis?e.push("emphasis"):t.hoverState===Ks&&t.states.blur&&e.push("blur"),t.useStates(e)}function r(t,e){var n=t._zr,r=n.storage,i=0;r.traverse((function(t){t.isGroup||i++})),i>e.get("hoverLayerThreshold")&&!g["a"].node&&!g["a"].worker&&e.eachSeries((function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.eachRendered((function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)}))}}))}function i(t,e){var n=t.get("blendMode")||null;e.eachRendered((function(t){t.isGroup||(t.style.blend=n)}))}function o(t,e){if(!t.preventAutoZ){var n=t.get("z")||0,r=t.get("zlevel")||0;e.eachRendered((function(t){return a(t,n,r,-1/0),!0}))}}function a(t,e,n,r){var i=t.getTextContent(),o=t.getTextGuideLine(),s=t.isGroup;if(s)for(var l=t.childrenRef(),u=0;u<l.length;u++)r=Math.max(a(l[u],e,n,r),r);else t.z=e,t.zlevel=n,r=Math.max(t.z2,r);if(i&&(i.z=e,i.zlevel=n,isFinite(r)&&(i.z2=r+2)),o){var c=t.textGuideLineConfig;o.z=e,o.zlevel=n,isFinite(r)&&(o.z2=r+(c&&c.showAbove?1:-1))}return r}function s(t,e){e.eachRendered((function(t){if(!cu(t)){var e=t.getTextContent(),n=t.getTextGuideLine();t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null)}}))}function l(t,e){var r=t.getModel("stateAnimation"),i=t.isAnimationEnabled(),o=r.get("duration"),a=o>0?{duration:o,delay:r.get("delay"),easing:r.get("easing")}:null;e.eachRendered((function(t){if(t.states&&t.states.emphasis){if(cu(t))return;if(t instanceof ss&&iu(t),t.__dirty){var e=t.prevStates;e&&t.useStates(e)}if(i){t.stateTransition=a;var r=t.getTextContent(),o=t.getTextGuideLine();r&&(r.stateTransition=a),o&&(o.stateTransition=a)}t.__dirty&&n(t)}}))}i_=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),o_(t,!0),o_(t,!1),e.plan()},o_=function(t,e){for(var n=t._model,r=t._scheduler,i=e?t._componentsViews:t._chartsViews,o=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;l<i.length;l++)i[l].__alive=!1;function u(t){var l=t.__requireNewView;t.__requireNewView=!1;var u="_ec_"+t.id+"_"+t.type,c=!l&&o[u];if(!c){var h=uo(t.type),f=e?Up.getClass(h.main,h.sub):dy.getClass(h.sub);0,c=new f,c.init(n,s),o[u]=c,i.push(c),a.add(c.group)}t.__viewId=c.__id=u,c.__alive=!0,c.__model=t,c.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!e&&r.prepareView(c,t,n,s)}e?n.eachComponent((function(t,e){"series"!==t&&u(e)})):n.eachSeries(u);for(l=0;l<i.length;){var c=i[l];c.__alive?l++:(!e&&c.renderTask.dispose(),a.remove(c.group),c.dispose(n,s),i.splice(l,1),o[c.__id]===c&&delete o[c.__id],c.__id=c.group.__ecComponentInfo=null)}},a_=function(t,e,n,r,i){var o=t._model;if(o.setUpdatePayload(n),r){var a={};a[r+"Id"]=n[r+"Id"],a[r+"Index"]=n[r+"Index"],a[r+"Name"]=n[r+"Name"];var s={mainType:r,query:a};i&&(s.subType=i);var l,u=n.excludeSeriesId;null!=u&&(l=Object(v["createHashMap"])(),Object(v["each"])(ki(u),(function(t){var e=zi(t,null);null!=e&&l.set(e,!0)}))),o&&o.eachComponent(s,(function(e){var r=l&&null!==l.get(e.id);if(!r)if(ru(n))if(e instanceof Hp)n.type!==nl||n.notBlur||e.get(["emphasis","disabled"])||Bl(e,n,t._api);else{var i=Fl(e.mainType,e.componentIndex,n.name,t._api),o=i.focusSelf,a=i.dispatchers;n.type===nl&&o&&!n.notBlur&&Nl(e.mainType,e.componentIndex,t._api),a&&Object(v["each"])(a,(function(t){n.type===nl?Ml(t):Tl(t)}))}else nu(n)&&e instanceof Hp&&(ql(e,n,t._api),Gl(e),__(t))}),t),o&&o.eachComponent(s,(function(e){var n=l&&null!==l.get(e.id);n||c(t["series"===r?"_chartsMap":"_componentsMap"][e.__viewId])}),t)}else Object(v["each"])([].concat(t._componentsViews).concat(t._chartsViews),c);function c(r){r&&r.__alive&&r[e]&&r[e](r.__model,o,t._api,n)}},s_={prepareAndUpdate:function(t){i_(this),s_.update.call(this,t,{optionChanged:null!=t.newOption})},update:function(e,n){var r=this._model,i=this._api,o=this._zr,a=this._coordSysMgr,s=this._scheduler;if(r){r.setUpdatePayload(e),s.restoreData(r,e),s.performSeriesTasks(r),a.create(r,i),s.performDataProcessorTasks(r,e),u_(this,r),a.update(r,i),t(r),s.performVisualTasks(r,e),g_(this,r,i,e,n);var l=r.get("backgroundColor")||"transparent",u=r.get("darkMode");o.setBackgroundColor(l),null!=u&&"auto"!==u&&o.setDarkMode(u),Sb.trigger("afterupdate",r,i)}},updateTransform:function(e){var n=this,r=this._model,i=this._api;if(r){r.setUpdatePayload(e);var o=[];r.eachComponent((function(t,a){if("series"!==t){var s=n.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,r,i,e);l&&l.update&&o.push(s)}else o.push(s)}}));var a=Object(v["createHashMap"])();r.eachSeries((function(t){var o=n._chartsMap[t.__viewId];if(o.updateTransform){var s=o.updateTransform(t,r,i,e);s&&s.update&&a.set(t.uid,1)}else a.set(t.uid,1)})),t(r),this._scheduler.performVisualTasks(r,e,{setDirty:!0,dirtyMap:a}),y_(this,r,i,e,{},a),Sb.trigger("afterupdate",r,i)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),dy.markUpdateMethod(e,"updateView"),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),g_(this,n,this._api,e,{}),Sb.trigger("afterupdate",n,this._api))},updateVisual:function(e){var n=this,r=this._model;r&&(r.setUpdatePayload(e),r.eachSeries((function(t){t.getData().clearAllVisual()})),dy.markUpdateMethod(e,"updateVisual"),t(r),this._scheduler.performVisualTasks(r,e,{visualType:"visual",setDirty:!0}),r.eachComponent((function(t,i){if("series"!==t){var o=n.getViewOfComponentModel(i);o&&o.__alive&&o.updateVisual(i,r,n._api,e)}})),r.eachSeries((function(t){var i=n._chartsMap[t.__viewId];i.updateVisual(t,r,n._api,e)})),Sb.trigger("afterupdate",r,this._api))},updateLayout:function(t){s_.update.call(this,t)}},l_=function(t,e,n,r){if(t._disposed)A_(t.id);else{for(var i,o=t._model,a=t._coordSysMgr.getCoordinateSystems(),s=Ki(o,n),l=0;l<a.length;l++){var u=a[l];if(u[e]&&null!=(i=u[e](o,s,r)))return i}0}},u_=function(t,e){var n=t._chartsMap,r=t._scheduler;e.eachSeries((function(t){r.updateStreamModes(t,n[t.__viewId])}))},c_=function(t,e){var n=this,r=this.getModel(),i=t.type,o=t.escapeConnect,a=M_[i],s=a.actionInfo,l=(s.update||"update").split(":"),u=l.pop(),c=null!=l[0]&&uo(l[0]);this[$b]=!0;var h=[t],f=!1;t.batch&&(f=!0,h=Object(v["map"])(t.batch,(function(e){return e=Object(v["defaults"])(Object(v["extend"])({},e),t),e.batch=null,e})));var d,p=[],g=nu(t),y=ru(t);if(y&&Dl(this._api),Object(v["each"])(h,(function(e){if(d=a.action(e,n._model,n._api),d=d||Object(v["extend"])({},e),d.type=s.event||d.type,p.push(d),y){var r=Zi(t),i=r.queryOptionMap,o=r.mainTypeSpecified,l=o?i.keys()[0]:"series";a_(n,u,e,l),__(n)}else g?(a_(n,u,e,"series"),__(n)):c&&a_(n,u,e,c.main,c.sub)})),"none"!==u&&!y&&!g&&!c)try{this[Yb]?(i_(this),s_.update.call(this,t),this[Yb]=null):s_[u].call(this,t)}catch(_){throw this[$b]=!1,_}if(d=f?{type:s.event||i,escapeConnect:o,batch:p}:p[0],this[$b]=!1,!e){var m=this._messageCenter;if(m.trigger(d.type,d),g){var b={type:"selectchanged",escapeConnect:o,selected:Hl(r),isFromClick:t.isFromClick||!1,fromAction:t.type,fromActionPayload:t};m.trigger(b.type,b)}}},h_=function(t){var e=this._pendingActions;while(e.length){var n=e.shift();c_.call(this,n,t)}},f_=function(t){!t&&this.trigger("updated")},d_=function(t,e){t.on("rendered",(function(n){e.trigger("rendered",n),!t.animation.isFinished()||e[Yb]||e._scheduler.unfinished||e._pendingActions.length||e.trigger("finished")}))},p_=function(t,e){t.on("mouseover",(function(t){var n=t.target,r=fm(n,Jl);r&&(zl(r,t,e._api),__(e))})).on("mouseout",(function(t){var n=t.target,r=fm(n,Jl);r&&(Vl(r,t,e._api),__(e))})).on("click",(function(t){var n=t.target,r=fm(n,(function(t){return null!=Gs(t).dataIndex}),!0);if(r){var i=r.selected?"unselect":"select",o=Gs(r);e._api.dispatchAction({type:i,dataType:o.dataType,dataIndexInside:o.dataIndex,seriesIndex:o.seriesIndex,isFromClick:!0})}}))},g_=function(t,n,r,i,o){e(n),v_(t,n,r,i,o),Object(v["each"])(t._chartsViews,(function(t){t.__alive=!1})),y_(t,n,r,i,o),Object(v["each"])(t._chartsViews,(function(t){t.__alive||t.remove(n,r)}))},v_=function(t,e,n,r,i,a){Object(v["each"])(a||t._componentsViews,(function(t){var i=t.__model;s(i,t),t.render(i,e,n,r),o(i,t),l(i,t)}))},y_=function(t,e,n,a,u,c){var h=t._scheduler;u=Object(v["extend"])(u||{},{updatedSeries:e.getSeries()}),Sb.trigger("series:beforeupdate",e,n,u);var f=!1;e.eachSeries((function(e){var n=t._chartsMap[e.__viewId];n.__alive=!0;var r=n.renderTask;h.updatePayload(r,a),s(e,n),c&&c.get(e.uid)&&r.dirty(),r.perform(h.getPerformArgs(r))&&(f=!0),n.group.silent=!!e.get("silent"),i(e,n),Gl(e)})),h.unfinished=f||h.unfinished,Sb.trigger("series:layoutlabels",e,n,u),Sb.trigger("series:transition",e,n,u),e.eachSeries((function(e){var n=t._chartsMap[e.__viewId];o(e,n),l(e,n)})),r(t,e),Sb.trigger("series:afterupdate",e,n,u)},__=function(t){t[Xb]=!0,t.getZr().wakeUp()},x_=function(t){t[Xb]&&(t.getZr().storage.traverse((function(t){cu(t)||n(t)})),t[Xb]=!1)},m_=function(t){return new(function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return p(n,e),n.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(e){while(e){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},n.prototype.enterEmphasis=function(e,n){Ml(e,n),__(t)},n.prototype.leaveEmphasis=function(e,n){Tl(e,n),__(t)},n.prototype.enterBlur=function(e){Il(e),__(t)},n.prototype.leaveBlur=function(e){El(e),__(t)},n.prototype.enterSelect=function(e){Pl(e),__(t)},n.prototype.leaveSelect=function(e){jl(e),__(t)},n.prototype.getModel=function(){return t.getModel()},n.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},n.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},n}(hf))(t)},b_=function(t){function e(t,e){for(var n=0;n<t.length;n++){var r=t[n];r[Zb]=e}}Object(v["each"])(T_,(function(n,r){t._messageCenter.on(r,(function(n){if(R_[t.group]&&t[Zb]!==Qb){if(n&&n.escapeConnect)return;var r=t.makeActionFromEvent(n),i=[];Object(v["each"])(D_,(function(e){e!==t&&e.group===t.group&&i.push(e)})),e(i,Qb),Object(v["each"])(i,(function(t){t[Zb]!==Jb&&t.dispatchAction(r)})),e(i,t_)}}))}))}}(),e}(U),C_=O_.prototype;C_.on=e_("on"),C_.off=e_("off"),C_.one=function(t,e,n){var r=this;function i(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];e&&e.apply&&e.apply(this,n),r.off(t,i)}Zh("ECharts#one is deprecated."),this.on.call(this,t,i,n)};var k_=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function A_(t){0}var M_={},T_={},I_=[],E_=[],P_=[],j_={},L_={},D_={},R_={},N_=+new Date-0,B_=+new Date-0,F_="_echarts_instance_";function z_(t,e,n){var r=!(n&&n.ssr);if(r){0;var i=W_(t);if(i)return i;0}var o=new O_(t,e,n);return o.id="ec_"+N_++,D_[o.id]=o,r&&eo(t,F_,o.id),b_(o),Sb.trigger("afterinit",o),o}function V_(t){if(Object(v["isArray"])(t)){var e=t;t=null,Object(v["each"])(e,(function(e){null!=e.group&&(t=e.group)})),t=t||"g_"+B_++,Object(v["each"])(e,(function(e){e.group=t}))}return R_[t]=!0,t}function q_(t){R_[t]=!1}var G_=q_;function H_(t){Object(v["isString"])(t)?t=D_[t]:t instanceof O_||(t=W_(t)),t instanceof O_&&!t.isDisposed()&&t.dispose()}function W_(t){return D_[no(t,F_)]}function U_(t){return D_[t]}function $_(t,e){j_[t]=e}function Y_(t){Object(v["indexOf"])(E_,t)<0&&E_.push(t)}function X_(t,e){ox(I_,t,e,Lb)}function K_(t){Q_("afterinit",t)}function Z_(t){Q_("afterupdate",t)}function Q_(t,e){Sb.on(t,e)}function J_(t,e,n){Object(v["isFunction"])(e)&&(n=e,e="");var r=Object(v["isObject"])(t)?t.type:[t,t={event:e}][0];t.event=(t.event||r).toLowerCase(),e=t.event,T_[e]||(Object(v["assert"])(Kb.test(r)&&Kb.test(e)),M_[r]||(M_[r]={action:n,actionInfo:t}),T_[e]=r)}function tx(t,e){pf.register(t,e)}function ex(t){var e=pf.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function nx(t,e){ox(P_,t,e,Rb,"layout")}function rx(t,e){ox(P_,t,e,Fb,"visual")}var ix=[];function ox(t,e,n,r,i){if((Object(v["isFunction"])(e)||Object(v["isObject"])(e))&&(n=e,e=r),!(Object(v["indexOf"])(ix,n)>=0)){ix.push(n);var o=Uy.wrapStageHandler(n,i);o.__prio=e,o.__raw=n,t.push(o)}}function ax(t,e){L_[t]=e}function sx(t){Object(fr["e"])({createCanvas:t})}function lx(t,e,n){var r=kb("registerMap");r&&r(t,e,n)}function ux(t){var e=kb("getMap");return e&&e(t)}var cx=Gd;rx(Bb,Cy),rx(Vb,Ay),rx(Vb,My),rx(Bb,im),rx(Vb,om),rx(Wb,xb),Y_(Wf),X_(Pb,Uf),ax("default",Iy),J_({type:nl,event:nl,update:nl},v["noop"]),J_({type:rl,event:rl,update:rl},v["noop"]),J_({type:il,event:il,update:il},v["noop"]),J_({type:ol,event:ol,update:ol},v["noop"]),J_({type:al,event:al,update:al},v["noop"]),$_("light",Yy),$_("dark",tm);var hx={},fx=[],dx={registerPreprocessor:Y_,registerProcessor:X_,registerPostInit:K_,registerPostUpdate:Z_,registerUpdateLifecycle:Q_,registerAction:J_,registerCoordinateSystem:tx,registerLayout:nx,registerVisual:rx,registerTransform:cx,registerLoading:ax,registerMap:lx,registerImpl:Cb,PRIORITY:Ub,ComponentModel:vh,ComponentView:Up,SeriesModel:Hp,ChartView:dy,registerComponentModel:function(t){vh.registerClass(t)},registerComponentView:function(t){Up.registerClass(t)},registerSeriesModel:function(t){Hp.registerClass(t)},registerChartView:function(t){dy.registerClass(t)},registerSubTypeDefaulter:function(t,e){vh.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){$r(t,e)}};function px(t){Object(v["isArray"])(t)?Object(v["each"])(t,(function(t){px(t)})):Object(v["indexOf"])(fx,t)>=0||(fx.push(t),Object(v["isFunction"])(t)&&(t={install:t}),t.install(dx))}function gx(t){return null==t?0:t.length||1}function vx(t){return t}var yx=function(){function t(t,e,n,r,i,o){this._old=t,this._new=e,this._oldKeyGetter=n||vx,this._newKeyGetter=r||vx,this.context=i,this._diffModeMultiple="multiple"===o}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},r=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,r,"_oldKeyGetter"),this._initIndexMap(e,n,i,"_newKeyGetter");for(var o=0;o<t.length;o++){var a=r[o],s=n[a],l=gx(s);if(l>1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},r={},i=[],o=[];this._initIndexMap(t,n,i,"_oldKeyGetter"),this._initIndexMap(e,r,o,"_newKeyGetter");for(var a=0;a<i.length;a++){var s=i[a],l=n[s],u=r[s],c=gx(l),h=gx(u);if(c>1&&1===h)this._updateManyToOne&&this._updateManyToOne(u,l),r[s]=null;else if(1===c&&h>1)this._updateOneToMany&&this._updateOneToMany(u,l),r[s]=null;else if(1===c&&1===h)this._update&&this._update(u,l),r[s]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(u,l),r[s]=null;else if(c>1)for(var f=0;f<c;f++)this._remove&&this._remove(l[f]);else this._remove&&this._remove(l)}this._performRestAdd(o,r)},t.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=e[r],o=gx(i);if(o>1)for(var a=0;a<o;a++)this._add&&this._add(i[a]);else 1===o&&this._add&&this._add(i);e[r]=null}},t.prototype._initIndexMap=function(t,e,n,r){for(var i=this._diffModeMultiple,o=0;o<t.length;o++){var a="_ec_"+this[r](t[o],o);if(i||(n[o]=a),e){var s=e[a],l=gx(s);0===l?(e[a]=o,i&&n.push(a)):1===l?e[a]=[s,o]:s.push(o)}}},t}(),mx=yx,bx=function(){function t(t,e){this._encode=t,this._schema=e}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}();function _x(t,e){var n={},r=n.encode={},i=Object(v["createHashMap"])(),o=[],a=[],s={};Object(v["each"])(t.dimensions,(function(e){var n=t.getDimensionInfo(e),l=n.coordDim;if(l){0;var u=n.coordDimIndex;xx(r,l)[u]=e,n.isExtraCoord||(i.set(l,1),Sx(n.type)&&(o[0]=e),xx(s,l)[u]=t.getDimensionIndex(n.name)),n.defaultTooltip&&a.push(e)}_h.each((function(t,e){var i=xx(r,e),o=n.otherDims[e];null!=o&&!1!==o&&(i[o]=n.name)}))}));var l=[],u={};i.each((function(t,e){var n=r[e];u[e]=n[0],l=l.concat(n)})),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=Object(v["map"])(l,(function(e){return t.getDimensionInfo(e).storeDimIndex})),n.encodeFirstDimNotExtra=u;var c=r.label;c&&c.length&&(o=c.slice());var h=r.tooltip;return h&&h.length?a=h.slice():a.length||(a=o.slice()),r.defaultedLabel=o,r.defaultedTooltip=a,n.userOutput=new bx(s,e),n}function xx(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function wx(t){return"category"===t?"ordinal":"time"===t?"time":"float"}function Sx(t){return!("ordinal"===t||"time"===t)}var Ox=function(){function t(t){this.otherDims={},null!=t&&v["extend"](this,t)}return t}(),Cx=Ox,kx=Yi(),Ax={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Mx=function(){function t(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=Ex(this.source)))},t.prototype.getSourceDimensionIndex=function(t){return Object(v["retrieve2"])(this._dimNameMap.get(t),-1)},t.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},t.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=ud(this.source),n=!Px(t),r="",i=[],o=0,a=0;o<t;o++){var s=void 0,l=void 0,u=void 0,c=this.dimensions[a];if(c&&c.storeDimIndex===o)s=e?c.name:null,l=c.type,u=c.ordinalMeta,a++;else{var h=this.getSourceDimension(o);h&&(s=e?h.name:null,l=h.type)}i.push({property:s,type:l,ordinalMeta:u}),!e||null==s||c&&c.isCalculationCoord||(r+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),r+="$",r+=Ax[l]||"f",u&&(r+=u.uid),r+="$"}var f=this.source,d=[f.seriesLayoutBy,f.startIndex,r].join("$$");return{dimensions:i,hash:d}},t.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var r=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===e)i.isCalculationCoord||(r=i.name),n++;else{var o=this.getSourceDimension(e);o&&(r=o.name)}t.push(r)}return t},t.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function Tx(t){return t instanceof Mx}function Ix(t){for(var e=Object(v["createHashMap"])(),n=0;n<(t||[]).length;n++){var r=t[n],i=Object(v["isObject"])(r)?r.name:r;null!=i&&null==e.get(i)&&e.set(i,n)}return e}function Ex(t){var e=kx(t);return e.dimNameMap||(e.dimNameMap=Ix(t.dimensionsDefine))}function Px(t){return t>30}var jx,Lx,Dx,Rx,Nx,Bx,Fx,zx=v["isObject"],Vx=v["map"],qx="undefined"===typeof Int32Array?Array:Int32Array,Gx="e\0\0",Hx=-1,Wx=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Ux=["_approximateExtent"],$x=function(){function t(t,e){var n;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var r=!1;Tx(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(r=!0,n=t),n=n||["x","y"];for(var i={},o=[],a={},s=!1,l={},u=0;u<n.length;u++){var c=n[u],h=v["isString"](c)?new Cx({name:c}):c instanceof Cx?c:new Cx(c),f=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=f,h.coordDimIndex=0);var d=h.otherDims=h.otherDims||{};o.push(f),i[f]=h,null!=l[f]&&(s=!0),h.createInvertedIndices&&(a[f]=[]),0===d.itemName&&(this._nameDimIdx=u),0===d.itemId&&(this._idDimIdx=u),r&&(h.storeDimIndex=u)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=e,this._invertedIndicesMap=a,this._dimOmitted){var p=this._dimIdxToName=v["createHashMap"]();v["each"](o,(function(t){p.set(i[t].storeDimIndex,t)}))}}return t.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(null==e)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var n=this._dimIdxToName.get(e);if(null!=n)return n;var r=this._schema.getSourceDimension(e);return r?r.name:void 0},t.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(null!=e)return e;if(null==t)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},t.prototype._recognizeDimIndex=function(t){if(v["isNumber"](t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},t.prototype._getStoreDimIndex=function(t){var e=this.getDimensionIndex(t);return e},t.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},t.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(t){return e.hasOwnProperty(t)?e[t]:void 0}:function(t){return e[t]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(t,e){var n=this._dimSummary;if(null==e)return n.encodeFirstDimNotExtra[t];var r=n.encode[t];return r?r[e]:null},t.prototype.mapDimensionsAll=function(t){var e=this._dimSummary,n=e.encode[t];return(n||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(t,e,n){var r,i=this;if(t instanceof op&&(r=t),!r){var o=this.dimensions,a=td(t)||v["isArrayLike"](t)?new cd(t,o.length):t;r=new op;var s=Vx(o,(function(t){return{type:i._dimInfos[t].type,property:t}}));r.initData(a,s,n)}this._store=r,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,r.count()),this._dimSummary=_x(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},t.prototype.appendValues=function(t,e){var n=this._store.appendValues(t,e.length),r=n.start,i=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var a=r;a<i;a++){var s=a-r;this._nameList[a]=e[s],o&&Fx(this,a)}},t.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var r=this._dimInfos[e[n]];r.ordinalMeta&&t.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==Ch&&!t.fillStorage},t.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store,r=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,a=r.getSource().sourceFormat,s=a===xh;if(s&&!r.pure)for(var l=[],u=t;u<e;u++){var c=r.getItem(u,l);if(!this.hasItemOption&&Ii(c)&&(this.hasItemOption=!0),c){var h=c.name;null==i[u]&&null!=h&&(i[u]=zi(h,null));var f=c.id;null==o[u]&&null!=f&&(o[u]=zi(f,null))}}if(this._shouldMakeIdFromName())for(u=t;u<e;u++)Fx(this,u);jx(this)}},t.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},t.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},t.prototype.setCalculationInfo=function(t,e){zx(t)?v["extend"](this._calculationInfo,t):this._calculationInfo[t]=e},t.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return null==n&&null!=this._nameDimIdx&&(n=Dx(this,this._nameDimIdx,e)),null==n&&(n=""),n},t.prototype._getCategory=function(t,e){var n=this._store.get(t,e),r=this._store.getOrdinalMeta(t);return r?r.categories[n]:n},t.prototype.getId=function(t){return Lx(this,this.getRawIndex(t))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(t,e){var n=this._store,r=this._dimInfos[t];if(r)return n.get(r.storeDimIndex,e)},t.prototype.getByRawIndex=function(t,e){var n=this._store,r=this._dimInfos[t];if(r)return n.getByRawIndex(r.storeDimIndex,e)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},t.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},t.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},t.prototype.getValues=function(t,e){var n=this,r=this._store;return v["isArray"](t)?r.getValues(Vx(t,(function(t){return n._getStoreDimIndex(t)})),e):r.getValues(t)},t.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,r=e.length;n<r;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},t.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;e++)if(this.getName(e)===t)return e;return-1},t.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},t.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},t.prototype.rawIndexOf=function(t,e){var n=t&&this._invertedIndicesMap[t];var r=n[e];return null==r||isNaN(r)?Hx:r},t.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},t.prototype.each=function(t,e,n){v["isFunction"](t)&&(n=e,e=t,t=[]);var r=n||this,i=Vx(Rx(t),this._getStoreDimIndex,this);this._store.each(i,r?v["bind"](e,r):e)},t.prototype.filterSelf=function(t,e,n){v["isFunction"](t)&&(n=e,e=t,t=[]);var r=n||this,i=Vx(Rx(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?v["bind"](e,r):e),this},t.prototype.selectRange=function(t){var e=this,n={},r=v["keys"](t),i=[];return v["each"](r,(function(r){var o=e._getStoreDimIndex(r);n[o]=t[r],i.push(o)})),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(t,e,n){v["isFunction"](t)&&(n=e,e=t,t=[]),n=n||this;var r=[];return this.each(t,(function(){r.push(e&&e.apply(this,arguments))}),n),r},t.prototype.map=function(t,e,n,r){var i=n||r||this,o=Vx(Rx(t),this._getStoreDimIndex,this),a=Bx(this);return a._store=this._store.map(o,i?v["bind"](e,i):e),a},t.prototype.modify=function(t,e,n,r){var i=n||r||this;var o=Vx(Rx(t),this._getStoreDimIndex,this);this._store.modify(o,i?v["bind"](e,i):e)},t.prototype.downSample=function(t,e,n,r){var i=Bx(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),e,n,r),i},t.prototype.lttbDownSample=function(t,e){var n=Bx(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},t.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},t.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new Wu(n,e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new mx(t?t.getStore().getIndices():[],this.getStore().getIndices(),(function(e){return Lx(t,e)}),(function(t){return Lx(e,t)}))},t.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},t.prototype.setVisual=function(t,e){this._visual=this._visual||{},zx(t)?v["extend"](this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],r=n&&n[e];return null==r?this.getVisual(e):r},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,r=n[t];r||(r=n[t]={});var i=r[e];return null==i&&(i=this.getVisual(e),v["isArray"](i)?i=i.slice():zx(i)&&(i=v["extend"]({},i)),r[e]=i),i},t.prototype.setItemVisual=function(t,e,n){var r=this._itemVisuals[t]||{};this._itemVisuals[t]=r,zx(e)?v["extend"](r,e):r[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){zx(t)?v["extend"](this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?v["extend"](this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;Hs(n,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){v["each"](this._graphicEls,(function(n,r){n&&t&&t.call(e,n,r)}))},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:Vx(this.dimensions,this._getDimInfo,this),this.hostModel)),Nx(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];v["isFunction"](n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(v["slice"](arguments)))})},t.internalField=function(){jx=function(t){var e=t._invertedIndicesMap;v["each"](e,(function(n,r){var i=t._dimInfos[r],o=i.ordinalMeta,a=t._store;if(o){n=e[r]=new qx(o.categories.length);for(var s=0;s<n.length;s++)n[s]=Hx;for(s=0;s<a.count();s++)n[a.get(i.storeDimIndex,s)]=s}}))},Dx=function(t,e,n){return zi(t._getCategory(e,n),null)},Lx=function(t,e){var n=t._idList[e];return null==n&&null!=t._idDimIdx&&(n=Dx(t,t._idDimIdx,e)),null==n&&(n=Gx+e),n},Rx=function(t){return v["isArray"](t)||(t=null!=t?[t]:[]),t},Bx=function(e){var n=new t(e._schema?e._schema:Vx(e.dimensions,e._getDimInfo,e),e.hostModel);return Nx(n,e),n},Nx=function(t,e){v["each"](Wx.concat(e.__wrappedMethods||[]),(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t.__wrappedMethods=e.__wrappedMethods,v["each"](Ux,(function(n){t[n]=v["clone"](e[n])})),t._calculationInfo=v["extend"]({},e._calculationInfo)},Fx=function(t,e){var n=t._nameList,r=t._idList,i=t._nameDimIdx,o=t._idDimIdx,a=n[e],s=r[e];if(null==a&&null!=i&&(n[e]=a=Dx(t,i,e)),null==s&&null!=o&&(r[e]=s=Dx(t,o,e)),null==s&&null!=a){var l=t._nameRepeatCount,u=l[a]=(l[a]||0)+1;s=a,u>1&&(s+="__ec__"+u),r[e]=s}}}(),t}(),Yx=$x;function Xx(t,e){return Kx(t,e).dimensions}function Kx(t,e){td(t)||(t=nd(t)),e=e||{};var n=e.coordDimensions||[],r=e.dimensionsDefine||t.dimensionsDefine||[],i=Object(v["createHashMap"])(),o=[],a=Qx(t,n,r,e.dimensionsCount),s=e.canOmitUnusedDimensions&&Px(a),l=r===t.dimensionsDefine,u=l?Ex(t):Ix(r),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(t,a));for(var h=Object(v["createHashMap"])(c),f=new Zd(a),d=0;d<f.length;d++)f[d]=-1;function p(t){var e=f[t];if(e<0){var n=r[t],i=Object(v["isObject"])(n)?n:{name:n},a=new Cx,s=i.name;null!=s&&null!=u.get(s)&&(a.name=a.displayName=s),null!=i.type&&(a.type=i.type),null!=i.displayName&&(a.displayName=i.displayName);var l=o.length;return f[t]=l,a.storeDimIndex=t,o.push(a),a}return o[e]}if(!s)for(d=0;d<a;d++)p(d);h.each((function(t,e){var n=ki(t).slice();if(1===n.length&&!Object(v["isString"])(n[0])&&n[0]<0)h.set(e,!1);else{var r=h.set(e,[]);Object(v["each"])(n,(function(t,n){var i=Object(v["isString"])(t)?u.get(t):t;null!=i&&i<a&&(r[n]=i,y(p(i),e,n))}))}}));var g=0;function y(t,e,n){null!=_h.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,i.set(e,!0))}Object(v["each"])(n,(function(t){var e,n,r,i;if(Object(v["isString"])(t))e=t,i={};else{i=t,e=i.name;var o=i.ordinalMeta;i.ordinalMeta=null,i=Object(v["extend"])({},i),i.ordinalMeta=o,n=i.dimsDef,r=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var s=h.get(e);if(!1!==s){if(s=ki(s),!s.length)for(var u=0;u<(n&&n.length||1);u++){while(g<a&&null!=p(g).coordDim)g++;g<a&&s.push(g++)}Object(v["each"])(s,(function(t,o){var a=p(t);if(l&&null!=i.type&&(a.type=i.type),y(Object(v["defaults"])(a,i),e,o),null==a.name&&n){var s=n[o];!Object(v["isObject"])(s)&&(s={name:s}),a.name=a.displayName=s.name,a.defaultTooltip=s.defaultTooltip}r&&Object(v["defaults"])(a.otherDims,r)}))}}));var m=e.generateCoord,b=e.generateCoordCount,_=null!=b;b=m?b||1:0;var x=m||"value";function w(t){null==t.name&&(t.name=t.coordDim)}if(s)Object(v["each"])(o,(function(t){w(t)})),o.sort((function(t,e){return t.storeDimIndex-e.storeDimIndex}));else for(var S=0;S<a;S++){var O=p(S),C=O.coordDim;null==C&&(O.coordDim=Jx(x,i,_),O.coordDimIndex=0,(!m||b<=0)&&(O.isExtraCoord=!0),b--),w(O),null!=O.type||Rh(t,S)!==Th.Must&&(!O.isExtraCoord||null==O.otherDims.itemName&&null==O.otherDims.seriesName)||(O.type="ordinal")}return Zx(o),new Mx({source:t,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function Zx(t){for(var e=Object(v["createHashMap"])(),n=0;n<t.length;n++){var r=t[n],i=r.name,o=e.get(i)||0;o>0&&(r.name=i+(o-1)),o++,e.set(i,o)}}function Qx(t,e,n,r){var i=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,r||0);return Object(v["each"])(e,(function(t){var e;Object(v["isObject"])(t)&&(e=t.dimsDef)&&(i=Math.max(i,e.length))})),i}function Jx(t,e,n){var r=e.data;if(n||r.hasOwnProperty(t)){var i=0;while(r.hasOwnProperty(t+i))i++;t+=i}return e.set(t,!0),t}var tw=function(){function t(t){this.coordSysDims=[],this.axisMap=Object(v["createHashMap"])(),this.categoryAxisMap=Object(v["createHashMap"])(),this.coordSysName=t}return t}();function ew(t){var e=t.get("coordinateSystem"),n=new tw(e),r=nw[e];if(r)return r(t,n,n.axisMap,n.categoryAxisMap),n}var nw={cartesian2d:function(t,e,n,r){var i=t.getReferringComponents("xAxis",Qi).models[0],o=t.getReferringComponents("yAxis",Qi).models[0];e.coordSysDims=["x","y"],n.set("x",i),n.set("y",o),rw(i)&&(r.set("x",i),e.firstCategoryDimIndex=0),rw(o)&&(r.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,r){var i=t.getReferringComponents("singleAxis",Qi).models[0];e.coordSysDims=["single"],n.set("single",i),rw(i)&&(r.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,n,r){var i=t.getReferringComponents("polar",Qi).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),rw(o)&&(r.set("radius",o),e.firstCategoryDimIndex=0),rw(a)&&(r.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,r){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,r){var i=t.ecModel,o=i.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();Object(v["each"])(o.parallelAxisIndex,(function(t,o){var s=i.getComponent("parallelAxis",t),l=a[o];n.set(l,s),rw(s)&&(r.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))}))}};function rw(t){return"category"===t.get("type")}function iw(t,e,n){n=n||{};var r,i,o,a=n.byIndex,s=n.stackedCoordDimension;ow(e)?r=e:(i=e.schema,r=i.dimensions,o=e.store);var l,u,c,h,f=!(!t||!t.get("stack"));if(Object(v["each"])(r,(function(t,e){Object(v["isString"])(t)&&(r[e]=t={name:t}),f&&!t.isExtraCoord&&(a||l||!t.ordinalMeta||(l=t),u||"ordinal"===t.type||"time"===t.type||s&&s!==t.coordDim||(u=t))})),!u||a||l||(a=!0),u){c="__\0ecstackresult_"+t.id,h="__\0ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var d=u.coordDim,p=u.type,g=0;Object(v["each"])(r,(function(t){t.coordDim===d&&g++}));var y={name:c,coordDim:d,coordDimIndex:g,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length},m={name:h,coordDim:h,coordDimIndex:g+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length+1};i?(o&&(y.storeDimIndex=o.ensureCalculationDimension(h,p),m.storeDimIndex=o.ensureCalculationDimension(c,p)),i.appendCalculationDimension(y),i.appendCalculationDimension(m)):(r.push(y),r.push(m))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:h,stackResultDimension:c}}function ow(t){return!Tx(t.schema)}function aw(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function sw(t,e){return aw(t,e)?t.getCalculationInfo("stackResultDimension"):e}function lw(t,e){var n,r=t.get("coordinateSystem"),i=pf.get(r);return e&&e.coordSysDims&&(n=v["map"](e.coordSysDims,(function(t){var n={name:t},r=e.axisMap.get(t);if(r){var i=r.get("type");n.type=wx(i)}return n}))),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}function uw(t,e,n){var r,i;return n&&v["each"](t,(function(t,o){var a=t.coordDim,s=n.categoryAxisMap.get(a);s&&(null==r&&(r=o),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(i=!0)})),i||null==r||(t[r].otherDims.itemName=0),r}function cw(t,e,n){n=n||{};var r,i=e.getSourceManager(),o=!1;t?(o=!0,r=nd(t)):(r=i.getSource(),o=r.sourceFormat===xh);var a=ew(e),s=lw(e,a),l=n.useEncodeDefaulter,u=v["isFunction"](l)?l:l?v["curry"](Ph,s,e):null,c={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o},h=Kx(r,c),f=uw(h.dimensions,n.createInvertedIndices,a),d=o?null:i.getSharedDataStore(h),p=iw(e,{schema:h,store:d}),g=new Yx(h,e);g.setCalculationInfo(p);var y=null!=f&&hw(r)?function(t,e,n,r){return r===f?n:this.defaultDimValueGetter(t,e,n,r)}:null;return g.hasItemOption=!1,g.initData(o?r:d,null,y),g}function hw(t){if(t.sourceFormat===xh){var e=fw(t.data||[]);return!v["isArray"](Ti(e))}}function fw(t){var e=0;while(e<t.length&&null==t[e])e++;return t[e]}var dw=cw,pw=function(){function t(t){this._setting=t||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(t){return this._setting[t]},t.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();_o(pw);var gw=pw,vw=0,yw=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++vw}return t.createByAxisModel=function(e){var n=e.option,r=n.data,i=r&&Object(v["map"])(r,mw);return new t({categories:i,needCollect:!i,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!Object(v["isString"])(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var r=this._getOrCreateMap();return e=r.get(t),null==e&&(n?(e=this.categories.length,this.categories[e]=t,r.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=Object(v["createHashMap"])(this.categories))},t}();function mw(t){return Object(v["isObject"])(t)&&null!=t.value?t.value:t+""}var bw=yw;function _w(t){return"interval"===t.type||"log"===t.type}function xw(t,e,n,r){var i={},o=t[1]-t[0],a=i.interval=gi(o/e,!0);null!=n&&a<n&&(a=i.interval=n),null!=r&&a>r&&(a=i.interval=r);var s=i.intervalPrecision=Sw(a),l=i.niceTickExtent=[ti(Math.ceil(t[0]/a)*a,s),ti(Math.floor(t[1]/a)*a,s)];return Cw(l,t),i}function ww(t){var e=Math.pow(10,pi(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,ti(n*e)}function Sw(t){return ni(t)+2}function Ow(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function Cw(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),Ow(t,0,e),Ow(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function kw(t,e){return t>=e[0]&&t<=e[1]}function Aw(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function Mw(t,e){return t*(e[1]-e[0])+e[0]}var Tw=function(t){function e(e){var n=t.call(this,e)||this;n.type="ordinal";var r=n.getSetting("ordinalMeta");return r||(r=new bw({})),Object(v["isArray"])(r)&&(r=new bw({categories:Object(v["map"])(r,(function(t){return Object(v["isObject"])(t)?t.value:t}))})),n._ordinalMeta=r,n._extent=n.getSetting("extent")||[0,r.categories.length-1],n}return p(e,t),e.prototype.parse=function(t){return null==t?NaN:Object(v["isString"])(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),kw(t,this._extent)&&null!=this._ordinalMeta.categories[t]},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),Aw(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(Mw(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){var t=[],e=this._extent,n=e[0];while(n<=e[1])t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);i<a;++i){var s=e[i];n[i]=s,r[s]=i}for(var l=0;i<o;++i){while(null!=r[l])l++;n.push(l),r[l]=i}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},e.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var e=this.getRawOrdinalNumber(t.value),n=this._ordinalMeta.categories[e];return null==n?"":n+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(gw);gw.registerClass(Tw);var Iw=Tw,Ew=ti,Pw=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return p(e,t),e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return kw(t,this._extent)},e.prototype.normalize=function(t){return Aw(t,this._extent)},e.prototype.scale=function(t){return Mw(t,this._extent)},e.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},e.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=Sw(t)},e.prototype.getTicks=function(t){var e=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,o=[];if(!e)return o;var a=1e4;n[0]<r[0]&&(t?o.push({value:Ew(r[0]-e,i)}):o.push({value:n[0]}));var s=r[0];while(s<=r[1]){if(o.push({value:s}),s=Ew(s+e,i),s===o[o.length-1].value)break;if(o.length>a)return[]}var l=o.length?o[o.length-1].value:r[1];return n[1]>l&&(t?o.push({value:Ew(l+e,i)}):o.push({value:n[1]})),o},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],r=this.getExtent(),i=1;i<e.length;i++){var o=e[i],a=e[i-1],s=0,l=[],u=o.value-a.value,c=u/t;while(s<t-1){var h=Ew(a.value+(s+1)*c);h>r[0]&&h<r[1]&&l.push(h),s++}n.push(l)}return n},e.prototype.getLabel=function(t,e){if(null==t)return"";var n=e&&e.precision;null==n?n=ni(t.value)||0:"auto"===n&&(n=this._intervalPrecision);var r=Ew(t.value,n,!0);return Vc(r)},e.prototype.calcNiceTicks=function(t,e,n){t=t||5;var r=this._extent,i=r[1]-r[0];if(isFinite(i)){i<0&&(i=-i,r.reverse());var o=xw(r,t,e,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var n=Math.abs(e[0]);t.fixMax||(e[1]+=n/2),e[0]-=n/2}else e[1]=1;var r=e[1]-e[0];isFinite(r)||(e[0]=0,e[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var i=this._interval;t.fixMin||(e[0]=Ew(Math.floor(e[0]/i)*i)),t.fixMax||(e[1]=Ew(Math.ceil(e[1]/i)*i))},e.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},e.type="interval",e}(gw);gw.registerClass(Pw);var jw=Pw,Lw="undefined"!==typeof Float32Array,Dw=Lw?Float32Array:Array;function Rw(t){return Object(v["isArray"])(t)?Lw?new Float32Array(t):t:new Dw(t)}var Nw="__ec_stack_";function Bw(t){return t.get("stack")||Nw+t.seriesIndex}function Fw(t){return t.dim+t.index}function zw(t){var e=[],n=t.axis,r="axis0";if("category"===n.type){for(var i=n.getBandWidth(),o=0;o<t.count;o++)e.push(Object(v["defaults"])({bandWidth:i,axisKey:r,stackId:Nw+o},t));var a=Hw(e),s=[];for(o=0;o<t.count;o++){var l=a[r][Nw+o];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function Vw(t,e){var n=[];return e.eachSeriesByType(t,(function(t){Yw(t)&&n.push(t)})),n}function qw(t){var e={};Object(v["each"])(t,(function(t){var n=t.coordinateSystem,r=n.getBaseAxis();if("time"===r.type||"value"===r.type)for(var i=t.getData(),o=r.dim+"_"+r.index,a=i.getDimensionIndex(i.mapDimension(r.dim)),s=i.getStore(),l=0,u=s.count();l<u;++l){var c=s.get(a,l);e[o]?e[o].push(c):e[o]=[c]}}));var n={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r];if(i){i.sort((function(t,e){return t-e}));for(var o=null,a=1;a<i.length;++a){var s=i[a]-i[a-1];s>0&&(o=null===o?s:Math.min(o,s))}n[r]=o}}return n}function Gw(t){var e=qw(t),n=[];return Object(v["each"])(t,(function(t){var r,i=t.coordinateSystem,o=i.getBaseAxis(),a=o.getExtent();if("category"===o.type)r=o.getBandWidth();else if("value"===o.type||"time"===o.type){var s=o.dim+"_"+o.index,l=e[s],u=Math.abs(a[1]-a[0]),c=o.scale.getExtent(),h=Math.abs(c[1]-c[0]);r=l?u/h*l:u}else{var f=t.getData();r=Math.abs(a[1]-a[0])/f.count()}var d=Jr(t.get("barWidth"),r),p=Jr(t.get("barMaxWidth"),r),g=Jr(t.get("barMinWidth")||(Xw(t)?.5:1),r),v=t.get("barGap"),y=t.get("barCategoryGap");n.push({bandWidth:r,barWidth:d,barMaxWidth:p,barMinWidth:g,barGap:v,barCategoryGap:y,axisKey:Fw(o),stackId:Bw(t)})})),Hw(n)}function Hw(t){var e={};Object(v["each"])(t,(function(t,n){var r=t.axisKey,i=t.bandWidth,o=e[r]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;e[r]=o;var s=t.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=t.barMaxWidth;u&&(a[s].maxWidth=u);var c=t.barMinWidth;c&&(a[s].minWidth=c);var h=t.barGap;null!=h&&(o.gap=h);var f=t.barCategoryGap;null!=f&&(o.categoryGap=f)}));var n={};return Object(v["each"])(e,(function(t,e){n[e]={};var r=t.stacks,i=t.bandWidth,o=t.categoryGap;if(null==o){var a=Object(v["keys"])(r).length;o=Math.max(35-4*a,15)+"%"}var s=Jr(o,i),l=Jr(t.gap,1),u=t.remainedWidth,c=t.autoWidthCount,h=(u-s)/(c+(c-1)*l);h=Math.max(h,0),Object(v["each"])(r,(function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){r=t.width;e&&(r=Math.min(r,e)),n&&(r=Math.max(r,n)),t.width=r,u-=r+l*r,c--}else{var r=h;e&&e<r&&(r=Math.min(e,u)),n&&n>r&&(r=n),r!==h&&(t.width=r,u-=r+l*r,c--)}})),h=(u-s)/(c+(c-1)*l),h=Math.max(h,0);var f,d=0;Object(v["each"])(r,(function(t,e){t.width||(t.width=h),f=t,d+=t.width*(1+l)})),f&&(d-=f.width*l);var p=-d/2;Object(v["each"])(r,(function(t,r){n[e][r]=n[e][r]||{bandWidth:i,offset:p,width:t.width},p+=t.width*(1+l)}))})),n}function Ww(t,e,n){if(t&&e){var r=t[Fw(e)];return null!=r&&null!=n?r[Bw(n)]:r}}function Uw(t,e){var n=Vw(t,e),r=Gw(n);Object(v["each"])(n,(function(t){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),o=Bw(t),a=r[Fw(i)][o],s=a.offset,l=a.width;e.setLayout({bandWidth:a.bandWidth,offset:s,size:l})}))}function $w(t){return{seriesType:t,plan:$p(),reset:function(t){if(Yw(t)){var e=t.getData(),n=t.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),o=e.getDimensionIndex(e.mapDimension(i.dim)),a=e.getDimensionIndex(e.mapDimension(r.dim)),s=t.get("showBackground",!0),l=e.mapDimension(i.dim),u=e.getCalculationInfo("stackResultDimension"),c=aw(e,l)&&!!e.getCalculationInfo("stackedOnSeries"),h=i.isHorizontal(),f=Kw(r,i),d=Xw(t),p=t.get("barMinHeight")||0,g=u&&e.getDimensionIndex(u),v=e.getLayout("size"),y=e.getLayout("offset");return{progress:function(t,e){var r,i=t.count,l=d&&Rw(3*i),u=d&&s&&Rw(3*i),m=d&&Rw(i),b=n.master.getRect(),_=h?b.width:b.height,x=e.getStore(),w=0;while(null!=(r=t.next())){var S=x.get(c?g:o,r),O=x.get(a,r),C=f,k=void 0;c&&(k=+S-x.get(o,r));var A=void 0,M=void 0,T=void 0,I=void 0;if(h){var E=n.dataToPoint([S,O]);if(c){var P=n.dataToPoint([k,O]);C=P[0]}A=C,M=E[1]+y,T=E[0]-C,I=v,Math.abs(T)<p&&(T=(T<0?-1:1)*p)}else{E=n.dataToPoint([O,S]);if(c){P=n.dataToPoint([O,k]);C=P[1]}A=E[0]+y,M=C,T=v,I=E[1]-C,Math.abs(I)<p&&(I=(I<=0?-1:1)*p)}d?(l[w]=A,l[w+1]=M,l[w+2]=h?T:I,u&&(u[w]=h?b.x:A,u[w+1]=h?M:b.y,u[w+2]=_),m[r]=r):e.setItemLayout(r,{x:A,y:M,width:T,height:I}),w+=3}d&&e.setLayout({largePoints:l,largeDataIndices:m,largeBackgroundPoints:u,valueAxisHorizontal:h})}}}}}}function Yw(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function Xw(t){return t.pipelineContext&&t.pipelineContext.large}function Kw(t,e){return e.toGlobalCoord(e.dataToCoord("log"===e.type?1:0))}var Zw=function(t,e,n,r){while(n<r){var i=n+r>>>1;t[i][1]<e?n=i+1:r=i}return n},Qw=function(t){function e(e){var n=t.call(this,e)||this;return n.type="time",n}return p(e,t),e.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return Sc(t.value,vc[wc(_c(this._minLevelUnit))]||vc.second,e,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,e,n){var r=this.getSetting("useUTC"),i=this.getSetting("locale");return Oc(t,e,n,i,r)},e.prototype.getTicks=function(){var t=this._interval,e=this._extent,n=[];if(!t)return n;n.push({value:e[0],level:0});var r=this.getSetting("useUTC"),i=sS(this._minLevelUnit,this._approxInterval,r,e);return n=n.concat(i),n.push({value:e[1],level:0}),n},e.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1]&&(e[0]-=fc,e[1]+=fc),e[1]===-1/0&&e[0]===1/0){var n=new Date;e[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),e[0]=e[1]-fc}this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,e,n){t=t||10;var r=this._extent,i=r[1]-r[0];this._approxInterval=i/t,null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var o=Jw.length,a=Math.min(Zw(Jw,this._approxInterval,0,o),o-1);this._interval=Jw[a][1],this._minLevelUnit=Jw[Math.max(a-1,0)][0]},e.prototype.parse=function(t){return Object(v["isNumber"])(t)?t:+fi(t)},e.prototype.contain=function(t){return kw(this.parse(t),this._extent)},e.prototype.normalize=function(t){return Aw(this.parse(t),this._extent)},e.prototype.scale=function(t){return Mw(t,this._extent)},e.type="time",e}(jw),Jw=[["second",uc],["minute",cc],["hour",hc],["quarter-day",6*hc],["half-day",12*hc],["day",1.2*fc],["half-week",3.5*fc],["week",7*fc],["month",31*fc],["quarter",95*fc],["half-year",dc/2],["year",dc]];function tS(t,e,n,r){var i=fi(e),o=fi(n),a=function(t){return kc(i,t,r)===kc(o,t,r)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},c=function(){return u()&&a("hour")},h=function(){return c()&&a("minute")},f=function(){return h()&&a("second")},d=function(){return f()&&a("millisecond")};switch(t){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return h();case"second":return f();case"millisecond":return d()}}function eS(t,e){return t/=fc,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function nS(t){var e=30*fc;return t/=e,t>6?6:t>3?3:t>2?2:1}function rS(t){return t/=hc,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function iS(t,e){return t/=e?cc:uc,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function oS(t){return gi(t,!0)}function aS(t,e,n){var r=new Date(t);switch(_c(e)){case"year":case"month":r[Dc(n)](0);case"day":r[Rc(n)](1);case"hour":r[Nc(n)](0);case"minute":r[Bc(n)](0);case"second":r[Fc(n)](0),r[zc(n)](0)}return r.getTime()}function sS(t,e,n,r){var i=1e4,o=mc,a=0;function s(t,e,n,i,o,a,s){var l=new Date(e),u=e,c=l[i]();while(u<n&&u<=r[1])s.push({value:u}),c+=t,l[o](c),u=l.getTime();s.push({value:u,notAdd:!0})}function l(t,i,o){var a=[],l=!i.length;if(!tS(_c(t),r[0],r[1],n)){l&&(i=[{value:aS(new Date(r[0]),t,n)},{value:r[1]}]);for(var u=0;u<i.length-1;u++){var c=i[u].value,h=i[u+1].value;if(c!==h){var f=void 0,d=void 0,p=void 0,g=!1;switch(t){case"year":f=Math.max(1,Math.round(e/fc/365)),d=Ac(n),p=Lc(n);break;case"half-year":case"quarter":case"month":f=nS(e),d=Mc(n),p=Dc(n);break;case"week":case"half-week":case"day":f=eS(e,31),d=Tc(n),p=Rc(n),g=!0;break;case"half-day":case"quarter-day":case"hour":f=rS(e),d=Ic(n),p=Nc(n);break;case"minute":f=iS(e,!0),d=Ec(n),p=Bc(n);break;case"second":f=iS(e,!1),d=Pc(n),p=Fc(n);break;case"millisecond":f=oS(e),d=jc(n),p=zc(n);break}s(f,c,h,d,p,g,a),"year"===t&&o.length>1&&0===u&&o.unshift({value:o[0].value-f})}}for(u=0;u<a.length;u++)o.push(a[u]);return a}}for(var u=[],c=[],h=0,f=0,d=0;d<o.length&&a++<i;++d){var p=_c(o[d]);if(xc(o[d])){l(o[d],u[u.length-1]||[],c);var g=o[d+1]?_c(o[d+1]):null;if(p!==g){if(c.length){f=h,c.sort((function(t,e){return t.value-e.value}));for(var y=[],m=0;m<c.length;++m){var b=c[m].value;0!==m&&c[m-1].value===b||(y.push(c[m]),b>=r[0]&&b<=r[1]&&h++)}var _=(r[1]-r[0])/e;if(h>1.5*_&&f>_/1.5)break;if(u.push(y),h>_||t===o[d])break}c=[]}}}var x=Object(v["filter"])(Object(v["map"])(u,(function(t){return Object(v["filter"])(t,(function(t){return t.value>=r[0]&&t.value<=r[1]&&!t.notAdd}))})),(function(t){return t.length>0})),w=[],S=x.length-1;for(d=0;d<x.length;++d)for(var O=x[d],C=0;C<O.length;++C)w.push({value:O[C].value,level:S-d});w.sort((function(t,e){return t.value-e.value}));var k=[];for(d=0;d<w.length;++d)0!==d&&w[d].value===w[d-1].value||k.push(w[d]);return k}gw.registerClass(Qw);var lS=Qw,uS=gw.prototype,cS=jw.prototype,hS=ti,fS=Math.floor,dS=Math.ceil,pS=Math.pow,gS=Math.log,vS=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new jw,e._interval=0,e}return p(e,t),e.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,r=e.getExtent(),i=cS.getTicks.call(this,t);return v["map"](i,(function(t){var e=t.value,i=ti(pS(this.base,e));return i=e===n[0]&&this._fixMin?mS(i,r[0]):i,i=e===n[1]&&this._fixMax?mS(i,r[1]):i,{value:i}}),this)},e.prototype.setExtent=function(t,e){var n=gS(this.base);t=gS(Math.max(0,t))/n,e=gS(Math.max(0,e))/n,cS.setExtent.call(this,t,e)},e.prototype.getExtent=function(){var t=this.base,e=uS.getExtent.call(this);e[0]=pS(t,e[0]),e[1]=pS(t,e[1]);var n=this._originalScale,r=n.getExtent();return this._fixMin&&(e[0]=mS(e[0],r[0])),this._fixMax&&(e[1]=mS(e[1],r[1])),e},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=gS(t[0])/gS(e),t[1]=gS(t[1])/gS(e),uS.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(n===1/0||n<=0)){var r=di(n),i=t/n*r;i<=.5&&(r*=10);while(!isNaN(r)&&Math.abs(r)<1&&Math.abs(r)>0)r*=10;var o=[ti(dS(e[0]/r)*r),ti(fS(e[1]/r)*r)];this._interval=r,this._niceExtent=o}},e.prototype.calcNiceExtent=function(t){cS.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=gS(t)/gS(this.base),kw(t,this._extent)},e.prototype.normalize=function(t){return t=gS(t)/gS(this.base),Aw(t,this._extent)},e.prototype.scale=function(t){return t=Mw(t,this._extent),pS(this.base,t)},e.type="log",e}(gw),yS=vS.prototype;function mS(t,e){return hS(t,ni(e))}yS.getMinorTicks=cS.getMinorTicks,yS.getLabel=cS.getLabel,gw.registerClass(vS);var bS=vS,_S=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var r=this._isOrdinal="ordinal"===t.type;this._needCrossZero="interval"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero();var i=this._modelMinRaw=e.get("min",!0);Object(v["isFunction"])(i)?this._modelMinNum=OS(t,i({min:n[0],max:n[1]})):"dataMin"!==i&&(this._modelMinNum=OS(t,i));var o=this._modelMaxRaw=e.get("max",!0);if(Object(v["isFunction"])(o)?this._modelMaxNum=OS(t,o({min:n[0],max:n[1]})):"dataMax"!==o&&(this._modelMaxNum=OS(t,o)),r)this._axisDataLen=e.getCategories().length;else{var a=e.get("boundaryGap"),s=Object(v["isArray"])(a)?a:[a||0,a||0];"boolean"===typeof s[0]||"boolean"===typeof s[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[_r(s[0],1),_r(s[1],1)]}},t.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,r=this._axisDataLen,i=this._boundaryGapInner,o=t?null:n-e||Math.abs(e),a="dataMin"===this._modelMinRaw?e:this._modelMinNum,s="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,l=null!=a,u=null!=s;null==a&&(a=t?r?0:NaN:e-i[0]*o),null==s&&(s=t?r?r-1:NaN:n+i[1]*o),(null==a||!isFinite(a))&&(a=NaN),(null==s||!isFinite(s))&&(s=NaN);var c=Object(v["eqNaN"])(a)||Object(v["eqNaN"])(s)||t&&!r;this._needCrossZero&&(a>0&&s>0&&!l&&(a=0),a<0&&s<0&&!u&&(s=0));var h=this._determinedMin,f=this._determinedMax;return null!=h&&(a=h,l=!0),null!=f&&(s=f,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:c}},t.prototype.modifyDataMinMax=function(t,e){this[wS[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){var n=xS[t];this[n]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),xS={min:"_determinedMin",max:"_determinedMax"},wS={min:"_dataMin",max:"_dataMax"};function SS(t,e,n){var r=t.rawExtentInfo;return r||(r=new _S(t,e,n),t.rawExtentInfo=r,r)}function OS(t,e){return null==e?null:Object(v["eqNaN"])(e)?NaN:t.parse(e)}function CS(t,e){var n=t.type,r=SS(t,e,t.getExtent()).calculate();t.setBlank(r.isBlank);var i=r.min,o=r.max,a=e.ecModel;if(a&&"time"===n){var s=Vw("bar",a),l=!1;if(v["each"](s,(function(t){l=l||t.getBaseAxis()===e.axis})),l){var u=Gw(s),c=kS(i,o,e,u);i=c.min,o=c.max}}return{extent:[i,o],fixMin:r.minFixed,fixMax:r.maxFixed}}function kS(t,e,n,r){var i=n.axis.getExtent(),o=i[1]-i[0],a=Ww(r,n.axis);if(void 0===a)return{min:t,max:e};var s=1/0;v["each"](a,(function(t){s=Math.min(t.offset,s)}));var l=-1/0;v["each"](a,(function(t){l=Math.max(t.offset+t.width,l)})),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-t,h=1-(s+l)/o,f=c/h-c;return e+=f*(l/u),t-=f*(s/u),{min:t,max:e}}function AS(t,e){var n=e,r=CS(t,n),i=r.extent,o=n.get("splitNumber");t instanceof bS&&(t.base=n.get("logBase"));var a=t.type,s=n.get("interval"),l="interval"===a||"time"===a;t.setExtent(i[0],i[1]),t.calcNiceExtent({splitNumber:o,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&t.setInterval&&t.setInterval(s)}function MS(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new Iw({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new lS({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(gw.getClass(e)||jw)}}function TS(t){var e=t.scale.getExtent(),n=e[0],r=e[1];return!(n>0&&r>0||n<0&&r<0)}function IS(t){var e=t.getLabelModel().get("formatter"),n="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?function(e){return function(n,r){return t.scale.getFormattedLabel(n,r,e)}}(e):v["isString"](e)?function(e){return function(n){var r=t.scale.getLabel(n),i=e.replace("{value}",null!=r?r:"");return i}}(e):v["isFunction"](e)?function(e){return function(r,i){return null!=n&&(i=r.value-n),e(ES(t,r),i,null!=r.level?{level:r.level}:null)}}(e):function(e){return t.scale.getLabel(e)}}function ES(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function PS(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var r,i,o=n.getExtent();n instanceof Iw?i=n.count():(r=n.getTicks(),i=r.length);var a,s=t.getLabelModel(),l=IS(t),u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;c<i;c+=u){var h=r?r[c]:{value:o[0]+c},f=l(h,c),d=s.getTextRect(f),p=jS(d,s.get("rotate")||0);a?a.union(p):a=p}return a}}function jS(t,e){var n=e*Math.PI/180,r=t.width,i=t.height,o=r*Math.abs(Math.cos(n))+Math.abs(i*Math.sin(n)),a=r*Math.abs(Math.sin(n))+Math.abs(i*Math.cos(n)),s=new qt(t.x,t.y,o,a);return s}function LS(t){var e=t.get("interval");return null==e?"auto":e}function DS(t){return"category"===t.type&&0===LS(t.getLabelModel())}function RS(t,e){var n={};return v["each"](t.mapDimensionsAll(e),(function(e){n[sw(t,e)]=!0})),v["keys"](n)}function NS(t,e,n){e&&v["each"](RS(e,n),(function(n){var r=e.getApproximateExtent(n);r[0]<t[0]&&(t[0]=r[0]),r[1]>t[1]&&(t[1]=r[1])}))}var BS=function(){function t(){}return t.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},t.prototype.getCoordSysModel=function(){},t}();function FS(t){return dw(null,t)}var zS={isDimensionStacked:aw,enableDataStack:iw,getStackedDimension:sw};function VS(t,e){var n=e;e instanceof Wu||(n=new Wu(e));var r=MS(n);return r.setExtent(t[0],t[1]),AS(r,n),r}function qS(t){v["mixin"](t,BS)}function GS(t,e){return e=e||{},xu(t,null,null,"normal"!==e.state)}var HS=1e-8;function WS(t,e){return Math.abs(t-e)<HS}function US(t,e,n){var r=0,i=t[0];if(!i)return!1;for(var o=1;o<t.length;o++){var a=t[o];r+=Ga(i[0],i[1],a[0],a[1],e,n),i=a}var s=t[0];return WS(i[0],s[0])&&WS(i[1],s[1])||(r+=Ga(i[0],i[1],s[0],s[1],e,n)),0!==r}var $S=[];function YS(t,e){for(var n=0;n<t.length;n++)F(t[n],t[n],e)}function XS(t,e,n,r){for(var i=0;i<t.length;i++){var o=t[i];r&&(o=r.project(o)),o&&isFinite(o[0])&&isFinite(o[1])&&(z(e,e,o),V(n,n,o))}}function KS(t){for(var e=0,n=0,r=0,i=t.length,o=t[i-1][0],a=t[i-1][1],s=0;s<i;s++){var l=t[s][0],u=t[s][1],c=o*u-l*a;e+=c,n+=(o+l)*c,r+=(a+u)*c,o=l,a=u}return e?[n/e/3,r/e/3,e]:[t[0][0]||0,t[0][1]||0]}var ZS=function(){function t(t){this.name=t}return t.prototype.setCenter=function(t){this._center=t},t.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},t}(),QS=function(){function t(t,e){this.type="polygon",this.exterior=t,this.interiors=e}return t}(),JS=function(){function t(t){this.type="linestring",this.points=t}return t}(),tO=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.type="geoJSON",i.geometries=n,i._center=r&&[r[0],r[1]],i}return p(e,t),e.prototype.calcCenter=function(){for(var t,e=this.geometries,n=0,r=0;r<e.length;r++){var i=e[r],o=i.exterior,a=o&&o.length;a>n&&(t=i,n=a)}if(t)return KS(t.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},e.prototype.getBoundingRect=function(t){var e=this._rect;if(e&&!t)return e;var n=[1/0,1/0],r=[-1/0,-1/0],i=this.geometries;return Object(v["each"])(i,(function(e){"polygon"===e.type?XS(e.exterior,n,r,t):Object(v["each"])(e.points,(function(e){XS(e,n,r,t)}))})),isFinite(n[0])&&isFinite(n[1])&&isFinite(r[0])&&isFinite(r[1])||(n[0]=n[1]=r[0]=r[1]=0),e=new qt(n[0],n[1],r[0]-n[0],r[1]-n[1]),t||(this._rect=e),e},e.prototype.contain=function(t){var e=this.getBoundingRect(),n=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var r=0,i=n.length;r<i;r++){var o=n[r];if("polygon"===o.type){var a=o.exterior,s=o.interiors;if(US(a,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(US(s[l],t[0],t[1]))continue t;return!0}}}return!1},e.prototype.transformTo=function(t,e,n,r){var i=this.getBoundingRect(),o=i.width/i.height;n?r||(r=n/o):n=o*r;for(var a=new qt(t,e,n,r),s=i.calculateTransform(a),l=this.geometries,u=0;u<l.length;u++){var c=l[u];"polygon"===c.type?(YS(c.exterior,s),Object(v["each"])(c.interiors,(function(t){YS(t,s)}))):Object(v["each"])(c.points,(function(t){YS(t,s)}))}i=this._rect,i.copy(a),this._center=[i.x+i.width/2,i.y+i.height/2]},e.prototype.cloneShallow=function(t){null==t&&(t=this.name);var n=new e(t,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},e}(ZS),eO=function(t){function e(e,n){var r=t.call(this,e)||this;return r.type="geoSVG",r._elOnlyForCalculate=n,r}return p(e,t),e.prototype.calcCenter=function(){var t=this._elOnlyForCalculate,e=t.getBoundingRect(),n=[e.x+e.width/2,e.y+e.height/2],r=St($S),i=t;while(i&&!i.isGeoSVGGraphicRoot)Ct(r,i.getLocalTransform(),r),i=i.parent;return Tt(r,r),F(n,n,r),n},e}(ZS);function nO(t){if(!t.UTF8Encoding)return t;var e=t,n=e.UTF8Scale;null==n&&(n=1024);var r=e.features;return v["each"](r,(function(t){var e=t.geometry,r=e.encodeOffsets,i=e.coordinates;if(r)switch(e.type){case"LineString":e.coordinates=iO(i,r,n);break;case"Polygon":rO(i,r,n);break;case"MultiLineString":rO(i,r,n);break;case"MultiPolygon":v["each"](i,(function(t,e){return rO(t,r[e],n)}))}})),e.UTF8Encoding=!1,e}function rO(t,e,n){for(var r=0;r<t.length;r++)t[r]=iO(t[r],e[r],n)}function iO(t,e,n){for(var r=[],i=e[0],o=e[1],a=0;a<t.length;a+=2){var s=t.charCodeAt(a)-64,l=t.charCodeAt(a+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),s+=i,l+=o,i=s,o=l,r.push([s/n,l/n])}return r}function oO(t,e){return t=nO(t),v["map"](v["filter"](t.features,(function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0})),(function(t){var n=t.properties,r=t.geometry,i=[];switch(r.type){case"Polygon":var o=r.coordinates;i.push(new QS(o[0],o.slice(1)));break;case"MultiPolygon":v["each"](r.coordinates,(function(t){t[0]&&i.push(new QS(t[0],t.slice(1)))}));break;case"LineString":i.push(new JS([r.coordinates]));break;case"MultiLineString":i.push(new JS(r.coordinates))}var a=new tO(n[e||"name"],i,n.cp);return a.properties=n,a}))}function aO(t,e,n,r,i,o,a,s){var l=new qs({style:{text:t,font:e,align:n,verticalAlign:r,padding:i,rich:o,overflow:a?"truncate":null,lineHeight:s}});return l.getBoundingRect()}var sO=Yi();function lO(t){return"category"===t.type?cO(t):dO(t)}function uO(t,e){return"category"===t.type?fO(t,e):{ticks:v["map"](t.scale.getTicks(),(function(t){return t.value}))}}function cO(t){var e=t.getLabelModel(),n=hO(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function hO(t,e){var n,r,i=pO(t,"labels"),o=LS(e),a=gO(i,o);return a||(v["isFunction"](o)?n=xO(t,o):(r="auto"===o?yO(t):o,n=_O(t,r)),vO(i,o,{labels:n,labelCategoryInterval:r}))}function fO(t,e){var n,r,i=pO(t,"ticks"),o=LS(e),a=gO(i,o);if(a)return a;if(e.get("show")&&!t.scale.isBlank()||(n=[]),v["isFunction"](o))n=xO(t,o,!0);else if("auto"===o){var s=hO(t,t.getLabelModel());r=s.labelCategoryInterval,n=v["map"](s.labels,(function(t){return t.tickValue}))}else r=o,n=_O(t,r,!0);return vO(i,o,{ticks:n,tickCategoryInterval:r})}function dO(t){var e=t.scale.getTicks(),n=IS(t);return{labels:v["map"](e,(function(e,r){return{level:e.level,formattedLabel:n(e,r),rawLabel:t.scale.getLabel(e),tickValue:e.value}}))}}function pO(t,e){return sO(t)[e]||(sO(t)[e]=[])}function gO(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function vO(t,e,n){return t.push({key:e,value:n}),n}function yO(t){var e=sO(t).autoInterval;return null!=e?e:sO(t).autoInterval=t.calculateCategoryInterval()}function mO(t){var e=bO(t),n=IS(t),r=(e.axisRotate-e.labelRotate)/180*Math.PI,i=t.scale,o=i.getExtent(),a=i.count();if(o[1]-o[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),c=Math.abs(u*Math.cos(r)),h=Math.abs(u*Math.sin(r)),f=0,d=0;l<=o[1];l+=s){var p=0,g=0,v=vr(n({value:l}),e.font,"center","top");p=1.3*v.width,g=1.3*v.height,f=Math.max(f,p,7),d=Math.max(d,g,7)}var y=f/c,m=d/h;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var b=Math.max(0,Math.floor(Math.min(y,m))),_=sO(t.model),x=t.getExtent(),w=_.lastAutoInterval,S=_.lastTickCount;return null!=w&&null!=S&&Math.abs(w-b)<=1&&Math.abs(S-a)<=1&&w>b&&_.axisExtent0===x[0]&&_.axisExtent1===x[1]?b=w:(_.lastTickCount=a,_.lastAutoInterval=b,_.axisExtent0=x[0],_.axisExtent1=x[1]),b}function bO(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function _O(t,e,n){var r=IS(t),i=t.scale,o=i.getExtent(),a=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=o[0],c=i.count();0!==u&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=DS(t),f=a.get("showMinLabel")||h,d=a.get("showMaxLabel")||h;f&&u!==o[0]&&g(o[0]);for(var p=u;p<=o[1];p+=l)g(p);function g(t){var e={value:t};s.push(n?t:{formattedLabel:r(e),rawLabel:i.getLabel(e),tickValue:t})}return d&&p-l!==o[1]&&g(o[1]),s}function xO(t,e,n){var r=t.scale,i=IS(t),o=[];return v["each"](r.getTicks(),(function(t){var a=r.getLabel(t),s=t.value;e(t.value,a)&&o.push(n?s:{formattedLabel:i(t),rawLabel:a,tickValue:s})})),o}var wO=[0,1],SO=function(){function t(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return t.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),r=Math.max(e[0],e[1]);return t>=n&&t<=r},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return ii(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,r=this.scale;return t=r.normalize(t),this.onBand&&"ordinal"===r.type&&(n=n.slice(),OO(n,r.count())),Qr(t,wO,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&(n=n.slice(),OO(n,r.count()));var i=Qr(t,n,wO,e);return this.scale.scale(i)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=uO(this,e),r=n.ticks,i=Object(v["map"])(r,(function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}}),this),o=e.get("alignWithLabel");return CO(this,i,o,t.clamp),i},t.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var n=this.scale.getMinorTicks(e),r=Object(v["map"])(n,(function(t){return Object(v["map"])(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this);return r},t.prototype.getViewLabels=function(){return lO(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var r=Math.abs(t[1]-t[0]);return Math.abs(r)/n},t.prototype.calculateCategoryInterval=function(){return mO(this)},t}();function OO(t,e){var n=t[1]-t[0],r=e,i=n/r/2;t[0]+=i,t[1]-=i}function CO(t,e,n,r){var i=e.length;if(t.onBand&&!n&&i){var o,a,s=t.getExtent();if(1===i)e[0].coord=s[0],o=e[1]={coord:s[0]};else{var l=e[i-1].tickValue-e[0].tickValue,u=(e[i-1].coord-e[0].coord)/l;Object(v["each"])(e,(function(t){t.coord-=u/2}));var c=t.scale.getExtent();a=1+c[1]-e[i-1].tickValue,o={coord:e[i-1].coord+u*a},e.push(o)}var h=s[0]>s[1];f(e[0].coord,s[0])&&(r?e[0].coord=s[0]:e.shift()),r&&f(s[0],e[0].coord)&&e.unshift({coord:s[0]}),f(s[1],o.coord)&&(r?o.coord=s[1]:e.pop()),r&&f(o.coord,s[1])&&e.push({coord:s[1]})}function f(t,e){return t=ti(t),e=ti(e),h?t>e:t<e}}var kO=SO;function AO(t){var e=vh.extend(t);return vh.registerClass(e),e}function MO(t){var e=Up.extend(t);return Up.registerClass(e),e}function TO(t){var e=Hp.extend(t);return Hp.registerClass(e),e}function IO(t){var e=dy.extend(t);return dy.registerClass(e),e}var EO=2*Math.PI,PO=Da.CMD,jO=["top","right","bottom","left"];function LO(t,e,n,r,i){var o=n.width,a=n.height;switch(t){case"top":r.set(n.x+o/2,n.y-e),i.set(0,-1);break;case"bottom":r.set(n.x+o/2,n.y+a+e),i.set(0,1);break;case"left":r.set(n.x-e,n.y+a/2),i.set(-1,0);break;case"right":r.set(n.x+o+e,n.y+a/2),i.set(1,0);break}}function DO(t,e,n,r,i,o,a,s,l){a-=t,s-=e;var u=Math.sqrt(a*a+s*s);a/=u,s/=u;var c=a*n+t,h=s*n+e;if(Math.abs(r-i)%EO<1e-4)return l[0]=c,l[1]=h,u-n;if(o){var f=r;r=za(i),i=za(f)}else r=za(r),i=za(i);r>i&&(i+=EO);var d=Math.atan2(s,a);if(d<0&&(d+=EO),d>=r&&d<=i||d+EO>=r&&d+EO<=i)return l[0]=c,l[1]=h,u-n;var p=n*Math.cos(r)+t,g=n*Math.sin(r)+e,v=n*Math.cos(i)+t,y=n*Math.sin(i)+e,m=(p-a)*(p-a)+(g-s)*(g-s),b=(v-a)*(v-a)+(y-s)*(y-s);return m<b?(l[0]=p,l[1]=g,Math.sqrt(m)):(l[0]=v,l[1]=y,Math.sqrt(b))}function RO(t,e,n,r,i,o,a,s){var l=i-t,u=o-e,c=n-t,h=r-e,f=Math.sqrt(c*c+h*h);c/=f,h/=f;var d=l*c+u*h,p=d/f;s&&(p=Math.min(Math.max(p,0),1)),p*=f;var g=a[0]=t+p*c,v=a[1]=e+p*h;return Math.sqrt((g-i)*(g-i)+(v-o)*(v-o))}function NO(t,e,n,r,i,o,a){n<0&&(t+=n,n=-n),r<0&&(e+=r,r=-r);var s=t+n,l=e+r,u=a[0]=Math.min(Math.max(i,t),s),c=a[1]=Math.min(Math.max(o,e),l);return Math.sqrt((u-i)*(u-i)+(c-o)*(c-o))}var BO=[];function FO(t,e,n){var r=NO(e.x,e.y,e.width,e.height,t.x,t.y,BO);return n.set(BO[0],BO[1]),r}function zO(t,e,n){for(var r,i,o=0,a=0,s=0,l=0,u=1/0,c=e.data,h=t.x,f=t.y,d=0;d<c.length;){var p=c[d++];1===d&&(o=c[d],a=c[d+1],s=o,l=a);var g=u;switch(p){case PO.M:s=c[d++],l=c[d++],o=s,a=l;break;case PO.L:g=RO(o,a,c[d],c[d+1],h,f,BO,!0),o=c[d++],a=c[d++];break;case PO.C:g=Fe(o,a,c[d++],c[d++],c[d++],c[d++],c[d],c[d+1],h,f,BO),o=c[d++],a=c[d++];break;case PO.Q:g=Ue(o,a,c[d++],c[d++],c[d],c[d+1],h,f,BO),o=c[d++],a=c[d++];break;case PO.A:var v=c[d++],y=c[d++],m=c[d++],b=c[d++],_=c[d++],x=c[d++];d+=1;var w=!!(1-c[d++]);r=Math.cos(_)*m+v,i=Math.sin(_)*b+y,d<=1&&(s=r,l=i);var S=(h-v)*b/m+v;g=DO(v,y,b,_,_+x,w,S,f,BO),o=Math.cos(_+x)*m+v,a=Math.sin(_+x)*b+y;break;case PO.R:s=o=c[d++],l=a=c[d++];var O=c[d++],C=c[d++];g=NO(s,l,O,C,h,f,BO);break;case PO.Z:g=RO(o,a,s,l,h,f,BO,!0),o=s,a=l;break}g<u&&(u=g,n.set(BO[0],BO[1]))}return u}var VO=new Pt,qO=new Pt,GO=new Pt,HO=new Pt,WO=new Pt;function UO(t,e){if(t){var n=t.getTextGuideLine(),r=t.getTextContent();if(r&&n){var i=t.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],a=i.candidates||jO,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var l=1/0,u=i.anchor,c=t.getComputedTransform(),h=c&&Tt([],c),f=e.get("length2")||0;u&&GO.copy(u);for(var d=0;d<a.length;d++){var p=a[d];LO(p,0,s,VO,HO),Pt.scaleAndAdd(qO,VO,HO,f),qO.transform(h);var g=t.getBoundingRect(),v=u?u.distance(qO):t instanceof ss?zO(qO,t.path,GO):FO(qO,g,GO);v<l&&(l=v,qO.transform(c),GO.transform(c),GO.toArray(o[0]),qO.toArray(o[1]),VO.toArray(o[2]))}XO(o,e.get("minTurnAngle")),n.setShape({points:o})}}}var $O=[],YO=new Pt;function XO(t,e){if(e<=180&&e>0){e=e/180*Math.PI,VO.fromArray(t[0]),qO.fromArray(t[1]),GO.fromArray(t[2]),Pt.sub(HO,VO,qO),Pt.sub(WO,GO,qO);var n=HO.len(),r=WO.len();if(!(n<.001||r<.001)){HO.scale(1/n),WO.scale(1/r);var i=HO.dot(WO),o=Math.cos(e);if(o<i){var a=RO(qO.x,qO.y,GO.x,GO.y,VO.x,VO.y,$O,!1);YO.fromArray($O),YO.scaleAndAdd(WO,a/Math.tan(Math.PI-e));var s=GO.x!==qO.x?(YO.x-qO.x)/(GO.x-qO.x):(YO.y-qO.y)/(GO.y-qO.y);if(isNaN(s))return;s<0?Pt.copy(YO,qO):s>1&&Pt.copy(YO,GO),YO.toArray(t[1])}}}}function KO(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,VO.fromArray(t[0]),qO.fromArray(t[1]),GO.fromArray(t[2]),Pt.sub(HO,qO,VO),Pt.sub(WO,GO,qO);var r=HO.len(),i=WO.len();if(!(r<.001||i<.001)){HO.scale(1/r),WO.scale(1/i);var o=HO.dot(e),a=Math.cos(n);if(o<a){var s=RO(qO.x,qO.y,GO.x,GO.y,VO.x,VO.y,$O,!1);YO.fromArray($O);var l=Math.PI/2,u=Math.acos(WO.dot(e)),c=l+u-n;if(c>=l)Pt.copy(YO,GO);else{YO.scaleAndAdd(WO,s/Math.tan(Math.PI/2-c));var h=GO.x!==qO.x?(YO.x-qO.x)/(GO.x-qO.x):(YO.y-qO.y)/(GO.y-qO.y);if(isNaN(h))return;h<0?Pt.copy(YO,qO):h>1&&Pt.copy(YO,GO)}YO.toArray(t[1])}}}}function ZO(t,e,n,r){var i="normal"===n,o=i?t:t.ensureState(n);o.ignore=e;var a=r.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=r.getModel("lineStyle").getLineStyle();i?t.useStyle(s):o.style=s}function QO(t,e){var n=e.smooth,r=e.points;if(r)if(t.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=L(r[0],r[1]),o=L(r[1],r[2]);if(!i||!o)return t.lineTo(r[1][0],r[1][1]),void t.lineTo(r[2][0],r[2][1]);var a=Math.min(i,o)*n,s=B([],r[1],r[0],a/i),l=B([],r[1],r[2],a/o),u=B([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var c=1;c<r.length;c++)t.lineTo(r[c][0],r[c][1])}function JO(t,e,n){var r=t.getTextGuideLine(),i=t.getTextContent();if(i){for(var o=e.normal,a=o.get("show"),s=i.ignore,l=0;l<Js.length;l++){var u=Js[l],c=e[u],h="normal"===u;if(c){var f=c.get("show"),d=h?s:Object(v["retrieve2"])(i.states[u]&&i.states[u].ignore,s);if(d||!Object(v["retrieve2"])(f,a)){var p=h?r:r&&r.states[u];p&&(p.ignore=!0);continue}r||(r=new Zg,t.setTextGuideLine(r),h||!s&&a||ZO(r,!0,"normal",e.normal),t.stateProxy&&(r.stateProxy=t.stateProxy)),ZO(r,!1,u,c)}}if(r){Object(v["defaults"])(r.style,n),r.style.fill=null;var g=o.get("showAbove"),y=t.textGuideLineConfig=t.textGuideLineConfig||{};y.showAbove=g||!1,r.buildPath=QO}}else r&&t.removeTextGuideLine()}function tC(t,e){e=e||"labelLine";for(var n={normal:t.getModel(e)},r=0;r<Qs.length;r++){var i=Qs[r];n[i]=t.getModel([i,e])}return n}function eC(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(!r.defaultAttr.ignore){var i=r.label,o=i.getComputedTransform(),a=i.getBoundingRect(),s=!o||o[1]<1e-5&&o[2]<1e-5,l=i.style.margin||0,u=a.clone();u.applyTransform(o),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new Sv(a,o):null;e.push({label:i,labelLine:r.labelLine,rect:u,localRect:a,obb:c,priority:r.priority,defaultAttr:r.defaultAttr,layoutOption:r.computedLayoutOption,axisAligned:s,transform:o})}}return e}function nC(t,e,n,r,i,o){var a=t.length;if(!(a<2)){t.sort((function(t,n){return t.rect[e]-n.rect[e]}));for(var s,l=0,u=!1,c=[],h=0,f=0;f<a;f++){var d=t[f],p=d.rect;s=p[e]-l,s<0&&(p[e]-=s,d.label[e]-=s,u=!0);var g=Math.max(-s,0);c.push(g),h+=g,l=p[e]+p[n]}h>0&&o&&w(-h/a,0,a);var v,y,m=t[0],b=t[a-1];return _(),v<0&&S(-v,.8),y<0&&S(y,.8),_(),x(v,y,1),x(y,v,-1),_(),v<0&&O(-v),y<0&&O(y),u}function _(){v=m.rect[e]-r,y=i-b.rect[e]-b.rect[n]}function x(t,e,n){if(t<0){var r=Math.min(e,-t);if(r>0){w(r*n,0,a);var i=r+t;i<0&&S(-i*n,1)}else S(-t*n,1)}}function w(n,r,i){0!==n&&(u=!0);for(var o=r;o<i;o++){var a=t[o],s=a.rect;s[e]+=n,a.label[e]+=n}}function S(r,i){for(var o=[],s=0,l=1;l<a;l++){var u=t[l-1].rect,c=Math.max(t[l].rect[e]-u[e]-u[n],0);o.push(c),s+=c}if(s){var h=Math.min(Math.abs(r)/s,i);if(r>0)for(l=0;l<a-1;l++){var f=o[l]*h;w(f,0,l+1)}else for(l=a-1;l>0;l--){f=o[l-1]*h;w(-f,l,a)}}}function O(t){var e=t<0?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(a-1)),r=0;r<a-1;r++)if(e>0?w(n,0,r+1):w(-n,a-r-1,a),t-=n,t<=0)return}}function rC(t,e,n,r){return nC(t,"x","width",e,n,r)}function iC(t,e,n,r){return nC(t,"y","height",e,n,r)}function oC(t){var e=[];t.sort((function(t,e){return e.priority-t.priority}));var n=new qt(0,0,0,0);function r(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}for(var i=0;i<t.length;i++){var o=t[i],a=o.axisAligned,s=o.localRect,l=o.transform,u=o.label,c=o.labelLine;n.copy(o.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var h=o.obb,f=!1,d=0;d<e.length;d++){var p=e[d];if(n.intersect(p.rect)){if(a&&p.axisAligned){f=!0;break}if(p.obb||(p.obb=new Sv(p.localRect,p.transform)),h||(h=new Sv(s,l)),h.intersect(p.obb)){f=!0;break}}}f?(r(u),c&&r(c)):(u.attr("ignore",o.defaultAttr.ignore),c&&c.attr("ignore",o.defaultAttr.labelGuideIgnore),e.push(o))}}function aC(t){if(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n].slice());return e}}function sC(t,e){var n=t.label,r=e&&e.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:aC(r&&r.shape.points)}}var lC=["align","verticalAlign","width","height","fontSize"],uC=new cr,cC=Yi(),hC=Yi();function fC(t,e,n){for(var r=0;r<n.length;r++){var i=n[r];null!=e[i]&&(t[i]=e[i])}}var dC=["x","y","rotation"],pC=function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(t,e,n,r,i){var o=r.style,a=r.__hostTarget,s=a.textConfig||{},l=r.getComputedTransform(),u=r.getBoundingRect().plain();qt.applyTransform(u,u,l),l?uC.setLocalTransform(l):(uC.x=uC.y=uC.rotation=uC.originX=uC.originY=0,uC.scaleX=uC.scaleY=1);var c,h=r.__hostTarget;if(h){c=h.getBoundingRect().plain();var f=h.getComputedTransform();qt.applyTransform(c,c,f)}var d=c&&h.getTextGuideLine();this._labelList.push({label:r,labelLine:d,seriesModel:n,dataIndex:t,dataType:e,layoutOption:i,computedLayoutOption:null,rect:u,hostRect:c,priority:c?c.width*c.height:0,defaultAttr:{ignore:r.ignore,labelGuideIgnore:d&&d.ignore,x:uC.x,y:uC.y,scaleX:uC.scaleX,scaleY:uC.scaleY,rotation:uC.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:r.cursor,attachedPos:s.position,attachedRot:s.rotation}})},t.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var n=t.__model,r=n.get("labelLayout");(Object(v["isFunction"])(r)||Object(v["keys"])(r).length)&&t.group.traverse((function(t){if(t.ignore)return!0;var i=t.getTextContent(),o=Gs(t);i&&!i.disableLabelLayout&&e._addLabel(o.dataIndex,o.dataType,n,i,r)}))},t.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),n=t.getHeight();function r(t,e){return function(){UO(t,e)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],a=o.label,s=a.__hostTarget,l=o.defaultAttr,u=void 0;u=Object(v["isFunction"])(o.layoutOption)?o.layoutOption(sC(o,s)):o.layoutOption,u=u||{},o.computedLayoutOption=u;var c=Math.PI/180;s&&s.setTextConfig({local:!1,position:null!=u.x||null!=u.y?null:l.attachedPos,rotation:null!=u.rotate?u.rotate*c:l.attachedRot,offset:[u.dx||0,u.dy||0]});var h=!1;if(null!=u.x?(a.x=Jr(u.x,e),a.setStyle("x",0),h=!0):(a.x=l.x,a.setStyle("x",l.style.x)),null!=u.y?(a.y=Jr(u.y,n),a.setStyle("y",0),h=!0):(a.y=l.y,a.setStyle("y",l.style.y)),u.labelLinePoints){var f=s.getTextGuideLine();f&&(f.setShape({points:u.labelLinePoints}),h=!1)}var d=cC(a);d.needsUpdateLabelLine=h,a.rotation=null!=u.rotate?u.rotate*c:l.rotation,a.scaleX=l.scaleX,a.scaleY=l.scaleY;for(var p=0;p<lC.length;p++){var g=lC[p];a.setStyle(g,null!=u[g]?u[g]:l.style[g])}if(u.draggable){if(a.draggable=!0,a.cursor="move",s){var y=o.seriesModel;if(null!=o.dataIndex){var m=o.seriesModel.getData(o.dataType);y=m.getItemModel(o.dataIndex)}a.on("drag",r(s,y.getModel("labelLine")))}}else a.off("drag"),a.cursor=l.cursor}},t.prototype.layout=function(t){var e=t.getWidth(),n=t.getHeight(),r=eC(this._labelList),i=Object(v["filter"])(r,(function(t){return"shiftX"===t.layoutOption.moveOverlap})),o=Object(v["filter"])(r,(function(t){return"shiftY"===t.layoutOption.moveOverlap}));rC(i,0,e),iC(o,0,n);var a=Object(v["filter"])(r,(function(t){return t.layoutOption.hideOverlap}));oC(a)},t.prototype.processLabelsOverall=function(){var t=this;Object(v["each"])(this._chartViewList,(function(e){var n=e.__model,r=e.ignoreLabelLineUpdate,i=n.isAnimationEnabled();e.group.traverse((function(e){if(e.ignore&&!e.forceLabelAnimation)return!0;var o=!r,a=e.getTextContent();!o&&a&&(o=cC(a).needsUpdateLabelLine),o&&t._updateLabelLine(e,n),i&&t._animateLabels(e,n)}))}))},t.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),r=Gs(t),i=r.dataIndex;if(n&&null!=i){var o=e.getData(r.dataType),a=o.getItemModel(i),s={},l=o.getItemVisual(i,"style"),u=o.getVisual("drawType");s.stroke=l[u];var c=a.getModel("labelLine");JO(t,tC(a),s),UO(t,c)}},t.prototype._animateLabels=function(t,e){var n=t.getTextContent(),r=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!cu(t))){var i=cC(n),o=i.oldLayout,a=Gs(t),s=a.dataIndex,l={x:n.x,y:n.y,rotation:n.rotation},u=e.getData(a.dataType);if(o){n.attr(o);var c=t.prevStates;c&&(Object(v["indexOf"])(c,"select")>=0&&n.attr(i.oldLayoutSelect),Object(v["indexOf"])(c,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),lu(n,l,e,s)}else if(n.attr(l),!Iu(n).valueAnimation){var h=Object(v["retrieve2"])(n.style.opacity,1);n.style.opacity=0,uu(n,{style:{opacity:h}},e,s)}if(i.oldLayout=l,n.states.select){var f=i.oldLayoutSelect={};fC(f,l,dC),fC(f,n.states.select,dC)}if(n.states.emphasis){var d=i.oldLayoutEmphasis={};fC(d,l,dC),fC(d,n.states.emphasis,dC)}Pu(n,s,u,e,e)}if(r&&!r.ignore&&!r.invisible){i=hC(r),o=i.oldLayout;var p={points:r.shape.points};o?(r.attr({shape:o}),lu(r,{shape:p},e)):(r.setShape(p),r.style.strokePercent=0,uu(r,{style:{strokePercent:1}},e)),i.oldLayout=p}},t}(),gC=pC,vC=Yi();function yC(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){var r=vC(e).labelManager;r||(r=vC(e).labelManager=new gC),r.clearLabels()})),t.registerUpdateLifecycle("series:layoutlabels",(function(t,e,n){var r=vC(e).labelManager;n.updatedSeries.forEach((function(t){r.addLabelsOfSeries(e.getViewOfSeriesModel(t))})),r.updateLayoutConfig(e),r.layout(e),r.processLabelsOverall()}))}function mC(t,e,n){var r=fr["d"].createCanvas(),i=e.getWidth(),o=e.getHeight(),a=r.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=i+"px",a.height=o+"px",r.setAttribute("data-zr-dom-id",t)),r.width=i*n,r.height=o*n,r}px(yC);var bC=function(t){function e(e,n,r){var i,o=t.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,r=r||Xn,"string"===typeof e?i=mC(e,n,r):v["isObject"](e)&&(i=e,e=i.id),o.id=e,o.dom=i;var a=i.style;return a&&(v["disableUserSelect"](i),i.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),o.painter=n,o.dpr=r,o}return p(e,t),e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=mC("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,e,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i,o=[],a=this.maxRepaintRectCount,s=!1,l=new qt(0,0,0,0);function u(t){if(t.isFinite()&&!t.isZero())if(0===o.length){var e=new qt(0,0,0,0);e.copy(t),o.push(e)}else{for(var n=!1,r=1/0,i=0,u=0;u<o.length;++u){var c=o[u];if(c.intersect(t)){var h=new qt(0,0,0,0);h.copy(c),h.union(t),o[u]=h,n=!0;break}if(s){l.copy(t),l.union(c);var f=t.width*t.height,d=c.width*c.height,p=l.width*l.height,g=p-f-d;g<r&&(r=g,i=u)}}if(s&&(o[i].union(t),n=!0),!n){e=new qt(0,0,0,0);e.copy(t),o.push(e)}s||(s=o.length>=a)}}for(var c=this.__startIndex;c<this.__endIndex;++c){var h=t[c];if(h){var f=h.shouldBePainted(n,r,!0,!0),d=h.__isRendered&&(h.__dirty&he||!f)?h.getPrevPaintRect():null;d&&u(d);var p=f&&(h.__dirty&he||!h.__isRendered)?h.getPaintRect():null;p&&u(p)}}for(c=this.__prevStartIndex;c<this.__prevEndIndex;++c){h=e[c],f=h.shouldBePainted(n,r,!0,!0);if(h&&(!f||!h.__zr)&&h.__isRendered){d=h.getPrevPaintRect();d&&u(d)}}do{i=!1;for(c=0;c<o.length;)if(o[c].isZero())o.splice(c,1);else{for(var g=c+1;g<o.length;)o[c].intersect(o[g])?(i=!0,o[c].union(o[g]),o.splice(g,1)):g++;c++}}while(i);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,e){var n=this.dpr,r=this.dom,i=r.style,o=this.domBack;i&&(i.width=t+"px",i.height=e+"px"),r.width=t*n,r.height=e*n,o&&(o.width=t*n,o.height=e*n,1!==n&&this.ctxBack.scale(n,n))},e.prototype.clear=function(t,e,n){var r=this.dom,i=this.ctx,o=r.width,a=r.height;e=e||this.clearColor;var s=this.motionBlur&&!t,l=this.lastFrameAlpha,u=this.dpr,c=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(r,0,0,o/u,a/u));var h=this.domBack;function f(t,n,r,o){if(i.clearRect(t,n,r,o),e&&"transparent"!==e){var a=void 0;v["isGradientObject"](e)?(a=e.__canvasGradient||Pm(i,e,{x:0,y:0,width:r,height:o}),e.__canvasGradient=a):v["isImagePatternObject"](e)&&(e.scaleX=e.scaleX||u,e.scaleY=e.scaleY||u,a=Hm(i,e,{dirty:function(){c.setUnpainted(),c.__painter.refresh()}})),i.save(),i.fillStyle=a||e,i.fillRect(t,n,r,o),i.restore()}s&&(i.save(),i.globalAlpha=l,i.drawImage(h,t,n,r,o),i.restore())}!n||s?f(0,0,o,a):n.length&&v["each"](n,(function(t){f(t.x*u,t.y*u,t.width*u,t.height*u)}))},e}(U),_C=bC,xC=1e5,wC=314159,SC=.01,OC=.001;function CC(t){return!!t&&(!!t.__builtin__||"function"===typeof t.resize&&"function"===typeof t.refresh)}function kC(t,e){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}var AC=function(){function t(t,e,n,r){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=n=v["extend"]({},n||{}),this.dpr=n.devicePixelRatio||Xn,this._singleCanvas=i,this.root=t;var o=t.style;o&&(v["disableUserSelect"](t),t.innerHTML=""),this.storage=e;var a=this._zlevelList;this._prevDisplayList=[];var s=this._layers;if(i){var l=t,u=l.width,c=l.height;null!=n.width&&(u=n.width),null!=n.height&&(c=n.height),this.dpr=n.devicePixelRatio||1,l.width=u*this.dpr,l.height=c*this.dpr,this._width=u,this._height=c;var h=new _C(l,this,this.dpr);h.__builtin__=!0,h.initContext(),s[wC]=h,h.zlevel=wC,a.push(wC),this._domRoot=t}else{this._width=Dm(t,0,n),this._height=Dm(t,1,n);var f=this._domRoot=kC(this._width,this._height);t.appendChild(f)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),n=this._prevDisplayList,r=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,n,t,this._redrawId);for(var i=0;i<r.length;i++){var o=r[i],a=this._layers[o];if(!a.__builtin__&&a.refresh){var s=0===i?this._backgroundColor:null;a.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(t){var e=t.length,n=this._hoverlayer;if(n&&n.clear(),e){for(var r,i={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;o<e;o++){var a=t[o];a.__inHover&&(n||(n=this._hoverlayer=this.getLayer(xC)),r||(r=n.ctx,r.save()),cb(r,a,i,o===e-1))}r&&r.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(xC)},t.prototype.paintOne=function(t,e){ub(t,e)},t.prototype._paintList=function(t,e,n,r){if(this._redrawId===r){n=n||!1,this._updateLayerStatus(t);var i=this._doPaintList(t,e,n),o=i.finished,a=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(t),o)this.eachLayer((function(t){t.afterBrush&&t.afterBrush()}));else{var s=this;_e((function(){s._paintList(t,e,n,r)}))}}},t.prototype._compositeManually=function(){var t=this.getLayer(wC).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer((function(r){r.virtual&&t.drawImage(r.dom,0,0,e,n)}))},t.prototype._doPaintList=function(t,e,n){for(var r=this,i=[],o=this._opts.useDirtyRect,a=0;a<this._zlevelList.length;a++){var s=this._zlevelList[a],l=this._layers[s];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||n)&&i.push(l)}for(var u=!0,c=!1,h=function(a){var s,l=i[a],h=l.ctx,d=o&&l.createRepaintRects(t,e,f._width,f._height),p=n?l.__startIndex:l.__drawIndex,g=!n&&l.incremental&&Date.now,v=g&&Date.now(),y=l.zlevel===f._zlevelList[0]?f._backgroundColor:null;if(l.__startIndex===l.__endIndex)l.clear(!1,y,d);else if(p===l.__startIndex){var m=t[p];m.incremental&&m.notClear&&!n||l.clear(!1,y,d)}-1===p&&(console.error("For some unknown reason. drawIndex is -1"),p=l.__startIndex);var b=function(e){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:r._width,viewHeight:r._height};for(s=p;s<l.__endIndex;s++){var i=t[s];if(i.__inHover&&(c=!0),r._doPaintEl(i,l,o,e,n,s===l.__endIndex-1),g){var a=Date.now()-v;if(a>15)break}}n.prevElClipPaths&&h.restore()};if(d)if(0===d.length)s=l.__endIndex;else for(var _=f.dpr,x=0;x<d.length;++x){var w=d[x];h.save(),h.beginPath(),h.rect(w.x*_,w.y*_,w.width*_,w.height*_),h.clip(),b(w),h.restore()}else h.save(),b(),h.restore();l.__drawIndex=s,l.__drawIndex<l.__endIndex&&(u=!1)},f=this,d=0;d<i.length;d++)h(d);return g["a"].wxa&&v["each"](this._layers,(function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()})),{finished:u,needsRefreshHover:c}},t.prototype._doPaintEl=function(t,e,n,r,i,o){var a=e.ctx;if(n){var s=t.getPaintRect();(!r||s&&s.intersect(r))&&(cb(a,t,i,o),t.setPrevPaintRect(s))}else cb(a,t,i,o)},t.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=wC);var n=this._layers[t];return n||(n=new _C("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?v["merge"](n,this._layerConfig[t],!0):this._layerConfig[t-SC]&&v["merge"](n,this._layerConfig[t-SC],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},t.prototype.insertLayer=function(t,e){var n=this._layers,r=this._zlevelList,i=r.length,o=this._domRoot,a=null,s=-1;if(!n[t]&&CC(e)){if(i>0&&t>r[0]){for(s=0;s<i-1;s++)if(r[s]<t&&r[s+1]>t)break;a=n[r[s]]}if(r.splice(s+1,0,t),n[t]=e,!e.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.__painter=this}},t.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r];t.call(e,this._layers[i],i)}},t.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],o=this._layers[i];o.__builtin__&&t.call(e,o,i)}},t.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],o=this._layers[i];o.__builtin__||t.call(e,o,i)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(t){function e(t){a&&(a.__endIndex!==t&&(a.__dirty=!0),a.__endIndex=t)}if(this.eachBuiltinLayer((function(t,e){t.__dirty=t.__used=!1})),this._singleCanvas)for(var n=1;n<t.length;n++){var r=t[n];if(r.zlevel!==t[n-1].zlevel||r.incremental){this._needsManuallyCompositing=!0;break}}var i,o,a=null,s=0;for(o=0;o<t.length;o++){r=t[o];var l=r.zlevel,u=void 0;i!==l&&(i=l,s=0),r.incremental?(u=this.getLayer(l+OC,this._needsManuallyCompositing),u.incremental=!0,s=1):u=this.getLayer(l+(s>0?SC:0),this._needsManuallyCompositing),u.__builtin__||v["logError"]("ZLevel "+l+" has been used by unkown layer "+u.id),u!==a&&(u.__used=!0,u.__startIndex!==o&&(u.__dirty=!0),u.__startIndex=o,u.incremental?u.__drawIndex=-1:u.__drawIndex=o,e(o),a=u),r.__dirty&he&&!r.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=o))}e(o),this.eachBuiltinLayer((function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)}))},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,v["each"](this._layers,(function(t){t.setUnpainted()}))},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?v["merge"](n[t],e,!0):n[t]=e;for(var r=0;r<this._zlevelList.length;r++){var i=this._zlevelList[r];if(i===t||i===t+SC){var o=this._layers[i];v["merge"](o,n[t],!0)}}}},t.prototype.delLayer=function(t){var e=this._layers,n=this._zlevelList,r=e[t];r&&(r.dom.parentNode.removeChild(r.dom),delete e[t],n.splice(v["indexOf"](n,t),1))},t.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var r=this._opts,i=this.root;if(null!=t&&(r.width=t),null!=e&&(r.height=e),t=Dm(i,0,r),e=Dm(i,1,r),n.style.display="",this._width!==t||e!==this._height){for(var o in n.style.width=t+"px",n.style.height=e+"px",this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(wC).resize(t,e)}return this},t.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[wC].dom;var e=new _C("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var n=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var r=e.dom.width,i=e.dom.height;this.eachLayer((function(t){t.__builtin__?n.drawImage(t.dom,0,0,r,i):t.renderToCanvas&&(n.save(),t.renderToCanvas(n),n.restore())}))}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,l=a.length;s<l;s++){var u=a[s];cb(n,u,o,s===l-1)}return e.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}(),MC=AC;function TC(t){t.registerPainter("canvas",MC)}var IC=Math.sin,EC=Math.cos,PC=Math.PI,jC=2*Math.PI,LC=180/PC,DC=function(){function t(){}return t.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},t.prototype.moveTo=function(t,e){this._add("M",t,e)},t.prototype.lineTo=function(t,e){this._add("L",t,e)},t.prototype.bezierCurveTo=function(t,e,n,r,i,o){this._add("C",t,e,n,r,i,o)},t.prototype.quadraticCurveTo=function(t,e,n,r){this._add("Q",t,e,n,r)},t.prototype.arc=function(t,e,n,r,i,o){this.ellipse(t,e,n,n,0,r,i,o)},t.prototype.ellipse=function(t,e,n,r,i,o,a,s){var l=a-o,u=!s,c=Math.abs(l),h=Object(Je["j"])(c-jC)||(u?l>=jC:-l>=jC),f=l>0?l%jC:l%jC+jC,d=!1;d=!!h||!Object(Je["j"])(c)&&f>=PC===!!u;var p=t+n*EC(o),g=e+r*IC(o);this._start&&this._add("M",p,g);var v=Math.round(i*LC);if(h){var y=1/this._p,m=(u?1:-1)*(jC-y);this._add("A",n,r,v,1,+u,t+n*EC(o+m),e+r*IC(o+m)),y>.01&&this._add("A",n,r,v,0,+u,p,g)}else{var b=t+n*EC(a),_=e+r*IC(a);this._add("A",n,r,v,+d,+u,b,_)}},t.prototype.rect=function(t,e,n,r){this._add("M",t,e),this._add("l",n,0),this._add("l",0,r),this._add("l",-n,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(t,e,n,r,i,o,a,s,l){for(var u=[],c=this._p,h=1;h<arguments.length;h++){var f=arguments[h];if(isNaN(f))return void(this._invalid=!0);u.push(Math.round(f*c)/c)}this._d.push(t+u.join(" ")),this._start="Z"===t},t.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},t.prototype.getStr=function(){return this._str},t}(),RC=DC,NC="none",BC=Math.round;function FC(t){var e=t.fill;return null!=e&&e!==NC}function zC(t){var e=t.stroke;return null!=e&&e!==NC}var VC=["lineCap","miterLimit","lineJoin"],qC=Object(v["map"])(VC,(function(t){return"stroke-"+t.toLowerCase()}));function GC(t,e,n,r){var i=null==e.opacity?1:e.opacity;if(n instanceof gs)t("opacity",i);else{if(FC(e)){var o=Object(Je["p"])(e.fill);t("fill",o.color);var a=null!=e.fillOpacity?e.fillOpacity*o.opacity*i:o.opacity*i;(r||a<1)&&t("fill-opacity",a)}else t("fill",NC);if(zC(e)){var s=Object(Je["p"])(e.stroke);t("stroke",s.color);var l=e.strokeNoScale?n.getLineScale():1,u=l?(e.lineWidth||0)/l:0,c=null!=e.strokeOpacity?e.strokeOpacity*s.opacity*i:s.opacity*i,h=e.strokeFirst;if((r||1!==u)&&t("stroke-width",u),(r||h)&&t("paint-order",h?"stroke":"fill"),(r||c<1)&&t("stroke-opacity",c),e.lineDash){var f=Nm(n),d=f[0],p=f[1];d&&(p=BC(p||0),t("stroke-dasharray",d.join(",")),(p||r)&&t("stroke-dashoffset",p))}else r&&t("stroke-dasharray",NC);for(var g=0;g<VC.length;g++){var v=VC[g];if(r||e[v]!==rs[v]){var y=e[v]||rs[v];y&&t(qC[g],y)}}}else r&&t("stroke",NC)}}var HC="http://www.w3.org/2000/svg",WC="http://www.w3.org/1999/xlink",UC="http://www.w3.org/2000/xmlns/",$C="http://www.w3.org/XML/1998/namespace";function YC(t){return document.createElementNS(HC,t)}function XC(t,e,n,r,i){return{tag:t,attrs:n||{},children:r,text:i,key:e}}function KC(t,e){var n=[];if(e)for(var r in e){var i=e[r],o=r;!1!==i&&(!0!==i&&null!=i&&(o+='="'+i+'"'),n.push(o))}return"<"+t+" "+n.join(" ")+">"}function ZC(t){return"</"+t+">"}function QC(t,e){e=e||{};var n=e.newline?"\n":"";function r(t){var e=t.children,i=t.tag,o=t.attrs;return KC(i,o)+ot(t.text)+(e?""+n+Object(v["map"])(e,(function(t){return r(t)})).join(n)+n:"")+ZC(i)}return r(t)}function JC(t,e,n){n=n||{};var r=n.newline?"\n":"",i=" {"+r,o=r+"}",a=Object(v["map"])(Object(v["keys"])(t),(function(e){return e+i+Object(v["map"])(Object(v["keys"])(t[e]),(function(n){return n+":"+t[e][n]+";"})).join(r)+o})).join(r),s=Object(v["map"])(Object(v["keys"])(e),(function(t){return"@keyframes "+t+i+Object(v["map"])(Object(v["keys"])(e[t]),(function(n){return n+i+Object(v["map"])(Object(v["keys"])(e[t][n]),(function(r){var i=e[t][n][r];return"d"===r&&(i='path("'+i+'")'),r+":"+i+";"})).join(r)+o})).join(r)+o})).join(r);return a||s?["<![CDATA[",a,s,"]]>"].join(r):""}function tk(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function ek(t,e,n,r){return XC("svg","root",{width:t,height:e,xmlns:HC,"xmlns:xlink":WC,version:"1.1",baseProfile:"full",viewBox:!!r&&"0 0 "+t+" "+e},n)}var nk={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},rk="transform-origin";function ik(t,e,n){var r=Object(v["extend"])({},t.shape);Object(v["extend"])(r,e),t.buildPath(n,r);var i=new RC;return i.reset(Object(Je["f"])(t)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function ok(t,e){var n=e.originX,r=e.originY;(n||r)&&(t[rk]=n+"px "+r+"px")}var ak={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function sk(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function lk(t,e,n){var r,i,o=t.shape.paths,a={};if(Object(v["each"])(o,(function(t){var e=tk(n.zrId);e.animation=!0,ck(t,{},e,!0);var o=e.cssAnims,s=e.cssNodes,l=Object(v["keys"])(o),u=l.length;if(u){i=l[u-1];var c=o[i];for(var h in c){var f=c[h];a[h]=a[h]||{d:""},a[h].d+=f.d||""}for(var d in s){var p=s[d].animation;p.indexOf(i)>=0&&(r=p)}}})),r){e.d=!1;var s=sk(a,n);return r.replace(i,s)}}function uk(t){return Object(v["isString"])(t)?nk[t]?"cubic-bezier("+nk[t]+")":Xe(t)?t:"":""}function ck(t,e,n,r){var i=t.animators,o=i.length,a=[];if(t instanceof hv){var s=lk(t,e,n);if(s)a.push(s);else if(!o)return}else if(!o)return;for(var l={},u=0;u<o;u++){var c=i[u],h=[c.getMaxTime()/1e3+"s"],f=uk(c.getClip().easing),d=c.getDelay();f?h.push(f):h.push("linear"),d&&h.push(d/1e3+"s"),c.getLoop()&&h.push("infinite");var p=h.join(" ");l[p]=l[p]||[p,[]],l[p][1].push(c)}function g(i){var o,a=i[1],s=a.length,l={},u={},c={},h="animation-timing-function";function f(t,e,n){for(var r=t.getTracks(),i=t.getMaxTime(),o=0;o<r.length;o++){var a=r[o];if(a.needsAnimate()){var s=a.keyframes,l=a.propName;if(n&&(l=n(l)),l)for(var u=0;u<s.length;u++){var c=s[u],f=Math.round(c.time/i*100)+"%",d=uk(c.easing),p=c.rawValue;(Object(v["isString"])(p)||Object(v["isNumber"])(p))&&(e[f]=e[f]||{},e[f][l]=c.rawValue,d&&(e[f][h]=d))}}}}for(var d=0;d<s;d++){var p=a[d],g=p.targetName;g?"shape"===g&&f(p,u):!r&&f(p,l)}for(var y in l){var m={};ur(m,t),Object(v["extend"])(m,l[y]);var b=Object(Je["g"])(m),_=l[y][h];c[y]=b?{transform:b}:{},ok(c[y],m),_&&(c[y][h]=_)}var x=!0;for(var y in u){c[y]=c[y]||{};var w=!o;_=u[y][h];w&&(o=new Da);var S=o.len();o.reset(),c[y].d=ik(t,u[y],o);var O=o.len();if(!w&&S!==O){x=!1;break}_&&(c[y][h]=_)}if(!x)for(var y in c)delete c[y].d;if(!r)for(d=0;d<s;d++){p=a[d],g=p.targetName;"style"===g&&f(p,c,(function(t){return ak[t]}))}var C,k=Object(v["keys"])(c),A=!0;for(d=1;d<k.length;d++){var M=k[d-1],T=k[d];if(c[M][rk]!==c[T][rk]){A=!1;break}C=c[M][rk]}if(A&&C){for(var y in c)c[y][rk]&&delete c[y][rk];e[rk]=C}if(Object(v["filter"])(k,(function(t){return Object(v["keys"])(c[t]).length>0})).length){var I=sk(c,n);return I+" "+i[0]+" both"}}for(var y in l){s=g(l[y]);s&&a.push(s)}if(a.length){var m=n.zrId+"-cls-"+n.cssClassIdx++;n.cssNodes["."+m]={animation:a.join(",")},e["class"]=m}}var hk=Math.round;function fk(t){return t&&Object(v["isString"])(t.src)}function dk(t){return t&&Object(v["isFunction"])(t.toDataURL)}function pk(t,e,n,r){GC((function(i,o){var a="fill"===i||"stroke"===i;a&&Object(Je["k"])(o)?Mk(e,t,i,r):a&&Object(Je["n"])(o)?Tk(n,t,i,r):t[i]=o}),e,n,!1),Ak(n,t,r)}function gk(t){return Object(Je["j"])(t[0]-1)&&Object(Je["j"])(t[1])&&Object(Je["j"])(t[2])&&Object(Je["j"])(t[3]-1)}function vk(t){return Object(Je["j"])(t[4])&&Object(Je["j"])(t[5])}function yk(t,e,n){if(e&&(!vk(e)||!gk(e))){var r=n?10:1e4;t.transform=gk(e)?"translate("+hk(e[4]*r)/r+" "+hk(e[5]*r)/r+")":Object(Je["e"])(e)}}function mk(t,e,n){for(var r=t.points,i=[],o=0;o<r.length;o++)i.push(hk(r[o][0]*n)/n),i.push(hk(r[o][1]*n)/n);e.points=i.join(" ")}function bk(t){return!t.smooth}function _k(t){var e=Object(v["map"])(t,(function(t){return"string"===typeof t?[t,t]:t}));return function(t,n,r){for(var i=0;i<e.length;i++){var o=e[i],a=t[o[0]];null!=a&&(n[o[1]]=hk(a*r)/r)}}}var xk={circle:[_k(["cx","cy","r"])],polyline:[mk,bk],polygon:[mk,bk]};function wk(t){for(var e=t.animators,n=0;n<e.length;n++)if("shape"===e[n].targetName)return!0;return!1}function Sk(t,e){var n=t.style,r=t.shape,i=xk[t.type],o={},a=e.animation,s="path",l=t.style.strokePercent,u=e.compress&&Object(Je["f"])(t)||4;if(!i||e.willUpdate||i[1]&&!i[1](r)||a&&wk(t)||l<1){t.path||t.createPathProxy();var c=t.path;t.shapeChanged()&&(c.beginPath(),t.buildPath(c,t.shape),t.pathUpdated());var h=c.getVersion(),f=t,d=f.__svgPathBuilder;f.__svgPathVersion===h&&d&&l===f.__svgPathStrokePercent||(d||(d=f.__svgPathBuilder=new RC),d.reset(u),c.rebuildPath(d,l),d.generateStr(),f.__svgPathVersion=h,f.__svgPathStrokePercent=l),o.d=d.getStr()}else{s=t.type;var p=Math.pow(10,u);i[0](r,o,p)}return yk(o,t.transform),pk(o,n,t,e),e.animation&&ck(t,o,e),XC(s,t.id+"",o)}function Ok(t,e){var n=t.style,r=n.image;if(r&&!Object(v["isString"])(r)&&(fk(r)?r=r.src:dk(r)&&(r=r.toDataURL())),r){var i=n.x||0,o=n.y||0,a=n.width,s=n.height,l={href:r,width:a,height:s};return i&&(l.x=i),o&&(l.y=o),yk(l,t.transform),pk(l,n,t,e),e.animation&&ck(t,l,e),XC("image",t.id+"",l)}}function Ck(t,e){var n=t.style,r=n.text;if(null!=r&&(r+=""),r&&!isNaN(n.x)&&!isNaN(n.y)){var i=n.font||fr["a"],o=n.x||0,a=Object(Je["b"])(n.y||0,br(i),n.textBaseline),s=Je["a"][n.textAlign]||n.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(Ls(n)){var u="",c=n.fontStyle,h=Ps(n.fontSize);if(!parseFloat(h))return;var f=n.fontFamily||fr["b"],d=n.fontWeight;u+="font-size:"+h+";font-family:"+f+";",c&&"normal"!==c&&(u+="font-style:"+c+";"),d&&"normal"!==d&&(u+="font-weight:"+d+";"),l.style=u}else l.style="font: "+i;return r.match(/\s/)&&(l["xml:space"]="preserve"),o&&(l.x=o),a&&(l.y=a),yk(l,t.transform),pk(l,n,t,e),e.animation&&ck(t,l,e),XC("text",t.id+"",l,void 0,r)}}function kk(t,e){return t instanceof ss?Sk(t,e):t instanceof gs?Ok(t,e):t instanceof cs?Ck(t,e):void 0}function Ak(t,e,n){var r=t.style;if(Object(Je["i"])(r)){var i=Object(Je["h"])(t),o=n.shadowCache,a=o[i];if(!a){var s=t.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var c=r.shadowOffsetX||0,h=r.shadowOffsetY||0,f=r.shadowBlur,d=Object(Je["p"])(r.shadowColor),p=d.opacity,g=d.color,v=f/2/l,y=f/2/u,m=v+" "+y;a=n.zrId+"-s"+n.shadowIdx++,n.defs[a]=XC("filter",a,{id:a,x:"-100%",y:"-100%",width:"300%",height:"300%"},[XC("feDropShadow","",{dx:c/l,dy:h/u,stdDeviation:m,"flood-color":g,"flood-opacity":p})]),o[i]=a}e.filter=Object(Je["d"])(a)}}function Mk(t,e,n,r){var i,o=t[n],a={gradientUnits:o.global?"userSpaceOnUse":"objectBoundingBox"};if(Object(Je["m"])(o))i="linearGradient",a.x1=o.x,a.y1=o.y,a.x2=o.x2,a.y2=o.y2;else{if(!Object(Je["o"])(o))return void 0;i="radialGradient",a.cx=Object(v["retrieve2"])(o.x,.5),a.cy=Object(v["retrieve2"])(o.y,.5),a.r=Object(v["retrieve2"])(o.r,.5)}for(var s=o.colorStops,l=[],u=0,c=s.length;u<c;++u){var h=100*Object(Je["q"])(s[u].offset)+"%",f=s[u].color,d=Object(Je["p"])(f),p=d.color,g=d.opacity,y={offset:h};y["stop-color"]=p,g<1&&(y["stop-opacity"]=g),l.push(XC("stop",u+"",y))}var m=XC(i,"",a,l),b=QC(m),_=r.gradientCache,x=_[b];x||(x=r.zrId+"-g"+r.gradientIdx++,_[b]=x,a.id=x,r.defs[x]=XC(i,x,a,l)),e[n]=Object(Je["d"])(x)}function Tk(t,e,n,r){var i,o=t.style[n],a={patternUnits:"userSpaceOnUse"};if(Object(Je["l"])(o)){var s=o.imageWidth,l=o.imageHeight,u=void 0,c=o.image;if(Object(v["isString"])(c)?u=c:fk(c)?u=c.src:dk(c)&&(u=c.toDataURL()),"undefined"===typeof Image){var h="Image width/height must been given explictly in svg-ssr renderer.";Object(v["assert"])(s,h),Object(v["assert"])(l,h)}else if(null==s||null==l){var f=function(t,e){if(t){var n=t.elm,r=t.attrs.width=s||e.width,i=t.attrs.height=l||e.height;n&&(n.setAttribute("width",r),n.setAttribute("height",i))}},d=Ao(u,null,t,(function(t){f(p,t),f(i,t)}));d&&d.width&&d.height&&(s=s||d.width,l=l||d.height)}i=XC("image","img",{href:u,width:s,height:l}),a.width=s,a.height=l}else o.svgElement&&(i=Object(v["clone"])(o.svgElement),a.width=o.svgWidth,a.height=o.svgHeight);if(i){a.patternTransform=Object(Je["g"])(o);var p=XC("pattern","",a,[i]),g=QC(p),y=r.patternCache,m=y[g];m||(m=r.zrId+"-p"+r.patternIdx++,y[g]=m,a.id=m,p=r.defs[m]=XC("pattern",m,a,[i])),e[n]=Object(Je["d"])(m)}}function Ik(t,e,n){var r=n.clipPathCache,i=n.defs,o=r[t.id];if(!o){o=n.zrId+"-c"+n.clipPathIdx++;var a={id:o};r[t.id]=o,i[o]=XC("clipPath",o,a,[Sk(t,n)])}e["clip-path"]=Object(Je["d"])(o)}function Ek(t){return document.createTextNode(t)}function Pk(t,e,n){t.insertBefore(e,n)}function jk(t,e){t.removeChild(e)}function Lk(t,e){t.appendChild(e)}function Dk(t){return t.parentNode}function Rk(t){return t.nextSibling}function Nk(t,e){t.textContent=e}var Bk=58,Fk=120,zk=XC("","");function Vk(t){return void 0===t}function qk(t){return void 0!==t}function Gk(t,e,n){for(var r={},i=e;i<=n;++i){var o=t[i].key;void 0!==o&&(r[o]=i)}return r}function Hk(t,e){var n=t.key===e.key,r=t.tag===e.tag;return r&&n}function Wk(t){var e,n=t.children,r=t.tag;if(qk(r)){var i=t.elm=YC(r);if(Yk(zk,t),Object(v["isArray"])(n))for(e=0;e<n.length;++e){var o=n[e];null!=o&&Lk(i,Wk(o))}else qk(t.text)&&!Object(v["isObject"])(t.text)&&Lk(i,Ek(t.text))}else t.elm=Ek(t.text);return t.elm}function Uk(t,e,n,r,i){for(;r<=i;++r){var o=n[r];null!=o&&Pk(t,Wk(o),e)}}function $k(t,e,n,r){for(;n<=r;++n){var i=e[n];if(null!=i)if(qk(i.tag)){var o=Dk(i.elm);jk(o,i.elm)}else jk(t,i.elm)}}function Yk(t,e){var n,r=e.elm,i=t&&t.attrs||{},o=e.attrs||{};if(i!==o){for(n in o){var a=o[n],s=i[n];s!==a&&(!0===a?r.setAttribute(n,""):!1===a?r.removeAttribute(n):n.charCodeAt(0)!==Fk?r.setAttribute(n,a):"xmlns:xlink"===n||"xmlns"===n?r.setAttributeNS(UC,n,a):n.charCodeAt(3)===Bk?r.setAttributeNS($C,n,a):n.charCodeAt(5)===Bk?r.setAttributeNS(WC,n,a):r.setAttribute(n,a))}for(n in i)n in o||r.removeAttribute(n)}}function Xk(t,e,n){var r,i,o,a,s=0,l=0,u=e.length-1,c=e[0],h=e[u],f=n.length-1,d=n[0],p=n[f];while(s<=u&&l<=f)null==c?c=e[++s]:null==h?h=e[--u]:null==d?d=n[++l]:null==p?p=n[--f]:Hk(c,d)?(Kk(c,d),c=e[++s],d=n[++l]):Hk(h,p)?(Kk(h,p),h=e[--u],p=n[--f]):Hk(c,p)?(Kk(c,p),Pk(t,c.elm,Rk(h.elm)),c=e[++s],p=n[--f]):Hk(h,d)?(Kk(h,d),Pk(t,h.elm,c.elm),h=e[--u],d=n[++l]):(Vk(r)&&(r=Gk(e,s,u)),i=r[d.key],Vk(i)?Pk(t,Wk(d),c.elm):(o=e[i],o.tag!==d.tag?Pk(t,Wk(d),c.elm):(Kk(o,d),e[i]=void 0,Pk(t,o.elm,c.elm))),d=n[++l]);(s<=u||l<=f)&&(s>u?(a=null==n[f+1]?null:n[f+1].elm,Uk(t,a,n,l,f)):$k(t,e,s,u))}function Kk(t,e){var n=e.elm=t.elm,r=t.children,i=e.children;t!==e&&(Yk(t,e),Vk(e.text)?qk(r)&&qk(i)?r!==i&&Xk(n,r,i):qk(i)?(qk(t.text)&&Nk(n,""),Uk(n,null,i,0,i.length-1)):qk(r)?$k(n,r,0,r.length-1):qk(t.text)&&Nk(n,""):t.text!==e.text&&(qk(r)&&$k(n,r,0,r.length-1),Nk(n,e.text)))}function Zk(t,e){if(Hk(t,e))Kk(t,e);else{var n=t.elm,r=Dk(n);Wk(e),null!==r&&(Pk(r,e.elm,Rk(n)),$k(r,[t],0,0))}return e}var Qk=0,Jk=function(){function t(t,e,n){if(this.type="svg",this.refreshHover=tA("refreshHover"),this.configLayer=tA("configLayer"),this.storage=e,this._opts=n=Object(v["extend"])({},n),this.root=t,this._id="zr"+Qk++,this._oldVNode=ek(n.width,n.height),t&&!n.ssr){var r=this._viewport=document.createElement("div");r.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=YC("svg");Yk(null,this._oldVNode),r.appendChild(i),t.appendChild(r)}this.resize(n.width,n.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",Zk(this._oldVNode,t),this._oldVNode=t}},t.prototype.renderOneToVNode=function(t){return kk(t,tk(this._id))},t.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._backgroundColor,r=this._width,i=this._height,o=tk(this._id);o.animation=t.animation,o.willUpdate=t.willUpdate,o.compress=t.compress;var a=[];if(n&&"none"!==n){var s=Object(Je["p"])(n),l=s.color,u=s.opacity;this._bgVNode=XC("rect","bg",{width:r,height:i,x:"0",y:"0",id:"0",fill:l,"fill-opacity":u}),a.push(this._bgVNode)}else this._bgVNode=null;var c=t.compress?null:this._mainVNode=XC("g","main",{},[]);this._paintList(e,o,c?c.children:a),c&&a.push(c);var h=Object(v["map"])(Object(v["keys"])(o.defs),(function(t){return o.defs[t]}));if(h.length&&a.push(XC("defs","defs",{},h)),t.animation){var f=JC(o.cssNodes,o.cssAnims,{newline:!0});if(f){var d=XC("style","stl",{},[],f);a.push(d)}}return ek(r,i,a,t.useViewBox)},t.prototype.renderToString=function(t){return t=t||{},QC(this.renderToVNode({animation:Object(v["retrieve2"])(t.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:Object(v["retrieve2"])(t.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t;var e=this._bgVNode;if(e&&e.elm){var n=Object(Je["p"])(t),r=n.color,i=n.opacity;e.elm.setAttribute("fill",r),i<1&&e.elm.setAttribute("fill-opacity",i)}},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(t,e,n){for(var r,i,o=t.length,a=[],s=0,l=0,u=0;u<o;u++){var c=t[u];if(!c.invisible){var h=c.__clipPaths,f=h&&h.length||0,d=i&&i.length||0,p=void 0;for(p=Math.max(f-1,d-1);p>=0;p--)if(h&&i&&h[p]===i[p])break;for(var g=d-1;g>p;g--)s--,r=a[s-1];for(var v=p+1;v<f;v++){var y={};Ik(h[v],y,e);var m=XC("g","clip-g-"+l++,y,[]);(r?r.children:n).push(m),a[s++]=m,r=m}i=h;var b=kk(c,e);b&&(r?r.children:n).push(b)}}},t.prototype.resize=function(t,e){var n=this._opts,r=this.root,i=this._viewport;if(null!=t&&(n.width=t),null!=e&&(n.height=e),r&&i&&(i.style.display="none",t=Dm(r,0,n),e=Dm(r,1,n),i.style.display=""),this._width!==t||this._height!==e){if(this._width=t,this._height=e,i){var o=i.style;o.width=t+"px",o.height=e+"px"}var a=this._svgDom;a&&(a.setAttribute("width",t),a.setAttribute("height",e))}},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},t.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},t.prototype.toDataURL=function(t){var e=encodeURIComponent(this.renderToString()),n="data:image/svg+xml;";return t?(e=Object(Je["c"])(e),e&&n+"base64,"+e):n+"charset=UTF-8,"+e},t}();function tA(t){return function(){0}}var eA=Jk;function nA(t){t.registerPainter("svg",eA)}var rA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return p(e,t),e.prototype.getInitialData=function(t){return dw(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var e=new Nr,n=km("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);e.add(n),n.setStyle(t.lineStyle);var r=this.getData().getVisual("symbol"),i=this.getData().getVisual("symbolRotate"),o="none"===r?"circle":r,a=.8*t.itemHeight,s=km(o,(t.itemWidth-a)/2,(t.itemHeight-a)/2,a,a,t.itemStyle.fill);e.add(s),s.setStyle(t.itemStyle);var l="inherit"===t.iconRotate?i:t.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([t.itemWidth/2,t.itemHeight/2]),o.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),e},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(Hp),iA=rA;function oA(t,e){var n=t.mapDimensionsAll("defaultedLabel"),r=n.length;if(1===r){var i=xd(t,e,n[0]);return null!=i?i+"":null}if(r){for(var o=[],a=0;a<n.length;a++)o.push(xd(t,e,n[a]));return o.join(" ")}}function aA(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!Object(v["isArray"])(e))return e+"";for(var r=[],i=0;i<n.length;i++){var o=t.getDimensionIndex(n[i]);o>=0&&r.push(e[o])}return r.join(" ")}var sA=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o.updateData(e,n,r,i),o}return p(e,t),e.prototype._createSymbol=function(t,e,n,r,i){this.removeAll();var o=km(t,-1,-1,2,2,null,i);o.attr({z2:100,culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),o.drift=lA,this._symbolType=t,this.add(o)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){Ml(this.childAt(0))},e.prototype.downplay=function(){Tl(this.childAt(0))},e.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},e.prototype.setDraggable=function(t,e){var n=this.childAt(0);n.draggable=t,n.cursor=!e&&t?"move":n.cursor},e.prototype.updateData=function(t,n,r,i){this.silent=!1;var o=t.getItemVisual(n,"symbol")||"circle",a=t.hostModel,s=e.getSymbolSize(t,n),l=o!==this._symbolType,u=i&&i.disableAnimation;if(l){var c=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,t,n,s,c)}else{var h=this.childAt(0);h.silent=!1;var f={scaleX:s[0]/2,scaleY:s[1]/2};u?h.attr(f):lu(h,f,a,n),pu(h)}if(this._updateCommon(t,n,s,r,i),l){h=this.childAt(0);if(!u){f={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,uu(h,f,a,n)}}u&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,n,r,i){var o,a,s,l,u,c,h,f,d,p=this.childAt(0),g=t.hostModel;if(r&&(o=r.emphasisItemStyle,a=r.blurItemStyle,s=r.selectItemStyle,l=r.focus,u=r.blurScope,h=r.labelStatesModels,f=r.hoverScale,d=r.cursorStyle,c=r.emphasisDisabled),!r||t.hasItemOption){var y=r&&r.itemModel?r.itemModel:t.getItemModel(e),m=y.getModel("emphasis");o=m.getModel("itemStyle").getItemStyle(),s=y.getModel(["select","itemStyle"]).getItemStyle(),a=y.getModel(["blur","itemStyle"]).getItemStyle(),l=m.get("focus"),u=m.get("blurScope"),c=m.get("disabled"),h=_u(y),f=m.getShallow("scale"),d=y.getShallow("cursor")}var b=t.getItemVisual(e,"symbolRotate");p.attr("rotation",(b||0)*Math.PI/180||0);var _=Mm(t.getItemVisual(e,"symbolOffset"),n);_&&(p.x=_[0],p.y=_[1]),d&&p.attr("cursor",d);var x=t.getItemVisual(e,"style"),w=x.fill;if(p instanceof gs){var S=p.style;p.useStyle(Object(v["extend"])({image:S.image,x:S.x,y:S.y,width:S.width,height:S.height},x))}else p.__isEmptyBrush?p.useStyle(Object(v["extend"])({},x)):p.useStyle(x),p.style.decal=null,p.setColor(w,i&&i.symbolInnerColor),p.style.strokeNoScale=!0;var O=t.getItemVisual(e,"liftZ"),C=this._z2;null!=O?null==C&&(this._z2=p.z2,p.z2+=O):null!=C&&(p.z2=C,this._z2=null);var k=i&&i.useNameLabel;function A(e){return k?t.getName(e):oA(t,e)}bu(p,h,{labelFetcher:g,labelDataIndex:e,defaultText:A,inheritColor:w,defaultOpacity:x.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var M=p.ensureState("emphasis");M.style=o,p.ensureState("select").style=s,p.ensureState("blur").style=a;var T=null==f||!0===f?Math.max(1.1,3/this._sizeY):isFinite(f)&&f>0?+f:1;M.scaleX=this._sizeX*T,M.scaleY=this._sizeY*T,this.setSymbolScale(1),$l(this,l,u,c)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e,n){var r=this.childAt(0),i=Gs(this).dataIndex,o=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var a=r.getTextContent();a&&hu(a,{style:{opacity:0}},e,{dataIndex:i,removeOpt:o,cb:function(){r.removeTextContent()}})}else r.removeTextContent();hu(r,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:i,cb:t,removeOpt:o})},e.getSymbolSize=function(t,e){return Am(t.getItemVisual(e,"symbolSize"))},e}(Nr);function lA(t,e){this.parent.drift(t,e)}var uA=sA;function cA(t,e,n,r){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function hA(t){return null==t||Object(v["isObject"])(t)||(t={isIgnore:t}),t||{}}function fA(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:_u(e),cursorStyle:e.get("cursor")}}var dA=function(){function t(t){this.group=new Nr,this._SymbolCtor=t||uA}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=hA(e);var n=this.group,r=t.hostModel,i=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=fA(t),l={disableAnimation:a},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};i||n.removeAll(),t.diff(i).add((function(r){var i=u(r);if(cA(t,i,r,e)){var a=new o(t,r,s,l);a.setPosition(i),t.setItemGraphicEl(r,a),n.add(a)}})).update((function(c,h){var f=i.getItemGraphicEl(h),d=u(c);if(cA(t,d,c,e)){var p=t.getItemVisual(c,"symbol")||"circle",g=f&&f.getSymbolType&&f.getSymbolType();if(!f||g&&g!==p)n.remove(f),f=new o(t,c,s,l),f.setPosition(d);else{f.updateData(t,c,s,l);var v={x:d[0],y:d[1]};a?f.attr(v):lu(f,v,r)}n.add(f),t.setItemGraphicEl(c,f)}else n.remove(f)})).remove((function(t){var e=i.getItemGraphicEl(t);e&&e.fadeOut((function(){n.remove(e)}),r)})).execute(),this._getSymbolPoint=u,this._data=t},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl((function(e,n){var r=t._getSymbolPoint(n);e.setPosition(r),e.markRedraw()}))},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=fA(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function r(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=hA(n);for(var i=t.start;i<t.end;i++){var o=e.getItemLayout(i);if(cA(e,o,i,n)){var a=new this._SymbolCtor(e,i,this._seriesScope);a.traverse(r),a.setPosition(o),this.group.add(a),e.setItemGraphicEl(i,a),this._progressiveEls.push(a)}}},t.prototype.eachRendered=function(t){iy(this._progressiveEls||this.group,t)},t.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl((function(t){t.fadeOut((function(){e.remove(t)}),n.hostModel)})):e.removeAll()},t}(),pA=dA;function gA(t,e,n){var r=t.getBaseAxis(),i=t.getOtherAxis(r),o=vA(i,n),a=r.dim,s=i.dim,l=e.mapDimension(s),u=e.mapDimension(a),c="x"===s||"radius"===s?1:0,h=Object(v["map"])(t.dimensions,(function(t){return e.mapDimension(t)})),f=!1,d=e.getCalculationInfo("stackResultDimension");return aw(e,h[0])&&(f=!0,h[0]=d),aw(e,h[1])&&(f=!0,h[1]=d),{dataDimsForPoint:h,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!f,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function vA(t,e){var n=0,r=t.scale.getExtent();return"start"===e?n=r[0]:"end"===e?n=r[1]:Object(v["isNumber"])(e)&&!isNaN(e)?n=e:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]),n}function yA(t,e,n,r){var i=NaN;t.stacked&&(i=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,r),a[1-o]=i,e.dataToPoint(a)}function mA(t,e){var n=[];return e.diff(t).add((function(t){n.push({cmd:"+",idx:t})})).update((function(t,e){n.push({cmd:"=",idx:e,idx1:t})})).remove((function(t){n.push({cmd:"-",idx:t})})).execute(),n}function bA(t,e,n,r,i,o,a,s){for(var l=mA(t,e),u=[],c=[],h=[],f=[],d=[],p=[],g=[],v=gA(i,e,a),y=t.getLayout("points")||[],m=e.getLayout("points")||[],b=0;b<l.length;b++){var _=l[b],x=!0,w=void 0,S=void 0;switch(_.cmd){case"=":w=2*_.idx,S=2*_.idx1;var O=y[w],C=y[w+1],k=m[S],A=m[S+1];(isNaN(O)||isNaN(C))&&(O=k,C=A),u.push(O,C),c.push(k,A),h.push(n[w],n[w+1]),f.push(r[S],r[S+1]),g.push(e.getRawIndex(_.idx1));break;case"+":var M=_.idx,T=v.dataDimsForPoint,I=i.dataToPoint([e.get(T[0],M),e.get(T[1],M)]);S=2*M,u.push(I[0],I[1]),c.push(m[S],m[S+1]);var E=yA(v,i,e,M);h.push(E[0],E[1]),f.push(r[S],r[S+1]),g.push(e.getRawIndex(M));break;case"-":x=!1}x&&(d.push(_),p.push(p.length))}p.sort((function(t,e){return g[t]-g[e]}));var P=u.length,j=Rw(P),L=Rw(P),D=Rw(P),R=Rw(P),N=[];for(b=0;b<p.length;b++){var B=p[b],F=2*b,z=2*B;j[F]=u[z],j[F+1]=u[z+1],L[F]=c[z],L[F+1]=c[z+1],D[F]=h[z],D[F+1]=h[z+1],R[F]=f[z],R[F+1]=f[z+1],N[b]=d[B]}return{current:j,next:L,stackedOnCurrent:D,stackedOnNext:R,status:N}}var _A=Math.min,xA=Math.max;function wA(t,e){return isNaN(t)||isNaN(e)}function SA(t,e,n,r,i,o,a,s,l){for(var u,c,h,f,d,p,g=n,v=0;v<r;v++){var y=e[2*g],m=e[2*g+1];if(g>=i||g<0)break;if(wA(y,m)){if(l){g+=o;continue}break}if(g===n)t[o>0?"moveTo":"lineTo"](y,m),h=y,f=m;else{var b=y-u,_=m-c;if(b*b+_*_<.5){g+=o;continue}if(a>0){var x=g+o,w=e[2*x],S=e[2*x+1];while(w===y&&S===m&&v<r)v++,x+=o,g+=o,w=e[2*x],S=e[2*x+1],y=e[2*g],m=e[2*g+1],b=y-u,_=m-c;var O=v+1;if(l)while(wA(w,S)&&O<r)O++,x+=o,w=e[2*x],S=e[2*x+1];var C=.5,k=0,A=0,M=void 0,T=void 0;if(O>=r||wA(w,S))d=y,p=m;else{k=w-u,A=S-c;var I=y-u,E=w-y,P=m-c,j=S-m,L=void 0,D=void 0;if("x"===s){L=Math.abs(I),D=Math.abs(E);var R=k>0?1:-1;d=y-R*L*a,p=m,M=y+R*D*a,T=m}else if("y"===s){L=Math.abs(P),D=Math.abs(j);var N=A>0?1:-1;d=y,p=m-N*L*a,M=y,T=m+N*D*a}else L=Math.sqrt(I*I+P*P),D=Math.sqrt(E*E+j*j),C=D/(D+L),d=y-k*a*(1-C),p=m-A*a*(1-C),M=y+k*a*C,T=m+A*a*C,M=_A(M,xA(w,y)),T=_A(T,xA(S,m)),M=xA(M,_A(w,y)),T=xA(T,_A(S,m)),k=M-y,A=T-m,d=y-k*L/D,p=m-A*L/D,d=_A(d,xA(u,y)),p=_A(p,xA(c,m)),d=xA(d,_A(u,y)),p=xA(p,_A(c,m)),k=y-d,A=m-p,M=y+k*D/L,T=m+A*D/L}t.bezierCurveTo(h,f,d,p,y,m),h=M,f=T}else t.lineTo(y,m)}u=y,c=m,g+=o}return v}var OA=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),CA=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return p(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new OA},e.prototype.buildPath=function(t,e){var n=e.points,r=0,i=n.length/2;if(e.connectNulls){for(;i>0;i--)if(!wA(n[2*i-2],n[2*i-1]))break;for(;r<i;r++)if(!wA(n[2*r],n[2*r+1]))break}while(r<i)r+=SA(t,n,r,i,i,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},e.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,r,i=this.path,o=i.data,a=Da.CMD,s="x"===e,l=[],u=0;u<o.length;){var c=o[u++],h=void 0,f=void 0,d=void 0,p=void 0,g=void 0,v=void 0,y=void 0;switch(c){case a.M:n=o[u++],r=o[u++];break;case a.L:if(h=o[u++],f=o[u++],y=s?(t-n)/(h-n):(t-r)/(f-r),y<=1&&y>=0){var m=s?(f-r)*y+r:(h-n)*y+n;return s?[t,m]:[m,t]}n=h,r=f;break;case a.C:h=o[u++],f=o[u++],d=o[u++],p=o[u++],g=o[u++],v=o[u++];var b=s?Re(n,h,d,g,t,l):Re(r,f,p,v,t,l);if(b>0)for(var _=0;_<b;_++){var x=l[_];if(x<=1&&x>=0){m=s?Le(r,f,p,v,x):Le(n,h,d,g,x);return s?[t,m]:[m,t]}}n=g,r=v;break}}},e}(ss),kA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e}(OA),AA=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return p(e,t),e.prototype.getDefaultShape=function(){return new kA},e.prototype.buildPath=function(t,e){var n=e.points,r=e.stackedOnPoints,i=0,o=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0;o--)if(!wA(n[2*o-2],n[2*o-1]))break;for(;i<o;i++)if(!wA(n[2*i],n[2*i+1]))break}while(i<o){var s=SA(t,n,i,o,o,1,e.smooth,a,e.connectNulls);SA(t,r,i+s-1,s,o,-1,e.stackedOnSmooth,a,e.connectNulls),i+=s+1,t.closePath()}},e}(ss);function MA(t,e,n,r,i){var o=t.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,c=n.get(["lineStyle","width"])||2;a-=c/2,s-=c/2,l+=c,u+=c,a=Math.floor(a),l=Math.round(l);var h=new Os({shape:{x:a,y:s,width:l,height:u}});if(e){var f=t.getBaseAxis(),d=f.isHorizontal(),p=f.inverse;d?(p&&(h.shape.x+=l),h.shape.width=0):(p||(h.shape.y+=u),h.shape.height=0);var g=Object(v["isFunction"])(i)?function(t){i(t,h)}:null;uu(h,{shape:{width:l,height:u,x:a,y:s}},n,null,r,g)}return h}function TA(t,e,n){var r=t.getArea(),i=ti(r.r0,1),o=ti(r.r,1),a=new zg({shape:{cx:ti(t.cx,1),cy:ti(t.cy,1),r0:i,r:o,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});if(e){var s="angle"===t.getBaseAxis().dim;s?a.shape.endAngle=r.startAngle:a.shape.r=i,uu(a,{shape:{endAngle:r.endAngle,r:o}},n)}return a}function IA(t,e,n,r,i){return t?"polar"===t.type?TA(t,e,n):"cartesian2d"===t.type?MA(t,e,n,r,i):null:null}function EA(t,e){return t.type===e}function PA(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return!0}}function jA(t){for(var e=1/0,n=1/0,r=-1/0,i=-1/0,o=0;o<t.length;){var a=t[o++],s=t[o++];isNaN(a)||(e=Math.min(a,e),r=Math.max(a,r)),isNaN(s)||(n=Math.min(s,n),i=Math.max(s,i))}return[[e,n],[r,i]]}function LA(t,e){var n=jA(t),r=n[0],i=n[1],o=jA(e),a=o[0],s=o[1];return Math.max(Math.abs(r[0]-a[0]),Math.abs(r[1]-a[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function DA(t){return v["isNumber"](t)?t:t?.5:0}function RA(t,e,n){if(!n.valueDim)return[];for(var r=e.count(),i=Rw(2*r),o=0;o<r;o++){var a=yA(n,t,e,o);i[2*o]=a[0],i[2*o+1]=a[1]}return i}function NA(t,e,n,r){var i=e.getBaseAxis(),o="x"===i.dim||"radius"===i.dim?0:1,a=[],s=0,l=[],u=[],c=[],h=[];if(r){for(s=0;s<t.length;s+=2)isNaN(t[s])||isNaN(t[s+1])||h.push(t[s],t[s+1]);t=h}for(s=0;s<t.length-2;s+=2)switch(c[0]=t[s+2],c[1]=t[s+3],u[0]=t[s],u[1]=t[s+1],a.push(u[0],u[1]),n){case"end":l[o]=c[o],l[1-o]=u[1-o],a.push(l[0],l[1]);break;case"middle":var f=(u[o]+c[o])/2,d=[];l[o]=d[o]=f,l[1-o]=u[1-o],d[1-o]=c[1-o],a.push(l[0],l[1]),a.push(d[0],d[1]);break;default:l[o]=u[o],l[1-o]=c[1-o],a.push(l[0],l[1])}return a.push(t[s++],t[s++]),a}function BA(t,e){var n,r,i=[],o=t.length;function a(t,e,n){var r=t.coord,i=(n-r)/(e.coord-r),o=Object(Qe["lerp"])(i,[t.color,e.color]);return{coord:n,color:o}}for(var s=0;s<o;s++){var l=t[s],u=l.coord;if(u<0)n=l;else{if(u>e){r?i.push(a(r,l,e)):n&&i.push(a(n,l,0),a(n,l,e));break}n&&(i.push(a(n,l,0)),n=null),i.push(l),r=l}}return i}function FA(t,e,n){var r=t.getVisual("visualMeta");if(r&&r.length&&t.count()&&"cartesian2d"===e.type){for(var i,o,a=r.length-1;a>=0;a--){var s=t.getDimensionInfo(r[a].dimension);if(i=s&&s.coordDim,"x"===i||"y"===i){o=r[a];break}}if(o){var l=e.getAxis(i),u=v["map"](o.stops,(function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}})),c=u.length,h=o.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),h.reverse());var f=BA(u,"x"===i?n.getWidth():n.getHeight()),d=f.length;if(!d&&c)return u[0].coord<0?h[1]?h[1]:u[c-1].color:h[0]?h[0]:u[0].color;var p=10,g=f[0].coord-p,y=f[d-1].coord+p,m=y-g;if(m<.001)return"transparent";v["each"](f,(function(t){t.offset=(t.coord-g)/m})),f.push({offset:d?f[d-1].offset:.5,color:h[1]||"transparent"}),f.unshift({offset:d?f[0].offset:.5,color:h[0]||"transparent"});var b=new gv(0,0,0,0,f,!0);return b[i]=g,b[i+"2"]=y,b}}}function zA(t,e,n){var r=t.get("showAllSymbol"),i="auto"===r;if(!r||i){var o=n.getAxesByScale("ordinal")[0];if(o&&(!i||!VA(o,e))){var a=e.mapDimension(o.dim),s={};return v["each"](o.getViewLabels(),(function(t){var e=o.scale.getRawOrdinalNumber(t.tickValue);s[e]=1})),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}function VA(t,e){var n=t.getExtent(),r=Math.abs(n[1]-n[0])/t.scale.count();isNaN(r)&&(r=0);for(var i=e.count(),o=Math.max(1,Math.round(i/5)),a=0;a<i;a+=o)if(1.5*uA.getSymbolSize(e,a)[t.isHorizontal()?1:0]>r)return!1;return!0}function qA(t,e){return isNaN(t)||isNaN(e)}function GA(t){for(var e=t.length/2;e>0;e--)if(!qA(t[2*e-2],t[2*e-1]))break;return e-1}function HA(t,e){return[t[2*e],t[2*e+1]]}function WA(t,e,n){for(var r,i,o=t.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u<o;u++)if(i=t[2*u+a],!isNaN(i)&&!isNaN(t[2*u+1-a]))if(0!==u){if(r<=e&&i>=e||r>=e&&i<=e){l=u;break}s=u,r=i}else r=i;return{range:[s,l],t:(e-r)/(i-r)}}function UA(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<Qs.length;e++)if(t.get([Qs[e],"endLabel","show"]))return!0;return!1}function $A(t,e,n,r){if(EA(e,"cartesian2d")){var i=r.getModel("endLabel"),o=i.get("valueAnimation"),a=r.getData(),s={lastFrameIndex:0},l=UA(r)?function(n,r){t._endLabelOnDuring(n,r,a,s,o,i,e)}:null,u=e.getBaseAxis().isHorizontal(),c=MA(e,n,r,(function(){var e=t._endLabel;e&&n&&null!=s.originalX&&e.attr({x:s.originalX,y:s.originalY})}),l);if(!r.get("clip",!0)){var h=c.shape,f=Math.max(h.width,h.height);u?(h.y-=f,h.height+=2*f):(h.x-=f,h.width+=2*f)}return l&&l(1,c),c}return TA(e,n,r)}function YA(t,e){var n=e.getBaseAxis(),r=n.isHorizontal(),i=n.inverse,o=r?i?"right":"left":"center",a=r?"middle":i?"top":"bottom";return{normal:{align:t.get("align")||o,verticalAlign:t.get("verticalAlign")||a}}}var XA=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.init=function(){var t=new Nr,e=new pA;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},e.prototype.render=function(t,e,n){var r=this,i=t.coordinateSystem,o=this.group,a=t.getData(),s=t.getModel("lineStyle"),l=t.getModel("areaStyle"),u=a.getLayout("points")||[],c="polar"===i.type,h=this._coordSys,f=this._symbolDraw,d=this._polyline,p=this._polygon,g=this._lineGroup,y=t.get("animation"),m=!l.isEmpty(),b=l.get("origin"),_=gA(i,a,b),x=m&&RA(i,a,_),w=t.get("showSymbol"),S=t.get("connectNulls"),O=w&&!c&&zA(t,a,i),C=this._data;C&&C.eachItemGraphicEl((function(t,e){t.__temp&&(o.remove(t),C.setItemGraphicEl(e,null))})),w||f.remove(),o.add(g);var k,A=!c&&t.get("step");i&&i.getArea&&t.get("clip",!0)&&(k=i.getArea(),null!=k.width?(k.x-=.1,k.y-=.1,k.width+=.2,k.height+=.2):k.r0&&(k.r0-=.5,k.r+=.5)),this._clipShapeForSymbol=k;var M=FA(a,i,n)||a.getVisual("style")[a.getVisual("drawType")];if(d&&h.type===i.type&&A===this._step){m&&!p?p=this._newPolygon(u,x):p&&!m&&(g.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(t,i,Qc(M));var T=g.getClipPath();if(T){var I=$A(this,i,!1,t);uu(T,{shape:I.shape},t)}else g.setClipPath($A(this,i,!0,t));w&&f.updateData(a,{isIgnore:O,clipShape:k,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),PA(this._stackedOnPoints,x)&&PA(this._points,u)||(y?this._doUpdateAnimation(a,x,i,n,A,b,S):(A&&(u=NA(u,i,A,S),x&&(x=NA(x,i,A,S))),d.setShape({points:u}),p&&p.setShape({points:u,stackedOnPoints:x})))}else w&&f.updateData(a,{isIgnore:O,clipShape:k,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),y&&this._initSymbolLabelAnimation(a,i,k),A&&(u=NA(u,i,A,S),x&&(x=NA(x,i,A,S))),d=this._newPolyline(u),m?p=this._newPolygon(u,x):p&&(g.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(t,i,Qc(M)),g.setClipPath($A(this,i,!0,t));var E=t.getModel("emphasis"),P=E.get("focus"),j=E.get("blurScope"),L=E.get("disabled");if(d.useStyle(v["defaults"](s.getLineStyle(),{fill:"none",stroke:M,lineJoin:"bevel"})),Zl(d,t,"lineStyle"),d.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"])){var D=d.getState("emphasis").style;D.lineWidth=+d.style.lineWidth+1}Gs(d).seriesIndex=t.seriesIndex,$l(d,P,j,L);var R=DA(t.get("smooth")),N=t.get("smoothMonotone");if(d.setShape({smooth:R,smoothMonotone:N,connectNulls:S}),p){var B=a.getCalculationInfo("stackedOnSeries"),F=0;p.useStyle(v["defaults"](l.getAreaStyle(),{fill:M,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),B&&(F=DA(B.get("smooth"))),p.setShape({smooth:R,stackedOnSmooth:F,smoothMonotone:N,connectNulls:S}),Zl(p,t,"areaStyle"),Gs(p).seriesIndex=t.seriesIndex,$l(p,P,j,L)}var z=function(t){r._changePolyState(t)};a.eachItemGraphicEl((function(t){t&&(t.onHoverStateChange=z)})),this._polyline.onHoverStateChange=z,this._data=a,this._coordSys=i,this._stackedOnPoints=x,this._points=u,this._step=A,this._valueOrigin=b,t.get("triggerLineEvent")&&(this.packEventData(t,d),p&&this.packEventData(t,p))},e.prototype.packEventData=function(t,e){Gs(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,e,n,r){var i=t.getData(),o=$i(i,r);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=i.getLayout("points"),s=i.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=t.get("zlevel")||0,h=t.get("z")||0;s=new uA(i,o),s.x=l,s.y=u,s.setZ(c,h);var f=s.getSymbolPath().getTextContent();f&&(f.zlevel=c,f.z=h,f.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else dy.prototype.highlight.call(this,t,e,n,r)},e.prototype.downplay=function(t,e,n,r){var i=t.getData(),o=$i(i,r);if(this._changePolyState("normal"),null!=o&&o>=0){var a=i.getItemGraphicEl(o);a&&(a.__temp?(i.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else dy.prototype.downplay.call(this,t,e,n,r)},e.prototype._changePolyState=function(t){var e=this._polygon;bl(this._polyline,t),e&&bl(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new CA({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},e.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new AA({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,e,n){var r,i,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(r=o.isHorizontal(),i=!1):"polar"===e.type&&(r="angle"===o.dim,i=!0);var s=t.hostModel,l=s.get("animationDuration");v["isFunction"](l)&&(l=l(null));var u=s.get("animationDelay")||0,c=v["isFunction"](u)?u(null):u;t.eachItemGraphicEl((function(t,o){var s=t;if(s){var h=[t.x,t.y],f=void 0,d=void 0,p=void 0;if(n)if(i){var g=n,y=e.pointToCoord(h);r?(f=g.startAngle,d=g.endAngle,p=-y[1]/180*Math.PI):(f=g.r0,d=g.r,p=y[0])}else{var m=n;r?(f=m.x,d=m.x+m.width,p=t.x):(f=m.y+m.height,d=m.y,p=t.y)}var b=d===f?0:(p-f)/(d-f);a&&(b=1-b);var _=v["isFunction"](u)?u(o):l*b+c,x=s.getSymbolPath(),w=x.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:_}),w&&w.animateFrom({style:{opacity:0}},{duration:300,delay:_}),x.disableLabelAnimation=!0}}))},e.prototype._initOrUpdateEndLabel=function(t,e,n){var r=t.getModel("endLabel");if(UA(t)){var i=t.getData(),o=this._polyline,a=i.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||(s=this._endLabel=new qs({z2:200}),s.ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=GA(a);l>=0&&(bu(o,_u(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,n){return null!=n?aA(i,n):oA(i,t)},enableTextSetter:!0},YA(r,e)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,e,n,r,i,o,a){var s=this._endLabel,l=this._polyline;if(s){t<1&&null==r.originalX&&(r.originalX=s.x,r.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,h=c.get("connectNulls"),f=o.get("precision"),d=o.get("distance")||0,p=a.getBaseAxis(),g=p.isHorizontal(),v=p.inverse,y=e.shape,m=v?g?y.x:y.y+y.height:g?y.x+y.width:y.y,b=(g?d:0)*(v?-1:1),_=(g?0:-d)*(v?-1:1),x=g?"x":"y",w=WA(u,m,x),S=w.range,O=S[1]-S[0],C=void 0;if(O>=1){if(O>1&&!h){var k=HA(u,S[0]);s.attr({x:k[0]+b,y:k[1]+_}),i&&(C=c.getRawValue(S[0]))}else{k=l.getPointOn(m,x);k&&s.attr({x:k[0]+b,y:k[1]+_});var A=c.getRawValue(S[0]),M=c.getRawValue(S[1]);i&&(C=oo(n,f,A,M,w.t))}r.lastFrameIndex=S[0]}else{var T=1===t||r.lastFrameIndex>0?S[0]:0;k=HA(u,T);i&&(C=c.getRawValue(T)),s.attr({x:k[0]+b,y:k[1]+_})}i&&Iu(s).setLabelText(C)}},e.prototype._doUpdateAnimation=function(t,e,n,r,i,o,a){var s=this._polyline,l=this._polygon,u=t.hostModel,c=bA(this._data,t,this._stackedOnPoints,e,this._coordSys,n,this._valueOrigin,o),h=c.current,f=c.stackedOnCurrent,d=c.next,p=c.stackedOnNext;if(i&&(h=NA(c.current,n,i,a),f=NA(c.stackedOnCurrent,n,i,a),d=NA(c.next,n,i,a),p=NA(c.stackedOnNext,n,i,a)),LA(h,d)>3e3||l&&LA(f,p)>3e3)return s.stopAnimation(),s.setShape({points:d}),void(l&&(l.stopAnimation(),l.setShape({points:d,stackedOnPoints:p})));s.shape.__points=c.current,s.shape.points=h;var g={shape:{points:d}};c.current!==h&&(g.shape.__points=c.next),s.stopAnimation(),lu(s,g,u),l&&(l.setShape({points:h,stackedOnPoints:f}),l.stopAnimation(),lu(l,{shape:{stackedOnPoints:p}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var v=[],y=c.status,m=0;m<y.length;m++){var b=y[m].cmd;if("="===b){var _=t.getItemGraphicEl(y[m].idx1);_&&v.push({el:_,ptIdx:m})}}s.animators&&s.animators.length&&s.animators[0].during((function(){l&&l.dirtyShape();for(var t=s.shape.__points,e=0;e<v.length;e++){var n=v[e].el,r=2*v[e].ptIdx;n.x=t[r],n.y=t[r+1],n.markRedraw()}}))},e.prototype.remove=function(t){var e=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl((function(t,r){t.__temp&&(e.remove(t),n.setItemGraphicEl(r,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(dy),KA=XA;function ZA(t,e){return{seriesType:t,plan:$p(),reset:function(t){var n=t.getData(),r=t.coordinateSystem,i=t.pipelineContext,o=e||i.large;if(r){var a=Object(v["map"])(r.dimensions,(function(t){return n.mapDimension(t)})).slice(0,2),s=a.length,l=n.getCalculationInfo("stackResultDimension");aw(n,a[0])&&(a[0]=l),aw(n,a[1])&&(a[1]=l);var u=n.getStore(),c=n.getDimensionIndex(a[0]),h=n.getDimensionIndex(a[1]);return s&&{progress:function(t,e){for(var n=t.end-t.start,i=o&&Rw(n*s),a=[],l=[],f=t.start,d=0;f<t.end;f++){var p=void 0;if(1===s){var g=u.get(c,f);p=r.dataToPoint(g,null,l)}else a[0]=u.get(c,f),a[1]=u.get(h,f),p=r.dataToPoint(a,null,l);o?(i[d++]=p[0],i[d++]=p[1]):e.setItemLayout(f,p.slice())}o&&e.setLayout("points",i)}}}}}}var QA={average:function(t){for(var e=0,n=0,r=0;r<t.length;r++)isNaN(t[r])||(e+=t[r],n++);return 0===n?NaN:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},JA=function(t){return Math.round(t.length/2)};function tM(t){return{seriesType:t,reset:function(t,e,n){var r=t.getData(),i=t.get("sampling"),o=t.coordinateSystem,a=r.count();if(a>10&&"cartesian2d"===o.type&&i){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),c=n.getDevicePixelRatio(),h=Math.abs(u[1]-u[0])*(c||1),f=Math.round(a/h);if(isFinite(f)&&f>1){"lttb"===i&&t.setData(r.lttbDownSample(r.mapDimension(l.dim),1/f));var d=void 0;Object(v["isString"])(i)?d=QA[i]:Object(v["isFunction"])(i)&&(d=i),d&&t.setData(r.downSample(r.mapDimension(l.dim),1/f,d,JA))}}}}}function eM(t){t.registerChartView(KA),t.registerSeriesModel(iA),t.registerLayout(ZA("line",!0)),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,tM("line"))}var nM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.getInitialData=function(t,e){return dw(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t){var e=this.coordinateSystem;if(e&&e.clampData){var n=e.dataToPoint(e.clampData(t)),r=this.getData(),i=r.getLayout("offset"),o=r.getLayout("size"),a=e.getBaseAxis().isHorizontal()?0:1;return n[a]+=i+o/2,n}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(Hp);Hp.registerClass(nM);var rM=nM,iM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.getInitialData=function(){return dw(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t},e.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=Ku(rM.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(rM),oM=iM,aM=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return t}(),sM=function(t){function e(e){var n=t.call(this,e)||this;return n.type="sausage",n}return p(e,t),e.prototype.getDefaultShape=function(){return new aM},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=.5*(o-i),s=i+a,l=e.startAngle,u=e.endAngle,c=e.clockwise,h=2*Math.PI,f=c?u-l<h:l-u<h;f||(l=u-(c?h:-h));var d=Math.cos(l),p=Math.sin(l),g=Math.cos(u),v=Math.sin(u);f?(t.moveTo(d*i+n,p*i+r),t.arc(d*s+n,p*s+r,a,-Math.PI+l,l,!c)):t.moveTo(d*o+n,p*o+r),t.arc(n,r,o,l,u,!c),t.arc(g*s+n,v*s+r,a,u-2*Math.PI,u-Math.PI,!c),0!==i&&t.arc(n,r,i,u,l,c)},e}(ss),lM=sM;function uM(t,e){e=e||{};var n=e.isRoundCap;return function(e,r,i){var o=r.position;if(!o||o instanceof Array)return xr(e,r,i);var a=t(o),s=null!=r.distance?r.distance:5,l=this.shape,u=l.cx,c=l.cy,h=l.r,f=l.r0,d=(h+f)/2,p=l.startAngle,g=l.endAngle,v=(p+g)/2,y=n?Math.abs(h-f)/2:0,m=Math.cos,b=Math.sin,_=u+h*m(p),x=c+h*b(p),w="left",S="top";switch(a){case"startArc":_=u+(f-s)*m(v),x=c+(f-s)*b(v),w="center",S="top";break;case"insideStartArc":_=u+(f+s)*m(v),x=c+(f+s)*b(v),w="center",S="bottom";break;case"startAngle":_=u+d*m(p)+hM(p,s+y,!1),x=c+d*b(p)+fM(p,s+y,!1),w="right",S="middle";break;case"insideStartAngle":_=u+d*m(p)+hM(p,-s+y,!1),x=c+d*b(p)+fM(p,-s+y,!1),w="left",S="middle";break;case"middle":_=u+d*m(v),x=c+d*b(v),w="center",S="middle";break;case"endArc":_=u+(h+s)*m(v),x=c+(h+s)*b(v),w="center",S="bottom";break;case"insideEndArc":_=u+(h-s)*m(v),x=c+(h-s)*b(v),w="center",S="top";break;case"endAngle":_=u+d*m(g)+hM(g,s+y,!0),x=c+d*b(g)+fM(g,s+y,!0),w="left",S="middle";break;case"insideEndAngle":_=u+d*m(g)+hM(g,-s+y,!0),x=c+d*b(g)+fM(g,-s+y,!0),w="right",S="middle";break;default:return xr(e,r,i)}return e=e||{},e.x=_,e.y=x,e.align=w,e.verticalAlign=S,e}}function cM(t,e,n,r){if(Object(v["isNumber"])(r))t.setTextConfig({rotation:r});else if(Object(v["isArray"])(e))t.setTextConfig({rotation:0});else{var i,o=t.shape,a=o.clockwise?o.startAngle:o.endAngle,s=o.clockwise?o.endAngle:o.startAngle,l=(a+s)/2,u=n(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":i=l;break;case"startAngle":case"insideStartAngle":i=a;break;case"endAngle":case"insideEndAngle":i=s;break;default:return void t.setTextConfig({rotation:0})}var c=1.5*Math.PI-i;"middle"===u&&c>Math.PI/2&&c<1.5*Math.PI&&(c-=Math.PI),t.setTextConfig({rotation:c})}}function hM(t,e,n){return e*Math.sin(t)*(n?-1:1)}function fM(t,e,n){return e*Math.cos(t)*(n?1:-1)}var dM=Math.max,pM=Math.min;function gM(t,e){var n=t.getArea&&t.getArea();if(EA(t,"cartesian2d")){var r=t.getBaseAxis();if("category"!==r.type||!r.onBand){var i=e.getLayout("bandWidth");r.isHorizontal()?(n.x-=i,n.width+=2*i):(n.y-=i,n.height+=2*i)}}return n}var vM=function(t){function e(){var n=t.call(this)||this;return n.type=e.type,n._isFirstFrame=!0,n}return p(e,t),e.prototype.render=function(t,e,n,r){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var i=t.get("coordinateSystem");("cartesian2d"===i||"polar"===i)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n,r))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,e){this._progressiveEls=[],this._incrementalRenderLarge(t,e)},e.prototype.eachRendered=function(t){iy(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t,e,n,r){var i,o=this.group,a=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?i=u.isHorizontal():"polar"===l.type&&(i="angle"===u.dim);var c=t.isAnimationEnabled()?t:null,h=bM(t,l);h&&this._enableRealtimeSort(h,a,n);var f=t.get("clip",!0)||h,d=gM(l,a);o.removeClipPath();var p=t.get("roundCap",!0),g=t.get("showBackground",!0),v=t.getModel("backgroundStyle"),y=v.get("borderRadius")||0,m=[],b=this._backgroundEls,_=r&&r.isInitSort,x=r&&"changeAxisOrder"===r.type;function w(t){var e=CM[l.type](a,t),n=RM(l,i,e);return n.useStyle(v.getItemStyle()),"cartesian2d"===l.type&&n.setShape("r",y),m[t]=n,n}a.diff(s).add((function(e){var n=a.getItemModel(e),r=CM[l.type](a,e,n);if(g&&w(e),a.hasValue(e)&&OM[l.type](r)){var s=!1;f&&(s=yM[l.type](d,r));var v=mM[l.type](t,a,e,r,i,c,u.model,!1,p);h&&(v.forceLabelAnimation=!0),MM(v,a,e,n,r,t,i,"polar"===l.type),_?v.attr({shape:r}):h?_M(h,c,v,r,e,i,!1,!1):uu(v,{shape:r},t,e),a.setItemGraphicEl(e,v),o.add(v),v.ignore=s}})).update((function(e,n){var r=a.getItemModel(e),S=CM[l.type](a,e,r);if(g){var O=void 0;0===b.length?O=w(n):(O=b[n],O.useStyle(v.getItemStyle()),"cartesian2d"===l.type&&O.setShape("r",y),m[e]=O);var C=CM[l.type](a,e),k=DM(i,C,l);lu(O,{shape:k},c,e)}var A=s.getItemGraphicEl(n);if(a.hasValue(e)&&OM[l.type](S)){var M=!1;if(f&&(M=yM[l.type](d,S),M&&o.remove(A)),A?pu(A):A=mM[l.type](t,a,e,S,i,c,u.model,!!A,p),h&&(A.forceLabelAnimation=!0),x){var T=A.getTextContent();if(T){var I=Iu(T);null!=I.prevValue&&(I.prevValue=I.value)}}else MM(A,a,e,r,S,t,i,"polar"===l.type);_?A.attr({shape:S}):h?_M(h,c,A,S,e,i,!0,x):lu(A,{shape:S},t,e,null),a.setItemGraphicEl(e,A),A.ignore=M,o.add(A)}else o.remove(A)})).remove((function(e){var n=s.getItemGraphicEl(e);n&&du(n,t,e)})).execute();var S=this._backgroundGroup||(this._backgroundGroup=new Nr);S.removeAll();for(var O=0;O<m.length;++O)S.add(m[O]);o.add(S),this._backgroundEls=m,this._data=a},e.prototype._renderLarge=function(t,e,n){this._clear(),PM(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,e){this._removeBackground(),PM(e,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var e=t.get("clip",!0)&&IA(t.coordinateSystem,!1,t),n=this.group;e?n.setClipPath(e):n.removeClipPath()},e.prototype._enableRealtimeSort=function(t,e,n){var r=this;if(e.count()){var i=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(e,t,n),this._isFirstFrame=!1;else{var o=function(t){var n=e.getItemGraphicEl(t),r=n&&n.shape;return r&&Math.abs(i.isHorizontal()?r.height:r.width)||0};this._onRendered=function(){r._updateSortWithinSameData(e,o,i,n)},n.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,e,n){var r=[];return t.each(t.mapDimension(e.dim),(function(t,e){var i=n(e);i=null==i?NaN:i,r.push({dataIndex:e,mappedValue:i,ordinalNumber:t})})),r.sort((function(t,e){return e.mappedValue-t.mappedValue})),{ordinalNumbers:Object(v["map"])(r,(function(t){return t.ordinalNumber}))}},e.prototype._isOrderChangedWithinSameData=function(t,e,n){for(var r=n.scale,i=t.mapDimension(n.dim),o=Number.MAX_VALUE,a=0,s=r.getOrdinalMeta().categories.length;a<s;++a){var l=t.rawIndexOf(i,r.getRawOrdinalNumber(a)),u=l<0?Number.MIN_VALUE:e(t.indexOfRawIndex(l));if(u>o)return!0;o=u}return!1},e.prototype._isOrderDifferentInView=function(t,e){for(var n=e.scale,r=n.getExtent(),i=Math.max(0,r[0]),o=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=o;++i)if(t.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},e.prototype._updateSortWithinSameData=function(t,e,n,r){if(this._isOrderChangedWithinSameData(t,e,n)){var i=this._dataSort(t,n,e);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:i}))}},e.prototype._dispatchInitSort=function(t,e,n){var r=e.baseAxis,i=this._dataSort(t,r,(function(n){return t.get(t.mapDimension(e.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:r.dim+"Axis",isInitSort:!0,axisId:r.index,sortInfo:i})},e.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},e.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var e=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(e){du(e,t,Gs(e).dataIndex)}))):e.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(dy),yM={cartesian2d:function(t,e){var n=e.width<0?-1:1,r=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height);var i=t.x+t.width,o=t.y+t.height,a=dM(e.x,t.x),s=pM(e.x+e.width,i),l=dM(e.y,t.y),u=pM(e.y+e.height,o),c=s<a,h=u<l;return e.x=c&&a>i?s:a,e.y=h&&l>o?u:l,e.width=c?0:s-a,e.height=h?0:u-l,n<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height),c||h},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var r=e.r;e.r=e.r0,e.r0=r}var i=pM(e.r,t.r),o=dM(e.r0,t.r0);e.r=i,e.r0=o;var a=i-o<0;if(n<0){r=e.r;e.r=e.r0,e.r0=r}return a}},mM={cartesian2d:function(t,e,n,r,i,o,a,s,l){var u=new Os({shape:Object(v["extend"])({},r),z2:1});if(u.__dataIndex=n,u.name="item",o){var c=u.shape,h=i?"height":"width";c[h]=0}return u},polar:function(t,e,n,r,i,o,a,s,l){var u=!i&&l?lM:zg,c=new u({shape:r,z2:1});c.name="item";var h=AM(i);if(c.calculateTextPosition=uM(h,{isRoundCap:u===lM}),o){var f=c.shape,d=i?"r":"endAngle",p={};f[d]=i?0:r.startAngle,p[d]=r[d],(s?lu:uu)(c,{shape:p},o)}return c}};function bM(t,e){var n=t.get("realtimeSort",!0),r=e.getBaseAxis();if(n&&"category"===r.type&&"cartesian2d"===e.type)return{baseAxis:r,otherAxis:e.getOtherAxis(r)}}function _M(t,e,n,r,i,o,a,s){var l,u;o?(u={x:r.x,width:r.width},l={y:r.y,height:r.height}):(u={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(a?lu:uu)(n,{shape:l},e,i,null);var c=e?t.baseAxis.model:null;(a?lu:uu)(n,{shape:u},c,i)}function xM(t,e){for(var n=0;n<e.length;n++)if(!isFinite(t[e[n]]))return!0;return!1}var wM=["x","y","width","height"],SM=["cx","cy","r","startAngle","endAngle"],OM={cartesian2d:function(t){return!xM(t,wM)},polar:function(t){return!xM(t,SM)}},CM={cartesian2d:function(t,e,n){var r=t.getItemLayout(e),i=n?TM(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(t,e,n){var r=t.getItemLayout(e);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function kM(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}function AM(t){return function(t){var e=t?"Arc":"Angle";return function(t){switch(t){case"start":case"insideStart":case"end":case"insideEnd":return t+e;default:return t}}}(t)}function MM(t,e,n,r,i,o,a,s){var l=e.getItemVisual(n,"style");s||t.setShape("r",r.get(["itemStyle","borderRadius"])||0),t.useStyle(l);var u=r.getShallow("cursor");u&&t.attr("cursor",u);var c=s?a?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":a?i.height>=0?"bottom":"top":i.width>=0?"right":"left",h=_u(r);bu(t,h,{labelFetcher:o,labelDataIndex:n,defaultText:oA(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:c});var f=t.getTextContent();if(s&&f){var d=r.get(["label","position"]);t.textConfig.inside="middle"===d||null,cM(t,"outside"===d?c:d,AM(a),r.get(["label","rotate"]))}Eu(f,h,o.getRawValue(n),(function(t){return aA(e,t)}));var p=r.getModel(["emphasis"]);$l(t,p.get("focus"),p.get("blurScope"),p.get("disabled")),Zl(t,r),kM(i)&&(t.style.fill="none",t.style.stroke="none",Object(v["each"])(t.states,(function(t){t.style&&(t.style.fill=t.style.stroke="none")})))}function TM(t,e){var n=t.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var r=t.get(["itemStyle","borderWidth"])||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),o=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(r,i,o)}var IM=function(){function t(){}return t}(),EM=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeBar",n}return p(e,t),e.prototype.getDefaultShape=function(){return new IM},e.prototype.buildPath=function(t,e){for(var n=e.points,r=this.baseDimIdx,i=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l<n.length;l+=3)a[r]=s,a[i]=n[l+2],o[r]=n[l+r],o[i]=n[l+i],t.rect(o[0],o[1],a[0],a[1])},e}(ss);function PM(t,e,n,r){var i=t.getData(),o=i.getLayout("valueAxisHorizontal")?1:0,a=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=t.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints");if(u){var c=new EM({shape:{points:u},incremental:!!r,silent:!0,z2:0});c.baseDimIdx=o,c.largeDataIndices=a,c.barWidth=s,c.useStyle(l.getItemStyle()),e.add(c),n&&n.push(c)}var h=new EM({shape:{points:i.getLayout("largePoints")},incremental:!!r,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=o,h.largeDataIndices=a,h.barWidth=s,e.add(h),h.useStyle(i.getVisual("style")),Gs(h).seriesIndex=t.seriesIndex,t.get("silent")||(h.on("mousedown",jM),h.on("mousemove",jM)),n&&n.push(h)}var jM=yy((function(t){var e=this,n=LM(e,t.offsetX,t.offsetY);Gs(e).dataIndex=n>=0?n:null}),30,!1);function LM(t,e,n){for(var r=t.baseDimIdx,i=1-r,o=t.shape.points,a=t.largeDataIndices,s=[],l=[],u=t.barWidth,c=0,h=o.length/3;c<h;c++){var f=3*c;if(l[r]=u,l[i]=o[f+2],s[r]=o[f+r],s[i]=o[f+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),e>=s[0]&&e<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[c]}return-1}function DM(t,e,n){if(EA(n,"cartesian2d")){var r=e,i=n.getArea();return{x:t?r.x:i.x,y:t?i.y:r.y,width:t?r.width:i.width,height:t?i.height:r.height}}i=n.getArea();var o=e;return{cx:i.cx,cy:i.cy,r0:t?i.r0:o.r0,r:t?i.r:o.r,startAngle:t?o.startAngle:0,endAngle:t?o.endAngle:2*Math.PI}}function RM(t,e,n){var r="polar"===t.type?zg:Os;return new r({shape:DM(e,n,t),silent:!0,z2:0})}var NM=vM;function BM(t){t.registerChartView(NM),t.registerSeriesModel(oM),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,v["curry"](Uw,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,$w("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,tM("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},(function(e){t.sortInfo&&e.axis.setCategorySortInfo(t.sortInfo)}))}))}var FM=2*Math.PI,zM=Math.PI/180;function VM(t,e){return ah(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function qM(t,e){var n=VM(t,e),r=t.get("center"),i=t.get("radius");v["isArray"](i)||(i=[0,i]),v["isArray"](r)||(r=[r,r]);var o,a,s=Jr(n.width,e.getWidth()),l=Jr(n.height,e.getHeight()),u=Math.min(s,l),c=Jr(i[0],u/2),h=Jr(i[1],u/2),f=t.coordinateSystem;if(f){var d=f.dataToPoint(r);o=d[0]||0,a=d[1]||0}else o=Jr(r[0],s)+n.x,a=Jr(r[1],l)+n.y;return{cx:o,cy:a,r0:c,r:h}}function GM(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.getData(),r=e.mapDimension("value"),i=VM(t,n),o=qM(t,n),a=o.cx,s=o.cy,l=o.r,u=o.r0,c=-t.get("startAngle")*zM,h=t.get("minAngle")*zM,f=0;e.each(r,(function(t){!isNaN(t)&&f++}));var d=e.getSum(r),p=Math.PI/(d||f)*2,g=t.get("clockwise"),v=t.get("roseType"),y=t.get("stillShowZeroSum"),m=e.getDataExtent(r);m[0]=0;var b=FM,_=0,x=c,w=g?1:-1;if(e.setLayout({viewRect:i,r:l}),e.each(r,(function(t,n){var r;if(isNaN(t))e.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:g,cx:a,cy:s,r0:u,r:v?NaN:l});else{r="area"!==v?0===d&&y?p:t*p:FM/f,r<h?(r=h,b-=h):_+=t;var i=x+w*r;e.setItemLayout(n,{angle:r,startAngle:x,endAngle:i,clockwise:g,cx:a,cy:s,r0:u,r:v?Qr(t,m,[u,l]):l}),x=i}})),b<FM&&f)if(b<=.001){var S=FM/f;e.each(r,(function(t,n){if(!isNaN(t)){var r=e.getItemLayout(n);r.angle=S,r.startAngle=c+w*n*S,r.endAngle=c+w*(n+1)*S}}))}else p=b/_,x=c,e.each(r,(function(t,n){if(!isNaN(t)){var r=e.getItemLayout(n),i=r.angle===h?h:t*p;r.startAngle=x,r.endAngle=x+w*i,x+=w*i}}))}))}function HM(t){return{seriesType:t,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(n&&n.length){var r=t.getData();r.filterSelf((function(t){for(var e=r.getName(t),i=0;i<n.length;i++)if(!n[i].isSelected(e))return!1;return!0}))}}}}var WM=Math.PI/180;function UM(t,e,n,r,i,o,a,s,l,u){if(!(t.length<2)){for(var c=t.length,h=0;h<c;h++)if("outer"===t[h].position&&"labelLine"===t[h].labelAlignTo){var f=t[h].label.x-u;t[h].linePoints[1][0]+=f,t[h].label.x=u}iC(t,l,l+a)&&p(t)}function d(t){for(var o=t.rB,a=o*o,s=0;s<t.list.length;s++){var l=t.list[s],u=Math.abs(l.label.y-n),c=r+l.len,h=c*c,f=Math.sqrt((1-Math.abs(u*u/a))*h),d=e+(f+l.len2)*i,p=d-l.label.x,g=l.targetTextWidth-p*i;YM(l,g,!0),l.label.x=d}}function p(t){for(var o={list:[],maxY:0},a={list:[],maxY:0},s=0;s<t.length;s++)if("none"===t[s].labelAlignTo){var l=t[s],u=l.label.y>n?a:o,c=Math.abs(l.label.y-n);if(c>=u.maxY){var h=l.label.x-e-l.len2*i,f=r+l.len,p=Math.abs(h)<f?Math.sqrt(c*c/(1-h*h/f/f)):f;u.rB=p,u.maxY=c}u.list.push(l)}d(o),d(a)}}function $M(t,e,n,r,i,o,a,s){for(var l=[],u=[],c=Number.MAX_VALUE,h=-Number.MAX_VALUE,f=0;f<t.length;f++){var d=t[f].label;XM(t[f])||(d.x<e?(c=Math.min(c,d.x),l.push(t[f])):(h=Math.max(h,d.x),u.push(t[f])))}for(f=0;f<t.length;f++){var p=t[f];if(!XM(p)&&p.linePoints){if(null!=p.labelStyleWidth)continue;d=p.label;var g=p.linePoints,v=void 0;v="edge"===p.labelAlignTo?d.x<e?g[2][0]-p.labelDistance-a-p.edgeDistance:a+i-p.edgeDistance-g[2][0]-p.labelDistance:"labelLine"===p.labelAlignTo?d.x<e?c-a-p.bleedMargin:a+i-h-p.bleedMargin:d.x<e?d.x-a-p.bleedMargin:a+i-d.x-p.bleedMargin,p.targetTextWidth=v,YM(p,v)}}UM(u,e,n,r,1,i,o,a,s,h),UM(l,e,n,r,-1,i,o,a,s,c);for(f=0;f<t.length;f++){p=t[f];if(!XM(p)&&p.linePoints){d=p.label,g=p.linePoints;var y="edge"===p.labelAlignTo,m=d.style.padding,b=m?m[1]+m[3]:0,_=d.style.backgroundColor?0:b,x=p.rect.width+_,w=g[1][0]-g[2][0];y?d.x<e?g[2][0]=a+p.edgeDistance+x+p.labelDistance:g[2][0]=a+i-p.edgeDistance-x-p.labelDistance:(d.x<e?g[2][0]=d.x+p.labelDistance:g[2][0]=d.x-p.labelDistance,g[1][0]=g[2][0]+w),g[1][1]=g[2][1]=d.y}}}function YM(t,e,n){if(void 0===n&&(n=!1),null==t.labelStyleWidth){var r=t.label,i=r.style,o=t.rect,a=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,c=o.width+(a?0:l);if(e<c||n){var h=o.height;if(u&&u.match("break")){r.setStyle("backgroundColor",null),r.setStyle("width",e-l);var f=r.getBoundingRect();r.setStyle("width",Math.ceil(f.width)),r.setStyle("backgroundColor",a)}else{var d=e-l,p=e<c?d:n?d>t.unconstrainedWidth?null:d:null;r.setStyle("width",p)}var g=r.getBoundingRect();o.width=g.width;var v=(r.style.margin||0)+2.1;o.height=g.height+v,o.y-=(o.height-h)/2}}}function XM(t){return"center"===t.position}function KM(t){var e,n,r=t.getData(),i=[],o=!1,a=(t.get("minShowLabelAngle")||0)*WM,s=r.getLayout("viewRect"),l=r.getLayout("r"),u=s.width,c=s.x,h=s.y,f=s.height;function d(t){t.ignore=!0}function p(t){if(!t.ignore)return!0;for(var e in t.states)if(!1===t.states[e].ignore)return!0;return!1}r.each((function(t){var s=r.getItemGraphicEl(t),h=s.shape,f=s.getTextContent(),g=s.getTextGuideLine(),y=r.getItemModel(t),m=y.getModel("label"),b=m.get("position")||y.get(["emphasis","label","position"]),_=m.get("distanceToLabelLine"),x=m.get("alignTo"),w=Jr(m.get("edgeDistance"),u),S=m.get("bleedMargin"),O=y.getModel("labelLine"),C=O.get("length");C=Jr(C,u);var k=O.get("length2");if(k=Jr(k,u),Math.abs(h.endAngle-h.startAngle)<a)return Object(v["each"])(f.states,d),Object(v["each"])(g.states,d),void(f.ignore=g.ignore=!0);if(p(f)){var A,M,T,I,E=(h.startAngle+h.endAngle)/2,P=Math.cos(E),j=Math.sin(E);e=h.cx,n=h.cy;var L="inside"===b||"inner"===b;if("center"===b)A=h.cx,M=h.cy,I="center";else{var D=(L?(h.r+h.r0)/2*P:h.r*P)+e,R=(L?(h.r+h.r0)/2*j:h.r*j)+n;if(A=D+3*P,M=R+3*j,!L){var N=D+P*(C+l-h.r),B=R+j*(C+l-h.r),F=N+(P<0?-1:1)*k,z=B;A="edge"===x?P<0?c+w:c+u-w:F+(P<0?-_:_),M=z,T=[[D,R],[N,B],[F,z]]}I=L?"center":"edge"===x?P>0?"right":"left":P>0?"left":"right"}var V=Math.PI,q=0,G=m.get("rotate");if(Object(v["isNumber"])(G))q=G*(V/180);else if("center"===b)q=0;else if("radial"===G||!0===G){var H=P<0?-E+V:-E;q=H}else if("tangential"===G&&"outside"!==b&&"outer"!==b){var W=Math.atan2(P,j);W<0&&(W=2*V+W);var U=j>0;U&&(W=V+W),q=W-V}if(o=!!q,f.x=A,f.y=M,f.rotation=q,f.setStyle({verticalAlign:"middle"}),L){f.setStyle({align:I});var $=f.states.select;$&&($.x+=f.x,$.y+=f.y)}else{var Y=f.getBoundingRect().clone();Y.applyTransform(f.getComputedTransform());var X=(f.style.margin||0)+2.1;Y.y-=X/2,Y.height+=X,i.push({label:f,labelLine:g,position:b,len:C,len2:k,minTurnAngle:O.get("minTurnAngle"),maxSurfaceAngle:O.get("maxSurfaceAngle"),surfaceNormal:new Pt(P,j),linePoints:T,textAlign:I,labelDistance:_,labelAlignTo:x,edgeDistance:w,bleedMargin:S,rect:Y,unconstrainedWidth:Y.width,labelStyleWidth:f.style.width})}s.setTextConfig({inside:L})}})),!o&&t.get("avoidLabelOverlap")&&$M(i,e,n,l,u,f,c,h);for(var g=0;g<i.length;g++){var y=i[g],m=y.label,b=y.labelLine,_=isNaN(m.x)||isNaN(m.y);if(m){m.setStyle({align:y.textAlign}),_&&(Object(v["each"])(m.states,d),m.ignore=!0);var x=m.states.select;x&&(x.x+=m.x,x.y+=m.y)}if(b){var w=y.linePoints;_||!w?(Object(v["each"])(b.states,d),b.ignore=!0):(XO(w,y.minTurnAngle),KO(w,y.surfaceNormal,y.maxSurfaceAngle),b.setShape({points:w}),m.__hostTarget.textGuideLineConfig={anchor:new Pt(w[0][0],w[0][1])})}}}function ZM(t,e,n){var r=t.get("borderRadius");if(null==r)return n?{cornerRadius:0}:null;Object(v["isArray"])(r)||(r=[r,r,r,r]);var i=Math.abs(e.r||0-e.r0||0);return{cornerRadius:Object(v["map"])(r,(function(t){return _r(t,i)}))}}var QM=function(t){function e(e,n,r){var i=t.call(this)||this;i.z2=2;var o=new qs;return i.setTextContent(o),i.updateData(e,n,r,!0),i}return p(e,t),e.prototype.updateData=function(t,e,n,r){var i=this,o=t.hostModel,a=t.getItemModel(e),s=a.getModel("emphasis"),l=t.getItemLayout(e),u=Object(v["extend"])(ZM(a.getModel("itemStyle"),l,!0),l);if(isNaN(u.startAngle))i.setShape(u);else{if(r){i.setShape(u);var c=o.getShallow("animationType");o.ecModel.ssr?(uu(i,{scaleX:0,scaleY:0},o,{dataIndex:e,isFrom:!0}),i.originX=u.cx,i.originY=u.cy):"scale"===c?(i.shape.r=l.r0,uu(i,{shape:{r:l.r}},o,e)):null!=n?(i.setShape({startAngle:n,endAngle:n}),uu(i,{shape:{startAngle:l.startAngle,endAngle:l.endAngle}},o,e)):(i.shape.endAngle=l.startAngle,lu(i,{shape:{endAngle:l.endAngle}},o,e))}else pu(i),lu(i,{shape:u},o,e);i.useStyle(t.getItemVisual(e,"style")),Zl(i,a);var h=(l.startAngle+l.endAngle)/2,f=o.get("selectedOffset"),d=Math.cos(h)*f,p=Math.sin(h)*f,g=a.getShallow("cursor");g&&i.attr("cursor",g),this._updateLabel(o,t,e),i.ensureState("emphasis").shape=Object(v["extend"])({r:l.r+(s.get("scale")&&s.get("scaleSize")||0)},ZM(s.getModel("itemStyle"),l)),Object(v["extend"])(i.ensureState("select"),{x:d,y:p,shape:ZM(a.getModel(["select","itemStyle"]),l)}),Object(v["extend"])(i.ensureState("blur"),{shape:ZM(a.getModel(["blur","itemStyle"]),l)});var y=i.getTextGuideLine(),m=i.getTextContent();y&&Object(v["extend"])(y.ensureState("select"),{x:d,y:p}),Object(v["extend"])(m.ensureState("select"),{x:d,y:p}),$l(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))}},e.prototype._updateLabel=function(t,e,n){var r=this,i=e.getItemModel(n),o=i.getModel("labelLine"),a=e.getItemVisual(n,"style"),s=a&&a.fill,l=a&&a.opacity;bu(r,_u(i),{labelFetcher:e.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:l,defaultText:t.getFormattedLabel(n,"normal")||e.getName(n)});var u=r.getTextContent();r.setTextConfig({position:null,rotation:null}),u.attr({z2:10});var c=t.get(["label","position"]);if("outside"!==c&&"outer"!==c)r.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new Zg,this.setTextGuideLine(h)),JO(this,tC(i),{stroke:s,opacity:Object(v["retrieve3"])(o.get(["lineStyle","opacity"]),l,1)})}},e}(zg),JM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return p(e,t),e.prototype.render=function(t,e,n,r){var i,o=t.getData(),a=this._data,s=this.group;if(!a&&o.count()>0){for(var l=o.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u<o.count();++u)l=o.getItemLayout(u);l&&(i=l.startAngle)}if(this._emptyCircleSector&&s.remove(this._emptyCircleSector),0===o.count()&&t.get("showEmptyCircle")){var c=new zg({shape:qM(t,n)});c.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=c,s.add(c)}o.diff(a).add((function(t){var e=new QM(o,t,i);o.setItemGraphicEl(t,e),s.add(e)})).update((function(t,e){var n=a.getItemGraphicEl(e);n.updateData(o,t,i),n.off("click"),s.add(n),o.setItemGraphicEl(t,n)})).remove((function(e){var n=a.getItemGraphicEl(e);du(n,t,e)})).execute(),KM(t),"expansion"!==t.get("animationTypeUpdate")&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,e){var n=e.getData(),r=n.getItemLayout(0);if(r){var i=t[0]-r.cx,o=t[1]-r.cy,a=Math.sqrt(i*i+o*o);return a<=r.r&&a>=r.r0}},e.type="pie",e}(dy),tT=JM;function eT(t,e,n){e=Object(v["isArray"])(e)&&{coordDimensions:e}||Object(v["extend"])({encodeDefine:t.getEncode()},e);var r=t.getSource(),i=Kx(r,e).dimensions,o=new Yx(i,t);return o.initData(r,n),o}var nT=function(){function t(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return t.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},t.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},t.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},t.prototype.getItemVisual=function(t,e){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,e)},t}(),rT=nT,iT=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new rT(v["bind"](this.getData,this),v["bind"](this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){var t=eT(this,{coordDimensions:["value"],encodeDefaulter:v["curry"](jh,this)}),e=[];return t.each(t.mapDimension("value"),(function(t){e.push(t)})),this.seats=ai(e,t.hostModel.get("percentPrecision")),t},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.call(this,e);return n.percent=this.seats[e],n.$vars.push("percent"),n},e.prototype._defaultLabelLine=function(t){Ai(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(Hp),oT=iT;function aT(t){return{seriesType:t,reset:function(t,e){var n=t.getData();n.filterSelf((function(t){var e=n.mapDimension("value"),r=n.get(e,t);return!(Object(v["isNumber"])(r)&&!isNaN(r)&&r<0)}))}}}function sT(t){t.registerChartView(tT),t.registerSeriesModel(oT),um("pie",t.registerAction),t.registerLayout(Object(v["curry"])(GM,"pie")),t.registerProcessor(HM("pie")),t.registerProcessor(aT("pie"))}var lT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return p(e,t),e.prototype.getInitialData=function(t,e){return dw(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},e.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(Hp),uT=lT,cT=4,hT=function(){function t(){}return t}(),fT=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return p(e,t),e.prototype.getDefaultShape=function(){return new hT},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,e){var n,r=e.points,i=e.size,o=this.symbolProxy,a=o.shape,s=t.getContext?t.getContext():t,l=s&&i[0]<cT,u=this.softClipShape;if(l)this._ctx=s;else{for(this._ctx=null,n=this._off;n<r.length;){var c=r[n++],h=r[n++];isNaN(c)||isNaN(h)||(u&&!u.contain(c,h)||(a.x=c-i[0]/2,a.y=h-i[1]/2,a.width=i[0],a.height=i[1],o.buildPath(t,a,!0)))}this.incremental&&(this._off=n,this.notClear=!0)}},e.prototype.afterBrush=function(){var t,e=this.shape,n=e.points,r=e.size,i=this._ctx,o=this.softClipShape;if(i){for(t=this._off;t<n.length;){var a=n[t++],s=n[t++];isNaN(a)||isNaN(s)||(o&&!o.contain(a,s)||i.fillRect(a-r[0]/2,s-r[1]/2,r[0],r[1]))}this.incremental&&(this._off=t,this.notClear=!0)}},e.prototype.findDataIndex=function(t,e){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 l=2*s,u=r[l]-o/2,c=r[l+1]-a/2;if(t>=u&&e>=c&&t<=u+o&&e<=c+a)return s}return-1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect();if(t=n[0],e=n[1],r.contain(t,e)){var i=this.hoverDataIdx=this.findDataIndex(t,e);return i>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape,n=e.points,r=e.size,i=r[0],o=r[1],a=1/0,s=1/0,l=-1/0,u=-1/0,c=0;c<n.length;){var h=n[c++],f=n[c++];a=Math.min(h,a),l=Math.max(h,l),s=Math.min(f,s),u=Math.max(f,u)}t=this._rect=new qt(a-i/2,s-o/2,l-a+i,u-s+o)}return t},e}(ss),dT=function(){function t(){this.group=new Nr}return t.prototype.updateData=function(t,e){this._clear();var n=this._create();n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,e)},t.prototype.updateLayout=function(t){var e=t.getLayout("points");this.group.eachChild((function(t){if(null!=t.startIndex){var n=2*(t.endIndex-t.startIndex),r=4*t.startIndex*2;e=new Float32Array(e.buffer,r,n)}t.setShape("points",e),t.reset()}))},t.prototype.incrementalPrepareUpdate=function(t){this._clear()},t.prototype.incrementalUpdate=function(t,e,n){var r=this._newAdded[0],i=e.getLayout("points"),o=r&&r.shape.points;if(o&&o.length<2e4){var a=o.length,s=new Float32Array(a+i.length);s.set(o),s.set(i,a),r.endIndex=t.end,r.setShape({points:s})}else{this._newAdded=[];var l=this._create();l.startIndex=t.start,l.endIndex=t.end,l.incremental=!0,l.setShape({points:i}),this._setCommon(l,e,n)}},t.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},t.prototype._create=function(){var t=new fT({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},t.prototype._setCommon=function(t,e,n){var r=e.hostModel;n=n||{};var i=e.getVisual("symbolSize");t.setShape("size",i instanceof Array?i:[i,i]),t.softClipShape=n.clipShape||null,t.symbolProxy=km(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<cT;t.useStyle(r.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var a=e.getVisual("style"),s=a&&a.fill;s&&t.setColor(s);var l=Gs(t);l.seriesIndex=r.seriesIndex,t.on("mousemove",(function(e){l.dataIndex=null;var n=t.hoverDataIdx;n>=0&&(l.dataIndex=n+(t.startIndex||0))}))},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),pT=dT,gT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.render=function(t,e,n){var r=t.getData(),i=this._updateSymbolDraw(r,t);i.updateData(r,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var r=t.getData(),i=this._updateSymbolDraw(r,t);i.incrementalPrepareUpdate(r),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},e.prototype.updateTransform=function(t,e,n){var r=t.getData();if(this.group.dirty(),!this._finished||r.count()>1e4)return{update:!0};var i=ZA("").reset(t,e,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout(r)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){var e=t.coordinateSystem,n=e&&e.getArea&&e.getArea();return t.get("clip",!0)?n:null},e.prototype._updateSymbolDraw=function(t,e){var n=this._symbolDraw,r=e.pipelineContext,i=r.large;return n&&i===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=i?new pT:new pA,this._isLargeDraw=i,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(dy),vT=gT,yT=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(vh),mT=yT,bT=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Qi).models[0]},e.type="cartesian2dAxis",e}(vh);v["mixin"](bT,BS);var _T={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},xT=v["merge"]({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},_T),wT=v["merge"]({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},_T),ST=v["merge"]({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},wT),OT=v["defaults"]({logBase:10},wT),CT={category:xT,value:wT,time:ST,log:OT},kT={value:1,category:1,time:1,log:1};function AT(t,e,n,r){Object(v["each"])(kT,(function(i,o){var a=Object(v["merge"])(Object(v["merge"])({},CT[o],!0),r,!0),s=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e+"Axis."+o,n}return p(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var n=uh(this),r=n?hh(t):{},i=e.getTheme();Object(v["merge"])(t,i.get(o+"Axis")),Object(v["merge"])(t,this.getDefaultOption()),t.type=MT(t),n&&ch(t,r,n)},n.prototype.optionUpdated=function(){var t=this.option;"category"===t.type&&(this.__ordinalMeta=bw.createByAxisModel(this))},n.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=e+"Axis."+o,n.defaultOption=a,n}(n);t.registerComponentModel(s)})),t.registerSubTypeDefaulter(e+"Axis",MT)}function MT(t){return t.type||(t.data?"category":"value")}var TT=function(){function t(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return v["map"](this._dimList,(function(t){return this._axes[t]}),this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),v["filter"](this.getAxes(),(function(e){return e.scale.type===t}))},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}(),IT=TT,ET=["x","y"];function PT(t){return"interval"===t.type||"time"===t.type}var jT=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=ET,e}return p(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(PT(t)&&PT(e)){var n=t.getExtent(),r=e.getExtent(),i=this.dataToPoint([n[0],r[0]]),o=this.dataToPoint([n[1],r[1]]),a=n[1]-n[0],s=r[1]-r[0];if(a&&s){var l=(o[0]-i[0])/a,u=(o[1]-i[1])/s,c=i[0]-n[0]*l,h=i[1]-r[0]*u,f=this._transform=[l,0,0,u,c,h];this._invTransform=Tt([],f)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,e){var n=this.dataToPoint(t),r=this.dataToPoint(e),i=this.getArea(),o=new qt(n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(o)},e.prototype.dataToPoint=function(t,e,n){n=n||[];var r=t[0],i=t[1];if(this._transform&&null!=r&&isFinite(r)&&null!=i&&isFinite(i))return F(n,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(r,e)),n[1]=a.toGlobalCoord(a.dataToCoord(i,e)),n},e.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,r=this.getAxis("y").scale,i=n.getExtent(),o=r.getExtent(),a=n.parse(t[0]),s=r.parse(t[1]);return e=e||[],e[0]=Math.min(Math.max(Math.min(i[0],i[1]),a),Math.max(i[0],i[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},e.prototype.pointToData=function(t,e){var n=[];if(this._invTransform)return F(n,t,this._invTransform);var r=this.getAxis("x"),i=this.getAxis("y");return n[0]=r.coordToData(r.toLocalCoord(t[0]),e),n[1]=i.coordToData(i.toLocalCoord(t[1]),e),n},e.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},e.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),e=this.getAxis("y").getGlobalExtent(),n=Math.min(t[0],t[1]),r=Math.min(e[0],e[1]),i=Math.max(t[0],t[1])-n,o=Math.max(e[0],e[1])-r;return new qt(n,r,i,o)},e}(IT),LT=jT,DT=function(t){function e(e,n,r,i,o){var a=t.call(this,e,n,r)||this;return a.index=0,a.type=i||"value",a.position=o||"bottom",a}return p(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},e.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},e.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(kO),RT=DT;function NT(t,e,n){n=n||{};var r=t.coordinateSystem,i=e.axis,o={},a=i.getAxesOnZeroOf()[0],s=i.position,l=a?"onZero":s,u=i.dim,c=r.getRect(),h=[c.x,c.x+c.width,c.y,c.y+c.height],f={left:0,right:1,top:0,bottom:1,onZero:2},d=e.get("offset")||0,p="x"===u?[h[2]-d,h[3]+d]:[h[0]-d,h[1]+d];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));p[f.onZero]=Math.max(Math.min(g,p[1]),p[0])}o.position=["y"===u?p[f[l]]:h[0],"x"===u?p[f[l]]:h[3]],o.rotation=Math.PI/2*("x"===u?0:1);var y={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=y[s],o.labelOffset=a?p[f[s]]-p[f.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),v["retrieve"](n.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var m=e.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-m:m,o.z2=1,o}function BT(t){return"cartesian2d"===t.get("coordinateSystem")}function FT(t){var e={xAxisModel:null,yAxisModel:null};return v["each"](e,(function(n,r){var i=r.replace(/Model$/,""),o=t.getReferringComponents(i,Qi).models[0];e[r]=o})),e}var zT=Math.log;function VT(t,e,n){var r=jw.prototype,i=r.getTicks.call(n),o=r.getTicks.call(n,!0),a=i.length-1,s=r.getInterval.call(n),l=CS(t,e),u=l.extent,c=l.fixMin,h=l.fixMax;if("log"===t.type){var f=zT(t.base);u=[zT(u[0])/f,zT(u[1])/f]}t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:h});var d=r.getExtent.call(t);c&&(u[0]=d[0]),h&&(u[1]=d[1]);var p=r.getInterval.call(t),g=u[0],v=u[1];if(c&&h)p=(v-g)/a;else if(c){v=u[0]+p*a;while(v<u[1]&&isFinite(v)&&isFinite(u[1]))p=ww(p),v=u[0]+p*a}else if(h){g=u[1]-p*a;while(g>u[0]&&isFinite(g)&&isFinite(u[0]))p=ww(p),g=u[1]-p*a}else{var y=t.getTicks().length-1;y>a&&(p=ww(p));var m=p*a;v=Math.ceil(u[1]/p)*p,g=ti(v-m),g<0&&u[0]>=0?(g=0,v=ti(m)):v>0&&u[1]<=0&&(v=0,g=-ti(m))}var b=(i[0].value-o[0].value)/s,_=(i[a].value-o[a].value)/s;r.setExtent.call(t,g+p*b,v+p*_),r.setInterval.call(t,p),(b||_)&&r.setNiceExtent.call(t,g+p,v-p)}var qT=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=ET,this._initCartesian(t,e,n),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var n=this._axesMap;function r(t){var e,n=Object(v["keys"])(t),r=n.length;if(r){for(var i=[],o=r-1;o>=0;o--){var a=+n[o],s=t[a],l=s.model,u=s.scale;_w(u)&&l.get("alignTicks")&&null==l.get("interval")?i.push(s):(AS(u,l),_w(u)&&(e=s))}i.length&&(e||(e=i.pop(),AS(e.scale,e.model)),Object(v["each"])(i,(function(t){VT(t.scale,t.model,e.scale)})))}}this._updateScale(t,this.model),r(n.x),r(n.y);var i={};Object(v["each"])(n.x,(function(t){HT(n,"y",t,i)})),Object(v["each"])(n.y,(function(t){HT(n,"x",t,i)})),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){var r=t.getBoxLayoutParams(),i=!n&&t.get("containLabel"),o=ah(r,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var a=this._axesList;function s(){Object(v["each"])(a,(function(t){var e=t.isHorizontal(),n=e?[0,o.width]:[0,o.height],r=t.inverse?1:0;t.setExtent(n[r],n[1-r]),UT(t,e?o.x:o.y)}))}s(),i&&(Object(v["each"])(a,(function(t){if(!t.model.get(["axisLabel","inside"])){var e=PS(t);if(e){var n=t.isHorizontal()?"height":"width",r=t.model.get(["axisLabel","margin"]);o[n]-=e[n]+r,"top"===t.position?o.y+=e.height+r:"left"===t.position&&(o.x+=e.width+r)}}})),s()),Object(v["each"])(this._coordsList,(function(t){t.calcAffineTransform()}))},t.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(null!=n)return n[e||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(t,e){if(null!=t&&null!=e){var n="x"+t+"y"+e;return this._coordsMap[n]}Object(v["isObject"])(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var r=0,i=this._coordsList;r<i.length;r++)if(i[r].getAxis("x").index===t||i[r].getAxis("y").index===e)return i[r]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(t,e,n){var r=this._findConvertTarget(e);return r.cartesian?r.cartesian.dataToPoint(n):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(t,e,n){var r=this._findConvertTarget(e);return r.cartesian?r.cartesian.pointToData(n):r.axis?r.axis.coordToData(r.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(t){var e,n,r=t.seriesModel,i=t.xAxisModel||r&&r.getReferringComponents("xAxis",Qi).models[0],o=t.yAxisModel||r&&r.getReferringComponents("yAxis",Qi).models[0],a=t.gridModel,s=this._coordsList;if(r)e=r.coordinateSystem,Object(v["indexOf"])(s,e)<0&&(e=null);else if(i&&o)e=this.getCartesian(i.componentIndex,o.componentIndex);else if(i)n=this.getAxis("x",i.componentIndex);else if(o)n=this.getAxis("y",o.componentIndex);else if(a){var l=a.coordinateSystem;l===this&&(e=this._coordsList[0])}return{cartesian:e,axis:n}},t.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},t.prototype._initCartesian=function(t,e,n){var r=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};if(e.eachComponent("xAxis",l("x"),this),e.eachComponent("yAxis",l("y"),this),!s.x||!s.y)return this._axesMap={},void(this._axesList=[]);function l(e){return function(n,r){if(GT(n,t)){var l=n.get("position");"x"===e?"top"!==l&&"bottom"!==l&&(l=o.bottom?"top":"bottom"):"left"!==l&&"right"!==l&&(l=o.left?"right":"left"),o[l]=!0;var u=new RT(e,MS(n),[0,0],n.get("type"),l),c="category"===u.type;u.onBand=c&&n.get("boundaryGap"),u.inverse=n.get("inverse"),n.axis=u,u.model=n,u.grid=i,u.index=r,i._axesList.push(u),a[e][r]=u,s[e]++}}}this._axesMap=a,Object(v["each"])(a.x,(function(e,n){Object(v["each"])(a.y,(function(i,o){var a="x"+n+"y"+o,s=new LT(a);s.master=r,s.model=t,r._coordsMap[a]=s,r._coordsList.push(s),s.addAxis(e),s.addAxis(i)}))}))},t.prototype._updateScale=function(t,e){function n(t,e){Object(v["each"])(RS(t,e.dim),(function(n){e.scale.unionExtentFromData(t,n)}))}Object(v["each"])(this._axesList,(function(t){if(t.scale.setExtent(1/0,-1/0),"category"===t.type){var e=t.model.get("categorySortInfo");t.scale.setSortInfo(e)}})),t.eachSeries((function(t){if(BT(t)){var r=FT(t),i=r.xAxisModel,o=r.yAxisModel;if(!GT(i,e)||!GT(o,e))return;var a=this.getCartesian(i.componentIndex,o.componentIndex),s=t.getData(),l=a.getAxis("x"),u=a.getAxis("y");n(s,l),n(s,u)}}),this)},t.prototype.getTooltipAxes=function(t){var e=[],n=[];return Object(v["each"])(this.getCartesians(),(function(r){var i=null!=t&&"auto"!==t?r.getAxis(t):r.getBaseAxis(),o=r.getOtherAxis(i);Object(v["indexOf"])(e,i)<0&&e.push(i),Object(v["indexOf"])(n,o)<0&&n.push(o)})),{baseAxes:e,otherAxes:n}},t.create=function(e,n){var r=[];return e.eachComponent("grid",(function(i,o){var a=new t(i,e,n);a.name="grid_"+o,a.resize(i,n,!0),i.coordinateSystem=a,r.push(a)})),e.eachSeries((function(t){if(BT(t)){var e=FT(t),n=e.xAxisModel,r=e.yAxisModel,i=n.getCoordSysModel();0;var o=i.coordinateSystem;t.coordinateSystem=o.getCartesian(n.componentIndex,r.componentIndex)}})),r},t.dimensions=ET,t}();function GT(t,e){return t.getCoordSysModel()===e}function HT(t,e,n,r){n.getAxesOnZeroOf=function(){return i?[i]:[]};var i,o=t[e],a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)WT(o[l])&&(i=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&WT(o[u])&&!r[c(o[u])]){i=o[u];break}i&&(r[c(i)]=!0)}function c(t){return t.dim+"_"+t.index}}function WT(t){return t&&"category"!==t.type&&"time"!==t.type&&TS(t)}function UT(t,e){var n=t.getExtent(),r=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return r-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return r-t+e}}var $T=qT,YT=Math.PI,XT=function(){function t(t,e){this.group=new Nr,this.opt=e,this.axisModel=t,Object(v["defaults"])(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Nr({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(t){return!!KT[t]},t.prototype.add=function(t){KT[t](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(t,e,n){var r,i,o=ui(e-t);return ci(o)?(i=n>0?"top":"bottom",r="center"):ci(o-YT)?(i=n>0?"bottom":"top",r="center"):(i="middle",r=o>0&&o<YT?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:r,textVerticalAlign:i}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),KT={axisLine:function(t,e,n,r){var i=e.get(["axisLine","show"]);if("auto"===i&&t.handleAutoShown&&(i=t.handleAutoShown("axisLine")),i){var o=e.axis.getExtent(),a=r.transform,s=[o[0],0],l=[o[1],0],u=s[0]>l[0];a&&(F(s,s,a),F(l,l,a));var c=Object(v["extend"])({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new ev({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});zv(h.shape,h.style.lineWidth),h.anid="line",n.add(h);var f=e.get(["axisLine","symbol"]);if(null!=f){var d=e.get(["axisLine","symbolSize"]);Object(v["isString"])(f)&&(f=[f,f]),(Object(v["isString"])(d)||Object(v["isNumber"])(d))&&(d=[d,d]);var p=Mm(e.get(["axisLine","symbolOffset"])||0,d),g=d[0],y=d[1];Object(v["each"])([{rotate:t.rotation+Math.PI/2,offset:p[0],r:0},{rotate:t.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],(function(e,r){if("none"!==f[r]&&null!=f[r]){var i=km(f[r],-g/2,-y/2,g,y,c.stroke,!0),o=e.r+e.offset,a=u?l:s;i.attr({rotation:e.rotate,x:a[0]+o*Math.cos(t.rotation),y:a[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),n.add(i)}}))}}},axisTickLabel:function(t,e,n,r){var i=rI(n,r,e,t),o=oI(n,r,e,t);if(QT(e,o,i),iI(n,r,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var a=eC(Object(v["map"])(o,(function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}})));oC(a)}},axisName:function(t,e,n,r){var i=Object(v["retrieve"])(t.axisName,e.get("name"));if(i){var o,a,s=e.get("nameLocation"),l=t.nameDirection,u=e.getModel("nameTextStyle"),c=e.get("nameGap")||0,h=e.axis.getExtent(),f=h[0]>h[1]?-1:1,d=["start"===s?h[0]-f*c:"end"===s?h[1]+f*c:(h[0]+h[1])/2,eI(s)?t.labelOffset+l*c:0],p=e.get("nameRotate");null!=p&&(p=p*YT/180),eI(s)?o=XT.innerTextLayout(t.rotation,null!=p?p:t.rotation,l):(o=ZT(t.rotation,s,p||0,h),a=t.axisNameAvailableWidth,null!=a&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var g=u.getFont(),y=e.get("nameTruncate",!0)||{},m=y.ellipsis,b=Object(v["retrieve"])(t.nameTruncateMaxWidth,y.maxWidth,a),_=new qs({x:d[0],y:d[1],rotation:o.rotation,silent:XT.isLabelSilent(e),style:xu(u,{text:i,font:g,overflow:"truncate",width:b,ellipsis:m,fill:u.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:u.get("align")||o.textAlign,verticalAlign:u.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(ny({el:_,componentModel:e,itemName:i}),_.__fullText=i,_.anid="name",e.get("triggerEvent")){var x=XT.makeAxisEventDataBase(e);x.targetType="axisName",x.name=i,Gs(_).eventData=x}r.add(_),_.updateTransform(),n.add(_),_.decomposeTransform()}}};function ZT(t,e,n,r){var i,o,a=ui(n-t),s=r[0]>r[1],l="start"===e&&!s||"start"!==e&&s;return ci(a-YT/2)?(o=l?"bottom":"top",i="center"):ci(a-1.5*YT)?(o=l?"top":"bottom",i="center"):(o="middle",i=a<1.5*YT&&a>YT/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function QT(t,e,n){if(!DS(t.axis)){var r=t.get(["axisLabel","showMinLabel"]),i=t.get(["axisLabel","showMaxLabel"]);e=e||[],n=n||[];var o=e[0],a=e[1],s=e[e.length-1],l=e[e.length-2],u=n[0],c=n[1],h=n[n.length-1],f=n[n.length-2];!1===r?(JT(o),JT(u)):tI(o,a)&&(r?(JT(a),JT(c)):(JT(o),JT(u))),!1===i?(JT(s),JT(h)):tI(l,s)&&(i?(JT(l),JT(f)):(JT(s),JT(h)))}}function JT(t){t&&(t.ignore=!0)}function tI(t,e){var n=t&&t.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(n&&r){var i=St([]);return At(i,i,-t.rotation),n.applyTransform(Ct([],i,t.getLocalTransform())),r.applyTransform(Ct([],i,e.getLocalTransform())),n.intersect(r)}}function eI(t){return"middle"===t||"center"===t}function nI(t,e,n,r,i){for(var o=[],a=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=n,e&&(F(a,a,e),F(s,s,e));var c=new ev({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});zv(c.shape,c.style.lineWidth),c.anid=i+"_"+t[l].tickValue,o.push(c)}return o}function rI(t,e,n,r){var i=n.axis,o=n.getModel("axisTick"),a=o.get("show");if("auto"===a&&r.handleAutoShown&&(a=r.handleAutoShown("axisTick")),a&&!i.scale.isBlank()){for(var s=o.getModel("lineStyle"),l=r.tickDirection*o.get("length"),u=i.getTicksCoords(),c=nI(u,e.transform,l,Object(v["defaults"])(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<c.length;h++)t.add(c[h]);return c}}function iI(t,e,n,r){var i=n.axis,o=n.getModel("minorTick");if(o.get("show")&&!i.scale.isBlank()){var a=i.getMinorTicksCoords();if(a.length)for(var s=o.getModel("lineStyle"),l=r*o.get("length"),u=Object(v["defaults"])(s.getLineStyle(),Object(v["defaults"])(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<a.length;c++)for(var h=nI(a[c],e.transform,l,u,"minorticks_"+c),f=0;f<h.length;f++)t.add(h[f])}}function oI(t,e,n,r){var i=n.axis,o=Object(v["retrieve"])(r.axisLabelShow,n.get(["axisLabel","show"]));if(o&&!i.scale.isBlank()){var a=n.getModel("axisLabel"),s=a.get("margin"),l=i.getViewLabels(),u=(Object(v["retrieve"])(r.labelRotate,a.get("rotate"))||0)*YT/180,c=XT.innerTextLayout(r.rotation,u,r.labelDirection),h=n.getCategories&&n.getCategories(!0),f=[],d=XT.isLabelSilent(n),p=n.get("triggerEvent");return Object(v["each"])(l,(function(o,l){var u="ordinal"===i.scale.type?i.scale.getRawOrdinalNumber(o.tickValue):o.tickValue,g=o.formattedLabel,y=o.rawLabel,m=a;if(h&&h[u]){var b=h[u];Object(v["isObject"])(b)&&b.textStyle&&(m=new Wu(b.textStyle,a,n.ecModel))}var _=m.getTextColor()||n.get(["axisLine","lineStyle","color"]),x=i.dataToCoord(u),w=new qs({x:x,y:r.labelOffset+r.labelDirection*s,rotation:c.rotation,silent:d,z2:10+(o.level||0),style:xu(m,{text:g,align:m.getShallow("align",!0)||c.textAlign,verticalAlign:m.getShallow("verticalAlign",!0)||m.getShallow("baseline",!0)||c.textVerticalAlign,fill:Object(v["isFunction"])(_)?_("category"===i.type?y:"value"===i.type?u+"":u,l):_})});if(w.anid="label_"+u,p){var S=XT.makeAxisEventDataBase(n);S.targetType="axisLabel",S.value=y,S.tickIndex=l,"category"===i.type&&(S.dataIndex=u),Gs(w).eventData=S}e.add(w),w.updateTransform(),f.push(w),t.add(w),w.decomposeTransform()})),f}}var aI=XT;function sI(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return lI(n,t,e),n.seriesInvolved&&cI(n,t),n}function lI(t,e,n){var r=e.getComponent("tooltip"),i=e.getComponent("axisPointer"),o=i.get("link",!0)||[],a=[];Object(v["each"])(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var s=yI(n.model),l=t.coordSysAxesInfo[s]={};t.coordSysMap[s]=n;var u=n.model,c=u.getModel("tooltip",r);if(Object(v["each"])(n.getAxes(),Object(v["curry"])(p,!1,null)),n.getTooltipAxes&&r&&c.get("show")){var h="axis"===c.get("trigger"),f="cross"===c.get(["axisPointer","type"]),d=n.getTooltipAxes(c.get(["axisPointer","axis"]));(h||f)&&Object(v["each"])(d.baseAxes,Object(v["curry"])(p,!f||"cross",h)),f&&Object(v["each"])(d.otherAxes,Object(v["curry"])(p,"cross",!1))}}function p(r,s,u){var h=u.model.getModel("axisPointer",i),f=h.get("show");if(f&&("auto"!==f||r||vI(h))){null==s&&(s=h.get("triggerTooltip")),h=r?uI(u,c,i,e,r,s):h;var d=h.get("snap"),p=yI(u.model),g=s||d||"category"===u.type,v=t.axesInfo[p]={key:p,axis:u,coordSys:n,axisPointerModel:h,triggerTooltip:s,involveSeries:g,snap:d,useHandle:vI(h),seriesModels:[],linkGroup:null};l[p]=v,t.seriesInvolved=t.seriesInvolved||g;var y=hI(o,u);if(null!=y){var m=a[y]||(a[y]={axesInfo:{}});m.axesInfo[p]=v,m.mapper=o[y].mapper,v.linkGroup=m}}}}))}function uI(t,e,n,r,i,o){var a=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};Object(v["each"])(s,(function(t){l[t]=Object(v["clone"])(a.get(t))})),l.snap="category"!==t.type&&!!o,"cross"===a.get("type")&&(l.type="line");var u=l.label||(l.label={});if(null==u.show&&(u.show=!1),"cross"===i){var c=a.get(["label","show"]);if(u.show=null==c||c,!o){var h=l.lineStyle=a.get("crossStyle");h&&Object(v["defaults"])(u,h.textStyle)}}return t.model.getModel("axisPointer",new Wu(l,n,r))}function cI(t,e){e.eachSeries((function(e){var n=e.coordinateSystem,r=e.get(["tooltip","trigger"],!0),i=e.get(["tooltip","show"],!0);n&&"none"!==r&&!1!==r&&"item"!==r&&!1!==i&&!1!==e.get(["axisPointer","show"],!0)&&Object(v["each"])(t.coordSysAxesInfo[yI(n.model)],(function(t){var r=t.axis;n.getAxis(r.dim)===r&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())}))}))}function hI(t,e){for(var n=e.model,r=e.dim,i=0;i<t.length;i++){var o=t[i]||{};if(fI(o[r+"AxisId"],n.id)||fI(o[r+"AxisIndex"],n.componentIndex)||fI(o[r+"AxisName"],n.name))return i}}function fI(t,e){return"all"===t||Object(v["isArray"])(t)&&Object(v["indexOf"])(t,e)>=0||t===e}function dI(t){var e=pI(t);if(e){var n=e.axisPointerModel,r=e.axis.scale,i=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=r.parse(a));var s=vI(n);null==o&&(i.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),i.value=a,s&&(i.status=e.axis.scale.isBlank()?"hide":"show")}}function pI(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[yI(t)]}function gI(t){var e=pI(t);return e&&e.axisPointerModel}function vI(t){return!!t.get(["handle","show"])}function yI(t){return t.type+"||"+t.id}var mI={},bI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.render=function(e,n,r,i){this.axisPointerClass&&dI(e),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,r,!0)},e.prototype.updateAxisPointer=function(t,e,n,r){this._doUpdateAxisPointerClass(t,n,!1)},e.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},e.prototype.dispose=function(e,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,n,r){var i=e.getAxisPointerClass(this.axisPointerClass);if(i){var o=gI(t);o?(this._axisPointer||(this._axisPointer=new i)).render(t,o,n,r):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,e){mI[t]=e},e.getAxisPointerClass=function(t){return t&&mI[t]},e.type="axis",e}(Up),_I=bI,xI=Yi();function wI(t,e,n,r){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=r.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:o,clamp:!0});if(u.length){var c=s.length,h=xI(t).splitAreaColors,f=v["createHashMap"](),d=0;if(h)for(var p=0;p<u.length;p++){var g=h.get(u[p].tickValue);if(null!=g){d=(g+(c-1)*p)%c;break}}var y=i.toGlobalCoord(u[0].coord),m=a.getAreaStyle();s=v["isArray"](s)?s:[s];for(p=1;p<u.length;p++){var b=i.toGlobalCoord(u[p].coord),_=void 0,x=void 0,w=void 0,S=void 0;i.isHorizontal()?(_=y,x=l.y,w=b-_,S=l.height,y=_+w):(_=l.x,x=y,w=l.width,S=b-x,y=x+S);var O=u[p-1].tickValue;null!=O&&f.set(O,d),e.add(new Os({anid:null!=O?"area_"+O:null,shape:{x:_,y:x,width:w,height:S},style:v["defaults"]({fill:s[d]},m),autoBatch:!0,silent:!0})),d=(d+1)%c}xI(t).splitAreaColors=f}}}function SI(t){xI(t).splitAreaColors=null}var OI=["axisLine","axisTickLabel","axisName"],CI=["splitArea","splitLine","minorSplitLine"],kI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="CartesianAxisPointer",n}return p(e,t),e.prototype.render=function(e,n,r,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Nr,this.group.add(this._axisGroup),e.get("show")){var a=e.getCoordSysModel(),s=NT(a,e),l=new aI(e,v["extend"]({handleAutoShown:function(t){for(var n=a.coordinateSystem.getCartesians(),r=0;r<n.length;r++)if(_w(n[r].getOtherAxis(e.axis).scale))return!0;return!1}},s));v["each"](OI,l.add,l),this._axisGroup.add(l.getGroup()),v["each"](CI,(function(t){e.get([t,"show"])&&AI[t](this,this._axisGroup,e,a)}),this);var u=i&&"changeAxisOrder"===i.type&&i.isInitSort;u||Yv(o,this._axisGroup,e),t.prototype.render.call(this,e,n,r,i)}},e.prototype.remove=function(){SI(this)},e.type="cartesianAxis",e}(_I),AI={splitLine:function(t,e,n,r){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=v["isArray"](s)?s:[s];for(var l=r.coordinateSystem.getRect(),u=i.isHorizontal(),c=0,h=i.getTicksCoords({tickModel:o}),f=[],d=[],p=a.getLineStyle(),g=0;g<h.length;g++){var y=i.toGlobalCoord(h[g].coord);u?(f[0]=y,f[1]=l.y,d[0]=y,d[1]=l.y+l.height):(f[0]=l.x,f[1]=y,d[0]=l.x+l.width,d[1]=y);var m=c++%s.length,b=h[g].tickValue,_=new ev({anid:null!=b?"line_"+h[g].tickValue:null,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:d[0],y2:d[1]},style:v["defaults"]({stroke:s[m]},p),silent:!0});zv(_.shape,p.lineWidth),e.add(_)}}},minorSplitLine:function(t,e,n,r){var i=n.axis,o=n.getModel("minorSplitLine"),a=o.getModel("lineStyle"),s=r.coordinateSystem.getRect(),l=i.isHorizontal(),u=i.getMinorTicksCoords();if(u.length)for(var c=[],h=[],f=a.getLineStyle(),d=0;d<u.length;d++)for(var p=0;p<u[d].length;p++){var g=i.toGlobalCoord(u[d][p].coord);l?(c[0]=g,c[1]=s.y,h[0]=g,h[1]=s.y+s.height):(c[0]=s.x,c[1]=g,h[0]=s.x+s.width,h[1]=g);var v=new ev({anid:"minor_line_"+u[d][p].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]},style:f,silent:!0});zv(v.shape,f.lineWidth),e.add(v)}},splitArea:function(t,e,n,r){wI(t,e,n,r)}},MI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.type="xAxis",e}(kI),TI=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=MI.type,e}return p(e,t),e.type="yAxis",e}(kI),II=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return p(e,t),e.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new Os({shape:t.coordinateSystem.getRect(),style:Object(v["defaults"])({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(Up),EI={offset:0};function PI(t){t.registerComponentView(II),t.registerComponentModel(mT),t.registerCoordinateSystem("cartesian2d",$T),AT(t,"x",bT,EI),AT(t,"y",bT,EI),t.registerComponentView(MI),t.registerComponentView(TI),t.registerPreprocessor((function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})}))}function jI(t){px(PI),t.registerSeriesModel(uT),t.registerChartView(vT),t.registerLayout(ZA("scatter"))}function LI(t){t.eachSeriesByType("radar",(function(t){var e=t.getData(),n=[],r=t.coordinateSystem;if(r){var i=r.getIndicatorAxes();v["each"](i,(function(t,o){e.each(e.mapDimension(i[o].dim),(function(t,e){n[e]=n[e]||[];var i=r.dataToPoint(t,o);n[e][o]=DI(i)?i:RI(r)}))})),e.each((function(t){var i=v["find"](n[t],(function(t){return DI(t)}))||RI(r);n[t].push(i.slice()),e.setItemLayout(t,n[t])}))}}))}function DI(t){return!isNaN(t[0])&&!isNaN(t[1])}function RI(t){return[t.cx,t.cy]}function NI(t){var e=t.polar;if(e){v["isArray"](e)||(e=[e]);var n=[];v["each"](e,(function(e,r){e.indicator?(e.type&&!e.shape&&(e.shape=e.type),t.radar=t.radar||[],v["isArray"](t.radar)||(t.radar=[t.radar]),t.radar.push(e)):n.push(e)})),t.polar=n}v["each"](t.series,(function(t){t&&"radar"===t.type&&t.polarIndex&&(t.radarIndex=t.polarIndex)}))}var BI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.render=function(t,e,n){var r=t.coordinateSystem,i=this.group,o=t.getData(),s=this._data;function l(t,e){var n=t.getItemVisual(e,"symbol")||"circle";if("none"!==n){var r=Am(t.getItemVisual(e,"symbolSize")),i=km(n,-1,-1,2,2),o=t.getItemVisual(e,"symbolRotate")||0;return i.attr({style:{strokeNoScale:!0},z2:100,scaleX:r[0]/2,scaleY:r[1]/2,rotation:o*Math.PI/180||0}),i}}function u(e,n,r,i,o,s){r.removeAll();for(var u=0;u<n.length-1;u++){var c=l(i,o);c&&(c.__dimIdx=u,e[u]?(c.setPosition(e[u]),a[s?"initProps":"updateProps"](c,{x:n[u][0],y:n[u][1]},t,o)):c.setPosition(n[u]),r.add(c))}}function c(t){return v["map"](t,(function(t){return[r.cx,r.cy]}))}o.diff(s).add((function(e){var n=o.getItemLayout(e);if(n){var r=new Yg,i=new Zg,a={shape:{points:n}};r.shape.points=c(n),i.shape.points=c(n),uu(r,a,t,e),uu(i,a,t,e);var s=new Nr,l=new Nr;s.add(i),s.add(r),s.add(l),u(i.shape.points,n,l,o,e,!0),o.setItemGraphicEl(e,s)}})).update((function(e,n){var r=s.getItemGraphicEl(n),i=r.childAt(0),a=r.childAt(1),l=r.childAt(2),c={shape:{points:o.getItemLayout(e)}};c.shape.points&&(u(i.shape.points,c.shape.points,l,o,e,!1),pu(a),pu(i),lu(i,c,t),lu(a,c,t),o.setItemGraphicEl(e,r))})).remove((function(t){i.remove(s.getItemGraphicEl(t))})).execute(),o.eachItemGraphicEl((function(t,e){var n=o.getItemModel(e),r=t.childAt(0),a=t.childAt(1),s=t.childAt(2),l=o.getItemVisual(e,"style"),u=l.fill;i.add(t),r.useStyle(v["defaults"](n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:u})),Zl(r,n,"lineStyle"),Zl(a,n,"areaStyle");var c=n.getModel("areaStyle"),h=c.isEmpty()&&c.parentModel.isEmpty();a.ignore=h,v["each"](["emphasis","select","blur"],(function(t){var e=n.getModel([t,"areaStyle"]),r=e.isEmpty()&&e.parentModel.isEmpty();a.ensureState(t).ignore=r&&h})),a.useStyle(v["defaults"](c.getAreaStyle(),{fill:u,opacity:.7,decal:l.decal}));var f=n.getModel("emphasis"),d=f.getModel("itemStyle").getItemStyle();s.eachChild((function(t){if(t instanceof gs){var r=t.style;t.useStyle(v["extend"]({image:r.image,x:r.x,y:r.y,width:r.width,height:r.height},l))}else t.useStyle(l),t.setColor(u),t.style.strokeNoScale=!0;var i=t.ensureState("emphasis");i.style=v["clone"](d);var a=o.getStore().get(o.getDimensionIndex(t.__dimIdx),e);(null==a||isNaN(a))&&(a=""),bu(t,_u(n),{labelFetcher:o.hostModel,labelDataIndex:e,labelDimIndex:t.__dimIdx,defaultText:a,inheritColor:u,defaultOpacity:l.opacity})})),$l(t,f.get("focus"),f.get("blurScope"),f.get("disabled"))})),this._data=o},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e}(dy),FI=BI,zI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return p(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new rT(v["bind"](this.getData,this),v["bind"](this.getRawData,this))},e.prototype.getInitialData=function(t,e){return eT(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,e,n){var r=this.getData(),i=this.coordinateSystem,o=i.getIndicatorAxes(),a=this.getData().getName(t),s=""===a?this.name:a,l=Ap(this,t);return pp("section",{header:s,sortBlocks:!0,blocks:v["map"](o,(function(e){var n=r.get(r.mapDimension(e.dim),t);return pp("nameValue",{markerType:"subItem",markerColor:l,name:e.name,value:n,sortParam:n})}))})},e.prototype.getTooltipPosition=function(t){if(null!=t)for(var e=this.getData(),n=this.coordinateSystem,r=e.getValues(v["map"](n.dimensions,(function(t){return e.mapDimension(t)})),t),i=0,o=r.length;i<o;i++)if(!isNaN(r[i])){var a=n.getIndicatorAxes();return n.coordToPoint(a[i].dataToCoord(r[i]),i)}},e.type="series.radar",e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e}(Hp),VI=zI,qI=CT.value;function GI(t,e){return v["defaults"]({show:e},t)}var HI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),e=this.get("splitNumber"),n=this.get("scale"),r=this.get("axisLine"),i=this.get("axisTick"),o=this.get("axisLabel"),a=this.get("axisName"),s=this.get(["axisName","show"]),l=this.get(["axisName","formatter"]),u=this.get("axisNameGap"),c=this.get("triggerEvent"),h=v["map"](this.get("indicator")||[],(function(h){null!=h.max&&h.max>0&&!h.min?h.min=0:null!=h.min&&h.min<0&&!h.max&&(h.max=0);var f=a;null!=h.color&&(f=v["defaults"]({color:h.color},a));var d=v["merge"](v["clone"](h),{boundaryGap:t,splitNumber:e,scale:n,axisLine:r,axisTick:i,axisLabel:o,name:h.text,showName:s,nameLocation:"end",nameGap:u,nameTextStyle:f,triggerEvent:c},!1);if(v["isString"](l)){var p=d.name;d.name=l.replace("{value}",null!=p?p:"")}else v["isFunction"](l)&&(d.name=l(d.name,d));var g=new Wu(d,null,this.ecModel);return v["mixin"](g,BS.prototype),g.mainType="radar",g.componentIndex=this.componentIndex,g}),this);this._indicatorModels=h},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:v["merge"]({lineStyle:{color:"#bbb"}},qI.axisLine),axisLabel:GI(qI.axisLabel,!1),axisTick:GI(qI.axisTick,!1),splitLine:GI(qI.splitLine,!0),splitArea:GI(qI.splitArea,!0),indicator:[]},e}(vh),WI=HI,UI=["axisLine","axisTickLabel","axisName"],$I=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.render=function(t,e,n){var r=this.group;r.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes(),r=v["map"](n,(function(t){var n=t.model.get("showName")?t.name:"",r=new aI(t.model,{axisName:n,position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return r}));v["each"](r,(function(t){v["each"](UI,t.add,t),this.group.add(t.getGroup())}),this)},e.prototype._buildSplitLineAndArea=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes();if(n.length){var r=t.get("shape"),i=t.getModel("splitLine"),o=t.getModel("splitArea"),a=i.getModel("lineStyle"),s=o.getModel("areaStyle"),l=i.get("show"),u=o.get("show"),c=a.get("color"),h=s.get("color"),f=v["isArray"](c)?c:[c],d=v["isArray"](h)?h:[h],p=[],g=[];if("circle"===r)for(var y=n[0].getTicksCoords(),m=e.cx,b=e.cy,_=0;_<y.length;_++){if(l){var x=T(p,f,_);p[x].push(new bg({shape:{cx:m,cy:b,r:y[_].coord}}))}if(u&&_<y.length-1){x=T(g,d,_);g[x].push(new Gg({shape:{cx:m,cy:b,r0:y[_].coord,r:y[_+1].coord}}))}}else{var w,S=v["map"](n,(function(t,n){var r=t.getTicksCoords();return w=null==w?r.length-1:Math.min(r.length-1,w),v["map"](r,(function(t){return e.coordToPoint(t.coord,n)}))})),O=[];for(_=0;_<=w;_++){for(var C=[],k=0;k<n.length;k++)C.push(S[k][_]);if(C[0]&&C.push(C[0].slice()),l){x=T(p,f,_);p[x].push(new Zg({shape:{points:C}}))}if(u&&O){x=T(g,d,_-1);g[x].push(new Yg({shape:{points:C.concat(O)}}))}O=C.slice().reverse()}}var A=a.getLineStyle(),M=s.getAreaStyle();v["each"](g,(function(t,e){this.group.add(Bv(t,{style:v["defaults"]({stroke:"none",fill:d[e%d.length]},M),silent:!0}))}),this),v["each"](p,(function(t,e){this.group.add(Bv(t,{style:v["defaults"]({fill:"none",stroke:f[e%f.length]},A),silent:!0}))}),this)}function T(t,e,n){var r=n%e.length;return t[r]=t[r]||[],r}},e.type="radar",e}(Up),YI=$I,XI=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.type="value",i.angle=0,i.name="",i}return p(e,t),e}(kO),KI=XI,ZI=function(){function t(t,e,n){this.dimensions=[],this._model=t,this._indicatorAxes=Object(v["map"])(t.getIndicatorModels(),(function(t,e){var n="indicator_"+e,r=new KI(n,new jw);return r.name=t.get("name"),r.model=t,t.axis=r,this.dimensions.push(n),r}),this),this.resize(t,n)}return t.prototype.getIndicatorAxes=function(){return this._indicatorAxes},t.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},t.prototype.coordToPoint=function(t,e){var n=this._indicatorAxes[e],r=n.angle,i=this.cx+t*Math.cos(r),o=this.cy-t*Math.sin(r);return[i,o]},t.prototype.pointToData=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,r=Math.sqrt(e*e+n*n);e/=r,n/=r;for(var i,o=Math.atan2(-n,e),a=1/0,s=-1,l=0;l<this._indicatorAxes.length;l++){var u=this._indicatorAxes[l],c=Math.abs(o-u.angle);c<a&&(i=u,s=l,a=c)}return[s,+(i&&i.coordToData(r))]},t.prototype.resize=function(t,e){var n=t.get("center"),r=e.getWidth(),i=e.getHeight(),o=Math.min(r,i)/2;this.cx=Jr(n[0],r),this.cy=Jr(n[1],i),this.startAngle=t.get("startAngle")*Math.PI/180;var a=t.get("radius");(Object(v["isString"])(a)||Object(v["isNumber"])(a))&&(a=[0,a]),this.r0=Jr(a[0],o),this.r=Jr(a[1],o),Object(v["each"])(this._indicatorAxes,(function(t,e){t.setExtent(this.r0,this.r);var n=this.startAngle+e*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),t.angle=n}),this)},t.prototype.update=function(t,e){var n=this._indicatorAxes,r=this._model;Object(v["each"])(n,(function(t){t.scale.setExtent(1/0,-1/0)})),t.eachSeriesByType("radar",(function(e,i){if("radar"===e.get("coordinateSystem")&&t.getComponent("radar",e.get("radarIndex"))===r){var o=e.getData();Object(v["each"])(n,(function(t){t.scale.unionExtentFromData(o,o.mapDimension(t.dim))}))}}),this);var i=r.get("splitNumber"),o=new jw;o.setExtent(0,i),o.setInterval(1),Object(v["each"])(n,(function(t,e){VT(t.scale,t.model,o)}))},t.prototype.convertToPixel=function(t,e,n){return console.warn("Not implemented."),null},t.prototype.convertFromPixel=function(t,e,n){return console.warn("Not implemented."),null},t.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},t.create=function(e,n){var r=[];return e.eachComponent("radar",(function(i){var o=new t(i,e,n);r.push(o),i.coordinateSystem=o})),e.eachSeriesByType("radar",(function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=r[t.get("radarIndex")||0])})),r},t.dimensions=[],t}(),QI=ZI;function JI(t){t.registerCoordinateSystem("radar",QI),t.registerComponentModel(WI),t.registerComponentView(YI),t.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each((function(t){e.setItemVisual(t,"legendIcon","roundRect")})),e.setVisual("legendIcon","roundRect")}})}function tE(t){px(JI),t.registerChartView(FI),t.registerSeriesModel(VI),t.registerLayout(LI),t.registerProcessor(HM("radar")),t.registerPreprocessor(NI)}var eE="\0_ec_interaction_mutex";function nE(t,e,n){var r=oE(t);r[e]=n}function rE(t,e,n){var r=oE(t),i=r[e];i===n&&(r[e]=null)}function iE(t,e){return!!oE(t)[e]}function oE(t){return t[eE]||(t[eE]={})}J_({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},v["noop"]);var aE=function(t){function e(e){var n=t.call(this)||this;n._zr=e;var r=Object(v["bind"])(n._mousedownHandler,n),i=Object(v["bind"])(n._mousemoveHandler,n),o=Object(v["bind"])(n._mouseupHandler,n),a=Object(v["bind"])(n._mousewheelHandler,n),s=Object(v["bind"])(n._pinchHandler,n);return n.enable=function(t,n){this.disable(),this._opt=Object(v["defaults"])(Object(v["clone"])(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==t&&(t=!0),!0!==t&&"move"!==t&&"pan"!==t||(e.on("mousedown",r),e.on("mousemove",i),e.on("mouseup",o)),!0!==t&&"scale"!==t&&"zoom"!==t||(e.on("mousewheel",a),e.on("pinch",s))},n.disable=function(){e.off("mousedown",r),e.off("mousemove",i),e.off("mouseup",o),e.off("mousewheel",a),e.off("pinch",s)},n}return p(e,t),e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(t){this.pointerChecker=t},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!yt(t)){var e=t.target;while(e){if(e.draggable)return;e=e.__hostTarget||e.parent}var n=t.offsetX,r=t.offsetY;this.pointerChecker&&this.pointerChecker(t,n,r)&&(this._x=n,this._y=r,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){if(this._dragging&&uE("moveOnMouseMove",t,this._opt)&&"pinch"!==t.gestureEvent&&!iE(this._zr,"globalPan")){var e=t.offsetX,n=t.offsetY,r=this._x,i=this._y,o=e-r,a=n-i;this._x=e,this._y=n,this._opt.preventDefaultMouseMove&&vt(t.event),lE(this,"pan","moveOnMouseMove",t,{dx:o,dy:a,oldX:r,oldY:i,newX:e,newY:n,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){yt(t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var e=uE("zoomOnMouseWheel",t,this._opt),n=uE("moveOnMouseWheel",t,this._opt),r=t.wheelDelta,i=Math.abs(r),o=t.offsetX,a=t.offsetY;if(0!==r&&(e||n)){if(e){var s=i>3?1.4:i>1?1.2:1.1,l=r>0?s:1/s;sE(this,"zoom","zoomOnMouseWheel",t,{scale:l,originX:o,originY:a,isAvailableBehavior:null})}if(n){var u=Math.abs(r),c=(r>0?1:-1)*(u>3?.4:u>1?.15:.05);sE(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:c,originX:o,originY:a,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!iE(this._zr,"globalPan")){var e=t.pinchScale>1?1.1:1/1.1;sE(this,"zoom",null,t,{scale:e,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(U);function sE(t,e,n,r,i){t.pointerChecker&&t.pointerChecker(r,i.originX,i.originY)&&(vt(r.event),lE(t,e,n,r,i))}function lE(t,e,n,r,i){i.isAvailableBehavior=Object(v["bind"])(uE,null,n,r),t.trigger(e,i)}function uE(t,e,n){var r=n[t];return!t||r&&(!Object(v["isString"])(r)||e.event[r+"Key"])}var cE=aE;function hE(t,e,n){var r=t.target;r.x+=e,r.y+=n,r.dirty()}function fE(t,e,n,r){var i=t.target,o=t.zoomLimit,a=t.zoom=t.zoom||1;if(a*=e,o){var s=o.min||0,l=o.max||1/0;a=Math.max(Math.min(l,a),s)}var u=a/t.zoom;t.zoom=a,i.x-=(n-i.x)*(u-1),i.y-=(r-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var dE,pE={axisPointer:1,tooltip:1,brush:1};function gE(t,e,n){var r=e.getComponentByElement(t.topTarget),i=r&&r.coordinateSystem;return r&&r!==n&&!pE.hasOwnProperty(r.mainType)&&i&&i.model!==n}function vE(t){if(Object(v["isString"])(t)){var e=new DOMParser;t=e.parseFromString(t,"text/xml")}var n=t;9===n.nodeType&&(n=n.firstChild);while("svg"!==n.nodeName.toLowerCase()||1!==n.nodeType)n=n.nextSibling;return n}var yE={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-anchor":"textAlign",visibility:"visibility",display:"display"},mE=Object(v["keys"])(yE),bE={"alignment-baseline":"textBaseline","stop-color":"stopColor"},_E=Object(v["keys"])(bE),xE=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(t,e){e=e||{};var n=vE(t);this._defsUsePending=[];var r=new Nr;this._root=r;var i=[],o=n.getAttribute("viewBox")||"",a=parseFloat(n.getAttribute("width")||e.width),s=parseFloat(n.getAttribute("height")||e.height);isNaN(a)&&(a=null),isNaN(s)&&(s=null),AE(n,r,null,!0,!1);var l,u,c=n.firstChild;while(c)this._parseNode(c,r,i,null,!1,!1),c=c.nextSibling;if(EE(this._defs,this._defsUsePending),this._defsUsePending=[],o){var h=jE(o);h.length>=4&&(l={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(l&&null!=a&&null!=s&&(u=zE(l,{x:0,y:0,width:a,height:s}),!e.ignoreViewBox)){var f=r;r=new Nr,r.add(f),f.scaleX=f.scaleY=u.scale,f.x=u.x,f.y=u.y}return e.ignoreRootClip||null==a||null==s||r.setClipPath(new Os({shape:{x:0,y:0,width:a,height:s}})),{root:r,width:a,height:s,viewBoxRect:l,viewBoxTransform:u,named:i}},t.prototype._parseNode=function(t,e,n,r,i,o){var a,s=t.nodeName.toLowerCase(),l=r;if("defs"===s&&(i=!0),"text"===s&&(o=!0),"defs"===s||"switch"===s)a=e;else{if(!i){var u=dE[s];if(u&&Object(v["hasOwn"])(dE,s)){a=u.call(this,t,e);var c=t.getAttribute("name");if(c){var h={name:c,namedFrom:null,svgNodeTagLower:s,el:a};n.push(h),"g"===s&&(l=h)}else r&&n.push({name:r.name,namedFrom:r,svgNodeTagLower:s,el:a});e.add(a)}}var f=wE[s];if(f&&Object(v["hasOwn"])(wE,s)){var d=f.call(this,t),p=t.getAttribute("id");p&&(this._defs[p]=d)}}if(a&&a.isGroup){var g=t.firstChild;while(g)1===g.nodeType?this._parseNode(g,a,n,l,i,o):3===g.nodeType&&o&&this._parseText(g,a),g=g.nextSibling}},t.prototype._parseText=function(t,e){var n=new cs({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});CE(e,n),AE(t,n,this._defsUsePending,!1,!1),ME(n,e);var r=n.style,i=r.fontSize;i&&i<9&&(r.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9);var o=(r.fontSize||r.fontFamily)&&[r.fontStyle,r.fontWeight,(r.fontSize||12)+"px",r.fontFamily||"sans-serif"].join(" ");r.font=o;var a=n.getBoundingRect();return this._textX+=a.width,e.add(n),n},t.internalField=function(){dE={g:function(t,e){var n=new Nr;return CE(e,n),AE(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new Os;return CE(e,n),AE(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,e){var n=new bg;return CE(e,n),AE(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,e){var n=new ev;return CE(e,n),AE(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,e){var n=new wg;return CE(e,n),AE(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,e){var n,r=t.getAttribute("points");r&&(n=kE(r));var i=new Yg({shape:{points:n||[]},silent:!0});return CE(e,i),AE(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,e){var n,r=t.getAttribute("points");r&&(n=kE(r));var i=new Zg({shape:{points:n||[]},silent:!0});return CE(e,i),AE(t,i,this._defsUsePending,!1,!1),i},image:function(t,e){var n=new gs;return CE(e,n),AE(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,e){var n=t.getAttribute("x")||"0",r=t.getAttribute("y")||"0",i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(r)+parseFloat(o);var a=new Nr;return CE(e,a),AE(t,a,this._defsUsePending,!1,!0),a},tspan:function(t,e){var n=t.getAttribute("x"),r=t.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=r&&(this._textY=parseFloat(r));var i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",a=new Nr;return CE(e,a),AE(t,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),a},path:function(t,e){var n=t.getAttribute("d")||"",r=dg(n);return CE(e,r),AE(t,r,this._defsUsePending,!1,!1),r.silent=!0,r}}}(),t}(),wE={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),n=parseInt(t.getAttribute("y1")||"0",10),r=parseInt(t.getAttribute("x2")||"10",10),i=parseInt(t.getAttribute("y2")||"0",10),o=new gv(e,n,r,i);return SE(t,o),OE(t,o),o},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),n=parseInt(t.getAttribute("cy")||"0",10),r=parseInt(t.getAttribute("r")||"0",10),i=new yv(e,n,r);return SE(t,i),OE(t,i),i}};function SE(t,e){var n=t.getAttribute("gradientUnits");"userSpaceOnUse"===n&&(e.global=!0)}function OE(t,e){var n=t.firstChild;while(n){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var r=n.getAttribute("offset"),i=void 0;i=r&&r.indexOf("%")>0?parseInt(r,10)/100:r?parseFloat(r):0;var o={};BE(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:i,color:a})}n=n.nextSibling}}function CE(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),Object(v["defaults"])(e.__inheritedStyle,t.__inheritedStyle))}function kE(t){for(var e=jE(t),n=[],r=0;r<e.length;r+=2){var i=parseFloat(e[r]),o=parseFloat(e[r+1]);n.push([i,o])}return n}function AE(t,e,n,r,i){var o=e,a=o.__inheritedStyle=o.__inheritedStyle||{},s={};1===t.nodeType&&(RE(t,e),BE(t,a,s),r||FE(t,a,s)),o.style=o.style||{},null!=a.fill&&(o.style.fill=IE(o,"fill",a.fill,n)),null!=a.stroke&&(o.style.stroke=IE(o,"stroke",a.stroke,n)),Object(v["each"])(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(t){null!=a[t]&&(o.style[t]=parseFloat(a[t]))})),Object(v["each"])(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],(function(t){null!=a[t]&&(o.style[t]=a[t])})),i&&(o.__selfStyle=s),a.lineDash&&(o.style.lineDash=Object(v["map"])(jE(a.lineDash),(function(t){return parseFloat(t)}))),"hidden"!==a.visibility&&"collapse"!==a.visibility||(o.invisible=!0),"none"===a.display&&(o.ignore=!0)}function ME(t,e){var n=e.__selfStyle;if(n){var r=n.textBaseline,i=r;r&&"auto"!==r?"baseline"===r?i="alphabetic":"before-edge"===r||"text-before-edge"===r?i="top":"after-edge"===r||"text-after-edge"===r?i="bottom":"central"!==r&&"mathematical"!==r||(i="middle"):i="alphabetic",t.style.textBaseline=i}var o=e.__inheritedStyle;if(o){var a=o.textAlign,s=a;a&&("middle"===a&&(s="center"),t.style.textAlign=s)}}var TE=/^url\(\s*#(.*?)\)/;function IE(t,e,n,r){var i=n&&n.match(TE);if(!i)return"none"===n&&(n=null),n;var o=Object(v["trim"])(i[1]);r.push([t,e,o])}function EE(t,e){for(var n=0;n<e.length;n++){var r=e[n];r[0].style[r[1]]=t[r[2]]}}var PE=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function jE(t){return t.match(PE)||[]}var LE=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,DE=Math.PI/180;function RE(t,e){var n=t.getAttribute("transform");if(n){n=n.replace(/,/g," ");var r=[],i=null;n.replace(LE,(function(t,e,n){return r.push(e,n),""}));for(var o=r.length-1;o>0;o-=2){var a=r[o],s=r[o-1],l=jE(a);switch(i=i||wt(),s){case"translate":kt(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Mt(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":At(i,i,-parseFloat(l[0])*DE);break;case"skewX":var u=Math.tan(parseFloat(l[0])*DE);Ct(i,[1,0,u,1,0,0],i);break;case"skewY":var c=Math.tan(parseFloat(l[0])*DE);Ct(i,[1,c,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5]);break}}e.setLocalTransform(i)}}var NE=/([^\s:;]+)\s*:\s*([^:;]+)/g;function BE(t,e,n){var r=t.getAttribute("style");if(r){var i;NE.lastIndex=0;while(null!=(i=NE.exec(r))){var o=i[1],a=Object(v["hasOwn"])(yE,o)?yE[o]:null;a&&(e[a]=i[2]);var s=Object(v["hasOwn"])(bE,o)?bE[o]:null;s&&(n[s]=i[2])}}}function FE(t,e,n){for(var r=0;r<mE.length;r++){var i=mE[r],o=t.getAttribute(i);null!=o&&(e[yE[i]]=o)}for(r=0;r<_E.length;r++){i=_E[r],o=t.getAttribute(i);null!=o&&(n[bE[i]]=o)}}function zE(t,e){var n=e.width/t.width,r=e.height/t.height,i=Math.min(n,r);return{scale:i,x:-(t.x+t.width/2)*i+(e.x+e.width/2),y:-(t.y+t.height/2)*i+(e.y+e.height/2)}}function VE(t,e){var n=new xE;return n.parse(t,e)}var qE=Object(v["createHashMap"])(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),GE=function(){function t(t,e){this.type="geoSVG",this._usedGraphicMap=Object(v["createHashMap"])(),this._freedGraphics=[],this._mapName=t,this._parsedXML=vE(e)}return t.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var e=WE(t.named),n=e.regions,r=e.regionsMap;this._regions=n,this._regionsMap=r}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},t.prototype._buildGraphic=function(t){var e,n;try{e=t&&VE(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=e.root,Object(v["assert"])(null!=n)}catch(g){throw new Error("Invalid svg format\n"+g.message)}var r=new Nr;r.add(n),r.isGeoSVGGraphicRoot=!0;var i=e.width,o=e.height,a=e.viewBoxRect,s=this._boundingRect;if(!s){var l=void 0,u=void 0,c=void 0,h=void 0;if(null!=i?(l=0,c=i):a&&(l=a.x,c=a.width),null!=o?(u=0,h=o):a&&(u=a.y,h=a.height),null==l||null==u){var f=n.getBoundingRect();null==l&&(l=f.x,c=f.width),null==u&&(u=f.y,h=f.height)}s=this._boundingRect=new qt(l,u,c,h)}if(a){var d=zE(a,s);n.scaleX=n.scaleY=d.scale,n.x=d.x,n.y=d.y}r.setClipPath(new Os({shape:s.plain()}));var p=[];return Object(v["each"])(e.named,(function(t){null!=qE.get(t.svgNodeTagLower)&&(p.push(t),HE(t.el))})),{root:r,boundingRect:s,named:p}},t.prototype.useGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,n),n)},t.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);n&&(e.removeKey(t),this._freedGraphics.push(n))},t}();function HE(t){t.silent=!1,t.isGroup&&t.traverse((function(t){t.silent=!1}))}function WE(t){var e=[],n=Object(v["createHashMap"])();return Object(v["each"])(t,(function(t){if(null==t.namedFrom){var r=new eO(t.name,t.el);e.push(r),n.set(t.name,r)}})),{regions:e,regionsMap:n}}for(var UE=[126,25],$E="南海诸岛",YE=[[[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]]],XE=0;XE<YE.length;XE++)for(var KE=0;KE<YE[XE].length;KE++)YE[XE][KE][0]/=10.5,YE[XE][KE][1]/=-14,YE[XE][KE][0]+=UE[0],YE[XE][KE][1]+=UE[1];function ZE(t,e){if("china"===t){for(var n=0;n<e.length;n++)if(e[n].name===$E)return;e.push(new tO($E,v["map"](YE,(function(t){return{type:"polygon",exterior:t}})),UE))}}var QE={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};function JE(t,e){if("china"===t){var n=QE[e.name];if(n){var r=e.getCenter();r[0]+=n[0]/10.5,r[1]+=-n[1]/14,e.setCenter(r)}}}var tP=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function eP(t,e){"china"===t&&"台湾"===e.name&&e.geometries.push({type:"polygon",exterior:tP[0]})}var nP="name",rP=function(){function t(t,e,n){this.type="geoJSON",this._parsedMap=Object(v["createHashMap"])(),this._mapName=t,this._specialAreas=n,this._geoJSON=oP(e)}return t.prototype.load=function(t,e){e=e||nP;var n=this._parsedMap.get(e);if(!n){var r=this._parseToRegions(e);n=this._parsedMap.set(e,{regions:r,boundingRect:iP(r)})}var i=Object(v["createHashMap"])(),o=[];return Object(v["each"])(n.regions,(function(e){var n=e.name;t&&Object(v["hasOwn"])(t,n)&&(e=e.cloneShallow(n=t[n])),o.push(e),i.set(n,e)})),{regions:o,boundingRect:n.boundingRect||new qt(0,0,0,0),regionsMap:i}},t.prototype._parseToRegions=function(t){var e,n=this._mapName,r=this._geoJSON;try{e=r?oO(r,t):[]}catch(i){throw new Error("Invalid geoJson format\n"+i.message)}return ZE(n,e),Object(v["each"])(e,(function(t){var e=t.name;JE(n,t),eP(n,t);var r=this._specialAreas&&this._specialAreas[e];r&&t.transformTo(r.left,r.top,r.width,r.height)}),this),e},t.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},t}();function iP(t){for(var e,n=0;n<t.length;n++){var r=t[n].getBoundingRect();e=e||r.clone(),e.union(r)}return e}function oP(t){return Object(v["isString"])(t)?"undefined"!==typeof JSON&&JSON.parse?JSON.parse(t):new Function("return ("+t+");")():t}var aP=Object(v["createHashMap"])(),sP={registerMap:function(t,e,n){if(e.svg){var r=new GE(t,e.svg);aP.set(t,r)}else{var i=e.geoJson||e.geoJSON;i&&!e.features?n=e.specialAreas:i=e;r=new rP(t,i,n);aP.set(t,r)}},getGeoResource:function(t){return aP.get(t)},getMapForUser:function(t){var e=aP.get(t);return e&&"geoJSON"===e.type&&e.getMapForUser()},load:function(t,e,n){var r=aP.get(t);if(r)return r.load(e,n)}},lP=["rect","circle","line","ellipse","polygon","polyline","path"],uP=v["createHashMap"](lP),cP=v["createHashMap"](lP.concat(["g"])),hP=v["createHashMap"](lP.concat(["g"])),fP=Yi();function dP(t){var e=t.getItemStyle(),n=t.get("areaColor");return null!=n&&(e.fill=n),e}function pP(t){var e=t.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var gP=function(){function t(t){var e=new Nr;this.uid=$u("ec_map_draw"),this._controller=new cE(t.getZr()),this._controllerHost={target:e},this.group=e,e.add(this._regionsGroup=new Nr),e.add(this._svgGroup=new Nr)}return t.prototype.draw=function(t,e,n,r,i){var o="geo"===t.mainType,a=t.getData&&t.getData();o&&e.eachComponent({mainType:"series",subType:"map"},(function(e){a||e.getHostGeoModel()!==t||(a=e.getData())}));var s=t.coordinateSystem,l=this._regionsGroup,u=this.group,c=s.getTransformInfo(),h=c.raw,f=c.roam,d=!l.childAt(0)||i;d?(u.x=f.x,u.y=f.y,u.scaleX=f.scaleX,u.scaleY=f.scaleY,u.dirty()):lu(u,f,t);var p=a&&a.getVisual("visualMeta")&&a.getVisual("visualMeta").length>0,g={api:n,geo:s,mapOrGeoModel:t,data:a,isVisualEncodedByVisualMap:p,isGeo:o,transformInfoRaw:h};"geoJSON"===s.resourceType?this._buildGeoJSON(g):"geoSVG"===s.resourceType&&this._buildSVG(g),this._updateController(t,e,n),this._updateMapSelectHandler(t,l,n,r)},t.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=v["createHashMap"](),n=v["createHashMap"](),r=this._regionsGroup,i=t.transformInfoRaw,o=t.mapOrGeoModel,a=t.data,s=t.geo.projection,l=s&&s.stream;function u(t,e){return e&&(t=e(t)),t&&[t[0]*i.scaleX+i.x,t[1]*i.scaleY+i.y]}function c(t){for(var e=[],n=!l&&s&&s.project,r=0;r<t.length;++r){var i=u(t[r],n);i&&e.push(i)}return e}function h(t){return{shape:{points:c(t)}}}r.removeAll(),v["each"](t.geo.regions,(function(i){var c=i.name,f=e.get(c),d=n.get(c)||{},p=d.dataIdx,g=d.regionModel;f||(f=e.set(c,new Nr),r.add(f),p=a?a.indexOfName(c):null,g=t.isGeo?o.getRegionModel(c):a?a.getItemModel(p):null,n.set(c,{dataIdx:p,regionModel:g}));var y=[],m=[];v["each"](i.geometries,(function(t){if("polygon"===t.type){var e=[t.exterior].concat(t.interiors||[]);l&&(e=xP(e,l)),v["each"](e,(function(t){y.push(new Yg(h(t)))}))}else{var n=t.points;l&&(n=xP(n,l,!0)),v["each"](n,(function(t){m.push(new Zg(h(t)))}))}}));var b=u(i.getCenter(),s&&s.project);function _(e,n){if(e.length){var r=new hv({culling:!0,segmentIgnoreThreshold:1,shape:{paths:e}});f.add(r),vP(t,r,p,g),yP(t,r,c,g,o,p,b),n&&(pP(r),v["each"](r.states,pP))}}_(y),_(m,!0)})),e.each((function(e,r){var i=n.get(r),a=i.dataIdx,s=i.regionModel;mP(t,e,r,s,o,a),bP(t,e,r,s,o),_P(t,e,r,s,o)}),this)},t.prototype._buildSVG=function(t){var e=t.geo.map,n=t.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(e)&&(this._freeSVG(),this._useSVG(e));var r=this._svgDispatcherMap=v["createHashMap"](),i=!1;v["each"](this._svgGraphicRecord.named,(function(e){var n=e.name,o=t.mapOrGeoModel,a=t.data,s=e.svgNodeTagLower,l=e.el,u=a?a.indexOfName(n):null,c=o.getRegionModel(n);if(null!=uP.get(s)&&l instanceof ta&&vP(t,l,u,c),l instanceof ta&&(l.culling=!0),l.z2EmphasisLift=0,!e.namedFrom&&(null!=hP.get(s)&&yP(t,l,n,c,o,u,null),mP(t,l,n,c,o,u),bP(t,l,n,c,o),null!=cP.get(s))){var h=_P(t,l,n,c,o);"self"===h&&(i=!0);var f=r.get(n)||r.set(n,[]);f.push(l)}}),this),this._enableBlurEntireSVG(i,t)},t.prototype._enableBlurEntireSVG=function(t,e){if(t&&e.isGeo){var n=e.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),r=n.opacity;this._svgGraphicRecord.root.traverse((function(t){if(!t.isGroup){Cl(t);var e=t.ensureState("blur").style||{};null==e.opacity&&null!=r&&(e.opacity=r),t.ensureState("emphasis")}}))}},t.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},t.prototype.findHighDownDispatchers=function(t,e){if(null==t)return[];var n=e.coordinateSystem;if("geoJSON"===n.resourceType){var r=this._regionsGroupByName;if(r){var i=r.get(t);return i?[i]:[]}}else if("geoSVG"===n.resourceType)return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},t.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},t.prototype._useSVG=function(t){var e=sP.getGeoResource(t);if(e&&"geoSVG"===e.type){var n=e.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=t}},t.prototype._freeSVG=function(){var t=this._svgMapName;if(null!=t){var e=sP.getGeoResource(t);e&&"geoSVG"===e.type&&e.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},t.prototype._updateController=function(t,e,n){var r=t.coordinateSystem,i=this._controller,o=this._controllerHost;o.zoomLimit=t.get("scaleLimit"),o.zoom=r.getZoom(),i.enable(t.get("roam")||!1);var a=t.mainType;function s(){var e={type:"geoRoam",componentType:a};return e[a+"Id"]=t.id,e}i.off("pan").on("pan",(function(t){this._mouseDownFlag=!1,hE(o,t.dx,t.dy),n.dispatchAction(v["extend"](s(),{dx:t.dx,dy:t.dy,animation:{duration:0}}))}),this),i.off("zoom").on("zoom",(function(t){this._mouseDownFlag=!1,fE(o,t.scale,t.originX,t.originY),n.dispatchAction(v["extend"](s(),{zoom:t.scale,originX:t.originX,originY:t.originY,animation:{duration:0}}))}),this),i.setPointerChecker((function(e,i,o){return r.containPoint([i,o])&&!gE(e,n,t)}))},t.prototype.resetForLabelLayout=function(){this.group.traverse((function(t){var e=t.getTextContent();e&&(e.ignore=fP(e).ignore)}))},t.prototype._updateMapSelectHandler=function(t,e,n,r){var i=this;e.off("mousedown"),e.off("click"),t.get("selectedMode")&&(e.on("mousedown",(function(){i._mouseDownFlag=!0})),e.on("click",(function(t){i._mouseDownFlag&&(i._mouseDownFlag=!1)})))},t}();function vP(t,e,n,r){var i=r.getModel("itemStyle"),o=r.getModel(["emphasis","itemStyle"]),a=r.getModel(["blur","itemStyle"]),s=r.getModel(["select","itemStyle"]),l=dP(i),u=dP(o),c=dP(s),h=dP(a),f=t.data;if(f){var d=f.getItemVisual(n,"style"),p=f.getItemVisual(n,"decal");t.isVisualEncodedByVisualMap&&d.fill&&(l.fill=d.fill),p&&(l.decal=gb(p,t.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=u,e.ensureState("select").style=c,e.ensureState("blur").style=h,Cl(e)}function yP(t,e,n,r,i,o,a){var s=t.data,l=t.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),o)),c=s&&s.getItemLayout(o);if(l||u||c&&c.showLabel){var h=l?n:o,f=void 0;(!s||o>=0)&&(f=i);var d=a?{normal:{align:"center",verticalAlign:"middle"}}:null;bu(e,_u(r),{labelFetcher:f,labelDataIndex:h,defaultText:n},d);var p=e.getTextContent();if(p&&(fP(p).ignore=p.ignore,e.textConfig&&a)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function mP(t,e,n,r,i,o){t.data?t.data.setItemGraphicEl(o,e):Gs(e).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:n,region:r&&r.option||{}}}function bP(t,e,n,r,i){t.data||ny({el:e,componentModel:i,itemName:n,itemTooltipOption:r.get("tooltip")})}function _P(t,e,n,r,i){e.highDownSilentOnTouch=!!i.get("selectedMode");var o=r.getModel("emphasis"),a=o.get("focus");return $l(e,a,o.get("blurScope"),o.get("disabled")),t.isGeo&&tu(e,i,n),a}function xP(t,e,n){var r,i=[];function o(){r=[]}function a(){r.length&&(i.push(r),r=[])}var s=e({polygonStart:o,polygonEnd:a,lineStart:o,lineEnd:a,point:function(t,e){isFinite(t)&&isFinite(e)&&r.push([t,e])},sphere:function(){}});return!n&&s.polygonStart(),v["each"](t,(function(t){s.lineStart();for(var e=0;e<t.length;e++)s.point(t[e][0],t[e][1]);s.lineEnd()})),!n&&s.polygonEnd(),i}var wP=gP,SP=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.render=function(t,e,n,r){if(!r||"mapToggleSelect"!==r.type||r.from!==this.uid){var i=this.group;if(i.removeAll(),!t.getHostGeoModel()){if(this._mapDraw&&r&&"geoRoam"===r.type&&this._mapDraw.resetForLabelLayout(),r&&"geoRoam"===r.type&&"series"===r.componentType&&r.seriesId===t.id){o=this._mapDraw;o&&i.add(o.group)}else if(t.needsDrawMap){var o=this._mapDraw||new wP(n);i.add(o.group),o.draw(t,e,n,this,r),this._mapDraw=o}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t,e,n)}}},e.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(t,e,n){var r=t.originalData,i=this.group;r.each(r.mapDimension("value"),(function(e,n){if(!isNaN(e)){var o=r.getItemLayout(n);if(o&&o.point){var a=o.point,s=o.offset,l=new bg({style:{fill:t.getData().getVisual("style").fill},shape:{cx:a[0]+9*s,cy:a[1],r:3},silent:!0,z2:8+(s?0:tl+1)});if(!s){var u=t.mainSeries.getData(),c=r.getName(n),h=u.indexOfName(c),f=r.getItemModel(n),d=f.getModel("label"),p=u.getItemGraphicEl(h);bu(l,_u(f),{labelFetcher:{getFormattedLabel:function(e,n){return t.getFormattedLabel(h,n)}},defaultText:c}),l.disableLabelAnimation=!0,d.get("position")||l.setTextConfig({position:"bottom"}),p.onHoverStateChange=function(t){bl(l,t)}}i.add(l)}}}))},e.type="map",e}(dy),OP=SP,CP=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(t){if(null!=t){var e=this.getData().getName(t),n=this.coordinateSystem,r=n.getRegion(e);return r&&n.dataToPoint(r.getCenter())}},n}return p(e,t),e.prototype.getInitialData=function(t){for(var e=eT(this,{coordDimensions:["value"],encodeDefaulter:v["curry"](jh,this)}),n=v["createHashMap"](),r=[],i=0,o=e.count();i<o;i++){var a=e.getName(i);n.set(a,!0)}var s=sP.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return v["each"](s.regions,(function(t){var e=t.name;n.get(e)||r.push(e)})),e.appendValues([],r),e},e.prototype.getHostGeoModel=function(){var t=this.option.geoIndex;return null!=t?this.ecModel.getComponent("geo",t):null},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(t){var e=this.getData();return e.get(e.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var e=this.getData();return e.getItemModel(e.indexOfName(t))},e.prototype.formatTooltip=function(t,e,n){for(var r=this.getData(),i=this.getRawValue(t),o=r.getName(t),a=this.seriesGroup,s=[],l=0;l<a.length;l++){var u=a[l].originalData.indexOfName(o),c=r.mapDimension("value");isNaN(a[l].originalData.get(c,u))||s.push(a[l].name)}return pp("section",{header:s.join(", "),noHeader:!s.length,blocks:[pp("nameValue",{name:o,value:i})]})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.getLegendIcon=function(t){var e=t.icon||"roundRect",n=km(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return n.setStyle(t.itemStyle),n.style.stroke="none",e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,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)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(Hp),kP=CP;function AP(t,e){var n={};return v["each"](t,(function(t){t.each(t.mapDimension("value"),(function(e,r){var i="ec-"+t.getName(r);n[i]=n[i]||[],isNaN(e)||n[i].push(e)}))})),t[0].map(t[0].mapDimension("value"),(function(r,i){for(var o,a="ec-"+t[0].getName(i),s=0,l=1/0,u=-1/0,c=n[a].length,h=0;h<c;h++)l=Math.min(l,n[a][h]),u=Math.max(u,n[a][h]),s+=n[a][h];return o="min"===e?l:"max"===e?u:"average"===e?s/c:s,0===c?NaN:o}))}function MP(t){var e={};t.eachSeriesByType("map",(function(t){var n=t.getHostGeoModel(),r=n?"o"+n.id:"i"+t.getMapType();(e[r]=e[r]||[]).push(t)})),v["each"](e,(function(t,e){for(var n=AP(v["map"](t,(function(t){return t.getData()})),t[0].get("mapValueCalculation")),r=0;r<t.length;r++)t[r].originalData=t[r].getData();for(r=0;r<t.length;r++)t[r].seriesGroup=t,t[r].needsDrawMap=0===r&&!t[r].getHostGeoModel(),t[r].setData(n.cloneShallow()),t[r].mainSeries=t[0]}))}function TP(t){var e={};t.eachSeriesByType("map",(function(n){var r=n.getMapType();if(!n.getHostGeoModel()&&!e[r]){var i={};v["each"](n.seriesGroup,(function(e){var n=e.coordinateSystem,r=e.originalData;e.get("showLegendSymbol")&&t.getComponent("legend")&&r.each(r.mapDimension("value"),(function(t,e){var o=r.getName(e),a=n.getRegion(o);if(a&&!isNaN(t)){var s=i[o]||0,l=n.dataToPoint(a.getCenter());i[o]=s+1,r.setItemLayout(e,{point:l,offset:s})}}))}));var o=n.getData();o.each((function(t){var e=o.getName(t),n=o.getItemLayout(t)||{};n.showLabel=!i[e],o.setItemLayout(t,n)})),e[r]=!0}}))}var IP=F,EP=function(t){function e(e){var n=t.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new cr,n._rawTransformable=new cr,n.name=e,n}return p(e,t),e.prototype.setBoundingRect=function(t,e,n,r){return this._rect=new qt(t,e,n,r),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(t,e,n,r){this._transformTo(t,e,n,r),this._viewRect=new qt(t,e,n,r)},e.prototype._transformTo=function(t,e,n,r){var i=this.getBoundingRect(),o=this._rawTransformable;o.transform=i.calculateTransform(new qt(t,e,n,r));var a=o.parent;o.parent=null,o.decomposeTransform(),o.parent=a,this._updateTransform()},e.prototype.setCenter=function(t,e){t&&(this._center=[Jr(t[0],e.getWidth()),Jr(t[1],e.getHeight())],this._updateCenterAndZoom())},e.prototype.setZoom=function(t){t=t||1;var e=this.zoomLimit;e&&(null!=e.max&&(t=Math.min(e.max,t)),null!=e.min&&(t=Math.max(e.min,t))),this._zoom=t,this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var t=this.getBoundingRect(),e=t.x+t.width/2,n=t.y+t.height/2;return[e,n]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var t=this._rawTransformable.getLocalTransform(),e=this._roamTransformable,n=this.getDefaultCenter(),r=this.getCenter(),i=this.getZoom();r=F([],r,t),n=F([],n,t),e.originX=r[0],e.originY=r[1],e.x=n[0]-r[0],e.y=n[1]-r[1],e.scaleX=e.scaleY=i,this._updateTransform()},e.prototype._updateTransform=function(){var t=this._roamTransformable,e=this._rawTransformable;e.parent=t,t.updateTransform(),e.updateTransform(),Ot(this.transform||(this.transform=[]),e.transform||wt()),this._rawTransform=e.getLocalTransform(),this.invTransform=this.invTransform||[],Tt(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,e=this._roamTransformable,n=new cr;return n.transform=e.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},e.prototype.dataToPoint=function(t,e,n){var r=e?this._rawTransform:this.transform;return n=n||[],r?IP(n,t,r):m(n,t)},e.prototype.pointToData=function(t){var e=this.invTransform;return e?IP([],t,e):[t[0],t[1]]},e.prototype.convertToPixel=function(t,e,n){var r=PP(e);return r===this?r.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,e,n){var r=PP(e);return r===this?r.pointToData(n):null},e.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},e.dimensions=["x","y"],e}(cr);function PP(t){var e=t.seriesModel;return e?e.coordinateSystem:null}var jP=EP,LP={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},DP=["lng","lat"],RP=function(t){function e(e,n,r){var i=t.call(this,e)||this;i.dimensions=DP,i.type="geo",i._nameCoordMap=v["createHashMap"](),i.map=n;var o,a=r.projection,s=sP.load(n,r.nameMap,r.nameProperty),l=sP.getGeoResource(n),u=(i.resourceType=l?l.type:null,i.regions=s.regions),c=LP[l.type];if(i._regionsMap=s.regionsMap,i.regions=s.regions,i.projection=a,a)for(var h=0;h<u.length;h++){var f=u[h].getBoundingRect(a);o=o||f.clone(),o.union(f)}else o=s.boundingRect;return i.setBoundingRect(o.x,o.y,o.width,o.height),i.aspectScale=a?1:v["retrieve2"](r.aspectScale,c.aspectScale),i._invertLongitute=!a&&c.invertLongitute,i}return p(e,t),e.prototype._transformTo=function(t,e,n,r){var i=this.getBoundingRect(),o=this._invertLongitute;i=i.clone(),o&&(i.y=-i.y-i.height);var a=this._rawTransformable;a.transform=i.calculateTransform(new qt(t,e,n,r));var s=a.parent;a.parent=null,a.decomposeTransform(),a.parent=s,o&&(a.scaleY=-a.scaleY),this._updateTransform()},e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var e=this.regions,n=0;n<e.length;n++){var r=e[n];if("geoJSON"===r.type&&r.contain(t))return e[n]}},e.prototype.addGeoCoord=function(t,e){this._nameCoordMap.set(t,e)},e.prototype.getGeoCoord=function(t){var e=this._regionsMap.get(t);return this._nameCoordMap.get(t)||e&&e.getCenter()},e.prototype.dataToPoint=function(t,e,n){if(v["isString"](t)&&(t=this.getGeoCoord(t)),t){var r=this.projection;return r&&(t=r.project(t)),t&&this.projectedToPoint(t,e,n)}},e.prototype.pointToData=function(t){var e=this.projection;return e&&(t=e.unproject(t)),t&&this.pointToProjected(t)},e.prototype.pointToProjected=function(e){return t.prototype.pointToData.call(this,e)},e.prototype.projectedToPoint=function(e,n,r){return t.prototype.dataToPoint.call(this,e,n,r)},e.prototype.convertToPixel=function(t,e,n){var r=NP(e);return r===this?r.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,e,n){var r=NP(e);return r===this?r.pointToData(n):null},e}(jP);function NP(t){var e=t.geoModel,n=t.seriesModel;return e?e.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",Qi).models[0]||{}).coordinateSystem:null}v["mixin"](RP,jP);var BP=RP;function FP(t,e){var n=t.get("boundingCoords");if(null!=n){var r=n[0],i=n[1];if(isFinite(r[0])&&isFinite(r[1])&&isFinite(i[0])&&isFinite(i[1])){var o=this.projection;if(o){var a=r[0],s=r[1],l=i[0],u=i[1];r=[1/0,1/0],i=[-1/0,-1/0];var c=function(t,e,n,a){for(var s=n-t,l=a-e,u=0;u<=100;u++){var c=u/100,h=o.project([t+s*c,e+l*c]);z(r,r,h),V(i,i,h)}};c(a,s,l,s),c(l,s,l,u),c(l,u,a,u),c(a,u,l,s)}this.setBoundingRect(r[0],r[1],i[0]-r[0],i[1]-r[1])}else 0}var h,f,d,p=this.getBoundingRect(),g=t.get("layoutCenter"),v=t.get("layoutSize"),y=e.getWidth(),m=e.getHeight(),b=p.width/p.height*this.aspectScale,_=!1;if(g&&v&&(h=[Jr(g[0],y),Jr(g[1],m)],f=Jr(v,Math.min(y,m)),isNaN(h[0])||isNaN(h[1])||isNaN(f)||(_=!0)),_)d={},b>1?(d.width=f,d.height=f/b):(d.height=f,d.width=f*b),d.y=h[1]-d.height/2,d.x=h[0]-d.width/2;else{var x=t.getBoxLayoutParams();x.aspect=b,d=ah(x,{width:y,height:m})}this.setViewRect(d.x,d.y,d.width,d.height),this.setCenter(t.get("center"),e),this.setZoom(t.get("zoom"))}function zP(t,e){v["each"](e.get("geoCoord"),(function(e,n){t.addGeoCoord(n,e)}))}var VP=function(){function t(){this.dimensions=DP}return t.prototype.create=function(t,e){var n=[];function r(t){return{nameProperty:t.get("nameProperty"),aspectScale:t.get("aspectScale"),projection:t.get("projection")}}t.eachComponent("geo",(function(t,i){var o=t.get("map"),a=new BP(o+i,o,v["extend"]({nameMap:t.get("nameMap")},r(t)));a.zoomLimit=t.get("scaleLimit"),n.push(a),t.coordinateSystem=a,a.model=t,a.resize=FP,a.resize(t,e)})),t.eachSeries((function(t){var e=t.get("coordinateSystem");if("geo"===e){var r=t.get("geoIndex")||0;t.coordinateSystem=n[r]}}));var i={};return t.eachSeriesByType("map",(function(t){if(!t.getHostGeoModel()){var e=t.getMapType();i[e]=i[e]||[],i[e].push(t)}})),v["each"](i,(function(t,i){var o=v["map"](t,(function(t){return t.get("nameMap")})),a=new BP(i,i,v["extend"]({nameMap:v["mergeAll"](o)},r(t[0])));a.zoomLimit=v["retrieve"].apply(null,v["map"](t,(function(t){return t.get("scaleLimit")}))),n.push(a),a.resize=FP,a.resize(t[0],e),v["each"](t,(function(t){t.coordinateSystem=a,zP(a,t)}))})),n},t.prototype.getFilledRegions=function(t,e,n,r){for(var i=(t||[]).slice(),o=v["createHashMap"](),a=0;a<i.length;a++)o.set(i[a].name,i[a]);var s=sP.load(e,n,r);return v["each"](s.regions,(function(t){var e=t.name;!o.get(e)&&i.push({name:e})})),i},t}(),qP=new VP,GP=qP,HP=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.init=function(t,e,n){var r=sP.getGeoResource(t.map);if(r&&"geoJSON"===r.type){var i=t.itemStyle=t.itemStyle||{};"color"in i||(i.color="#eee")}this.mergeDefaultAndTheme(t,n),Ai(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,e=this.option;e.regions=GP.getFilledRegions(e.regions,e.map,e.nameMap,e.nameProperty);var n={};this._optionModelMap=v["reduce"](e.regions||[],(function(e,r){var i=r.name;return i&&(e.set(i,new Wu(r,t,t.ecModel)),r.selected&&(n[i]=!0)),e}),v["createHashMap"]()),e.selectedMap||(e.selectedMap=n)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new Wu(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,e){var n=this.getRegionModel(t),r="normal"===e?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),i={name:t};return v["isFunction"](r)?(i.status=e,r(i)):v["isString"](r)?r.replace("{a}",null!=t?t:""):void 0},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.select=function(t){var e=this.option,n=e.selectedMode;if(n){"multiple"!==n&&(e.selectedMap=null);var r=e.selectedMap||(e.selectedMap={});r[t]=!0}},e.prototype.unSelect=function(t){var e=this.option.selectedMap;e&&(e[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var e=this.option.selectedMap;return!(!e||!e[t])},e.type="geo",e.layoutMode="box",e.defaultOption={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"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},e}(vh),WP=HP;function UP(t,e){return t.pointToProjected?t.pointToProjected(e):t.pointToData(e)}function $P(t,e,n,r){var i=t.getZoom(),o=t.getCenter(),a=e.zoom,s=t.projectedToPoint?t.projectedToPoint(o):t.dataToPoint(o);if(null!=e.dx&&null!=e.dy&&(s[0]-=e.dx,s[1]-=e.dy,t.setCenter(UP(t,s),r)),null!=a){if(n){var l=n.min||0,u=n.max||1/0;a=Math.max(Math.min(i*a,u),l)/i}t.scaleX*=a,t.scaleY*=a;var c=(e.originX-t.x)*(a-1),h=(e.originY-t.y)*(a-1);t.x-=c,t.y-=h,t.updateTransform(),t.setCenter(UP(t,s),r),t.setZoom(a*i)}return{center:t.getCenter(),zoom:t.getZoom()}}var YP=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.focusBlurEnabled=!0,n}return p(e,t),e.prototype.init=function(t,e){this._api=e},e.prototype.render=function(t,e,n,r){if(this._model=t,!t.get("show"))return this._mapDraw&&this._mapDraw.remove(),void(this._mapDraw=null);this._mapDraw||(this._mapDraw=new wP(n));var i=this._mapDraw;i.draw(t,e,n,this,r),i.group.on("click",this._handleRegionClick,this),i.group.silent=t.get("silent"),this.group.add(i.group),this.updateSelectStatus(t,e,n)},e.prototype._handleRegionClick=function(t){var e;fm(t.target,(function(t){return null!=(e=Gs(t).eventData)}),!0),e&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:e.name})},e.prototype.updateSelectStatus=function(t,e,n){var r=this;this._mapDraw.group.traverse((function(t){var e=Gs(t).eventData;if(e)return r._model.isSelected(e.name)?n.enterSelect(t):n.leaveSelect(t),!0}))},e.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e}(Up),XP=YP;function KP(t,e,n){sP.registerMap(t,e,n)}function ZP(t){function e(e,n){n.update="geo:updateSelectStatus",t.registerAction(n,(function(t,n){var r={},i=[];return n.eachComponent({mainType:"geo",query:t},(function(n){n[e](t.name);var o=n.coordinateSystem;Object(v["each"])(o.regions,(function(t){r[t.name]=n.isSelected(t.name)||!1}));var a=[];Object(v["each"])(r,(function(t,e){r[e]&&a.push(e)})),i.push({geoIndex:n.componentIndex,name:a})})),{selected:r,allSelected:i,name:t.name}}))}t.registerCoordinateSystem("geo",GP),t.registerComponentModel(WP),t.registerComponentView(XP),t.registerImpl("registerMap",KP),t.registerImpl("getMap",(function(t){return sP.getMapForUser(t)})),e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),t.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},(function(t,e,n){var r=t.componentType||"series";e.eachComponent({mainType:r,query:t},(function(e){var i=e.coordinateSystem;if("geo"===i.type){var o=$P(i,t,e.get("scaleLimit"),n);e.setCenter&&e.setCenter(o.center),e.setZoom&&e.setZoom(o.zoom),"series"===r&&Object(v["each"])(e.seriesGroup,(function(t){t.setCenter(o.center),t.setZoom(o.zoom)}))}}))}))}function QP(t){px(ZP),t.registerChartView(OP),t.registerSeriesModel(kP),t.registerLayout(TP),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,MP),um("map",t.registerAction)}function JP(t){var e=t;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};var n,r,i=[e];while(n=i.pop())if(r=n.children,n.isExpand&&r.length)for(var o=r.length,a=o-1;a>=0;a--){var s=r[a];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:a,thread:null},i.push(s)}}function tj(t,e){var n=t.isExpand?t.children:[],r=t.parentNode.children,i=t.hierNode.i?r[t.hierNode.i-1]:null;if(n.length){oj(t);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;i?(t.hierNode.prelim=i.hierNode.prelim+e(t,i),t.hierNode.modifier=t.hierNode.prelim-o):t.hierNode.prelim=o}else i&&(t.hierNode.prelim=i.hierNode.prelim+e(t,i));t.parentNode.hierNode.defaultAncestor=aj(t,i,t.parentNode.hierNode.defaultAncestor||r[0],e)}function ej(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function nj(t){return arguments.length?t:hj}function rj(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function ij(t,e){return ah(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function oj(t){var e=t.children,n=e.length,r=0,i=0;while(--n>=0){var o=e[n];o.hierNode.prelim+=r,o.hierNode.modifier+=r,i+=o.hierNode.change,r+=o.hierNode.shift+i}}function aj(t,e,n,r){if(e){var i=t,o=t,a=o.parentNode.children[0],s=e,l=i.hierNode.modifier,u=o.hierNode.modifier,c=a.hierNode.modifier,h=s.hierNode.modifier;while(s=sj(s),o=lj(o),s&&o){i=sj(i),a=lj(a),i.hierNode.ancestor=t;var f=s.hierNode.prelim+h-o.hierNode.prelim-u+r(s,o);f>0&&(cj(uj(s,t,n),t,f),u+=f,l+=f),h+=s.hierNode.modifier,u+=o.hierNode.modifier,l+=i.hierNode.modifier,c+=a.hierNode.modifier}s&&!sj(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=h-l),o&&!lj(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=u-c,n=t)}return n}function sj(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function lj(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function uj(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}function cj(t,e,n){var r=n/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=r,e.hierNode.shift+=n,e.hierNode.modifier+=n,e.hierNode.prelim+=n,t.hierNode.change+=r}function hj(t,e){return t.parentNode===e.parentNode?1:2}var fj=function(){function t(){this.parentPoint=[],this.childPoints=[]}return t}(),dj=function(t){function e(e){return t.call(this,e)||this}return p(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new fj},e.prototype.buildPath=function(t,e){var n=e.childPoints,r=n.length,i=e.parentPoint,o=n[0],a=n[r-1];if(1===r)return t.moveTo(i[0],i[1]),void t.lineTo(o[0],o[1]);var s=e.orient,l="TB"===s||"BT"===s?0:1,u=1-l,c=Jr(e.forkPosition,1),h=[];h[l]=i[l],h[u]=i[u]+(a[u]-i[u])*c,t.moveTo(i[0],i[1]),t.lineTo(h[0],h[1]),t.moveTo(o[0],o[1]),h[l]=o[l],t.lineTo(h[0],h[1]),h[l]=a[l],t.lineTo(h[0],h[1]),t.lineTo(a[0],a[1]);for(var f=1;f<r-1;f++){var d=n[f];t.moveTo(d[0],d[1]),h[l]=d[l],t.lineTo(h[0],h[1])}},e}(ss),pj=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._mainGroup=new Nr,n}return p(e,t),e.prototype.init=function(t,e){this._controller=new cE(e.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},e.prototype.render=function(t,e,n){var r=t.getData(),i=t.layoutInfo,o=this._mainGroup,a=t.get("layout");"radial"===a?(o.x=i.x+i.width/2,o.y=i.y+i.height/2):(o.x=i.x,o.y=i.y),this._updateViewCoordSys(t,n),this._updateController(t,e,n);var s=this._data;r.diff(s).add((function(e){gj(r,e)&&vj(r,e,null,o,t)})).update((function(e,n){var i=s.getItemGraphicEl(n);gj(r,e)?vj(r,e,i,o,t):i&&_j(s,n,i,o,t)})).remove((function(e){var n=s.getItemGraphicEl(e);n&&_j(s,e,n,o,t)})).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),!0===t.get("expandAndCollapse")&&r.eachItemGraphicEl((function(e,r){e.off("click").on("click",(function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:r})}))})),this._data=r},e.prototype._updateViewCoordSys=function(t,e){var n=t.getData(),r=[];n.each((function(t){var e=n.getItemLayout(t);!e||isNaN(e.x)||isNaN(e.y)||r.push([+e.x,+e.y])}));var i=[],o=[];ua(r,i,o);var a=this._min,s=this._max;o[0]-i[0]===0&&(i[0]=a?a[0]:i[0]-1,o[0]=s?s[0]:o[0]+1),o[1]-i[1]===0&&(i[1]=a?a[1]:i[1]-1,o[1]=s?s[1]:o[1]+1);var l=t.coordinateSystem=new jP;l.zoomLimit=t.get("scaleLimit"),l.setBoundingRect(i[0],i[1],o[0]-i[0],o[1]-i[1]),l.setCenter(t.get("center"),e),l.setZoom(t.get("zoom")),this.group.attr({x:l.x,y:l.y,scaleX:l.scaleX,scaleY:l.scaleY}),this._min=i,this._max=o},e.prototype._updateController=function(t,e,n){var r=this,i=this._controller,o=this._controllerHost,a=this.group;i.setPointerChecker((function(e,r,i){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(r,i)&&!gE(e,n,t)})),i.enable(t.get("roam")),o.zoomLimit=t.get("scaleLimit"),o.zoom=t.coordinateSystem.getZoom(),i.off("pan").off("zoom").on("pan",(function(e){hE(o,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"treeRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){fE(o,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:"treeRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),r._updateNodeAndLinkScale(t),n.updateLabelLayout()}))},e.prototype._updateNodeAndLinkScale=function(t){var e=t.getData(),n=this._getNodeGlobalScale(t);e.eachItemGraphicEl((function(t,e){t.setSymbolScale(n)}))},e.prototype._getNodeGlobalScale=function(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var n=this._nodeScaleRatio,r=e.scaleX||1,i=e.getZoom(),o=(i-1)*n+1;return o/r},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type="tree",e}(dy);function gj(t,e){var n=t.getItemLayout(e);return n&&!isNaN(n.x)&&!isNaN(n.y)}function vj(t,e,n,r,i){var o=!n,a=t.tree.getNodeByDataIndex(e),s=a.getModel(),l=a.getVisual("style").fill,u=!1===a.isExpand&&0!==a.children.length?l:"#fff",c=t.tree.root,h=a.parentNode===c?a:a.parentNode||a,f=t.getItemGraphicEl(h.dataIndex),d=h.getLayout(),p=f?{x:f.__oldX,y:f.__oldY,rawX:f.__radialOldRawX,rawY:f.__radialOldRawY}:d,g=a.getLayout();o?(n=new uA(t,e,null,{symbolInnerColor:u,useNameLabel:!0}),n.x=p.x,n.y=p.y):n.updateData(t,e,null,{symbolInnerColor:u,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=g.rawX,n.__radialRawY=g.rawY,r.add(n),t.setItemGraphicEl(e,n),n.__oldX=n.x,n.__oldY=n.y,lu(n,{x:g.x,y:g.y},i);var y=n.getSymbolPath();if("radial"===i.get("layout")){var m=c.children[0],b=m.getLayout(),_=m.children.length,x=void 0,w=void 0;if(g.x===b.x&&!0===a.isExpand&&m.children.length){var S={x:(m.children[0].getLayout().x+m.children[_-1].getLayout().x)/2,y:(m.children[0].getLayout().y+m.children[_-1].getLayout().y)/2};x=Math.atan2(S.y-b.y,S.x-b.x),x<0&&(x=2*Math.PI+x),w=S.x<b.x,w&&(x-=Math.PI)}else x=Math.atan2(g.y-b.y,g.x-b.x),x<0&&(x=2*Math.PI+x),0===a.children.length||0!==a.children.length&&!1===a.isExpand?(w=g.x<b.x,w&&(x-=Math.PI)):(w=g.x>b.x,w||(x-=Math.PI));var O=w?"left":"right",C=s.getModel("label"),k=C.get("rotate"),A=k*(Math.PI/180),M=y.getTextContent();M&&(y.setTextConfig({position:C.get("position")||O,rotation:null==k?-x:A,origin:"center"}),M.setStyle("verticalAlign","middle"))}var T=s.get(["emphasis","focus"]),I="relative"===T?v["concatArray"](a.getAncestorsIndices(),a.getDescendantIndices()):"ancestor"===T?a.getAncestorsIndices():"descendant"===T?a.getDescendantIndices():null;I&&(Gs(n).focus=I),yj(i,a,c,n,p,d,g,r),n.__edge&&(n.onHoverStateChange=function(e){if("blur"!==e){var r=a.parentNode&&t.getItemGraphicEl(a.parentNode.dataIndex);r&&r.hoverState===Ks||bl(n.__edge,e)}})}function yj(t,e,n,r,i,o,a,s){var l=e.getModel(),u=t.get("edgeShape"),c=t.get("layout"),h=t.getOrient(),f=t.get(["lineStyle","curveness"]),d=t.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),g=r.__edge;if("curve"===u)e.parentNode&&e.parentNode!==n&&(g||(g=r.__edge=new av({shape:xj(c,h,f,i,i)})),lu(g,{shape:xj(c,h,f,o,a)},t));else if("polyline"===u)if("orthogonal"===c){if(e!==n&&e.children&&0!==e.children.length&&!0===e.isExpand){for(var y=e.children,m=[],b=0;b<y.length;b++){var _=y[b].getLayout();m.push([_.x,_.y])}g||(g=r.__edge=new dj({shape:{parentPoint:[a.x,a.y],childPoints:[[a.x,a.y]],orient:h,forkPosition:d}})),lu(g,{shape:{parentPoint:[a.x,a.y],childPoints:m}},t)}}else 0;g&&("polyline"!==u||e.isExpand)&&(g.useStyle(v["defaults"]({strokeNoScale:!0,fill:null},p)),Zl(g,l,"lineStyle"),Cl(g),s.add(g))}function mj(t,e,n,r,i){var o=e.tree.root,a=bj(o,t),s=a.source,l=a.sourceLayout,u=e.getItemGraphicEl(t.dataIndex);if(u){var c=e.getItemGraphicEl(s.dataIndex),h=c.__edge,f=u.__edge||(!1===s.isExpand||1===s.children.length?h:void 0),d=r.get("edgeShape"),p=r.get("layout"),g=r.get("orient"),v=r.get(["lineStyle","curveness"]);f&&("curve"===d?hu(f,{shape:xj(p,g,v,l,l),style:{opacity:0}},r,{cb:function(){n.remove(f)},removeOpt:i}):"polyline"===d&&"orthogonal"===r.get("layout")&&hu(f,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},r,{cb:function(){n.remove(f)},removeOpt:i}))}}function bj(t,e){var n,r=e.parentNode===t?e:e.parentNode||e;while(n=r.getLayout(),null==n)r=r.parentNode===t?r:r.parentNode||r;return{source:r,sourceLayout:n}}function _j(t,e,n,r,i){var o=t.tree.getNodeByDataIndex(e),a=t.tree.root,s=bj(a,o).sourceLayout,l={duration:i.get("animationDurationUpdate"),easing:i.get("animationEasingUpdate")};hu(n,{x:s.x+1,y:s.y+1},i,{cb:function(){r.remove(n),t.setItemGraphicEl(e,null)},removeOpt:l}),n.fadeOut(null,t.hostModel,{fadeLabel:!0,animation:l}),o.children.forEach((function(e){mj(e,t,r,i,l)})),mj(o,t,r,i,l)}function xj(t,e,n,r,i){var o,a,s,l,u,c,h,f;if("radial"===t){u=r.rawX,h=r.rawY,c=i.rawX,f=i.rawY;var d=rj(u,h),p=rj(u,h+(f-h)*n),g=rj(c,f+(h-f)*n),v=rj(c,f);return{x1:d.x||0,y1:d.y||0,x2:v.x||0,y2:v.y||0,cpx1:p.x||0,cpy1:p.y||0,cpx2:g.x||0,cpy2:g.y||0}}return u=r.x,h=r.y,c=i.x,f=i.y,"LR"!==e&&"RL"!==e||(o=u+(c-u)*n,a=h,s=c+(u-c)*n,l=f),"TB"!==e&&"BT"!==e||(o=u,a=h+(f-h)*n,s=c,l=f+(h-f)*n),{x1:u,y1:h,x2:c,y2:f,cpx1:o,cpy1:a,cpx2:s,cpy2:l}}var wj=pj,Sj=Yi();function Oj(t){var e=t.mainData,n=t.datas;n||(n={main:e},t.datasAttr={main:"data"}),t.datas=t.mainData=null,Ej(e,n,t),Object(v["each"])(n,(function(n){Object(v["each"])(e.TRANSFERABLE_METHODS,(function(e){n.wrapMethod(e,Object(v["curry"])(Cj,t))}))})),e.wrapMethod("cloneShallow",Object(v["curry"])(Aj,t)),Object(v["each"])(e.CHANGABLE_METHODS,(function(n){e.wrapMethod(n,Object(v["curry"])(kj,t))})),Object(v["assert"])(n[e.dataType]===e)}function Cj(t,e){if(Ij(this)){var n=Object(v["extend"])({},Sj(this).datas);n[this.dataType]=e,Ej(e,n,t)}else Pj(e,this.dataType,Sj(this).mainData,t);return e}function kj(t,e){return t.struct&&t.struct.update(),e}function Aj(t,e){return Object(v["each"])(Sj(e).datas,(function(n,r){n!==e&&Pj(n.cloneShallow(),r,e,t)})),e}function Mj(t){var e=Sj(this).mainData;return null==t||null==e?e:Sj(e).datas[t]}function Tj(){var t=Sj(this).mainData;return null==t?[{data:t}]:Object(v["map"])(Object(v["keys"])(Sj(t).datas),(function(e){return{type:e,data:Sj(t).datas[e]}}))}function Ij(t){return Sj(t).mainData===t}function Ej(t,e,n){Sj(t).datas={},Object(v["each"])(e,(function(e,r){Pj(e,r,t,n)}))}function Pj(t,e,n,r){Sj(n).datas[e]=t,Sj(t).mainData=n,t.dataType=e,r.struct&&(t[r.structAttr]=r.struct,r.struct[r.datasAttr[e]]=t),t.getLinkedData=Mj,t.getLinkedDataAll=Tj}var jj=Oj,Lj=function(){function t(t,e){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=e}return t.prototype.isRemoved=function(){return this.dataIndex<0},t.prototype.eachNode=function(t,e,n){v["isFunction"](t)&&(n=e,e=t,t=null),t=t||{},v["isString"](t)&&(t={order:t});var r,i=t.order||"preorder",o=this[t.attr||"children"];"preorder"===i&&(r=e.call(n,this));for(var a=0;!r&&a<o.length;a++)o[a].eachNode(t,e,n);"postorder"===i&&e.call(n,this)},t.prototype.updateDepthAndHeight=function(t){var e=0;this.depth=t;for(var n=0;n<this.children.length;n++){var r=this.children[n];r.updateDepthAndHeight(t+1),r.height>e&&(e=r.height)}this.height=e+1},t.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,r=n.length;e<r;e++){var i=n[e].getNodeById(t);if(i)return i}},t.prototype.contains=function(t){if(t===this)return!0;for(var e=0,n=this.children,r=n.length;e<r;e++){var i=n[e].contains(t);if(i)return i}},t.prototype.getAncestors=function(t){var e=[],n=t?this:this.parentNode;while(n)e.push(n),n=n.parentNode;return e.reverse(),e},t.prototype.getAncestorsIndices=function(){var t=[],e=this;while(e)t.push(e.dataIndex),e=e.parentNode;return t.reverse(),t},t.prototype.getDescendantIndices=function(){var t=[];return this.eachNode((function(e){t.push(e.dataIndex)})),t},t.prototype.getValue=function(t){var e=this.hostTree.data;return e.getStore().get(e.getDimensionIndex(t||"value"),this.dataIndex)},t.prototype.setLayout=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},t.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},t.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostTree,n=e.data.getItemModel(this.dataIndex);return n.getModel(t)}},t.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},t.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},t.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},t.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},t.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},t.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e<t.length;++e)if(t[e]===this)return e;return-1}return-1},t.prototype.isAncestorOf=function(t){var e=t.parentNode;while(e){if(e===this)return!0;e=e.parentNode}return!1},t.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},t}(),Dj=function(){function t(t){this.type="tree",this._nodes=[],this.hostModel=t}return t.prototype.eachNode=function(t,e,n){this.root.eachNode(t,e,n)},t.prototype.getNodeByDataIndex=function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},t.prototype.getNodeById=function(t){return this.root.getNodeById(t)},t.prototype.update=function(){for(var t=this.data,e=this._nodes,n=0,r=e.length;n<r;n++)e[n].dataIndex=-1;for(n=0,r=t.count();n<r;n++)e[t.getRawIndex(n)].dataIndex=n},t.prototype.clearLayouts=function(){this.data.clearItemLayouts()},t.createTree=function(e,n,r){var i=new t(n),o=[],a=1;function s(t,e){var n=t.value;a=Math.max(a,v["isArray"](n)?n.length:1),o.push(t);var r=new Lj(zi(t.name,""),i);e?Rj(r,e):i.root=r,i._nodes.push(r);var l=t.children;if(l)for(var u=0;u<l.length;u++)s(l[u],r)}s(e),i.root.updateDepthAndHeight(0);var l=Kx(o,{coordDimensions:["value"],dimensionsCount:a}).dimensions,u=new Yx(l,n);return u.initData(o),r&&r(u),jj({mainData:u,struct:i,structAttr:"tree"}),i.update(),i},t}();function Rj(t,e){var n=e.children;t.parentNode!==e&&(n.push(t),t.parentNode=e)}var Nj=Dj;function Bj(t,e,n){if(t&&v["indexOf"](e,t.type)>=0){var r=n.getData().tree.root,i=t.targetNode;if(v["isString"](i)&&(i=r.getNodeById(i)),i&&r.contains(i))return{node:i};var o=t.targetNodeId;if(null!=o&&(i=r.getNodeById(o)))return{node:i}}}function Fj(t){var e=[];while(t)t=t.parentNode,t&&e.push(t);return e.reverse()}function zj(t,e){var n=Fj(t);return v["indexOf"](n,e)>=0}function Vj(t,e){var n=[];while(t){var r=t.dataIndex;n.push({name:t.name,dataIndex:r,value:e.getRawValue(r)}),t=t.parentNode}return n.reverse(),n}var qj=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return p(e,t),e.prototype.getInitialData=function(t){var e={name:t.name,children:t.data},n=t.leaves||{},r=new Wu(n,this,this.ecModel),i=Nj.createTree(e,this,o);function o(t){t.wrapMethod("getItemModel",(function(t,e){var n=i.getNodeByDataIndex(e);return n&&n.children.length&&n.isExpand||(t.parentModel=r),t}))}var a=0;i.eachNode("preorder",(function(t){t.depth>a&&(a=t.depth)}));var s=t.expandAndCollapse,l=s&&t.initialTreeDepth>=0?t.initialTreeDepth:a;return i.root.eachNode("preorder",(function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=l})),i.data},e.prototype.getOrient=function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,e,n){var r=this.getData().tree,i=r.root.children[0],o=r.getNodeByDataIndex(t),a=o.getValue(),s=o.name;while(o&&o!==i)s=o.parentNode.name+"."+s,o=o.parentNode;return pp("nameValue",{name:s,value:a,noValue:isNaN(a)||null==a})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=Vj(r,this),n.collapsed=!r.isExpand,n},e.type="series.tree",e.layoutMode="box",e.defaultOption={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",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(Hp),Gj=qj;function Hj(t,e,n){var r,i=[t],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())e(r,n)}function Wj(t,e){var n,r=[t];while(n=r.pop())if(e(n),n.isExpand){var i=n.children;if(i.length)for(var o=i.length-1;o>=0;o--)r.push(i[o])}}function Uj(t,e){t.eachSeriesByType("tree",(function(t){$j(t,e)}))}function $j(t,e){var n=ij(t,e);t.layoutInfo=n;var r=t.get("layout"),i=0,o=0,a=null;"radial"===r?(i=2*Math.PI,o=Math.min(n.height,n.width)/2,a=nj((function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth}))):(i=n.width,o=n.height,a=nj());var s=t.getData().tree.root,l=s.children[0];if(l){JP(s),Hj(l,tj,a),s.hierNode.modifier=-l.hierNode.prelim,Wj(l,ej);var u=l,c=l,h=l;Wj(l,(function(t){var e=t.getLayout().x;e<u.getLayout().x&&(u=t),e>c.getLayout().x&&(c=t),t.depth>h.depth&&(h=t)}));var f=u===c?1:a(u,c)/2,d=f-u.getLayout().x,p=0,g=0,v=0,y=0;if("radial"===r)p=i/(c.getLayout().x+f+d),g=o/(h.depth-1||1),Wj(l,(function(t){v=(t.getLayout().x+d)*p,y=(t.depth-1)*g;var e=rj(v,y);t.setLayout({x:e.x,y:e.y,rawX:v,rawY:y},!0)}));else{var m=t.getOrient();"RL"===m||"LR"===m?(g=o/(c.getLayout().x+f+d),p=i/(h.depth-1||1),Wj(l,(function(t){y=(t.getLayout().x+d)*g,v="LR"===m?(t.depth-1)*p:i-(t.depth-1)*p,t.setLayout({x:v,y:y},!0)}))):"TB"!==m&&"BT"!==m||(p=i/(c.getLayout().x+f+d),g=o/(h.depth-1||1),Wj(l,(function(t){v=(t.getLayout().x+d)*p,y="TB"===m?(t.depth-1)*g:o-(t.depth-1)*g,t.setLayout({x:v,y:y},!0)})))}}}function Yj(t){t.eachSeriesByType("tree",(function(t){var e=t.getData(),n=e.tree;n.eachNode((function(t){var n=t.getModel(),r=n.getModel("itemStyle").getItemStyle(),i=e.ensureUniqueItemVisual(t.dataIndex,"style");Object(v["extend"])(i,r)}))}))}function Xj(t){t.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var n=t.dataIndex,r=e.getData().tree,i=r.getNodeByDataIndex(n);i.isExpand=!i.isExpand}))})),t.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(t,e,n){e.eachComponent({mainType:"series",subType:"tree",query:t},(function(e){var r=e.coordinateSystem,i=$P(r,t,void 0,n);e.setCenter&&e.setCenter(i.center),e.setZoom&&e.setZoom(i.zoom)}))}))}function Kj(t){t.registerChartView(wj),t.registerSeriesModel(Gj),t.registerLayout(Uj),t.registerVisual(Yj),Xj(t)}var Zj=["treemapZoomToNode","treemapRender","treemapMove"];function Qj(t){for(var e=0;e<Zj.length;e++)t.registerAction({type:Zj[e],update:"updateView"},v["noop"]);t.registerAction({type:"treemapRootToNode",update:"updateView"},(function(t,e){function n(e,n){var r=["treemapZoomToNode","treemapRootToNode"],i=Bj(t,r,e);if(i){var o=e.getViewRoot();o&&(t.direction=zj(o,i.node)?"rollUp":"drillDown"),e.resetViewRoot(i.node)}}e.eachComponent({mainType:"series",subType:"treemap",query:t},n)}))}function Jj(t){var e=t.getData(),n=e.tree,r={};n.eachNode((function(e){var n=e;while(n&&n.depth>1)n=n.parentNode;var i=Hh(t.ecModel,n.name||n.dataIndex+"",r);e.setVisual("decal",i)}))}var tL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventUsingHoverLayer=!0,n}return p(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};eL(n);var r=t.levels||[],i=this.designatedVisualItemStyle={},o=new Wu({itemStyle:i},this,e);r=t.levels=nL(r,e);var a=v["map"](r||[],(function(t){return new Wu(t,o,e)}),this),s=Nj.createTree(n,this,l);function l(t){t.wrapMethod("getItemModel",(function(t,e){var n=s.getNodeByDataIndex(e),r=n?a[n.depth]:null;return t.parentModel=r||o,t}))}return s.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,e,n){var r=this.getData(),i=this.getRawValue(t),o=r.getName(t);return pp("nameValue",{name:o,value:i})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=Vj(r,this),n.treePathInfo=n.treeAncestors,n},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},v["extend"](this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=v["createHashMap"](),this._idIndexMapCount=0);var n=e.get(t);return null==n&&e.set(t,n=this._idIndexMapCount++),n},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){Jj(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",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)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(Hp);function eL(t){var e=0;v["each"](t.children,(function(t){eL(t);var n=t.value;v["isArray"](n)&&(n=n[0]),e+=n}));var n=t.value;v["isArray"](n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),v["isArray"](t.value)?t.value[0]=n:t.value=n}function nL(t,e){var n=ki(e.get("color")),r=ki(e.get(["aria","decal","decals"]));if(n){var i,o;t=t||[],v["each"](t,(function(t){var e=new Wu(t),n=e.get("color"),r=e.get("decal");(e.get(["itemStyle","color"])||n&&"none"!==n)&&(i=!0),(e.get(["itemStyle","decal"])||r&&"none"!==r)&&(o=!0)}));var a=t[0]||(t[0]={});return i||(a.color=n.slice()),!o&&r&&(a.decal=r.slice()),t}}var rL=tL,iL=8,oL=8,aL=5,sL=function(){function t(t){this.group=new Nr,t.add(this.group)}return t.prototype.render=function(t,e,n,r){var i=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),i.get("show")&&n){var a=i.getModel("itemStyle"),s=i.getModel("emphasis"),l=a.getModel("textStyle"),u=s.getModel(["itemStyle","textStyle"]),c={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,c,l),this._renderContent(t,c,a,s,l,u,r),sh(o,c.pos,c.box)}},t.prototype._prepare=function(t,e,n){for(var r=t;r;r=r.parentNode){var i=zi(r.getModel().get("name"),""),o=n.getTextRect(i),a=Math.max(o.width+2*iL,e.emptyItemWidth);e.totalWidth+=a+oL,e.renderList.push({node:r,text:i,width:a})}},t.prototype._renderContent=function(t,e,n,r,i,o,a){for(var s=0,l=e.emptyItemWidth,u=t.get(["breadcrumb","height"]),c=oh(e.pos,e.box),h=e.totalWidth,f=e.renderList,d=r.getModel("itemStyle").getItemStyle(),p=f.length-1;p>=0;p--){var g=f[p],y=g.node,m=g.width,b=g.text;h>c.width&&(h-=m-l,m=l,b=null);var _=new Yg({shape:{points:lL(s,0,m,u,p===f.length-1,0===p)},style:Object(v["defaults"])(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new qs({style:xu(i,{text:b})}),textConfig:{position:"inside"},z2:1e4*tl,onclick:Object(v["curry"])(a,y)});_.disableLabelAnimation=!0,_.getTextContent().ensureState("emphasis").style=xu(o,{text:b}),_.ensureState("emphasis").style=d,$l(_,r.get("focus"),r.get("blurScope"),r.get("disabled")),this.group.add(_),uL(_,t,y),s+=m+oL}},t.prototype.remove=function(){this.group.removeAll()},t}();function lL(t,e,n,r,i,o){var a=[[i?t:t-aL,e],[t+n,e],[t+n,e+r],[i?t:t-aL,e+r]];return!o&&a.splice(2,0,[t+n+aL,e+r/2]),!i&&a.push([t,e+r/2]),a}function uL(t,e,n){Gs(t).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&Vj(n,e)}}var cL=sL,hL=function(){function t(){this._storage=[],this._elExistsMap={}}return t.prototype.add=function(t,e,n,r,i){return!this._elExistsMap[t.id]&&(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:n,delay:r,easing:i}),!0)},t.prototype.finished=function(t){return this._finishedCallback=t,this},t.prototype.start=function(){for(var t=this,e=this._storage.length,n=function(){e--,e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},r=0,i=this._storage.length;r<i;r++){var o=this._storage[r];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},t}();function fL(){return new hL}var dL=Nr,pL=Os,gL=3,vL="label",yL="upperLabel",mL=10*tl,bL=2*tl,_L=3*tl,xL=xo([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),wL=function(t){var e=xL(t);return e.stroke=e.fill=e.lineWidth=null,e},SL=Yi(),OL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._state="ready",n._storage=CL(),n}return p(e,t),e.prototype.render=function(t,e,n,r){var i=e.findComponents({mainType:"series",subType:"treemap",query:r});if(!(Object(v["indexOf"])(i,t)<0)){this.seriesModel=t,this.api=n,this.ecModel=e;var o=["treemapZoomToNode","treemapRootToNode"],a=Bj(r,o,t),s=r&&r.type,l=t.layoutInfo,u=!this._oldTree,c=this._storage,h="treemapRootToNode"===s&&a&&c?{rootNodeGroup:c.nodeGroup[a.node.getRawIndex()],direction:r.direction}:null,f=this._giveContainerGroup(l),d=t.get("animation"),p=this._doRender(f,t,h);!d||u||s&&"treemapZoomToNode"!==s&&"treemapRootToNode"!==s?p.renderFinally():this._doAnimation(f,p,t,h),this._resetController(n),this._renderBreadcrumb(t,n,a)}},e.prototype._giveContainerGroup=function(t){var e=this._containerGroup;return e||(e=this._containerGroup=new dL,this._initEvents(e),this.group.add(e)),e.x=t.x,e.y=t.y,e},e.prototype._doRender=function(t,e,n){var r=e.getData().tree,i=this._oldTree,o=CL(),a=CL(),s=this._storage,l=[];function u(t,r,i,u){return kL(e,a,s,n,o,l,t,r,i,u)}h(r.root?[r.root]:[],i&&i.root?[i.root]:[],t,r===i||!i,0);var c=f(s);return this._oldTree=r,this._storage=a,{lastsForAnimation:o,willDeleteEls:c,renderFinally:d};function h(t,e,n,r,i){function o(t){return t.getId()}function a(o,a){var s=null!=o?t[o]:null,l=null!=a?e[a]:null,c=u(s,l,n,i);c&&h(s&&s.viewChildren||[],l&&l.viewChildren||[],c,r,i+1)}r?(e=t,Object(v["each"])(t,(function(t,e){!t.isRemoved()&&a(e,e)}))):new mx(e,t,o,o).add(a).update(a).remove(Object(v["curry"])(a,null)).execute()}function f(t){var e=CL();return t&&Object(v["each"])(t,(function(t,n){var r=e[n];Object(v["each"])(t,(function(t){t&&(r.push(t),SL(t).willDelete=!0)}))})),e}function d(){Object(v["each"])(c,(function(t){Object(v["each"])(t,(function(t){t.parent&&t.parent.remove(t)}))})),Object(v["each"])(l,(function(t){t.invisible=!0,t.dirty()}))}},e.prototype._doAnimation=function(t,e,n,r){var i=n.get("animationDurationUpdate"),o=n.get("animationEasing"),a=(Object(v["isFunction"])(i)?0:i)||0,s=(Object(v["isFunction"])(o)?null:o)||"cubicOut",l=fL();Object(v["each"])(e.willDeleteEls,(function(t,e){Object(v["each"])(t,(function(t,n){if(!t.invisible){var i,o=t.parent,u=SL(o);if(r&&"drillDown"===r.direction)i=o===r.rootNodeGroup?{shape:{x:0,y:0,width:u.nodeWidth,height:u.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var c=0,h=0;u.willDelete||(c=u.nodeWidth/2,h=u.nodeHeight/2),i="nodeGroup"===e?{x:c,y:h,style:{opacity:0}}:{shape:{x:c,y:h,width:0,height:0},style:{opacity:0}}}i&&l.add(t,i,a,0,s)}}))})),Object(v["each"])(this._storage,(function(t,n){Object(v["each"])(t,(function(t,r){var i=e.lastsForAnimation[n][r],o={};i&&(t instanceof Nr?null!=i.oldX&&(o.x=t.x,o.y=t.y,t.x=i.oldX,t.y=i.oldY):(i.oldShape&&(o.shape=Object(v["extend"])({},t.shape),t.setShape(i.oldShape)),i.fadein?(t.setStyle("opacity",0),o.style={opacity:1}):1!==t.style.opacity&&(o.style={opacity:1})),l.add(t,o,a,0,s))}))}),this),this._state="animating",l.finished(Object(v["bind"])((function(){this._state="ready",e.renderFinally()}),this)).start()},e.prototype._resetController=function(t){var e=this._controller;e||(e=this._controller=new cE(t.getZr()),e.enable(this.seriesModel.get("roam")),e.on("pan",Object(v["bind"])(this._onPan,this)),e.on("zoom",Object(v["bind"])(this._onZoom,this)));var n=new qt(0,0,t.getWidth(),t.getHeight());e.setPointerChecker((function(t,e,r){return n.contain(e,r)}))},e.prototype._clearController=function(){var t=this._controller;t&&(t.dispose(),t=null)},e.prototype._onPan=function(t){if("animating"!==this._state&&(Math.abs(t.dx)>gL||Math.abs(t.dy)>gL)){var e=this.seriesModel.getData().tree.root;if(!e)return;var n=e.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},e.prototype._onZoom=function(t){var e=t.originX,n=t.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 qt(i.x,i.y,i.width,i.height),a=this.seriesModel.layoutInfo;e-=a.x,n-=a.y;var s=wt();kt(s,s,[-e,-n]),Mt(s,s,[t.scale,t.scale]),kt(s,s,[e,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}})}},e.prototype._initEvents=function(t){var e=this;t.on("click",(function(t){if("ready"===e._state){var n=e.seriesModel.get("nodeClick",!0);if(n){var r=e.findTarget(t.offsetX,t.offsetY);if(r){var i=r.node;if(i.getLayout().isLeafRoot)e._rootToNode(r);else if("zoomToNode"===n)e._zoomToNode(r);else if("link"===n){var o=i.hostTree.data.getItemModel(i.dataIndex),a=o.get("link",!0),s=o.get("target",!0)||"blank";a&&Jc(a,s)}}}}}),this)},e.prototype._renderBreadcrumb=function(t,e,n){var r=this;n||(n=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2),n||(n={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new cL(this.group))).render(t,e,n.node,(function(e){"animating"!==r._state&&(zj(t.getViewRoot(),e)?r._rootToNode({node:e}):r._zoomToNode({node:e}))}))},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=CL(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,e){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(t,e),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},e.type="treemap",e}(dy);function CL(){return{nodeGroup:[],background:[],content:[]}}function kL(t,e,n,r,i,o,a,s,l,u){if(a){var c=a.getLayout(),h=t.getData(),f=a.getModel();if(h.setItemGraphicEl(a.dataIndex,null),c&&c.isInView){var d=c.width,p=c.height,g=c.borderWidth,y=c.invisible,m=a.getRawIndex(),b=s&&s.getRawIndex(),_=a.viewChildren,x=c.upperHeight,w=_&&_.length,S=f.getModel("itemStyle"),O=f.getModel(["emphasis","itemStyle"]),C=f.getModel(["blur","itemStyle"]),k=f.getModel(["select","itemStyle"]),A=S.get("borderRadius")||0,M=V("nodeGroup",dL);if(M){if(l.add(M),M.x=c.x||0,M.y=c.y||0,M.markRedraw(),SL(M).nodeWidth=d,SL(M).nodeHeight=p,c.isAboveViewRoot)return M;var T=V("background",pL,u,bL);T&&R(M,T,w&&c.upperLabelHeight);var I=f.getModel("emphasis"),E=I.get("focus"),P=I.get("blurScope"),j=I.get("disabled"),L="ancestor"===E?a.getAncestorsIndices():"descendant"===E?a.getDescendantIndices():E;if(w)Jl(M)&&Ql(M,!1),T&&(Ql(T,!j),h.setItemGraphicEl(a.dataIndex,T),Yl(T,L,P));else{var D=V("content",pL,u,_L);D&&N(M,D),T.disableMorphing=!0,T&&Jl(T)&&Ql(T,!1),Ql(M,!j),h.setItemGraphicEl(a.dataIndex,M),Yl(M,L,P)}return M}}}function R(e,n,r){var i=Gs(n);if(i.dataIndex=a.dataIndex,i.seriesIndex=t.seriesIndex,n.setShape({x:0,y:0,width:d,height:p,r:A}),y)B(n);else{n.invisible=!1;var o=a.getVisual("style"),s=o.stroke,l=wL(S);l.fill=s;var u=xL(O);u.fill=O.get("borderColor");var c=xL(C);c.fill=C.get("borderColor");var h=xL(k);if(h.fill=k.get("borderColor"),r){var f=d-2*g;F(n,s,o.opacity,{x:g,y:0,width:f,height:x})}else n.removeTextContent();n.setStyle(l),n.ensureState("emphasis").style=u,n.ensureState("blur").style=c,n.ensureState("select").style=h,Cl(n)}e.add(n)}function N(e,n){var r=Gs(n);r.dataIndex=a.dataIndex,r.seriesIndex=t.seriesIndex;var i=Math.max(d-2*g,0),o=Math.max(p-2*g,0);if(n.culling=!0,n.setShape({x:g,y:g,width:i,height:o,r:A}),y)B(n);else{n.invisible=!1;var s=a.getVisual("style"),l=s.fill,u=wL(S);u.fill=l,u.decal=s.decal;var c=xL(O),h=xL(C),f=xL(k);F(n,l,s.opacity,null),n.setStyle(u),n.ensureState("emphasis").style=c,n.ensureState("blur").style=h,n.ensureState("select").style=f,Cl(n)}e.add(n)}function B(t){!t.invisible&&o.push(t)}function F(e,n,r,i){var o=f.getModel(i?yL:vL),s=zi(f.get("name"),null),l=o.getShallow("show");bu(e,_u(f,i?yL:vL),{defaultText:l?s:null,inheritColor:n,defaultOpacity:r,labelFetcher:t,labelDataIndex:a.dataIndex});var u=e.getTextContent();if(u){var h=u.style,d=Object(v["normalizeCssArray"])(h.padding||0);i&&(e.setTextConfig({layoutRect:i}),u.disableLabelLayout=!0),u.beforeUpdate=function(){var t=Math.max((i?i.width:e.shape.width)-d[1]-d[3],0),n=Math.max((i?i.height:e.shape.height)-d[0]-d[2],0);h.width===t&&h.height===n||u.setStyle({width:t,height:n})},h.truncateMinChar=2,h.lineOverflow="truncate",z(h,i,c);var p=u.getState("emphasis");z(p?p.style:null,i,c)}}function z(e,n,r){var i=e?e.text:null;if(!n&&r.isLeafRoot&&null!=i){var o=t.get("drillDownIcon",!0);e.text=o?o+" "+i:i}}function V(t,r,o,a){var s=null!=b&&n[t][b],l=i[t];return s?(n[t][b]=null,q(l,s)):y||(s=new r,s instanceof ta&&(s.z2=AL(o,a)),G(l,s)),e[t][m]=s}function q(t,e){var n=t[m]={};e instanceof dL?(n.oldX=e.x,n.oldY=e.y):n.oldShape=Object(v["extend"])({},e.shape)}function G(t,e){var n=t[m]={},o=a.parentNode,s=e instanceof Nr;if(o&&(!r||"drillDown"===r.direction)){var l=0,u=0,c=i.background[o.getRawIndex()];!r&&c&&c.oldShape&&(l=c.oldShape.width,u=c.oldShape.height),s?(n.oldX=0,n.oldY=u):n.oldShape={x:l,y:u,width:0,height:0}}n.fadein=!s}}function AL(t,e){return t*mL+e}var ML=OL,TL=v["each"],IL=v["isObject"],EL=-1,PL=function(){function t(e){var n=e.mappingMethod,r=e.type,i=this.option=v["clone"](e);this.type=r,this.mappingMethod=n,this._normalizeData=HL[n];var o=t.visualHandlers[r];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],"piecewise"===n?(DL(i),jL(i)):"category"===n?i.categories?LL(i):DL(i,!0):(v["assert"]("linear"!==n||i.dataExtent),DL(i))}return t.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},t.prototype.getNormalizer=function(){return v["bind"](this._normalizeData,this)},t.listVisualTypes=function(){return v["keys"](t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(t,e,n){v["isObject"](t)?v["each"](t,e,n):e.call(n,t)},t.mapVisual=function(e,n,r){var i,o=v["isArray"](e)?[]:v["isObject"](e)?{}:(i=!0,null);return t.eachVisual(e,(function(t,e){var a=n.call(r,t,e);i?o=a:o[e]=a})),o},t.retrieveVisuals=function(e){var n,r={};return e&&TL(t.visualHandlers,(function(t,i){e.hasOwnProperty(i)&&(r[i]=e[i],n=!0)})),n?r:null},t.prepareVisualTypes=function(t){if(v["isArray"](t))t=t.slice();else{if(!IL(t))return[];var e=[];TL(t,(function(t,n){e.push(n)})),t=e}return t.sort((function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1})),t},t.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},t.findPieceIndex=function(t,e,n){for(var r,i=1/0,o=0,a=e.length;o<a;o++){var s=e[o].value;if(null!=s){if(s===t||v["isString"](s)&&s===t+"")return o;n&&h(s,o)}}for(o=0,a=e.length;o<a;o++){var l=e[o],u=l.interval,c=l.close;if(u){if(u[0]===-1/0){if(WL(c[1],t,u[1]))return o}else if(u[1]===1/0){if(WL(c[0],u[0],t))return o}else if(WL(c[0],u[0],t)&&WL(c[1],t,u[1]))return o;n&&h(u[0],o),n&&h(u[1],o)}}if(n)return t===1/0?e.length-1:t===-1/0?0:r;function h(e,n){var o=Math.abs(e-t);o<i&&(i=o,r=n)}},t.visualHandlers={color:{applyVisual:BL("color"),getColorMapper:function(){var t=this.option;return v["bind"]("category"===t.mappingMethod?function(t,e){return!e&&(t=this._normalizeData(t)),FL.call(this,t)}:function(e,n,r){var i=!!r;return!n&&(e=this._normalizeData(e)),r=Qe["fastLerp"](e,t.parsedVisual,r),i?r:Qe["stringify"](r,"rgba")},this)},_normalizedToVisual:{linear:function(t){return Qe["stringify"](Qe["fastLerp"](t,this.option.parsedVisual),"rgba")},category:FL,piecewise:function(t,e){var n=qL.call(this,e);return null==n&&(n=Qe["stringify"](Qe["fastLerp"](t,this.option.parsedVisual),"rgba")),n},fixed:zL}},colorHue:RL((function(t,e){return Qe["modifyHSL"](t,e)})),colorSaturation:RL((function(t,e){return Qe["modifyHSL"](t,null,e)})),colorLightness:RL((function(t,e){return Qe["modifyHSL"](t,null,null,e)})),colorAlpha:RL((function(t,e){return Qe["modifyAlpha"](t,e)})),decal:{applyVisual:BL("decal"),_normalizedToVisual:{linear:null,category:FL,piecewise:null,fixed:null}},opacity:{applyVisual:BL("opacity"),_normalizedToVisual:VL([0,1])},liftZ:{applyVisual:BL("liftZ"),_normalizedToVisual:{linear:zL,category:zL,piecewise:zL,fixed:zL}},symbol:{applyVisual:function(t,e,n){var r=this.mapValueToVisual(t);n("symbol",r)},_normalizedToVisual:{linear:NL,category:FL,piecewise:function(t,e){var n=qL.call(this,e);return null==n&&(n=NL.call(this,t)),n},fixed:zL}},symbolSize:{applyVisual:BL("symbolSize"),_normalizedToVisual:VL([0,1])}},t}();function jL(t){var e=t.pieceList;t.hasSpecialVisual=!1,v["each"](e,(function(e,n){e.originIndex=n,null!=e.visual&&(t.hasSpecialVisual=!0)}))}function LL(t){var e=t.categories,n=t.categoryMap={},r=t.visual;if(TL(e,(function(t,e){n[t]=e})),!v["isArray"](r)){var i=[];v["isObject"](r)?TL(r,(function(t,e){var r=n[e];i[null!=r?r:EL]=t})):i[EL]=r,r=GL(t,i)}for(var o=e.length-1;o>=0;o--)null==r[o]&&(delete n[e[o]],e.pop())}function DL(t,e){var n=t.visual,r=[];v["isObject"](n)?TL(n,(function(t){r.push(t)})):null!=n&&r.push(n);var i={color:1,symbol:1};e||1!==r.length||i.hasOwnProperty(t.type)||(r[1]=r[0]),GL(t,r)}function RL(t){return{applyVisual:function(e,n,r){var i=this.mapValueToVisual(e);r("color",t(n("color"),i))},_normalizedToVisual:VL([0,1])}}function NL(t){var e=this.option.visual;return e[Math.round(Qr(t,[0,1],[0,e.length-1],!0))]||{}}function BL(t){return function(e,n,r){r(t,this.mapValueToVisual(e))}}function FL(t){var e=this.option.visual;return e[this.option.loop&&t!==EL?t%e.length:t]}function zL(){return this.option.visual[0]}function VL(t){return{linear:function(e){return Qr(e,t,this.option.visual,!0)},category:FL,piecewise:function(e,n){var r=qL.call(this,n);return null==r&&(r=Qr(e,t,this.option.visual,!0)),r},fixed:zL}}function qL(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var r=PL.findPieceIndex(t,n),i=n[r];if(i&&i.visual)return i.visual[this.type]}}function GL(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=v["map"](e,(function(t){var e=Qe["parse"](t);return e||[0,0,0,1]}))),e}var HL={linear:function(t){return Qr(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,n=PL.findPieceIndex(t,e,!0);if(null!=n)return Qr(n,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?EL:e},fixed:v["noop"]};function WL(t,e,n){return t?e<=n:e<n}var UL=PL,$L="itemStyle",YL=Yi(),XL={seriesType:"treemap",reset:function(t){var e=t.getData().tree,n=e.root;n.isRemoved()||KL(n,{},t.getViewRoot().getAncestors(),t)}};function KL(t,e,n,r){var i=t.getModel(),o=t.getLayout(),a=t.hostTree.data;if(o&&!o.invisible&&o.isInView){var s,l=i.getModel($L),u=ZL(l,e,r),c=a.ensureUniqueItemVisual(t.dataIndex,"style"),h=l.get("borderColor"),f=l.get("borderColorSaturation");null!=f&&(s=QL(u),h=JL(f,s)),c.stroke=h;var d=t.viewChildren;if(d&&d.length){var p=eD(t,i,o,l,u,d);Object(v["each"])(d,(function(t,e){if(t.depth>=n.length||t===n[t.depth]){var o=rD(i,u,t,e,p,r);KL(t,o,n,r)}}))}else s=QL(u),c.fill=s}}function ZL(t,e,n){var r=Object(v["extend"])({},e),i=n.designatedVisualItemStyle;return Object(v["each"])(["color","colorAlpha","colorSaturation"],(function(n){i[n]=e[n];var o=t.get(n);i[n]=null,null!=o&&(r[n]=o)})),r}function QL(t){var e=tD(t,"color");if(e){var n=tD(t,"colorAlpha"),r=tD(t,"colorSaturation");return r&&(e=Object(Qe["modifyHSL"])(e,null,null,r)),n&&(e=Object(Qe["modifyAlpha"])(e,n)),e}}function JL(t,e){return null!=e?Object(Qe["modifyHSL"])(e,null,null,t):null}function tD(t,e){var n=t[e];if(null!=n&&"none"!==n)return n}function eD(t,e,n,r,i,o){if(o&&o.length){var a=nD(e,"color")||null!=i.color&&"none"!==i.color&&(nD(e,"colorAlpha")||nD(e,"colorSaturation"));if(a){var s=e.get("visualMin"),l=e.get("visualMax"),u=n.dataExtent.slice();null!=s&&s<u[0]&&(u[0]=s),null!=l&&l>u[1]&&(u[1]=l);var c=e.get("colorMappingBy"),h={type:a.name,dataExtent:u,visual:a.range};"color"!==h.type||"index"!==c&&"id"!==c?h.mappingMethod="linear":(h.mappingMethod="category",h.loop=!0);var f=new UL(h);return YL(f).drColorMappingBy=c,f}}}function nD(t,e){var n=t.get(e);return Object(v["isArray"])(n)&&n.length?{name:e,range:n}:null}function rD(t,e,n,r,i,o){var a=Object(v["extend"])({},e);if(i){var s=i.type,l="color"===s&&YL(i).drColorMappingBy,u="index"===l?r:"id"===l?o.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension"));a[s]=i.mapValueToVisual(u)}return a}var iD=Math.max,oD=Math.min,aD=v["retrieve"],sD=v["each"],lD=["itemStyle","borderWidth"],uD=["itemStyle","gapWidth"],cD=["upperLabel","show"],hD=["upperLabel","height"],fD={seriesType:"treemap",reset:function(t,e,n,r){var i=n.getWidth(),o=n.getHeight(),a=t.option,s=ah(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=a.size||[],u=Jr(aD(s.width,l[0]),i),c=Jr(aD(s.height,l[1]),o),h=r&&r.type,f=["treemapZoomToNode","treemapRootToNode"],d=Bj(r,f,t),p="treemapRender"===h||"treemapMove"===h?r.rootRect:null,g=t.getViewRoot(),y=Fj(g);if("treemapMove"!==h){var m="treemapZoomToNode"===h?_D(t,d,g,u,c):p?[p.width,p.height]:[u,c],b=a.sort;b&&"asc"!==b&&"desc"!==b&&(b="desc");var _={squareRatio:a.squareRatio,sort:b,leafDepth:a.leafDepth};g.hostTree.clearLayouts();var x={x:0,y:0,width:m[0],height:m[1],area:m[0]*m[1]};g.setLayout(x),dD(g,_,!1,0),x=g.getLayout(),sD(y,(function(t,e){var n=(y[e+1]||g).getValue();t.setLayout(v["extend"]({dataExtent:[n,n],borderWidth:0,upperHeight:0},x))}))}var w=t.getData().tree.root;w.setLayout(xD(s,p,d),!0),t.setLayoutInfo(s),wD(w,new qt(-s.x,-s.y,i,o),y,g,0)}};function dD(t,e,n,r){var i,o;if(!t.isRemoved()){var a=t.getLayout();i=a.width,o=a.height;var s=t.getModel(),l=s.get(lD),u=s.get(uD)/2,c=SD(s),h=Math.max(l,c),f=l-u,d=h-u;t.setLayout({borderWidth:l,upperHeight:h,upperLabelHeight:c},!0),i=iD(i-2*f,0),o=iD(o-f-d,0);var p=i*o,g=pD(t,s,p,e,n,r);if(g.length){var v={x:f,y:d,width:i,height:o},y=oD(i,o),m=1/0,b=[];b.area=0;for(var _=0,x=g.length;_<x;){var w=g[_];b.push(w),b.area+=w.getLayout().area;var S=mD(b,y,e.squareRatio);S<=m?(_++,m=S):(b.area-=b.pop().getLayout().area,bD(b,y,v,u,!1),y=oD(v.width,v.height),b.length=b.area=0,m=1/0)}if(b.length&&bD(b,y,v,u,!0),!n){var O=s.get("childrenVisibleMin");null!=O&&p<O&&(n=!0)}for(_=0,x=g.length;_<x;_++)dD(g[_],e,n,r+1)}}}function pD(t,e,n,r,i,o){var a=t.children||[],s=r.sort;"asc"!==s&&"desc"!==s&&(s=null);var l=null!=r.leafDepth&&r.leafDepth<=o;if(i&&!l)return t.viewChildren=[];a=v["filter"](a,(function(t){return!t.isRemoved()})),vD(a,s);var u=yD(e,a,s);if(0===u.sum)return t.viewChildren=[];if(u.sum=gD(e,n,u.sum,s,a),0===u.sum)return t.viewChildren=[];for(var c=0,h=a.length;c<h;c++){var f=a[c].getValue()/u.sum*n;a[c].setLayout({area:f})}return l&&(a.length&&t.setLayout({isLeafRoot:!0},!0),a.length=0),t.viewChildren=a,t.setLayout({dataExtent:u.dataExtent},!0),a}function gD(t,e,n,r,i){if(!r)return n;for(var o=t.get("visibleMin"),a=i.length,s=a,l=a-1;l>=0;l--){var u=i["asc"===r?a-l-1:l].getValue();u/n*e<o&&(s=l,n-=u)}return"asc"===r?i.splice(0,a-s):i.splice(s,a-s),n}function vD(t,e){return e&&t.sort((function(t,n){var r="asc"===e?t.getValue()-n.getValue():n.getValue()-t.getValue();return 0===r?"asc"===e?t.dataIndex-n.dataIndex:n.dataIndex-t.dataIndex:r})),t}function yD(t,e,n){for(var r=0,i=0,o=e.length;i<o;i++)r+=e[i].getValue();var a,s=t.get("visualDimension");return e&&e.length?"value"===s&&n?(a=[e[e.length-1].getValue(),e[0].getValue()],"asc"===n&&a.reverse()):(a=[1/0,-1/0],sD(e,(function(t){var e=t.getValue(s);e<a[0]&&(a[0]=e),e>a[1]&&(a[1]=e)}))):a=[NaN,NaN],{sum:r,dataExtent:a}}function mD(t,e,n){for(var r=0,i=1/0,o=0,a=void 0,s=t.length;o<s;o++)a=t[o].getLayout().area,a&&(a<i&&(i=a),a>r&&(r=a));var l=t.area*t.area,u=e*e*n;return l?iD(u*r/l,l/(u*i)):1/0}function bD(t,e,n,r,i){var o=e===n.width?0:1,a=1-o,s=["x","y"],l=["width","height"],u=n[s[o]],c=e?t.area/e:0;(i||c>n[l[a]])&&(c=n[l[a]]);for(var h=0,f=t.length;h<f;h++){var d=t[h],p={},g=c?d.getLayout().area/c:0,v=p[l[a]]=iD(c-2*r,0),y=n[s[o]]+n[l[o]]-u,m=h===f-1||y<g?y:g,b=p[l[o]]=iD(m-2*r,0);p[s[a]]=n[s[a]]+oD(r,v/2),p[s[o]]=u+oD(r,b/2),u+=m,d.setLayout(p,!0)}n[s[a]]+=c,n[l[a]]-=c}function _D(t,e,n,r,i){var o,a=(e||{}).node,s=[r,i];if(!a||a===n)return s;var l=r*i,u=l*t.option.zoomToNodeRatio;while(o=a.parentNode){for(var c=0,h=o.children,f=0,d=h.length;f<d;f++)c+=h[f].getValue();var p=a.getValue();if(0===p)return s;u*=c/p;var g=o.getModel(),v=g.get(lD),y=Math.max(v,SD(g));u+=4*v*v+(3*v+y)*Math.pow(u,.5),u>li&&(u=li),a=o}u<l&&(u=l);var m=Math.pow(u/l,.5);return[r*m,i*m]}function xD(t,e,n){if(e)return{x:e.x,y:e.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 l=s.getLayout();a[0]+=l.x,a[1]+=l.y,s=s.parentNode}return{x:t.width/2-a[0],y:t.height/2-a[1]}}function wD(t,e,n,r,i){var o=t.getLayout(),a=n[i],s=a&&a===t;if(!(a&&!s||i===n.length&&t!==r)){t.setLayout({isInView:!0,invisible:!s&&!e.intersect(o),isAboveViewRoot:s},!0);var l=new qt(e.x-o.x,e.y-o.y,e.width,e.height);sD(t.viewChildren||[],(function(t){wD(t,l,n,r,i+1)}))}}function SD(t){return t.get(cD)?t.get(hD):0}function OD(t){t.registerSeriesModel(rL),t.registerChartView(ML),t.registerVisual(XL),t.registerLayout(fD),Qj(t)}function CD(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.eachSeriesByType("graph",(function(t){var n=t.getCategoriesData(),r=t.getGraph(),i=r.data,o=n.mapArray(n.getName);i.filterSelf((function(t){var n=i.getItemModel(t),r=n.getShallow("category");if(null!=r){Object(v["isNumber"])(r)&&(r=o[r]);for(var a=0;a<e.length;a++)if(!e[a].isSelected(r))return!1}return!0}))}))}function kD(t){var e={};t.eachSeriesByType("graph",(function(t){var n=t.getCategoriesData(),r=t.getData(),i={};n.each((function(r){var o=n.getName(r);i["ec-"+o]=r;var a=n.getItemModel(r),s=a.getModel("itemStyle").getItemStyle();s.fill||(s.fill=t.getColorFromPalette(o,e)),n.setItemVisual(r,"style",s);for(var l=["symbol","symbolSize","symbolKeepAspect"],u=0;u<l.length;u++){var c=a.getShallow(l[u],!0);null!=c&&n.setItemVisual(r,l[u],c)}})),n.count()&&r.each((function(t){var e=r.getItemModel(t),o=e.getShallow("category");if(null!=o){Object(v["isString"])(o)&&(o=i["ec-"+o]);var a=n.getItemVisual(o,"style"),s=r.ensureUniqueItemVisual(t,"style");Object(v["extend"])(s,a);for(var l=["symbol","symbolSize","symbolKeepAspect"],u=0;u<l.length;u++)r.setItemVisual(t,l[u],n.getItemVisual(o,l[u]))}}))}))}function AD(t){return t instanceof Array||(t=[t,t]),t}function MD(t){t.eachSeriesByType("graph",(function(t){var e=t.getGraph(),n=t.getEdgeData(),r=AD(t.get("edgeSymbol")),i=AD(t.get("edgeSymbolSize"));n.setVisual("fromSymbol",r&&r[0]),n.setVisual("toSymbol",r&&r[1]),n.setVisual("fromSymbolSize",i&&i[0]),n.setVisual("toSymbolSize",i&&i[1]),n.setVisual("style",t.getModel("lineStyle").getLineStyle()),n.each((function(t){var r=n.getItemModel(t),i=e.getEdgeByIndex(t),o=AD(r.getShallow("symbol",!0)),a=AD(r.getShallow("symbolSize",!0)),s=r.getModel("lineStyle").getLineStyle(),l=n.ensureUniqueItemVisual(t,"style");switch(Object(v["extend"])(l,s),l.stroke){case"source":var u=i.node1.getVisual("style");l.stroke=u&&u.fill;break;case"target":u=i.node2.getVisual("style");l.stroke=u&&u.fill;break}o[0]&&i.setVisual("fromSymbol",o[0]),o[1]&&i.setVisual("toSymbol",o[1]),a[0]&&i.setVisual("fromSymbolSize",a[0]),a[1]&&i.setVisual("toSymbolSize",a[1])}))}))}var TD="--\x3e",ID=function(t){return t.get("autoCurveness")||null},ED=function(t,e){var n=ID(t),r=20,i=[];if(v["isNumber"](n))r=n;else if(v["isArray"](n))return void(t.__curvenessList=n);e>r&&(r=e);var o=r%2?r+2:r+3;i=[];for(var a=0;a<o;a++)i.push((a%2?a+1:a)/10*(a%2?-1:1));t.__curvenessList=i},PD=function(t,e,n){var r=[t.id,t.dataIndex].join("."),i=[e.id,e.dataIndex].join(".");return[n.uid,r,i].join(TD)},jD=function(t){var e=t.split(TD);return[e[0],e[2],e[1]].join(TD)},LD=function(t,e){var n=PD(t.node1,t.node2,e);return e.__edgeMap[n]},DD=function(t,e){var n=RD(PD(t.node1,t.node2,e),e),r=RD(PD(t.node2,t.node1,e),e);return n+r},RD=function(t,e){var n=e.__edgeMap;return n[t]?n[t].length:0};function ND(t){ID(t)&&(t.__curvenessList=[],t.__edgeMap={},ED(t))}function BD(t,e,n,r){if(ID(n)){var i=PD(t,e,n),o=n.__edgeMap,a=o[jD(i)];o[i]&&!a?o[i].isForward=!0:a&&o[i]&&(a.isForward=!0,o[i].isForward=!1),o[i]=o[i]||[],o[i].push(r)}}function FD(t,e,n,r){var i=ID(e),o=v["isArray"](i);if(!i)return null;var a=LD(t,e);if(!a)return null;for(var s=-1,l=0;l<a.length;l++)if(a[l]===n){s=l;break}var u=DD(t,e);ED(e,u),t.lineStyle=t.lineStyle||{};var c=PD(t.node1,t.node2,e),h=e.__curvenessList,f=o||u%2?0:1;if(a.isForward)return h[f+s];var d=jD(c),p=RD(d,e),g=h[s+p+f];return r?o?i&&0===i[0]?(p+f)%2?g:-g:((p%2?0:1)+f)%2?g:-g:(p+f)%2?g:-g:h[s+p+f]}function zD(t){var e=t.coordinateSystem;if(!e||"view"===e.type){var n=t.getGraph();n.eachNode((function(t){var e=t.getModel();t.setLayout([+e.get("x"),+e.get("y")])})),VD(n,t)}}function VD(t,e){t.eachEdge((function(t,n){var r=v["retrieve3"](t.getModel().get(["lineStyle","curveness"]),-FD(t,e,n,!0),0),i=b(t.node1.getLayout()),o=b(t.node2.getLayout()),a=[i,o];+r&&a.push([(i[0]+o[0])/2-(i[1]-o[1])*r,(i[1]+o[1])/2-(o[0]-i[0])*r]),t.setLayout(a)}))}function qD(t,e){t.eachSeriesByType("graph",(function(t){var e=t.get("layout"),n=t.coordinateSystem;if(n&&"view"!==n.type){var r=t.getData(),i=[];Object(v["each"])(n.dimensions,(function(t){i=i.concat(r.mapDimensionsAll(t))}));for(var o=0;o<r.count();o++){for(var a=[],s=!1,l=0;l<i.length;l++){var u=r.get(i[l],o);isNaN(u)||(s=!0),a.push(u)}s?r.setItemLayout(o,n.dataToPoint(a)):r.setItemLayout(o,[NaN,NaN])}VD(r.graph,t)}else e&&"none"!==e||zD(t)}))}function GD(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var n=t.option.nodeScaleRatio,r=e.scaleX,i=e.getZoom(),o=(i-1)*n+1;return o/r}function HD(t){var e=t.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var WD=Math.PI,UD=[];function $D(t,e,n,r){var i=t.coordinateSystem;if(!i||"view"===i.type){var o=i.getBoundingRect(),a=t.getData(),s=a.graph,l=o.width/2+o.x,u=o.height/2+o.y,c=Math.min(o.width,o.height)/2,h=a.count();if(a.setLayout({cx:l,cy:u}),h){if(n){var f=i.pointToData(r),d=f[0],p=f[1],g=[d-l,p-u];P(g,g),E(g,g,c),n.setLayout([l+g[0],u+g[1]],!0);var y=t.get(["circular","rotateLabel"]);XD(n,y,l,u)}YD[e](t,s,a,c,l,u,h),s.eachEdge((function(e,n){var r,i=v["retrieve3"](e.getModel().get(["lineStyle","curveness"]),FD(e,t,n),0),o=b(e.node1.getLayout()),a=b(e.node2.getLayout()),s=(o[0]+a[0])/2,c=(o[1]+a[1])/2;+i&&(i*=3,r=[l*i+s*(1-i),u*i+c*(1-i)]),e.setLayout([o,a,r])}))}}}var YD={value:function(t,e,n,r,i,o,a){var s=0,l=n.getSum("value"),u=2*Math.PI/(l||a);e.eachNode((function(t){var e=t.getValue("value"),n=u*(l?e:1)/2;s+=n,t.setLayout([r*Math.cos(s)+i,r*Math.sin(s)+o]),s+=n}))},symbolSize:function(t,e,n,r,i,o,a){var s=0;UD.length=a;var l=GD(t);e.eachNode((function(t){var e=HD(t);isNaN(e)&&(e=2),e<0&&(e=0),e*=l;var n=Math.asin(e/2/r);isNaN(n)&&(n=WD/2),UD[t.dataIndex]=n,s+=2*n}));var u=(2*WD-s)/a/2,c=0;e.eachNode((function(t){var e=u+UD[t.dataIndex];c+=e,(!t.getLayout()||!t.getLayout().fixed)&&t.setLayout([r*Math.cos(c)+i,r*Math.sin(c)+o]),c+=e}))}};function XD(t,e,n,r){var i=t.getGraphicEl();if(i){var o=t.getModel(),a=o.get(["label","rotate"])||0,s=i.getSymbolPath();if(e){var l=t.getLayout(),u=Math.atan2(l[1]-r,l[0]-n);u<0&&(u=2*Math.PI+u);var c=l[0]<n;c&&(u-=Math.PI);var h=c?"left":"right";s.setTextConfig({rotation:-u,position:h,origin:"center"});var f=s.ensureState("emphasis");v["extend"](f.textConfig||(f.textConfig={}),{position:h})}else s.setTextConfig({rotation:a*=Math.PI/180})}}function KD(t){t.eachSeriesByType("graph",(function(t){"circular"===t.get("layout")&&$D(t,"symbolSize")}))}var ZD=w;function QD(t,e,n){for(var r=t,i=e,o=n.rect,a=o.width,s=o.height,l=[o.x+a/2,o.y+s/2],u=null==n.gravity?.1:n.gravity,c=0;c<r.length;c++){var h=r[c];h.p||(h.p=y(a*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),h.pp=b(h.p),h.edges=null}var f,d,p=null==n.friction?.6:n.friction,g=p;return{warmUp:function(){g=.8*p},setFixed:function(t){r[t].fixed=!0},setUnfixed:function(t){r[t].fixed=!1},beforeStep:function(t){f=t},afterStep:function(t){d=t},step:function(t){f&&f(r,i);for(var e=[],n=r.length,o=0;o<i.length;o++){var a=i[o];if(!a.ignoreForceLayout){var s=a.n1,c=a.n2;S(e,c.p,s.p);var h=O(e)-a.d,p=c.w/(s.w+c.w);isNaN(p)&&(p=0),P(e,e),!s.fixed&&ZD(s.p,s.p,e,p*h*g),!c.fixed&&ZD(c.p,c.p,e,-(1-p)*h*g)}}for(o=0;o<n;o++){var v=r[o];v.fixed||(S(e,l,v.p),ZD(v.p,v.p,e,u*g))}for(o=0;o<n;o++){s=r[o];for(var y=o+1;y<n;y++){c=r[y];S(e,c.p,s.p);h=O(e);0===h&&(_(e,Math.random()-.5,Math.random()-.5),h=1);var b=(s.rep+c.rep)/h/h;!s.fixed&&ZD(s.pp,s.pp,e,b),!c.fixed&&ZD(c.pp,c.pp,e,-b)}}var x=[];for(o=0;o<n;o++){v=r[o];v.fixed||(S(x,v.p,v.pp),ZD(v.p,v.p,x,g),m(v.pp,v.p))}g*=.992;var w=g<.01;d&&d(r,i,w),t&&t(w)}}}function JD(t){t.eachSeriesByType("graph",(function(t){var e=t.coordinateSystem;if(!e||"view"===e.type)if("force"===t.get("layout")){var n=t.preservedPoints||{},r=t.getGraph(),i=r.data,o=r.edgeData,a=t.getModel("force"),s=a.get("initLayout");t.preservedPoints?i.each((function(t){var e=i.getId(t);i.setItemLayout(t,n[e]||[NaN,NaN])})):s&&"none"!==s?"circular"===s&&$D(t,"value"):zD(t);var l=i.getDataExtent("value"),u=o.getDataExtent("value"),c=a.get("repulsion"),h=a.get("edgeLength"),f=v["isArray"](c)?c:[c,c],d=v["isArray"](h)?h:[h,h];d=[d[1],d[0]];var p=i.mapArray("value",(function(t,e){var n=i.getItemLayout(e),r=Qr(t,l,f);return isNaN(r)&&(r=(f[0]+f[1])/2),{w:r,rep:r,fixed:i.getItemModel(e).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}})),g=o.mapArray("value",(function(e,n){var i=r.getEdgeByIndex(n),o=Qr(e,u,d);isNaN(o)&&(o=(d[0]+d[1])/2);var a=i.getModel(),s=v["retrieve3"](i.getModel().get(["lineStyle","curveness"]),-FD(i,t,n,!0),0);return{n1:p[i.node1.dataIndex],n2:p[i.node2.dataIndex],d:o,curveness:s,ignoreForceLayout:a.get("ignoreForceLayout")}})),y=e.getBoundingRect(),b=QD(p,g,{rect:y,gravity:a.get("gravity"),friction:a.get("friction")});b.beforeStep((function(t,e){for(var n=0,i=t.length;n<i;n++)t[n].fixed&&m(t[n].p,r.getNodeByIndex(n).getLayout())})),b.afterStep((function(t,e,o){for(var a=0,s=t.length;a<s;a++)t[a].fixed||r.getNodeByIndex(a).setLayout(t[a].p),n[i.getId(a)]=t[a].p;for(a=0,s=e.length;a<s;a++){var l=e[a],u=r.getEdgeByIndex(a),c=l.n1.p,h=l.n2.p,f=u.getLayout();f=f?f.slice():[],f[0]=f[0]||[],f[1]=f[1]||[],m(f[0],c),m(f[1],h),+l.curveness&&(f[2]=[(c[0]+h[0])/2-(c[1]-h[1])*l.curveness,(c[1]+h[1])/2-(h[0]-c[0])*l.curveness]),u.setLayout(f)}})),t.forceLayout=b,t.preservedPoints=n,b.step()}else t.forceLayout=null}))}function tR(t,e,n){var r=Object(v["extend"])(t.getBoxLayoutParams(),{aspect:n});return ah(r,{width:e.getWidth(),height:e.getHeight()})}function eR(t,e){var n=[];return t.eachSeriesByType("graph",(function(t){var r=t.get("coordinateSystem");if(!r||"view"===r){var i=t.getData(),o=i.mapArray((function(t){var e=i.getItemModel(t);return[+e.get("x"),+e.get("y")]})),a=[],s=[];ua(o,a,s),s[0]-a[0]===0&&(s[0]+=1,a[0]-=1),s[1]-a[1]===0&&(s[1]+=1,a[1]-=1);var l=(s[0]-a[0])/(s[1]-a[1]),u=tR(t,e,l);isNaN(l)&&(a=[u.x,u.y],s=[u.x+u.width,u.y+u.height]);var c=s[0]-a[0],h=s[1]-a[1],f=u.width,d=u.height,p=t.coordinateSystem=new jP;p.zoomLimit=t.get("scaleLimit"),p.setBoundingRect(a[0],a[1],c,h),p.setViewRect(u.x,u.y,f,d),p.setCenter(t.get("center"),e),p.setZoom(t.get("zoom")),n.push(p)}})),n}var nR=ev.prototype,rR=av.prototype,iR=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}();(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}p(e,t)})(iR);function oR(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}var aR=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-line",n}return p(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new iR},e.prototype.buildPath=function(t,e){oR(e)?nR.buildPath.call(this,t,e):rR.buildPath.call(this,t,e)},e.prototype.pointAt=function(t){return oR(this.shape)?nR.pointAt.call(this,t):rR.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var e=this.shape,n=oR(e)?[e.x2-e.x1,e.y2-e.y1]:rR.tangentAt.call(this,t);return P(n,n)},e}(ss),sR=aR,lR=["fromSymbol","toSymbol"];function uR(t){return"_"+t+"Type"}function cR(t,e,n){var r=e.getItemVisual(n,t);if(r&&"none"!==r){var i=e.getItemVisual(n,t+"Size"),o=e.getItemVisual(n,t+"Rotate"),a=e.getItemVisual(n,t+"Offset"),s=e.getItemVisual(n,t+"KeepAspect"),l=Am(i),u=Mm(a||0,l),c=km(r,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=null==o||isNaN(o)?void 0:+o*Math.PI/180||0,c.name=t,c}}function hR(t){var e=new sR({name:"line",subPixelOptimize:!0});return fR(e.shape,t),e}function fR(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;var n=e[2];n?(t.cpx1=n[0],t.cpy1=n[1]):(t.cpx1=NaN,t.cpy1=NaN)}var dR=function(t){function e(e,n,r){var i=t.call(this)||this;return i._createLine(e,n,r),i}return p(e,t),e.prototype._createLine=function(t,e,n){var r=t.hostModel,i=t.getItemLayout(e),o=hR(i);o.shape.percent=0,uu(o,{shape:{percent:1}},r,e),this.add(o),Object(v["each"])(lR,(function(n){var r=cR(n,t,e);this.add(r),this[uR(n)]=t.getItemVisual(e,n)}),this),this._updateCommonStl(t,e,n)},e.prototype.updateData=function(t,e,n){var r=t.hostModel,i=this.childOfName("line"),o=t.getItemLayout(e),a={shape:{}};fR(a.shape,o),lu(i,a,r,e),Object(v["each"])(lR,(function(n){var r=t.getItemVisual(e,n),i=uR(n);if(this[i]!==r){this.remove(this.childOfName(n));var o=cR(n,t,e);this.add(o)}this[i]=r}),this),this._updateCommonStl(t,e,n)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,e,n){var r=t.hostModel,i=this.childOfName("line"),o=n&&n.emphasisLineStyle,a=n&&n.blurLineStyle,s=n&&n.selectLineStyle,l=n&&n.labelStatesModels,u=n&&n.emphasisDisabled,c=n&&n.focus,h=n&&n.blurScope;if(!n||t.hasItemOption){var f=t.getItemModel(e),d=f.getModel("emphasis");o=d.getModel("lineStyle").getLineStyle(),a=f.getModel(["blur","lineStyle"]).getLineStyle(),s=f.getModel(["select","lineStyle"]).getLineStyle(),u=d.get("disabled"),c=d.get("focus"),h=d.get("blurScope"),l=_u(f)}var p=t.getItemVisual(e,"style"),g=p.stroke;i.useStyle(p),i.style.fill=null,i.style.strokeNoScale=!0,i.ensureState("emphasis").style=o,i.ensureState("blur").style=a,i.ensureState("select").style=s,Object(v["each"])(lR,(function(t){var e=this.childOfName(t);if(e){e.setColor(g),e.style.opacity=p.opacity;for(var n=0;n<Qs.length;n++){var r=Qs[n],o=i.getState(r);if(o){var a=o.style||{},s=e.ensureState(r),l=s.style||(s.style={});null!=a.stroke&&(l[e.__isEmptyBrush?"stroke":"fill"]=a.stroke),null!=a.opacity&&(l.opacity=a.opacity)}}e.markRedraw()}}),this);var y=r.getRawValue(e);bu(this,l,{labelDataIndex:e,labelFetcher:{getFormattedLabel:function(e,n){return r.getFormattedLabel(e,n,t.dataType)}},inheritColor:g||"#000",defaultOpacity:p.opacity,defaultText:(null==y?t.getName(e):isFinite(y)?ti(y):y)+""});var m=this.getTextContent();if(m){var b=l.normal;m.__align=m.style.align,m.__verticalAlign=m.style.verticalAlign,m.__position=b.get("position")||"middle";var _=b.get("distance");Object(v["isArray"])(_)||(_=[_,_]),m.__labelDistance=_}this.setTextConfig({position:null,local:!0,inside:!1}),$l(this,c,h,u)},e.prototype.highlight=function(){Ml(this)},e.prototype.downplay=function(){Tl(this)},e.prototype.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},e.prototype.setLinePoints=function(t){var e=this.childOfName("line");fR(e.shape,t),e.dirty()},e.prototype.beforeUpdate=function(){var t=this,e=t.childOfName("fromSymbol"),n=t.childOfName("toSymbol"),r=t.getTextContent();if(e||n||r&&!r.ignore){var i=1,o=this.parent;while(o)o.scaleX&&(i/=o.scaleX),o=o.parent;var a=t.childOfName("line");if(this.__dirty||a.__dirty){var s=a.shape.percent,l=a.pointAt(0),u=a.pointAt(s),c=S([],u,l);if(P(c,c),e&&(e.setPosition(l),O(e,0),e.scaleX=e.scaleY=i*s,e.markRedraw()),n&&(n.setPosition(u),O(n,1),n.scaleX=n.scaleY=i*s,n.markRedraw()),r&&!r.ignore){r.x=r.y=0,r.originX=r.originY=0;var h=void 0,f=void 0,d=r.__labelDistance,p=d[0]*i,g=d[1]*i,v=s/2,y=a.tangentAt(v),m=[y[1],-y[0]],b=a.pointAt(v);m[1]>0&&(m[0]=-m[0],m[1]=-m[1]);var _=y[0]<0?-1:1;if("start"!==r.__position&&"end"!==r.__position){var x=-Math.atan2(y[1],y[0]);u[0]<l[0]&&(x=Math.PI+x),r.rotation=x}var w=void 0;switch(r.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":w=-g,f="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":w=g,f="top";break;default:w=0,f="middle"}switch(r.__position){case"end":r.x=c[0]*p+u[0],r.y=c[1]*g+u[1],h=c[0]>.8?"left":c[0]<-.8?"right":"center",f=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":r.x=-c[0]*p+l[0],r.y=-c[1]*g+l[1],h=c[0]>.8?"right":c[0]<-.8?"left":"center",f=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":r.x=p*_+l[0],r.y=l[1]+w,h=y[0]<0?"right":"left",r.originX=-p*_,r.originY=-w;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":r.x=b[0],r.y=b[1]+w,h="center",r.originY=-w;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":r.x=-p*_+u[0],r.y=u[1]+w,h=y[0]>=0?"right":"left",r.originX=p*_,r.originY=-w;break}r.scaleX=r.scaleY=i,r.setStyle({verticalAlign:r.__verticalAlign||f,align:r.__align||h})}}}function O(t,e){var n=t.__specifiedRotation;if(null==n){var r=a.tangentAt(e);t.attr("rotation",(1===e?-1:1)*Math.PI/2-Math.atan2(r[1],r[0]))}else t.attr("rotation",n)}},e}(Nr),pR=dR,gR=function(){function t(t){this.group=new Nr,this._LineCtor=t||pR}return t.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var n=this,r=n.group,i=n._lineData;n._lineData=t,i||r.removeAll();var o=yR(t);t.diff(i).add((function(n){e._doAdd(t,n,o)})).update((function(n,r){e._doUpdate(i,t,r,n,o)})).remove((function(t){r.remove(i.getItemGraphicEl(t))})).execute()},t.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl((function(e,n){e.updateLayout(t,n)}),this)},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=yR(t),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e){function n(t){t.isGroup||vR(t)||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var r=t.start;r<t.end;r++){var i=e.getItemLayout(r);if(bR(i)){var o=new this._LineCtor(e,r,this._seriesScope);o.traverse(n),this.group.add(o),e.setItemGraphicEl(r,o),this._progressiveEls.push(o)}}},t.prototype.remove=function(){this.group.removeAll()},t.prototype.eachRendered=function(t){iy(this._progressiveEls||this.group,t)},t.prototype._doAdd=function(t,e,n){var r=t.getItemLayout(e);if(bR(r)){var i=new this._LineCtor(t,e,n);t.setItemGraphicEl(e,i),this.group.add(i)}},t.prototype._doUpdate=function(t,e,n,r,i){var o=t.getItemGraphicEl(n);bR(e.getItemLayout(r))?(o?o.updateData(e,r,i):o=new this._LineCtor(e,r,i),e.setItemGraphicEl(r,o),this.group.add(o)):this.group.remove(o)},t}();function vR(t){return t.animators&&t.animators.length>0}function yR(t){var e=t.hostModel,n=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:_u(e)}}function mR(t){return isNaN(t[0])||isNaN(t[1])}function bR(t){return t&&!mR(t[0])&&!mR(t[1])}var _R=gR,xR=[],wR=[],SR=[],OR=Ve,CR=R,kR=Math.abs;function AR(t,e,n){for(var r,i=t[0],o=t[1],a=t[2],s=1/0,l=n*n,u=.1,c=.1;c<=.9;c+=.1){xR[0]=OR(i[0],o[0],a[0],c),xR[1]=OR(i[1],o[1],a[1],c);var h=kR(CR(xR,e)-l);h<s&&(s=h,r=c)}for(var f=0;f<32;f++){var d=r+u;wR[0]=OR(i[0],o[0],a[0],r),wR[1]=OR(i[1],o[1],a[1],r),SR[0]=OR(i[0],o[0],a[0],d),SR[1]=OR(i[1],o[1],a[1],d);h=CR(wR,e)-l;if(kR(h)<.01)break;var p=CR(SR,e)-l;u/=2,h<0?p>=0?r+=u:r-=u:p>=0?r-=u:r+=u}return r}function MR(t,e){var n=[],r=We,i=[[],[],[]],o=[[],[]],a=[];e/=2,t.eachEdge((function(t,s){var l=t.getLayout(),u=t.getVisual("fromSymbol"),c=t.getVisual("toSymbol");l.__original||(l.__original=[b(l[0]),b(l[1])],l[2]&&l.__original.push(b(l[2])));var h=l.__original;if(null!=l[2]){if(m(i[0],h[0]),m(i[1],h[2]),m(i[2],h[1]),u&&"none"!==u){var f=HD(t.node1),d=AR(i,h[0],f*e);r(i[0][0],i[1][0],i[2][0],d,n),i[0][0]=n[3],i[1][0]=n[4],r(i[0][1],i[1][1],i[2][1],d,n),i[0][1]=n[3],i[1][1]=n[4]}if(c&&"none"!==c){f=HD(t.node2),d=AR(i,h[1],f*e);r(i[0][0],i[1][0],i[2][0],d,n),i[1][0]=n[1],i[2][0]=n[2],r(i[0][1],i[1][1],i[2][1],d,n),i[1][1]=n[1],i[2][1]=n[2]}m(l[0],i[0]),m(l[1],i[2]),m(l[2],i[1])}else{if(m(o[0],h[0]),m(o[1],h[1]),S(a,o[1],o[0]),P(a,a),u&&"none"!==u){f=HD(t.node1);w(o[0],o[0],a,f*e)}if(c&&"none"!==c){f=HD(t.node2);w(o[1],o[1],a,-f*e)}m(l[0],o[0]),m(l[1],o[1])}}))}function TR(t){return"view"===t.type}var IR=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.init=function(t,e){var n=new pA,r=new _R,i=this.group;this._controller=new cE(e.getZr()),this._controllerHost={target:i},i.add(n.group),i.add(r.group),this._symbolDraw=n,this._lineDraw=r,this._firstRender=!0},e.prototype.render=function(t,e,n){var r=this,i=t.coordinateSystem;this._model=t;var o=this._symbolDraw,a=this._lineDraw,s=this.group;if(TR(i)){var l={x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY};this._firstRender?s.attr(l):lu(s,l,t)}MR(t.getGraph(),GD(t));var u=t.getData();o.updateData(u);var c=t.getEdgeData();a.updateData(c),this._updateNodeAndLinkScale(),this._updateController(t,e,n),clearTimeout(this._layoutTimeout);var h=t.forceLayout,f=t.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,f);var d=t.get("layout");u.graph.eachNode((function(e){var n=e.dataIndex,i=e.getGraphicEl(),o=e.getModel();if(i){i.off("drag").off("dragend");var a=o.get("draggable");a&&i.on("drag",(function(o){switch(d){case"force":h.warmUp(),!r._layouting&&r._startForceLayoutIteration(h,f),h.setFixed(n),u.setItemLayout(n,[i.x,i.y]);break;case"circular":u.setItemLayout(n,[i.x,i.y]),e.setLayout({fixed:!0},!0),$D(t,"symbolSize",e,[o.offsetX,o.offsetY]),r.updateLayout(t);break;case"none":default:u.setItemLayout(n,[i.x,i.y]),VD(t.getGraph(),t),r.updateLayout(t);break}})).on("dragend",(function(){h&&h.setUnfixed(n)})),i.setDraggable(a&&!!h,!!o.get("cursor"));var s=o.get(["emphasis","focus"]);"adjacency"===s&&(Gs(i).focus=e.getAdjacentDataIndices())}})),u.graph.eachEdge((function(t){var e=t.getGraphicEl(),n=t.getModel().get(["emphasis","focus"]);e&&"adjacency"===n&&(Gs(e).focus={edge:[t.dataIndex],node:[t.node1.dataIndex,t.node2.dataIndex]})}));var p="circular"===t.get("layout")&&t.get(["circular","rotateLabel"]),g=u.getLayout("cx"),v=u.getLayout("cy");u.graph.eachNode((function(t){XD(t,p,g,v)})),this._firstRender=!1},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,e){var n=this;(function r(){t.step((function(t){n.updateLayout(n._model),(n._layouting=!t)&&(e?n._layoutTimeout=setTimeout(r,16):r())}))})()},e.prototype._updateController=function(t,e,n){var r=this,i=this._controller,o=this._controllerHost,a=this.group;i.setPointerChecker((function(e,r,i){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(r,i)&&!gE(e,n,t)})),TR(t.coordinateSystem)?(i.enable(t.get("roam")),o.zoomLimit=t.get("scaleLimit"),o.zoom=t.coordinateSystem.getZoom(),i.off("pan").off("zoom").on("pan",(function(e){hE(o,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"graphRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){fE(o,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),r._updateNodeAndLinkScale(),MR(t.getGraph(),GD(t)),r._lineDraw.updateLayout(),n.updateLabelLayout()}))):i.disable()},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,e=t.getData(),n=GD(t);e.eachItemGraphicEl((function(t,e){t&&t.setSymbolScale(n)}))},e.prototype.updateLayout=function(t){MR(t.getGraph(),GD(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(dy),ER=IR;function PR(t){return"_EC_"+t}var jR=function(){function t(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return t.prototype.isDirected=function(){return this._directed},t.prototype.addNode=function(t,e){t=null==t?""+e:""+t;var n=this._nodesMap;if(!n[PR(t)]){var r=new LR(t,e);return r.hostGraph=this,this.nodes.push(r),n[PR(t)]=r,r}},t.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},t.prototype.getNodeById=function(t){return this._nodesMap[PR(t)]},t.prototype.addEdge=function(t,e,n){var r=this._nodesMap,i=this._edgesMap;if(v["isNumber"](t)&&(t=this.nodes[t]),v["isNumber"](e)&&(e=this.nodes[e]),t instanceof LR||(t=r[PR(t)]),e instanceof LR||(e=r[PR(e)]),t&&e){var o=t.id+"-"+e.id,a=new DR(t,e,n);return a.hostGraph=this,this._directed&&(t.outEdges.push(a),e.inEdges.push(a)),t.edges.push(a),t!==e&&e.edges.push(a),this.edges.push(a),i[o]=a,a}},t.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},t.prototype.getEdge=function(t,e){t instanceof LR&&(t=t.id),e instanceof LR&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},t.prototype.eachNode=function(t,e){for(var n=this.nodes,r=n.length,i=0;i<r;i++)n[i].dataIndex>=0&&t.call(e,n[i],i)},t.prototype.eachEdge=function(t,e){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&&t.call(e,n[i],i)},t.prototype.breadthFirstTraverse=function(t,e,n,r){if(e instanceof LR||(e=this._nodesMap[PR(e)]),e){for(var i="out"===n?"outEdges":"in"===n?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!t.call(r,e,null)){var a=[e];while(a.length){var s=a.shift(),l=s[i];for(o=0;o<l.length;o++){var u=l[o],c=u.node1===s?u.node2:u.node1;if(!c.__visited){if(t.call(r,c,s))return;a.push(c),c.__visited=!0}}}}}},t.prototype.update=function(){for(var t=this.data,e=this.edgeData,n=this.nodes,r=this.edges,i=0,o=n.length;i<o;i++)n[i].dataIndex=-1;for(i=0,o=t.count();i<o;i++)n[t.getRawIndex(i)].dataIndex=i;e.filterSelf((function(t){var n=r[e.getRawIndex(t)];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=e.count();i<o;i++)r[e.getRawIndex(i)].dataIndex=i},t.prototype.clone=function(){for(var e=new t(this._directed),n=this.nodes,r=this.edges,i=0;i<n.length;i++)e.addNode(n[i].id,n[i].dataIndex);for(i=0;i<r.length;i++){var o=r[i];e.addEdge(o.node1.id,o.node2.id,o.dataIndex)}return e},t}(),LR=function(){function t(t,e){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=null==t?"":t,this.dataIndex=null==e?-1:e}return t.prototype.degree=function(){return this.edges.length},t.prototype.inDegree=function(){return this.inEdges.length},t.prototype.outDegree=function(){return this.outEdges.length},t.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,n=e.data.getItemModel(this.dataIndex);return n.getModel(t)}},t.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},e=0;e<this.edges.length;e++){var n=this.edges[e];n.dataIndex<0||(t.edge.push(n.dataIndex),t.node.push(n.node1.dataIndex,n.node2.dataIndex))}return t},t}(),DR=function(){function t(t,e,n){this.dataIndex=-1,this.node1=t,this.node2=e,this.dataIndex=null==n?-1:n}return t.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,n=e.edgeData.getItemModel(this.dataIndex);return n.getModel(t)}},t.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},t}();function RR(t,e){return{getValue:function(n){var r=this[t][e];return r.getStore().get(r.getDimensionIndex(n||"value"),this.dataIndex)},setVisual:function(n,r){this.dataIndex>=0&&this[t][e].setItemVisual(this.dataIndex,n,r)},getVisual:function(n){return this[t][e].getItemVisual(this.dataIndex,n)},setLayout:function(n,r){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,n,r)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}}v["mixin"](LR,RR("hostGraph","data")),v["mixin"](DR,RR("hostGraph","edgeData"));var NR=jR;function BR(t,e,n,r,i){for(var o=new NR(r),a=0;a<t.length;a++)o.addNode(v["retrieve"](t[a].id,t[a].name,a),a);var s=[],l=[],u=0;for(a=0;a<e.length;a++){var c=e[a],h=c.source,f=c.target;o.addEdge(h,f,u)&&(l.push(c),s.push(v["retrieve"](zi(c.id,null),h+" > "+f)),u++)}var d,p=n.get("coordinateSystem");if("cartesian2d"===p||"polar"===p)d=dw(t,n);else{var g=pf.get(p),y=g&&g.dimensions||[];v["indexOf"](y,"value")<0&&y.concat(["value"]);var m=Kx(t,{coordDimensions:y,encodeDefine:n.getEncode()}).dimensions;d=new Yx(m,n),d.initData(t)}var b=new Yx(["value"],n);return b.initData(l,s),i&&i(d,b),jj({mainData:d,struct:o,structAttr:"graph",datas:{node:d,edge:b},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}var FR=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return p(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments);var n=this;function r(){return n._categoriesData}this.legendVisualProvider=new rT(r,r),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(e){t.prototype.mergeDefaultAndTheme.apply(this,arguments),Ai(e,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,e){var n=t.edges||t.links||[],r=t.data||t.nodes||[],i=this;if(r&&n){ND(this);var o=BR(r,n,this,!0,a);return v["each"](o.edges,(function(t){BD(t.node1,t.node2,this,t.dataIndex)}),this),o.data}function a(t,e){t.wrapMethod("getItemModel",(function(t){var e=i._categoriesModels,n=t.getShallow("category"),r=e[n];return r&&(r.parentModel=t.parentModel,t.parentModel=r),t}));var n=Wu.prototype.getModel;function r(t,e){var r=n.call(this,t,e);return r.resolveParentPath=o,r}function o(t){if(t&&("label"===t[0]||"label"===t[1])){var e=t.slice();return"label"===t[0]?e[0]="edgeLabel":"label"===t[1]&&(e[1]="edgeLabel"),e}return t}e.wrapMethod("getItemModel",(function(t){return t.resolveParentPath=o,t.getModel=r,t}))}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,e,n){if("edge"===n){var r=this.getData(),i=this.getDataParams(t,n),o=r.graph.getEdgeByIndex(t),a=r.getName(o.node1.dataIndex),s=r.getName(o.node2.dataIndex),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),pp("nameValue",{name:l.join(" > "),value:i.value,noValue:null==i.value})}var u=Ip({series:this,dataIndex:t,multipleSeries:e});return u},e.prototype._updateCategoriesData=function(){var t=v["map"](this.option.categories||[],(function(t){return null!=t.value?t:v["extend"]({value:0},t)})),e=new Yx(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray((function(t){return e.getItemModel(t)}))},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return t.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,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:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Hp),zR=FR,VR={type:"graphRoam",event:"graphRoam",update:"none"};function qR(t){t.registerChartView(ER),t.registerSeriesModel(zR),t.registerProcessor(CD),t.registerVisual(kD),t.registerVisual(MD),t.registerLayout(qD),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,KD),t.registerLayout(JD),t.registerCoordinateSystem("graphView",{dimensions:jP.dimensions,create:eR}),t.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},v["noop"]),t.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},v["noop"]),t.registerAction(VR,(function(t,e,n){e.eachComponent({mainType:"series",query:t},(function(e){var r=e.coordinateSystem,i=$P(r,t,void 0,n);e.setCenter&&e.setCenter(i.center),e.setZoom&&e.setZoom(i.zoom)}))}))}var GR=function(){function t(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return t}(),HR=function(t){function e(e){var n=t.call(this,e)||this;return n.type="pointer",n}return p(e,t),e.prototype.getDefaultShape=function(){return new GR},e.prototype.buildPath=function(t,e){var n=Math.cos,r=Math.sin,i=e.r,o=e.width,a=e.angle,s=e.x-n(a)*o*(o>=i/3?1:2),l=e.y-r(a)*o*(o>=i/3?1:2);a=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+n(a)*o,e.y+r(a)*o),t.lineTo(e.x+n(e.angle)*i,e.y+r(e.angle)*i),t.lineTo(e.x-n(a)*o,e.y-r(a)*o),t.lineTo(s,l)},e}(ss),WR=HR;function UR(t,e){var n=t.get("center"),r=e.getWidth(),i=e.getHeight(),o=Math.min(r,i),a=Jr(n[0],e.getWidth()),s=Jr(n[1],e.getHeight()),l=Jr(t.get("radius"),o/2);return{cx:a,cy:s,r:l}}function $R(t,e){var n=null==t?"":t+"";return e&&(Object(v["isString"])(e)?n=e.replace("{value}",n):Object(v["isFunction"])(e)&&(n=e(t))),n}var YR=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.render=function(t,e,n){this.group.removeAll();var r=t.get(["axisLine","lineStyle","color"]),i=UR(t,n);this._renderMain(t,e,n,r,i),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,e,n,r,i){var o=this.group,a=t.get("clockwise"),s=-t.get("startAngle")/180*Math.PI,l=-t.get("endAngle")/180*Math.PI,u=t.getModel("axisLine"),c=u.get("roundCap"),h=c?lM:zg,f=u.get("show"),d=u.getModel("lineStyle"),p=d.get("width"),g=[s,l];ja(g,!a),s=g[0],l=g[1];for(var v=l-s,y=s,m=0;f&&m<r.length;m++){var b=Math.min(Math.max(r[m][0],0),1);l=s+v*b;var _=new h({shape:{startAngle:y,endAngle:l,cx:i.cx,cy:i.cy,clockwise:a,r0:i.r-p,r:i.r},silent:!0});_.setStyle({fill:r[m][1]}),_.setStyle(d.getLineStyle(["color","width"])),o.add(_),y=l}var x=function(t){if(t<=0)return r[0][1];var e;for(e=0;e<r.length;e++)if(r[e][0]>=t&&(0===e?0:r[e-1][0])<t)return r[e][1];return r[e-1][1]};this._renderTicks(t,e,n,x,i,s,l,a,p),this._renderTitleAndDetail(t,e,n,x,i),this._renderAnchor(t,i),this._renderPointer(t,e,n,x,i,s,l,a,p)},e.prototype._renderTicks=function(t,e,n,r,i,o,a,s,l){for(var u,c,h=this.group,f=i.cx,d=i.cy,p=i.r,g=+t.get("min"),y=+t.get("max"),m=t.getModel("splitLine"),b=t.getModel("axisTick"),_=t.getModel("axisLabel"),x=t.get("splitNumber"),w=b.get("splitNumber"),S=Jr(m.get("length"),p),O=Jr(b.get("length"),p),C=o,k=(a-o)/x,A=k/w,M=m.getModel("lineStyle").getLineStyle(),T=b.getModel("lineStyle").getLineStyle(),I=m.get("distance"),E=0;E<=x;E++){if(u=Math.cos(C),c=Math.sin(C),m.get("show")){var P=I?I+l:l,j=new ev({shape:{x1:u*(p-P)+f,y1:c*(p-P)+d,x2:u*(p-S-P)+f,y2:c*(p-S-P)+d},style:M,silent:!0});"auto"===M.stroke&&j.setStyle({stroke:r(E/x)}),h.add(j)}if(_.get("show")){P=_.get("distance")+I;var L=$R(ti(E/x*(y-g)+g),_.get("formatter")),D=r(E/x),R=u*(p-S-P)+f,N=c*(p-S-P)+d,B=_.get("rotate"),F=0;"radial"===B?(F=-C+2*Math.PI,F>Math.PI/2&&(F+=Math.PI)):"tangential"===B?F=-C-Math.PI/2:Object(v["isNumber"])(B)&&(F=B*Math.PI/180),0===F?h.add(new qs({style:xu(_,{text:L,x:R,y:N,verticalAlign:c<-.8?"top":c>.8?"bottom":"middle",align:u<-.4?"left":u>.4?"right":"center"},{inheritColor:D}),silent:!0})):h.add(new qs({style:xu(_,{text:L,x:R,y:N,verticalAlign:"middle",align:"center"},{inheritColor:D}),silent:!0,originX:R,originY:N,rotation:F}))}if(b.get("show")&&E!==x){P=b.get("distance");P=P?P+l:l;for(var z=0;z<=w;z++){u=Math.cos(C),c=Math.sin(C);var V=new ev({shape:{x1:u*(p-P)+f,y1:c*(p-P)+d,x2:u*(p-O-P)+f,y2:c*(p-O-P)+d},silent:!0,style:T});"auto"===T.stroke&&V.setStyle({stroke:r((E+z/w)/x)}),h.add(V),C+=A}C-=A}else C+=k}},e.prototype._renderPointer=function(t,e,n,r,i,o,a,s,l){var u=this.group,c=this._data,h=this._progressEls,f=[],d=t.get(["pointer","show"]),p=t.getModel("progress"),g=p.get("show"),y=t.getData(),m=y.mapDimension("value"),b=+t.get("min"),_=+t.get("max"),x=[b,_],w=[o,a];function S(e,n){var r,o=y.getItemModel(e),a=o.getModel("pointer"),s=Jr(a.get("width"),i.r),l=Jr(a.get("length"),i.r),u=t.get(["pointer","icon"]),c=a.get("offsetCenter"),h=Jr(c[0],i.r),f=Jr(c[1],i.r),d=a.get("keepAspect");return r=u?km(u,h-s/2,f-l,s,l,null,d):new WR({shape:{angle:-Math.PI/2,width:s,r:l,x:h,y:f}}),r.rotation=-(n+Math.PI/2),r.x=i.cx,r.y=i.cy,r}function O(t,e){var n=p.get("roundCap"),r=n?lM:zg,a=p.get("overlap"),u=a?p.get("width"):l/y.count(),c=a?i.r-u:i.r-(t+1)*u,h=a?i.r:i.r-t*u,f=new r({shape:{startAngle:o,endAngle:e,cx:i.cx,cy:i.cy,clockwise:s,r0:c,r:h}});return a&&(f.z2=_-y.get(m,t)%_),f}(g||d)&&(y.diff(c).add((function(e){var n=y.get(m,e);if(d){var r=S(e,o);uu(r,{rotation:-((isNaN(+n)?w[0]:Qr(n,x,w,!0))+Math.PI/2)},t),u.add(r),y.setItemGraphicEl(e,r)}if(g){var i=O(e,o),a=p.get("clip");uu(i,{shape:{endAngle:Qr(n,x,w,a)}},t),u.add(i),Hs(t.seriesIndex,y.dataType,e,i),f[e]=i}})).update((function(e,n){var r=y.get(m,e);if(d){var i=c.getItemGraphicEl(n),a=i?i.rotation:o,s=S(e,a);s.rotation=a,lu(s,{rotation:-((isNaN(+r)?w[0]:Qr(r,x,w,!0))+Math.PI/2)},t),u.add(s),y.setItemGraphicEl(e,s)}if(g){var l=h[n],v=l?l.shape.endAngle:o,b=O(e,v),_=p.get("clip");lu(b,{shape:{endAngle:Qr(r,x,w,_)}},t),u.add(b),Hs(t.seriesIndex,y.dataType,e,b),f[e]=b}})).execute(),y.each((function(t){var e=y.getItemModel(t),n=e.getModel("emphasis"),i=n.get("focus"),o=n.get("blurScope"),a=n.get("disabled");if(d){var s=y.getItemGraphicEl(t),l=y.getItemVisual(t,"style"),u=l.fill;if(s instanceof gs){var c=s.style;s.useStyle(Object(v["extend"])({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},l))}else s.useStyle(l),"pointer"!==s.type&&s.setColor(u);s.setStyle(e.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===s.style.fill&&s.setStyle("fill",r(Qr(y.get(m,t),x,[0,1],!0))),s.z2EmphasisLift=0,Zl(s,e),$l(s,i,o,a)}if(g){var h=f[t];h.useStyle(y.getItemVisual(t,"style")),h.setStyle(e.getModel(["progress","itemStyle"]).getItemStyle()),h.z2EmphasisLift=0,Zl(h,e),$l(h,i,o,a)}})),this._progressEls=f)},e.prototype._renderAnchor=function(t,e){var n=t.getModel("anchor"),r=n.get("show");if(r){var i=n.get("size"),o=n.get("icon"),a=n.get("offsetCenter"),s=n.get("keepAspect"),l=km(o,e.cx-i/2+Jr(a[0],e.r),e.cy-i/2+Jr(a[1],e.r),i,i,null,s);l.z2=n.get("showAbove")?1:0,l.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(l)}},e.prototype._renderTitleAndDetail=function(t,e,n,r,i){var o=this,a=t.getData(),s=a.mapDimension("value"),l=+t.get("min"),u=+t.get("max"),c=new Nr,h=[],f=[],d=t.isAnimationEnabled(),p=t.get(["pointer","showAbove"]);a.diff(this._data).add((function(t){h[t]=new qs({silent:!0}),f[t]=new qs({silent:!0})})).update((function(t,e){h[t]=o._titleEls[e],f[t]=o._detailEls[e]})).execute(),a.each((function(e){var n=a.getItemModel(e),o=a.get(s,e),g=new Nr,v=r(Qr(o,[l,u],[0,1],!0)),y=n.getModel("title");if(y.get("show")){var m=y.get("offsetCenter"),b=i.cx+Jr(m[0],i.r),_=i.cy+Jr(m[1],i.r),x=h[e];x.attr({z2:p?0:2,style:xu(y,{x:b,y:_,text:a.getName(e),align:"center",verticalAlign:"middle"},{inheritColor:v})}),g.add(x)}var w=n.getModel("detail");if(w.get("show")){var S=w.get("offsetCenter"),O=i.cx+Jr(S[0],i.r),C=i.cy+Jr(S[1],i.r),k=Jr(w.get("width"),i.r),A=Jr(w.get("height"),i.r),M=t.get(["progress","show"])?a.getItemVisual(e,"style").fill:v,T=(x=f[e],w.get("formatter"));x.attr({z2:p?0:2,style:xu(w,{x:O,y:C,text:$R(o,T),width:isNaN(k)?null:k,height:isNaN(A)?null:A,align:"center",verticalAlign:"middle"},{inheritColor:M})}),Eu(x,{normal:w},o,(function(t){return $R(t,T)})),d&&Pu(x,e,a,t,{getFormattedLabel:function(t,e,n,r,i,a){return $R(a?a.interpolatedValue:o,T)}}),g.add(x)}c.add(g)})),this.group.add(c),this._titleEls=h,this._detailEls=f},e.type="gauge",e}(dy),XR=YR,KR=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="itemStyle",n}return p(e,t),e.prototype.getInitialData=function(t,e){return eT(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(Hp),ZR=KR;function QR(t){t.registerChartView(XR),t.registerSeriesModel(ZR)}var JR=["itemStyle","opacity"],tN=function(t){function e(e,n){var r=t.call(this)||this,i=r,o=new Zg,a=new qs;return i.setTextContent(a),r.setTextGuideLine(o),r.updateData(e,n,!0),r}return p(e,t),e.prototype.updateData=function(t,e,n){var r=this,i=t.hostModel,o=t.getItemModel(e),a=t.getItemLayout(e),s=o.getModel("emphasis"),l=o.get(JR);l=null==l?1:l,n||pu(r),r.useStyle(t.getItemVisual(e,"style")),r.style.lineJoin="round",n?(r.setShape({points:a.points}),r.style.opacity=0,uu(r,{style:{opacity:l}},i,e)):lu(r,{style:{opacity:l},shape:{points:a.points}},i,e),Zl(r,o),this._updateLabel(t,e),$l(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))},e.prototype._updateLabel=function(t,e){var n=this,r=this.getTextGuideLine(),i=n.getTextContent(),o=t.hostModel,a=t.getItemModel(e),s=t.getItemLayout(e),l=s.label,u=t.getItemVisual(e,"style"),c=u.fill;bu(i,_u(a),{labelFetcher:t.hostModel,labelDataIndex:e,defaultOpacity:u.opacity,defaultText:t.getName(e)},{normal:{align:l.textAlign,verticalAlign:l.verticalAlign}}),n.setTextConfig({local:!0,inside:!!l.inside,insideStroke:c,outsideFill:c});var h=l.linePoints;r.setShape({points:h}),n.textGuideLineConfig={anchor:h?new Pt(h[0][0],h[0][1]):null},lu(i,{style:{x:l.x,y:l.y}},o,e),i.attr({rotation:l.rotation,originX:l.x,originY:l.y,z2:10}),JO(n,tC(a),{stroke:c})},e}(Yg),eN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreLabelLineUpdate=!0,n}return p(e,t),e.prototype.render=function(t,e,n){var r=t.getData(),i=this._data,o=this.group;r.diff(i).add((function(t){var e=new tN(r,t);r.setItemGraphicEl(t,e),o.add(e)})).update((function(t,e){var n=i.getItemGraphicEl(e);n.updateData(r,t),o.add(n),r.setItemGraphicEl(t,n)})).remove((function(e){var n=i.getItemGraphicEl(e);du(n,t,e)})).execute(),this._data=r},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(dy),nN=eN,rN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new rT(v["bind"](this.getData,this),v["bind"](this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.getInitialData=function(t,e){return eT(this,{coordDimensions:["value"],encodeDefaulter:v["curry"](jh,this)})},e.prototype._defaultLabelLine=function(t){Ai(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.prototype.getDataParams=function(e){var n=this.getData(),r=t.prototype.getDataParams.call(this,e),i=n.mapDimension("value"),o=n.getSum(i);return r.percent=o?+(n.get(i,e)/o*100).toFixed(2):0,r.$vars.push("percent"),r},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",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}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Hp),iN=rN;function oN(t,e){return ah(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function aN(t,e){for(var n=t.mapDimension("value"),r=t.mapArray(n,(function(t){return t})),i=[],o="ascending"===e,a=0,s=t.count();a<s;a++)i[a]=a;return Object(v["isFunction"])(e)?i.sort(e):"none"!==e&&i.sort((function(t,e){return o?r[t]-r[e]:r[e]-r[t]})),i}function sN(t){var e=t.hostModel,n=e.get("orient");t.each((function(e){var r,i,o,a,s=t.getItemModel(e),l=s.getModel("label"),u=l.get("position"),c=s.getModel("labelLine"),h=t.getItemLayout(e),f=h.points,d="inner"===u||"inside"===u||"center"===u||"insideLeft"===u||"insideRight"===u;if(d)"insideLeft"===u?(i=(f[0][0]+f[3][0])/2+5,o=(f[0][1]+f[3][1])/2,r="left"):"insideRight"===u?(i=(f[1][0]+f[2][0])/2-5,o=(f[1][1]+f[2][1])/2,r="right"):(i=(f[0][0]+f[1][0]+f[2][0]+f[3][0])/4,o=(f[0][1]+f[1][1]+f[2][1]+f[3][1])/4,r="center"),a=[[i,o],[i,o]];else{var p=void 0,g=void 0,v=void 0,y=void 0,m=c.get("length");0,"left"===u?(p=(f[3][0]+f[0][0])/2,g=(f[3][1]+f[0][1])/2,v=p-m,i=v-5,r="right"):"right"===u?(p=(f[1][0]+f[2][0])/2,g=(f[1][1]+f[2][1])/2,v=p+m,i=v+5,r="left"):"top"===u?(p=(f[3][0]+f[0][0])/2,g=(f[3][1]+f[0][1])/2,y=g-m,o=y-5,r="center"):"bottom"===u?(p=(f[1][0]+f[2][0])/2,g=(f[1][1]+f[2][1])/2,y=g+m,o=y+5,r="center"):"rightTop"===u?(p="horizontal"===n?f[3][0]:f[1][0],g="horizontal"===n?f[3][1]:f[1][1],"horizontal"===n?(y=g-m,o=y-5,r="center"):(v=p+m,i=v+5,r="top")):"rightBottom"===u?(p=f[2][0],g=f[2][1],"horizontal"===n?(y=g+m,o=y+5,r="center"):(v=p+m,i=v+5,r="bottom")):"leftTop"===u?(p=f[0][0],g="horizontal"===n?f[0][1]:f[1][1],"horizontal"===n?(y=g-m,o=y-5,r="center"):(v=p-m,i=v-5,r="right")):"leftBottom"===u?(p="horizontal"===n?f[1][0]:f[3][0],g="horizontal"===n?f[1][1]:f[2][1],"horizontal"===n?(y=g+m,o=y+5,r="center"):(v=p-m,i=v-5,r="right")):(p=(f[1][0]+f[2][0])/2,g=(f[1][1]+f[2][1])/2,"horizontal"===n?(y=g+m,o=y+5,r="center"):(v=p+m,i=v+5,r="left")),"horizontal"===n?(v=p,i=v):(y=g,o=y),a=[[p,g],[v,y]]}h.label={linePoints:a,x:i,y:o,verticalAlign:"middle",textAlign:r,inside:d}}))}function lN(t,e){t.eachSeriesByType("funnel",(function(t){var n=t.getData(),r=n.mapDimension("value"),i=t.get("sort"),o=oN(t,e),a=t.get("orient"),s=o.width,l=o.height,u=aN(n,i),c=o.x,h=o.y,f="horizontal"===a?[Jr(t.get("minSize"),l),Jr(t.get("maxSize"),l)]:[Jr(t.get("minSize"),s),Jr(t.get("maxSize"),s)],d=n.getDataExtent(r),p=t.get("min"),g=t.get("max");null==p&&(p=Math.min(d[0],0)),null==g&&(g=d[1]);var v=t.get("funnelAlign"),y=t.get("gap"),m="horizontal"===a?s:l,b=(m-y*(n.count()-1))/n.count(),_=function(t,e){if("horizontal"===a){var i=n.get(r,t)||0,o=Qr(i,[p,g],f,!0),u=void 0;switch(v){case"top":u=h;break;case"center":u=h+(l-o)/2;break;case"bottom":u=h+(l-o);break}return[[e,u],[e,u+o]]}var d,y=n.get(r,t)||0,m=Qr(y,[p,g],f,!0);switch(v){case"left":d=c;break;case"center":d=c+(s-m)/2;break;case"right":d=c+s-m;break}return[[d,e],[d+m,e]]};"ascending"===i&&(b=-b,y=-y,"horizontal"===a?c+=s:h+=l,u=u.reverse());for(var x=0;x<u.length;x++){var w=u[x],S=u[x+1],O=n.getItemModel(w);if("horizontal"===a){var C=O.get(["itemStyle","width"]);null==C?C=b:(C=Jr(C,s),"ascending"===i&&(C=-C));var k=_(w,c),A=_(S,c+C);c+=C+y,n.setItemLayout(w,{points:k.concat(A.slice().reverse())})}else{var M=O.get(["itemStyle","height"]);null==M?M=b:(M=Jr(M,l),"ascending"===i&&(M=-M));k=_(w,h),A=_(S,h+M);h+=M+y,n.setItemLayout(w,{points:k.concat(A.slice().reverse())})}}sN(n)}))}function uN(t){t.registerChartView(nN),t.registerSeriesModel(iN),t.registerLayout(lN),t.registerProcessor(HM("funnel"))}var cN=.3,hN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._dataGroup=new Nr,n._initialized=!1,n}return p(e,t),e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(t,e,n,r){this._progressiveEls=null;var i=this._dataGroup,o=t.getData(),a=this._data,s=t.coordinateSystem,l=s.dimensions,u=gN(t);function c(t){var e=pN(o,i,t,l,s);vN(e,o,t,u)}function h(e,n){var r=a.getItemGraphicEl(n),i=dN(o,e,l,s);o.setItemGraphicEl(e,r),lu(r,{shape:{points:i}},t,e),pu(r),vN(r,o,e,u)}function f(t){var e=a.getItemGraphicEl(t);i.remove(e)}if(o.diff(a).add(c).update(h).remove(f).execute(),!this._initialized){this._initialized=!0;var d=fN(s,t,(function(){setTimeout((function(){i.removeClipPath()}))}));i.setClipPath(d)}this._data=o},e.prototype.incrementalPrepareRender=function(t,e,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(t,e,n){for(var r=e.getData(),i=e.coordinateSystem,o=i.dimensions,a=gN(e),s=this._progressiveEls=[],l=t.start;l<t.end;l++){var u=pN(r,this._dataGroup,l,o,i);u.incremental=!0,vN(u,r,l,a),s.push(u)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e}(dy);function fN(t,e,n){var r=t.model,i=t.getRect(),o=new Os({shape:{x:i.x,y:i.y,width:i.width,height:i.height}}),a="horizontal"===r.get("layout")?"width":"height";return o.setShape(a,0),uu(o,{shape:{width:i.width,height:i.height}},e,n),o}function dN(t,e,n,r){for(var i=[],o=0;o<n.length;o++){var a=n[o],s=t.get(t.mapDimension(a),e);yN(s,r.getAxis(a).type)||i.push(r.dataToPoint(s,a))}return i}function pN(t,e,n,r,i){var o=dN(t,n,r,i),a=new Zg({shape:{points:o},z2:10});return e.add(a),t.setItemGraphicEl(n,a),a}function gN(t){var e=t.get("smooth",!0);return!0===e&&(e=cN),e=mi(e),Object(v["eqNaN"])(e)&&(e=0),{smooth:e}}function vN(t,e,n,r){t.useStyle(e.getItemVisual(n,"style")),t.style.fill=null,t.setShape("smooth",r.smooth);var i=e.getItemModel(n),o=i.getModel("emphasis");Zl(t,i,"lineStyle"),$l(t,o.get("focus"),o.get("blurScope"),o.get("disabled"))}function yN(t,e){return"category"===e?null==t:null==t||isNaN(t)}var mN=hN,bN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return p(e,t),e.prototype.getInitialData=function(t,e){return dw(null,this,{useEncodeDefaulter:Object(v["bind"])(_N,null,this)})},e.prototype.getRawIndicesByActiveState=function(t){var e=this.coordinateSystem,n=this.getData(),r=[];return e.eachActiveState(n,(function(e,i){t===e&&r.push(n.getRawIndex(i))})),r},e.type="series.parallel",e.dependencies=["parallel"],e.defaultOption={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"},e}(Hp);function _N(t){var e=t.ecModel.getComponent("parallel",t.get("parallelIndex"));if(e){var n={};return Object(v["each"])(e.dimensions,(function(t){var e=xN(t);n[t]=e})),n}}function xN(t){return+t.replace("dim","")}var wN=bN,SN=["lineStyle","opacity"],ON={seriesType:"parallel",reset:function(t,e){var n=t.coordinateSystem,r={normal:t.get(["lineStyle","opacity"]),active:t.get("activeOpacity"),inactive:t.get("inactiveOpacity")};return{progress:function(t,e){n.eachActiveState(e,(function(t,n){var i=r[t];if("normal"===t&&e.hasItemOption){var o=e.getItemModel(n).get(SN,!0);null!=o&&(i=o)}var a=e.ensureUniqueItemVisual(n,"style");a.opacity=i}),t.start,t.end)}}}},CN=ON;function kN(t){AN(t),MN(t)}function AN(t){if(!t.parallel){var e=!1;v["each"](t.series,(function(t){t&&"parallel"===t.type&&(e=!0)})),e&&(t.parallel=[{}])}}function MN(t){var e=ki(t.parallelAxis);v["each"](e,(function(e){if(v["isObject"](e)){var n=e.parallelIndex||0,r=ki(t.parallel)[n];r&&r.parallelAxisDefault&&v["merge"](e,r.parallelAxisDefault,!1)}}))}var TN=5,IN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.render=function(t,e,n){this._model=t,this._api=n,this._handlers||(this._handlers={},Object(v["each"])(EN,(function(t,e){n.getZr().on(e,this._handlers[e]=Object(v["bind"])(t,this))}),this)),my(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,e){by(this,"_throttledDispatchExpand"),Object(v["each"])(this._handlers,(function(t,n){e.getZr().off(n,t)})),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(Object(v["extend"])({type:"parallelAxisExpand"},t))},e.type="parallel",e}(Up),EN={mousedown:function(t){PN(this,"click")&&(this._mouseDownPoint=[t.offsetX,t.offsetY])},mouseup:function(t){var e=this._mouseDownPoint;if(PN(this,"click")&&e){var n=[t.offsetX,t.offsetY],r=Math.pow(e[0]-n[0],2)+Math.pow(e[1]-n[1],2);if(r>TN)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==i.behavior&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&PN(this,"mousemove")){var e=this._model,n=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),r=n.behavior;"jump"===r&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===r?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===r?null:{duration:0}})}}};function PN(t,e){var n=t._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===e}var jN=IN,LN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.init=function(){t.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var e=this.option;t&&v["merge"](e,t,!0),this._initDimensions()},e.prototype.contains=function(t,e){var n=t.get("parallelIndex");return null!=n&&e.getComponent("parallel",n)===this},e.prototype.setAxisExpand=function(t){v["each"](["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(e){t.hasOwnProperty(e)&&(this.option[e]=t[e])}),this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],e=this.parallelAxisIndex=[],n=v["filter"](this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(t){return(t.get("parallelIndex")||0)===this.componentIndex}),this);v["each"](n,(function(n){t.push("dim"+n.get("dim")),e.push(n.componentIndex)}))},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={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},e}(vh),DN=LN,RN=function(t){function e(e,n,r,i,o){var a=t.call(this,e,n,r)||this;return a.type=i||"value",a.axisIndex=o,a}return p(e,t),e.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},e}(kO),NN=RN;function BN(t,e,n,r,i,o){t=t||0;var a=n[1]-n[0];if(null!=i&&(i=zN(i,[0,a])),null!=o&&(o=Math.max(o,null!=i?i:0)),"all"===r){var s=Math.abs(e[1]-e[0]);s=zN(s,[0,a]),i=o=zN(s,[i,o]),r=0}e[0]=zN(e[0],n),e[1]=zN(e[1],n);var l=FN(e,r);e[r]+=t;var u,c=i||0,h=n.slice();return l.sign<0?h[0]+=c:h[1]-=c,e[r]=zN(e[r],h),u=FN(e,r),null!=i&&(u.sign!==l.sign||u.span<i)&&(e[1-r]=e[r]+l.sign*i),u=FN(e,r),null!=o&&u.span>o&&(e[1-r]=e[r]+u.sign*o),e}function FN(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:n<0?1:e?-1:1}}function zN(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var VN=v["each"],qN=Math.min,GN=Math.max,HN=Math.floor,WN=Math.ceil,UN=ti,$N=Math.PI,YN=function(){function t(t,e,n){this.type="parallel",this._axesMap=v["createHashMap"](),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,n)}return t.prototype._init=function(t,e,n){var r=t.dimensions,i=t.parallelAxisIndex;VN(r,(function(t,n){var r=i[n],o=e.getComponent("parallelAxis",r),a=this._axesMap.set(t,new NN(t,MS(o),[0,0],o.get("type"),r)),s="category"===a.type;a.onBand=s&&o.get("boundaryGap"),a.inverse=o.get("inverse"),o.axis=a,a.model=o,a.coordinateSystem=o.coordinateSystem=this}),this)},t.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},t.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),n=e.axisBase,r=e.layoutBase,i=e.pixelDimIndex,o=t[1-i],a=t[i];return o>=n&&o<=n+e.axisLength&&a>=r&&a<=r+e.layoutLength},t.prototype.getModel=function(){return this._model},t.prototype._updateAxesFromSeries=function(t,e){e.eachSeries((function(n){if(t.contains(n,e)){var r=n.getData();VN(this.dimensions,(function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(r,r.mapDimension(t)),AS(e.scale,e.model)}),this)}}),this)},t.prototype.resize=function(t,e){this._rect=ah(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},t.prototype.getRect=function(){return this._rect},t.prototype._makeLayoutInfo=function(){var t,e=this._model,n=this._rect,r=["x","y"],i=["width","height"],o=e.get("layout"),a="horizontal"===o?0:1,s=n[i[a]],l=[0,s],u=this.dimensions.length,c=XN(e.get("axisExpandWidth"),l),h=XN(e.get("axisExpandCount")||0,[0,u]),f=e.get("axisExpandable")&&u>3&&u>h&&h>1&&c>0&&s>0,d=e.get("axisExpandWindow");if(d)t=XN(d[1]-d[0],l),d[1]=d[0]+t;else{t=XN(c*(h-1),l);var p=e.get("axisExpandCenter")||HN(u/2);d=[c*p-t/2],d[1]=d[0]+t}var g=(s-t)/(u-h);g<3&&(g=0);var v=[HN(UN(d[0]/c,1))+1,WN(UN(d[1]/c,1))-1],y=g/c*d[0];return{layout:o,pixelDimIndex:a,layoutBase:n[r[a]],layoutLength:s,axisBase:n[r[1-a]],axisLength:n[i[1-a]],axisExpandable:f,axisExpandWidth:c,axisCollapseWidth:g,axisExpandWindow:d,axisCount:u,winInnerIndices:v,axisExpandWindow0Pos:y}},t.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,n=this.dimensions,r=this._makeLayoutInfo(),i=r.layout;e.each((function(t){var e=[0,r.axisLength],n=t.inverse?1:0;t.setExtent(e[n],e[1-n])})),VN(n,(function(e,n){var o=(r.axisExpandable?ZN:KN)(n,r),a={horizontal:{x:o.position,y:r.axisLength},vertical:{x:0,y:o.position}},s={horizontal:$N/2,vertical:0},l=[a[i].x+t.x,a[i].y+t.y],u=s[i],c=wt();At(c,c,u),kt(c,c,l),this._axesLayout[e]={position:l,rotation:u,transform:c,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},t.prototype.getAxis=function(t){return this._axesMap.get(t)},t.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},t.prototype.eachActiveState=function(t,e,n,r){null==n&&(n=0),null==r&&(r=t.count());var i=this._axesMap,o=this.dimensions,a=[],s=[];v["each"](o,(function(e){a.push(t.mapDimension(e)),s.push(i.get(e).model)}));for(var l=this.hasAxisBrushed(),u=n;u<r;u++){var c=void 0;if(l){c="active";for(var h=t.getValues(a,u),f=0,d=o.length;f<d;f++){var p=s[f].getActiveState(h[f]);if("inactive"===p){c="inactive";break}}}else c="normal";e(c,u)}},t.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,e=this._axesMap,n=!1,r=0,i=t.length;r<i;r++)"normal"!==e.get(t[r]).model.getActiveState()&&(n=!0);return n},t.prototype.axisCoordToPoint=function(t,e){var n=this._axesLayout[e];return Hv([t,0],n.transform)},t.prototype.getAxisLayout=function(t){return v["clone"](this._axesLayout[t])},t.prototype.getSlidedAxisExpandWindow=function(t){var e=this._makeLayoutInfo(),n=e.pixelDimIndex,r=e.axisExpandWindow.slice(),i=r[1]-r[0],o=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:r};var a,s=t[n]-e.layoutBase-e.axisExpandWindow0Pos,l="slide",u=e.axisCollapseWidth,c=this._model.get("axisExpandSlideTriggerArea"),h=null!=c[0];if(u)h&&u&&s<i*c[0]?(l="jump",a=s-i*c[2]):h&&u&&s>i*(1-c[0])?(l="jump",a=s-i*(1-c[2])):(a=s-i*c[1])>=0&&(a=s-i*(1-c[1]))<=0&&(a=0),a*=e.axisExpandWidth/u,a?BN(a,r,o,"all"):l="none";else{var f=r[1]-r[0],d=o[1]*s/f;r=[GN(0,d-f/2)],r[1]=qN(o[1],r[0]+f),r[0]=r[1]-f}return{axisExpandWindow:r,behavior:l}},t}();function XN(t,e){return qN(GN(t,e[0]),e[1])}function KN(t,e){var n=e.layoutLength/(e.axisCount-1);return{position:n*t,axisNameAvailableWidth:n,axisLabelShow:!0}}function ZN(t,e){var n,r,i=e.layoutLength,o=e.axisExpandWidth,a=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,u=s,c=!1;return t<l[0]?(n=t*s,r=s):t<=l[1]?(n=e.axisExpandWindow0Pos+t*o-e.axisExpandWindow[0],u=o,c=!0):(n=i-(a-1-t)*s,r=s),{position:n,axisNameAvailableWidth:u,axisLabelShow:c,nameTruncateMaxWidth:r}}var QN=YN;function JN(t,e){var n=[];return t.eachComponent("parallel",(function(r,i){var o=new QN(r,t,e);o.name="parallel_"+i,o.resize(r,e),r.coordinateSystem=o,o.model=r,n.push(o)})),t.eachSeries((function(t){if("parallel"===t.get("coordinateSystem")){var e=t.getReferringComponents("parallel",Qi).models[0];t.coordinateSystem=e.coordinateSystem}})),n}var tB={create:JN},eB=tB,nB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.activeIntervals=[],n}return p(e,t),e.prototype.getAreaSelectStyle=function(){return xo([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var e=this.activeIntervals=v["clone"](t);if(e)for(var n=e.length-1;n>=0;n--)ei(e[n])},e.prototype.getActiveState=function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(+t))return"inactive";if(1===e.length){var n=e[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var r=0,i=e.length;r<i;r++)if(e[r][0]<=t&&t<=e[r][1])return"active";return"inactive"},e}(vh);v["mixin"](nB,BS);var rB=nB,iB=!0,oB=Math.min,aB=Math.max,sB=Math.pow,lB=1e4,uB=6,cB=6,hB="globalPan",fB={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},dB={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},pB={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},gB=0,vB=function(t){function e(e){var n=t.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=e,n.group=new Nr,n._uid="brushController_"+gB++,Object(v["each"])(YB,(function(t,e){this._handlers[e]=Object(v["bind"])(t,this)}),n),n}return p(e,t),e.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var e=this._zr;this._enableGlobalPan||nE(e,hB,this._uid),Object(v["each"])(this._handlers,(function(t,n){e.on(n,t)})),this._brushType=t.brushType,this._brushOption=Object(v["merge"])(Object(v["clone"])(pB),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;rE(t,hB,this._uid),Object(v["each"])(this._handlers,(function(e,n){t.off(n,e)})),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var e=this._panels={};Object(v["each"])(t,(function(t){e[t.panelId]=Object(v["clone"])(t)}))}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var e=this.group;return this._zr.add(e),e.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=e.getLocalTransform(),this},e.prototype.updateCovers=function(t){t=Object(v["map"])(t,(function(t){return Object(v["merge"])(Object(v["clone"])(pB),t,!0)}));var e="\0-brush-index-",n=this._covers,r=this._covers=[],i=this,o=this._creatingCover;return new mx(n,t,s,a).add(l).update(l).remove(u).execute(),this;function a(t,n){return(null!=t.id?t.id:e+n)+"-"+t.brushType}function s(t,e){return a(t.__brushOption,e)}function l(e,a){var s=t[e];if(null!=a&&n[a]===o)r[e]=n[a];else{var l=r[e]=null!=a?(n[a].__brushOption=s,n[a]):mB(i,yB(i,s));xB(i,l)}}function u(t){n[t]!==o&&i.group.remove(n[t])}},e.prototype.unmount=function(){return this.enableBrush(!1),CB(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(U);function yB(t,e){var n=ZB[e.brushType].createCover(t,e);return n.__brushOption=e,_B(n,e),t.group.add(n),n}function mB(t,e){var n=wB(e);return n.endCreating&&(n.endCreating(t,e),_B(e,e.__brushOption)),e}function bB(t,e){var n=e.__brushOption;wB(e).updateCoverShape(t,e,n.range,n)}function _B(t,e){var n=e.z;null==n&&(n=lB),t.traverse((function(t){t.z=n,t.z2=n}))}function xB(t,e){wB(e).updateCommon(t,e),bB(t,e)}function wB(t){return ZB[t.__brushOption.brushType]}function SB(t,e,n){var r,i=t._panels;if(!i)return iB;var o=t._transform;return Object(v["each"])(i,(function(t){t.isTargetByCursor(e,n,o)&&(r=t)})),r}function OB(t,e){var n=t._panels;if(!n)return iB;var r=e.__brushOption.panelId;return null!=r?n[r]:iB}function CB(t){var e=t._covers,n=e.length;return Object(v["each"])(e,(function(e){t.group.remove(e)}),t),e.length=0,!!n}function kB(t,e){var n=Object(v["map"])(t._covers,(function(t){var e=t.__brushOption,n=Object(v["clone"])(e.range);return{brushType:e.brushType,panelId:e.panelId,range:n}}));t.trigger("brush",{areas:n,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function AB(t){var e=t._track;if(!e.length)return!1;var n=e[e.length-1],r=e[0],i=n[0]-r[0],o=n[1]-r[1],a=sB(i*i+o*o,.5);return a>uB}function MB(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function TB(t,e,n,r){var i=new Nr;return i.add(new Os({name:"main",style:jB(n),silent:!0,draggable:!0,cursor:"move",drift:Object(v["curry"])(BB,t,e,i,["n","s","w","e"]),ondragend:Object(v["curry"])(kB,e,{isEnd:!0})})),Object(v["each"])(r,(function(n){i.add(new Os({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Object(v["curry"])(BB,t,e,i,n),ondragend:Object(v["curry"])(kB,e,{isEnd:!0})}))})),i}function IB(t,e,n,r){var i=r.brushStyle.lineWidth||0,o=aB(i,cB),a=n[0][0],s=n[1][0],l=a-i/2,u=s-i/2,c=n[0][1],h=n[1][1],f=c-o+i/2,d=h-o+i/2,p=c-a,g=h-s,v=p+i,y=g+i;PB(t,e,"main",a,s,p,g),r.transformable&&(PB(t,e,"w",l,u,o,y),PB(t,e,"e",f,u,o,y),PB(t,e,"n",l,u,v,o),PB(t,e,"s",l,d,v,o),PB(t,e,"nw",l,u,o,o),PB(t,e,"ne",f,u,o,o),PB(t,e,"sw",l,d,o,o),PB(t,e,"se",f,d,o,o))}function EB(t,e){var n=e.__brushOption,r=n.transformable,i=e.childAt(0);i.useStyle(jB(n)),i.attr({silent:!r,cursor:r?"move":"default"}),Object(v["each"])([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(n){var i=e.childOfName(n.join("")),o=1===n.length?RB(t,n[0]):NB(t,n);i&&i.attr({silent:!r,invisible:!r,cursor:r?dB[o]+"-resize":null})}))}function PB(t,e,n,r,i,o,a){var s=e.childOfName(n);s&&s.setShape(qB(VB(t,e,[[r,i],[r+o,i+a]])))}function jB(t){return Object(v["defaults"])({strokeNoScale:!0},t.brushStyle)}function LB(t,e,n,r){var i=[oB(t,n),oB(e,r)],o=[aB(t,n),aB(e,r)];return[[i[0],o[0]],[i[1],o[1]]]}function DB(t){return Gv(t.group)}function RB(t,e){var n={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},i=Wv(n[e],DB(t));return r[i]}function NB(t,e){var n=[RB(t,e[0]),RB(t,e[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}function BB(t,e,n,r,i,o){var a=n.__brushOption,s=t.toRectRange(a.range),l=zB(e,i,o);Object(v["each"])(r,(function(t){var e=fB[t];s[e[0]][e[1]]+=l[e[0]]})),a.range=t.fromRectRange(LB(s[0][0],s[1][0],s[0][1],s[1][1])),xB(e,n),kB(e,{isEnd:!1})}function FB(t,e,n,r){var i=e.__brushOption.range,o=zB(t,n,r);Object(v["each"])(i,(function(t){t[0]+=o[0],t[1]+=o[1]})),xB(t,e),kB(t,{isEnd:!1})}function zB(t,e,n){var r=t.group,i=r.transformCoordToLocal(e,n),o=r.transformCoordToLocal(0,0);return[i[0]-o[0],i[1]-o[1]]}function VB(t,e,n){var r=OB(t,e);return r&&r!==iB?r.clipPath(n,t._transform):Object(v["clone"])(n)}function qB(t){var e=oB(t[0][0],t[1][0]),n=oB(t[0][1],t[1][1]),r=aB(t[0][0],t[1][0]),i=aB(t[0][1],t[1][1]);return{x:e,y:n,width:r-e,height:i-n}}function GB(t,e,n){if(t._brushType&&!KB(t,e.offsetX,e.offsetY)){var r=t._zr,i=t._covers,o=SB(t,e,n);if(!t._dragging)for(var a=0;a<i.length;a++){var s=i[a].__brushOption;if(o&&(o===iB||s.panelId===o.panelId)&&ZB[s.brushType].contain(i[a],n[0],n[1]))return}o&&r.setCursorStyle("crosshair")}}function HB(t){var e=t.event;e.preventDefault&&e.preventDefault()}function WB(t,e,n){return t.childOfName("main").contain(e,n)}function UB(t,e,n,r){var i,o=t._creatingCover,a=t._creatingPanel,s=t._brushOption;if(t._track.push(n.slice()),AB(t)||o){if(a&&!o){"single"===s.brushMode&&CB(t);var l=Object(v["clone"])(s);l.brushType=$B(l.brushType,a),l.panelId=a===iB?null:a.panelId,o=t._creatingCover=yB(t,l),t._covers.push(o)}if(o){var u=ZB[$B(t._brushType,a)],c=o.__brushOption;c.range=u.getCreatingRange(VB(t,o,t._track)),r&&(mB(t,o),u.updateCommon(t,o)),bB(t,o),i={isEnd:r}}}else r&&"single"===s.brushMode&&s.removeOnClick&&SB(t,e,n)&&CB(t)&&(i={isEnd:r,removeOnClick:!0});return i}function $B(t,e){return"auto"===t?e.defaultBrushType:t}var YB={mousedown:function(t){if(this._dragging)XB(this,t);else if(!t.target||!t.target.draggable){HB(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null;var n=this._creatingPanel=SB(this,t,e);n&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=t.offsetX,n=t.offsetY,r=this.group.transformCoordToLocal(e,n);if(GB(this,t,r),this._dragging){HB(t);var i=UB(this,t,r,!1);i&&kB(this,i)}},mouseup:function(t){XB(this,t)}};function XB(t,e){if(t._dragging){HB(e);var n=e.offsetX,r=e.offsetY,i=t.group.transformCoordToLocal(n,r),o=UB(t,e,i,!0);t._dragging=!1,t._track=[],t._creatingCover=null,o&&kB(t,o)}}function KB(t,e,n){var r=t._zr;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}var ZB={lineX:QB(0),lineY:QB(1),rect:{createCover:function(t,e){function n(t){return t}return TB({toRectRange:n,fromRectRange:n},t,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(t){var e=MB(t);return LB(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,n,r){IB(t,e,n,r)},updateCommon:EB,contain:WB},polygon:{createCover:function(t,e){var n=new Nr;return n.add(new Zg({name:"main",style:jB(e),silent:!0})),n},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new Yg({name:"main",draggable:!0,drift:Object(v["curry"])(FB,t,e),ondragend:Object(v["curry"])(kB,t,{isEnd:!0})}))},updateCoverShape:function(t,e,n,r){e.childAt(0).setShape({points:VB(t,e,n)})},updateCommon:EB,contain:WB}};function QB(t){return{createCover:function(e,n){return TB({toRectRange:function(e){var n=[e,[0,100]];return t&&n.reverse(),n},fromRectRange:function(e){return e[t]}},e,n,[[["w"],["e"]],[["n"],["s"]]][t])},getCreatingRange:function(e){var n=MB(e),r=oB(n[0][t],n[1][t]),i=aB(n[0][t],n[1][t]);return[r,i]},updateCoverShape:function(e,n,r,i){var o,a=OB(e,n);if(a!==iB&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(t);else{var s=e._zr;o=[0,[s.getWidth(),s.getHeight()][1-t]]}var l=[r,o];t&&l.reverse(),IB(e,n,l,i)},updateCommon:EB,contain:WB}}var JB=vB;function tF(t){return t=rF(t),function(e){return Xv(e,t)}}function eF(t,e){return t=rF(t),function(n){var r=null!=e?e:n,i=r?t.width:t.height,o=r?t.x:t.y;return[o,o+(i||0)]}}function nF(t,e,n){var r=rF(t);return function(t,i){return r.contain(i[0],i[1])&&!gE(t,e,n)}}function rF(t){return qt.create(t)}var iF=["axisLine","axisTickLabel","axisName"],oF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.init=function(e,n){t.prototype.init.apply(this,arguments),(this._brushController=new JB(n.getZr())).on("brush",v["bind"](this._onBrush,this))},e.prototype.render=function(t,e,n,r){if(!aF(t,e,r)){this.axisModel=t,this.api=n,this.group.removeAll();var i=this._axisGroup;if(this._axisGroup=new Nr,this.group.add(this._axisGroup),t.get("show")){var o=lF(t,e),a=o.coordinateSystem,s=t.getAreaSelectStyle(),l=s.width,u=t.axis.dim,c=a.getAxisLayout(u),h=v["extend"]({strokeContainThreshold:l},c),f=new aI(t,h);v["each"](iF,f.add,f),this._axisGroup.add(f.getGroup()),this._refreshBrushController(h,s,t,o,l,n),Yv(i,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,e,n,r,i,o){var a=n.axis.getExtent(),s=a[1]-a[0],l=Math.min(30,.1*Math.abs(s)),u=qt.create({x:a[0],y:-i/2,width:s,height:i});u.x-=l,u.width+=2*l,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:tF(u),isTargetByCursor:nF(u,o,r),getLinearBrushOtherExtent:eF(u,0)}]).enableBrush({brushType:"lineX",brushStyle:e,removeOnClick:!0}).updateCovers(sF(n))},e.prototype._onBrush=function(t){var e=t.areas,n=this.axisModel,r=n.axis,i=v["map"](e,(function(t){return[r.coordToData(t.range[0],!0),r.coordToData(t.range[1],!0)]}));(!n.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:i})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(Up);function aF(t,e,n){return n&&"axisAreaSelect"===n.type&&e.findComponents({mainType:"parallelAxis",query:n})[0]===t}function sF(t){var e=t.axis;return v["map"](t.activeIntervals,(function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}}))}function lF(t,e){return e.getComponent("parallel",t.get("parallelIndex"))}var uF=oF,cF={type:"axisAreaSelect",event:"axisAreaSelected"};function hF(t){t.registerAction(cF,(function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},(function(e){e.axis.model.setActiveIntervals(t.intervals)}))})),t.registerAction("parallelAxisExpand",(function(t,e){e.eachComponent({mainType:"parallel",query:t},(function(e){e.setAxisExpand(t)}))}))}var fF={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function dF(t){t.registerComponentView(jN),t.registerComponentModel(DN),t.registerCoordinateSystem("parallel",eB),t.registerPreprocessor(kN),t.registerComponentModel(rB),t.registerComponentView(uF),AT(t,"parallel",rB,fF),hF(t)}function pF(t){px(dF),t.registerChartView(mN),t.registerSeriesModel(wN),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,CN)}var gF=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return t}(),vF=function(t){function e(e){return t.call(this,e)||this}return p(e,t),e.prototype.getDefaultShape=function(){return new gF},e.prototype.buildPath=function(t,e){var n=e.extent;t.moveTo(e.x1,e.y1),t.bezierCurveTo(e.cpx1,e.cpy1,e.cpx2,e.cpy2,e.x2,e.y2),"vertical"===e.orient?(t.lineTo(e.x2+n,e.y2),t.bezierCurveTo(e.cpx2+n,e.cpy2,e.cpx1+n,e.cpy1,e.x1+n,e.y1)):(t.lineTo(e.x2,e.y2+n),t.bezierCurveTo(e.cpx2,e.cpy2+n,e.cpx1,e.cpy1+n,e.x1,e.y1+n)),t.closePath()},e.prototype.highlight=function(){Ml(this)},e.prototype.downplay=function(){Tl(this)},e}(ss),yF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._focusAdjacencyDisabled=!1,n}return p(e,t),e.prototype.render=function(t,e,n){var r=this,i=t.getGraph(),o=this.group,a=t.layoutInfo,s=a.width,l=a.height,u=t.getData(),c=t.getData("edge"),h=t.get("orient");this._model=t,o.removeAll(),o.x=a.x,o.y=a.y,i.eachEdge((function(e){var n=new vF,r=Gs(n);r.dataIndex=e.dataIndex,r.seriesIndex=t.seriesIndex,r.dataType="edge";var i,a,u,f,d,p,g,y,m=e.getModel(),b=m.getModel("lineStyle"),_=b.get("curveness"),x=e.node1.getLayout(),w=e.node1.getModel(),S=w.get("localX"),O=w.get("localY"),C=e.node2.getLayout(),k=e.node2.getModel(),A=k.get("localX"),M=k.get("localY"),T=e.getLayout();switch(n.shape.extent=Math.max(1,T.dy),n.shape.orient=h,"vertical"===h?(i=(null!=S?S*s:x.x)+T.sy,a=(null!=O?O*l:x.y)+x.dy,u=(null!=A?A*s:C.x)+T.ty,f=null!=M?M*l:C.y,d=i,p=a*(1-_)+f*_,g=u,y=a*_+f*(1-_)):(i=(null!=S?S*s:x.x)+x.dx,a=(null!=O?O*l:x.y)+T.sy,u=null!=A?A*s:C.x,f=(null!=M?M*l:C.y)+T.ty,d=i*(1-_)+u*_,p=a,g=i*_+u*(1-_),y=f),n.setShape({x1:i,y1:a,x2:u,y2:f,cpx1:d,cpy1:p,cpx2:g,cpy2:y}),n.useStyle(b.getItemStyle()),n.style.fill){case"source":n.style.fill=e.node1.getVisual("color"),n.style.decal=e.node1.getVisual("style").decal;break;case"target":n.style.fill=e.node2.getVisual("color"),n.style.decal=e.node2.getVisual("style").decal;break;case"gradient":var I=e.node1.getVisual("color"),E=e.node2.getVisual("color");Object(v["isString"])(I)&&Object(v["isString"])(E)&&(n.style.fill=new gv(0,0,+("horizontal"===h),+("vertical"===h),[{color:I,offset:0},{color:E,offset:1}]))}var P=m.getModel("emphasis");Zl(n,m,"lineStyle",(function(t){return t.getItemStyle()})),o.add(n),c.setItemGraphicEl(e.dataIndex,n);var j=P.get("focus");$l(n,"adjacency"===j?e.getAdjacentDataIndices():j,P.get("blurScope"),P.get("disabled")),Gs(n).dataType="edge"})),i.eachNode((function(e){var n=e.getLayout(),r=e.getModel(),i=r.get("localX"),a=r.get("localY"),c=r.getModel("emphasis"),h=new Os({shape:{x:null!=i?i*s:n.x,y:null!=a?a*l:n.y,width:n.dx,height:n.dy},style:r.getModel("itemStyle").getItemStyle(),z2:10});bu(h,_u(r),{labelFetcher:t,labelDataIndex:e.dataIndex,defaultText:e.id}),h.disableLabelAnimation=!0,h.setStyle("fill",e.getVisual("color")),h.setStyle("decal",e.getVisual("style").decal),Zl(h,r),o.add(h),u.setItemGraphicEl(e.dataIndex,h),Gs(h).dataType="node";var f=c.get("focus");$l(h,"adjacency"===f?e.getAdjacentDataIndices():f,c.get("blurScope"),c.get("disabled"))})),u.eachItemGraphicEl((function(e,i){var o=u.getItemModel(i);o.get("draggable")&&(e.drift=function(e,o){r._focusAdjacencyDisabled=!0,this.shape.x+=e,this.shape.y+=o,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:u.getRawIndex(i),localX:this.shape.x/s,localY:this.shape.y/l})},e.ondragend=function(){r._focusAdjacencyDisabled=!1},e.draggable=!0,e.cursor="move")})),!this._data&&t.isAnimationEnabled()&&o.setClipPath(mF(o.getBoundingRect(),t,(function(){o.removeClipPath()}))),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(dy);function mF(t,e,n){var r=new Os({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return uu(r,{shape:{width:t.width+20}},e,n),r}var bF=yF,_F=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.getInitialData=function(t,e){var n=t.edges||t.links,r=t.data||t.nodes,i=t.levels;this.levelModels=[];for(var o=this.levelModels,a=0;a<i.length;a++)null!=i[a].depth&&i[a].depth>=0&&(o[i[a].depth]=new Wu(i[a],this,e));if(r&&n){var s=BR(r,n,this,!0,l);return s.data}function l(t,e){t.wrapMethod("getItemModel",(function(t,e){var n=t.parentModel,r=n.getData().getItemLayout(e);if(r){var i=r.depth,o=n.levelModels[i];o&&(t.parentModel=o)}return t})),e.wrapMethod("getItemModel",(function(t,e){var n=t.parentModel,r=n.getGraph().getEdgeByIndex(e),i=r.node1.getLayout();if(i){var o=i.depth,a=n.levelModels[o];a&&(t.parentModel=a)}return t}))}},e.prototype.setNodePosition=function(t,e){var n=this.option.data||this.option.nodes,r=n[t];r.localX=e[0],r.localY=e[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,e,n){function r(t){return isNaN(t)||null==t}if("edge"===n){var i=this.getDataParams(t,n),o=i.data,a=i.value,s=o.source+" -- "+o.target;return pp("nameValue",{name:s,value:a,noValue:r(a)})}var l=this.getGraph().getNodeByIndex(t),u=l.getLayout().value,c=this.getDataParams(t,n).data.name;return pp("nameValue",{name:null!=c?c+"":null,value:u,noValue:r(u)})},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(e,n){var r=t.prototype.getDataParams.call(this,e,n);if(null==r.value&&"node"===n){var i=this.getGraph().getNodeByIndex(e),o=i.getLayout().value;r.value=o}return r},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(Hp),xF=_F;function wF(t,e){t.eachSeriesByType("sankey",(function(t){var n=t.get("nodeWidth"),r=t.get("nodeGap"),i=SF(t,e);t.layoutInfo=i;var o=i.width,a=i.height,s=t.getGraph(),l=s.nodes,u=s.edges;CF(l);var c=v["filter"](l,(function(t){return 0===t.getLayout().value})),h=0!==c.length?0:t.get("layoutIterations"),f=t.get("orient"),d=t.get("nodeAlign");OF(l,u,n,r,o,a,h,f,d)}))}function SF(t,e){return ah(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function OF(t,e,n,r,i,o,a,s,l){kF(t,e,n,i,o,s,l),EF(t,e,o,i,r,a,s),HF(t,s)}function CF(t){v["each"](t,(function(t){var e=qF(t.outEdges,VF),n=qF(t.inEdges,VF),r=t.getValue()||0,i=Math.max(e,n,r);t.setLayout({value:i},!0)}))}function kF(t,e,n,r,i,o,a){for(var s=[],l=[],u=[],c=[],h=0,f=0;f<e.length;f++)s[f]=1;for(f=0;f<t.length;f++)l[f]=t[f].inEdges.length,0===l[f]&&u.push(t[f]);var d=-1;while(u.length){for(var p=0;p<u.length;p++){var g=u[p],v=g.hostGraph.data.getRawDataItem(g.dataIndex),y=null!=v.depth&&v.depth>=0;y&&v.depth>d&&(d=v.depth),g.setLayout({depth:y?v.depth:h},!0),"vertical"===o?g.setLayout({dy:n},!0):g.setLayout({dx:n},!0);for(var m=0;m<g.outEdges.length;m++){var b=g.outEdges[m],_=e.indexOf(b);s[_]=0;var x=b.node2,w=t.indexOf(x);0===--l[w]&&c.indexOf(x)<0&&c.push(x)}}++h,u=c,c=[]}for(f=0;f<s.length;f++)if(1===s[f])throw new Error("Sankey is a DAG, the original data has cycle!");var S=d>h-1?d:h-1;a&&"left"!==a&&MF(t,a,o,S);var O="vertical"===o?(i-n)/S:(r-n)/S;IF(t,O,o)}function AF(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return null!=e.depth&&e.depth>=0}function MF(t,e,n,r){if("right"===e){var i=[],o=t,a=0;while(o.length){for(var s=0;s<o.length;s++){var l=o[s];l.setLayout({skNodeHeight:a},!0);for(var u=0;u<l.inEdges.length;u++){var c=l.inEdges[u];i.indexOf(c.node1)<0&&i.push(c.node1)}}o=i,i=[],++a}v["each"](t,(function(t){AF(t)||t.setLayout({depth:Math.max(0,r-t.getLayout().skNodeHeight)},!0)}))}else"justify"===e&&TF(t,r)}function TF(t,e){v["each"](t,(function(t){AF(t)||t.outEdges.length||t.setLayout({depth:e},!0)}))}function IF(t,e,n){v["each"](t,(function(t){var r=t.getLayout().depth*e;"vertical"===n?t.setLayout({y:r},!0):t.setLayout({x:r},!0)}))}function EF(t,e,n,r,i,o,a){var s=PF(t,a);jF(s,e,n,r,i,a),LF(s,i,n,r,a);for(var l=1;o>0;o--)l*=.99,DF(s,l,a),LF(s,i,n,r,a),GF(s,l,a),LF(s,i,n,r,a)}function PF(t,e){var n=[],r="vertical"===e?"y":"x",i=io(t,(function(t){return t.getLayout()[r]}));return i.keys.sort((function(t,e){return t-e})),v["each"](i.keys,(function(t){n.push(i.buckets.get(t))})),n}function jF(t,e,n,r,i,o){var a=1/0;v["each"](t,(function(t){var e=t.length,s=0;v["each"](t,(function(t){s+=t.getLayout().value}));var l="vertical"===o?(r-(e-1)*i)/s:(n-(e-1)*i)/s;l<a&&(a=l)})),v["each"](t,(function(t){v["each"](t,(function(t,e){var n=t.getLayout().value*a;"vertical"===o?(t.setLayout({x:e},!0),t.setLayout({dx:n},!0)):(t.setLayout({y:e},!0),t.setLayout({dy:n},!0))}))})),v["each"](e,(function(t){var e=+t.getValue()*a;t.setLayout({dy:e},!0)}))}function LF(t,e,n,r,i){var o="vertical"===i?"x":"y";v["each"](t,(function(t){var a,s,l;t.sort((function(t,e){return t.getLayout()[o]-e.getLayout()[o]}));for(var u=0,c=t.length,h="vertical"===i?"dx":"dy",f=0;f<c;f++)s=t[f],l=u-s.getLayout()[o],l>0&&(a=s.getLayout()[o]+l,"vertical"===i?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]+s.getLayout()[h]+e;var d="vertical"===i?r:n;if(l=u-e-d,l>0){a=s.getLayout()[o]-l,"vertical"===i?s.setLayout({x:a},!0):s.setLayout({y:a},!0),u=a;for(f=c-2;f>=0;--f)s=t[f],l=s.getLayout()[o]+s.getLayout()[h]+e-u,l>0&&(a=s.getLayout()[o]-l,"vertical"===i?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]}}))}function DF(t,e,n){v["each"](t.slice().reverse(),(function(t){v["each"](t,(function(t){if(t.outEdges.length){var r=qF(t.outEdges,RF,n)/qF(t.outEdges,VF);if(isNaN(r)){var i=t.outEdges.length;r=i?qF(t.outEdges,NF,n)/i:0}if("vertical"===n){var o=t.getLayout().x+(r-zF(t,n))*e;t.setLayout({x:o},!0)}else{var a=t.getLayout().y+(r-zF(t,n))*e;t.setLayout({y:a},!0)}}}))}))}function RF(t,e){return zF(t.node2,e)*t.getValue()}function NF(t,e){return zF(t.node2,e)}function BF(t,e){return zF(t.node1,e)*t.getValue()}function FF(t,e){return zF(t.node1,e)}function zF(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function VF(t){return t.getValue()}function qF(t,e,n){var r=0,i=t.length,o=-1;while(++o<i){var a=+e(t[o],n);isNaN(a)||(r+=a)}return r}function GF(t,e,n){v["each"](t,(function(t){v["each"](t,(function(t){if(t.inEdges.length){var r=qF(t.inEdges,BF,n)/qF(t.inEdges,VF);if(isNaN(r)){var i=t.inEdges.length;r=i?qF(t.inEdges,FF,n)/i:0}if("vertical"===n){var o=t.getLayout().x+(r-zF(t,n))*e;t.setLayout({x:o},!0)}else{var a=t.getLayout().y+(r-zF(t,n))*e;t.setLayout({y:a},!0)}}}))}))}function HF(t,e){var n="vertical"===e?"x":"y";v["each"](t,(function(t){t.outEdges.sort((function(t,e){return t.node2.getLayout()[n]-e.node2.getLayout()[n]})),t.inEdges.sort((function(t,e){return t.node1.getLayout()[n]-e.node1.getLayout()[n]}))})),v["each"](t,(function(t){var e=0,n=0;v["each"](t.outEdges,(function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy})),v["each"](t.inEdges,(function(t){t.setLayout({ty:n},!0),n+=t.getLayout().dy}))}))}function WF(t){t.eachSeriesByType("sankey",(function(t){var e=t.getGraph(),n=e.nodes;if(n.length){var r=1/0,i=-1/0;v["each"](n,(function(t){var e=t.getLayout().value;e<r&&(r=e),e>i&&(i=e)})),v["each"](n,(function(e){var n=new UL({type:"color",mappingMethod:"linear",dataExtent:[r,i],visual:t.get("color")}),o=n.mapValueToVisual(e.getLayout().value),a=e.getModel().get(["itemStyle","color"]);null!=a?(e.setVisual("color",a),e.setVisual("style",{fill:a})):(e.setVisual("color",o),e.setVisual("style",{fill:o}))}))}}))}function UF(t){t.registerChartView(bF),t.registerSeriesModel(xF),t.registerLayout(wF),t.registerVisual(WF),t.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(t,e){e.eachComponent({mainType:"series",subType:"sankey",query:t},(function(e){e.setNodePosition(t.dataIndex,[t.localX,t.localY])}))}))}var $F=function(){function t(){}return t.prototype.getInitialData=function(t,e){var n,r,i=e.getComponent("xAxis",this.get("xAxisIndex")),o=e.getComponent("yAxis",this.get("yAxisIndex")),a=i.get("type"),s=o.get("type");"category"===a?(t.layout="horizontal",n=i.getOrdinalMeta(),r=!0):"category"===s?(t.layout="vertical",n=o.getOrdinalMeta(),r=!0):t.layout=t.layout||"horizontal";var l=["x","y"],u="horizontal"===t.layout?0:1,c=this._baseAxisDim=l[u],h=l[1-u],f=[i,o],d=f[u].get("type"),p=f[1-u].get("type"),g=t.data;if(g&&r){var y=[];v["each"](g,(function(t,e){var n;v["isArray"](t)?(n=t.slice(),t.unshift(e)):v["isArray"](t.value)?(n=v["extend"]({},t),n.value=n.value.slice(),t.value.unshift(e)):n=t,y.push(n)})),t.data=y}var m=this.defaultValueDimensions,b=[{name:c,type:wx(d),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:wx(p),dimsDef:m.slice()}];return eT(this,{coordDimensions:b,dimensionsCount:m.length+1,encodeDefaulter:v["curry"](Ph,b,this)})},t.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},t}(),YF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return p(e,t),e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(Hp);Object(v["mixin"])(YF,$F,!0);var XF=YF,KF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.render=function(t,e,n){var r=t.getData(),i=this.group,o=this._data;this._data||i.removeAll();var a="horizontal"===t.get("layout")?1:0;r.diff(o).add((function(t){if(r.hasValue(t)){var e=r.getItemLayout(t),n=JF(e,r,t,a,!0);r.setItemGraphicEl(t,n),i.add(n)}})).update((function(t,e){var n=o.getItemGraphicEl(e);if(r.hasValue(t)){var s=r.getItemLayout(t);n?(pu(n),tz(s,n,r,t)):n=JF(s,r,t,a),i.add(n),r.setItemGraphicEl(t,n)}else i.remove(n)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&i.remove(e)})).execute(),this._data=r},e.prototype.remove=function(t){var e=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(t){t&&e.remove(t)}))},e.type="boxplot",e}(dy),ZF=function(){function t(){}return t}(),QF=function(t){function e(e){var n=t.call(this,e)||this;return n.type="boxplotBoxPath",n}return p(e,t),e.prototype.getDefaultShape=function(){return new ZF},e.prototype.buildPath=function(t,e){var n=e.points,r=0;for(t.moveTo(n[r][0],n[r][1]),r++;r<4;r++)t.lineTo(n[r][0],n[r][1]);for(t.closePath();r<n.length;r++)t.moveTo(n[r][0],n[r][1]),r++,t.lineTo(n[r][0],n[r][1])},e}(ss);function JF(t,e,n,r,i){var o=t.ends,a=new QF({shape:{points:i?ez(o,r,t):o}});return tz(t,a,e,n,i),a}function tz(t,e,n,r,i){var o=n.hostModel,s=a[i?"initProps":"updateProps"];s(e,{shape:{points:t.ends}},o,r),e.useStyle(n.getItemVisual(r,"style")),e.style.strokeNoScale=!0,e.z2=100;var l=n.getItemModel(r),u=l.getModel("emphasis");Zl(e,l),$l(e,u.get("focus"),u.get("blurScope"),u.get("disabled"))}function ez(t,e,n){return v["map"](t,(function(t){return t=t.slice(),t[e]=n.initBaseline,t}))}var nz=KF;function rz(t,e){}var iz=v["each"];function oz(t){var e=az(t);iz(e,(function(t){var e=t.seriesModels;e.length&&(sz(t),iz(e,(function(e,n){lz(e,t.boxOffsetList[n],t.boxWidthList[n])})))}))}function az(t){var e=[],n=[];return t.eachSeriesByType("boxplot",(function(t){var r=t.getBaseAxis(),i=v["indexOf"](n,r);i<0&&(i=n.length,n[i]=r,e[i]={axis:r,seriesModels:[]}),e[i].seriesModels.push(t)})),e}function sz(t){var e,n=t.axis,r=t.seriesModels,i=r.length,o=t.boxWidthList=[],a=t.boxOffsetList=[],s=[];if("category"===n.type)e=n.getBandWidth();else{var l=0;iz(r,(function(t){l=Math.max(l,t.getData().count())}));var u=n.getExtent();e=Math.abs(u[1]-u[0])/l}iz(r,(function(t){var n=t.get("boxWidth");v["isArray"](n)||(n=[n,n]),s.push([Jr(n[0],e)||0,Jr(n[1],e)||0])}));var c=.8*e-2,h=c/i*.3,f=(c-h*(i-1))/i,d=f/2-c/2;iz(r,(function(t,e){a.push(d),d+=h+f,o.push(Math.min(Math.max(f,s[e][0]),s[e][1]))}))}function lz(t,e,n){var r=t.coordinateSystem,i=t.getData(),o=n/2,a="horizontal"===t.get("layout")?0:1,s=1-a,l=["x","y"],u=i.mapDimension(l[a]),c=i.mapDimensionsAll(l[s]);if(!(null==u||c.length<5))for(var h=0;h<i.count();h++){var f=i.get(u,h),d=b(f,c[2],h),p=b(f,c[0],h),g=b(f,c[1],h),v=b(f,c[3],h),y=b(f,c[4],h),m=[];_(m,g,!1),_(m,v,!0),m.push(p,g,y,v),x(m,p),x(m,y),x(m,d),i.setItemLayout(h,{initBaseline:d[s],ends:m})}function b(t,n,o){var l,u=i.get(n,o),c=[];return c[a]=t,c[s]=u,isNaN(t)||isNaN(u)?l=[NaN,NaN]:(l=r.dataToPoint(c),l[a]+=e),l}function _(t,e,n){var r=e.slice(),i=e.slice();r[a]+=o,i[a]-=o,n?t.push(r,i):t.push(i,r)}function x(t,e){var n=e.slice(),r=e.slice();n[a]-=o,r[a]+=o,t.push(n,r)}}function uz(t,e){e=e||{};for(var n=[],r=[],i=e.boundIQR,o="none"===i||0===i,a=0;a<t.length;a++){var s=ei(t[a].slice()),l=vi(s,.25),u=vi(s,.5),c=vi(s,.75),h=s[0],f=s[s.length-1],d=(null==i?1.5:i)*(c-l),p=o?h:Math.max(h,l-d),g=o?f:Math.min(f,c+d),y=e.itemNameFormatter,m=Object(v["isFunction"])(y)?y({value:a}):Object(v["isString"])(y)?y.replace("{value}",a+""):a+"";n.push([m,p,l,u,c,g]);for(var b=0;b<s.length;b++){var _=s[b];if(_<p||_>g){var x=[m,_];r.push(x)}}}return{boxData:n,outliers:r}}var cz={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==wh){var n="";0,Qh(n)}var r=uz(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:r.boxData},{data:r.outliers}]}};function hz(t){t.registerSeriesModel(XF),t.registerChartView(nz),t.registerVisual(rz),t.registerLayout(oz),t.registerTransform(cz)}var fz=["color","borderColor"],dz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.render=function(t,e,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,e,n){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,e,n,r){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,e):this._incrementalRenderNormal(t,e)},e.prototype.eachRendered=function(t){iy(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t){var e=t.getData(),n=this._data,r=this.group,i=e.getLayout("isSimpleBox"),o=t.get("clip",!0),a=t.coordinateSystem,s=a.getArea&&a.getArea();this._data||r.removeAll(),e.diff(n).add((function(n){if(e.hasValue(n)){var a=e.getItemLayout(n);if(o&&yz(s,a))return;var l=vz(a,n,!0);uu(l,{shape:{points:a.ends}},t,n),mz(l,e,n,i),r.add(l),e.setItemGraphicEl(n,l)}})).update((function(a,l){var u=n.getItemGraphicEl(l);if(e.hasValue(a)){var c=e.getItemLayout(a);o&&yz(s,c)?r.remove(u):(u?(lu(u,{shape:{points:c.ends}},t,a),pu(u)):u=vz(c,a),mz(u,e,a,i),r.add(u),e.setItemGraphicEl(a,u))}else r.remove(u)})).remove((function(t){var e=n.getItemGraphicEl(t);e&&r.remove(e)})).execute(),this._data=e},e.prototype._renderLarge=function(t){this._clear(),wz(t,this.group);var e=t.get("clip",!0)?IA(t.coordinateSystem,!1,t):null;e?this.group.setClipPath(e):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,e){var n,r=e.getData(),i=r.getLayout("isSimpleBox");while(null!=(n=t.next())){var o=r.getItemLayout(n),a=vz(o,n);mz(a,r,n,i),a.incremental=!0,this.group.add(a),this._progressiveEls.push(a)}},e.prototype._incrementalRenderLarge=function(t,e){wz(e,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(dy),pz=function(){function t(){}return t}(),gz=function(t){function e(e){var n=t.call(this,e)||this;return n.type="normalCandlestickBox",n}return p(e,t),e.prototype.getDefaultShape=function(){return new pz},e.prototype.buildPath=function(t,e){var n=e.points;this.__simpleBox?(t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1])):(t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1]))},e}(ss);function vz(t,e,n){var r=t.ends;return new gz({shape:{points:n?bz(r,t):r},z2:100})}function yz(t,e){for(var n=!0,r=0;r<e.ends.length;r++)if(t.contain(e.ends[r][0],e.ends[r][1])){n=!1;break}return n}function mz(t,e,n,r){var i=e.getItemModel(n);t.useStyle(e.getItemVisual(n,"style")),t.style.strokeNoScale=!0,t.__simpleBox=r,Zl(t,i)}function bz(t,e){return v["map"](t,(function(t){return t=t.slice(),t[1]=e.initBaseline,t}))}var _z=function(){function t(){}return t}(),xz=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeCandlestickBox",n}return p(e,t),e.prototype.getDefaultShape=function(){return new _z},e.prototype.buildPath=function(t,e){for(var n=e.points,r=0;r<n.length;)if(this.__sign===n[r++]){var i=n[r++];t.moveTo(i,n[r++]),t.lineTo(i,n[r++])}else r+=3},e}(ss);function wz(t,e,n,r){var i=t.getData(),o=i.getLayout("largePoints"),a=new xz({shape:{points:o},__sign:1,ignoreCoarsePointer:!0});e.add(a);var s=new xz({shape:{points:o},__sign:-1,ignoreCoarsePointer:!0});e.add(s),Sz(1,a,t,i),Sz(-1,s,t,i),r&&(a.incremental=!0,s.incremental=!0),n&&n.push(a,s)}function Sz(t,e,n,r){var i=n.get(["itemStyle",t>0?"borderColor":"borderColor0"])||n.get(["itemStyle",t>0?"color":"color0"]),o=n.getModel("itemStyle").getItemStyle(fz);e.useStyle(o),e.style.fill=null,e.style.stroke=i}var Oz=dz,Cz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return p(e,t),e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,e,n){var r=e.getItemLayout(t);return r&&n.rect(r.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(Hp);Object(v["mixin"])(Cz,$F,!0);var kz=Cz;function Az(t){t&&v["isArray"](t.series)&&v["each"](t.series,(function(t){v["isObject"](t)&&"k"===t.type&&(t.type="candlestick")}))}var Mz=["itemStyle","borderColor"],Tz=["itemStyle","borderColor0"],Iz=["itemStyle","color"],Ez=["itemStyle","color0"],Pz={seriesType:"candlestick",plan:$p(),performRawSeries:!0,reset:function(t,e){function n(t,e){return e.get(t>0?Iz:Ez)}function r(t,e){return e.get(t>0?Mz:Tz)}if(!e.isSeriesFiltered(t)){var i=t.pipelineContext.large;return!i&&{progress:function(t,e){var i;while(null!=(i=t.next())){var o=e.getItemModel(i),a=e.getItemLayout(i).sign,s=o.getItemStyle();s.fill=n(a,o),s.stroke=r(a,o)||s.fill;var l=e.ensureUniqueItemVisual(i,"style");Object(v["extend"])(l,s)}}}}}},jz=Pz,Lz={seriesType:"candlestick",plan:$p(),reset:function(t){var e=t.coordinateSystem,n=t.getData(),r=Rz(t,n),i=0,o=1,a=["x","y"],s=n.getDimensionIndex(n.mapDimension(a[i])),l=Object(v["map"])(n.mapDimensionsAll(a[o]),n.getDimensionIndex,n),u=l[0],c=l[1],h=l[2],f=l[3];if(n.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),!(s<0||l.length<4))return{progress:t.pipelineContext.large?p:d};function d(t,n){var a,l=n.getStore();while(null!=(a=t.next())){var d=l.get(s,a),p=l.get(u,a),g=l.get(c,a),v=l.get(h,a),y=l.get(f,a),m=Math.min(p,g),b=Math.max(p,g),_=C(m,d),x=C(b,d),w=C(v,d),S=C(y,d),O=[];k(O,x,0),k(O,_,1),O.push(M(S),M(x),M(w),M(_)),n.setItemLayout(a,{sign:Dz(l,a,p,g,c),initBaseline:p>g?x[o]:_[o],ends:O,brushRect:A(v,y,d)})}function C(t,n){var r=[];return r[i]=n,r[o]=t,isNaN(n)||isNaN(t)?[NaN,NaN]:e.dataToPoint(r)}function k(t,e,n){var o=e.slice(),a=e.slice();o[i]=qv(o[i]+r/2,1,!1),a[i]=qv(a[i]-r/2,1,!0),n?t.push(o,a):t.push(a,o)}function A(t,e,n){var a=C(t,n),s=C(e,n);return a[i]-=r/2,s[i]-=r/2,{x:a[0],y:a[1],width:o?r:s[0]-a[0],height:o?s[1]-a[1]:r}}function M(t){return t[i]=qv(t[i],1),t}}function p(t,n){var r,a,l=Rw(4*t.count),d=0,p=[],g=[],v=n.getStore();while(null!=(a=t.next())){var y=v.get(s,a),m=v.get(u,a),b=v.get(c,a),_=v.get(h,a),x=v.get(f,a);isNaN(y)||isNaN(_)||isNaN(x)?(l[d++]=NaN,d+=3):(l[d++]=Dz(v,a,m,b,c),p[i]=y,p[o]=_,r=e.dataToPoint(p,null,g),l[d++]=r?r[0]:NaN,l[d++]=r?r[1]:NaN,p[o]=x,r=e.dataToPoint(p,null,g),l[d++]=r?r[1]:NaN)}n.setLayout("largePoints",l)}}};function Dz(t,e,n,r,i){var o;return o=n>r?-1:n<r?1:e>0?t.get(i,e-1)<=r?1:-1:1,o}function Rz(t,e){var n,r=t.getBaseAxis(),i="category"===r.type?r.getBandWidth():(n=r.getExtent(),Math.abs(n[1]-n[0])/e.count()),o=Jr(Object(v["retrieve2"])(t.get("barMaxWidth"),i),i),a=Jr(Object(v["retrieve2"])(t.get("barMinWidth"),1),i),s=t.get("barWidth");return null!=s?Jr(s,i):Math.max(Math.min(i/2,o),a)}var Nz=Lz;function Bz(t){t.registerChartView(Oz),t.registerSeriesModel(kz),t.registerPreprocessor(Az),t.registerVisual(jz),t.registerLayout(Nz)}function Fz(t,e){var n=e.rippleEffectColor||e.color;t.eachChild((function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?n:null,fill:"fill"===e.brushType?n:null}})}))}var zz=function(t){function e(e,n){var r=t.call(this)||this,i=new uA(e,n),o=new Nr;return r.add(i),r.add(o),r.updateData(e,n),r}return p(e,t),e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var e=t.symbolType,n=t.color,r=t.rippleNumber,i=this.childAt(1),o=0;o<r;o++){var a=km(e,-1,-1,2,2,n);a.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var s=-o/r*t.period+t.effectOffset;a.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(s).start(),a.animateStyle(!0).when(t.period,{opacity:0}).delay(s).start(),i.add(a)}Fz(i,t)},e.prototype.updateEffectAnimation=function(t){for(var e=this._effectCfg,n=this.childAt(1),r=["symbolType","period","rippleScale","rippleNumber"],i=0;i<r.length;i++){var o=r[i];if(e[o]!==t[o])return this.stopEffectAnimation(),void this.startEffectAnimation(t)}Fz(n,t)},e.prototype.highlight=function(){Ml(this)},e.prototype.downplay=function(){Tl(this)},e.prototype.getSymbolType=function(){var t=this.childAt(0);return t&&t.getSymbolType()},e.prototype.updateData=function(t,e){var n=this,r=t.hostModel;this.childAt(0).updateData(t,e);var i=this.childAt(1),o=t.getItemModel(e),a=t.getItemVisual(e,"symbol"),s=Am(t.getItemVisual(e,"symbolSize")),l=t.getItemVisual(e,"style"),u=l&&l.fill,c=o.getModel("emphasis");i.setScale(s),i.traverse((function(t){t.setStyle("fill",u)}));var h=Mm(t.getItemVisual(e,"symbolOffset"),s);h&&(i.x=h[0],i.y=h[1]);var f=t.getItemVisual(e,"symbolRotate");i.rotation=(f||0)*Math.PI/180||0;var d={};d.showEffectOn=r.get("showEffectOn"),d.rippleScale=o.get(["rippleEffect","scale"]),d.brushType=o.get(["rippleEffect","brushType"]),d.period=1e3*o.get(["rippleEffect","period"]),d.effectOffset=e/t.count(),d.z=r.getShallow("z")||0,d.zlevel=r.getShallow("zlevel")||0,d.symbolType=a,d.color=u,d.rippleEffectColor=o.get(["rippleEffect","color"]),d.rippleNumber=o.get(["rippleEffect","number"]),"render"===d.showEffectOn?(this._effectCfg?this.updateEffectAnimation(d):this.startEffectAnimation(d),this._effectCfg=d):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(t){"emphasis"===t?"render"!==d.showEffectOn&&n.startEffectAnimation(d):"normal"===t&&"render"!==d.showEffectOn&&n.stopEffectAnimation()}),this._effectCfg=d,$l(this,c.get("focus"),c.get("blurScope"),c.get("disabled"))},e.prototype.fadeOut=function(t){t&&t()},e}(Nr),Vz=zz,qz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.init=function(){this._symbolDraw=new pA(Vz)},e.prototype.render=function(t,e,n){var r=t.getData(),i=this._symbolDraw;i.updateData(r,{clipShape:this._getClipShape(t)}),this.group.add(i.group)},e.prototype._getClipShape=function(t){var e=t.coordinateSystem,n=e&&e.getArea&&e.getArea();return t.get("clip",!0)?n:null},e.prototype.updateTransform=function(t,e,n){var r=t.getData();this.group.dirty();var i=ZA("").reset(t,e,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout()},e.prototype._updateGroupTransform=function(t){var e=t.coordinateSystem;e&&e.getRoamTransform&&(this.group.transform=It(e.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e}(dy),Gz=qz,Hz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return p(e,t),e.prototype.getInitialData=function(t,e){return dw(null,this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},e.type="series.effectScatter",e.dependencies=["grid","polar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},e}(Hp),Wz=Hz;function Uz(t){t.registerChartView(Gz),t.registerSeriesModel(Wz),t.registerLayout(ZA("effectScatter"))}var $z=function(t){function e(e,n,r){var i=t.call(this)||this;return i.add(i.createLine(e,n,r)),i._updateEffectSymbol(e,n),i}return p(e,t),e.prototype.createLine=function(t,e,n){return new pR(t,e,n)},e.prototype._updateEffectSymbol=function(t,e){var n=t.getItemModel(e),r=n.getModel("effect"),i=r.get("symbolSize"),o=r.get("symbol");v["isArray"](i)||(i=[i,i]);var a=t.getItemVisual(e,"style"),s=r.get("color")||a&&a.stroke,l=this.childAt(1);this._symbolType!==o&&(this.remove(l),l=km(o,-.5,-.5,1,1,s),l.z2=100,l.culling=!0,this.add(l)),l&&(l.setStyle("shadowColor",s),l.setStyle(r.getItemStyle(["color"])),l.scaleX=i[0],l.scaleY=i[1],l.setColor(s),this._symbolType=o,this._symbolScale=i,this._updateEffectAnimation(t,r,e))},e.prototype._updateEffectAnimation=function(t,e,n){var r=this.childAt(1);if(r){var i=t.getItemLayout(n),o=1e3*e.get("period"),a=e.get("loop"),s=e.get("roundTrip"),l=e.get("constantSpeed"),u=v["retrieve"](e.get("delay"),(function(e){return e/t.count()*o/3}));if(r.ignore=!0,this._updateAnimationPoints(r,i),l>0&&(o=this._getLineLength(r)/l*1e3),o!==this._period||a!==this._loop||s!==this._roundTrip){r.stopAnimation();var c=void 0;c=v["isFunction"](u)?u(n):u,r.__t>0&&(c=-o*r.__t),this._animateSymbol(r,o,c,a,s)}this._period=o,this._loop=a,this._roundTrip=s}},e.prototype._animateSymbol=function(t,e,n,r,i){if(e>0){t.__t=0;var o=this,a=t.animate("",r).when(i?2*e:e,{__t:i?2:1}).delay(n).during((function(){o._updateSymbolPosition(t)}));r||a.done((function(){o.remove(t)})),a.start()}},e.prototype._getLineLength=function(t){return L(t.__p1,t.__cp1)+L(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},e.prototype.updateData=function(t,e,n){this.childAt(0).updateData(t,e,n),this._updateEffectSymbol(t,e)},e.prototype._updateSymbolPosition=function(t){var e=t.__p1,n=t.__p2,r=t.__cp1,i=t.__t<1?t.__t:2-t.__t,o=[t.x,t.y],a=o.slice(),s=Ve,l=qe;o[0]=s(e[0],r[0],n[0],i),o[1]=s(e[1],r[1],n[1],i);var u=t.__t<1?l(e[0],r[0],n[0],i):l(n[0],r[0],e[0],1-i),c=t.__t<1?l(e[1],r[1],n[1],i):l(n[1],r[1],e[1],1-i);t.rotation=-Math.atan2(c,u)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==t.__lastT&&t.__lastT<t.__t?(t.scaleY=1.05*L(a,o),1===i&&(o[0]=a[0]+(o[0]-a[0])/2,o[1]=a[1]+(o[1]-a[1])/2)):1===t.__lastT?t.scaleY=2*L(e,o):t.scaleY=this._symbolScale[1]),t.__lastT=t.__t,t.ignore=!1,t.x=o[0],t.y=o[1]},e.prototype.updateLayout=function(t,e){this.childAt(0).updateLayout(t,e);var n=t.getItemModel(e).getModel("effect");this._updateEffectAnimation(t,n,e)},e}(Nr),Yz=$z,Xz=function(t){function e(e,n,r){var i=t.call(this)||this;return i._createPolyline(e,n,r),i}return p(e,t),e.prototype._createPolyline=function(t,e,n){var r=t.getItemLayout(e),i=new Zg({shape:{points:r}});this.add(i),this._updateCommonStl(t,e,n)},e.prototype.updateData=function(t,e,n){var r=t.hostModel,i=this.childAt(0),o={shape:{points:t.getItemLayout(e)}};lu(i,o,r,e),this._updateCommonStl(t,e,n)},e.prototype._updateCommonStl=function(t,e,n){var r=this.childAt(0),i=t.getItemModel(e),o=n&&n.emphasisLineStyle,a=n&&n.focus,s=n&&n.blurScope,l=n&&n.emphasisDisabled;if(!n||t.hasItemOption){var u=i.getModel("emphasis");o=u.getModel("lineStyle").getLineStyle(),l=u.get("disabled"),a=u.get("focus"),s=u.get("blurScope")}r.useStyle(t.getItemVisual(e,"style")),r.style.fill=null,r.style.strokeNoScale=!0;var c=r.ensureState("emphasis");c.style=o,$l(this,a,s,l)},e.prototype.updateLayout=function(t,e){var n=this.childAt(0);n.setShape("points",t.getItemLayout(e))},e}(Nr),Kz=Xz,Zz=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._lastFrame=0,e._lastFramePercent=0,e}return p(e,t),e.prototype.createLine=function(t,e,n){return new Kz(t,e,n)},e.prototype._updateAnimationPoints=function(t,e){this._points=e;for(var n=[0],r=0,i=1;i<e.length;i++){var o=e[i-1],a=e[i];r+=L(o,a),n.push(r)}if(0!==r){for(i=0;i<n.length;i++)n[i]/=r;this._offsets=n,this._length=r}else this._length=0},e.prototype._getLineLength=function(){return this._length},e.prototype._updateSymbolPosition=function(t){var e=t.__t<1?t.__t:2-t.__t,n=this._points,r=this._offsets,i=n.length;if(r){var o,a=this._lastFrame;if(e<this._lastFramePercent){var s=Math.min(a+1,i-1);for(o=s;o>=0;o--)if(r[o]<=e)break;o=Math.min(o,i-2)}else{for(o=a;o<i;o++)if(r[o]>e)break;o=Math.min(o-1,i-2)}var l=(e-r[o])/(r[o+1]-r[o]),u=n[o],c=n[o+1];t.x=u[0]*(1-l)+l*c[0],t.y=u[1]*(1-l)+l*c[1];var h=t.__t<1?c[0]-u[0]:u[0]-c[0],f=t.__t<1?c[1]-u[1]:u[1]-c[1];t.rotation=-Math.atan2(f,h)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=e,t.ignore=!1}},e}(Yz),Qz=Zz,Jz=function(){function t(){this.polyline=!1,this.curveness=0,this.segs=[]}return t}(),tV=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return p(e,t),e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Jz},e.prototype.buildPath=function(t,e){var n,r=e.segs,i=e.curveness;if(e.polyline)for(n=this._off;n<r.length;){var o=r[n++];if(o>0){t.moveTo(r[n++],r[n++]);for(var a=1;a<o;a++)t.lineTo(r[n++],r[n++])}}else for(n=this._off;n<r.length;){var s=r[n++],l=r[n++],u=r[n++],c=r[n++];if(t.moveTo(s,l),i>0){var h=(s+u)/2-(l-c)*i,f=(l+c)/2-(u-s)*i;t.quadraticCurveTo(h,f,u,c)}else t.lineTo(u,c)}this.incremental&&(this._off=n,this.notClear=!0)},e.prototype.findDataIndex=function(t,e){var n=this.shape,r=n.segs,i=n.curveness,o=this.style.lineWidth;if(n.polyline)for(var a=0,s=0;s<r.length;){var l=r[s++];if(l>0)for(var u=r[s++],c=r[s++],h=1;h<l;h++){var f=r[s++],d=r[s++];if(Ra(u,c,f,d,o,t,e))return a}a++}else for(a=0,s=0;s<r.length;){u=r[s++],c=r[s++],f=r[s++],d=r[s++];if(i>0){var p=(u+f)/2-(c-d)*i,g=(c+d)/2-(f-u)*i;if(Ba(u,c,p,g,f,d,o,t,e))return a}else if(Ra(u,c,f,d,o,t,e))return a;a++}return-1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect();if(t=n[0],e=n[1],r.contain(t,e)){var i=this.hoverDataIdx=this.findDataIndex(t,e);return i>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape,n=e.segs,r=1/0,i=1/0,o=-1/0,a=-1/0,s=0;s<n.length;){var l=n[s++],u=n[s++];r=Math.min(l,r),o=Math.max(l,o),i=Math.min(u,i),a=Math.max(u,a)}t=this._rect=new qt(r,i,o,a)}return t},e}(ss),eV=function(){function t(){this.group=new Nr}return t.prototype.updateData=function(t){this._clear();var e=this._create();e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t)},t.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},t.prototype.incrementalUpdate=function(t,e){var n=this._newAdded[0],r=e.getLayout("linesPoints"),i=n&&n.shape.segs;if(i&&i.length<2e4){var o=i.length,a=new Float32Array(o+r.length);a.set(i),a.set(r,o),n.setShape({segs:a})}else{this._newAdded=[];var s=this._create();s.incremental=!0,s.setShape({segs:r}),this._setCommon(s,e),s.__startIndex=t.start}},t.prototype.remove=function(){this._clear()},t.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},t.prototype._create=function(){var t=new tV({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(t),this.group.add(t),t},t.prototype._setCommon=function(t,e,n){var r=e.hostModel;t.setShape({polyline:r.get("polyline"),curveness:r.get(["lineStyle","curveness"])}),t.useStyle(r.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var i=e.getVisual("style");i&&i.stroke&&t.setStyle("stroke",i.stroke),t.setStyle("fill",null);var o=Gs(t);o.seriesIndex=r.seriesIndex,t.on("mousemove",(function(e){o.dataIndex=null;var n=t.hoverDataIdx;n>0&&(o.dataIndex=n+t.__startIndex)}))},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),nV=eV,rV={seriesType:"lines",plan:$p(),reset:function(t){var e=t.coordinateSystem;if(e){var n=t.get("polyline"),r=t.pipelineContext.large;return{progress:function(i,o){var a=[];if(r){var s=void 0,l=i.end-i.start;if(n){for(var u=0,c=i.start;c<i.end;c++)u+=t.getLineCoordsCount(c);s=new Float32Array(l+2*u)}else s=new Float32Array(4*l);var h=0,f=[];for(c=i.start;c<i.end;c++){var d=t.getLineCoords(c,a);n&&(s[h++]=d);for(var p=0;p<d;p++)f=e.dataToPoint(a[p],!1,f),s[h++]=f[0],s[h++]=f[1]}o.setLayout("linesPoints",s)}else for(c=i.start;c<i.end;c++){var g=o.getItemModel(c),v=(d=t.getLineCoords(c,a),[]);if(n)for(var y=0;y<d;y++)v.push(e.dataToPoint(a[y]));else{v[0]=e.dataToPoint(a[0]),v[1]=e.dataToPoint(a[1]);var m=g.get(["lineStyle","curveness"]);+m&&(v[2]=[(v[0][0]+v[1][0])/2-(v[0][1]-v[1][1])*m,(v[0][1]+v[1][1])/2-(v[1][0]-v[0][0])*m])}o.setItemLayout(c,v)}}}}}},iV=rV,oV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.render=function(t,e,n){var r=t.getData(),i=this._updateLineDraw(r,t),o=t.get("zlevel"),a=t.get(["effect","trailLength"]),s=n.getZr(),l="svg"===s.painter.getType();l||s.painter.getLayer(o).clear(!0),null==this._lastZlevel||l||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&a>0&&(l||s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),i.updateData(r);var u=t.get("clip",!0)&&IA(t.coordinateSystem,!1,t);u?this.group.setClipPath(u):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var r=t.getData(),i=this._updateLineDraw(r,t);i.incrementalPrepareUpdate(r),this._clearLayer(n),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._lineDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,e,n){var r=t.getData(),i=t.pipelineContext;if(!this._finished||i.large||i.progressiveRender)return{update:!0};var o=iV.reset(t,e,n);o.progress&&o.progress({start:0,end:r.count(),count:r.count()},r),this._lineDraw.updateLayout(),this._clearLayer(n)},e.prototype._updateLineDraw=function(t,e){var n=this._lineDraw,r=this._showEffect(e),i=!!e.get("polyline"),o=e.pipelineContext,a=o.large;return n&&r===this._hasEffet&&i===this._isPolyline&&a===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=a?new nV:new _R(i?r?Qz:Kz:r?Yz:pR),this._hasEffet=r,this._isPolyline=i,this._isLargeDraw=a),this.group.add(n.group),n},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var e=t.getZr(),n="svg"===e.painter.getType();n||null==this._lastZlevel||e.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},e.prototype.dispose=function(t,e){this.remove(t,e)},e.type="lines",e}(dy),aV=oV,sV="undefined"===typeof Uint32Array?Array:Uint32Array,lV="undefined"===typeof Float64Array?Array:Float64Array;function uV(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=Object(v["map"])(e,(function(t){var e=[t[0].coord,t[1].coord],n={coords:e};return t[0].name&&(n.fromName=t[0].name),t[1].name&&(n.toName=t[1].name),Object(v["mergeAll"])([n,t[0],t[1]])})))}var cV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return p(e,t),e.prototype.init=function(e){e.data=e.data||[],uV(e);var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count)),t.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(e){if(uV(e),e.data){var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count))}t.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var e=this._processFlatCoordsArray(t.data);e.flatCoords&&(this._flatCoords?(this._flatCoords=Object(v["concatArray"])(this._flatCoords,e.flatCoords),this._flatCoordsOffset=Object(v["concatArray"])(this._flatCoordsOffset,e.flatCoordsOffset)):(this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset),t.data=new Float32Array(e.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var e=this.getData().getItemModel(t),n=e.option instanceof Array?e.option:e.getShallow("coords");return n},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,e){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*t],r=this._flatCoordsOffset[2*t+1],i=0;i<r;i++)e[i]=e[i]||[],e[i][0]=this._flatCoords[n+2*i],e[i][1]=this._flatCoords[n+2*i+1];return r}var o=this._getCoordsFromItemModel(t);for(i=0;i<o.length;i++)e[i]=e[i]||[],e[i][0]=o[i][0],e[i][1]=o[i][1];return o.length},e.prototype._processFlatCoordsArray=function(t){var e=0;if(this._flatCoords&&(e=this._flatCoords.length),Object(v["isNumber"])(t[0])){for(var n=t.length,r=new sV(n),i=new lV(n),o=0,a=0,s=0,l=0;l<n;){s++;var u=t[l++];r[a++]=o+e,r[a++]=u;for(var c=0;c<u;c++){var h=t[l++],f=t[l++];i[o++]=h,i[o++]=f}}return{flatCoordsOffset:new Uint32Array(r.buffer,0,a),flatCoords:i,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},e.prototype.getInitialData=function(t,e){var n=new Yx(["value"],this);return n.hasItemOption=!1,n.initData(t.data,[],(function(t,e,r,i){if(t instanceof Array)return NaN;n.hasItemOption=!0;var o=t.value;return null!=o?o instanceof Array?o[i]:o:void 0})),n},e.prototype.formatTooltip=function(t,e,n){var r=this.getData(),i=r.getItemModel(t),o=i.get("name");if(o)return o;var a=i.get("fromName"),s=i.get("toName"),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),pp("nameValue",{name:l.join(" > ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),e=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&e>0?e+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!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}},e}(Hp),hV=cV;function fV(t){return t instanceof Array||(t=[t,t]),t}var dV={seriesType:"lines",reset:function(t){var e=fV(t.get("symbol")),n=fV(t.get("symbolSize")),r=t.getData();function i(t,e){var n=t.getItemModel(e),r=fV(n.getShallow("symbol",!0)),i=fV(n.getShallow("symbolSize",!0));r[0]&&t.setItemVisual(e,"fromSymbol",r[0]),r[1]&&t.setItemVisual(e,"toSymbol",r[1]),i[0]&&t.setItemVisual(e,"fromSymbolSize",i[0]),i[1]&&t.setItemVisual(e,"toSymbolSize",i[1])}return r.setVisual("fromSymbol",e&&e[0]),r.setVisual("toSymbol",e&&e[1]),r.setVisual("fromSymbolSize",n&&n[0]),r.setVisual("toSymbolSize",n&&n[1]),{dataEach:r.hasItemOption?i:null}}},pV=dV;function gV(t){t.registerChartView(aV),t.registerSeriesModel(hV),t.registerLayout(iV),t.registerVisual(pV)}var vV=256,yV=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=fr["d"].createCanvas();this.canvas=t}return t.prototype.update=function(t,e,n,r,i,o){var a=this._getBrush(),s=this._getGradient(i,"inRange"),l=this._getGradient(i,"outOfRange"),u=this.pointSize+this.blurSize,c=this.canvas,h=c.getContext("2d"),f=t.length;c.width=e,c.height=n;for(var d=0;d<f;++d){var p=t[d],g=p[0],v=p[1],y=p[2],m=r(y);h.globalAlpha=m,h.drawImage(a,g-u,v-u)}if(!c.width||!c.height)return c;var b=h.getImageData(0,0,c.width,c.height),_=b.data,x=0,w=_.length,S=this.minOpacity,O=this.maxOpacity,C=O-S;while(x<w){m=_[x+3]/256;var k=4*Math.floor(m*(vV-1));if(m>0){var A=o(m)?s:l;m>0&&(m=m*C+S),_[x++]=A[k],_[x++]=A[k+1],_[x++]=A[k+2],_[x++]=A[k+3]*m*256}else x+=4}return h.putImageData(b,0,0),c},t.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=fr["d"].createCanvas()),e=this.pointSize+this.blurSize,n=2*e;t.width=n,t.height=n;var r=t.getContext("2d");return r.clearRect(0,0,n,n),r.shadowOffsetX=n,r.shadowBlur=this.blurSize,r.shadowColor="#000",r.beginPath(),r.arc(-e,e,this.pointSize,0,2*Math.PI,!0),r.closePath(),r.fill(),t},t.prototype._getGradient=function(t,e){for(var n=this._gradientPixels,r=n[e]||(n[e]=new Uint8ClampedArray(1024)),i=[0,0,0,0],o=0,a=0;a<256;a++)t[e](a/255,!0,i),r[o++]=i[0],r[o++]=i[1],r[o++]=i[2],r[o++]=i[3];return r},t}(),mV=yV;function bV(t,e,n){var r=t[1]-t[0];e=v["map"](e,(function(e){return{interval:[(e.interval[0]-t[0])/r,(e.interval[1]-t[0])/r]}}));var i=e.length,o=0;return function(t){var r;for(r=o;r<i;r++){var a=e[r].interval;if(a[0]<=t&&t<=a[1]){o=r;break}}if(r===i)for(r=o-1;r>=0;r--){a=e[r].interval;if(a[0]<=t&&t<=a[1]){o=r;break}}return r>=0&&r<i&&n[r]}}function _V(t,e){var n=t[1]-t[0];return e=[(e[0]-t[0])/n,(e[1]-t[0])/n],function(t){return t>=e[0]&&t<=e[1]}}function xV(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}var wV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.render=function(t,e,n){var r;e.eachComponent("visualMap",(function(e){e.eachTargetSeries((function(n){n===t&&(r=e)}))})),this._progressiveEls=null,this.group.removeAll();var i=t.coordinateSystem;"cartesian2d"===i.type||"calendar"===i.type?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):xV(i)&&this._renderOnGeo(i,t,r,n)},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll()},e.prototype.incrementalRender=function(t,e,n,r){var i=e.coordinateSystem;i&&(xV(i)?this.render(e,n,r):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(e,r,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){iy(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,e,n,r,i){var o,a,s,l,u=t.coordinateSystem,c=EA(u,"cartesian2d");if(c){var h=u.getAxis("x"),f=u.getAxis("y");0,o=h.getBandWidth()+.5,a=f.getBandWidth()+.5,s=h.scale.getExtent(),l=f.scale.getExtent()}for(var d=this.group,p=t.getData(),g=t.getModel(["emphasis","itemStyle"]).getItemStyle(),v=t.getModel(["blur","itemStyle"]).getItemStyle(),y=t.getModel(["select","itemStyle"]).getItemStyle(),m=t.get(["itemStyle","borderRadius"]),b=_u(t),_=t.getModel("emphasis"),x=_.get("focus"),w=_.get("blurScope"),S=_.get("disabled"),O=c?[p.mapDimension("x"),p.mapDimension("y"),p.mapDimension("value")]:[p.mapDimension("time"),p.mapDimension("value")],C=n;C<r;C++){var k=void 0,A=p.getItemVisual(C,"style");if(c){var M=p.get(O[0],C),T=p.get(O[1],C);if(isNaN(p.get(O[2],C))||M<s[0]||M>s[1]||T<l[0]||T>l[1])continue;var I=u.dataToPoint([M,T]);k=new Os({shape:{x:I[0]-o/2,y:I[1]-a/2,width:o,height:a},style:A})}else{if(isNaN(p.get(O[1],C)))continue;k=new Os({z2:1,shape:u.dataToRect([p.get(O[0],C)]).contentShape,style:A})}if(p.hasItemOption){var E=p.getItemModel(C),P=E.getModel("emphasis");g=P.getModel("itemStyle").getItemStyle(),v=E.getModel(["blur","itemStyle"]).getItemStyle(),y=E.getModel(["select","itemStyle"]).getItemStyle(),m=E.get(["itemStyle","borderRadius"]),x=P.get("focus"),w=P.get("blurScope"),S=P.get("disabled"),b=_u(E)}k.shape.r=m;var j=t.getRawValue(C),L="-";j&&null!=j[2]&&(L=j[2]+""),bu(k,b,{labelFetcher:t,labelDataIndex:C,defaultOpacity:A.opacity,defaultText:L}),k.ensureState("emphasis").style=g,k.ensureState("blur").style=v,k.ensureState("select").style=y,$l(k,x,w,S),k.incremental=i,i&&(k.states.emphasis.hoverLayer=!0),d.add(k),p.setItemGraphicEl(C,k),this._progressiveEls&&this._progressiveEls.push(k)}},e.prototype._renderOnGeo=function(t,e,n,r){var i=n.targetVisuals.inRange,o=n.targetVisuals.outOfRange,a=e.getData(),s=this._hmLayer||this._hmLayer||new mV;s.blurSize=e.get("blurSize"),s.pointSize=e.get("pointSize"),s.minOpacity=e.get("minOpacity"),s.maxOpacity=e.get("maxOpacity");var l=t.getViewRect().clone(),u=t.getRoamTransform();l.applyTransform(u);var c=Math.max(l.x,0),h=Math.max(l.y,0),f=Math.min(l.width+l.x,r.getWidth()),d=Math.min(l.height+l.y,r.getHeight()),p=f-c,g=d-h,v=[a.mapDimension("lng"),a.mapDimension("lat"),a.mapDimension("value")],y=a.mapArray(v,(function(e,n,r){var i=t.dataToPoint([e,n]);return i[0]-=c,i[1]-=h,i.push(r),i})),m=n.getExtent(),b="visualMap.continuous"===n.type?_V(m,n.option.range):bV(m,n.getPieceList(),n.option.selected);s.update(y,p,g,i.color.getNormalizer(),{inRange:i.color.getColorMapper(),outOfRange:o.color.getColorMapper()},b);var _=new gs({style:{width:p,height:g,x:c,y:h,image:s.canvas},silent:!0});this.group.add(_)},e.type="heatmap",e}(dy),SV=wV,OV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.getInitialData=function(t,e){return dw(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=pf.get(this.get("coordinateSystem"));if(t&&t.dimensions)return"lng"===t.dimensions[0]&&"lat"===t.dimensions[1]},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(Hp),CV=OV;function kV(t){t.registerChartView(SV),t.registerSeriesModel(CV)}var AV=["itemStyle","borderWidth"],MV=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],TV=new bg,IV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.render=function(t,e,n){var r=this.group,i=t.getData(),o=this._data,a=t.coordinateSystem,s=a.getBaseAxis(),l=s.isHorizontal(),u=a.master.getRect(),c={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:a,coordSysExtent:[[u.x,u.x+u.width],[u.y,u.y+u.height]],isHorizontal:l,valueDim:MV[+l],categoryDim:MV[1-+l]};return i.diff(o).add((function(t){if(i.hasValue(t)){var e=qV(i,t),n=EV(i,t,e,c),o=WV(i,c,n);i.setItemGraphicEl(t,o),r.add(o),ZV(o,c,n)}})).update((function(t,e){var n=o.getItemGraphicEl(e);if(i.hasValue(t)){var a=qV(i,t),s=EV(i,t,a,c),l=YV(i,s);n&&l!==n.__pictorialShapeStr&&(r.remove(n),i.setItemGraphicEl(t,null),n=null),n?UV(n,c,s):n=WV(i,c,s,!0),i.setItemGraphicEl(t,n),n.__pictorialSymbolMeta=s,r.add(n),ZV(n,c,s)}else r.remove(n)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&$V(o,t,e.__pictorialSymbolMeta.animationModel,e)})).execute(),this._data=i,this.group},e.prototype.remove=function(t,e){var n=this.group,r=this._data;t.get("animation")?r&&r.eachItemGraphicEl((function(e){$V(r,Gs(e).dataIndex,t,e)})):n.removeAll()},e.type="pictorialBar",e}(dy);function EV(t,e,n,r){var i=t.getItemLayout(e),o=n.get("symbolRepeat"),a=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=n.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=n.get("symbolPatternSize")||2,h=n.isAnimationEnabled(),f={dataIndex:e,layout:i,itemModel:n,symbolType:t.getItemVisual(e,"symbol")||"circle",style:t.getItemVisual(e,"style"),symbolClip:a,symbolRepeat:o,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:h?n:null,hoverScale:h&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};PV(n,o,i,r,f),LV(t,e,i,o,a,f.boundingLength,f.pxSign,c,r,f),DV(n,f.symbolScale,u,r,f);var d=f.symbolSize,p=Mm(n.get("symbolOffset"),d);return RV(n,d,i,o,a,p,s,f.valueLineWidth,f.boundingLength,f.repeatCutLength,r,f),f}function PV(t,e,n,r,i){var o,a=r.valueDim,s=t.get("symbolBoundingData"),l=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),u=l.toGlobalCoord(l.dataToCoord(0)),c=1-+(n[a.wh]<=0);if(v["isArray"](s)){var h=[jV(l,s[0])-u,jV(l,s[1])-u];h[1]<h[0]&&h.reverse(),o=h[c]}else o=null!=s?jV(l,s)-u:e?r.coordSysExtent[a.index][c]-u:n[a.wh];i.boundingLength=o,e&&(i.repeatCutLength=n[a.wh]),i.pxSign=o>0?1:-1}function jV(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function LV(t,e,n,r,i,o,a,s,l,u){var c,h=l.valueDim,f=l.categoryDim,d=Math.abs(n[f.wh]),p=t.getItemVisual(e,"symbolSize");c=v["isArray"](p)?p.slice():null==p?["100%","100%"]:[p,p],c[f.index]=Jr(c[f.index],d),c[h.index]=Jr(c[h.index],r?d:Math.abs(o)),u.symbolSize=c;var g=u.symbolScale=[c[0]/s,c[1]/s];g[h.index]*=(l.isHorizontal?-1:1)*a}function DV(t,e,n,r,i){var o=t.get(AV)||0;o&&(TV.attr({scaleX:e[0],scaleY:e[1],rotation:n}),TV.updateTransform(),o/=TV.getLineScale(),o*=e[r.valueDim.index]),i.valueLineWidth=o||0}function RV(t,e,n,r,i,o,a,s,l,u,c,h){var f=c.categoryDim,d=c.valueDim,p=h.pxSign,g=Math.max(e[d.index]+s,0),y=g;if(r){var m=Math.abs(l),b=v["retrieve"](t.get("symbolMargin"),"15%")+"",_=!1;b.lastIndexOf("!")===b.length-1&&(_=!0,b=b.slice(0,b.length-1));var x=Jr(b,e[d.index]),w=Math.max(g+2*x,0),S=_?0:2*x,O=bi(r),C=O?r:QV((m+S)/w),k=m-C*g;x=k/2/(_?C:Math.max(C-1,1)),w=g+2*x,S=_?0:2*x,O||"fixed"===r||(C=u?QV((Math.abs(u)+S)/w):0),y=C*w-S,h.repeatTimes=C,h.symbolMargin=x}var A=p*(y/2),M=h.pathPosition=[];M[f.index]=n[f.wh]/2,M[d.index]="start"===a?A:"end"===a?l-A:l/2,o&&(M[0]+=o[0],M[1]+=o[1]);var T=h.bundlePosition=[];T[f.index]=n[f.xy],T[d.index]=n[d.xy];var I=h.barRectShape=v["extend"]({},n);I[d.wh]=p*Math.max(Math.abs(n[d.wh]),Math.abs(M[d.index]+A)),I[f.wh]=n[f.wh];var E=h.clipShape={};E[f.xy]=-n[f.xy],E[f.wh]=c.ecSize[f.wh],E[d.xy]=0,E[d.wh]=n[d.wh]}function NV(t){var e=t.symbolPatternSize,n=km(t.symbolType,-e/2,-e/2,e,e);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function BV(t,e,n,r){var i=t.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=e.valueDim,u=n.repeatTimes||0,c=0,h=o[e.valueDim.index]+a+2*n.symbolMargin;for(XV(t,(function(t){t.__pictorialAnimationIndex=c,t.__pictorialRepeatTimes=u,c<u?KV(t,null,p(c),n,r):KV(t,null,{scaleX:0,scaleY:0},n,r,(function(){i.remove(t)})),c++}));c<u;c++){var f=NV(n);f.__pictorialAnimationIndex=c,f.__pictorialRepeatTimes=u,i.add(f);var d=p(c);KV(f,{x:d.x,y:d.y,scaleX:0,scaleY:0},{scaleX:d.scaleX,scaleY:d.scaleY,rotation:d.rotation},n,r)}function p(t){var e=s.slice(),r=n.pxSign,i=t;return("start"===n.symbolRepeatDirection?r>0:r<0)&&(i=u-1-t),e[l.index]=h*(i-u/2+.5)+s[l.index],{x:e[0],y:e[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function FV(t,e,n,r){var i=t.__pictorialBundle,o=t.__pictorialMainPath;o?KV(o,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,r):(o=t.__pictorialMainPath=NV(n),i.add(o),KV(o,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,r))}function zV(t,e,n){var r=v["extend"]({},e.barRectShape),i=t.__pictorialBarRect;i?KV(i,null,{shape:r},e,n):(i=t.__pictorialBarRect=new Os({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,t.add(i))}function VV(t,e,n,r){if(n.symbolClip){var i=t.__pictorialClipPath,o=v["extend"]({},n.clipShape),s=e.valueDim,l=n.animationModel,u=n.dataIndex;if(i)lu(i,{shape:o},l,u);else{o[s.wh]=0,i=new Os({shape:o}),t.__pictorialBundle.setClipPath(i),t.__pictorialClipPath=i;var c={};c[s.wh]=n.clipShape[s.wh],a[r?"updateProps":"initProps"](i,{shape:c},l,u)}}}function qV(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=GV,n.isAnimationEnabled=HV,n}function GV(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function HV(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function WV(t,e,n,r){var i=new Nr,o=new Nr;return i.add(o),i.__pictorialBundle=o,o.x=n.bundlePosition[0],o.y=n.bundlePosition[1],n.symbolRepeat?BV(i,e,n):FV(i,e,n),zV(i,n,r),VV(i,e,n,r),i.__pictorialShapeStr=YV(t,n),i.__pictorialSymbolMeta=n,i}function UV(t,e,n){var r=n.animationModel,i=n.dataIndex,o=t.__pictorialBundle;lu(o,{x:n.bundlePosition[0],y:n.bundlePosition[1]},r,i),n.symbolRepeat?BV(t,e,n,!0):FV(t,e,n,!0),zV(t,n,!0),VV(t,e,n,!0)}function $V(t,e,n,r){var i=r.__pictorialBarRect;i&&i.removeTextContent();var o=[];XV(r,(function(t){o.push(t)})),r.__pictorialMainPath&&o.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),v["each"](o,(function(t){hu(t,{scaleX:0,scaleY:0},n,e,(function(){r.parent&&r.parent.remove(r)}))})),t.setItemGraphicEl(e,null)}function YV(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function XV(t,e,n){v["each"](t.__pictorialBundle.children(),(function(r){r!==t.__pictorialBarRect&&e.call(n,r)}))}function KV(t,e,n,r,i,o){e&&t.attr(e),r.symbolClip&&!i?n&&t.attr(n):n&&a[i?"updateProps":"initProps"](t,n,r.animationModel,r.dataIndex,o)}function ZV(t,e,n){var r=n.dataIndex,i=n.itemModel,o=i.getModel("emphasis"),a=o.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=i.getModel(["select","itemStyle"]).getItemStyle(),u=i.getShallow("cursor"),c=o.get("focus"),h=o.get("blurScope"),f=o.get("scale");XV(t,(function(t){if(t instanceof gs){var e=t.style;t.useStyle(v["extend"]({image:e.image,x:e.x,y:e.y,width:e.width,height:e.height},n.style))}else t.useStyle(n.style);var r=t.ensureState("emphasis");r.style=a,f&&(r.scaleX=1.1*t.scaleX,r.scaleY=1.1*t.scaleY),t.ensureState("blur").style=s,t.ensureState("select").style=l,u&&(t.cursor=u),t.z2=n.z2}));var d=e.valueDim.posDesc[+(n.boundingLength>0)],p=t.__pictorialBarRect;bu(p,_u(i),{labelFetcher:e.seriesModel,labelDataIndex:r,defaultText:oA(e.seriesModel.getData(),r),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:d}),$l(t,c,h,o.get("disabled"))}function QV(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}var JV=IV,tq=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return p(e,t),e.prototype.getInitialData=function(e){return e.stack=null,t.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=Ku(rM.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,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(rM),eq=tq;function nq(t){t.registerChartView(JV),t.registerSeriesModel(eq),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,Object(v["curry"])(Uw,"pictorialBar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,$w("pictorialBar"))}var rq=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._layers=[],n}return p(e,t),e.prototype.render=function(t,e,n){var r=t.getData(),i=this,o=this.group,a=t.getLayerSeries(),s=r.getLayout("layoutInfo"),l=s.rect,u=s.boundaryGap;function c(t){return t.name}o.x=0,o.y=l.y+u[0];var h=new mx(this._layersSeries||[],a,c,c),f=[];function d(e,n,s){var l=i._layers;if("remove"!==e){for(var u,c,h=[],d=[],p=a[n].indices,g=0;g<p.length;g++){var v=r.getItemLayout(p[g]),y=v.x,m=v.y0,b=v.y;h.push(y,m),d.push(y,m+b),u=r.getItemVisual(p[g],"style")}var _=r.getItemLayout(p[0]),x=t.getModel("label"),w=x.get("margin"),S=t.getModel("emphasis");if("add"===e){var O=f[n]=new Nr;c=new AA({shape:{points:h,stackedOnPoints:d,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),O.add(c),o.add(O),t.isAnimationEnabled()&&c.setClipPath(iq(c.getBoundingRect(),t,(function(){c.removeClipPath()})))}else{O=l[s];c=O.childAt(0),o.add(O),f[n]=O,lu(c,{shape:{points:h,stackedOnPoints:d}},t),pu(c)}bu(c,_u(t),{labelDataIndex:p[g-1],defaultText:r.getName(p[g-1]),inheritColor:u.fill},{normal:{verticalAlign:"middle"}}),c.setTextConfig({position:null,local:!0});var C=c.getTextContent();C&&(C.x=_.x-w,C.y=_.y0+_.y/2),c.useStyle(u),r.setItemGraphicEl(n,c),Zl(c,t),$l(c,S.get("focus"),S.get("blurScope"),S.get("disabled"))}else o.remove(l[n])}h.add(Object(v["bind"])(d,this,"add")).update(Object(v["bind"])(d,this,"update")).remove(Object(v["bind"])(d,this,"remove")).execute(),this._layersSeries=a,this._layers=f},e.type="themeRiver",e}(dy);function iq(t,e,n){var r=new Os({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return uu(r,{shape:{x:t.x-50,width:t.width+100,height:t.height+20}},e,n),r}var oq=rq,aq=2,sq=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new rT(v["bind"](this.getData,this),v["bind"](this.getRawData,this))},e.prototype.fixData=function(t){var e=t.length,n={},r=io(t,(function(t){return n.hasOwnProperty(t[0]+"")||(n[t[0]+""]=-1),t[2]})),i=[];r.buckets.each((function(t,e){i.push({name:e,dataList:t})}));for(var o=i.length,a=0;a<o;++a){for(var s=i[a].name,l=0;l<i[a].dataList.length;++l){var u=i[a].dataList[l][0]+"";n[u]=a}for(var u in n)n.hasOwnProperty(u)&&n[u]!==a&&(n[u]=a,t[e]=[u,0,s],e++)}return t},e.prototype.getInitialData=function(t,e){for(var n=this.getReferringComponents("singleAxis",Qi).models[0],r=n.get("type"),i=v["filter"](t.data,(function(t){return void 0!==t[2]})),o=this.fixData(i||[]),a=[],s=this.nameMap=v["createHashMap"](),l=0,u=0;u<o.length;++u)a.push(o[u][aq]),s.get(o[u][aq])||(s.set(o[u][aq],l),l++);var c=Kx(o,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:wx(r)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,h=new Yx(c,this);return h.initData(o),h},e.prototype.getLayerSeries=function(){for(var t=this.getData(),e=t.count(),n=[],r=0;r<e;++r)n[r]=r;var i=t.mapDimension("single"),o=io(n,(function(e){return t.get("name",e)})),a=[];return o.buckets.each((function(e,n){e.sort((function(e,n){return t.get(i,e)-t.get(i,n)})),a.push({name:n,indices:e})})),a},e.prototype.getAxisTooltipData=function(t,e,n){v["isArray"](t)||(t=t?[t]:[]);for(var r,i=this.getData(),o=this.getLayerSeries(),a=[],s=o.length,l=0;l<s;++l){for(var u=Number.MAX_VALUE,c=-1,h=o[l].indices.length,f=0;f<h;++f){var d=i.get(t[0],o[l].indices[f]),p=Math.abs(d-e);p<=u&&(r=d,u=p,c=o[l].indices[f])}a.push(c)}return{dataIndices:a,nestestValue:r}},e.prototype.formatTooltip=function(t,e,n){var r=this.getData(),i=r.getName(t),o=r.get(r.mapDimension("value"),t);return pp("nameValue",{name:i,value:o})},e.type="series.themeRiver",e.dependencies=["singleAxis"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},e}(Hp),lq=sq;function uq(t,e){t.eachSeriesByType("themeRiver",(function(t){var e=t.getData(),n=t.coordinateSystem,r={},i=n.getRect();r.rect=i;var o=t.get("boundaryGap"),a=n.getAxis();if(r.boundaryGap=o,"horizontal"===a.orient){o[0]=Jr(o[0],i.height),o[1]=Jr(o[1],i.height);var s=i.height-o[0]-o[1];cq(e,t,s)}else{o[0]=Jr(o[0],i.width),o[1]=Jr(o[1],i.width);var l=i.width-o[0]-o[1];cq(e,t,l)}e.setLayout("layoutInfo",r)}))}function cq(t,e,n){if(t.count())for(var r,i=e.coordinateSystem,o=e.getLayerSeries(),a=t.mapDimension("single"),s=t.mapDimension("value"),l=v["map"](o,(function(e){return v["map"](e.indices,(function(e){var n=i.dataToPoint(t.get(a,e));return n[1]=t.get(s,e),n}))})),u=hq(l),c=u.y0,h=n/u.max,f=o.length,d=o[0].indices.length,p=0;p<d;++p){r=c[p]*h,t.setItemLayout(o[0].indices[p],{layerIndex:0,x:l[0][p][0],y0:r,y:l[0][p][1]*h});for(var g=1;g<f;++g)r+=l[g-1][p][1]*h,t.setItemLayout(o[g].indices[p],{layerIndex:g,x:l[g][p][0],y0:r,y:l[g][p][1]*h})}}function hq(t){for(var e=t.length,n=t[0].length,r=[],i=[],o=0,a=0;a<n;++a){for(var s=0,l=0;l<e;++l)s+=t[l][a][1];s>o&&(o=s),r.push(s)}for(var u=0;u<n;++u)i[u]=(o-r[u])/2;o=0;for(var c=0;c<n;++c){var h=r[c]+i[c];h>o&&(o=h)}return{y0:i,max:o}}function fq(t){t.registerChartView(oq),t.registerSeriesModel(lq),t.registerLayout(uq),t.registerProcessor(HM("themeRiver"))}var dq=2,pq=4,gq=function(t){function e(e,n,r,i){var o=t.call(this)||this;o.z2=dq,o.textConfig={inside:!0},Gs(o).seriesIndex=n.seriesIndex;var a=new qs({z2:pq,silent:e.getModel().get(["label","silent"])});return o.setTextContent(a),o.updateData(!0,e,n,r,i),o}return p(e,t),e.prototype.updateData=function(t,e,n,r,i){this.node=e,e.piece=this,n=n||this._seriesModel,r=r||this._ecModel;var o=this;Gs(o).dataIndex=e.dataIndex;var a=e.getModel(),s=a.getModel("emphasis"),l=e.getLayout(),u=v["extend"]({},l);u.label=null;var c=e.getVisual("style");c.lineJoin="bevel";var h=e.getVisual("decal");h&&(c.decal=gb(h,i));var f=ZM(a.getModel("itemStyle"),u,!0);v["extend"](u,f),v["each"](Qs,(function(t){var e=o.ensureState(t),n=a.getModel([t,"itemStyle"]);e.style=n.getItemStyle();var r=ZM(n,u);r&&(e.shape=r)})),t?(o.setShape(u),o.shape.r=l.r0,lu(o,{shape:{r:l.r}},n,e.dataIndex)):(lu(o,{shape:u},n),pu(o)),o.useStyle(c),this._updateLabel(n);var d=a.getShallow("cursor");d&&o.attr("cursor",d),this._seriesModel=n||this._seriesModel,this._ecModel=r||this._ecModel;var p=s.get("focus"),g="ancestor"===p?e.getAncestorsIndices():"descendant"===p?e.getDescendantIndices():p;$l(this,g,s.get("blurScope"),s.get("disabled"))},e.prototype._updateLabel=function(t){var e=this,n=this.node.getModel(),r=n.getModel("label"),i=this.node.getLayout(),o=i.endAngle-i.startAngle,a=(i.startAngle+i.endAngle)/2,s=Math.cos(a),l=Math.sin(a),u=this,c=u.getTextContent(),h=this.node.dataIndex,f=r.get("minAngle")/180*Math.PI,d=r.get("show")&&!(null!=f&&Math.abs(o)<f);function p(t,e){var n=t.get(e);return null==n?r.get(e):n}c.ignore=!d,v["each"](Js,(function(r){var f="normal"===r?n.getModel("label"):n.getModel([r,"label"]),d="normal"===r,g=d?c:c.ensureState(r),y=t.getFormattedLabel(h,r);d&&(y=y||e.node.name),g.style=xu(f,{},null,"normal"!==r,!0),y&&(g.style.text=y);var m=f.get("show");null==m||d||(g.ignore=!m);var b,_=p(f,"position"),x=d?u:u.states[r],w=x.style.fill;x.textConfig={outsideFill:"inherit"===f.get("color")?w:null,inside:"outside"!==_};var S=p(f,"distance")||0,O=p(f,"align");"outside"===_?(b=i.r+S,O=a>Math.PI/2?"right":"left"):O&&"center"!==O?"left"===O?(b=i.r0+S,a>Math.PI/2&&(O="right")):"right"===O&&(b=i.r-S,a>Math.PI/2&&(O="left")):(b=o===2*Math.PI&&0===i.r0?0:(i.r+i.r0)/2,O="center"),g.style.align=O,g.style.verticalAlign=p(f,"verticalAlign")||"middle",g.x=b*s+i.cx,g.y=b*l+i.cy;var C=p(f,"rotate"),k=0;"radial"===C?(k=-a,k<-Math.PI/2&&(k+=Math.PI)):"tangential"===C?(k=Math.PI/2-a,k>Math.PI/2?k-=Math.PI:k<-Math.PI/2&&(k+=Math.PI)):v["isNumber"](C)&&(k=C*Math.PI/180),g.rotation=k})),c.dirtyStyle()},e}(zg),vq=gq,yq="sunburstRootToNode",mq="sunburstHighlight",bq="sunburstUnhighlight";function _q(t){t.registerAction({type:yq,update:"updateView"},(function(t,e){function n(e,n){var r=Bj(t,[yq],e);if(r){var i=e.getViewRoot();i&&(t.direction=zj(i,r.node)?"rollUp":"drillDown"),e.resetViewRoot(r.node)}}e.eachComponent({mainType:"series",subType:"sunburst",query:t},n)})),t.registerAction({type:mq,update:"none"},(function(t,e,n){function r(e){var n=Bj(t,[mq],e);n&&(t.dataIndex=n.node.dataIndex)}t=Object(v["extend"])({},t),e.eachComponent({mainType:"series",subType:"sunburst",query:t},r),n.dispatchAction(Object(v["extend"])(t,{type:"highlight"}))})),t.registerAction({type:bq,update:"updateView"},(function(t,e,n){t=Object(v["extend"])({},t),n.dispatchAction(Object(v["extend"])(t,{type:"downplay"}))}))}var xq=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.render=function(t,e,n,r){var i=this;this.seriesModel=t,this.api=n,this.ecModel=e;var o=t.getData(),a=o.tree.root,s=t.getViewRoot(),l=this.group,u=t.get("renderLabelForZeroData"),c=[];s.eachNode((function(t){c.push(t)}));var h=this._oldChildren||[];function f(t,e){function n(t){return t.getId()}function r(n,r){var i=null==n?null:t[n],o=null==r?null:e[r];d(i,o)}0===t.length&&0===e.length||new mx(e,t,n,n).add(r).update(r).remove(v["curry"](r,null)).execute()}function d(r,i){if(u||!r||r.getValue()||(r=null),r!==a&&i!==a)if(i&&i.piece)r?(i.piece.updateData(!1,r,t,e,n),o.setItemGraphicEl(r.dataIndex,i.piece)):p(i);else if(r){var s=new vq(r,t,e,n);l.add(s),o.setItemGraphicEl(r.dataIndex,s)}}function p(t){t&&t.piece&&(l.remove(t.piece),t.piece=null)}function g(r,o){o.depth>0?(i.virtualPiece?i.virtualPiece.updateData(!1,r,t,e,n):(i.virtualPiece=new vq(r,t,e,n),l.add(i.virtualPiece)),o.piece.off("click"),i.virtualPiece.on("click",(function(t){i._rootToNode(o.parentNode)}))):i.virtualPiece&&(l.remove(i.virtualPiece),i.virtualPiece=null)}f(c,h),g(a,s),this._initEvents(),this._oldChildren=c},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",(function(e){var n=!1,r=t.seriesModel.getViewRoot();r.eachNode((function(r){if(!n&&r.piece&&r.piece===e.target){var i=r.getModel().get("nodeClick");if("rootToNode"===i)t._rootToNode(r);else if("link"===i){var o=r.getModel(),a=o.get("link");if(a){var s=o.get("target",!0)||"_blank";Jc(a,s)}}n=!0}}))}))},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:yq,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,e){var n=e.getData(),r=n.getItemLayout(0);if(r){var i=t[0]-r.cx,o=t[1]-r.cy,a=Math.sqrt(i*i+o*o);return a<=r.r&&a>=r.r0}},e.type="sunburst",e}(dy),wq=xq,Sq=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreStyleOnData=!0,n}return p(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};Oq(n);var r=this._levelModels=v["map"](t.levels||[],(function(t){return new Wu(t,this,e)}),this),i=Nj.createTree(n,this,o);function o(t){t.wrapMethod("getItemModel",(function(t,e){var n=i.getNodeByDataIndex(e),o=r[n.depth];return o&&(t.parentModel=o),t}))}return i.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(e);return n.treePathInfo=Vj(r,this),n},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){Jj(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,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},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(Hp);function Oq(t){var e=0;v["each"](t.children,(function(t){Oq(t);var n=t.value;v["isArray"](n)&&(n=n[0]),e+=n}));var n=t.value;v["isArray"](n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),v["isArray"](t.value)?t.value[0]=n:t.value=n}var Cq=Sq,kq=Math.PI/180;function Aq(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.get("center"),r=t.get("radius");v["isArray"](r)||(r=[0,r]),v["isArray"](e)||(e=[e,e]);var i=n.getWidth(),o=n.getHeight(),a=Math.min(i,o),s=Jr(e[0],i),l=Jr(e[1],o),u=Jr(r[0],a/2),c=Jr(r[1],a/2),h=-t.get("startAngle")*kq,f=t.get("minAngle")*kq,d=t.getData().tree.root,p=t.getViewRoot(),g=p.depth,y=t.get("sort");null!=y&&Mq(p,y);var m=0;v["each"](p.children,(function(t){!isNaN(t.getValue())&&m++}));var b=p.getValue(),_=Math.PI/(b||m)*2,x=p.depth>0,w=p.height-(x?-1:1),S=(c-u)/(w||1),O=t.get("clockwise"),C=t.get("stillShowZeroSum"),k=O?1:-1,A=function(e,n){if(e){var r=n;if(e!==d){var i=e.getValue(),o=0===b&&C?_:i*_;o<f&&(o=f),r=n+k*o;var c=e.depth-g-(x?-1:1),h=u+S*c,p=u+S*(c+1),y=t.getLevelModel(e);if(y){var m=y.get("r0",!0),w=y.get("r",!0),M=y.get("radius",!0);null!=M&&(m=M[0],w=M[1]),null!=m&&(h=Jr(m,a/2)),null!=w&&(p=Jr(w,a/2))}e.setLayout({angle:o,startAngle:n,endAngle:r,clockwise:O,cx:s,cy:l,r0:h,r:p})}if(e.children&&e.children.length){var T=0;v["each"](e.children,(function(t){T+=A(t,n+T)}))}return r-n}};if(x){var M=u,T=u+S,I=2*Math.PI;d.setLayout({angle:I,startAngle:h,endAngle:h+I,clockwise:O,cx:s,cy:l,r0:M,r:T})}A(p,h)}))}function Mq(t,e){var n=t.children||[];t.children=Tq(n,e),n.length&&v["each"](t.children,(function(t){Mq(t,e)}))}function Tq(t,e){if(v["isFunction"](e)){var n=v["map"](t,(function(t,e){var n=t.getValue();return{params:{depth:t.depth,height:t.height,dataIndex:t.dataIndex,getValue:function(){return n}},index:e}}));return n.sort((function(t,n){return e(t.params,n.params)})),v["map"](n,(function(e){return t[e.index]}))}var r="asc"===e;return t.sort((function(t,e){var n=(t.getValue()-e.getValue())*(r?1:-1);return 0===n?(t.dataIndex-e.dataIndex)*(r?-1:1):n}))}function Iq(t){var e={};function n(t,n,r){var i=t;while(i&&i.depth>1)i=i.parentNode;var o=n.getColorFromPalette(i.name||i.dataIndex+"",e);return t.depth>1&&Object(v["isString"])(o)&&(o=Object(Qe["lift"])(o,(t.depth-1)/(r-1)*.5)),o}t.eachSeriesByType("sunburst",(function(t){var e=t.getData(),r=e.tree;r.eachNode((function(i){var o=i.getModel(),a=o.getModel("itemStyle").getItemStyle();a.fill||(a.fill=n(i,t,r.root.height));var s=e.ensureUniqueItemVisual(i.dataIndex,"style");Object(v["extend"])(s,a)}))}))}function Eq(t){t.registerChartView(wq),t.registerSeriesModel(Cq),t.registerLayout(Object(v["curry"])(Aq,"sunburst")),t.registerProcessor(Object(v["curry"])(HM,"sunburst")),t.registerVisual(Iq),_q(t)}var Pq={color:"fill",borderColor:"stroke"},jq={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Lq=Yi(),Dq=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,e){return dw(null,this)},e.prototype.getDataParams=function(e,n,r){var i=t.prototype.getDataParams.call(this,e,n);return r&&(i.info=Lq(r).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(Hp),Rq=Dq;function Nq(t,e){return e=e||[0,0],v["map"](["x","y"],(function(n,r){var i=this.getAxis(n),o=e[r],a=t[r]/2;return"category"===i.type?i.getBandWidth():Math.abs(i.dataToCoord(o-a)-i.dataToCoord(o+a))}),this)}function Bq(t){var e=t.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:v["bind"](Nq,t)}}}function Fq(t,e){return e=e||[0,0],v["map"]([0,1],(function(n){var r=e[n],i=t[n]/2,o=[],a=[];return o[n]=r-i,a[n]=r+i,o[1-n]=a[1-n]=e[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])}),this)}function zq(t){var e=t.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:t.getZoom()},api:{coord:function(e){return t.dataToPoint(e)},size:v["bind"](Fq,t)}}}function Vq(t,e){var n=this.getAxis(),r=e instanceof Array?e[0]:e,i=(t instanceof Array?t[0]:t)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(r-i)-n.dataToCoord(r+i))}function qq(t){var e=t.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:Object(v["bind"])(Vq,t)}}}function Gq(t,e){return e=e||[0,0],v["map"](["Radius","Angle"],(function(n,r){var i="get"+n+"Axis",o=this[i](),a=e[r],s=t[r]/2,l="category"===o.type?o.getBandWidth():Math.abs(o.dataToCoord(a-s)-o.dataToCoord(a+s));return"Angle"===n&&(l=l*Math.PI/180),l}),this)}function Hq(t){var e=t.getRadiusAxis(),n=t.getAngleAxis(),r=e.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:r[1],r0:r[0]},api:{coord:function(r){var i=e.dataToRadius(r[0]),o=n.dataToAngle(r[1]),a=t.coordToPoint([i,o]);return a.push(i,o*Math.PI/180),a},size:v["bind"](Gq,t)}}}function Wq(t){var e=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(e,n){return t.dataToPoint(e,n)}}}}function Uq(t,e,n,r){return t&&(t.legacy||!1!==t.legacy&&!n&&!r&&"tspan"!==e&&("text"===e||Object(v["hasOwn"])(t,"text")))}function $q(t,e,n){var r,i,o,a=t;if("text"===e)o=a;else{o={},Object(v["hasOwn"])(a,"text")&&(o.text=a.text),Object(v["hasOwn"])(a,"rich")&&(o.rich=a.rich),Object(v["hasOwn"])(a,"textFill")&&(o.fill=a.textFill),Object(v["hasOwn"])(a,"textStroke")&&(o.stroke=a.textStroke),Object(v["hasOwn"])(a,"fontFamily")&&(o.fontFamily=a.fontFamily),Object(v["hasOwn"])(a,"fontSize")&&(o.fontSize=a.fontSize),Object(v["hasOwn"])(a,"fontStyle")&&(o.fontStyle=a.fontStyle),Object(v["hasOwn"])(a,"fontWeight")&&(o.fontWeight=a.fontWeight),i={type:"text",style:o,silent:!0},r={};var s=Object(v["hasOwn"])(a,"textPosition");n?r.position=s?a.textPosition:"inside":s&&(r.position=a.textPosition),Object(v["hasOwn"])(a,"textPosition")&&(r.position=a.textPosition),Object(v["hasOwn"])(a,"textOffset")&&(r.offset=a.textOffset),Object(v["hasOwn"])(a,"textRotation")&&(r.rotation=a.textRotation),Object(v["hasOwn"])(a,"textDistance")&&(r.distance=a.textDistance)}return Yq(o,t),Object(v["each"])(o.rich,(function(t){Yq(t,t)})),{textConfig:r,textContent:i}}function Yq(t,e){e&&(e.font=e.textFont||e.font,Object(v["hasOwn"])(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),Object(v["hasOwn"])(e,"textAlign")&&(t.align=e.textAlign),Object(v["hasOwn"])(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),Object(v["hasOwn"])(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),Object(v["hasOwn"])(e,"textWidth")&&(t.width=e.textWidth),Object(v["hasOwn"])(e,"textHeight")&&(t.height=e.textHeight),Object(v["hasOwn"])(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),Object(v["hasOwn"])(e,"textPadding")&&(t.padding=e.textPadding),Object(v["hasOwn"])(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),Object(v["hasOwn"])(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),Object(v["hasOwn"])(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),Object(v["hasOwn"])(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),Object(v["hasOwn"])(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),Object(v["hasOwn"])(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),Object(v["hasOwn"])(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function Xq(t,e,n){var r=t;r.textPosition=r.textPosition||n.position||"inside",null!=n.offset&&(r.textOffset=n.offset),null!=n.rotation&&(r.textRotation=n.rotation),null!=n.distance&&(r.textDistance=n.distance);var i=r.textPosition.indexOf("inside")>=0,o=t.fill||"#000";Kq(r,e);var a=null==r.textFill;return i?a&&(r.textFill=n.insideFill||"#fff",!r.textStroke&&n.insideStroke&&(r.textStroke=n.insideStroke),!r.textStroke&&(r.textStroke=o),null==r.textStrokeWidth&&(r.textStrokeWidth=2)):(a&&(r.textFill=t.fill||n.outsideFill||"#000"),!r.textStroke&&n.outsideStroke&&(r.textStroke=n.outsideStroke)),r.text=e.text,r.rich=e.rich,Object(v["each"])(e.rich,(function(t){Kq(t,t)})),r}function Kq(t,e){e&&(Object(v["hasOwn"])(e,"fill")&&(t.textFill=e.fill),Object(v["hasOwn"])(e,"stroke")&&(t.textStroke=e.fill),Object(v["hasOwn"])(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),Object(v["hasOwn"])(e,"font")&&(t.font=e.font),Object(v["hasOwn"])(e,"fontStyle")&&(t.fontStyle=e.fontStyle),Object(v["hasOwn"])(e,"fontWeight")&&(t.fontWeight=e.fontWeight),Object(v["hasOwn"])(e,"fontSize")&&(t.fontSize=e.fontSize),Object(v["hasOwn"])(e,"fontFamily")&&(t.fontFamily=e.fontFamily),Object(v["hasOwn"])(e,"align")&&(t.textAlign=e.align),Object(v["hasOwn"])(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),Object(v["hasOwn"])(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),Object(v["hasOwn"])(e,"width")&&(t.textWidth=e.width),Object(v["hasOwn"])(e,"height")&&(t.textHeight=e.height),Object(v["hasOwn"])(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),Object(v["hasOwn"])(e,"padding")&&(t.textPadding=e.padding),Object(v["hasOwn"])(e,"borderColor")&&(t.textBorderColor=e.borderColor),Object(v["hasOwn"])(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),Object(v["hasOwn"])(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),Object(v["hasOwn"])(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),Object(v["hasOwn"])(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),Object(v["hasOwn"])(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),Object(v["hasOwn"])(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),Object(v["hasOwn"])(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),Object(v["hasOwn"])(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),Object(v["hasOwn"])(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),Object(v["hasOwn"])(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}var Zq={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},Qq=Object(v["keys"])(Zq),Jq=(Object(v["reduce"])(lr,(function(t,e){return t[e]=1,t}),{}),lr.join(", "),["","style","shape","extra"]),tG=Yi();function eG(t,e,n,r,i){var o=t+"Animation",a=au(t,r,i)||{},s=tG(e).userDuring;return a.duration>0&&(a.during=s?Object(v["bind"])(hG,{el:e,userDuring:s}):null,a.setToFinal=!0,a.scope=t),Object(v["extend"])(a,n[o]),a}function nG(t,e,n,r){r=r||{};var i=r.dataIndex,o=r.isInit,a=r.clearStyle,s=n.isAnimationEnabled(),l=tG(t),u=e.style;l.userDuring=e.during;var c={},h={};if(gG(t,e,h),dG("shape",e,h),dG("extra",e,h),!o&&s&&(pG(t,e,c),fG("shape",t,e,c),fG("extra",t,e,c),vG(t,e,u,c)),h.style=u,aG(t,h,a),lG(t,e),s)if(o){var f={};Object(v["each"])(Jq,(function(t){var n=t?e[t]:e;n&&n.enterFrom&&(t&&(f[t]=f[t]||{}),Object(v["extend"])(t?f[t]:f,n.enterFrom))}));var d=eG("enter",t,e,n,i);d.duration>0&&t.animateFrom(f,d)}else sG(t,e,i||0,n,c);rG(t,e),u?t.dirty():t.markRedraw()}function rG(t,e){for(var n=tG(t).leaveToProps,r=0;r<Jq.length;r++){var i=Jq[r],o=i?e[i]:e;o&&o.leaveTo&&(n||(n=tG(t).leaveToProps={}),i&&(n[i]=n[i]||{}),Object(v["extend"])(i?n[i]:n,o.leaveTo))}}function iG(t,e,n,r){if(t){var i=t.parent,o=tG(t).leaveToProps;if(o){var a=eG("update",t,e,n,0);a.done=function(){i.remove(t),r&&r()},t.animateTo(o,a)}else i.remove(t),r&&r()}}function oG(t){return"all"===t}function aG(t,e,n){var r=e.style;if(!t.isGroup&&r){if(n){t.useStyle({});for(var i=t.animators,o=0;o<i.length;o++){var a=i[o];"style"===a.targetName&&a.changeTarget(t.style)}}t.setStyle(r)}e&&(e.style=null,e&&t.attr(e),e.style=r)}function sG(t,e,n,r,i){if(i){var o=eG("update",t,e,r,n);o.duration>0&&t.animateFrom(i,o)}}function lG(t,e){Object(v["hasOwn"])(e,"silent")&&(t.silent=e.silent),Object(v["hasOwn"])(e,"ignore")&&(t.ignore=e.ignore),t instanceof ta&&Object(v["hasOwn"])(e,"invisible")&&(t.invisible=e.invisible),t instanceof ss&&Object(v["hasOwn"])(e,"autoBatch")&&(t.autoBatch=e.autoBatch)}var uG={},cG={setTransform:function(t,e){return uG.el[t]=e,this},getTransform:function(t){return uG.el[t]},setShape:function(t,e){var n=uG.el,r=n.shape||(n.shape={});return r[t]=e,n.dirtyShape&&n.dirtyShape(),this},getShape:function(t){var e=uG.el.shape;if(e)return e[t]},setStyle:function(t,e){var n=uG.el,r=n.style;return r&&(r[t]=e,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(t){var e=uG.el.style;if(e)return e[t]},setExtra:function(t,e){var n=uG.el.extra||(uG.el.extra={});return n[t]=e,this},getExtra:function(t){var e=uG.el.extra;if(e)return e[t]}};function hG(){var t=this,e=t.el;if(e){var n=tG(e).userDuring,r=t.userDuring;n===r?(uG.el=e,r(cG)):t.el=t.userDuring=null}}function fG(t,e,n,r){var i=n[t];if(i){var o,a=e[t];if(a){var s=n.transition,l=i.transition;if(l)if(!o&&(o=r[t]={}),oG(l))Object(v["extend"])(o,a);else for(var u=ki(l),c=0;c<u.length;c++){var h=u[c],f=a[h];o[h]=f}else if(oG(s)||Object(v["indexOf"])(s,t)>=0){!o&&(o=r[t]={});var d=Object(v["keys"])(a);for(c=0;c<d.length;c++){h=d[c],f=a[h];yG(i[h],f)&&(o[h]=f)}}}}}function dG(t,e,n){var r=e[t];if(r)for(var i=n[t]={},o=Object(v["keys"])(r),a=0;a<o.length;a++){var s=o[a];i[s]=un(r[s])}}function pG(t,e,n){for(var r=e.transition,i=oG(r)?lr:ki(r||[]),o=0;o<i.length;o++){var a=i[o];if("style"!==a&&"shape"!==a&&"extra"!==a){var s=t[a];0,n[a]=s}}}function gG(t,e,n){for(var r=0;r<Qq.length;r++){var i=Qq[r],o=Zq[i],a=e[i];a&&(n[o[0]]=a[0],n[o[1]]=a[1])}for(r=0;r<lr.length;r++){var s=lr[r];null!=e[s]&&(n[s]=e[s])}}function vG(t,e,n,r){if(n){var i,o=t.style;if(o){var a=n.transition,s=e.transition;if(a&&!oG(a)){var l=ki(a);!i&&(i=r.style={});for(var u=0;u<l.length;u++){var c=l[u],h=o[c];i[c]=h}}else if(t.getAnimationStyleProps&&(oG(s)||oG(a)||Object(v["indexOf"])(s,"style")>=0)){var f=t.getAnimationStyleProps(),d=f?f.style:null;if(d){!i&&(i=r.style={});var p=Object(v["keys"])(n);for(u=0;u<p.length;u++){c=p[u];if(d[c]){h=o[c];i[c]=h}}}}}}}function yG(t,e){return Object(v["isArrayLike"])(t)?t!==e:null!=t&&isFinite(t)}var mG=Yi(),bG=["percent","easing","shape","style","extra"];function _G(t){t.stopAnimation("keyframe"),t.attr(mG(t))}function xG(t,e,n){if(n.isAnimationEnabled()&&e)if(Object(v["isArray"])(e))Object(v["each"])(e,(function(e){xG(t,e,n)}));else{var r=e.keyframes,i=e.duration;if(n&&null==i){var o=au("enter",n,0);i=o&&o.duration}if(r&&i){var a=mG(t);Object(v["each"])(Jq,(function(n){if(!n||t[n]){var o;r.sort((function(t,e){return t.percent-e.percent})),Object(v["each"])(r,(function(r){var s=t.animators,l=n?r[n]:r;if(l){var u=Object(v["keys"])(l);if(n||(u=Object(v["filter"])(u,(function(t){return Object(v["indexOf"])(bG,t)<0}))),u.length){o||(o=t.animate(n,e.loop,!0),o.scope="keyframe");for(var c=0;c<s.length;c++)s[c]!==o&&s[c].targetName===o.targetName&&s[c].stopTracks(u);n&&(a[n]=a[n]||{});var h=n?a[n]:a;Object(v["each"])(u,(function(e){h[e]=((n?t[n]:t)||{})[e]})),o.whenWithKeys(i*r.percent,l,u,r.easing)}}})),o&&o.delay(e.delay||0).duration(i).start(e.easing)}}))}}}var wG="emphasis",SG="normal",OG="blur",CG="select",kG=[SG,wG,OG,CG],AG={normal:["itemStyle"],emphasis:[wG,"itemStyle"],blur:[OG,"itemStyle"],select:[CG,"itemStyle"]},MG={normal:["label"],emphasis:[wG,"label"],blur:[OG,"label"],select:[CG,"label"]},TG=["x","y"],IG="e\0\0",EG={normal:{},emphasis:{},blur:{},select:{}},PG={cartesian2d:Bq,geo:zq,single:qq,polar:Hq,calendar:Wq};function jG(t){return t instanceof ss}function LG(t){return t instanceof ta}function DG(t,e){e.copyTransform(t),LG(e)&&LG(t)&&(e.setStyle(t.style),e.z=t.z,e.z2=t.z2,e.zlevel=t.zlevel,e.invisible=t.invisible,e.ignore=t.ignore,jG(e)&&jG(t)&&e.setShape(t.shape))}var RG=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.render=function(t,e,n,r){this._progressiveEls=null;var i=this._data,o=t.getData(),a=this.group,s=GG(t,o,e,n);i||a.removeAll(),o.diff(i).add((function(e){WG(n,null,e,s(e,r),t,a,o)})).remove((function(e){var n=i.getItemGraphicEl(e);n&&iG(n,Lq(n).option,t)})).update((function(e,l){var u=i.getItemGraphicEl(l);WG(n,u,e,s(e,r),t,a,o)})).execute();var l=t.get("clip",!0)?IA(t.coordinateSystem,!1,t):null;l?a.setClipPath(l):a.removeClipPath(),this._data=o},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,e,n,r,i){var o=e.getData(),a=GG(e,o,n,r),s=this._progressiveEls=[];function l(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}for(var u=t.start;u<t.end;u++){var c=WG(null,null,u,a(u,i),e,this.group,o);c&&(c.traverse(l),s.push(c))}},e.prototype.eachRendered=function(t){iy(this._progressiveEls||this.group,t)},e.prototype.filterForExposedEvent=function(t,e,n,r){var i=e.element;if(null==i||n.name===i)return!0;while((n=n.__hostTarget||n.parent)&&n!==this.group)if(n.name===i)return!0;return!1},e.type="custom",e}(dy),NG=RG;function BG(t){var e,n=t.type;if("path"===n){var r=t.shape,i=null!=r.width&&null!=r.height?{x:r.x||0,y:r.y||0,width:r.width,height:r.height}:null,o=oH(r);e=Dv(o,null,i,r.layout||"center"),Lq(e).customPathData=o}else if("image"===n)e=new gs({}),Lq(e).customImagePath=t.style.image;else if("text"===n)e=new qs({});else if("group"===n)e=new Nr;else{if("compoundPath"===n)throw new Error('"compoundPath" is not supported yet.');var a=Lv(n);if(!a){var s="";0,Qh(s)}e=new a}return Lq(e).customGraphicType=n,e.name=t.name,e.z2EmphasisLift=1,e.z2SelectLift=1,e}function FG(t,e,n,r,i,o,a){_G(e);var s=i&&i.normal.cfg;s&&e.setTextConfig(s),r&&null==r.transition&&(r.transition=TG);var l=r&&r.style;if(l){if("text"===e.type){var u=l;Object(v["hasOwn"])(u,"textFill")&&(u.fill=u.textFill),Object(v["hasOwn"])(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,h=jG(e)?l.decal:null;t&&h&&(h.dirty=!0,c=gb(h,t)),l.__decalPattern=c}if(LG(e)&&l){c=l.__decalPattern;c&&(l.decal=c)}nG(e,r,o,{dataIndex:n,isInit:a,clearStyle:!0}),xG(e,r.keyframeAnimation,o)}function zG(t,e,n,r,i){var o=e.isGroup?null:e,a=i&&i[t].cfg;if(o){var s=o.ensureState(t);if(!1===r){var l=o.getState(t);l&&(l.style=null)}else s.style=r||null;a&&(s.textConfig=a),Cl(o)}}function VG(t,e,n){if(!t.isGroup){var r=t,i=n.currentZ,o=n.currentZLevel;r.z=i,r.zlevel=o;var a=e.z2;null!=a&&(r.z2=a||0);for(var s=0;s<kG.length;s++)qG(r,e,kG[s])}}function qG(t,e,n){var r,i=n===SG,o=i?e:ZG(e,n),a=o?o.z2:null;null!=a&&(r=i?t:t.ensureState(n),r.z2=a||0)}function GG(t,e,n,r){var i=t.get("renderItem"),o=t.coordinateSystem,a={};o&&(a=o.prepareCustoms?o.prepareCustoms(o):PG[o.type](o));for(var s,l,u=Object(v["defaults"])({getWidth:r.getWidth,getHeight:r.getHeight,getZr:r.getZr,getDevicePixelRatio:r.getDevicePixelRatio,value:x,style:S,ordinalRawValue:w,styleEmphasis:O,visual:A,barLayout:M,currentSeriesIndices:T,font:I},a.api||{}),c={context:{},seriesId:t.id,seriesName:t.name,seriesIndex:t.seriesIndex,coordSys:a.coordSys,dataInsideLength:e.count(),encode:HG(t.getData())},h={},f={},d={},p={},g=0;g<kG.length;g++){var y=kG[g];d[y]=t.getModel(AG[y]),p[y]=t.getModel(MG[y])}function m(t){return t===s?l||(l=e.getItemModel(t)):e.getItemModel(t)}function b(t,n){return e.hasItemOption?t===s?h[n]||(h[n]=m(t).getModel(AG[n])):m(t).getModel(AG[n]):d[n]}function _(t,n){return e.hasItemOption?t===s?f[n]||(f[n]=m(t).getModel(MG[n])):m(t).getModel(MG[n]):p[n]}return function(t,n){return s=t,l=null,h={},f={},i&&i(Object(v["defaults"])({dataIndexInside:t,dataIndex:e.getRawIndex(t),actionType:n?n.type:null},c),u)};function x(t,n){return null==n&&(n=s),e.getStore().get(e.getDimensionIndex(t||0),n)}function w(t,n){null==n&&(n=s),t=t||0;var r=e.getDimensionInfo(t);if(!r){var i=e.getDimensionIndex(t);return i>=0?e.getStore().get(i,n):void 0}var o=e.get(r.name,n),a=r&&r.ordinalMeta;return a?a.categories[o]:o}function S(n,r){null==r&&(r=s);var i=e.getItemVisual(r,"style"),o=i&&i.fill,a=i&&i.opacity,l=b(r,SG).getItemStyle();null!=o&&(l.fill=o),null!=a&&(l.opacity=a);var u={inheritColor:Object(v["isString"])(o)?o:"#000"},c=_(r,SG),h=xu(c,null,u,!1,!0);h.text=c.getShallow("show")?Object(v["retrieve2"])(t.getFormattedLabel(r,SG),oA(e,r)):null;var f=wu(c,u,!1);return k(n,l),l=Xq(l,h,f),n&&C(l,n),l.legacy=!0,l}function O(n,r){null==r&&(r=s);var i=b(r,wG).getItemStyle(),o=_(r,wG),a=xu(o,null,null,!0,!0);a.text=o.getShallow("show")?Object(v["retrieve3"])(t.getFormattedLabel(r,wG),t.getFormattedLabel(r,SG),oA(e,r)):null;var l=wu(o,null,!0);return k(n,i),i=Xq(i,a,l),n&&C(i,n),i.legacy=!0,i}function C(t,e){for(var n in e)Object(v["hasOwn"])(e,n)&&(t[n]=e[n])}function k(t,e){t&&(t.textFill&&(e.textFill=t.textFill),t.textPosition&&(e.textPosition=t.textPosition))}function A(t,n){if(null==n&&(n=s),Object(v["hasOwn"])(Pq,t)){var r=e.getItemVisual(n,"style");return r?r[Pq[t]]:null}if(Object(v["hasOwn"])(jq,t))return e.getItemVisual(n,t)}function M(t){if("cartesian2d"===o.type){var e=o.getBaseAxis();return zw(Object(v["defaults"])({axis:e},t))}}function T(){return n.getCurrentSeriesIndices()}function I(t){return Tu(t,n)}}function HG(t){var e={};return Object(v["each"])(t.dimensions,(function(n){var r=t.getDimensionInfo(n);if(!r.isExtraCoord){var i=r.coordDim,o=e[i]=e[i]||[];o[r.coordDimIndex]=t.getDimensionIndex(n)}})),e}function WG(t,e,n,r,i,o,a){if(r){var s=UG(t,e,n,r,i,o);return s&&a.setItemGraphicEl(n,s),s&&$l(s,r.focus,r.blurScope,r.emphasisDisabled),s}o.remove(e)}function UG(t,e,n,r,i,o){var a=-1,s=e;e&&$G(e,r,i)&&(a=Object(v["indexOf"])(o.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=BG(r),s&&DG(s,u)),!1===r.morph?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),EG.normal.cfg=EG.normal.conOpt=EG.emphasis.cfg=EG.emphasis.conOpt=EG.blur.cfg=EG.blur.conOpt=EG.select.cfg=EG.select.conOpt=null,EG.isLegacy=!1,XG(u,n,r,i,l,EG),YG(u,n,r,i,l),FG(t,u,n,r,EG,i,l),Object(v["hasOwn"])(r,"info")&&(Lq(u).info=r.info);for(var c=0;c<kG.length;c++){var h=kG[c];if(h!==SG){var f=ZG(r,h),d=QG(r,f,h);zG(h,u,f,d,EG)}}return VG(u,r,i),"group"===r.type&&JG(t,u,n,r,i),a>=0?o.replaceAt(u,a):o.add(u),u}function $G(t,e,n){var r=Lq(t),i=e.type,o=e.shape,a=e.style;return n.isUniversalTransitionEnabled()||null!=i&&i!==r.customGraphicType||"path"===i&&aH(o)&&oH(o)!==r.customPathData||"image"===i&&Object(v["hasOwn"])(a,"image")&&a.image!==r.customImagePath}function YG(t,e,n,r,i){var o=n.clipPath;if(!1===o)t&&t.getClipPath()&&t.removeClipPath();else if(o){var a=t.getClipPath();a&&$G(a,o,r)&&(a=null),a||(a=BG(o),t.setClipPath(a)),FG(null,a,e,o,null,r,i)}}function XG(t,e,n,r,i,o){if(!t.isGroup){KG(n,null,o),KG(n,wG,o);var a=o.normal.conOpt,s=o.emphasis.conOpt,l=o.blur.conOpt,u=o.select.conOpt;if(null!=a||null!=s||null!=u||null!=l){var c=t.getTextContent();if(!1===a)c&&t.removeTextContent();else{a=o.normal.conOpt=a||{type:"text"},c?c.clearStates():(c=BG(a),t.setTextContent(c)),FG(null,c,e,a,null,r,i);for(var h=a&&a.style,f=0;f<kG.length;f++){var d=kG[f];if(d!==SG){var p=o[d].conOpt;zG(d,c,p,QG(a,p,d),null)}}h?c.dirty():c.markRedraw()}}}}function KG(t,e,n){var r=e?ZG(t,e):t,i=e?QG(t,r,wG):t.style,o=t.type,a=r?r.textConfig:null,s=t.textContent,l=s?e?ZG(s,e):s:null;if(i&&(n.isLegacy||Uq(i,o,!!a,!!l))){n.isLegacy=!0;var u=$q(i,o,!e);!a&&u.textConfig&&(a=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var c=l;!c.type&&(c.type="text")}var h=e?n[e]:n.normal;h.cfg=a,h.conOpt=l}function ZG(t,e){return e?t?t[e]:null:t}function QG(t,e,n){var r=e&&e.style;return null==r&&n===wG&&t&&(r=t.styleEmphasis),r}function JG(t,e,n,r,i){var o=r.children,a=o?o.length:0,s=r.$mergeChildren,l="byName"===s||r.diffChildrenByName,u=!1===s;if(a||l||u)if(l)eH({api:t,oldChildren:e.children()||[],newChildren:o||[],dataIndex:n,seriesModel:i,group:e});else{u&&e.removeAll();for(var c=0;c<a;c++){var h=o[c],f=e.childAt(c);h?(null==h.ignore&&(h.ignore=!1),UG(t,f,n,h,i,e)):f.ignore=!0}for(var d=e.childCount()-1;d>=c;d--){var p=e.childAt(d);tH(e,p,i)}}}function tH(t,e,n){e&&iG(e,Lq(t).option,n)}function eH(t){new mx(t.oldChildren,t.newChildren,nH,nH,t).add(rH).update(rH).remove(iH).execute()}function nH(t,e){var n=t&&t.name;return null!=n?n:IG+e}function rH(t,e){var n=this.context,r=null!=t?n.newChildren[t]:null,i=null!=e?n.oldChildren[e]:null;UG(n.api,i,n.dataIndex,r,n.seriesModel,n.group)}function iH(t){var e=this.context,n=e.oldChildren[t];n&&iG(n,Lq(n).option,e.seriesModel)}function oH(t){return t&&(t.pathData||t.d)}function aH(t){return t&&(Object(v["hasOwn"])(t,"pathData")||Object(v["hasOwn"])(t,"d"))}function sH(t){t.registerChartView(NG),t.registerSeriesModel(Rq)}var lH=Yi(),uH=v["clone"],cH=v["bind"],hH=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,n,r){var i=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,r||this._lastValue!==i||this._lastStatus!==o){this._lastValue=i,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var l={};this.makeElOption(l,i,t,e,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var c=this._moveAnimation=this.determineAnimation(t,e);if(a){var h=v["curry"](fH,e,c);this.updatePointerEl(a,l,h),this.updateLabelEl(a,l,h,e)}else a=this._group=new Nr,this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),n.getZr().add(a);vH(a,e,!0),this._renderHandle(i)}},t.prototype.remove=function(t){this.clear(t)},t.prototype.dispose=function(t){this.clear(t)},t.prototype.determineAnimation=function(t,e){var n=e.get("animation"),r=t.axis,i="category"===r.type,o=e.get("snap");if(!o&&!i)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(i&&r.getBandWidth()>a)return!0;if(o){var s=pI(t).seriesDataCount,l=r.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,r,i){},t.prototype.createPointerEl=function(t,e,n,r){var i=e.pointer;if(i){var o=lH(t).pointerEl=new a[i.type](uH(e.pointer));t.add(o)}},t.prototype.createLabelEl=function(t,e,n,r){if(e.label){var i=lH(t).labelEl=new qs(uH(e.label));t.add(i),pH(i,r)}},t.prototype.updatePointerEl=function(t,e,n){var r=lH(t).pointerEl;r&&e.pointer&&(r.setStyle(e.pointer.style),n(r,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,r){var i=lH(t).labelEl;i&&(i.setStyle(e.label.style),n(i,{x:e.label.x,y:e.label.y}),pH(i,r))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,r=this._api.getZr(),i=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return i&&r.remove(i),void(this._handle=null);this._handle||(e=!0,i=this._handle=Zv(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){vt(t.event)},onmousedown:cH(this._onHandleDragMove,this,0,0),drift:cH(this._onHandleDragMove,this),ondragend:cH(this._onHandleDragEnd,this)}),r.add(i)),vH(i,n,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");v["isArray"](s)||(s=[s,s]),i.scaleX=s[0]/2,i.scaleY=s[1]/2,my(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){fH(this._axisPointerModel,!e&&this._moveAnimation,this._handle,gH(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(gH(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(gH(r)),lH(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,r=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),r&&e.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),by(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},t}();function fH(t,e,n,r){dH(lH(n).lastProp,r)||(lH(n).lastProp=r,e?lu(n,r,t):(n.stopAnimation(),n.attr(r)))}function dH(t,e){if(v["isObject"](t)&&v["isObject"](e)){var n=!0;return v["each"](e,(function(e,r){n=n&&dH(t[r],e)})),!!n}return t===e}function pH(t,e){t[e.get(["label","show"])?"show":"hide"]()}function gH(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function vH(t,e,n){var r=e.get("z"),i=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=r&&(t.z=r),null!=i&&(t.zlevel=i),t.silent=n)}))}var yH=hH;function mH(t){var e,n=t.get("type"),r=t.getModel(n+"Style");return"line"===n?(e=r.getLineStyle(),e.fill=null):"shadow"===n&&(e=r.getAreaStyle(),e.stroke=null),e}function bH(t,e,n,r,i){var o=n.get("value"),a=xH(o,e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=Gc(s.get("padding")||0),u=s.getFont(),c=vr(a,u),h=i.position,f=c.width+l[1]+l[3],d=c.height+l[0]+l[2],p=i.align;"right"===p&&(h[0]-=f),"center"===p&&(h[0]-=f/2);var g=i.verticalAlign;"bottom"===g&&(h[1]-=d),"middle"===g&&(h[1]-=d/2),_H(h,f,d,r);var v=s.get("backgroundColor");v&&"auto"!==v||(v=e.get(["axisLine","lineStyle","color"])),t.label={x:h[0],y:h[1],style:xu(s,{text:a,font:u,fill:s.getTextColor(),padding:l,backgroundColor:v}),z2:10}}function _H(t,e,n,r){var i=r.getWidth(),o=r.getHeight();t[0]=Math.min(t[0]+e,i)-e,t[1]=Math.min(t[1]+n,o)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function xH(t,e,n,r,i){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:i.precision}),a=i.formatter;if(a){var s={value:ES(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};v["each"](r,(function(t){var e=n.getSeriesByIndex(t.seriesIndex),r=t.dataIndexInside,i=e&&e.getDataParams(r);i&&s.seriesData.push(i)})),v["isString"](a)?o=a.replace("{value}",o):v["isFunction"](a)&&(o=a(s))}return o}function wH(t,e,n){var r=wt();return At(r,r,n.rotation),kt(r,r,n.position),Hv([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function SH(t,e,n,r,i,o){var a=aI.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),bH(e,r,i,o,{position:wH(r.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function OH(t,e,n){return n=n||0,{x1:t[n],y1:t[1-n],x2:e[n],y2:e[1-n]}}function CH(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}}function kH(t,e,n,r,i,o){return{cx:t,cy:e,r0:n,r:r,startAngle:i,endAngle:o,clockwise:!0}}var AH=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.makeElOption=function(t,e,n,r,i){var o=n.axis,a=o.grid,s=r.get("type"),l=MH(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var c=mH(r),h=TH[s](o,u,l);h.style=c,t.graphicKey=h.type,t.pointer=h}var f=NT(a.model,n);SH(e,t,f,n,r,i)},e.prototype.getHandleTransform=function(t,e,n){var r=NT(e.axis.grid.model,e,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=wH(e.axis,t,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,r){var i=n.axis,o=i.grid,a=i.getGlobalExtent(!0),s=MH(o,i).getOtherAxis(i).getGlobalExtent(),l="x"===i.dim?0:1,u=[t.x,t.y];u[l]+=e[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var c=(s[1]+s[0])/2,h=[c,c];h[l]=u[l];var f=[{verticalAlign:"middle"},{align:"center"}];return{x:u[0],y:u[1],rotation:t.rotation,cursorPoint:h,tooltipOption:f[l]}},e}(yH);function MH(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var TH={line:function(t,e,n){var r=OH([e,n[0]],[e,n[1]],IH(t));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(t,e,n){var r=Math.max(1,t.getBandWidth()),i=n[1]-n[0];return{type:"Rect",shape:CH([e-r/2,n[0]],[r,i],IH(t))}}};function IH(t){return"x"===t.dim?0:1}var EH=AH,PH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(vh),jH=PH,LH=Yi(),DH=v["each"];function RH(t,e,n){if(!g["a"].node){var r=e.getZr();LH(r).records||(LH(r).records={}),NH(r,e);var i=LH(r).records[t]||(LH(r).records[t]={});i.handler=n}}function NH(t,e){function n(n,r){t.on(n,(function(n){var i=VH(e);DH(LH(t).records,(function(t){t&&r(t,n,i.dispatchAction)})),BH(i.pendings,e)}))}LH(t).initialized||(LH(t).initialized=!0,n("click",v["curry"](zH,"click")),n("mousemove",v["curry"](zH,"mousemove")),n("globalout",FH))}function BH(t,e){var n,r=t.showTip.length,i=t.hideTip.length;r?n=t.showTip[r-1]:i&&(n=t.hideTip[i-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function FH(t,e,n){t.handler("leave",null,n)}function zH(t,e,n,r){e.handler(t,n,r)}function VH(t){var e={showTip:[],hideTip:[]},n=function(r){var i=e[r.type];i?i.push(r):(r.dispatchAction=n,t.dispatchAction(r))};return{dispatchAction:n,pendings:e}}function qH(t,e){if(!g["a"].node){var n=e.getZr(),r=(LH(n).records||{})[t];r&&(LH(n).records[t]=null)}}var GH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.render=function(t,e,n){var r=e.getComponent("tooltip"),i=t.get("triggerOn")||r&&r.get("triggerOn")||"mousemove|click";RH("axisPointer",n,(function(t,e,n){"none"!==i&&("leave"===t||i.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},e.prototype.remove=function(t,e){qH("axisPointer",e)},e.prototype.dispose=function(t,e){qH("axisPointer",e)},e.type="axisPointer",e}(Up),HH=GH;function WH(t,e){var n,r=[],i=t.seriesIndex;if(null==i||!(n=e.getSeriesByIndex(i)))return{point:[]};var o=n.getData(),a=$i(o,t);if(null==a||a<0||v["isArray"](a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),h=c.dim,f=u.dim,d="x"===h||"radius"===h?1:0,p=o.mapDimension(f),g=[];g[d]=o.get(p,a),g[1-d]=o.get(o.getCalculationInfo("stackResultDimension"),a),r=l.dataToPoint(g)||[]}else r=l.dataToPoint(o.getValues(v["map"](l.dimensions,(function(t){return o.mapDimension(t)})),a))||[];else if(s){var y=s.getBoundingRect().clone();y.applyTransform(s.transform),r=[y.x+y.width/2,y.y+y.height/2]}return{point:r,el:s}}var UH=Yi();function $H(t,e,n){var r=t.currTrigger,i=[t.x,t.y],o=t,a=t.dispatchAction||Object(v["bind"])(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){rW(i)&&(i=WH({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=rW(i),u=o.axesInfo,c=s.axesInfo,h="leave"===r||rW(i),f={},d={},p={list:[],map:{}},g={showPointer:Object(v["curry"])(KH,d),showTooltip:Object(v["curry"])(ZH,p)};Object(v["each"])(s.coordSysMap,(function(t,e){var n=l||t.containPoint(i);Object(v["each"])(s.coordSysAxesInfo[e],(function(t,e){var r=t.axis,o=eW(u,t);if(!h&&n&&(!u||o)){var a=o&&o.value;null!=a||l||(a=r.pointToData(i)),null!=a&&YH(t,a,g,!1,f)}}))}));var y={};return Object(v["each"])(c,(function(t,e){var n=t.linkGroup;n&&!d[e]&&Object(v["each"])(n.axesInfo,(function(e,r){var i=d[r];if(e!==t&&i){var o=i.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,nW(e),nW(t)))),y[t.key]=o}}))})),Object(v["each"])(y,(function(t,e){YH(c[e],t,g,!0,f)})),QH(d,c,f),JH(p,i,t,a),tW(c,a,n),f}}function YH(t,e,n,r,i){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e))if(t.involveSeries){var a=XH(e,t),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==i.seriesIndex&&Object(v["extend"])(i,s[0]),!r&&t.snap&&o.containData(l)&&null!=l&&(e=l),n.showPointer(t,e,s),n.showTooltip(t,a,l)}else n.showPointer(t,e)}function XH(t,e){var n=e.axis,r=n.dim,i=t,o=[],a=Number.MAX_VALUE,s=-1;return Object(v["each"])(e.seriesModels,(function(e,l){var u,c,h=e.getData().mapDimensionsAll(r);if(e.getAxisTooltipData){var f=e.getAxisTooltipData(h,t,n);c=f.dataIndices,u=f.nestestValue}else{if(c=e.getData().indicesOfNearest(h[0],t,"category"===n.type?.5:null),!c.length)return;u=e.getData().get(h[0],c[0])}if(null!=u&&isFinite(u)){var d=t-u,p=Math.abs(d);p<=a&&((p<a||d>=0&&s<0)&&(a=p,s=d,i=u,o.length=0),Object(v["each"])(c,(function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:o,snapToValue:i}}function KH(t,e,n,r){t[e.key]={value:n,payloadBatch:r}}function ZH(t,e,n,r){var i=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&i.length){var l=e.coordSys.model,u=yI(l),c=t.map[u];c||(c=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function QH(t,e,n){var r=n.axesInfo=[];Object(v["each"])(e,(function(e,n){var i=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(i.status="show"),i.value=o.value,i.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(i.status="hide"),"show"===i.status&&r.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:i.value})}))}function JH(t,e,n,r){if(!rW(e)&&t.list.length){var i=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:t.list})}else r({type:"hideTip"})}function tW(t,e,n){var r=n.getZr(),i="axisPointerLastHighlights",o=UH(r)[i]||{},a=UH(r)[i]={};Object(v["each"])(t,(function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&Object(v["each"])(n.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;a[e]=t}))}));var s=[],l=[];Object(v["each"])(o,(function(t,e){!a[e]&&l.push(t)})),Object(v["each"])(a,(function(t,e){!o[e]&&s.push(t)})),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function eW(t,e){for(var n=0;n<(t||[]).length;n++){var r=t[n];if(e.axis.dim===r.axisDim&&e.axis.model.componentIndex===r.axisIndex)return r}}function nW(t){var e=t.axis.model,n={},r=n.axisDim=t.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=e.componentIndex,n.axisName=n[r+"AxisName"]=e.name,n.axisId=n[r+"AxisId"]=e.id,n}function rW(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function iW(t){_I.registerAxisPointerClass("CartesianAxisPointer",EH),t.registerComponentModel(jH),t.registerComponentView(HH),t.registerPreprocessor((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!Object(v["isArray"])(e)&&(t.axisPointer.link=[e])}})),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=sI(t,e)})),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},$H)}function oW(t){px(PI),px(iW)}var aW=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.makeElOption=function(t,e,n,r,i){var o=n.axis;"angle"===o.dim&&(this.animationThreshold=Math.PI/18);var a=o.polar,s=a.getOtherAxis(o),l=s.getExtent(),u=o.dataToCoord(e),c=r.get("type");if(c&&"none"!==c){var h=mH(r),f=lW[c](o,a,u,l);f.style=h,t.graphicKey=f.type,t.pointer=f}var d=r.get(["label","margin"]),p=sW(e,n,r,a,d);bH(t,n,r,i,p)},e}(yH);function sW(t,e,n,r,i){var o=e.axis,a=o.dataToCoord(t),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,u,c,h=r.getRadiusAxis().getExtent();if("radius"===o.dim){var f=wt();At(f,f,s),kt(f,f,[r.cx,r.cy]),l=Hv([a,-i],f);var d=e.getModel("axisLabel").get("rotate")||0,p=aI.innerTextLayout(s,d*Math.PI/180,-1);u=p.textAlign,c=p.textVerticalAlign}else{var g=h[1];l=r.coordToPoint([g+i,a]);var v=r.cx,y=r.cy;u=Math.abs(l[0]-v)/g<.3?"center":l[0]>v?"left":"right",c=Math.abs(l[1]-y)/g<.3?"middle":l[1]>y?"top":"bottom"}return{position:l,align:u,verticalAlign:c}}var lW={line:function(t,e,n,r){return"angle"===t.dim?{type:"Line",shape:OH(e.coordToPoint([r[0],n]),e.coordToPoint([r[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,r){var i=Math.max(1,t.getBandWidth()),o=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:kH(e.cx,e.cy,r[0],r[1],(-n-i/2)*o,(i/2-n)*o)}:{type:"Sector",shape:kH(e.cx,e.cy,n-i/2,n+i/2,0,2*Math.PI)}}},uW=aW,cW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.findAxisModel=function(t){var e,n=this.ecModel;return n.eachComponent(t,(function(t){t.getCoordSysModel()===this&&(e=t)}),this),e},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(vh),hW=cW,fW=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Qi).models[0]},e.type="polarAxis",e}(vh);v["mixin"](fW,BS);var dW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.type="angleAxis",e}(fW),pW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.type="radiusAxis",e}(fW),gW=function(t){function e(e,n){return t.call(this,"radius",e,n)||this}return p(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e}(kO);gW.prototype.dataToRadius=kO.prototype.dataToCoord,gW.prototype.radiusToData=kO.prototype.coordToData;var vW=gW,yW=Yi(),mW=function(t){function e(e,n){return t.call(this,"angle",e,n||[0,360])||this}return p(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,e=t.getLabelModel(),n=t.scale,r=n.getExtent(),i=n.count();if(r[1]-r[0]<1)return 0;var o=r[0],a=t.dataToCoord(o+1)-t.dataToCoord(o),s=Math.abs(a),l=vr(null==o?"":o+"",e.getFont(),"center","top"),u=Math.max(l.height,7),c=u/s;isNaN(c)&&(c=1/0);var h=Math.max(0,Math.floor(c)),f=yW(t.model),d=f.lastAutoInterval,p=f.lastTickCount;return null!=d&&null!=p&&Math.abs(d-h)<=1&&Math.abs(p-i)<=1&&d>h?h=d:(f.lastTickCount=i,f.lastAutoInterval=h),h},e}(kO);mW.prototype.dataToAngle=kO.prototype.dataToCoord,mW.prototype.angleToData=kO.prototype.coordToData;var bW=mW,_W=["radius","angle"],xW=function(){function t(t){this.dimensions=_W,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new vW,this._angleAxis=new bW,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return t.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},t.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},t.prototype.getAxis=function(t){var e="_"+t+"Axis";return this[e]},t.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},t.prototype.getAxesByScale=function(t){var e=[],n=this._angleAxis,r=this._radiusAxis;return n.scale.type===t&&e.push(n),r.scale.type===t&&e.push(r),e},t.prototype.getAngleAxis=function(){return this._angleAxis},t.prototype.getRadiusAxis=function(){return this._radiusAxis},t.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},t.prototype.getTooltipAxes=function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},t.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},t.prototype.pointToData=function(t,e){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},t.prototype.pointToCoord=function(t){var e=t[0]-this.cx,n=t[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(e*e+n*n);e/=s,n/=s;var l=Math.atan2(-n,e)/Math.PI*180,u=l<o?1:-1;while(l<o||l>a)l+=360*u;return[s,l]},t.prototype.coordToPoint=function(t){var e=t[0],n=t[1]/180*Math.PI,r=Math.cos(n)*e+this.cx,i=-Math.sin(n)*e+this.cy;return[r,i]},t.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),n=e.getExtent().slice();n[0]>n[1]&&n.reverse();var r=t.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:t.inverse,contain:function(t,e){var n=t-this.cx,r=e-this.cy,i=n*n+r*r-1e-4,o=this.r,a=this.r0;return i<=o*o&&i>=a*a}}},t.prototype.convertToPixel=function(t,e,n){var r=wW(e);return r===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){var r=wW(e);return r===this?this.pointToData(n):null},t}();function wW(t){var e=t.seriesModel,n=t.polarModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}var SW=xW;function OW(t,e,n){var r=e.get("center"),i=n.getWidth(),o=n.getHeight();t.cx=Jr(r[0],i),t.cy=Jr(r[1],o);var a=t.getRadiusAxis(),s=Math.min(i,o)/2,l=e.get("radius");null==l?l=[0,"100%"]:v["isArray"](l)||(l=[0,l]);var u=[Jr(l[0],s),Jr(l[1],s)];a.inverse?a.setExtent(u[1],u[0]):a.setExtent(u[0],u[1])}function CW(t,e){var n=this,r=n.getAngleAxis(),i=n.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),t.eachSeries((function(t){if(t.coordinateSystem===n){var e=t.getData();v["each"](RS(e,"radius"),(function(t){i.scale.unionExtentFromData(e,t)})),v["each"](RS(e,"angle"),(function(t){r.scale.unionExtentFromData(e,t)}))}})),AS(r.scale,r.model),AS(i.scale,i.model),"category"===r.type&&!r.onBand){var o=r.getExtent(),a=360/r.scale.count();r.inverse?o[1]+=a:o[1]-=a,r.setExtent(o[0],o[1])}}function kW(t){return"angleAxis"===t.mainType}function AW(t,e){if(t.type=e.get("type"),t.scale=MS(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),kW(e)){t.inverse=t.inverse!==e.get("clockwise");var n=e.get("startAngle");t.setExtent(n,n+(t.inverse?-360:360))}e.axis=t,t.model=e}var MW={dimensions:_W,create:function(t,e){var n=[];return t.eachComponent("polar",(function(t,r){var i=new SW(r+"");i.update=CW;var o=i.getRadiusAxis(),a=i.getAngleAxis(),s=t.findAxisModel("radiusAxis"),l=t.findAxisModel("angleAxis");AW(o,s),AW(a,l),OW(i,t,e),n.push(i),t.coordinateSystem=i,i.model=t})),t.eachSeries((function(t){if("polar"===t.get("coordinateSystem")){var e=t.getReferringComponents("polar",Qi).models[0];0,t.coordinateSystem=e.coordinateSystem}})),n}},TW=MW,IW=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function EW(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var r=t.coordToPoint([e[0],n]),i=t.coordToPoint([e[1],n]);return{x1:r[0],y1:r[1],x2:i[0],y2:i[1]}}function PW(t){var e=t.getRadiusAxis();return e.inverse?0:1}function jW(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}var LW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return p(e,t),e.prototype.render=function(t,e){if(this.group.removeAll(),t.get("show")){var n=t.axis,r=n.polar,i=r.getRadiusAxis().getExtent(),o=n.getTicksCoords(),a=n.getMinorTicksCoords(),s=v["map"](n.getViewLabels(),(function(t){t=v["clone"](t);var e=n.scale,r="ordinal"===e.type?e.getRawOrdinalNumber(t.tickValue):t.tickValue;return t.coord=n.dataToCoord(r),t}));jW(s),jW(o),v["each"](IW,(function(e){!t.get([e,"show"])||n.scale.isBlank()&&"axisLine"!==e||DW[e](this.group,t,r,o,a,i,s)}),this)}},e.type="angleAxis",e}(_I),DW={axisLine:function(t,e,n,r,i,o){var a,s=e.getModel(["axisLine","lineStyle"]),l=PW(n),u=l?0:1;a=0===o[u]?new bg({shape:{cx:n.cx,cy:n.cy,r:o[l]},style:s.getLineStyle(),z2:1,silent:!0}):new Gg({shape:{cx:n.cx,cy:n.cy,r:o[l],r0:o[u]},style:s.getLineStyle(),z2:1,silent:!0}),a.style.fill=null,t.add(a)},axisTick:function(t,e,n,r,i,o){var a=e.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=o[PW(n)],u=v["map"](r,(function(t){return new ev({shape:EW(n,[l,l+s],t.coord)})}));t.add(Bv(u,{style:v["defaults"](a.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,n,r,i,o){if(i.length){for(var a=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),u=o[PW(n)],c=[],h=0;h<i.length;h++)for(var f=0;f<i[h].length;f++)c.push(new ev({shape:EW(n,[u,u+l],i[h][f].coord)}));t.add(Bv(c,{style:v["defaults"](s.getModel("lineStyle").getLineStyle(),v["defaults"](a.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(t,e,n,r,i,o,a){var s=e.getCategories(!0),l=e.getModel("axisLabel"),u=l.get("margin"),c=e.get("triggerEvent");v["each"](a,(function(r,i){var a=l,h=r.tickValue,f=o[PW(n)],d=n.coordToPoint([f+u,r.coord]),p=n.cx,g=n.cy,y=Math.abs(d[0]-p)/f<.3?"center":d[0]>p?"left":"right",m=Math.abs(d[1]-g)/f<.3?"middle":d[1]>g?"top":"bottom";if(s&&s[h]){var b=s[h];v["isObject"](b)&&b.textStyle&&(a=new Wu(b.textStyle,l,l.ecModel))}var _=new qs({silent:aI.isLabelSilent(e),style:xu(a,{x:d[0],y:d[1],fill:a.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:r.formattedLabel,align:y,verticalAlign:m})});if(t.add(_),c){var x=aI.makeAxisEventDataBase(e);x.targetType="axisLabel",x.value=r.rawLabel,Gs(_).eventData=x}}),this)},splitLine:function(t,e,n,r,i,o){var a=e.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=0;h<r.length;h++){var f=u++%l.length;c[f]=c[f]||[],c[f].push(new ev({shape:EW(n,o,r[h].coord)}))}for(h=0;h<c.length;h++)t.add(Bv(c[h],{style:v["defaults"]({stroke:l[h%l.length]},s.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(t,e,n,r,i,o){if(i.length){for(var a=e.getModel("minorSplitLine"),s=a.getModel("lineStyle"),l=[],u=0;u<i.length;u++)for(var c=0;c<i[u].length;c++)l.push(new ev({shape:EW(n,o,i[u][c].coord)}));t.add(Bv(l,{style:s.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(t,e,n,r,i,o){if(r.length){var a=e.getModel("splitArea"),s=a.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=Math.PI/180,f=-r[0].coord*h,d=Math.min(o[0],o[1]),p=Math.max(o[0],o[1]),g=e.get("clockwise"),y=1,m=r.length;y<=m;y++){var b=y===m?r[0].coord:r[y].coord,_=u++%l.length;c[_]=c[_]||[],c[_].push(new zg({shape:{cx:n.cx,cy:n.cy,r0:d,r:p,startAngle:f,endAngle:-b*h,clockwise:g},silent:!0})),f=-b*h}for(y=0;y<c.length;y++)t.add(Bv(c[y],{style:v["defaults"]({fill:l[y%l.length]},s.getAreaStyle()),silent:!0}))}}},RW=LW,NW=["axisLine","axisTickLabel","axisName"],BW=["splitLine","splitArea","minorSplitLine"],FW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return p(e,t),e.prototype.render=function(t,e){if(this.group.removeAll(),t.get("show")){var n=this._axisGroup,r=this._axisGroup=new Nr;this.group.add(r);var i=t.axis,o=i.polar,a=o.getAngleAxis(),s=i.getTicksCoords(),l=i.getMinorTicksCoords(),u=a.getExtent()[0],c=i.getExtent(),h=VW(o,t,u),f=new aI(t,h);v["each"](NW,f.add,f),r.add(f.getGroup()),Yv(n,r,t),v["each"](BW,(function(e){t.get([e,"show"])&&!i.scale.isBlank()&&zW[e](this.group,t,o,u,c,s,l)}),this)}},e.type="radiusAxis",e}(_I),zW={splitLine:function(t,e,n,r,i,o){var a=e.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=0;h<o.length;h++){var f=u++%l.length;c[f]=c[f]||[],c[f].push(new bg({shape:{cx:n.cx,cy:n.cy,r:Math.max(o[h].coord,0)}}))}for(h=0;h<c.length;h++)t.add(Bv(c[h],{style:v["defaults"]({stroke:l[h%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(t,e,n,r,i,o,a){if(a.length){for(var s=e.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],c=0;c<a.length;c++)for(var h=0;h<a[c].length;h++)u.push(new bg({shape:{cx:n.cx,cy:n.cy,r:a[c][h].coord}}));t.add(Bv(u,{style:v["defaults"]({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(t,e,n,r,i,o){if(o.length){var a=e.getModel("splitArea"),s=a.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=o[0].coord,f=1;f<o.length;f++){var d=u++%l.length;c[d]=c[d]||[],c[d].push(new zg({shape:{cx:n.cx,cy:n.cy,r0:h,r:o[f].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),h=o[f].coord}for(f=0;f<c.length;f++)t.add(Bv(c[f],{style:v["defaults"]({fill:l[f%l.length]},s.getAreaStyle()),silent:!0}))}}};function VW(t,e,n){return{position:[t.cx,t.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}var qW=FW;function GW(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function HW(t,e){return e.dim+t.model.componentIndex}function WW(t,e,n){var r={},i=UW(v["filter"](e.getSeriesByType(t),(function(t){return!e.isSeriesFiltered(t)&&t.coordinateSystem&&"polar"===t.coordinateSystem.type})));e.eachSeriesByType(t,(function(t){if("polar"===t.coordinateSystem.type){var e=t.getData(),n=t.coordinateSystem,o=n.getBaseAxis(),a=HW(n,o),s=GW(t),l=i[a][s],u=l.offset,c=l.width,h=n.getOtherAxis(o),f=t.coordinateSystem.cx,d=t.coordinateSystem.cy,p=t.get("barMinHeight")||0,g=t.get("barMinAngle")||0;r[s]=r[s]||[];for(var v=e.mapDimension(h.dim),y=e.mapDimension(o.dim),m=aw(e,v),b="radius"!==o.dim||!t.get("roundCap",!0),_=h.dataToCoord(0),x=0,w=e.count();x<w;x++){var S=e.get(v,x),O=e.get(y,x),C=S>=0?"p":"n",k=_;m&&(r[s][O]||(r[s][O]={p:_,n:_}),k=r[s][O][C]);var A=void 0,M=void 0,T=void 0,I=void 0;if("radius"===h.dim){var E=h.dataToCoord(S)-_,P=o.dataToCoord(O);Math.abs(E)<p&&(E=(E<0?-1:1)*p),A=k,M=k+E,T=P-u,I=T-c,m&&(r[s][O][C]=M)}else{var j=h.dataToCoord(S,b)-_,L=o.dataToCoord(O);Math.abs(j)<g&&(j=(j<0?-1:1)*g),A=L+u,M=A+c,T=k,I=k+j,m&&(r[s][O][C]=I)}e.setItemLayout(x,{cx:f,cy:d,r0:A,r:M,startAngle:-T*Math.PI/180,endAngle:-I*Math.PI/180,clockwise:T>=I})}}}))}function UW(t){var e={};v["each"](t,(function(t,n){var r=t.getData(),i=t.coordinateSystem,o=i.getBaseAxis(),a=HW(i,o),s=o.getExtent(),l="category"===o.type?o.getBandWidth():Math.abs(s[1]-s[0])/r.count(),u=e[a]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},c=u.stacks;e[a]=u;var h=GW(t);c[h]||u.autoWidthCount++,c[h]=c[h]||{width:0,maxWidth:0};var f=Jr(t.get("barWidth"),l),d=Jr(t.get("barMaxWidth"),l),p=t.get("barGap"),g=t.get("barCategoryGap");f&&!c[h].width&&(f=Math.min(u.remainedWidth,f),c[h].width=f,u.remainedWidth-=f),d&&(c[h].maxWidth=d),null!=p&&(u.gap=p),null!=g&&(u.categoryGap=g)}));var n={};return v["each"](e,(function(t,e){n[e]={};var r=t.stacks,i=t.bandWidth,o=Jr(t.categoryGap,i),a=Jr(t.gap,1),s=t.remainedWidth,l=t.autoWidthCount,u=(s-o)/(l+(l-1)*a);u=Math.max(u,0),v["each"](r,(function(t,e){var n=t.maxWidth;n&&n<u&&(n=Math.min(n,s),t.width&&(n=Math.min(n,t.width)),s-=n,t.width=n,l--)})),u=(s-o)/(l+(l-1)*a),u=Math.max(u,0);var c,h=0;v["each"](r,(function(t,e){t.width||(t.width=u),c=t,h+=t.width*(1+a)})),c&&(h-=c.width*a);var f=-h/2;v["each"](r,(function(t,r){n[e][r]=n[e][r]||{offset:f,width:t.width},f+=t.width*(1+a)}))})),n}var $W=WW,YW={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},XW={splitNumber:5},KW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.type="polar",e}(Up);function ZW(t){px(iW),_I.registerAxisPointerClass("PolarAxisPointer",uW),t.registerCoordinateSystem("polar",TW),t.registerComponentModel(hW),t.registerComponentView(KW),AT(t,"angle",dW,YW),AT(t,"radius",pW,XW),t.registerComponentView(RW),t.registerComponentView(qW),t.registerLayout(Object(v["curry"])($W,"bar"))}function QW(t,e){e=e||{};var n=t.coordinateSystem,r=t.axis,i={},o=r.position,a=r.orient,s=n.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};i.position=["vertical"===a?u.vertical[o]:l[0],"horizontal"===a?u.horizontal[o]:l[3]];var c={horizontal:0,vertical:1};i.rotation=Math.PI/2*c[a];var h={top:-1,bottom:1,right:1,left:-1};i.labelDirection=i.tickDirection=i.nameDirection=h[o],t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),v["retrieve"](e.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var f=e.rotate;return null==f&&(f=t.get(["axisLabel","rotate"])),i.labelRotation="top"===o?-f:f,i.z2=1,i}var JW=["axisLine","axisTickLabel","axisName"],tU=["splitArea","splitLine"],eU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="SingleAxisPointer",n}return p(e,t),e.prototype.render=function(e,n,r,i){var o=this.group;o.removeAll();var a=this._axisGroup;this._axisGroup=new Nr;var s=QW(e),l=new aI(e,s);v["each"](JW,l.add,l),o.add(this._axisGroup),o.add(l.getGroup()),v["each"](tU,(function(t){e.get([t,"show"])&&nU[t](this,this.group,this._axisGroup,e)}),this),Yv(a,this._axisGroup,e),t.prototype.render.call(this,e,n,r,i)},e.prototype.remove=function(){SI(this)},e.type="singleAxis",e}(_I),nU={splitLine:function(t,e,n,r){var i=r.axis;if(!i.scale.isBlank()){var o=r.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=s instanceof Array?s:[s];for(var l=a.get("width"),u=r.coordinateSystem.getRect(),c=i.isHorizontal(),h=[],f=0,d=i.getTicksCoords({tickModel:o}),p=[],g=[],y=0;y<d.length;++y){var m=i.toGlobalCoord(d[y].coord);c?(p[0]=m,p[1]=u.y,g[0]=m,g[1]=u.y+u.height):(p[0]=u.x,p[1]=m,g[0]=u.x+u.width,g[1]=m);var b=new ev({shape:{x1:p[0],y1:p[1],x2:g[0],y2:g[1]},silent:!0});zv(b.shape,l);var _=f++%s.length;h[_]=h[_]||[],h[_].push(b)}var x=a.getLineStyle(["color"]);for(y=0;y<h.length;++y)e.add(Bv(h[y],{style:v["defaults"]({stroke:s[y%s.length]},x),silent:!0}))}},splitArea:function(t,e,n,r){wI(t,n,r,r)}},rU=eU,iU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.getCoordSysModel=function(){return this},e.type="singleAxis",e.layoutMode="box",e.defaultOption={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}}},e}(vh);Object(v["mixin"])(iU,BS.prototype);var oU=iU,aU=function(t){function e(e,n,r,i,o){var a=t.call(this,e,n,r)||this;return a.type=i||"value",a.position=o||"bottom",a}return p(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.pointToData=function(t,e){return this.coordinateSystem.pointToData(t)[0]},e}(kO),sU=aU,lU=["single"],uU=function(){function t(t,e,n){this.type="single",this.dimension="single",this.dimensions=lU,this.axisPointerEnabled=!0,this.model=t,this._init(t,e,n)}return t.prototype._init=function(t,e,n){var r=this.dimension,i=new sU(r,MS(t),[0,0],t.get("type"),t.get("position")),o="category"===i.type;i.onBand=o&&t.get("boundaryGap"),i.inverse=t.get("inverse"),i.orient=t.get("orient"),t.axis=i,i.model=t,i.coordinateSystem=this,this._axis=i},t.prototype.update=function(t,e){t.eachSeries((function(t){if(t.coordinateSystem===this){var e=t.getData();Object(v["each"])(e.mapDimensionsAll(this.dimension),(function(t){this._axis.scale.unionExtentFromData(e,t)}),this),AS(this._axis.scale,this._axis.model)}}),this)},t.prototype.resize=function(t,e){this._rect=ah({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:e.getWidth(),height:e.getHeight()}),this._adjustAxis()},t.prototype.getRect=function(){return this._rect},t.prototype._adjustAxis=function(){var t=this._rect,e=this._axis,n=e.isHorizontal(),r=n?[0,t.width]:[0,t.height],i=e.inverse?1:0;e.setExtent(r[i],r[1-i]),this._updateAxisTransform(e,n?t.x:t.y)},t.prototype._updateAxisTransform=function(t,e){var n=t.getExtent(),r=n[0]+n[1],i=t.isHorizontal();t.toGlobalCoord=i?function(t){return t+e}:function(t){return r-t+e},t.toLocalCoord=i?function(t){return t-e}:function(t){return r-t+e}},t.prototype.getAxis=function(){return this._axis},t.prototype.getBaseAxis=function(){return this._axis},t.prototype.getAxes=function(){return[this._axis]},t.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},t.prototype.containPoint=function(t){var e=this.getRect(),n=this.getAxis(),r=n.orient;return"horizontal"===r?n.contain(n.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},t.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},t.prototype.dataToPoint=function(t){var e=this.getAxis(),n=this.getRect(),r=[],i="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),r[i]=e.toGlobalCoord(e.dataToCoord(+t)),r[1-i]=0===i?n.y+n.height/2:n.x+n.width/2,r},t.prototype.convertToPixel=function(t,e,n){var r=cU(e);return r===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){var r=cU(e);return r===this?this.pointToData(n):null},t}();function cU(t){var e=t.seriesModel,n=t.singleAxisModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}var hU=uU;function fU(t,e){var n=[];return t.eachComponent("singleAxis",(function(r,i){var o=new hU(r,t,e);o.name="single_"+i,o.resize(r,e),r.coordinateSystem=o,n.push(o)})),t.eachSeries((function(t){if("singleAxis"===t.get("coordinateSystem")){var e=t.getReferringComponents("singleAxis",Qi).models[0];t.coordinateSystem=e&&e.coordinateSystem}})),n}var dU={create:fU,dimensions:lU},pU=dU,gU=["x","y"],vU=["width","height"],yU=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.makeElOption=function(t,e,n,r,i){var o=n.axis,a=o.coordinateSystem,s=_U(a,1-bU(o)),l=a.dataToPoint(e)[0],u=r.get("type");if(u&&"none"!==u){var c=mH(r),h=mU[u](o,l,s);h.style=c,t.graphicKey=h.type,t.pointer=h}var f=QW(n);SH(e,t,f,n,r,i)},e.prototype.getHandleTransform=function(t,e,n){var r=QW(e,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=wH(e.axis,t,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,r){var i=n.axis,o=i.coordinateSystem,a=bU(i),s=_U(o,a),l=[t.x,t.y];l[a]+=e[a],l[a]=Math.min(s[1],l[a]),l[a]=Math.max(s[0],l[a]);var u=_U(o,1-a),c=(u[1]+u[0])/2,h=[c,c];return h[a]=l[a],{x:l[0],y:l[1],rotation:t.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},e}(yH),mU={line:function(t,e,n){var r=OH([e,n[0]],[e,n[1]],bU(t));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(t,e,n){var r=t.getBandWidth(),i=n[1]-n[0];return{type:"Rect",shape:CH([e-r/2,n[0]],[r,i],bU(t))}}};function bU(t){return t.isHorizontal()?0:1}function _U(t,e){var n=t.getRect();return[n[gU[e]],n[gU[e]]+n[vU[e]]]}var xU=yU,wU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.type="single",e}(Up);function SU(t){px(iW),_I.registerAxisPointerClass("SingleAxisPointer",xU),t.registerComponentView(wU),t.registerComponentView(rU),t.registerComponentModel(oU),AT(t,"single",oU,oU.defaultOption),t.registerCoordinateSystem("single",pU)}var OU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.init=function(e,n,r){var i=hh(e);t.prototype.init.apply(this,arguments),CU(e,i)},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),CU(this.option,e)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={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%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(vh);function CU(t,e){var n,r=t.cellSize;n=v["isArray"](r)?r:t.cellSize=[r,r],1===n.length&&(n[1]=n[0]);var i=v["map"]([0,1],(function(t){return lh(e,t)&&(n[t]="auto"),null!=n[t]&&"auto"!==n[t]}));ch(t,e,{type:"box",ignoreSize:i})}var kU=OU,AU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.render=function(t,e,n){var r=this.group;r.removeAll();var i=t.coordinateSystem,o=i.getRangeInfo(),a=i.getOrient(),s=e.getLocaleModel();this._renderDayRect(t,o,r),this._renderLines(t,o,a,r),this._renderYearText(t,o,a,r),this._renderMonthText(t,s,a,r),this._renderWeekText(t,s,o,a,r)},e.prototype._renderDayRect=function(t,e,n){for(var r=t.coordinateSystem,i=t.getModel("itemStyle").getItemStyle(),o=r.getCellWidth(),a=r.getCellHeight(),s=e.start.time;s<=e.end.time;s=r.getNextNDay(s,1).time){var l=r.dataToRect([s],!1).tl,u=new Os({shape:{x:l[0],y:l[1],width:o,height:a},cursor:"default",style:i});n.add(u)}},e.prototype._renderLines=function(t,e,n,r){var i=this,o=t.coordinateSystem,a=t.getModel(["splitLine","lineStyle"]).getLineStyle(),s=t.get(["splitLine","show"]),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=e.start,c=0;u.time<=e.end.time;c++){f(u.formatedDate),0===c&&(u=o.getDateInfo(e.start.y+"-"+e.start.m));var h=u.date;h.setMonth(h.getMonth()+1),u=o.getDateInfo(h)}function f(e){i._firstDayOfMonth.push(o.getDateInfo(e)),i._firstDayPoints.push(o.dataToRect([e],!1).tl);var l=i._getLinePointsOfOneWeek(t,e,n);i._tlpoints.push(l[0]),i._blpoints.push(l[l.length-1]),s&&i._drawSplitline(l,a,r)}f(o.getNextNDay(e.end.time,1).formatedDate),s&&this._drawSplitline(i._getEdgesPoints(i._tlpoints,l,n),a,r),s&&this._drawSplitline(i._getEdgesPoints(i._blpoints,l,n),a,r)},e.prototype._getEdgesPoints=function(t,e,n){var r=[t[0].slice(),t[t.length-1].slice()],i="horizontal"===n?0:1;return r[0][i]=r[0][i]-e/2,r[1][i]=r[1][i]+e/2,r},e.prototype._drawSplitline=function(t,e,n){var r=new Zg({z2:20,shape:{points:t},style:e});n.add(r)},e.prototype._getLinePointsOfOneWeek=function(t,e,n){for(var r=t.coordinateSystem,i=r.getDateInfo(e),o=[],a=0;a<7;a++){var s=r.getNextNDay(i.time,a),l=r.dataToRect([s.time],!1);o[2*s.day]=l.tl,o[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return o},e.prototype._formatterLabel=function(t,e){return Object(v["isString"])(t)&&t?Yc(t,e):Object(v["isFunction"])(t)?t(e):e.nameMap},e.prototype._yearTextPositionControl=function(t,e,n,r,i){var o=e[0],a=e[1],s=["center","bottom"];"bottom"===r?(a+=i,s=["center","top"]):"left"===r?o-=i:"right"===r?(o+=i,s=["center","top"]):a-=i;var l=0;return"left"!==r&&"right"!==r||(l=Math.PI/2),{rotation:l,x:o,y:a,style:{align:s[0],verticalAlign:s[1]}}},e.prototype._renderYearText=function(t,e,n,r){var i=t.getModel("yearLabel");if(i.get("show")){var o=i.get("margin"),a=i.get("position");a||(a="horizontal"!==n?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,u=(s[0][1]+s[1][1])/2,c="horizontal"===n?0:1,h={top:[l,s[c][1]],bottom:[l,s[1-c][1]],left:[s[1-c][0],u],right:[s[c][0],u]},f=e.start.y;+e.end.y>+e.start.y&&(f=f+"-"+e.end.y);var d=i.get("formatter"),p={start:e.start.y,end:e.end.y,nameMap:f},g=this._formatterLabel(d,p),v=new qs({z2:30,style:xu(i,{text:g})});v.attr(this._yearTextPositionControl(v,h[a],n,a,o)),r.add(v)}},e.prototype._monthTextPositionControl=function(t,e,n,r,i){var o="left",a="top",s=t[0],l=t[1];return"horizontal"===n?(l+=i,e&&(o="center"),"start"===r&&(a="bottom")):(s+=i,e&&(a="middle"),"start"===r&&(o="right")),{x:s,y:l,align:o,verticalAlign:a}},e.prototype._renderMonthText=function(t,e,n,r){var i=t.getModel("monthLabel");if(i.get("show")){var o=i.get("nameMap"),a=i.get("margin"),s=i.get("position"),l=i.get("align"),u=[this._tlpoints,this._blpoints];o&&!Object(v["isString"])(o)||(o&&(e=sc(o)||e),o=e.get(["time","monthAbbr"])||[]);var c="start"===s?0:1,h="horizontal"===n?0:1;a="start"===s?-a:a;for(var f="center"===l,d=0;d<u[c].length-1;d++){var p=u[c][d].slice(),g=this._firstDayOfMonth[d];if(f){var y=this._firstDayPoints[d];p[h]=(y[h]+u[0][d+1][h])/2}var m=i.get("formatter"),b=o[+g.m-1],_={yyyy:g.y,yy:(g.y+"").slice(2),MM:g.m,M:+g.m,nameMap:b},x=this._formatterLabel(m,_),w=new qs({z2:30,style:Object(v["extend"])(xu(i,{text:x}),this._monthTextPositionControl(p,f,n,s,a))});r.add(w)}}},e.prototype._weekTextPositionControl=function(t,e,n,r,i){var o="center",a="middle",s=t[0],l=t[1],u="start"===n;return"horizontal"===e?(s=s+r+(u?1:-1)*i[0]/2,o=u?"right":"left"):(l=l+r+(u?1:-1)*i[1]/2,a=u?"bottom":"top"),{x:s,y:l,align:o,verticalAlign:a}},e.prototype._renderWeekText=function(t,e,n,r,i){var o=t.getModel("dayLabel");if(o.get("show")){var a=t.coordinateSystem,s=o.get("position"),l=o.get("nameMap"),u=o.get("margin"),c=a.getFirstDayOfWeek();if(!l||Object(v["isString"])(l)){l&&(e=sc(l)||e);var h=e.get(["time","dayOfWeekShort"]);l=h||Object(v["map"])(e.get(["time","dayOfWeekAbbr"]),(function(t){return t[0]}))}var f=a.getNextNDay(n.end.time,7-n.lweek).time,d=[a.getCellWidth(),a.getCellHeight()];u=Jr(u,Math.min(d[1],d[0])),"start"===s&&(f=a.getNextNDay(n.start.time,-(7+n.fweek)).time,u=-u);for(var p=0;p<7;p++){var g=a.getNextNDay(f,p),y=a.dataToRect([g.time],!1).center,m=p;m=Math.abs((p+c)%7);var b=new qs({z2:30,style:Object(v["extend"])(xu(o,{text:l[m]}),this._weekTextPositionControl(y,r,s,u,d))});i.add(b)}}},e.type="calendar",e}(Up),MU=AU,TU=864e5,IU=function(){function t(e,n,r){this.type="calendar",this.dimensions=t.dimensions,this.getDimensionsInfo=t.getDimensionsInfo,this._model=e}return t.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},t.prototype.getRangeInfo=function(){return this._rangeInfo},t.prototype.getModel=function(){return this._model},t.prototype.getRect=function(){return this._rect},t.prototype.getCellWidth=function(){return this._sw},t.prototype.getCellHeight=function(){return this._sh},t.prototype.getOrient=function(){return this._orient},t.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},t.prototype.getDateInfo=function(t){t=fi(t);var e=t.getFullYear(),n=t.getMonth()+1,r=n<10?"0"+n:""+n,i=t.getDate(),o=i<10?"0"+i:""+i,a=t.getDay();return a=Math.abs((a+7-this.getFirstDayOfWeek())%7),{y:e+"",m:r,d:o,day:a,time:t.getTime(),formatedDate:e+"-"+r+"-"+o,date:t}},t.prototype.getNextNDay=function(t,e){return e=e||0,0===e||(t=new Date(this.getDateInfo(t).time),t.setDate(t.getDate()+e)),this.getDateInfo(t)},t.prototype.update=function(t,e){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,r=["width","height"],i=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),a="horizontal"===this._orient?[n,7]:[7,n];v["each"]([0,1],(function(t){u(i,t)&&(o[r[t]]=i[t]*a[t])}));var s={width:e.getWidth(),height:e.getHeight()},l=this._rect=ah(o,s);function u(t,e){return null!=t[e]&&"auto"!==t[e]}v["each"]([0,1],(function(t){u(i,t)||(i[t]=l[r[t]]/a[t])})),this._sw=i[0],this._sh=i[1]},t.prototype.dataToPoint=function(t,e){v["isArray"](t)&&(t=t[0]),null==e&&(e=!0);var n=this.getDateInfo(t),r=this._rangeInfo,i=n.formatedDate;if(e&&!(n.time>=r.start.time&&n.time<r.end.time+TU))return[NaN,NaN];var o=n.day,a=this._getRangeInfo([r.start.time,i]).nthWeek;return"vertical"===this._orient?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+a*this._sh+this._sh/2]:[this._rect.x+a*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},t.prototype.pointToData=function(t){var e=this.pointToDate(t);return e&&e.time},t.prototype.dataToRect=function(t,e){var n=this.dataToPoint(t,e);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]}},t.prototype.pointToDate=function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,n=Math.floor((t[1]-this._rect.y)/this._sh)+1,r=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,e-1,r):this._getDateByWeeksAndDay(e,n-1,r)},t.prototype.convertToPixel=function(t,e,n){var r=EU(e);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){var r=EU(e);return r===this?r.pointToData(n):null},t.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},t.prototype._initRangeOption=function(){var t,e=this._model.get("range");if(v["isArray"](e)&&1===e.length&&(e=e[0]),v["isArray"](e))t=e;else{var n=e.toString();if(/^\d{4}$/.test(n)&&(t=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var r=this.getDateInfo(n),i=r.date;i.setMonth(i.getMonth()+1);var o=this.getNextNDay(i,-1);t=[r.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(t=[n,n])}if(!t)return e;var a=this._getRangeInfo(t);return a.start.time>a.end.time&&t.reverse(),t},t.prototype._getRangeInfo=function(t){var e,n=[this.getDateInfo(t[0]),this.getDateInfo(t[1])];n[0].time>n[1].time&&(e=!0,n.reverse());var r=Math.floor(n[1].time/TU)-Math.floor(n[0].time/TU)+1,i=new Date(n[0].time),o=i.getDate(),a=n[1].date.getDate();i.setDate(o+r-1);var s=i.getDate();if(s!==a){var l=i.getTime()-n[1].time>0?1:-1;while((s=i.getDate())!==a&&(i.getTime()-n[1].time)*l>0)r-=l,i.setDate(s-l)}var u=Math.floor((r+n[0].day+6)/7),c=e?1-u:u-1;return e&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:r,weeks:u,nthWeek:c,fweek:n[0].day,lweek:n[1].day}},t.prototype._getDateByWeeksAndDay=function(t,e,n){var r=this._getRangeInfo(n);if(t>r.weeks||0===t&&e<r.fweek||t===r.weeks&&e>r.lweek)return null;var i=7*(t-1)-r.fweek+e,o=new Date(r.start.time);return o.setDate(+r.start.d+i),this.getDateInfo(o)},t.create=function(e,n){var r=[];return e.eachComponent("calendar",(function(i){var o=new t(i,e,n);r.push(o),i.coordinateSystem=o})),e.eachSeries((function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=r[t.get("calendarIndex")||0])})),r},t.dimensions=["time","value"],t}();function EU(t){var e=t.calendarModel,n=t.seriesModel,r=e?e.coordinateSystem:n?n.coordinateSystem:null;return r}var PU=IU;function jU(t){t.registerComponentModel(kU),t.registerComponentView(MU),t.registerCoordinateSystem("calendar",PU)}function LU(t,e){var n=t.existing;if(e.id=t.keyInfo.id,!e.type&&n&&(e.type=n.type),null==e.parentId){var r=e.parentOption;r?e.parentId=r.id:n&&(e.parentId=n.parentId)}e.parentOption=null}function DU(t,e){var n;return v["each"](e,(function(e){null!=t[e]&&"auto"!==t[e]&&(n=!0)})),n}function RU(t,e,n){var r=v["extend"]({},n),i=t[e],o=n.$action||"merge";"merge"===o?i?(v["merge"](i,r,!0),ch(i,r,{ignoreSize:!0}),fh(n,i),FU(n,i),FU(n,i,"shape"),FU(n,i,"style"),FU(n,i,"extra"),n.clipPath=i.clipPath):t[e]=r:"replace"===o?t[e]=r:"remove"===o&&i&&(t[e]=null)}var NU=["transition","enterFrom","leaveTo"],BU=NU.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function FU(t,e,n){if(n&&(!t[n]&&e[n]&&(t[n]={}),t=t[n],e=e[n]),t&&e)for(var r=n?NU:BU,i=0;i<r.length;i++){var o=r[i];null==t[o]&&null!=e[o]&&(t[o]=e[o])}}function zU(t,e){if(t&&(t.hv=e.hv=[DU(e,["left","right"]),DU(e,["top","bottom"])],"group"===t.type)){var n=t,r=e;null==n.width&&(n.width=r.width=0),null==n.height&&(n.height=r.height=0)}}var VU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventAutoZ=!0,n}return p(e,t),e.prototype.mergeOption=function(e,n){var r=this.option.elements;this.option.elements=null,t.prototype.mergeOption.call(this,e,n),this.option.elements=r},e.prototype.optionUpdated=function(t,e){var n=this.option,r=(e?n:t).elements,i=n.elements=e?[]:n.elements,o=[];this._flatten(r,o,null);var a=Ei(i,o,"normalMerge"),s=this._elOptionsToUpdate=[];v["each"](a,(function(t,e){var n=t.newOption;n&&(s.push(n),LU(t,n),RU(i,e,n),zU(i[e],n))}),this),n.elements=v["filter"](i,(function(t){return t&&delete t.$action,null!=t}))},e.prototype._flatten=function(t,e,n){v["each"](t,(function(t){if(t){n&&(t.parentOption=n),e.push(t);var r=t.children;r&&r.length&&this._flatten(r,e,t),delete t.children}}),this)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e}(vh),qU={path:null,compoundPath:null,group:Nr,image:gs,text:qs},GU=Yi(),HU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.init=function(){this._elMap=v["createHashMap"]()},e.prototype.render=function(t,e,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},e.prototype._updateElements=function(t){var e=t.useElOptionsToUpdate();if(e){var n=this._elMap,r=this.group,i=t.get("z"),o=t.get("zlevel");v["each"](e,(function(e){var a=zi(e.id,null),s=null!=a?n.get(a):null,l=zi(e.parentId,null),u=null!=l?n.get(l):r,c=e.type,h=e.style;"text"===c&&h&&e.hv&&e.hv[1]&&(h.textVerticalAlign=h.textBaseline=h.verticalAlign=h.align=null);var f=e.textContent,d=e.textConfig;if(h&&Uq(h,c,!!d,!!f)){var p=$q(h,c,!0);!d&&p.textConfig&&(d=e.textConfig=p.textConfig),!f&&p.textContent&&(f=p.textContent)}var g=XU(e);var v=e.$action||"merge",y="merge"===v,m="replace"===v;if(y){var b=!s,_=s;b?_=UU(a,u,e.type,n):(_&&(GU(_).isNew=!1),_G(_)),_&&(nG(_,g,t,{isInit:b}),YU(_,e,i,o))}else if(m){$U(s,e,n,t);var x=UU(a,u,e.type,n);x&&(nG(x,g,t,{isInit:!0}),YU(x,e,i,o))}else"remove"===v&&(rG(s,e),$U(s,e,n,t));var w=n.get(a);if(w&&f)if(y){var S=w.getTextContent();S?S.attr(f):w.setTextContent(new qs(f))}else m&&w.setTextContent(new qs(f));if(w){var O=e.clipPath;if(O){var C=O.type,k=void 0;b=!1;if(y){var A=w.getClipPath();b=!A||GU(A).type!==C,k=b?WU(C):A}else m&&(b=!0,k=WU(C));w.setClipPath(k),nG(k,O,t,{isInit:b}),xG(k,O.keyframeAnimation,t)}var M=GU(w);w.setTextConfig(d),M.option=e,KU(w,t,e),ny({el:w,componentModel:t,itemName:w.name,itemTooltipOption:e.tooltip}),xG(w,e.keyframeAnimation,t)}}))}},e.prototype._relocate=function(t,e){for(var n=t.option.elements,r=this.group,i=this._elMap,o=e.getWidth(),a=e.getHeight(),s=["x","y"],l=0;l<n.length;l++){var u=n[l],c=zi(u.id,null),h=null!=c?i.get(c):null;if(h&&h.isGroup){var f=h.parent,d=f===r,p=GU(h),g=GU(f);p.width=Jr(p.option.width,d?o:g.width)||0,p.height=Jr(p.option.height,d?a:g.height)||0}}for(l=n.length-1;l>=0;l--){u=n[l],c=zi(u.id,null),h=null!=c?i.get(c):null;if(h){f=h.parent,g=GU(f);var y=f===r?{width:o,height:a}:{width:g.width,height:g.height},m={},b=sh(h,u,y,null,{hv:u.hv,boundingMode:u.bounding},m);if(!GU(h).isNew&&b){for(var _=u.transition,x={},w=0;w<s.length;w++){var S=s[w],O=m[S];_&&(oG(_)||v["indexOf"](_,S)>=0)?x[S]=O:h[S]=O}lu(h,x,t,0)}else h.attr(m)}}},e.prototype._clear=function(){var t=this,e=this._elMap;e.each((function(n){$U(n,GU(n).option,e,t._lastGraphicModel)})),this._elMap=v["createHashMap"]()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(Up);function WU(t){var e=v["hasOwn"](qU,t)?qU[t]:Lv(t);var n=new e({});return GU(n).type=t,n}function UU(t,e,n,r){var i=WU(n);return e.add(i),r.set(t,i),GU(i).id=t,GU(i).isNew=!0,i}function $U(t,e,n,r){var i=t&&t.parent;i&&("group"===t.type&&t.traverse((function(t){$U(t,e,n,r)})),iG(t,e,r),n.removeKey(GU(t).id))}function YU(t,e,n,r){t.isGroup||v["each"]([["cursor",ta.prototype.cursor],["zlevel",r||0],["z",n||0],["z2",0]],(function(n){var r=n[0];v["hasOwn"](e,r)?t[r]=v["retrieve2"](e[r],n[1]):null==t[r]&&(t[r]=n[1])})),v["each"](v["keys"](e),(function(n){if(0===n.indexOf("on")){var r=e[n];t[n]=v["isFunction"](r)?r:null}})),v["hasOwn"](e,"draggable")&&(t.draggable=e.draggable),null!=e.name&&(t.name=e.name),null!=e.id&&(t.id=e.id)}function XU(t){return t=v["extend"]({},t),v["each"](["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(eh),(function(e){delete t[e]})),t}function KU(t,e,n){var r=Gs(t).eventData;t.silent||t.ignore||r||(r=Gs(t).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name}),r&&(r.info=n.info)}function ZU(t){t.registerComponentModel(VU),t.registerComponentView(HU),t.registerPreprocessor((function(t){var e=t.graphic;Object(v["isArray"])(e)?e[0]&&e[0].elements?t.graphic=[t.graphic[0]]:t.graphic=[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])}))}var QU=["x","y","radius","angle","single"],JU=["cartesian2d","polar","singleAxis"];function t$(t){var e=t.get("coordinateSystem");return Object(v["indexOf"])(JU,e)>=0}function e$(t){return t+"Axis"}function n$(t,e){var n,r=Object(v["createHashMap"])(),i=[],o=Object(v["createHashMap"])();t.eachComponent({mainType:"dataZoom",query:e},(function(t){o.get(t.uid)||s(t)}));do{n=!1,t.eachComponent("dataZoom",a)}while(n);function a(t){!o.get(t.uid)&&l(t)&&(s(t),n=!0)}function s(t){o.set(t.uid,!0),i.push(t),u(t)}function l(t){var e=!1;return t.eachTargetAxis((function(t,n){var i=r.get(t);i&&i[n]&&(e=!0)})),e}function u(t){t.eachTargetAxis((function(t,e){(r.get(t)||r.set(t,[]))[e]=!0}))}return i}function r$(t){var e=t.ecModel,n={infoList:[],infoMap:Object(v["createHashMap"])()};return t.eachTargetAxis((function(t,r){var i=e.getComponent(e$(t),r);if(i){var o=i.getCoordSysModel();if(o){var a=o.uid,s=n.infoMap.get(a);s||(s={model:o,axisModels:[]},n.infoList.push(s),n.infoMap.set(a,s)),s.axisModels.push(i)}}})),n}var i$=function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},t}(),o$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return p(e,t),e.prototype.init=function(t,e,n){var r=a$(t);this.settledOption=r,this.mergeDefaultAndTheme(t,n),this._doInit(r)},e.prototype.mergeOption=function(t){var e=a$(t);Object(v["merge"])(this.option,t,!0),Object(v["merge"])(this.settledOption,e,!0),this._doInit(e)},e.prototype._doInit=function(t){var e=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var n=this.settledOption;Object(v["each"])([["start","startValue"],["end","endValue"]],(function(t,r){"value"===this._rangePropMode[r]&&(e[t[0]]=n[t[0]]=null)}),this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),e=this._targetAxisInfoMap=Object(v["createHashMap"])(),n=this._fillSpecifiedTargetAxis(e);n?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(e,this._orient)),this._noTarget=!0,e.each((function(t){t.indexList.length&&(this._noTarget=!1)}),this)},e.prototype._fillSpecifiedTargetAxis=function(t){var e=!1;return Object(v["each"])(QU,(function(n){var r=this.getReferringComponents(e$(n),Ji);if(r.specified){e=!0;var i=new i$;Object(v["each"])(r.models,(function(t){i.add(t.componentIndex)})),t.set(n,i)}}),this),e},e.prototype._fillAutoTargetAxisByOrient=function(t,e){var n=this.ecModel,r=!0;if(r){var i="vertical"===e?"y":"x",o=n.findComponents({mainType:i+"Axis"});a(o,i)}if(r){o=n.findComponents({mainType:"singleAxis",filter:function(t){return t.get("orient",!0)===e}});a(o,"single")}function a(e,n){var i=e[0];if(i){var o=new i$;if(o.add(i.componentIndex),t.set(n,o),r=!1,"x"===n||"y"===n){var a=i.getReferringComponents("grid",Qi).models[0];a&&Object(v["each"])(e,(function(t){i.componentIndex!==t.componentIndex&&a===t.getReferringComponents("grid",Qi).models[0]&&o.add(t.componentIndex)}))}}}r&&Object(v["each"])(QU,(function(e){if(r){var i=n.findComponents({mainType:e$(e),filter:function(t){return"category"===t.get("type",!0)}});if(i[0]){var o=new i$;o.add(i[0].componentIndex),t.set(e,o),r=!1}}}),this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis((function(e){!t&&(t=e)}),this),"y"===t?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var e=this.ecModel.option;this.option.throttle=e.animation&&e.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var e=this._rangePropMode,n=this.get("rangeMode");Object(v["each"])([["start","startValue"],["end","endValue"]],(function(r,i){var o=null!=t[r[0]],a=null!=t[r[1]];o&&!a?e[i]="percent":!o&&a?e[i]="value":n?e[i]=n[i]:o&&(e[i]="percent")}))},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis((function(e,n){null==t&&(t=this.ecModel.getComponent(e$(e),n))}),this),t},e.prototype.eachTargetAxis=function(t,e){this._targetAxisInfoMap.each((function(n,r){Object(v["each"])(n.indexList,(function(n){t.call(e,r,n)}))}))},e.prototype.getAxisProxy=function(t,e){var n=this.getAxisModel(t,e);if(n)return n.__dzAxisProxy},e.prototype.getAxisModel=function(t,e){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[e])return this.ecModel.getComponent(e$(t),e)},e.prototype.setRawRange=function(t){var e=this.option,n=this.settledOption;Object(v["each"])([["start","startValue"],["end","endValue"]],(function(r){null==t[r[0]]&&null==t[r[1]]||(e[r[0]]=n[r[0]]=t[r[0]],e[r[1]]=n[r[1]]=t[r[1]])}),this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var e=this.option;Object(v["each"])(["start","startValue","end","endValue"],(function(n){e[n]=t[n]}))},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var e,n=this._targetAxisInfoMap.keys(),r=0;r<n.length;r++)for(var i=n[r],o=this._targetAxisInfoMap.get(i),a=0;a<o.indexList.length;a++){var s=this.getAxisProxy(i,o.indexList[a]);if(s.hostedBy(this))return s;e||(e=s)}return e},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e}(vh);function a$(t){var e={};return Object(v["each"])(["start","end","startValue","endValue","throttle"],(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e}var s$=o$,l$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.type="dataZoom.select",e}(s$),u$=l$,c$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.render=function(t,e,n,r){this.dataZoomModel=t,this.ecModel=e,this.api=n},e.type="dataZoom",e}(Up),h$=c$,f$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.type="dataZoom.select",e}(h$),d$=f$,p$=v["each"],g$=ei,v$=function(){function t(t,e,n,r){this._dimName=t,this._axisIndex=e,this.ecModel=r,this._dataZoomModel=n}return t.prototype.hostedBy=function(t){return this._dataZoomModel===t},t.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},t.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},t.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries((function(e){if(t$(e)){var n=e$(this._dimName),r=e.getReferringComponents(n,Qi).models[0];r&&this._axisIndex===r.componentIndex&&t.push(e)}}),this),t},t.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},t.prototype.getMinMaxSpan=function(){return v["clone"](this._minMaxSpan)},t.prototype.calculateDataWindow=function(t){var e,n=this._dataExtent,r=this.getAxisModel(),i=r.axis.scale,o=this._dataZoomModel.getRangePropMode(),a=[0,100],s=[],l=[];p$(["start","end"],(function(r,u){var c=t[r],h=t[r+"Value"];"percent"===o[u]?(null==c&&(c=a[u]),h=i.parse(Qr(c,a,n))):(e=!0,h=null==h?n[u]:i.parse(h),c=Qr(h,n,a)),l[u]=h,s[u]=c})),g$(l),g$(s);var u=this._minMaxSpan;function c(t,e,n,r,o){var a=o?"Span":"ValueSpan";BN(0,t,n,"all",u["min"+a],u["max"+a]);for(var s=0;s<2;s++)e[s]=Qr(t[s],n,r,!0),o&&(e[s]=i.parse(e[s]))}return e?c(l,s,n,a,!1):c(s,l,a,n,!0),{valueWindow:l,percentWindow:s}},t.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=y$(this,this._dimName,e),this._updateMinMaxSpan();var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},t.prototype.filterData=function(t,e){if(t===this._dataZoomModel){var n=this._dimName,r=this.getTargetSeriesModels(),i=t.get("filterMode"),o=this._valueWindow;"none"!==i&&p$(r,(function(t){var e=t.getData(),r=e.mapDimensionsAll(n);if(r.length){if("weakFilter"===i){var s=e.getStore(),l=v["map"](r,(function(t){return e.getDimensionIndex(t)}),e);e.filterSelf((function(t){for(var e,n,i,a=0;a<r.length;a++){var u=s.get(l[a],t),c=!isNaN(u),h=u<o[0],f=u>o[1];if(c&&!h&&!f)return!0;c&&(i=!0),h&&(e=!0),f&&(n=!0)}return i&&e&&n}))}else p$(r,(function(n){if("empty"===i)t.setData(e=e.map(n,(function(t){return a(t)?t:NaN})));else{var r={};r[n]=o,e.selectRange(r)}}));p$(r,(function(t){e.setApproximateExtent(o,t)}))}}))}function a(t){return t>=o[0]&&t<=o[1]}},t.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;p$(["min","max"],(function(r){var i=e.get(r+"Span"),o=e.get(r+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?i=Qr(n[0]+o,n,[0,100],!0):null!=i&&(o=Qr(i,[0,100],n,!0)-n[0]),t[r+"Span"]=i,t[r+"ValueSpan"]=o}),this)},t.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var r=ii(n,[0,500]);r=Math.min(r,20);var i=t.axis.scale.rawExtentInfo;0!==e[0]&&i.setDeterminedMinMax("min",+n[0].toFixed(r)),100!==e[1]&&i.setDeterminedMinMax("max",+n[1].toFixed(r)),i.freeze()}},t}();function y$(t,e,n){var r=[1/0,-1/0];p$(n,(function(t){NS(r,t.getData(),e)}));var i=t.getAxisModel(),o=SS(i.axis.scale,i,r).calculate();return[o.min,o.max]}var m$=v$,b$={getTargetSeries:function(t){function e(e){t.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(r,i){var o=t.getComponent(e$(r),i);e(r,i,o,n)}))}))}e((function(t,e,n,r){n.__dzAxisProxy=null}));var n=[];e((function(e,r,i,o){i.__dzAxisProxy||(i.__dzAxisProxy=new m$(e,r,o,t),n.push(i.__dzAxisProxy))}));var r=Object(v["createHashMap"])();return Object(v["each"])(n,(function(t){Object(v["each"])(t.getTargetSeriesModels(),(function(t){r.set(t.uid,t)}))})),r},overallReset:function(t,e){t.eachComponent("dataZoom",(function(t){t.eachTargetAxis((function(e,n){t.getAxisProxy(e,n).reset(t)})),t.eachTargetAxis((function(n,r){t.getAxisProxy(n,r).filterData(t,e)}))})),t.eachComponent("dataZoom",(function(t){var e=t.findRepresentativeAxisProxy();if(e){var n=e.getDataPercentWindow(),r=e.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:r[0],endValue:r[1]})}}))}},_$=b$;function x$(t){t.registerAction("dataZoom",(function(t,e){var n=n$(e,t);Object(v["each"])(n,(function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})}))}))}var w$=!1;function S$(t){w$||(w$=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,_$),x$(t),t.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function O$(t){t.registerComponentModel(u$),t.registerComponentView(d$),S$(t)}var C$=function(){function t(){}return t}(),k$={};function A$(t,e){k$[t]=e}function M$(t){return k$[t]}var T$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;v["each"](this.option.feature,(function(t,n){var r=M$(n);r&&(r.getDefaultOption&&(r.defaultOption=r.getDefaultOption(e)),v["merge"](t,r.defaultOption))}))},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,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,position:"bottom"}},e}(vh),I$=T$;function E$(t,e,n){var r=e.getBoxLayoutParams(),i=e.get("padding"),o={width:n.getWidth(),height:n.getHeight()},a=ah(r,o,i);ih(e.get("orient"),t,e.get("itemGap"),a.width,a.height),sh(t,r,o,i)}function P$(t,e){var n=Gc(e.get("padding")),r=e.getItemStyle(["color","opacity"]);return r.fill=e.get("backgroundColor"),t=new Os({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:r,silent:!0,z2:-1}),t}var j$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.render=function(t,e,n,r){var i=this.group;if(i.removeAll(),t.get("show")){var o=+t.get("itemSize"),a="vertical"===t.get("orient"),s=t.get("feature")||{},l=this._features||(this._features={}),u=[];v["each"](s,(function(t,e){u.push(e)})),new mx(this._featureNames||[],u).add(c).update(c).remove(v["curry"](c,null)).execute(),this._featureNames=u,E$(i,t,n),i.add(P$(i.getBoundingRect(),t)),a||i.eachChild((function(t){var e=t.__title,r=t.ensureState("emphasis"),a=r.textConfig||(r.textConfig={}),s=t.getTextContent(),l=s&&s.ensureState("emphasis");if(l&&!v["isFunction"](l)&&e){var u=l.style||(l.style={}),c=vr(e,qs.makeFont(u)),h=t.x+i.x,f=t.y+i.y+o,d=!1;f+c.height>n.getHeight()&&(a.position="top",d=!0);var p=d?-5-c.height:o+10;h+c.width/2>n.getWidth()?(a.position=["100%",p],u.align="right"):h-c.width/2<0&&(a.position=[0,p],u.align="left")}}))}function c(i,o){var a,c=u[i],f=u[o],d=s[c],p=new Wu(d,t,t.ecModel);if(r&&null!=r.newTitle&&r.featureName===c&&(d.title=r.newTitle),c&&!f){if(L$(c))a={onclick:p.option.onclick,featureName:c};else{var g=M$(c);if(!g)return;a=new g}l[c]=a}else if(a=l[f],!a)return;a.uid=$u("toolbox-feature"),a.model=p,a.ecModel=e,a.api=n;var v=a instanceof C$;c||!f?!p.get("show")||v&&a.unusable?v&&a.remove&&a.remove(e,n):(h(p,a,c),p.setIconStatus=function(t,e){var n=this.option,r=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,r[t]&&("emphasis"===e?Ml:Tl)(r[t])},a instanceof C$&&a.render&&a.render(p,e,n,r)):v&&a.dispose&&a.dispose(e,n)}function h(r,s,l){var u,c,h=r.getModel("iconStyle"),f=r.getModel(["emphasis","iconStyle"]),d=s instanceof C$&&s.getIcons?s.getIcons():r.get("icon"),p=r.get("title")||{};v["isString"](d)?(u={},u[l]=d):u=d,v["isString"](p)?(c={},c[l]=p):c=p;var g=r.iconPaths={};v["each"](u,(function(l,u){var d=Zv(l,{},{x:-o/2,y:-o/2,width:o,height:o});d.setStyle(h.getItemStyle());var p=d.ensureState("emphasis");p.style=f.getItemStyle();var y=new qs({style:{text:c[u],align:f.get("textAlign"),borderRadius:f.get("textBorderRadius"),padding:f.get("textPadding"),fill:null},ignore:!0});d.setTextContent(y),ny({el:d,componentModel:t,itemName:u,formatterParamsExtra:{title:c[u]}}),d.__title=c[u],d.on("mouseover",(function(){var e=f.getItemStyle(),r=a?null==t.get("right")&&"right"!==t.get("left")?"right":"left":null==t.get("bottom")&&"bottom"!==t.get("top")?"bottom":"top";y.setStyle({fill:f.get("textFill")||e.fill||e.stroke||"#000",backgroundColor:f.get("textBackgroundColor")}),d.setTextConfig({position:f.get("textPosition")||r}),y.ignore=!t.get("showTitle"),n.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==r.get(["iconStatus",u])&&n.leaveEmphasis(this),y.hide()})),("emphasis"===r.get(["iconStatus",u])?Ml:Tl)(d),i.add(d),d.on("click",v["bind"](s.onclick,s,e,n,u)),g[u]=d}))}},e.prototype.updateView=function(t,e,n,r){v["each"](this._features,(function(t){t instanceof C$&&t.updateView&&t.updateView(t.model,e,n,r)}))},e.prototype.remove=function(t,e){v["each"](this._features,(function(n){n instanceof C$&&n.remove&&n.remove(t,e)})),this.group.removeAll()},e.prototype.dispose=function(t,e){v["each"](this._features,(function(n){n instanceof C$&&n.dispose&&n.dispose(t,e)}))},e.type="toolbox",e}(Up);function L$(t){return 0===t.indexOf("my")}var D$=j$,R$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.onclick=function(t,e){var n=this.model,r=n.get("name")||t.get("title.0.text")||"echarts",i="svg"===e.getZr().painter.getType(),o=i?"svg":n.get("type",!0)||"png",a=e.getConnectedDataURL({type:o,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),s=g["a"].browser;if(Object(v["isFunction"])(MouseEvent)&&(s.newEdge||!s.ie&&!s.edge)){var l=document.createElement("a");l.download=r+"."+o,l.target="_blank",l.href=a;var u=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});l.dispatchEvent(u)}else if(window.navigator.msSaveOrOpenBlob||i){var c=a.split(","),h=c[0].indexOf("base64")>-1,f=i?decodeURIComponent(c[1]):c[1];h&&(f=window.atob(f));var d=r+"."+o;if(window.navigator.msSaveOrOpenBlob){var p=f.length,y=new Uint8Array(p);while(p--)y[p]=f.charCodeAt(p);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,d)}else{var b=document.createElement("iframe");document.body.appendChild(b);var _=b.contentWindow,x=_.document;x.open("image/svg+xml","replace"),x.write(f),x.close(),_.focus(),x.execCommand("SaveAs",!0,d),document.body.removeChild(b)}}else{var w=n.get("lang"),S='<body style="margin:0;"><img src="'+a+'" style="max-width:100%;" title="'+(w&&w[0]||"")+'" /></body>',O=window.open();O.document.write(S),O.document.title=r}},e.getDefaultOption=function(t){var e={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:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return e},e}(C$),N$=R$,B$="__ec_magicType_stack__",F$=[["line","bar"],["stack"]],z$=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return v["each"](t.get("type"),(function(t){e[t]&&(n[t]=e[t])})),n},e.getDefaultOption=function(t){var e={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:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return e},e.prototype.onclick=function(t,e,n){var r=this.model,i=r.get(["seriesIndex",n]);if(V$[n]){var o,a={series:[]},s=function(t){var e=t.subType,i=t.id,o=V$[n](e,i,t,r);o&&(v["defaults"](o,t.option),a.series.push(o));var s=t.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===n||"bar"===n)){var l=s.getAxesByScale("ordinal")[0];if(l){var u=l.dim,c=u+"Axis",h=t.getReferringComponents(c,Qi).models[0],f=h.componentIndex;a[c]=a[c]||[];for(var d=0;d<=f;d++)a[c][f]=a[c][f]||{};a[c][f].boundaryGap="bar"===n}}};v["each"](F$,(function(t){v["indexOf"](t,n)>=0&&v["each"](t,(function(t){r.setIconStatus(t,"normal")}))})),r.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:null==i?null:{seriesIndex:i}},s);var l=n;"stack"===n&&(o=v["merge"]({stack:r.option.title.tiled,tiled:r.option.title.stack},r.option.title),"emphasis"!==r.get(["iconStatus",n])&&(l="tiled")),e.dispatchAction({type:"changeMagicType",currentType:l,newOption:a,newTitle:o,featureName:"magicType"})}},e}(C$),V$={line:function(t,e,n,r){if("bar"===t)return v["merge"]({id:e,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(t,e,n,r){if("line"===t)return v["merge"]({id:e,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(t,e,n,r){var i=n.get("stack")===B$;if("line"===t||"bar"===t)return r.setIconStatus("stack",i?"normal":"emphasis"),v["merge"]({id:e,stack:i?"":B$},r.get(["option","stack"])||{},!0)}};J_({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(t,e){e.mergeOption(t.newOption)}));var q$=z$,G$=new Array(60).join("-"),H$="\t";function W$(t){var e={},n=[],r=[];return t.eachRawSeries((function(t){var i=t.coordinateSystem;if(!i||"cartesian2d"!==i.type&&"polar"!==i.type)n.push(t);else{var o=i.getBaseAxis();if("category"===o.type){var a=o.dim+"_"+o.index;e[a]||(e[a]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},r.push({axisDim:o.dim,axisIndex:o.index})),e[a].series.push(t)}else n.push(t)}})),{seriesGroupByCategoryAxis:e,other:n,meta:r}}function U$(t){var e=[];return v["each"](t,(function(t,n){var r=t.categoryAxis,i=t.valueAxis,o=i.dim,a=[" "].concat(v["map"](t.series,(function(t){return t.name}))),s=[r.model.getCategories()];v["each"](t.series,(function(t){var e=t.getRawData();s.push(t.getRawData().mapArray(e.mapDimension(o),(function(t){return t})))}));for(var l=[a.join(H$)],u=0;u<s[0].length;u++){for(var c=[],h=0;h<s.length;h++)c.push(s[h][u]);l.push(c.join(H$))}e.push(l.join("\n"))})),e.join("\n\n"+G$+"\n\n")}function $$(t){return v["map"](t,(function(t){var e=t.getRawData(),n=[t.name],r=[];return e.each(e.dimensions,(function(){for(var t=arguments.length,i=arguments[t-1],o=e.getName(i),a=0;a<t-1;a++)r[a]=arguments[a];n.push((o?o+H$:"")+r.join(H$))})),n.join("\n")})).join("\n\n"+G$+"\n\n")}function Y$(t){var e=W$(t);return{value:v["filter"]([U$(e.seriesGroupByCategoryAxis),$$(e.other)],(function(t){return!!t.replace(/[\n\t\s]/g,"")})).join("\n\n"+G$+"\n\n"),meta:e.meta}}function X$(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function K$(t){var e=t.slice(0,t.indexOf("\n"));if(e.indexOf(H$)>=0)return!0}var Z$=new RegExp("["+H$+"]+","g");function Q$(t){for(var e=t.split(/\n+/g),n=X$(e.shift()).split(Z$),r=[],i=v["map"](n,(function(t){return{name:t,data:[]}})),o=0;o<e.length;o++){var a=X$(e[o]).split(Z$);r.push(a.shift());for(var s=0;s<a.length;s++)i[s]&&(i[s].data[o]=a[s])}return{series:i,categories:r}}function J$(t){for(var e=t.split(/\n+/g),n=X$(e.shift()),r=[],i=0;i<e.length;i++){var o=X$(e[i]);if(o){var a=o.split(Z$),s="",l=void 0,u=!1;isNaN(a[0])?(u=!0,s=a[0],a=a.slice(1),r[i]={name:s,value:[]},l=r[i].value):l=r[i]=[];for(var c=0;c<a.length;c++)l.push(+a[c]);1===l.length&&(u?r[i].value=l[0]:r[i]=l[0])}}return{name:n,data:r}}function tY(t,e){var n=t.split(new RegExp("\n*"+G$+"\n*","g")),r={series:[]};return v["each"](n,(function(t,n){if(K$(t)){var i=Q$(t),o=e[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=J$(t);r.series.push(i)}})),r}var eY=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.onclick=function(t,e){setTimeout((function(){e.dispatchAction({type:"hideTip"})}));var n=e.getDom(),r=this.model;this._dom&&n.removeChild(this._dom);var i=document.createElement("div");i.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",i.style.backgroundColor=r.get("backgroundColor")||"#fff";var o=document.createElement("h4"),a=r.get("lang")||[];o.innerHTML=a[0]||r.get("title"),o.style.cssText="margin:10px 20px",o.style.color=r.get("textColor");var s=document.createElement("div"),l=document.createElement("textarea");s.style.cssText="overflow:auto";var u=r.get("optionToContent"),c=r.get("contentToOption"),h=Y$(t);if(v["isFunction"](u)){var f=u(e.getOption());v["isString"](f)?s.innerHTML=f:v["isDom"](f)&&s.appendChild(f)}else{l.readOnly=r.get("readOnly");var d=l.style;d.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",d.color=r.get("textColor"),d.borderColor=r.get("textareaBorderColor"),d.backgroundColor=r.get("textareaColor"),l.value=h.value,s.appendChild(l)}var p=h.meta,g=document.createElement("div");g.style.cssText="position:absolute;bottom:5px;left:0;right:0";var y="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",m=document.createElement("div"),b=document.createElement("div");y+=";background-color:"+r.get("buttonColor"),y+=";color:"+r.get("buttonTextColor");var _=this;function x(){n.removeChild(i),_._dom=null}pt(m,"click",x),pt(b,"click",(function(){if(null==c&&null!=u||null!=c&&null==u)x();else{var t;try{t=v["isFunction"](c)?c(s,e.getOption()):tY(l.value,p)}catch(n){throw x(),new Error("Data view format error "+n)}t&&e.dispatchAction({type:"changeDataView",newOption:t}),x()}})),m.innerHTML=a[1],b.innerHTML=a[2],b.style.cssText=m.style.cssText=y,!r.get("readOnly")&&g.appendChild(b),g.appendChild(m),i.appendChild(o),i.appendChild(s),i.appendChild(g),s.style.height=n.clientHeight-80+"px",n.appendChild(i),this._dom=i},e.prototype.remove=function(t,e){this._dom&&e.getDom().removeChild(this._dom)},e.prototype.dispose=function(t,e){this.remove(t,e)},e.getDefaultOption=function(t){var e={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:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return e},e}(C$);function nY(t,e){return v["map"](t,(function(t,n){var r=e&&e[n];if(v["isObject"](r)&&!v["isArray"](r)){var i=v["isObject"](t)&&!v["isArray"](t);i||(t={value:t});var o=null!=r.name&&null==t.name;return t=v["defaults"](t,r),o&&delete t.name,t}return t}))}J_({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},(function(t,e){var n=[];v["each"](t.newOption.series,(function(t){var r=e.getSeriesByName(t.name)[0];if(r){var i=r.get("data");n.push({name:t.name,data:nY(t.data,i)})}else n.push(v["extend"]({type:"scatter"},t))})),e.mergeOption(v["defaults"]({series:n},t.newOption))}));var rY=eY,iY=v["each"],oY=Yi();function aY(t,e){var n=cY(t);iY(e,(function(e,r){for(var i=n.length-1;i>=0;i--){var o=n[i];if(o[r])break}if(i<0){var a=t.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(e)}function sY(t){var e=cY(t),n=e[e.length-1];e.length>1&&e.pop();var r={};return iY(n,(function(t,n){for(var i=e.length-1;i>=0;i--)if(t=e[i][n],t){r[n]=t;break}})),r}function lY(t){oY(t).snapshots=null}function uY(t){return cY(t).length}function cY(t){var e=oY(t);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var hY=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.onclick=function(t,e){lY(t),e.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var e={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:t.getLocaleModel().get(["toolbox","restore","title"])};return e},e}(C$);J_({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(t,e){e.resetOption("recreate")}));var fY=hY,dY=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],pY=function(){function t(t,e,n){var r=this;this._targetInfoList=[];var i=vY(e,t);Object(v["each"])(yY,(function(t,e){(!n||!n.include||Object(v["indexOf"])(n.include,e)>=0)&&t(i,r._targetInfoList)}))}return t.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,(function(t,e,n){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var r=_Y[t.brushType](0,n,e);t.__rangeOffset={offset:wY[t.brushType](r.values,t.range,[1,1]),xyMinMax:r.xyMinMax}}})),t},t.prototype.matchOutputRanges=function(t,e,n){Object(v["each"])(t,(function(t){var r=this.findTargetInfo(t,e);r&&!0!==r&&Object(v["each"])(r.coordSyses,(function(r){var i=_Y[t.brushType](1,r,t.range,!0);n(t,i.values,r,e)}))}),this)},t.prototype.setInputRanges=function(t,e){Object(v["each"])(t,(function(t){var n=this.findTargetInfo(t,e);if(t.range=t.range||[],n&&!0!==n){t.panelId=n.panelId;var r=_Y[t.brushType](0,n.coordSys,t.coordRange),i=t.__rangeOffset;t.range=i?wY[t.brushType](r.values,i.offset,OY(r.xyMinMax,i.xyMinMax)):r.values}}),this)},t.prototype.makePanelOpts=function(t,e){return Object(v["map"])(this._targetInfoList,(function(n){var r=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:tF(r),isTargetByCursor:nF(r,t,n.coordSysModel),getLinearBrushOtherExtent:eF(r)}}))},t.prototype.controlSeries=function(t,e,n){var r=this.findTargetInfo(t,n);return!0===r||r&&Object(v["indexOf"])(r.coordSyses,e.coordinateSystem)>=0},t.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,r=vY(e,t),i=0;i<n.length;i++){var o=n[i],a=t.panelId;if(a){if(o.panelId===a)return o}else for(var s=0;s<mY.length;s++)if(mY[s](r,o))return o}return!0},t}();function gY(t){return t[0]>t[1]&&t.reverse(),t}function vY(t,e){return Ki(t,e,{includeMainTypes:dY})}var yY={grid:function(t,e){var n=t.xAxisModels,r=t.yAxisModels,i=t.gridModels,o=Object(v["createHashMap"])(),a={},s={};(n||r||i)&&(Object(v["each"])(n,(function(t){var e=t.axis.grid.model;o.set(e.id,e),a[e.id]=!0})),Object(v["each"])(r,(function(t){var e=t.axis.grid.model;o.set(e.id,e),s[e.id]=!0})),Object(v["each"])(i,(function(t){o.set(t.id,t),a[t.id]=!0,s[t.id]=!0})),o.each((function(t){var i=t.coordinateSystem,o=[];Object(v["each"])(i.getCartesians(),(function(t,e){(Object(v["indexOf"])(n,t.getAxis("x").model)>=0||Object(v["indexOf"])(r,t.getAxis("y").model)>=0)&&o.push(t)})),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:o[0],coordSyses:o,getPanelRect:bY.grid,xAxisDeclared:a[t.id],yAxisDeclared:s[t.id]})})))},geo:function(t,e){Object(v["each"])(t.geoModels,(function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:bY.geo})}))}},mY=[function(t,e){var n=t.xAxisModel,r=t.yAxisModel,i=t.gridModel;return!i&&n&&(i=n.axis.grid.model),!i&&r&&(i=r.axis.grid.model),i&&i===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],bY={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(Gv(t)),e}},_Y={lineX:Object(v["curry"])(xY,0),lineY:Object(v["curry"])(xY,1),rect:function(t,e,n,r){var i=t?e.pointToData([n[0][0],n[1][0]],r):e.dataToPoint([n[0][0],n[1][0]],r),o=t?e.pointToData([n[0][1],n[1][1]],r):e.dataToPoint([n[0][1],n[1][1]],r),a=[gY([i[0],o[0]]),gY([i[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(t,e,n,r){var i=[[1/0,-1/0],[1/0,-1/0]],o=Object(v["map"])(n,(function(n){var o=t?e.pointToData(n,r):e.dataToPoint(n,r);return i[0][0]=Math.min(i[0][0],o[0]),i[1][0]=Math.min(i[1][0],o[1]),i[0][1]=Math.max(i[0][1],o[0]),i[1][1]=Math.max(i[1][1],o[1]),o}));return{values:o,xyMinMax:i}}};function xY(t,e,n,r){var i=n.getAxis(["x","y"][t]),o=gY(Object(v["map"])([0,1],(function(t){return e?i.coordToData(i.toLocalCoord(r[t]),!0):i.toGlobalCoord(i.dataToCoord(r[t]))}))),a=[];return a[t]=o,a[1-t]=[NaN,NaN],{values:o,xyMinMax:a}}var wY={lineX:Object(v["curry"])(SY,0),lineY:Object(v["curry"])(SY,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,e,n){return Object(v["map"])(t,(function(t,r){return[t[0]-n[0]*e[r][0],t[1]-n[1]*e[r][1]]}))}};function SY(t,e,n,r){return[e[0]-r[t]*n[0],e[1]-r[t]*n[1]]}function OY(t,e){var n=CY(t),r=CY(e),i=[n[0]/r[0],n[1]/r[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function CY(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var kY=pY,AY=v["each"],MY=Gi("toolbox-dataZoom_"),TY=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.render=function(t,e,n,r){this._brushController||(this._brushController=new JB(n.getZr()),this._brushController.on("brush",v["bind"](this._onBrush,this)).mount()),jY(t,e,this,r,n),PY(t,e)},e.prototype.onclick=function(t,e,n){IY[n].call(this)},e.prototype.remove=function(t,e){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,e){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var e=t.areas;if(t.isEnd&&e.length){var n={},r=this.ecModel;this._brushController.updateCovers([]);var i=new kY(EY(this.model),r,{include:["grid"]});i.matchOutputRanges(e,r,(function(t,e,n){if("cartesian2d"===n.type){var r=t.brushType;"rect"===r?(o("x",n,e[0]),o("y",n,e[1])):o({lineX:"x",lineY:"y"}[r],n,e)}})),aY(r,n),this._dispatchZoomAction(n)}function o(t,e,i){var o=e.getAxis(t),s=o.model,l=a(t,s,r),u=l.findRepresentativeAxisProxy(s).getMinMaxSpan();null==u.minValueSpan&&null==u.maxValueSpan||(i=BN(0,i.slice(),o.scale.getExtent(),0,u.minValueSpan,u.maxValueSpan)),l&&(n[l.id]={dataZoomId:l.id,startValue:i[0],endValue:i[1]})}function a(t,e,n){var r;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){var i=n.getAxisModel(t,e.componentIndex);i&&(r=n)})),r}},e.prototype._dispatchZoomAction=function(t){var e=[];AY(t,(function(t,n){e.push(v["clone"](t))})),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},e.getDefaultOption=function(t){var e={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:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return e},e}(C$),IY={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(sY(this.ecModel))}};function EY(t){var e={xAxisIndex:t.get("xAxisIndex",!0),yAxisIndex:t.get("yAxisIndex",!0),xAxisId:t.get("xAxisId",!0),yAxisId:t.get("yAxisId",!0)};return null==e.xAxisIndex&&null==e.xAxisId&&(e.xAxisIndex="all"),null==e.yAxisIndex&&null==e.yAxisId&&(e.yAxisIndex="all"),e}function PY(t,e){t.setIconStatus("back",uY(e)>1?"emphasis":"normal")}function jY(t,e,n,r,i){var o=n._isZoomActive;r&&"takeGlobalCursor"===r.type&&(o="dataZoomSelect"===r.key&&r.dataZoomSelectActive),n._isZoomActive=o,t.setIconStatus("zoom",o?"emphasis":"normal");var a=new kY(EY(t),e,{include:["grid"]}),s=a.makePanelOpts(i,(function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"}));n._brushController.setPanels(s).enableBrush(!(!o||!s.length)&&{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()})}Fh("dataZoom",(function(t){var e=t.getComponent("toolbox",0),n=["feature","dataZoom"];if(e&&null!=e.get(n)){var r=e.getModel(n),i=[],o=EY(r),a=Ki(t,o);return AY(a.xAxisModels,(function(t){return s(t,"xAxis","xAxisIndex")})),AY(a.yAxisModels,(function(t){return s(t,"yAxis","yAxisIndex")})),i}function s(t,e,n){var o=t.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:MY+e+o};a[n]=o,i.push(a)}}));var LY=TY;function DY(t){t.registerComponentModel(I$),t.registerComponentView(D$),A$("saveAsImage",N$),A$("magicType",q$),A$("dataView",rY),A$("dataZoom",LY),A$("restore",fY),px(O$)}var RY=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(vh),NY=RY;function BY(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function FY(t){if(g["a"].domSupported)for(var e=document.documentElement.style,n=0,r=t.length;n<r;n++)if(t[n]in e)return t[n]}var zY=FY(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),VY=FY(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function qY(t,e){if(!t)return e;e=qc(e,!0);var n=t.indexOf(e);return t=-1===n?e:"-"+t.slice(0,n)+"-"+e,t.toLowerCase()}function GY(t,e){var n=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return n?e?n[e]:n:null}var HY=qY(VY,"transition"),WY=qY(zY,"transform"),UY="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(g["a"].transform3dSupported?"will-change:transform;":"");function $Y(t){return t="left"===t?"right":"right"===t?"left":"top"===t?"bottom":"top",t}function YY(t,e,n){if(!Object(v["isString"])(n)||"inside"===n)return"";var r=t.get("backgroundColor"),i=t.get("borderWidth");e=Qc(e);var o,a=$Y(n),s=Math.max(1.5*Math.round(i),6),l="",u=WY+":";Object(v["indexOf"])(["left","right"],a)>-1?(l+="top:50%",u+="translateY(-50%) rotate("+(o="left"===a?-225:-45)+"deg)"):(l+="left:50%",u+="translateX(-50%) rotate("+(o="top"===a?225:45)+"deg)");var c=o*Math.PI/180,h=s+i,f=h*Math.abs(Math.cos(c))+h*Math.abs(Math.sin(c)),d=Math.round(100*((f-Math.SQRT2*i)/2+Math.SQRT2*i-(f-h)/2))/100;l+=";"+a+":-"+d+"px";var p=e+" solid "+i+"px;",g=["position:absolute;width:"+s+"px;height:"+s+"px;",l+";"+u+";","border-bottom:"+p,"border-right:"+p,"background-color:"+r+";"];return'<div style="'+g.join("")+'"></div>'}function XY(t,e){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+t/2+"s "+n,i="opacity"+r+",visibility"+r;return e||(r=" "+t+"s "+n,i+=g["a"].transformSupported?","+WY+r:",left"+r+",top"+r),HY+":"+i}function KY(t,e,n){var r=t.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!g["a"].transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var o=g["a"].transform3dSupported,a="translate"+(o?"3d":"")+"("+r+","+i+(o?",0":"")+")";return n?"top:0;left:0;"+WY+":"+a+";":[["top",0],["left",0],[zY,a]]}function ZY(t){var e=[],n=t.get("fontSize"),r=t.getTextColor();r&&e.push("color:"+r),e.push("font:"+t.getFont()),n&&e.push("line-height:"+Math.round(3*n/2)+"px");var i=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,a=t.get("textShadowOffsetX")||0,s=t.get("textShadowOffsetY")||0;return i&&o&&e.push("text-shadow:"+a+"px "+s+"px "+o+"px "+i),Object(v["each"])(["decoration","align"],(function(n){var r=t.get(n);r&&e.push("text-"+n+":"+r)})),e.join(";")}function QY(t,e,n){var r=[],i=t.get("transitionDuration"),o=t.get("backgroundColor"),a=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),u=t.get("shadowOffsetY"),c=t.getModel("textStyle"),h=Mp(t,"html"),f=l+"px "+u+"px "+a+"px "+s;return r.push("box-shadow:"+f),e&&i&&r.push(XY(i,n)),o&&r.push("background-color:"+o),Object(v["each"])(["width","color","radius"],(function(e){var n="border-"+e,i=qc(n),o=t.get(i);null!=o&&r.push(n+":"+o+("color"===e?"":"px"))})),r.push(ZY(c)),null!=h&&r.push("padding:"+Gc(h).join("px ")+"px"),r.join(";")+";"}function JY(t,e,n,r,i){var o=e&&e.painter;if(n){var a=o&&o.getViewportRoot();a&&Q(t,a,document.body,r,i)}else{t[0]=r,t[1]=i;var s=o&&o.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var tX=function(){function t(t,e,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,g["a"].wxa)return null;var r=document.createElement("div");r.domBelongToZr=!0,this.el=r;var i=this._zr=e.getZr(),o=this._appendToBody=n&&n.appendToBody;JY(this._styleCoord,i,o,e.getWidth()/2,e.getHeight()/2),o?document.body.appendChild(r):t.appendChild(r),this._container=t;var a=this;r.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},r.onmousemove=function(t){if(t=t||window.event,!a._enterable){var e=i.handler,n=i.painter.getViewportRoot();ft(n,t,!0),e.dispatch("mousemove",t)}},r.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return t.prototype.update=function(t){var e=this._container,n=GY(e,"position"),r=e.style;"absolute"!==r.position&&"absolute"!==n&&(r.position="relative");var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=UY+QY(t,!this._firstShow,this._longHide)+KY(i[0],i[1],!0)+"border-color:"+Qc(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):r.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,n,r,i){var o=this.el;if(null!=t){var a="";if(Object(v["isString"])(i)&&"item"===n.get("trigger")&&!BY(n)&&(a=YY(n,r,i)),Object(v["isString"])(t))o.innerHTML=t+a;else if(t){o.innerHTML="",Object(v["isArray"])(t)||(t=[t]);for(var s=0;s<t.length;s++)Object(v["isDom"])(t[s])&&t[s].parentNode!==o&&o.appendChild(t[s]);if(a&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=a,o.appendChild(l)}}}else o.innerHTML=""},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},t.prototype.moveTo=function(t,e){var n=this._styleCoord;if(JY(n,this._zr,this._appendToBody,t,e),null!=n[0]&&null!=n[1]){var r=this.el.style,i=KY(n[0],n[1]);Object(v["each"])(i,(function(t){r[t[0]]=t[1]}))}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",g["a"].transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout((function(){return t._longHide=!0}),500)},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Object(v["bind"])(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},t}(),eX=tX,nX=function(){function t(t){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=t.getZr(),oX(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return t.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized()},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(t,e,n,r,i){var o=this;v["isObject"](t)&&Qh(""),this.el&&this._zr.remove(this.el);var a=n.getModel("textStyle");this.el=new qs({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Mp(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),v["each"](["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],(function(t){o.el.style[t]=n.get(t)})),v["each"](["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],(function(t){o.el.style[t]=a.get(t)||0})),this._zr.add(this.el);var s=this;this.el.on("mouseover",(function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0})),this.el.on("mouseout",(function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1}))},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),n=iX(t.style);return[e.width+n.left+n.right,e.height+n.top+n.bottom]},t.prototype.moveTo=function(t,e){var n=this.el;if(n){var r=this._styleCoord;oX(r,this._zr,t,e),t=r[0],e=r[1];var i=n.style,o=rX(i.borderWidth||0),a=iX(i);n.x=t+o+a.left,n.y=e+o+a.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(v["bind"](this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();function rX(t){return Math.max(0,t)}function iX(t){var e=rX(t.shadowBlur||0),n=rX(t.shadowOffsetX||0),r=rX(t.shadowOffsetY||0);return{left:rX(e-n),right:rX(e+n),top:rX(e-r),bottom:rX(e+r)}}function oX(t,e,n,r){t[0]=n,t[1]=r,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var aX=nX,sX=new Os({shape:{x:-1,y:-1,width:2,height:2}}),lX=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.init=function(t,e){if(!g["a"].node&&e.getDom()){var n=t.getComponent("tooltip"),r=this._renderMode=ro(n.get("renderMode"));this._tooltipContent="richText"===r?new aX(e):new eX(e.getDom(),e,{appendToBody:n.get("appendToBody",!0)})}},e.prototype.render=function(t,e,n){if(!g["a"].node&&n.getDom()){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n,this._alwaysShowContent=t.get("alwaysShowContent");var r=this._tooltipContent;r.update(t),r.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?my(this,"_updatePosition",50,"fixRate"):by(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel,e=t.get("triggerOn");RH("itemTooltip",this._api,Object(v["bind"])((function(t,n,r){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(n,r):"leave"===t&&this._hide(r))}),this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api,r=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==r&&"click"!==r){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&i.manuallyShowTip(t,e,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})}))}},e.prototype.manuallyShowTip=function(t,e,n,r){if(r.from!==this.uid&&!g["a"].node&&n.getDom()){var i=cX(r,n);this._ticket="";var o=r.dataByCoordSys,a=gX(r,e,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:r.position,positionDefault:"bottom"},i)}else if(r.tooltip&&null!=r.x&&null!=r.y){var l=sX;l.x=r.x,l.y=r.y,l.update(),Gs(l).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:l},i)}else if(o)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:o,tooltipOption:r.tooltipOption},i);else if(null!=r.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,r))return;var u=WH(r,e),c=u.point[0],h=u.point[1];null!=c&&null!=h&&this._tryShow({offsetX:c,offsetY:h,target:u.el,position:r.position,positionDefault:"bottom"},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))}},e.prototype.manuallyHideTip=function(t,e,n,r){var i=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&i.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,r.from!==this.uid&&this._hide(cX(r,n))},e.prototype._manuallyAxisShowTip=function(t,e,n,r){var i=r.seriesIndex,o=r.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=i&&null!=o&&null!=a){var s=e.getSeriesByIndex(i);if(s){var l=s.getData(),u=uX([l.getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel);if("axis"===u.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:i,dataIndex:o,position:r.position}),!0}}},e.prototype._tryShow=function(t,e){var n=t.target,r=this._tooltipModel;if(r){this._lastX=t.offsetX,this._lastY=t.offsetY;var i=t.dataByCoordSys;if(i&&i.length)this._showAxisTooltip(i,t);else if(n){var o,a;this._lastDataByCoordSys=null,fm(n,(function(t){return null!=Gs(t).dataIndex?(o=t,!0):null!=Gs(t).tooltipConfig?(a=t,!0):void 0}),!0),o?this._showSeriesItemTooltip(t,o,e):a?this._showComponentItemTooltip(t,a,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=Object(v["bind"])(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},e.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,r=this._tooltipModel,i=[e.offsetX,e.offsetY],o=uX([e.tooltipOption],r),a=this._renderMode,s=[],l=pp("section",{blocks:[],noHeader:!0}),u=[],c=new Tp;Object(v["each"])(t,(function(t){Object(v["each"])(t.dataByAxis,(function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),i=t.value;if(e&&null!=i){var o=xH(i,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),h=pp("section",{header:o,noHeader:!Object(v["trim"])(o),sortBlocks:!0,blocks:[]});l.blocks.push(h),Object(v["each"])(t.seriesDataIndices,(function(l){var f=n.getSeriesByIndex(l.seriesIndex),d=l.dataIndexInside,p=f.getDataParams(d);if(!(p.dataIndex<0)){p.axisDim=t.axisDim,p.axisIndex=t.axisIndex,p.axisType=t.axisType,p.axisId=t.axisId,p.axisValue=ES(e.axis,{value:i}),p.axisValueLabel=o,p.marker=c.makeTooltipMarker("item",Qc(p.color),a);var g=Od(f.formatTooltip(d,!0,null)),y=g.frag;if(y){var m=uX([f],r).get("valueFormatter");h.blocks.push(m?Object(v["extend"])({valueFormatter:m},y):y)}g.text&&u.push(g.text),s.push(p)}}))}}))})),l.blocks.reverse(),u.reverse();var h=e.position,f=o.get("order"),d=_p(l,c,a,f,n.get("useUTC"),o.get("textStyle"));d&&u.unshift(d);var p="richText"===a?"\n\n":"<br/>",g=u.join(p);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,h,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(o,g,s,Math.random()+"",i[0],i[1],h,null,c)}))},e.prototype._showSeriesItemTooltip=function(t,e,n){var r=this._ecModel,i=Gs(e),o=i.seriesIndex,a=r.getSeriesByIndex(o),s=i.dataModel||a,l=i.dataIndex,u=i.dataType,c=s.getData(u),h=this._renderMode,f=t.positionDefault,d=uX([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),p=d.get("trigger");if(null==p||"item"===p){var g=s.getDataParams(l,u),y=new Tp;g.marker=y.makeTooltipMarker("item",Qc(g.color),h);var m=Od(s.formatTooltip(l,!1,u)),b=d.get("order"),_=d.get("valueFormatter"),x=m.frag,w=x?_p(_?Object(v["extend"])({valueFormatter:_},x):x,y,h,b,r.get("useUTC"),d.get("textStyle")):m.text,S="item_"+s.name+"_"+l;this._showOrMove(d,(function(){this._showTooltipContent(d,w,g,S,t.offsetX,t.offsetY,t.position,t.target,y)})),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:o,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var r=Gs(e),i=r.tooltipConfig,o=i.option||{};if(Object(v["isString"])(o)){var a=o;o={content:a,formatter:a}}var s=[o],l=this._ecModel.getComponent(r.componentMainType,r.componentIndex);l&&s.push(l),s.push({formatter:o.content});var u=t.positionDefault,c=uX(s,this._tooltipModel,u?{position:u}:null),h=c.get("content"),f=Math.random()+"",d=new Tp;this._showOrMove(c,(function(){var n=Object(v["clone"])(c.get("formatterParams")||{});this._showTooltipContent(c,h,n,f,t.offsetX,t.offsetY,t.position,e,d)})),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,r,i,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent;u.setEnterable(t.get("enterable"));var c=t.get("formatter");a=a||t.get("position");var h=e,f=this._getNearestPoint([i,o],n,t.get("trigger"),t.get("borderColor")),d=f.color;if(c)if(Object(v["isString"])(c)){var p=t.ecModel.get("useUTC"),g=Object(v["isArray"])(n)?n[0]:n,y=g&&g.axisType&&g.axisType.indexOf("time")>=0;h=c,y&&(h=Sc(g.axisValue,h,p)),h=$c(h,n,!0)}else if(Object(v["isFunction"])(c)){var m=Object(v["bind"])((function(e,r){e===this._ticket&&(u.setContent(r,l,t,d,a),this._updatePosition(t,a,i,o,u,n,s))}),this);this._ticket=r,h=c(n,r,m)}else h=c;u.setContent(h,l,t,d,a),u.show(t,d),this._updatePosition(t,a,i,o,u,n,s)}},e.prototype._getNearestPoint=function(t,e,n,r){return"axis"===n||Object(v["isArray"])(e)?{color:r||("html"===this._renderMode?"#fff":"none")}:Object(v["isArray"])(e)?void 0:{color:r||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,r,i,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=i.getSize(),c=t.get("align"),h=t.get("verticalAlign"),f=a&&a.getBoundingRect().clone();if(a&&f.applyTransform(a.transform),Object(v["isFunction"])(e)&&(e=e([n,r],o,i.el,f,{viewSize:[s,l],contentSize:u.slice()})),Object(v["isArray"])(e))n=Jr(e[0],s),r=Jr(e[1],l);else if(Object(v["isObject"])(e)){var d=e;d.width=u[0],d.height=u[1];var p=ah(d,{width:s,height:l});n=p.x,r=p.y,c=null,h=null}else if(Object(v["isString"])(e)&&a){var g=dX(e,f,u,t.get("borderWidth"));n=g[0],r=g[1]}else{g=hX(n,r,i,s,l,c?null:20,h?null:20);n=g[0],r=g[1]}if(c&&(n-=pX(c)?u[0]/2:"right"===c?u[0]:0),h&&(r-=pX(h)?u[1]/2:"bottom"===h?u[1]:0),BY(t)){g=fX(n,r,i,s,l);n=g[0],r=g[1]}i.moveTo(n,r)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===t.length;return i&&Object(v["each"])(n,(function(n,o){var a=n.dataByAxis||[],s=t[o]||{},l=s.dataByAxis||[];i=i&&a.length===l.length,i&&Object(v["each"])(a,(function(t,n){var o=l[n]||{},a=t.seriesDataIndices||[],s=o.seriesDataIndices||[];i=i&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===s.length,i&&Object(v["each"])(a,(function(t,e){var n=s[e];i=i&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex})),r&&Object(v["each"])(t.seriesDataIndices,(function(t){var n=t.seriesIndex,o=e[n],a=r[n];o&&a&&a.data!==o.data&&(i=!1)}))}))})),this._lastDataByCoordSys=t,this._cbParamsList=e,!!i},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!g["a"].node&&e.getDom()&&(by(this,"_updatePosition"),this._tooltipContent.dispose(),qH("itemTooltip",e))},e.type="tooltip",e}(Up);function uX(t,e,n){var r,i=e.ecModel;n?(r=new Wu(n,i,i),r=new Wu(e.option,r,i)):r=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof Wu&&(a=a.get("tooltip",!0)),Object(v["isString"])(a)&&(a={formatter:a}),a&&(r=new Wu(a,r,i)))}return r}function cX(t,e){return t.dispatchAction||Object(v["bind"])(e.dispatchAction,e)}function hX(t,e,n,r,i,o,a){var s=n.getSize(),l=s[0],u=s[1];return null!=o&&(t+l+o+2>r?t-=l+o:t+=o),null!=a&&(e+u+a>i?e-=u+a:e+=a),[t,e]}function fX(t,e,n,r,i){var o=n.getSize(),a=o[0],s=o[1];return t=Math.min(t+a,r)-a,e=Math.min(e+s,i)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function dX(t,e,n,r){var i=n[0],o=n[1],a=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=e.width,c=e.height;switch(t){case"inside":s=e.x+u/2-i/2,l=e.y+c/2-o/2;break;case"top":s=e.x+u/2-i/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-i/2,l=e.y+c+a;break;case"left":s=e.x-i-a,l=e.y+c/2-o/2;break;case"right":s=e.x+u+a,l=e.y+c/2-o/2}return[s,l]}function pX(t){return"center"===t||"middle"===t}function gX(t,e,n){var r=Zi(t).queryOptionMap,i=r.keys()[0];if(i&&"series"!==i){var o=to(e,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s,l=n.getViewOfComponentModel(a);return l.group.traverse((function(e){var n=Gs(e).tooltipConfig;if(n&&n.name===t.name)return s=e,!0})),s?{componentMainType:i,componentIndex:a.componentIndex,el:s}:void 0}}}var vX=lX;function yX(t){px(iW),t.registerComponentModel(NY),t.registerComponentView(vX),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},v["noop"]),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},v["noop"])}var mX=["rect","polygon","keep","clear"];function bX(t,e){var n=ki(t?t.brush:[]);if(n.length){var r=[];v["each"](n,(function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(r=r.concat(e))}));var i=t&&t.toolbox;v["isArray"](i)&&(i=i[0]),i||(i={feature:{}},t.toolbox=[i]);var o=i.feature||(i.feature={}),a=o.brush||(o.brush={}),s=a.type||(a.type=[]);s.push.apply(s,r),_X(s),e&&!s.length&&s.push.apply(s,mX)}}function _X(t){var e={};v["each"](t,(function(t){e[t]=1})),t.length=0,v["each"](e,(function(e,n){t.push(n)}))}var xX=v["each"];function wX(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function SX(t,e,n){var r={};return xX(e,(function(e){var o=r[e]=i();xX(t[e],(function(t,r){if(UL.isValidType(r)){var i={type:r,visual:t};n&&n(i,e),o[r]=new UL(i),"opacity"===r&&(i=v["clone"](i),i.type="colorAlpha",o.__hidden.__alphaForOpacity=new UL(i))}}))})),r;function i(){var t=function(){};t.prototype.__hidden=t.prototype;var e=new t;return e}}function OX(t,e,n){var r;v["each"](n,(function(t){e.hasOwnProperty(t)&&wX(e[t])&&(r=!0)})),r&&v["each"](n,(function(n){e.hasOwnProperty(n)&&wX(e[n])?t[n]=v["clone"](e[n]):delete t[n]}))}function CX(t,e,n,r,i,o){var a,s={};function l(t){return am(n,a,t)}function u(t,e){lm(n,a,t,e)}function c(t,c){a=null==o?t:c;var h=n.getRawDataItem(a);if(!h||!1!==h.visualMap)for(var f=r.call(i,t),d=e[f],p=s[f],g=0,v=p.length;g<v;g++){var y=p[g];d[y]&&d[y].applyVisual(t,l,u)}}v["each"](t,(function(t){var n=UL.prepareVisualTypes(e[t]);s[t]=n})),null==o?n.each(c):n.each([o],c)}function kX(t,e,n,r){var i={};return v["each"](t,(function(t){var n=UL.prepareVisualTypes(e[t]);i[t]=n})),{progress:function(t,o){var a,s;function l(t){return am(o,s,t)}function u(t,e){lm(o,s,t,e)}null!=r&&(a=o.getDimensionIndex(r));var c=o.getStore();while(null!=(s=t.next())){var h=o.getRawDataItem(s);if(!h||!1!==h.visualMap)for(var f=null!=r?c.get(a,s):s,d=n(f),p=e[d],g=i[d],v=0,y=g.length;v<y;v++){var m=g[v];p[m]&&p[m].applyVisual(f,l,u)}}}}}function AX(t){var e=t.brushType,n={point:function(r){return MX[e].point(r,n,t)},rect:function(r){return MX[e].rect(r,n,t)}};return n}var MX={lineX:TX(0),lineY:TX(1),rect:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])},rect:function(t,e,n){return t&&n.boundingRect.intersect(t)}},polygon:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])&&US(n.range,t[0],t[1])},rect:function(t,e,n){var r=n.range;if(!t||r.length<=1)return!1;var i=t.x,o=t.y,a=t.width,s=t.height,l=r[0];return!!(US(r,i,o)||US(r,i+a,o)||US(r,i,o+s)||US(r,i+a,o+s)||qt.create(t).contain(l[0],l[1])||Qv(i,o,i+a,o,r)||Qv(i,o,i,o+s,r)||Qv(i+a,o,i+a,o+s,r)||Qv(i,o+s,i+a,o+s,r))||void 0}}};function TX(t){var e=["x","y"],n=["width","height"];return{point:function(e,n,r){if(e){var i=r.range,o=e[t];return IX(o,i)}},rect:function(r,i,o){if(r){var a=o.range,s=[r[e[t]],r[e[t]]+r[n[t]]];return s[1]<s[0]&&s.reverse(),IX(s[0],a)||IX(s[1],a)||IX(a[0],s)||IX(a[1],s)}}}}function IX(t,e){return e[0]<=t&&t<=e[1]}var EX=["inBrush","outOfBrush"],PX="__ecBrushSelect",jX="__ecInBrushSelectEvent";function LX(t){t.eachComponent({mainType:"brush"},(function(e){var n=e.brushTargetManager=new kY(e.option,t);n.setInputRanges(e.areas,t)}))}function DX(t,e,n){var r,i,o=[];t.eachComponent({mainType:"brush"},(function(t){n&&"takeGlobalCursor"===n.type&&t.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1})})),LX(t),t.eachComponent({mainType:"brush"},(function(e,n){var a={brushId:e.id,brushIndex:n,brushName:e.name,areas:v["clone"](e.areas),selected:[]};o.push(a);var s=e.option,l=s.brushLink,u=[],c=[],h=[],f=!1;n||(r=s.throttleType,i=s.throttleDelay);var d=v["map"](e.areas,(function(t){var e=zX[t.brushType],n=v["defaults"]({boundingRect:e?e(t):void 0},t);return n.selectors=AX(n),n})),p=SX(e.option,EX,(function(t){t.mappingMethod="fixed"}));function g(t){return"all"===l||!!u[t]}function y(t){return!!t.length}function m(t,e){var n=t.coordinateSystem;f=f||n.hasAxisBrushed(),g(e)&&n.eachActiveState(t.getData(),(function(t,e){"active"===t&&(c[e]=1)}))}function b(n,r,i){if(n.brushSelector&&!FX(e,r)&&(v["each"](d,(function(r){e.brushTargetManager.controlSeries(r,n,t)&&i.push(r),f=f||y(i)})),g(r)&&y(i))){var o=n.getData();o.each((function(t){BX(n,i,o,t)&&(c[t]=1)}))}}v["isArray"](l)&&v["each"](l,(function(t){u[t]=1})),t.eachSeries((function(t,e){var n=h[e]=[];"parallel"===t.subType?m(t,e):b(t,e,n)})),t.eachSeries((function(t,e){var n={seriesId:t.id,seriesIndex:e,seriesName:t.name,dataIndex:[]};a.selected.push(n);var r=h[e],i=t.getData(),o=g(e)?function(t){return c[t]?(n.dataIndex.push(i.getRawIndex(t)),"inBrush"):"outOfBrush"}:function(e){return BX(t,r,i,e)?(n.dataIndex.push(i.getRawIndex(e)),"inBrush"):"outOfBrush"};(g(e)?f:y(r))&&CX(EX,p,i,o)}))})),RX(e,r,i,o,n)}function RX(t,e,n,r,i){if(i){var o=t.getZr();if(!o[jX]){o[PX]||(o[PX]=NX);var a=my(o,PX,n,e);a(t,r)}}}function NX(t,e){if(!t.isDisposed()){var n=t.getZr();n[jX]=!0,t.dispatchAction({type:"brushSelect",batch:e}),n[jX]=!1}}function BX(t,e,n,r){for(var i=0,o=e.length;i<o;i++){var a=e[i];if(t.brushSelector(r,n,a.selectors,a))return!0}}function FX(t,e){var n=t.option.seriesIndex;return null!=n&&"all"!==n&&(v["isArray"](n)?v["indexOf"](n,e)<0:e!==n)}var zX={rect:function(t){return VX(t.range)},polygon:function(t){for(var e,n=t.range,r=0,i=n.length;r<i;r++){e=e||[[1/0,-1/0],[1/0,-1/0]];var o=n[r];o[0]<e[0][0]&&(e[0][0]=o[0]),o[0]>e[0][1]&&(e[0][1]=o[0]),o[1]<e[1][0]&&(e[1][0]=o[1]),o[1]>e[1][1]&&(e[1][1]=o[1])}return e&&VX(e)}};function VX(t){return new qt(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var qX=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new JB(e.getZr())).on("brush",v["bind"](this._onBrush,this)).mount()},e.prototype.render=function(t,e,n,r){this.model=t,this._updateController(t,e,n,r)},e.prototype.updateTransform=function(t,e,n,r){LX(e),this._updateController(t,e,n,r)},e.prototype.updateVisual=function(t,e,n,r){this.updateTransform(t,e,n,r)},e.prototype.updateView=function(t,e,n,r){this._updateController(t,e,n,r)},e.prototype._updateController=function(t,e,n,r){(!r||r.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var e=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:e,areas:v["clone"](n),$from:e}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:e,areas:v["clone"](n),$from:e})},e.type="brush",e}(Up),GX=qX,HX="#ddd",WX=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.areas=[],n.brushOption={},n}return p(e,t),e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&OX(n,t,["inBrush","outOfBrush"]);var r=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:HX},r.hasOwnProperty("liftZ")||(r.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=v["map"](t,(function(t){return UX(this.option,t)}),this))},e.prototype.setBrushOption=function(t){this.brushOption=UX(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(vh);function UX(t,e){return v["merge"]({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new Wu(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}var $X=WX,YX=["rect","polygon","lineX","lineY","keep","clear"],XX=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),e.prototype.render=function(t,e,n){var r,i,o;e.eachComponent({mainType:"brush"},(function(t){r=t.brushType,i=t.brushOption.brushMode||"single",o=o||!!t.areas.length})),this._brushType=r,this._brushMode=i,v["each"](t.get("type",!0),(function(e){t.setIconStatus(e,("keep"===e?"multiple"===i:"clear"===e?o:e===r)?"emphasis":"normal")}))},e.prototype.updateView=function(t,e,n){this.render(t,e,n)},e.prototype.getIcons=function(){var t=this.model,e=t.get("icon",!0),n={};return v["each"](t.get("type",!0),(function(t){e[t]&&(n[t]=e[t])})),n},e.prototype.onclick=function(t,e,n){var r=this._brushType,i=this._brushMode;"clear"===n?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?r:r!==n&&n,brushMode:"keep"===n?"multiple"===i?"single":"multiple":i}})},e.getDefaultOption=function(t){var e={show:!0,type:YX.slice(),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:t.getLocaleModel().get(["toolbox","brush","title"])};return e},e}(C$),KX=XX;function ZX(t){t.registerComponentView(GX),t.registerComponentModel($X),t.registerPreprocessor(bX),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,DX),t.registerAction({type:"brush",event:"brush",update:"updateVisual"},(function(t,e){e.eachComponent({mainType:"brush",query:t},(function(e){e.setAreas(t.areas)}))})),t.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},v["noop"]),t.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},v["noop"]),A$("brush",KX)}var QX=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return p(e,t),e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(vh),JX=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var r=this.group,i=t.getModel("textStyle"),o=t.getModel("subtextStyle"),a=t.get("textAlign"),s=v["retrieve2"](t.get("textBaseline"),t.get("textVerticalAlign")),l=new qs({style:xu(i,{text:t.get("text"),fill:i.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),c=t.get("subtext"),h=new qs({style:xu(o,{text:c,fill:o.getTextColor(),y:u.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),f=t.get("link"),d=t.get("sublink"),p=t.get("triggerEvent",!0);l.silent=!f&&!p,h.silent=!d&&!p,f&&l.on("click",(function(){Jc(f,"_"+t.get("target"))})),d&&h.on("click",(function(){Jc(d,"_"+t.get("subtarget"))})),Gs(l).eventData=Gs(h).eventData=p?{componentType:"title",componentIndex:t.componentIndex}:null,r.add(l),c&&r.add(h);var g=r.getBoundingRect(),y=t.getBoxLayoutParams();y.width=g.width,y.height=g.height;var m=ah(y,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));a||(a=t.get("left")||t.get("right"),"middle"===a&&(a="center"),"right"===a?m.x+=m.width:"center"===a&&(m.x+=m.width/2)),s||(s=t.get("top")||t.get("bottom"),"center"===s&&(s="middle"),"bottom"===s?m.y+=m.height:"middle"===s&&(m.y+=m.height/2),s=s||"top"),r.x=m.x,r.y=m.y,r.markRedraw();var b={align:a,verticalAlign:s};l.setStyle(b),h.setStyle(b),g=r.getBoundingRect();var _=m.margin,x=t.getItemStyle(["color","opacity"]);x.fill=t.get("backgroundColor");var w=new Os({shape:{x:g.x-_[3],y:g.y-_[0],width:g.width+_[1]+_[3],height:g.height+_[0]+_[2],r:t.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});r.add(w)}},e.type="title",e}(Up);function tK(t){t.registerComponentModel(QX),t.registerComponentView(JX)}var eK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode="box",n}return p(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._initData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t,e=this.option,n=e.data||[],r=e.axisType,i=this._names=[];"category"===r?(t=[],Object(v["each"])(n,(function(e,n){var r,o=zi(Ti(e),"");Object(v["isObject"])(e)?(r=Object(v["clone"])(e),r.value=n):r=n,t.push(r),i.push(o)}))):t=n;var o={category:"ordinal",time:"time",value:"number"}[r]||"number",a=this._data=new Yx([{name:"value",type:o}],this);a.initData(t,i)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},e.type="timeline",e.defaultOption={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:[]},e}(vh),nK=eK,rK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.type="timeline.slider",e.defaultOption=Ku(nK.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,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:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(nK);Object(v["mixin"])(rK,Sd.prototype);var iK=rK,oK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.type="timeline",e}(Up),aK=oK,sK=function(t){function e(e,n,r,i){var o=t.call(this,e,n,r)||this;return o.type=i||"value",o}return p(e,t),e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},e}(kO),lK=sK,uK=Math.PI,cK=Yi(),hK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.init=function(t,e){this.api=e},e.prototype.render=function(t,e,n){if(this.model=t,this.api=n,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var r=this._layout(t,n),i=this._createGroup("_mainGroup"),o=this._createGroup("_labelGroup"),a=this._axis=this._createAxis(r,t);t.formatTooltip=function(t){var e=a.scale.getLabel({value:t});return pp("nameValue",{noName:!0,value:e})},Object(v["each"])(["AxisLine","AxisTick","Control","CurrentPointer"],(function(e){this["_render"+e](r,i,a,t)}),this),this._renderAxisLabel(r,o,a,t),this._position(r,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,e){var n,r=t.get(["label","position"]),i=t.get("orient"),o=dK(t,e);n=null==r||"auto"===r?"horizontal"===i?o.y+o.height/2<e.getHeight()/2?"-":"+":o.x+o.width/2<e.getWidth()/2?"+":"-":Object(v["isString"])(r)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[i][r]:r;var a,s,l,u={horizontal:"center",vertical:n>=0||"+"===n?"left":"right"},c={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},h={horizontal:0,vertical:uK/2},f="vertical"===i?o.height:o.width,d=t.getModel("controlStyle"),p=d.get("show",!0),g=p?d.get("itemSize"):0,y=p?d.get("itemGap"):0,m=g+y,b=t.get(["label","rotate"])||0;b=b*uK/180;var _=d.get("position",!0),x=p&&d.get("showPlayBtn",!0),w=p&&d.get("showPrevBtn",!0),S=p&&d.get("showNextBtn",!0),O=0,C=f;"left"===_||"bottom"===_?(x&&(a=[0,0],O+=m),w&&(s=[O,0],O+=m),S&&(l=[C-g,0],C-=m)):(x&&(a=[C-g,0],C-=m),w&&(s=[0,0],O+=m),S&&(l=[C-g,0],C-=m));var k=[O,C];return t.get("inverse")&&k.reverse(),{viewRect:o,mainLength:f,orient:i,rotation:h[i],labelRotation:b,labelPosOpt:n,labelAlign:t.get(["label","align"])||u[i],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||c[i],playPosition:a,prevBtnPosition:s,nextBtnPosition:l,axisExtent:k,controlSize:g,controlGap:y}},e.prototype._position=function(t,e){var n=this._mainGroup,r=this._labelGroup,i=t.viewRect;if("vertical"===t.orient){var o=wt(),a=i.x,s=i.y+i.height;kt(o,o,[-a,-s]),At(o,o,-uK/2),kt(o,o,[a,s]),i=i.clone(),i.applyTransform(o)}var l=y(i),u=y(n.getBoundingRect()),c=y(r.getBoundingRect()),h=[n.x,n.y],f=[r.x,r.y];f[0]=h[0]=l[0][0];var d=t.labelPosOpt;if(null==d||Object(v["isString"])(d)){var p="+"===d?0:1;m(h,u,l,1,p),m(f,c,l,1,1-p)}else{p=d>=0?0:1;m(h,u,l,1,p),f[1]=h[1]+d}function g(t){t.originX=l[0][0]-t.x,t.originY=l[1][0]-t.y}function y(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function m(t,e,n,r,i){t[r]+=n[r][i]-e[r][i]}n.setPosition(h),r.setPosition(f),n.rotation=r.rotation=t.rotation,g(n),g(r)},e.prototype._createAxis=function(t,e){var n=e.getData(),r=e.get("axisType"),i=fK(e,r);i.getTicks=function(){return n.mapArray(["value"],(function(t){return{value:t}}))};var o=n.getDataExtent("value");i.setExtent(o[0],o[1]),i.calcNiceTicks();var a=new lK("value",i,t.axisExtent,r);return a.model=e,a},e.prototype._createGroup=function(t){var e=this[t]=new Nr;return this.group.add(e),e},e.prototype._renderAxisLine=function(t,e,n,r){var i=n.getExtent();if(r.get(["lineStyle","show"])){var o=new ev({shape:{x1:i[0],y1:0,x2:i[1],y2:0},style:Object(v["extend"])({lineCap:"round"},r.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});e.add(o);var a=this._progressLine=new ev({shape:{x1:i[0],x2:this._currentPointer?this._currentPointer.x:i[0],y1:0,y2:0},style:Object(v["defaults"])({lineCap:"round",lineWidth:o.style.lineWidth},r.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});e.add(a)}},e.prototype._renderAxisTick=function(t,e,n,r){var i=this,o=r.getData(),a=n.scale.getTicks();this._tickSymbols=[],Object(v["each"])(a,(function(t){var a=n.dataToCoord(t.value),s=o.getItemModel(t.value),l=s.getModel("itemStyle"),u=s.getModel(["emphasis","itemStyle"]),c=s.getModel(["progress","itemStyle"]),h={x:a,y:0,onclick:Object(v["bind"])(i._changeTimeline,i,t.value)},f=gK(s,l,e,h);f.ensureState("emphasis").style=u.getItemStyle(),f.ensureState("progress").style=c.getItemStyle(),Wl(f);var d=Gs(f);s.get("tooltip")?(d.dataIndex=t.value,d.dataModel=r):d.dataIndex=d.dataModel=null,i._tickSymbols.push(f)}))},e.prototype._renderAxisLabel=function(t,e,n,r){var i=this,o=n.getLabelModel();if(o.get("show")){var a=r.getData(),s=n.getViewLabels();this._tickLabels=[],Object(v["each"])(s,(function(r){var o=r.tickValue,s=a.getItemModel(o),l=s.getModel("label"),u=s.getModel(["emphasis","label"]),c=s.getModel(["progress","label"]),h=n.dataToCoord(r.tickValue),f=new qs({x:h,y:0,rotation:t.labelRotation-t.rotation,onclick:Object(v["bind"])(i._changeTimeline,i,o),silent:!1,style:xu(l,{text:r.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});f.ensureState("emphasis").style=xu(u),f.ensureState("progress").style=xu(c),e.add(f),Wl(f),cK(f).dataIndex=o,i._tickLabels.push(f)}))}},e.prototype._renderControl=function(t,e,n,r){var i=t.controlSize,o=t.rotation,a=r.getModel("controlStyle").getItemStyle(),s=r.getModel(["emphasis","controlStyle"]).getItemStyle(),l=r.getPlayState(),u=r.get("inverse",!0);function c(t,n,l,u){if(t){var c=_r(Object(v["retrieve2"])(r.get(["controlStyle",n+"BtnSize"]),i),i),h=[0,-c/2,c,c],f=pK(r,n+"Icon",h,{x:t[0],y:t[1],originX:i/2,originY:0,rotation:u?-o:0,rectHover:!0,style:a,onclick:l});f.ensureState("emphasis").style=s,e.add(f),Wl(f)}}c(t.nextBtnPosition,"next",Object(v["bind"])(this._changeTimeline,this,u?"-":"+")),c(t.prevBtnPosition,"prev",Object(v["bind"])(this._changeTimeline,this,u?"+":"-")),c(t.playPosition,l?"stop":"play",Object(v["bind"])(this._handlePlayClick,this,!l),!0)},e.prototype._renderCurrentPointer=function(t,e,n,r){var i=r.getData(),o=r.getCurrentIndex(),a=i.getItemModel(o).getModel("checkpointStyle"),s=this,l={onCreate:function(t){t.draggable=!0,t.drift=Object(v["bind"])(s._handlePointerDrag,s),t.ondragend=Object(v["bind"])(s._handlePointerDragend,s),vK(t,s._progressLine,o,n,r,!0)},onUpdate:function(t){vK(t,s._progressLine,o,n,r)}};this._currentPointer=gK(a,a,this._mainGroup,{},this._currentPointer,l)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,e){var n=this._toAxisCoord(t)[0],r=this._axis,i=ei(r.getExtent().slice());n>i[1]&&(n=i[1]),n<i[0]&&(n=i[0]),this._currentPointer.x=n,this._currentPointer.markRedraw(),this._progressLine.shape.x2=n,this._progressLine.dirty();var o=this._findNearestTick(n),a=this.model;(e||o!==a.getCurrentIndex()&&a.get("realtime"))&&this._changeTimeline(o)},e.prototype._doPlayStop=function(){var t=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout((function(){var e=t.model;t._changeTimeline(e.getCurrentIndex()+(e.get("rewind",!0)?-1:1))}),this.model.get("playInterval")))},e.prototype._toAxisCoord=function(t){var e=this._mainGroup.getLocalTransform();return Hv(t,e,!0)},e.prototype._findNearestTick=function(t){var e,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-t);s<r&&(r=s,e=o)})),e},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(t){var e=this.model.getCurrentIndex();"+"===t?t=e+1:"-"===t&&(t=e-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},e.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),e=this._tickSymbols,n=this._tickLabels;if(e)for(var r=0;r<e.length;r++)e&&e[r]&&e[r].toggleState("progress",r<t);if(n)for(r=0;r<n.length;r++)n&&n[r]&&n[r].toggleState("progress",cK(n[r]).dataIndex<=t)},e.type="timeline.slider",e}(aK);function fK(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new Iw({ordinalMeta:t.getCategories(),extent:[1/0,-1/0]});case"time":return new lS({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new jw}}function dK(t,e){return ah(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}function pK(t,e,n,r){var i=r.style,o=Zv(t.get(["controlStyle",e]),r||{},new qt(n[0],n[1],n[2],n[3]));return i&&o.setStyle(i),o}function gK(t,e,n,r,i,o){var a=e.get("color");if(i)i.setColor(a),n.add(i),o&&o.onUpdate(i);else{var s=t.get("symbol");i=km(s,-1,-1,2,2,a),i.setStyle("strokeNoScale",!0),n.add(i),o&&o.onCreate(i)}var l=e.getItemStyle(["color"]);i.setStyle(l),r=Object(v["merge"])({rectHover:!0,z2:100},r,!0);var u=Am(t.get("symbolSize"));r.scaleX=u[0]/2,r.scaleY=u[1]/2;var c=Mm(t.get("symbolOffset"),u);c&&(r.x=(r.x||0)+c[0],r.y=(r.y||0)+c[1]);var h=t.get("symbolRotate");return r.rotation=(h||0)*Math.PI/180||0,i.attr(r),i.updateTransform(),i}function vK(t,e,n,r,i,o){if(!t.dragging){var a=i.getModel("checkpointStyle"),s=r.dataToCoord(i.getData().get("value",n));if(o||!a.get("animation",!0))t.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:a.get("animationDuration",!0),easing:a.get("animationEasing",!0)};t.stopAnimation(null,!0),t.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}var yK=hK;function mK(t){t.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(t,e,n){var r=e.getComponent("timeline");return r&&null!=t.currentIndex&&(r.setCurrentIndex(t.currentIndex),!r.get("loop",!0)&&r.isIndexMax()&&r.getPlayState()&&(r.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),e.resetOption("timeline",{replaceMerge:r.get("replaceMerge",!0)}),Object(v["defaults"])({currentIndex:r.option.currentIndex},t)})),t.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(t,e){var n=e.getComponent("timeline");n&&null!=t.playState&&n.setPlayState(t.playState)}))}function bK(t){var e=t&&t.timeline;v["isArray"](e)||(e=e?[e]:[]),v["each"](e,(function(t){t&&_K(t)}))}function _K(t){var e=t.type,n={number:"value",time:"time"};if(n[e]&&(t.axisType=n[e],delete t.type),xK(t),wK(t,"controlPosition")){var r=t.controlStyle||(t.controlStyle={});wK(r,"position")||(r.position=t.controlPosition),"none"!==r.position||wK(r,"show")||(r.show=!1,delete r.position),delete t.controlPosition}v["each"](t.data||[],(function(t){v["isObject"](t)&&!v["isArray"](t)&&(!wK(t,"value")&&wK(t,"name")&&(t.value=t.name),xK(t))}))}function xK(t){var e=t.itemStyle||(t.itemStyle={}),n=e.emphasis||(e.emphasis={}),r=t.label||t.label||{},i=r.normal||(r.normal={}),o={normal:1,emphasis:1};v["each"](r,(function(t,e){o[e]||wK(i,e)||(i[e]=t)})),n.label&&!wK(r,"emphasis")&&(r.emphasis=n.label,delete n.label)}function wK(t,e){return t.hasOwnProperty(e)}function SK(t){t.registerComponentModel(iK),t.registerComponentView(yK),t.registerSubTypeDefaulter("timeline",(function(){return"slider"})),mK(t),t.registerPreprocessor(bK)}function OK(t,e){if(!t)return!1;for(var n=Object(v["isArray"])(t)?t:[t],r=0;r<n.length;r++)if(n[r]&&n[r][e])return!0;return!1}function CK(t){Ai(t,"label",["show"])}var kK=Yi(),AK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.createdBySelf=!1,n}return p(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},e.prototype.isAnimationEnabled=function(){if(g["a"].node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,e){this._mergeOption(t,e,!1,!1)},e.prototype._mergeOption=function(t,e,n,r){var i=this.mainType;n||e.eachSeries((function(t){var n=t.get(this.mainType,!0),o=kK(t)[i];n&&n.data?(o?o._mergeOption(n,e,!0):(r&&CK(n),v["each"](n.data,(function(t){t instanceof Array?(CK(t[0]),CK(t[1])):CK(t)})),o=this.createMarkerModelFromSeries(n,this,e),v["extend"](o,{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),o.__hostSeries=t),kK(t)[i]=o):kK(t)[i]=null}),this)},e.prototype.formatTooltip=function(t,e,n){var r=this.getData(),i=this.getRawValue(t),o=r.getName(t);return pp("section",{header:this.name,blocks:[pp("nameValue",{name:o,value:i,noName:!o,noValue:null==i})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(t){this._data=t},e.getMarkerModelFromSeries=function(t,e){return kK(t)[e]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(vh);v["mixin"](AK,Sd.prototype);var MK=AK,TK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,r){return new e(t,n,r)},e.type="markPoint",e.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e}(MK),IK=TK;function EK(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function PK(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}function jK(t,e,n,r,i,o){var a=[],s=aw(e,r),l=s?e.getCalculationInfo("stackResultDimension"):r,u=VK(e,l,t),c=e.indicesOfNearest(l,u)[0];a[i]=e.get(n,c),a[o]=e.get(l,c);var h=e.get(r,c),f=ni(e.get(r,c));return f=Math.min(f,20),f>=0&&(a[o]=+a[o].toFixed(f)),[a,h]}var LK={min:Object(v["curry"])(jK,"min"),max:Object(v["curry"])(jK,"max"),average:Object(v["curry"])(jK,"average"),median:Object(v["curry"])(jK,"median")};function DK(t,e){var n=t.getData(),r=t.coordinateSystem;if(e&&!PK(e)&&!Object(v["isArray"])(e.coord)&&r){var i=r.dimensions,o=RK(e,n,r,t);if(e=Object(v["clone"])(e),e.type&&LK[e.type]&&o.baseAxis&&o.valueAxis){var a=Object(v["indexOf"])(i,o.baseAxis.dim),s=Object(v["indexOf"])(i,o.valueAxis.dim),l=LK[e.type](n,o.baseDataDim,o.valueDataDim,a,s);e.coord=l[0],e.value=l[1]}else{for(var u=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis],c=0;c<2;c++)LK[u[c]]&&(u[c]=VK(n,n.mapDimension(i[c]),u[c]));e.coord=u}}return e}function RK(t,e,n,r){var i={};return null!=t.valueIndex||null!=t.valueDim?(i.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,i.valueAxis=n.getAxis(NK(r,i.valueDataDim)),i.baseAxis=n.getOtherAxis(i.valueAxis),i.baseDataDim=e.mapDimension(i.baseAxis.dim)):(i.baseAxis=r.getBaseAxis(),i.valueAxis=n.getOtherAxis(i.baseAxis),i.baseDataDim=e.mapDimension(i.baseAxis.dim),i.valueDataDim=e.mapDimension(i.valueAxis.dim)),i}function NK(t,e){var n=t.getData().getDimensionInfo(e);return n&&n.coordDim}function BK(t,e){return!(t&&t.containData&&e.coord&&!EK(e))||t.containData(e.coord)}function FK(t,e,n){return!(t&&t.containZone&&e.coord&&n.coord&&!EK(e)&&!EK(n))||t.containZone(e.coord,n.coord)}function zK(t,e){return t?function(t,n,r,i){var o=i<2?t.coord&&t.coord[i]:t.value;return Md(o,e[i])}:function(t,n,r,i){return Md(t.value,e[i])}}function VK(t,e,n){if("average"===n){var r=0,i=0;return t.each(e,(function(t,e){isNaN(t)||(r+=t,i++)})),r/i}return"median"===n?t.getMedian(e):t.getDataExtent(e)["max"===n?1:0]}var qK=Yi(),GK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.init=function(){this.markerGroupMap=Object(v["createHashMap"])()},e.prototype.render=function(t,e,n){var r=this,i=this.markerGroupMap;i.each((function(t){qK(t).keep=!1})),e.eachSeries((function(t){var i=MK.getMarkerModelFromSeries(t,r.type);i&&r.renderSeries(t,i,e,n)})),i.each((function(t){!qK(t).keep&&r.group.remove(t.group)}))},e.prototype.markKeep=function(t){qK(t).keep=!0},e.prototype.toggleBlurSeries=function(t,e){var n=this;Object(v["each"])(t,(function(t){var r=MK.getMarkerModelFromSeries(t,n.type);if(r){var i=r.getData();i.eachItemGraphicEl((function(t){t&&(e?Il(t):El(t))}))}}))},e.type="marker",e}(Up),HK=GK;function WK(t,e,n){var r=e.coordinateSystem;t.each((function(i){var o,a=t.getItemModel(i),s=Jr(a.get("x"),n.getWidth()),l=Jr(a.get("y"),n.getHeight());if(isNaN(s)||isNaN(l)){if(e.getMarkerPosition)o=e.getMarkerPosition(t.getValues(t.dimensions,i));else if(r){var u=t.get(r.dimensions[0],i),c=t.get(r.dimensions[1],i);o=r.dataToPoint([u,c])}}else o=[s,l];isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),t.setItemLayout(i,o)}))}var UK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=MK.getMarkerModelFromSeries(t,"markPoint");e&&(WK(e.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout())}),this)},e.prototype.renderSeries=function(t,e,n,r){var i=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new pA),u=$K(i,t,e);e.setData(u),WK(e.getData(),t,r),u.each((function(t){var n=u.getItemModel(t),r=n.getShallow("symbol"),i=n.getShallow("symbolSize"),o=n.getShallow("symbolRotate"),s=n.getShallow("symbolOffset"),l=n.getShallow("symbolKeepAspect");if(Object(v["isFunction"])(r)||Object(v["isFunction"])(i)||Object(v["isFunction"])(o)||Object(v["isFunction"])(s)){var c=e.getRawValue(t),h=e.getDataParams(t);Object(v["isFunction"])(r)&&(r=r(c,h)),Object(v["isFunction"])(i)&&(i=i(c,h)),Object(v["isFunction"])(o)&&(o=o(c,h)),Object(v["isFunction"])(s)&&(s=s(c,h))}var f=n.getModel("itemStyle").getItemStyle(),d=sm(a,"color");f.fill||(f.fill=d),u.setItemVisual(t,{symbol:r,symbolSize:i,symbolRotate:o,symbolOffset:s,symbolKeepAspect:l,style:f})})),l.updateData(u),this.group.add(l.group),u.eachItemGraphicEl((function(t){t.traverse((function(t){Gs(t).dataModel=e}))})),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markPoint",e}(HK);function $K(t,e,n){var r;r=t?Object(v["map"])(t&&t.dimensions,(function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return Object(v["extend"])(Object(v["extend"])({},n),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var i=new Yx(r,n),o=Object(v["map"])(n.get("data"),Object(v["curry"])(DK,e));t&&(o=Object(v["filter"])(o,Object(v["curry"])(BK,t)));var a=zK(!!t,r);return i.initData(o,null,a),i}var YK=UK;function XK(t){t.registerComponentModel(IK),t.registerComponentView(YK),t.registerPreprocessor((function(t){OK(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})}))}var KK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,r){return new e(t,n,r)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,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}(MK),ZK=KK,QK=Yi(),JK=function(t,e,n,r){var i,o=t.getData();if(Object(v["isArray"])(r))i=r;else{var a=r.type;if("min"===a||"max"===a||"average"===a||"median"===a||null!=r.xAxis||null!=r.yAxis){var s=void 0,l=void 0;if(null!=r.yAxis||null!=r.xAxis)s=e.getAxis(null!=r.yAxis?"y":"x"),l=Object(v["retrieve"])(r.yAxis,r.xAxis);else{var u=RK(r,o,e,t);s=u.valueAxis;var c=sw(o,u.valueDataDim);l=VK(o,c,a)}var h="x"===s.dim?0:1,f=1-h,d=Object(v["clone"])(r),p={coord:[]};d.type=null,d.coord=[],d.coord[f]=-1/0,p.coord[f]=1/0;var g=n.get("precision");g>=0&&Object(v["isNumber"])(l)&&(l=+l.toFixed(Math.min(g,20))),d.coord[h]=p.coord[h]=l,i=[d,p,{type:a,valueIndex:r.valueIndex,value:l}]}else i=[]}var y=[DK(t,i[0]),DK(t,i[1]),Object(v["extend"])({},i[2])];return y[2].type=y[2].type||null,Object(v["merge"])(y[2],y[0]),Object(v["merge"])(y[2],y[1]),y};function tZ(t){return!isNaN(t)&&!isFinite(t)}function eZ(t,e,n,r){var i=1-t,o=r.dimensions[t];return tZ(e[i])&&tZ(n[i])&&e[t]===n[t]&&r.getAxis(o).containData(e[t])}function nZ(t,e){if("cartesian2d"===t.type){var n=e[0].coord,r=e[1].coord;if(n&&r&&(eZ(1,n,r,t)||eZ(0,n,r,t)))return!0}return BK(t,e[0])&&BK(t,e[1])}function rZ(t,e,n,r,i){var o,a=r.coordinateSystem,s=t.getItemModel(e),l=Jr(s.get("x"),i.getWidth()),u=Jr(s.get("y"),i.getHeight());if(isNaN(l)||isNaN(u)){if(r.getMarkerPosition)o=r.getMarkerPosition(t.getValues(t.dimensions,e));else{var c=a.dimensions,h=t.get(c[0],e),f=t.get(c[1],e);o=a.dataToPoint([h,f])}if(EA(a,"cartesian2d")){var d=a.getAxis("x"),p=a.getAxis("y");c=a.dimensions;tZ(t.get(c[0],e))?o[0]=d.toGlobalCoord(d.getExtent()[n?0:1]):tZ(t.get(c[1],e))&&(o[1]=p.toGlobalCoord(p.getExtent()[n?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];t.setItemLayout(e,o)}var iZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=MK.getMarkerModelFromSeries(t,"markLine");if(e){var r=e.getData(),i=QK(e).from,o=QK(e).to;i.each((function(e){rZ(i,e,!0,t,n),rZ(o,e,!1,t,n)})),r.each((function(t){r.setItemLayout(t,[i.getItemLayout(t),o.getItemLayout(t)])})),this.markerGroupMap.get(t.id).updateLayout()}}),this)},e.prototype.renderSeries=function(t,e,n,r){var i=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new _R);this.group.add(l.group);var u=oZ(i,t,e),c=u.from,h=u.to,f=u.line;QK(e).from=c,QK(e).to=h,e.setData(f);var d=e.get("symbol"),p=e.get("symbolSize"),g=e.get("symbolRotate"),y=e.get("symbolOffset");function m(e,n,i){var o=e.getItemModel(n);rZ(e,n,i,t,r);var s=o.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=sm(a,"color")),e.setItemVisual(n,{symbolKeepAspect:o.get("symbolKeepAspect"),symbolOffset:Object(v["retrieve2"])(o.get("symbolOffset",!0),y[i?0:1]),symbolRotate:Object(v["retrieve2"])(o.get("symbolRotate",!0),g[i?0:1]),symbolSize:Object(v["retrieve2"])(o.get("symbolSize"),p[i?0:1]),symbol:Object(v["retrieve2"])(o.get("symbol",!0),d[i?0:1]),style:s})}Object(v["isArray"])(d)||(d=[d,d]),Object(v["isArray"])(p)||(p=[p,p]),Object(v["isArray"])(g)||(g=[g,g]),Object(v["isArray"])(y)||(y=[y,y]),u.from.each((function(t){m(c,t,!0),m(h,t,!1)})),f.each((function(t){var e=f.getItemModel(t).getModel("lineStyle").getLineStyle();f.setItemLayout(t,[c.getItemLayout(t),h.getItemLayout(t)]),null==e.stroke&&(e.stroke=c.getItemVisual(t,"style").fill),f.setItemVisual(t,{fromSymbolKeepAspect:c.getItemVisual(t,"symbolKeepAspect"),fromSymbolOffset:c.getItemVisual(t,"symbolOffset"),fromSymbolRotate:c.getItemVisual(t,"symbolRotate"),fromSymbolSize:c.getItemVisual(t,"symbolSize"),fromSymbol:c.getItemVisual(t,"symbol"),toSymbolKeepAspect:h.getItemVisual(t,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(t,"symbolOffset"),toSymbolRotate:h.getItemVisual(t,"symbolRotate"),toSymbolSize:h.getItemVisual(t,"symbolSize"),toSymbol:h.getItemVisual(t,"symbol"),style:e})})),l.updateData(f),u.line.eachItemGraphicEl((function(t){Gs(t).dataModel=e,t.traverse((function(t){Gs(t).dataModel=e}))})),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markLine",e}(HK);function oZ(t,e,n){var r;r=t?Object(v["map"])(t&&t.dimensions,(function(t){var n=e.getData().getDimensionInfo(e.getData().mapDimension(t))||{};return Object(v["extend"])(Object(v["extend"])({},n),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var i=new Yx(r,n),o=new Yx(r,n),a=new Yx([],n),s=Object(v["map"])(n.get("data"),Object(v["curry"])(JK,e,t,n));t&&(s=Object(v["filter"])(s,Object(v["curry"])(nZ,t)));var l=zK(!!t,r);return i.initData(Object(v["map"])(s,(function(t){return t[0]})),null,l),o.initData(Object(v["map"])(s,(function(t){return t[1]})),null,l),a.initData(Object(v["map"])(s,(function(t){return t[2]}))),a.hasItemOption=!0,{from:i,to:o,line:a}}var aZ=iZ;function sZ(t){t.registerComponentModel(ZK),t.registerComponentView(aZ),t.registerPreprocessor((function(t){OK(t.series,"markLine")&&(t.markLine=t.markLine||{})}))}var lZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,r){return new e(t,n,r)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(MK),uZ=lZ,cZ=Yi(),hZ=function(t,e,n,r){var i=DK(t,r[0]),o=DK(t,r[1]),a=i.coord,s=o.coord;a[0]=Object(v["retrieve"])(a[0],-1/0),a[1]=Object(v["retrieve"])(a[1],-1/0),s[0]=Object(v["retrieve"])(s[0],1/0),s[1]=Object(v["retrieve"])(s[1],1/0);var l=Object(v["mergeAll"])([{},i,o]);return l.coord=[i.coord,o.coord],l.x0=i.x,l.y0=i.y,l.x1=o.x,l.y1=o.y,l};function fZ(t){return!isNaN(t)&&!isFinite(t)}function dZ(t,e,n,r){var i=1-t;return fZ(e[i])&&fZ(n[i])}function pZ(t,e){var n=e.coord[0],r=e.coord[1],i={coord:n,x:e.x0,y:e.y0},o={coord:r,x:e.x1,y:e.y1};return EA(t,"cartesian2d")?!(!n||!r||!dZ(1,n,r,t)&&!dZ(0,n,r,t))||FK(t,i,o):BK(t,i)||BK(t,o)}function gZ(t,e,n,r,i){var o,a=r.coordinateSystem,s=t.getItemModel(e),l=Jr(s.get(n[0]),i.getWidth()),u=Jr(s.get(n[1]),i.getHeight());if(isNaN(l)||isNaN(u)){if(r.getMarkerPosition)o=r.getMarkerPosition(t.getValues(n,e));else{var c=t.get(n[0],e),h=t.get(n[1],e),f=[c,h];a.clampData&&a.clampData(f,f),o=a.dataToPoint(f,!0)}if(EA(a,"cartesian2d")){var d=a.getAxis("x"),p=a.getAxis("y");c=t.get(n[0],e),h=t.get(n[1],e);fZ(c)?o[0]=d.toGlobalCoord(d.getExtent()["x0"===n[0]?0:1]):fZ(h)&&(o[1]=p.toGlobalCoord(p.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];return o}var vZ=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],yZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=MK.getMarkerModelFromSeries(t,"markArea");if(e){var r=e.getData();r.each((function(e){var i=Object(v["map"])(vZ,(function(i){return gZ(r,e,i,t,n)}));r.setItemLayout(e,i);var o=r.getItemGraphicEl(e);o.setShape("points",i)}))}}),this)},e.prototype.renderSeries=function(t,e,n,r){var i=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,{group:new Nr});this.group.add(l.group),this.markKeep(l);var u=mZ(i,t,e);e.setData(u),u.each((function(e){var n=Object(v["map"])(vZ,(function(n){return gZ(u,e,n,t,r)})),o=i.getAxis("x").scale,s=i.getAxis("y").scale,l=o.getExtent(),c=s.getExtent(),h=[o.parse(u.get("x0",e)),o.parse(u.get("x1",e))],f=[s.parse(u.get("y0",e)),s.parse(u.get("y1",e))];ei(h),ei(f);var d=!(l[0]>h[1]||l[1]<h[0]||c[0]>f[1]||c[1]<f[0]),p=!d;u.setItemLayout(e,{points:n,allClipped:p});var g=u.getItemModel(e).getModel("itemStyle").getItemStyle(),y=sm(a,"color");g.fill||(g.fill=y,Object(v["isString"])(g.fill)&&(g.fill=Qe["modifyAlpha"](g.fill,.4))),g.stroke||(g.stroke=y),u.setItemVisual(e,"style",g)})),u.diff(cZ(l).data).add((function(t){var e=u.getItemLayout(t);if(!e.allClipped){var n=new Yg({shape:{points:e.points}});u.setItemGraphicEl(t,n),l.group.add(n)}})).update((function(t,n){var r=cZ(l).data.getItemGraphicEl(n),i=u.getItemLayout(t);i.allClipped?r&&l.group.remove(r):(r?lu(r,{shape:{points:i.points}},e,t):r=new Yg({shape:{points:i.points}}),u.setItemGraphicEl(t,r),l.group.add(r))})).remove((function(t){var e=cZ(l).data.getItemGraphicEl(t);l.group.remove(e)})).execute(),u.eachItemGraphicEl((function(t,n){var r=u.getItemModel(n),i=u.getItemVisual(n,"style");t.useStyle(u.getItemVisual(n,"style")),bu(t,_u(r),{labelFetcher:e,labelDataIndex:n,defaultText:u.getName(n)||"",inheritColor:Object(v["isString"])(i.fill)?Qe["modifyAlpha"](i.fill,1):"#000"}),Zl(t,r),$l(t,null,null,r.get(["emphasis","disabled"])),Gs(t).dataModel=e})),cZ(l).data=u,l.group.silent=e.get("silent")||t.get("silent")},e.type="markArea",e}(HK);function mZ(t,e,n){var r,i,o=["x0","y0","x1","y1"];if(t){var a=Object(v["map"])(t&&t.dimensions,(function(t){var n=e.getData(),r=n.getDimensionInfo(n.mapDimension(t))||{};return Object(v["extend"])(Object(v["extend"])({},r),{name:t,ordinalMeta:null})}));i=Object(v["map"])(o,(function(t,e){return{name:t,type:a[e%2].type}})),r=new Yx(i,n)}else i=[{name:"value",type:"float"}],r=new Yx(i,n);var s=Object(v["map"])(n.get("data"),Object(v["curry"])(hZ,e,t,n));t&&(s=Object(v["filter"])(s,Object(v["curry"])(pZ,t)));var l=t?function(t,e,n,r){var o=t.coord[Math.floor(r/2)][r%2];return Md(o,i[r])}:function(t,e,n,r){return Md(t.value,i[r])};return r.initData(s,null,l),r.hasItemOption=!0,r}var bZ=yZ;function _Z(t){t.registerComponentModel(uZ),t.registerComponentView(bZ),t.registerPreprocessor((function(t){OK(t.series,"markArea")&&(t.markArea=t.markArea||{})}))}var xZ=function(t,e){return"all"===e?{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])}:"inverse"===e?{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}:void 0},wZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return p(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},e.prototype._updateSelector=function(t){var e=t.selector,n=this.ecModel;!0===e&&(e=t.selector=["all","inverse"]),v["isArray"](e)&&v["each"](e,(function(t,r){v["isString"](t)&&(t={type:t}),e[r]=v["merge"](t,xZ(n,t.type))}))},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n<t.length;n++){var r=t[n].get("name");if(this.isSelected(r)){this.select(r),e=!0;break}}!e&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var e=[],n=[];t.eachRawSeries((function(r){var i,o=r.name;if(n.push(o),r.legendVisualProvider){var a=r.legendVisualProvider,s=a.getAllNames();t.isSeriesFiltered(r)||(n=n.concat(s)),s.length?e=e.concat(s):i=!0}else i=!0;i&&Vi(r)&&e.push(r.name)})),this._availableNames=n;var r=this.get("data")||e,i=v["map"](r,(function(t){return(v["isString"](t)||v["isNumber"](t))&&(t={name:t}),new Wu(t,this,this.ecModel)}),this);this._data=i},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var e=this.option.selected,n=this.get("selectedMode");if("single"===n){var r=this._data;v["each"](r,(function(t){e[t.get("name")]=!1}))}e[t]=!0},e.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,e=this.option.selected;v["each"](t,(function(t){e[t.get("name",!0)]=!0}))},e.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;v["each"](t,(function(t){var n=t.get("name",!0);e.hasOwnProperty(n)||(e[n]=!0),e[n]=!e[n]}))},e.prototype.isSelected=function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&v["indexOf"](this._availableNames,t)>=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(vh),SZ=wZ,OZ=v["curry"],CZ=v["each"],kZ=Nr,AZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return p(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new kZ),this.group.add(this._selectorGroup=new kZ),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,e,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var i=t.get("align"),o=t.get("orient");i&&"auto"!==i||(i="right"===t.get("left")&&"vertical"===o?"right":"left");var a=t.get("selector",!0),s=t.get("selectorPosition",!0);!a||s&&"auto"!==s||(s="horizontal"===o?"end":"start"),this.renderInner(i,t,e,n,a,o,s);var l=t.getBoxLayoutParams(),u={width:n.getWidth(),height:n.getHeight()},c=t.get("padding"),h=ah(l,u,c),f=this.layoutInner(t,i,h,r,a,s),d=ah(v["defaults"]({width:f.width,height:f.height},l),u,c);this.group.x=d.x-f.x,this.group.y=d.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=P$(f,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,e,n,r,i,o,a){var s=this.getContentGroup(),l=v["createHashMap"](),u=e.get("selectedMode"),c=[];n.eachRawSeries((function(t){!t.get("legendHoverLink")&&c.push(t.id)})),CZ(e.getData(),(function(i,o){var a=i.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var h=new kZ;return h.newline=!0,void s.add(h)}var f=n.getSeriesByName(a)[0];if(!l.get(a)){if(f){var d=f.getData(),p=d.getVisual("legendLineStyle")||{},g=d.getVisual("legendIcon"),y=d.getVisual("style"),m=this._createItem(f,a,o,i,e,t,p,y,g,u,r);m.on("click",OZ(IZ,a,null,r,c)).on("mouseover",OZ(PZ,f.name,null,r,c)).on("mouseout",OZ(jZ,f.name,null,r,c)),l.set(a,!0)}else n.eachRawSeries((function(n){if(!l.get(a)&&n.legendVisualProvider){var s=n.legendVisualProvider;if(!s.containName(a))return;var h=s.indexOfName(a),f=s.getItemVisual(h,"style"),d=s.getItemVisual(h,"legendIcon"),p=Object(Qe["parse"])(f.fill);p&&0===p[3]&&(p[3]=.2,f=v["extend"](v["extend"]({},f),{fill:Object(Qe["stringify"])(p,"rgba")}));var g=this._createItem(n,a,o,i,e,t,{},f,d,u,r);g.on("click",OZ(IZ,null,a,r,c)).on("mouseover",OZ(PZ,null,a,r,c)).on("mouseout",OZ(jZ,null,a,r,c)),l.set(a,!0)}}),this);0}}),this),i&&this._createSelector(i,e,r,o,a)},e.prototype._createSelector=function(t,e,n,r,i){var o=this.getSelectorGroup();CZ(t,(function(t){var r=t.type,i=new qs({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===r?"legendAllSelect":"legendInverseSelect"})}});o.add(i);var a=e.getModel("selectorLabel"),s=e.getModel(["emphasis","selectorLabel"]);bu(i,{normal:a,emphasis:s},{defaultText:t.title}),Wl(i)}))},e.prototype._createItem=function(t,e,n,r,i,o,a,s,l,u,c){var h=t.visualDrawType,f=i.get("itemWidth"),d=i.get("itemHeight"),p=i.isSelected(e),g=r.get("symbolRotate"),y=r.get("symbolKeepAspect"),m=r.get("icon");l=m||l||"roundRect";var b=MZ(l,r,a,s,h,p,c),_=new kZ,x=r.getModel("textStyle");if(!v["isFunction"](t.getLegendIcon)||m&&"inherit"!==m){var w="inherit"===m&&t.getData().getVisual("symbol")?"inherit"===g?t.getData().getVisual("symbolRotate"):g:0;_.add(TZ({itemWidth:f,itemHeight:d,icon:l,iconRotate:w,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:y}))}else _.add(t.getLegendIcon({itemWidth:f,itemHeight:d,icon:l,iconRotate:g,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:y}));var S="left"===o?f+5:-5,O=o,C=i.get("formatter"),k=e;v["isString"](C)&&C?k=C.replace("{name}",null!=e?e:""):v["isFunction"](C)&&(k=C(e));var A=r.get("inactiveColor");_.add(new qs({style:xu(x,{text:k,x:S,y:d/2,fill:p?x.getTextColor():A,align:O,verticalAlign:"middle"})}));var M=new Os({shape:_.getBoundingRect(),invisible:!0}),T=r.getModel("tooltip");return T.get("show")&&ny({el:M,componentModel:i,itemName:e,itemTooltipOption:T.option}),_.add(M),_.eachChild((function(t){t.silent=!0})),M.silent=!u,this.getContentGroup().add(_),Wl(_),_.__legendDataIndex=n,_},e.prototype.layoutInner=function(t,e,n,r,i,o){var a=this.getContentGroup(),s=this.getSelectorGroup();ih(t.get("orient"),a,t.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),i){ih("horizontal",s,t.get("selectorItemGap",!0));var c=s.getBoundingRect(),h=[-c.x,-c.y],f=t.get("selectorButtonGap",!0),d=t.getOrient().index,p=0===d?"width":"height",g=0===d?"height":"width",v=0===d?"y":"x";"end"===o?h[d]+=l[p]+f:u[d]+=c[p]+f,h[1-d]+=l[g]/2-c[g]/2,s.x=h[0],s.y=h[1],a.x=u[0],a.y=u[1];var y={x:0,y:0};return y[p]=l[p]+f+c[p],y[g]=Math.max(l[g],c[g]),y[v]=Math.min(0,c[v]+h[1-d]),y}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Up);function MZ(t,e,n,r,i,o,a){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=e.lineWidth>0?2:0),CZ(t,(function(n,r){"inherit"===t[r]&&(t[r]=e[r])}))}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=0===t.lastIndexOf("empty",0)?"fill":"stroke",h=l.getShallow("decal");u.decal=h&&"inherit"!==h?gb(h,a):r.decal,"inherit"===u.fill&&(u.fill=r[i]),"inherit"===u.stroke&&(u.stroke=r[c]),"inherit"===u.opacity&&(u.opacity=("fill"===i?r:n).opacity),s(u,r);var f=e.getModel("lineStyle"),d=f.getLineStyle();if(s(d,n),"auto"===u.fill&&(u.fill=r.fill),"auto"===u.stroke&&(u.stroke=r.fill),"auto"===d.stroke&&(d.stroke=r.fill),!o){var p=e.get("inactiveBorderWidth"),g=u[c];u.lineWidth="auto"===p?r.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),d.stroke=f.get("inactiveColor"),d.lineWidth=f.get("inactiveWidth")}return{itemStyle:u,lineStyle:d}}function TZ(t){var e=t.icon||"roundRect",n=km(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function IZ(t,e,n,r){jZ(t,e,n,r),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),PZ(t,e,n,r)}function EZ(t){var e,n=t.getZr().storage.getDisplayList(),r=0,i=n.length;while(r<i&&!(e=n[r].states.emphasis))r++;return e&&e.hoverLayer}function PZ(t,e,n,r){EZ(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:r})}function jZ(t,e,n,r){EZ(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:r})}var LZ=AZ;function DZ(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries((function(t){for(var n=0;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0}))}function RZ(t,e,n){var r,i={},o="toggleSelected"===t;return n.eachComponent("legend",(function(n){o&&null!=r?n[r?"select":"unSelect"](e.name):"allSelect"===t||"inverseSelect"===t?n[t]():(n[t](e.name),r=n.isSelected(e.name));var a=n.getData();Object(v["each"])(a,(function(t){var e=t.get("name");if("\n"!==e&&""!==e){var r=n.isSelected(e);i.hasOwnProperty(e)?i[e]=i[e]&&r:i[e]=r}}))})),"allSelect"===t||"inverseSelect"===t?{selected:i}:{name:e.name,selected:i}}function NZ(t){t.registerAction("legendToggleSelect","legendselectchanged",Object(v["curry"])(RZ,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",Object(v["curry"])(RZ,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",Object(v["curry"])(RZ,"inverseSelect")),t.registerAction("legendSelect","legendselected",Object(v["curry"])(RZ,"select")),t.registerAction("legendUnSelect","legendunselected",Object(v["curry"])(RZ,"unSelect"))}function BZ(t){t.registerComponentModel(SZ),t.registerComponentView(LZ),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,DZ),t.registerSubTypeDefaulter("legend",(function(){return"plain"})),NZ(t)}var FZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(e,n,r){var i=hh(e);t.prototype.init.call(this,e,n,r),zZ(this,e,i)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),zZ(this,this.option,e)},e.type="legend.scroll",e.defaultOption=Ku(SZ.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}),e}(SZ);function zZ(t,e,n){var r=t.getOrient(),i=[1,1];i[r.index]=0,ch(e,n,{type:"box",ignoreSize:!!i})}var VZ=FZ,qZ=Nr,GZ=["width","height"],HZ=["x","y"],WZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!0,n._currentIndex=0,n}return p(e,t),e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new qZ),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new qZ)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(e,n,r,i,o,a,s){var l=this;t.prototype.renderInner.call(this,e,n,r,i,o,a,s);var u=this._controllerGroup,c=n.get("pageIconSize",!0),h=v["isArray"](c)?c:[c,c];d("pagePrev",0);var f=n.getModel("pageTextStyle");function d(t,e){var r=t+"DataIndex",o=Zv(n.get("pageIcons",!0)[n.getOrient().name][e],{onclick:v["bind"](l._pageGo,l,r,n,i)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});o.name=t,u.add(o)}u.add(new qs({name:"pageText",style:{text:"xx/xx",fill:f.getTextColor(),font:f.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1)},e.prototype.layoutInner=function(t,e,n,r,i,o){var a=this.getSelectorGroup(),s=t.getOrient().index,l=GZ[s],u=HZ[s],c=GZ[1-s],h=HZ[1-s];i&&ih("horizontal",a,t.get("selectorItemGap",!0));var f=t.get("selectorButtonGap",!0),d=a.getBoundingRect(),p=[-d.x,-d.y],g=v["clone"](n);i&&(g[l]=n[l]-d[l]-f);var y=this._layoutContentAndController(t,r,g,s,l,c,h,u);if(i){if("end"===o)p[s]+=y[l]+f;else{var m=d[l]+f;p[s]-=m,y[u]-=m}y[l]+=d[l]+f,p[1-s]+=y[h]+y[c]/2-d[c]/2,y[c]=Math.max(y[c],d[c]),y[h]=Math.min(y[h],d[h]+p[1-s]),a.x=p[0],a.y=p[1],a.markRedraw()}return y},e.prototype._layoutContentAndController=function(t,e,n,r,i,o,a,s){var l=this.getContentGroup(),u=this._containerGroup,c=this._controllerGroup;ih(t.get("orient"),l,t.get("itemGap"),r?n.width:null,r?null:n.height),ih("horizontal",c,t.get("pageButtonItemGap",!0));var h=l.getBoundingRect(),f=c.getBoundingRect(),d=this._showController=h[i]>n[i],p=[-h.x,-h.y];e||(p[r]=l[s]);var g=[0,0],y=[-f.x,-f.y],m=v["retrieve2"](t.get("pageButtonGap",!0),t.get("itemGap",!0));if(d){var b=t.get("pageButtonPosition",!0);"end"===b?y[r]+=n[i]-f[i]:g[r]+=f[i]+m}y[1-r]+=h[o]/2-f[o]/2,l.setPosition(p),u.setPosition(g),c.setPosition(y);var _={x:0,y:0};if(_[i]=d?n[i]:h[i],_[o]=Math.max(h[o],f[o]),_[a]=Math.min(0,f[a]+y[1-r]),u.__rectSize=n[i],d){var x={x:0,y:0};x[i]=Math.max(n[i]-f[i]-m,0),x[o]=_[o],u.setClipPath(new Os({shape:x})),u.__rectSize=x[i]}else c.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var w=this._getPageInfo(t);return null!=w.pageIndex&&lu(l,{x:w.contentPosition[0],y:w.contentPosition[1]},d?t:null),this._updatePageInfoView(t,w),_},e.prototype._pageGo=function(t,e,n){var r=this._getPageInfo(e)[t];null!=r&&n.dispatchAction({type:"legendScroll",scrollDataIndex:r,legendId:e.id})},e.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;v["each"](["pagePrev","pageNext"],(function(r){var i=r+"DataIndex",o=null!=e[i],a=n.childOfName(r);a&&(a.setStyle("fill",o?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),a.cursor=o?"pointer":"default")}));var r=n.childOfName("pageText"),i=t.get("pageFormatter"),o=e.pageIndex,a=null!=o?o+1:0,s=e.pageCount;r&&i&&r.setStyle("text",v["isString"](i)?i.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):i({current:a,total:s}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=t.getOrient().index,o=GZ[i],a=HZ[i],s=this._findTargetItemIndex(e),l=n.children(),u=l[s],c=l.length,h=c?1:0,f={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return f;var d=m(u);f.contentPosition[i]=-d.s;for(var p=s+1,g=d,v=d,y=null;p<=c;++p)y=m(l[p]),(!y&&v.e>g.s+r||y&&!b(y,g.s))&&(g=v.i>g.i?v:y,g&&(null==f.pageNextDataIndex&&(f.pageNextDataIndex=g.i),++f.pageCount)),v=y;for(p=s-1,g=d,v=d,y=null;p>=-1;--p)y=m(l[p]),y&&b(v,y.s)||!(g.i<v.i)||(v=g,null==f.pagePrevDataIndex&&(f.pagePrevDataIndex=g.i),++f.pageCount,++f.pageIndex),g=y;return f;function m(t){if(t){var e=t.getBoundingRect(),n=e[a]+t[a];return{s:n,e:n+e[o],i:t.__legendDataIndex}}}function b(t,e){return t.e>=e&&t.s<=e+r}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var e,n,r=this.getContentGroup();return r.eachChild((function(r,i){var o=r.__legendDataIndex;null==n&&null!=o&&(n=i),o===t&&(e=i)})),null!=e?e:n},e.type="legend.scroll",e}(LZ),UZ=WZ;function $Z(t){t.registerAction("legendScroll","legendscroll",(function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},(function(t){t.setScrollDataIndex(n)}))}))}function YZ(t){px(BZ),t.registerComponentModel(VZ),t.registerComponentView(UZ),$Z(t)}function XZ(t){px(BZ),px(YZ)}var KZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.type="dataZoom.inside",e.defaultOption=Ku(s$.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(s$),ZZ=KZ,QZ=Yi();function JZ(t,e,n){QZ(t).coordSysRecordMap.each((function(t){var r=t.dataZoomInfoMap.get(e.uid);r&&(r.getRange=n)}))}function tQ(t,e){for(var n=QZ(t).coordSysRecordMap,r=n.keys(),i=0;i<r.length;i++){var o=r[i],a=n.get(o),s=a.dataZoomInfoMap;if(s){var l=e.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||eQ(n,a))}}}function eQ(t,e){if(e){t.removeKey(e.model.uid);var n=e.controller;n&&n.dispose()}}function nQ(t,e){var n={model:e,containsPoint:Object(v["curry"])(iQ,e),dispatchAction:Object(v["curry"])(rQ,t),dataZoomInfoMap:null,controller:null},r=n.controller=new cE(t.getZr());return Object(v["each"])(["pan","zoom","scrollMove"],(function(t){r.on(t,(function(e){var r=[];n.dataZoomInfoMap.each((function(i){if(e.isAvailableBehavior(i.model.option)){var o=(i.getRange||{})[t],a=o&&o(i.dzReferCoordSysInfo,n.model.mainType,n.controller,e);!i.model.get("disabled",!0)&&a&&r.push({dataZoomId:i.model.id,start:a[0],end:a[1]})}})),r.length&&n.dispatchAction(r)}))})),n}function rQ(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function iQ(t,e,n,r){return t.coordinateSystem.containPoint([n,r])}function oQ(t){var e,n="type_",r={type_true:2,type_move:1,type_false:0,type_undefined:-1},i=!0;return t.each((function(t){var o=t.model,a=!o.get("disabled",!0)&&(!o.get("zoomLock",!0)||"move");r[n+a]>r[n+e]&&(e=a),i=i&&o.get("preventDefaultMouseMove",!0)})),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function aQ(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,(function(t,e){var n=QZ(e),r=n.coordSysRecordMap||(n.coordSysRecordMap=Object(v["createHashMap"])());r.each((function(t){t.dataZoomInfoMap=null})),t.eachComponent({mainType:"dataZoom",subType:"inside"},(function(t){var n=r$(t);Object(v["each"])(n.infoList,(function(n){var i=n.model.uid,o=r.get(i)||r.set(i,nQ(e,n.model)),a=o.dataZoomInfoMap||(o.dataZoomInfoMap=Object(v["createHashMap"])());a.set(t.uid,{dzReferCoordSysInfo:n,model:t,getRange:null})}))})),r.each((function(t){var e,n=t.controller,i=t.dataZoomInfoMap;if(i){var o=i.keys()[0];null!=o&&(e=i.get(o))}if(e){var a=oQ(i);n.enable(a.controlType,a.opt),n.setPointerChecker(t.containsPoint),my(t,"dispatchAction",e.model.get("throttle",!0),"fixRate")}else eQ(r,t)}))}))}var sQ=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return p(e,t),e.prototype.render=function(e,n,r){t.prototype.render.apply(this,arguments),e.noTarget()?this._clear():(this.range=e.getPercentRange(),JZ(r,e,{pan:Object(v["bind"])(lQ.pan,this),zoom:Object(v["bind"])(lQ.zoom,this),scrollMove:Object(v["bind"])(lQ.scrollMove,this)}))},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){tQ(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(h$),lQ={zoom:function(t,e,n,r){var i=this.range,o=i.slice(),a=t.axisModels[0];if(a){var s=cQ[e](null,[r.originX,r.originY],a,n,t),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/r.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return BN(0,o,[0,100],0,c.minSpan,c.maxSpan),this.range=o,i[0]!==o[0]||i[1]!==o[1]?o:void 0}},pan:uQ((function(t,e,n,r,i,o){var a=cQ[r]([o.oldX,o.oldY],[o.newX,o.newY],e,i,n);return a.signal*(t[1]-t[0])*a.pixel/a.pixelLength})),scrollMove:uQ((function(t,e,n,r,i,o){var a=cQ[r]([0,0],[o.scrollDelta,o.scrollDelta],e,i,n);return a.signal*(t[1]-t[0])*o.scrollDelta}))};function uQ(t){return function(e,n,r,i){var o=this.range,a=o.slice(),s=e.axisModels[0];if(s){var l=t(a,s,e,n,r,i);return BN(l,a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}}var cQ={grid:function(t,e,n,r,i){var o=n.axis,a={},s=i.model.coordinateSystem.getRect();return t=t||[0,0],"x"===o.dim?(a.pixel=e[0]-t[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(t,e,n,r,i){var o=n.axis,a={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===n.mainType?(a.pixel=e[0]-t[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(t,e,n,r,i){var o=n.axis,a=i.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===o.orient?(s.pixel=e[0]-t[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}},hQ=sQ;function fQ(t){S$(t),t.registerComponentModel(ZZ),t.registerComponentView(hQ),aQ(t)}var dQ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=Ku(s$.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(s$),pQ=dQ,gQ=Os,vQ=7,yQ=1,mQ=30,bQ=7,_Q="horizontal",xQ="vertical",wQ=5,SQ=["line","bar","candlestick","scatter"],OQ={easing:"cubicOut",duration:100,delay:0},CQ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._displayables={},n}return p(e,t),e.prototype.init=function(t,e){this.api=e,this._onBrush=Object(v["bind"])(this._onBrush,this),this._onBrushEnd=Object(v["bind"])(this._onBrushEnd,this)},e.prototype.render=function(e,n,r,i){if(t.prototype.render.apply(this,arguments),my(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),!1!==e.get("show")){if(e.noTarget())return this._clear(),void this.group.removeAll();i&&"dataZoom"===i.type&&i.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){by(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var e=this._displayables.sliderGroup=new Nr;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,n=t.get("brushSelect"),r=n?bQ:0,i=this._findCoordRect(),o={width:e.getWidth(),height:e.getHeight()},a=this._orient===_Q?{right:o.width-i.x-i.width,top:o.height-mQ-vQ-r,width:i.width,height:mQ}:{right:vQ,top:i.y,width:mQ,height:i.height},s=hh(t.option);Object(v["each"])(["right","top","width","height"],(function(t){"ph"===s[t]&&(s[t]=a[t])}));var l=ah(s,o);this._location={x:l.x,y:l.y},this._size=[l.width,l.height],this._orient===xQ&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,e=this._location,n=this._orient,r=this.dataZoomModel.getFirstTargetAxisModel(),i=r&&r.get("inverse"),o=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==_Q||i?n===_Q&&i?{scaleY:a?1:-1,scaleX:-1}:n!==xQ||i?{scaleY:a?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:a?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:a?1:-1,scaleX:1});var s=t.getBoundingRect([o]);t.x=e.x-s.x,t.y=e.y-s.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.sliderGroup,r=t.get("brushSelect");n.add(new gQ({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var i=new gQ({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:Object(v["bind"])(this._onClickPanel,this)}),o=this.api.getZr();r?(i.on("mousedown",this._onBrushStart,this),i.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),n.add(i)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],t){var e=this._size,n=this._shadowSize||[],r=t.series,i=r.getRawData(),o=r.getShadowDim&&r.getShadowDim(),a=o&&i.getDimensionInfo(o)?r.getShadowDim():t.otherDim;if(null!=a){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(i!==this._shadowData||a!==this._shadowDim||e[0]!==n[0]||e[1]!==n[1]){var u=i.getDataExtent(a),c=.3*(u[1]-u[0]);u=[u[0]-c,u[1]+c];var h,f=[0,e[1]],d=[0,e[0]],p=[[e[0],0],[0,0]],g=[],v=d[1]/(i.count()-1),y=0,m=Math.round(i.count()/e[0]);i.each([a],(function(t,e){if(m>0&&e%m)y+=v;else{var n=null==t||isNaN(t)||""===t,r=n?0:Qr(t,u,f,!0);n&&!h&&e?(p.push([p[p.length-1][0],0]),g.push([g[g.length-1][0],0])):!n&&h&&(p.push([y,0]),g.push([y,0])),p.push([y,r]),g.push([y,r]),y+=v,h=n}})),s=this._shadowPolygonPts=p,l=this._shadowPolylinePts=g}this._shadowData=i,this._shadowDim=a,this._shadowSize=[e[0],e[1]];for(var b=this.dataZoomModel,_=0;_<3;_++){var x=w(1===_);this._displayables.sliderGroup.add(x),this._displayables.dataShadowSegs.push(x)}}}function w(t){var e=b.getModel(t?"selectedDataBackground":"dataBackground"),n=new Nr,r=new Yg({shape:{points:s},segmentIgnoreThreshold:1,style:e.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),i=new Zg({shape:{points:l},segmentIgnoreThreshold:1,style:e.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(r),n.add(i),n}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(!1!==e){var n,r=this.ecModel;return t.eachTargetAxis((function(i,o){var a=t.getAxisProxy(i,o).getTargetSeriesModels();Object(v["each"])(a,(function(t){if(!n&&!(!0!==e&&Object(v["indexOf"])(SQ,t.get("type"))<0)){var a,s=r.getComponent(e$(i),o).axis,l=kQ(i),u=t.coordinateSystem;null!=l&&u.getOtherAxis&&(a=u.getOtherAxis(s).inverse),l=t.getData().mapDimension(l),n={thisAxis:s,series:t,thisDim:i,otherDim:l,otherAxisInverse:a}}}),this)}),this),n}},e.prototype._renderHandle=function(){var t=this.group,e=this._displayables,n=e.handles=[null,null],r=e.handleLabels=[null,null],i=this._displayables.sliderGroup,o=this._size,a=this.dataZoomModel,s=this.api,l=a.get("borderRadius")||0,u=a.get("brushSelect"),c=e.filler=new gQ({silent:u,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});i.add(c),i.add(new gQ({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:l},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:yQ,fill:"rgba(0,0,0,0)"}})),Object(v["each"])([0,1],(function(e){var o=a.get("handleIcon");!Sm[o]&&o.indexOf("path://")<0&&o.indexOf("image://")<0&&(o="path://"+o);var s=km(o,-1,0,2,2,null,!0);s.attr({cursor:AQ(this._orient),draggable:!0,drift:Object(v["bind"])(this._onDragMove,this,e),ondragend:Object(v["bind"])(this._onDragEnd,this),onmouseover:Object(v["bind"])(this._showDataInfo,this,!0),onmouseout:Object(v["bind"])(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),u=a.get("handleSize");this._handleHeight=Jr(u,this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,s.setStyle(a.getModel("handleStyle").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState("emphasis").style=a.getModel(["emphasis","handleStyle"]).getItemStyle(),Wl(s);var c=a.get("handleColor");null!=c&&(s.style.fill=c),i.add(n[e]=s);var h=a.getModel("textStyle");t.add(r[e]=new qs({silent:!0,invisible:!0,style:xu(h,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:h.getTextColor(),font:h.getFont()}),z2:10}))}),this);var h=c;if(u){var f=Jr(a.get("moveHandleSize"),o[1]),d=e.moveHandle=new Os({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:f}}),p=.8*f,g=e.moveHandleIcon=km(a.get("moveHandleIcon"),-p/2,-p/2,p,p,"#fff",!0);g.silent=!0,g.y=o[1]+f/2-.5,d.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(o[1]/2,Math.max(f,10));h=e.moveZone=new Os({invisible:!0,shape:{y:o[1]-y,height:f+y}}),h.on("mouseover",(function(){s.enterEmphasis(d)})).on("mouseout",(function(){s.leaveEmphasis(d)})),i.add(d),i.add(g),i.add(h)}h.attr({draggable:!0,cursor:AQ(this._orient),drift:Object(v["bind"])(this._onDragMove,this,"all"),ondragstart:Object(v["bind"])(this._showDataInfo,this,!0),ondragend:Object(v["bind"])(this._onDragEnd,this),onmouseover:Object(v["bind"])(this._showDataInfo,this,!0),onmouseout:Object(v["bind"])(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[Qr(t[0],[0,100],e,!0),Qr(t[1],[0,100],e,!0)]},e.prototype._updateInterval=function(t,e){var n=this.dataZoomModel,r=this._handleEnds,i=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];BN(e,r,i,n.get("zoomLock")?"all":t,null!=o.minSpan?Qr(o.minSpan,a,i,!0):null,null!=o.maxSpan?Qr(o.maxSpan,a,i,!0):null);var s=this._range,l=this._range=ei([Qr(r[0],i,a,!0),Qr(r[1],i,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},e.prototype._updateView=function(t){var e=this._displayables,n=this._handleEnds,r=ei(n.slice()),i=this._size;Object(v["each"])([0,1],(function(t){var r=e.handles[t],o=this._handleHeight;r.attr({scaleX:o/2,scaleY:o/2,x:n[t]+(t?-1:1),y:i[1]/2-o/2})}),this),e.filler.setShape({x:r[0],y:0,width:r[1]-r[0],height:i[1]});var o={x:r[0],width:r[1]-r[0]};e.moveHandle&&(e.moveHandle.setShape(o),e.moveZone.setShape(o),e.moveZone.getBoundingRect(),e.moveHandleIcon&&e.moveHandleIcon.attr("x",o.x+o.width/2));for(var a=e.dataShadowSegs,s=[0,r[0],r[1],i[0]],l=0;l<a.length;l++){var u=a[l],c=u.getClipPath();c||(c=new Os,u.setClipPath(c)),c.setShape({x:s[l],y:0,width:s[l+1]-s[l],height:i[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var e=this.dataZoomModel,n=this._displayables,r=n.handleLabels,i=this._orient,o=["",""];if(e.get("showDetail")){var a=e.findRepresentativeAxisProxy();if(a){var s=a.getAxisModel().axis,l=this._range,u=t?a.calculateDataWindow({start:l[0],end:l[1]}).valueWindow:a.getDataValueWindow();o=[this._formatLabel(u[0],s),this._formatLabel(u[1],s)]}}var c=ei(this._handleEnds.slice());function h(t){var e=Gv(n.handles[t].parent,this.group),a=Wv(0===t?"right":"left",e),s=this._handleWidth/2+wQ,l=Hv([c[t]+(0===t?-s:s),this._size[1]/2],e);r[t].setStyle({x:l[0],y:l[1],verticalAlign:i===_Q?"middle":a,align:i===_Q?a:"center",text:o[t]})}h.call(this,0),h.call(this,1)},e.prototype._formatLabel=function(t,e){var n=this.dataZoomModel,r=n.get("labelFormatter"),i=n.get("labelPrecision");null!=i&&"auto"!==i||(i=e.getPixelPrecision());var o=null==t||isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(i,20));return Object(v["isFunction"])(r)?r(t,o):Object(v["isString"])(r)?r.replace("{value}",o):o},e.prototype._showDataInfo=function(t){t=this._dragging||t;var e=this._displayables,n=e.handleLabels;n[0].attr("invisible",!t),n[1].attr("invisible",!t),e.moveHandle&&this.api[t?"enterEmphasis":"leaveEmphasis"](e.moveHandle,1)},e.prototype._onDragMove=function(t,e,n,r){this._dragging=!0,vt(r.event);var i=this._displayables.sliderGroup.getLocalTransform(),o=Hv([e,n],i,!0),a=this._updateInterval(t,o[0]),s=this.dataZoomModel.get("realtime");this._updateView(!s),a&&s&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var t=this.dataZoomModel.get("realtime");!t&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var e=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(n[0]<0||n[0]>e[0]||n[1]<0||n[1]>e[1])){var r=this._handleEnds,i=(r[0]+r[1])/2,o=this._updateInterval("all",n[0]-i);this._updateView(),o&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var e=t.offsetX,n=t.offsetY;this._brushStart=new Pt(e,n),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var e=this._displayables.brushRect;if(this._brushing=!1,e){e.attr("ignore",!0);var n=e.shape,r=+new Date;if(!(r-this._brushStartTime<200&&Math.abs(n.width)<5)){var i=this._getViewExtent(),o=[0,100];this._range=ei([Qr(n.x,i,o,!0),Qr(n.x+n.width,i,o,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(vt(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,e){var n=this._displayables,r=this.dataZoomModel,i=n.brushRect;i||(i=n.brushRect=new gQ({silent:!0,style:r.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(i)),i.attr("ignore",!1);var o=this._brushStart,a=this._displayables.sliderGroup,s=a.transformCoordToLocal(t,e),l=a.transformCoordToLocal(o.x,o.y),u=this._size;s[0]=Math.max(Math.min(u[0],s[0]),0),i.setShape({x:l[0],y:0,width:s[0]-l[0],height:u[1]})},e.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?OQ:null,start:e[0],end:e[1]})},e.prototype._findCoordRect=function(){var t,e=r$(this.dataZoomModel).infoList;if(!t&&e.length){var n=e[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var r=this.api.getWidth(),i=this.api.getHeight();t={x:.2*r,y:.2*i,width:.6*r,height:.6*i}}return t},e.type="dataZoom.slider",e}(h$);function kQ(t){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[t]}function AQ(t){return"vertical"===t?"ns-resize":"ew-resize"}var MQ=CQ;function TQ(t){t.registerComponentModel(pQ),t.registerComponentView(MQ),S$(t)}function IQ(t){px(fQ),px(TQ)}var EQ={get:function(t,e,n){var r=v["clone"]((PQ[t]||{})[e]);return n&&v["isArray"](r)?r[r.length-1]:r}},PQ={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]}},jQ=EQ,LQ=UL.mapVisual,DQ=UL.eachVisual,RQ=v["isArray"],NQ=v["each"],BQ=ei,FQ=Qr,zQ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return p(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&OX(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var e=this.stateList;t=v["bind"](t,this),this.controllerVisuals=SX(this.option.controller,e,t),this.targetVisuals=SX(this.option.target,e,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,e=[];return null==t||"all"===t?this.ecModel.eachSeries((function(t,n){e.push(n)})):e=ki(t),e},e.prototype.eachTargetSeries=function(t,e){v["each"](this.getTargetSeriesIndices(),(function(n){var r=this.ecModel.getSeriesByIndex(n);r&&t.call(e,r)}),this)},e.prototype.isTargetSeries=function(t){var e=!1;return this.eachTargetSeries((function(n){n===t&&(e=!0)})),e},e.prototype.formatValueText=function(t,e,n){var r,i=this.option,o=i.precision,a=this.dataBound,s=i.formatter;n=n||["<",">"],v["isArray"](t)&&(t=t.slice(),r=!0);var l=e?t:r?[u(t[0]),u(t[1])]:u(t);return v["isString"](s)?s.replace("{value}",r?l[0]:l).replace("{value2}",r?l[1]:l):v["isFunction"](s)?r?s(t[0],t[1]):s(t):r?t[0]===a[0]?n[0]+" "+l[1]:t[1]===a[1]?n[1]+" "+l[0]:l[0]+" - "+l[1]:l;function u(t){return t===a[0]?"min":t===a[1]?"max":(+t).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,e=BQ([t.min,t.max]);this._dataExtent=e},e.prototype.getDataDimensionIndex=function(t){var e=this.option.dimension;if(null!=e)return t.getDimensionIndex(e);for(var n=t.dimensions,r=n.length-1;r>=0;r--){var i=n[r],o=t.getDimensionInfo(i);if(!o.isCalculationCoord)return o.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,e=this.option,n={inRange:e.inRange,outOfRange:e.outOfRange},r=e.target||(e.target={}),i=e.controller||(e.controller={});v["merge"](r,n),v["merge"](i,n);var o=this.isCategory();function a(n){RQ(e.color)&&!n.inRange&&(n.inRange={color:e.color.slice().reverse()}),n.inRange=n.inRange||{color:t.get("gradientColor")}}function s(t,e,n){var r=t[e],i=t[n];r&&!i&&(i=t[n]={},NQ(r,(function(t,e){if(UL.isValidType(e)){var n=jQ.get(e,"inactive",o);null!=n&&(i[e]=n,"color"!==e||i.hasOwnProperty("opacity")||i.hasOwnProperty("colorAlpha")||(i.opacity=[0,0]))}})))}function l(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,r=this.get("inactiveColor"),i=this.getItemSymbol(),a=i||"roundRect";NQ(this.stateList,(function(i){var s=this.itemSize,l=t[i];l||(l=t[i]={color:o?r:[r]}),null==l.symbol&&(l.symbol=e&&v["clone"](e)||(o?a:[a])),null==l.symbolSize&&(l.symbolSize=n&&v["clone"](n)||(o?s[0]:[s[0],s[0]])),l.symbol=LQ(l.symbol,(function(t){return"none"===t?a:t}));var u=l.symbolSize;if(null!=u){var c=-1/0;DQ(u,(function(t){t>c&&(c=t)})),l.symbolSize=LQ(u,(function(t){return FQ(t,[0,c],[0,s[0]],!0)}))}}),this)}a.call(this,r),a.call(this,i),s.call(this,r,"inRange","outOfRange"),l.call(this,i)},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,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,textStyle:{color:"#333"}},e}(vh),VQ=zQ,qQ=[20,140],GQ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()})),this._resetRange()},e.prototype.resetItemSize=function(){t.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(null==e[0]||isNaN(e[0]))&&(e[0]=qQ[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=qQ[1])},e.prototype._resetRange=function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):v["isArray"](e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},e.prototype.completeVisualOption=function(){t.prototype.completeVisualOption.apply(this,arguments),v["each"](this.stateList,(function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=e[1]/3)}),this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),e=ei((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]<t[0]&&(e[0]=t[0]),e[1]<t[0]&&(e[1]=t[0]),e},e.prototype.getValueState=function(t){var e=this.option.range,n=this.getExtent();return(e[0]<=n[0]||e[0]<=t)&&(e[1]>=n[1]||t<=e[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[];return this.eachTargetSeries((function(n){var r=[],i=n.getData();i.each(this.getDataDimensionIndex(i),(function(e,n){t[0]<=e&&e<=t[1]&&r.push(n)}),this),e.push({seriesId:n.id,dataIndex:r})}),this),e},e.prototype.getVisualMeta=function(t){var e=HQ(this,"outOfRange",this.getExtent()),n=HQ(this,"inRange",this.option.range.slice()),r=[];function i(e,n){r.push({value:e,color:t(e,n)})}for(var o=0,a=0,s=n.length,l=e.length;a<l&&(!n.length||e[a]<=n[0]);a++)e[a]<n[o]&&i(e[a],"outOfRange");for(var u=1;o<s;o++,u=0)u&&r.length&&i(n[o],"outOfRange"),i(n[o],"inRange");for(u=1;a<l;a++)(!n.length||n[n.length-1]<e[a])&&(u&&(r.length&&i(r[r.length-1].value,"outOfRange"),u=0),i(e[a],"outOfRange"));var c=r.length;return{stops:r,outerColors:[c?r[0].color:"transparent",c?r[c-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=Ku(VQ.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),e}(VQ);function HQ(t,e,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 WQ=GQ,UQ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return p(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e},e.prototype.render=function(t,e,n,r){this.visualMapModel=t,!1!==t.get("show")?this.doRender(t,e,n,r):this.group.removeAll()},e.prototype.renderBackground=function(t){var e=this.visualMapModel,n=Gc(e.get("padding")||0),r=t.getBoundingRect();t.add(new Os({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:e.get("backgroundColor"),stroke:e.get("borderColor"),lineWidth:e.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,e,n){n=n||{};var r=n.forceState,i=this.visualMapModel,o={};if("color"===e){var a=i.get("contentColor");o.color=a}function s(t){return o[t]}function l(t,e){o[t]=e}var u=i.controllerVisuals[r||i.getValueState(t)],c=UL.prepareVisualTypes(u);return v["each"](c,(function(r){var i=u[r];n.convertOpacityToAlpha&&"opacity"===r&&(r="colorAlpha",i=u.__alphaForOpacity),UL.dependsOn(r,e)&&i&&i.applyVisual(t,s,l)})),o[e]},e.prototype.positionGroup=function(t){var e=this.visualMapModel,n=this.api;sh(t,e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},e.prototype.doRender=function(t,e,n,r){},e.type="visualMap",e}(Up),$Q=UQ,YQ=[["left","right","width"],["top","bottom","height"]];function XQ(t,e,n){var r=t.option,i=r.align;if(null!=i&&"auto"!==i)return i;for(var o={width:e.getWidth(),height:e.getHeight()},a="horizontal"===r.orient?1:0,s=YQ[a],l=[0,null,10],u={},c=0;c<3;c++)u[YQ[1-a][c]]=l[c],u[s[c]]=2===c?n[0]:r[s[c]];var h=[["x","width",3],["y","height",0]][a],f=ah(u,o,r.padding);return s[(f.margin[h[2]]||0)+f[h[0]]+.5*f[h[1]]<.5*o[h[1]]?0:1]}function KQ(t,e){return v["each"](t||[],(function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")})),t}var ZQ=Qr,QQ=v["each"],JQ=Math.min,tJ=Math.max,eJ=12,nJ=6,rJ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return p(e,t),e.prototype.doRender=function(t,e,n,r){this._api=n,r&&"selectDataRange"===r.type&&r.from===this.uid||this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,e=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(e);var n=t.get("text");this._renderEndsText(e,n,0),this._renderEndsText(e,n,1),this._updateView(!0),this.renderBackground(e),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(e)},e.prototype._renderEndsText=function(t,e,n){if(e){var r=e[1-n];r=null!=r?r+"":"";var i=this.visualMapModel,o=i.get("textGap"),a=i.itemSize,s=this._shapes.mainGroup,l=this._applyTransform([a[0]/2,0===n?-o:a[1]+o],s),u=this._applyTransform(0===n?"bottom":"top",s),c=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new qs({style:xu(h,{x:l[0],y:l[1],verticalAlign:"horizontal"===c?"middle":u,align:"horizontal"===c?u:"center",text:r})}))}},e.prototype._renderBar=function(t){var e=this.visualMapModel,n=this._shapes,r=e.itemSize,i=this._orient,o=this._useHandle,a=XQ(e,this.api,r),s=n.mainGroup=this._createBarGroup(a),l=new Nr;s.add(l),l.add(n.outOfRange=iJ()),l.add(n.inRange=iJ(null,o?sJ(this._orient):null,v["bind"](this._dragHandle,this,"all",!1),v["bind"](this._dragHandle,this,"all",!0))),l.setClipPath(new Os({shape:{x:0,y:0,width:r[0],height:r[1],r:3}}));var u=e.textStyleModel.getTextRect("国"),c=tJ(u.width,u.height);o&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(e,s,0,r,c,i),this._createHandle(e,s,1,r,c,i)),this._createIndicator(e,s,r,c,i),t.add(s)},e.prototype._createHandle=function(t,e,n,r,i,o){var a=v["bind"](this._dragHandle,this,n,!1),s=v["bind"](this._dragHandle,this,n,!0),l=_r(t.get("handleSize"),r[0]),u=km(t.get("handleIcon"),-l/2,-l/2,l,l,null,!0),c=sJ(this._orient);u.attr({cursor:c,draggable:!0,drift:a,ondragend:s,onmousemove:function(t){vt(t.event)}}),u.x=r[0]/2,u.useStyle(t.getModel("handleStyle").getItemStyle()),u.setStyle({strokeNoScale:!0,strokeFirst:!0}),u.style.lineWidth*=2,u.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),Ql(u,!0),e.add(u);var h=this.visualMapModel.textStyleModel,f=new qs({cursor:c,draggable:!0,drift:a,onmousemove:function(t){vt(t.event)},ondragend:s,style:xu(h,{x:0,y:0,text:""})});f.ensureState("blur").style={opacity:.1},f.stateTransition={duration:200},this.group.add(f);var d=[l,0],p=this._shapes;p.handleThumbs[n]=u,p.handleLabelPoints[n]=d,p.handleLabels[n]=f},e.prototype._createIndicator=function(t,e,n,r,i){var o=_r(t.get("indicatorSize"),n[0]),a=km(t.get("indicatorIcon"),-o/2,-o/2,o,o,null,!0);a.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var s=t.getModel("indicatorStyle").getItemStyle();if(a instanceof gs){var l=a.style;a.useStyle(v["extend"]({image:l.image,x:l.x,y:l.y,width:l.width,height:l.height},s))}else a.useStyle(s);e.add(a);var u=this.visualMapModel.textStyleModel,c=new qs({silent:!0,invisible:!0,style:xu(u,{x:0,y:0,text:""})});this.group.add(c);var h=[("horizontal"===i?r/2:nJ)+n[0]/2,0],f=this._shapes;f.indicator=a,f.indicatorLabel=c,f.indicatorLabelPoint=h,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,e,n,r){if(this._useHandle){if(this._dragging=!e,!e){var i=this._applyTransform([n,r],this._shapes.mainGroup,!0);this._updateInterval(t,i[1]),this._hideIndicator(),this._updateView()}e===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),e?!this._hovering&&this._clearHoverLinkToSeries():aJ(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,e=this._dataInterval=t.getSelected(),n=t.getExtent(),r=[0,t.itemSize[1]];this._handleEnds=[ZQ(e[0],n,r,!0),ZQ(e[1],n,r,!0)]},e.prototype._updateInterval=function(t,e){e=e||0;var n=this.visualMapModel,r=this._handleEnds,i=[0,n.itemSize[1]];BN(e,r,i,t,0);var o=n.getExtent();this._dataInterval=[ZQ(r[0],i,o,!0),ZQ(r[1],i,o,!0)]},e.prototype._updateView=function(t){var e=this.visualMapModel,n=e.getExtent(),r=this._shapes,i=[0,e.itemSize[1]],o=t?i:this._handleEnds,a=this._createBarVisual(this._dataInterval,n,o,"inRange"),s=this._createBarVisual(n,n,i,"outOfRange");r.inRange.setStyle({fill:a.barColor}).setShape("points",a.barPoints),r.outOfRange.setStyle({fill:s.barColor}).setShape("points",s.barPoints),this._updateHandle(o,a)},e.prototype._createBarVisual=function(t,e,n,r){var i={forceState:r,convertOpacityToAlpha:!0},o=this._makeColorGradient(t,i),a=[this.getControllerVisual(t[0],"symbolSize",i),this.getControllerVisual(t[1],"symbolSize",i)],s=this._createBarPoints(n,a);return{barColor:new gv(0,0,0,1,o),barPoints:s,handlesColor:[o[0].color,o[o.length-1].color]}},e.prototype._makeColorGradient=function(t,e){var n=100,r=[],i=(t[1]-t[0])/n;r.push({color:this.getControllerVisual(t[0],"color",e),offset:0});for(var o=1;o<n;o++){var a=t[0]+i*o;if(a>t[1])break;r.push({color:this.getControllerVisual(a,"color",e),offset:o/n})}return r.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),r},e.prototype._createBarPoints=function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},e.prototype._createBarGroup=function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new Nr("horizontal"!==e||n?"horizontal"===e&&n?{scaleX:"bottom"===t?-1:1,rotation:-Math.PI/2}:"vertical"!==e||n?{scaleX:"left"===t?1:-1}:{scaleX:"left"===t?1:-1,scaleY:-1}:{scaleX:"bottom"===t?1:-1,rotation:Math.PI/2})},e.prototype._updateHandle=function(t,e){if(this._useHandle){var n=this._shapes,r=this.visualMapModel,i=n.handleThumbs,o=n.handleLabels,a=r.itemSize,s=r.getExtent();QQ([0,1],(function(l){var u=i[l];u.setStyle("fill",e.handlesColor[l]),u.y=t[l];var c=ZQ(t[l],[0,a[1]],s,!0),h=this.getControllerVisual(c,"symbolSize");u.scaleX=u.scaleY=h/a[0],u.x=a[0]-h/2;var f=Hv(n.handleLabelPoints[l],Gv(u,this.group));o[l].setStyle({x:f[0],y:f[1],text:r.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},e.prototype._showIndicator=function(t,e,n,r){var i=this.visualMapModel,o=i.getExtent(),a=i.itemSize,s=[0,a[1]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var c={convertOpacityToAlpha:!0},h=this.getControllerVisual(t,"color",c),f=this.getControllerVisual(t,"symbolSize"),d=ZQ(t,o,s,!0),p=a[0]-f/2,g={x:u.x,y:u.y};u.y=d,u.x=p;var v=Hv(l.indicatorLabelPoint,Gv(u,this.group)),y=l.indicatorLabel;y.attr("invisible",!1);var m=this._applyTransform("left",l.mainGroup),b=this._orient,_="horizontal"===b;y.setStyle({text:(n||"")+i.formatValueText(e),verticalAlign:_?m:"middle",align:_?"center":m});var x={x:p,y:d,style:{fill:h}},w={style:{x:v[0],y:v[1]}};if(i.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var S={duration:100,easing:"cubicInOut",additive:!0};u.x=g.x,u.y=g.y,u.animateTo(x,S),y.animateTo(w,S)}else u.attr(x),y.attr(w);this._firstShowIndicator=!1;var O=this._shapes.handleLabels;if(O)for(var C=0;C<O.length;C++)this._api.enterBlur(O[C])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",(function(e){if(t._hovering=!0,!t._dragging){var n=t.visualMapModel.itemSize,r=t._applyTransform([e.offsetX,e.offsetY],t._shapes.mainGroup,!0,!0);r[1]=JQ(tJ(0,r[1]),n[1]),t._doHoverLinkToSeries(r[1],0<=r[0]&&r[0]<=n[0])}})).on("mouseout",(function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()}))},e.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(t,e){var n=this.visualMapModel,r=n.itemSize;if(n.option.hoverLink){var i=[0,r[1]],o=n.getExtent();t=JQ(tJ(i[0],t),i[1]);var a=oJ(n,o,i),s=[t-a,t+a],l=ZQ(t,i,o,!0),u=[ZQ(s[0],i,o,!0),ZQ(s[1],i,o,!0)];s[0]<i[0]&&(u[0]=-1/0),s[1]>i[1]&&(u[1]=1/0),e&&(u[0]===-1/0?this._showIndicator(l,u[1],"< ",a):u[1]===1/0?this._showIndicator(l,u[0],"> ",a):this._showIndicator(l,l,"≈ ",a));var c=this._hoverLinkDataIndices,h=[];(e||aJ(n))&&(h=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var f=Ui(c,h);this._dispatchHighDown("downplay",KQ(f[0],n)),this._dispatchHighDown("highlight",KQ(f[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var e;if(fm(t.target,(function(t){var n=Gs(t);if(null!=n.dataIndex)return e=n,!0}),!0),e){var n=this.ecModel.getSeriesByIndex(e.seriesIndex),r=this.visualMapModel;if(r.isTargetSeries(n)){var i=n.getData(e.dataType),o=i.getStore().get(r.getDataDimensionIndex(i),e.dataIndex);isNaN(o)||this._showIndicator(o,o)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var e=this._shapes.handleLabels;if(e)for(var n=0;n<e.length;n++)this._api.leaveBlur(e[n])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",KQ(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(t,e,n,r){var i=Gv(e,r?null:this.group);return v["isArray"](t)?Hv(t,i,n):Wv(t,i,n)},e.prototype._dispatchHighDown=function(t,e){e&&e.length&&this.api.dispatchAction({type:t,batch:e})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.prototype.remove=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}($Q);function iJ(t,e,n,r){return new Yg({shape:{points:t},draggable:!!n,cursor:e,drift:n,onmousemove:function(t){vt(t.event)},ondragend:r})}function oJ(t,e,n){var r=eJ/2,i=t.get("hoverLinkDataSize");return i&&(r=ZQ(i,e,n,!0)/2),r}function aJ(t){var e=t.get("hoverLinkOnHandle");return!!(null==e?t.get("realtime"):e)}function sJ(t){return"vertical"===t?"ns-resize":"ew-resize"}var lJ=rJ,uJ={type:"selectDataRange",event:"dataRangeSelected",update:"update"},cJ=function(t,e){e.eachComponent({mainType:"visualMap",query:t},(function(e){e.setSelected(t.selected)}))},hJ=[{createOnAllSeries:!0,reset:function(t,e){var n=[];return e.eachComponent("visualMap",(function(e){var r=t.pipelineContext;!e.isTargetSeries(t)||r&&r.large||n.push(kX(e.stateList,e.targetVisuals,v["bind"](e.getValueState,e),e.getDataDimensionIndex(t.getData())))})),n}},{createOnAllSeries:!0,reset:function(t,e){var n=t.getData(),r=[];e.eachComponent("visualMap",(function(e){if(e.isTargetSeries(t)){var i=e.getVisualMeta(v["bind"](fJ,null,t,e))||{stops:[],outerColors:[]},o=e.getDataDimensionIndex(n);o>=0&&(i.dimension=o,r.push(i))}})),t.getData().setVisual("visualMeta",r)}}];function fJ(t,e,n,r){for(var i=e.targetVisuals[r],o=UL.prepareVisualTypes(i),a={color:sm(t.getData(),"color")},s=0,l=o.length;s<l;s++){var u=o[s],c=i["opacity"===u?"__alphaForOpacity":u];c&&c.applyVisual(n,h,f)}return a.color;function h(t){return a[t]}function f(t,e){a[t]=e}}var dJ=v["each"];function pJ(t){var e=t&&t.visualMap;v["isArray"](e)||(e=e?[e]:[]),dJ(e,(function(t){if(t){gJ(t,"splitList")&&!gJ(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var e=t.pieces;e&&v["isArray"](e)&&dJ(e,(function(t){v["isObject"](t)&&(gJ(t,"start")&&!gJ(t,"min")&&(t.min=t.start),gJ(t,"end")&&!gJ(t,"max")&&(t.max=t.end))}))}}))}function gJ(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var vJ=!1;function yJ(t){vJ||(vJ=!0,t.registerSubTypeDefaulter("visualMap",(function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"})),t.registerAction(uJ,cJ),Object(v["each"])(hJ,(function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)})),t.registerPreprocessor(pJ))}function mJ(t){t.registerComponentModel(WQ),t.registerComponentView(lJ),yJ(t)}var bJ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._pieceList=[],n}return p(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],_J[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var i=this.option.categories;this.resetVisual((function(t,e){"categories"===r?(t.mappingMethod="category",t.categories=v["clone"](i)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=v["map"](this._pieceList,(function(t){return t=v["clone"](t),"inRange"!==e&&(t.visual=null),t})))}))},e.prototype.completeVisualOption=function(){var e=this.option,n={},r=UL.listVisualTypes(),i=this.isCategory();function o(t,e,n){return t&&t[e]&&t[e].hasOwnProperty(n)}v["each"](e.pieces,(function(t){v["each"](r,(function(e){t.hasOwnProperty(e)&&(n[e]=1)}))})),v["each"](n,(function(t,n){var r=!1;v["each"](this.stateList,(function(t){r=r||o(e,t,n)||o(e.target,t,n)}),this),!r&&v["each"](this.stateList,(function(t){(e[t]||(e[t]={}))[n]=jQ.get(n,"inRange"===t?"active":"inactive",i)}))}),this),t.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,e){var n=this.option,r=this._pieceList,i=(e?n:t).selected||{};if(n.selected=i,v["each"](r,(function(t,e){var n=this.getSelectedMapKey(t);i.hasOwnProperty(n)||(i[n]=!0)}),this),"single"===n.selectedMode){var o=!1;v["each"](r,(function(t,e){var n=this.getSelectedMapKey(t);i[n]&&(o?i[n]=!1:o=!0)}),this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return"categories"===this._mode?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=v["clone"](t)},e.prototype.getValueState=function(t){var e=UL.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[],n=this._pieceList;return this.eachTargetSeries((function(r){var i=[],o=r.getData();o.each(this.getDataDimensionIndex(o),(function(e,r){var o=UL.findPieceIndex(e,n);o===t&&i.push(r)}),this),e.push({seriesId:r.id,dataIndex:i})}),this),e},e.prototype.getRepresentValue=function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var n=t.interval||[];e=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return e},e.prototype.getVisualMeta=function(t){if(!this.isCategory()){var e=[],n=["",""],r=this,i=this._pieceList.slice();if(i.length){var o=i[0].interval[0];o!==-1/0&&i.unshift({interval:[-1/0,o]}),o=i[i.length-1].interval[1],o!==1/0&&i.push({interval:[o,1/0]})}else i.push({interval:[-1/0,1/0]});var a=-1/0;return v["each"](i,(function(t){var e=t.interval;e&&(e[0]>a&&s([a,e[0]],"outOfRange"),s(e.slice()),a=e[1])}),this),{stops:e,outerColors:n}}function s(i,o){var a=r.getRepresentValue({interval:i});o||(o=r.getValueState(a));var s=t(a,o);i[0]===-1/0?n[0]=s:i[1]===1/0?n[1]=s:e.push({value:i[0],color:s},{value:i[1],color:s})}},e.type="visualMap.piecewise",e.defaultOption=Ku(VQ.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(VQ),_J={splitNumber:function(t){var e=this.option,n=Math.min(e.precision,20),r=this.getExtent(),i=e.splitNumber;i=Math.max(parseInt(i,10),1),e.splitNumber=i;var o=(r[1]-r[0])/i;while(+o.toFixed(n)!==o&&n<5)n++;e.precision=n,o=+o.toFixed(n),e.minOpen&&t.push({interval:[-1/0,r[0]],close:[0,0]});for(var a=0,s=r[0];a<i;s+=o,a++){var l=a===i-1?r[1]:s+o;t.push({interval:[s,l],close:[1,1]})}e.maxOpen&&t.push({interval:[r[1],1/0],close:[0,0]}),yi(t),v["each"](t,(function(t,e){t.index=e,t.text=this.formatValueText(t.interval)}),this)},categories:function(t){var e=this.option;v["each"](e.categories,(function(e){t.push({text:this.formatValueText(e,!0),value:e})}),this),xJ(e,t)},pieces:function(t){var e=this.option;v["each"](e.pieces,(function(e,n){v["isObject"](e)||(e={value:e});var r={text:"",index:n};if(null!=e.label&&(r.text=e.label),e.hasOwnProperty("value")){var i=r.value=e.value;r.interval=[i,i],r.close=[1,1]}else{for(var o=r.interval=[],a=r.close=[0,0],s=[1,0,1],l=[-1/0,1/0],u=[],c=0;c<2;c++){for(var h=[["gte","gt","min"],["lte","lt","max"]][c],f=0;f<3&&null==o[c];f++)o[c]=e[h[f]],a[c]=s[f],u[c]=2===f;null==o[c]&&(o[c]=l[c])}u[0]&&o[1]===1/0&&(a[0]=0),u[1]&&o[0]===-1/0&&(a[1]=0),o[0]===o[1]&&a[0]&&a[1]&&(r.value=o[0])}r.visual=UL.retrieveVisuals(e),t.push(r)}),this),xJ(e,t),yi(t),v["each"](t,(function(t){var e=t.close,n=[["<","≤"][e[1]],[">","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,n)}),this)}};function xJ(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}var wJ=bJ,SJ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return p(e,t),e.prototype.doRender=function(){var t=this.group;t.removeAll();var e=this.visualMapModel,n=e.get("textGap"),r=e.textStyleModel,i=r.getFont(),o=r.getTextColor(),a=this._getItemAlign(),s=e.itemSize,l=this._getViewData(),u=l.endsText,c=v["retrieve"](e.get("showLabel",!0),!u);u&&this._renderEndsText(t,u[0],s,c,a),v["each"](l.viewPieceList,(function(r){var l=r.piece,u=new Nr;u.onclick=v["bind"](this._onItemClick,this,l),this._enableHoverLink(u,r.indexInModelPieceList);var h=e.getRepresentValue(l);if(this._createItemSymbol(u,h,[0,0,s[0],s[1]]),c){var f=this.visualMapModel.getValueState(h);u.add(new qs({style:{x:"right"===a?-n:s[0]+n,y:s[1]/2,text:l.text,verticalAlign:"middle",align:a,font:i,fill:o,opacity:"outOfRange"===f?.5:1}}))}t.add(u)}),this),u&&this._renderEndsText(t,u[1],s,c,a),ih(e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,e){var n=this;t.on("mouseover",(function(){return r("highlight")})).on("mouseout",(function(){return r("downplay")}));var r=function(t){var r=n.visualMapModel;r.option.hoverLink&&n.api.dispatchAction({type:t,batch:KQ(r.findTargetDataIndices(e),r)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return XQ(t,this.api,t.itemSize);var n=e.align;return n&&"auto"!==n||(n="left"),n},e.prototype._renderEndsText=function(t,e,n,r,i){if(e){var o=new Nr,a=this.visualMapModel.textStyleModel;o.add(new qs({style:xu(a,{x:r?"right"===i?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:r?i:"center",text:e})})),t.add(o)}},e.prototype._getViewData=function(){var t=this.visualMapModel,e=v["map"](t.getPieceList(),(function(t,e){return{piece:t,indexInModelPieceList:e}})),n=t.get("text"),r=t.get("orient"),i=t.get("inverse");return("horizontal"===r?i:!i)?e.reverse():n&&(n=n.slice().reverse()),{viewPieceList:e,endsText:n}},e.prototype._createItemSymbol=function(t,e,n){t.add(km(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color")))},e.prototype._onItemClick=function(t){var e=this.visualMapModel,n=e.option,r=n.selectedMode;if(r){var i=v["clone"](n.selected),o=e.getSelectedMapKey(t);"single"===r||!0===r?(i[o]=!0,v["each"](i,(function(t,e){i[e]=e===o}))):i[o]=!i[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}},e.type="visualMap.piecewise",e}($Q),OJ=SJ;function CJ(t){t.registerComponentModel(wJ),t.registerComponentView(OJ),yJ(t)}function kJ(t){px(mJ),px(CJ)}var AJ={label:{enabled:!0},decal:{show:!1}},MJ=Yi(),TJ={};function IJ(t,e){var n=t.getModel("aria");if(n.get("enabled")){var r=v["clone"](AJ);v["merge"](r.label,t.getLocaleModel().get("aria"),!1),v["merge"](n.option,r,!1),i(),o()}function i(){var e=n.getModel("decal"),r=e.get("show");if(r){var i=v["createHashMap"]();t.eachSeries((function(t){if(!t.isColorBySeries()){var e=i.get(t.type);e||(e={},i.set(t.type,e)),MJ(t).scope=e}})),t.eachRawSeries((function(e){if(!t.isSeriesFiltered(e))if(v["isFunction"](e.enableAriaDecal))e.enableAriaDecal();else{var n=e.getData();if(e.isColorBySeries()){var r=Hh(e.ecModel,e.name,TJ,t.getSeriesCount()),i=n.getVisual("decal");n.setVisual("decal",u(i,r))}else{var o=e.getRawData(),a={},s=MJ(e).scope;n.each((function(t){var e=n.getRawIndex(t);a[e]=t}));var l=o.count();o.each((function(t){var r=a[t],i=o.getName(t)||t+"",c=Hh(e.ecModel,i,s,l),h=n.getItemVisual(r,"decal");n.setItemVisual(r,"decal",u(h,c))}))}}function u(t,e){var n=t?v["extend"](v["extend"]({},e),t):e;return n.dirty=!0,n}}))}}function o(){var r=t.getLocaleModel().get("aria"),i=n.getModel("label");if(i.option=v["defaults"](i.option,r),i.get("enabled")){var o=e.getZr().dom;if(i.get("description"))o.setAttribute("aria-label",i.get("description"));else{var u,c=t.getSeriesCount(),h=i.get(["data","maxCount"])||10,f=i.get(["series","maxCount"])||10,d=Math.min(c,f);if(!(c<1)){var p=s();if(p){var g=i.get(["general","withTitle"]);u=a(g,{title:p})}else u=i.get(["general","withoutTitle"]);var y=[],m=c>1?i.get(["series","multiple","prefix"]):i.get(["series","single","prefix"]);u+=a(m,{seriesCount:c}),t.eachSeries((function(t,e){if(e<d){var n=void 0,r=t.get("name"),o=r?"withName":"withoutName";n=c>1?i.get(["series","multiple",o]):i.get(["series","single",o]),n=a(n,{seriesId:t.seriesIndex,seriesName:t.get("name"),seriesType:l(t.subType)});var s=t.getData();if(s.count()>h){var u=i.get(["data","partialData"]);n+=a(u,{displayCnt:h})}else n+=i.get(["data","allData"]);for(var f=i.get(["data","separator","middle"]),p=i.get(["data","separator","end"]),g=[],v=0;v<s.count();v++)if(v<h){var m=s.getName(v),b=s.getValues(v),_=i.get(["data",m?"withName":"withoutName"]);g.push(a(_,{name:m,value:b.join(f)}))}n+=g.join(f)+p,y.push(n)}}));var b=i.getModel(["series","multiple","separator"]),_=b.get("middle"),x=b.get("end");u+=y.join(_)+x,o.setAttribute("aria-label",u)}}}}function a(t,e){if(!v["isString"](t))return t;var n=t;return v["each"](e,(function(t,e){n=n.replace(new RegExp("\\{\\s*"+e+"\\s*\\}","g"),t)})),n}function s(){var e=t.get("title");return e&&e.length&&(e=e[0]),e&&e.text}function l(e){return t.getLocaleModel().get(["series","typeNames"])[e]||"自定义图"}}function EJ(t){if(t&&t.aria){var e=t.aria;null!=e.show&&(e.enabled=e.show),e.label=e.label||{},v["each"](["description","general","series","data"],(function(t){null!=e[t]&&(e.label[t]=e[t])}))}}function PJ(t){t.registerPreprocessor(EJ),t.registerVisual(t.PRIORITY.VISUAL.ARIA,IJ)}var jJ={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},LJ=function(){function t(t){var e=this._condVal=Object(v["isString"])(t)?new RegExp(t):Object(v["isRegExp"])(t)?t:null;if(null==e){var n="";0,Qh(n)}}return t.prototype.evaluate=function(t){var e=typeof t;return Object(v["isString"])(e)?this._condVal.test(t):!!Object(v["isNumber"])(e)&&this._condVal.test(t+"")},t}(),DJ=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),RJ=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0},t}(),NJ=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1},t}(),BJ=function(){function t(){}return t.prototype.evaluate=function(){return!this.child.evaluate()},t}(),FJ=function(){function t(){}return t.prototype.evaluate=function(){for(var t=!!this.valueParser,e=this.getValue,n=e(this.valueGetterParam),r=t?this.valueParser(n):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(t?r:n))return!1;return!0},t}();function zJ(t,e){if(!0===t||!1===t){var n=new DJ;return n.value=t,n}var r="";return HJ(t)||Qh(r),t.and?VJ("and",t,e):t.or?VJ("or",t,e):t.not?qJ(t,e):GJ(t,e)}function VJ(t,e,n){var r=e[t],i="";Object(v["isArray"])(r)||Qh(i),r.length||Qh(i);var o="and"===t?new RJ:new NJ;return o.children=Object(v["map"])(r,(function(t){return zJ(t,n)})),o.children.length||Qh(i),o}function qJ(t,e){var n=t.not,r="";HJ(n)||Qh(r);var i=new BJ;return i.child=zJ(n,e),i.child||Qh(r),i}function GJ(t,e){for(var n="",r=e.prepareGetValue(t),i=[],o=Object(v["keys"])(t),a=t.parser,s=a?Id(a):null,l=0;l<o.length;l++){var u=o[l];if("parser"!==u&&!e.valueGetterAttrMap.get(u)){var c=Object(v["hasOwn"])(jJ,u)?jJ[u]:u,h=t[u],f=s?s(h):h,d=Dd(c,f)||"reg"===c&&new LJ(f);d||Qh(n),i.push(d)}}i.length||Qh(n);var p=new FJ;return p.valueGetterParam=r,p.valueParser=s,p.getValue=e.getValue,p.subCondList=i,p}function HJ(t){return Object(v["isObject"])(t)&&!Object(v["isArrayLike"])(t)}var WJ=function(){function t(t,e){this._cond=zJ(t,e)}return t.prototype.evaluate=function(){return this._cond.evaluate()},t}();function UJ(t,e){return new WJ(t,e)}var $J={type:"echarts:filter",transform:function(t){for(var e,n=t.upstream,r=UJ(t.config,{valueGetterAttrMap:Object(v["createHashMap"])({dimension:!0}),prepareGetValue:function(t){var e="",r=t.dimension;Object(v["hasOwn"])(t,"dimension")||Qh(e);var i=n.getDimensionInfo(r);return i||Qh(e),{dimIdx:i.index}},getValue:function(t){return n.retrieveValueFromItem(e,t.dimIdx)}}),i=[],o=0,a=n.count();o<a;o++)e=n.getRawDataItem(o),r.evaluate()&&i.push(e);return{data:i}}};var YJ={type:"echarts:sort",transform:function(t){var e=t.upstream,n=t.config,r="",i=ki(n);i.length||Qh(r);var o=[];Object(v["each"])(i,(function(t){var n=t.dimension,i=t.order,a=t.parser,s=t.incomparable;if(null==n&&Qh(r),"asc"!==i&&"desc"!==i&&Qh(r),s&&"min"!==s&&"max"!==s){var l="";0,Qh(l)}if("asc"!==i&&"desc"!==i){var u="";0,Qh(u)}var c=e.getDimensionInfo(n);c||Qh(r);var h=a?Id(a):null;a&&!h&&Qh(r),o.push({dimIdx:c.index,parser:h,comparator:new jd(i,s)})}));var a=e.sourceFormat;a!==wh&&a!==Sh&&Qh(r);for(var s=[],l=0,u=e.count();l<u;l++)s.push(e.getRawDataItem(l));return s.sort((function(t,n){for(var r=0;r<o.length;r++){var i=o[r],a=e.retrieveValueFromItem(t,i.dimIdx),s=e.retrieveValueFromItem(n,i.dimIdx);i.parser&&(a=i.parser(a),s=i.parser(s));var l=i.comparator.evaluate(a,s);if(0!==l)return l}return 0})),{data:s}}};function XJ(t){t.registerTransform($J),t.registerTransform(YJ)}var KJ=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return p(e,t),e.prototype.init=function(e,n,r){t.prototype.init.call(this,e,n,r),this._sourceManager=new ap(this),sp(this)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),sp(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:Ah},e}(vh),ZJ=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return p(e,t),e.type="dataset",e}(Up);function QJ(t){t.registerComponentModel(KJ),t.registerComponentView(ZJ)}var JJ=Da.CMD;function t0(t,e){return Math.abs(t-e)<1e-5}function e0(t){var e,n,r,i,o,a=t.data,s=t.len(),l=[],u=0,c=0,h=0,f=0;function d(t,n){e&&e.length>2&&l.push(e),e=[t,n]}function p(t,n,r,i){t0(t,r)&&t0(n,i)||e.push(t,n,r,i,r,i)}function g(t,n,r,i,o,a){var s=Math.abs(n-t),l=4*Math.tan(s/4)/3,u=n<t?-1:1,c=Math.cos(t),h=Math.sin(t),f=Math.cos(n),d=Math.sin(n),p=c*o+r,g=h*a+i,v=f*o+r,y=d*a+i,m=o*l*u,b=a*l*u;e.push(p-m*h,g+b*c,v+m*d,y-b*f,v,y)}for(var v=0;v<s;){var y=a[v++],m=1===v;switch(m&&(u=a[v],c=a[v+1],h=u,f=c,y!==JJ.L&&y!==JJ.C&&y!==JJ.Q||(e=[h,f])),y){case JJ.M:u=h=a[v++],c=f=a[v++],d(h,f);break;case JJ.L:n=a[v++],r=a[v++],p(u,c,n,r),u=n,c=r;break;case JJ.C:e.push(a[v++],a[v++],a[v++],a[v++],u=a[v++],c=a[v++]);break;case JJ.Q:n=a[v++],r=a[v++],i=a[v++],o=a[v++],e.push(u+2/3*(n-u),c+2/3*(r-c),i+2/3*(n-i),o+2/3*(r-o),i,o),u=i,c=o;break;case JJ.A:var b=a[v++],_=a[v++],x=a[v++],w=a[v++],S=a[v++],O=a[v++]+S;v+=1;var C=!a[v++];n=Math.cos(S)*x+b,r=Math.sin(S)*w+_,m?(h=n,f=r,d(h,f)):p(u,c,n,r),u=Math.cos(O)*x+b,c=Math.sin(O)*w+_;for(var k=(C?-1:1)*Math.PI/2,A=S;C?A>O:A<O;A+=k){var M=C?Math.max(A+k,O):Math.min(A+k,O);g(A,M,b,_,x,w)}break;case JJ.R:h=u=a[v++],f=c=a[v++],n=h+a[v++],r=f+a[v++],d(n,f),p(n,f,n,r),p(n,r,h,r),p(h,r,h,f),p(h,f,n,f);break;case JJ.Z:e&&p(u,c,h,f),u=h,c=f;break}}return e&&e.length>2&&l.push(e),l}function n0(t,e,n,r,i,o,a,s,l,u){if(t0(t,n)&&t0(e,r)&&t0(i,a)&&t0(o,s))l.push(a,s);else{var c=2/u,h=c*c,f=a-t,d=s-e,p=Math.sqrt(f*f+d*d);f/=p,d/=p;var g=n-t,v=r-e,y=i-a,m=o-s,b=g*g+v*v,_=y*y+m*m;if(b<h&&_<h)l.push(a,s);else{var x=f*g+d*v,w=-f*y-d*m,S=b-x*x,O=_-w*w;if(S<h&&x>=0&&O<h&&w>=0)l.push(a,s);else{var C=[],k=[];Be(t,n,i,a,.5,C),Be(e,r,o,s,.5,k),n0(C[0],k[0],C[1],k[1],C[2],k[2],C[3],k[3],l,u),n0(C[4],k[4],C[5],k[5],C[6],k[6],C[7],k[7],l,u)}}}}function r0(t,e){var n=e0(t),r=[];e=e||1;for(var i=0;i<n.length;i++){var o=n[i],a=[],s=o[0],l=o[1];a.push(s,l);for(var u=2;u<o.length;){var c=o[u++],h=o[u++],f=o[u++],d=o[u++],p=o[u++],g=o[u++];n0(s,l,c,h,f,d,p,g,a,e),s=p,l=g}r.push(a)}return r}function i0(t,e,n){var r=t[e],i=t[1-e],o=Math.abs(r/i),a=Math.ceil(Math.sqrt(o*n)),s=Math.floor(n/a);0===s&&(s=1,a=n);for(var l=[],u=0;u<a;u++)l.push(s);var c=a*s,h=n-c;if(h>0)for(u=0;u<h;u++)l[u%a]+=1;return l}function o0(t,e,n){for(var r=t.r0,i=t.r,o=t.startAngle,a=t.endAngle,s=Math.abs(a-o),l=s*i,u=i-r,c=l>Math.abs(u),h=i0([l,u],c?0:1,e),f=(c?s:u)/h.length,d=0;d<h.length;d++)for(var p=(c?u:s)/h[d],g=0;g<h[d];g++){var v={};c?(v.startAngle=o+f*d,v.endAngle=o+f*(d+1),v.r0=r+p*g,v.r=r+p*(g+1)):(v.startAngle=o+p*g,v.endAngle=o+p*(g+1),v.r0=r+f*d,v.r=r+f*(d+1)),v.clockwise=t.clockwise,v.cx=t.cx,v.cy=t.cy,n.push(v)}}function a0(t,e,n){for(var r=t.width,i=t.height,o=r>i,a=i0([r,i],o?0:1,e),s=o?"width":"height",l=o?"height":"width",u=o?"x":"y",c=o?"y":"x",h=t[s]/a.length,f=0;f<a.length;f++)for(var d=t[l]/a[f],p=0;p<a[f];p++){var g={};g[u]=f*h,g[c]=p*d,g[s]=h,g[l]=d,g.x+=t.x,g.y+=t.y,n.push(g)}}function s0(t,e,n,r){return t*r-n*e}function l0(t,e,n,r,i,o,a,s){var l=n-t,u=r-e,c=a-i,h=s-o,f=s0(c,h,l,u);if(Math.abs(f)<1e-6)return null;var d=t-i,p=e-o,g=s0(d,p,c,h)/f;return g<0||g>1?null:new Pt(g*l+t,g*u+e)}function u0(t,e,n){var r=new Pt;Pt.sub(r,n,e),r.normalize();var i=new Pt;Pt.sub(i,t,e);var o=i.dot(r);return o}function c0(t,e){var n=t[t.length-1];n&&n[0]===e[0]&&n[1]===e[1]||t.push(e)}function h0(t,e,n){for(var r=t.length,i=[],o=0;o<r;o++){var a=t[o],s=t[(o+1)%r],l=l0(a[0],a[1],s[0],s[1],e.x,e.y,n.x,n.y);l&&i.push({projPt:u0(l,e,n),pt:l,idx:o})}if(i.length<2)return[{points:t},{points:t}];i.sort((function(t,e){return t.projPt-e.projPt}));var u=i[0],c=i[i.length-1];if(c.idx<u.idx){var h=u;u=c,c=h}var f=[u.pt.x,u.pt.y],d=[c.pt.x,c.pt.y],p=[f],g=[d];for(o=u.idx+1;o<=c.idx;o++)c0(p,t[o].slice());c0(p,d),c0(p,f);for(o=c.idx+1;o<=u.idx+r;o++)c0(g,t[o%r].slice());return c0(g,f),c0(g,d),[{points:p},{points:g}]}function f0(t){var e=t.points,n=[],r=[];ua(e,n,r);var i=new qt(n[0],n[1],r[0]-n[0],r[1]-n[1]),o=i.width,a=i.height,s=i.x,l=i.y,u=new Pt,c=new Pt;return o>a?(u.x=c.x=s+o/2,u.y=l,c.y=l+a):(u.y=c.y=l+a/2,u.x=s,c.x=s+o),h0(e,u,c)}function d0(t,e,n,r){if(1===n)r.push(e);else{var i=Math.floor(n/2),o=t(e);d0(t,o[0],i,r),d0(t,o[1],n-i,r)}return r}function p0(t,e){for(var n=[],r=0;r<e;r++)n.push(vg(t));return n}function g0(t,e){e.setStyle(t.style),e.z=t.z,e.z2=t.z2,e.zlevel=t.zlevel}function v0(t){for(var e=[],n=0;n<t.length;)e.push([t[n++],t[n++]]);return e}function y0(t,e){var n,r=[],i=t.shape;switch(t.type){case"rect":a0(i,e,r),n=Os;break;case"sector":o0(i,e,r),n=zg;break;case"circle":o0({r0:0,r:i.r,startAngle:0,endAngle:2*Math.PI,cx:i.cx,cy:i.cy},e,r),n=zg;break;default:var o=t.getComputedTransform(),a=o?Math.sqrt(Math.max(o[0]*o[0]+o[1]*o[1],o[2]*o[2]+o[3]*o[3])):1,s=Object(v["map"])(r0(t.getUpdatedPathProxy(),a),(function(t){return v0(t)})),l=s.length;if(0===l)d0(f0,{points:s[0]},e,r);else if(l===e)for(var u=0;u<l;u++)r.push({points:s[u]});else{var c=0,h=Object(v["map"])(s,(function(t){var e=[],n=[];ua(t,e,n);var r=(n[1]-e[1])*(n[0]-e[0]);return c+=r,{poly:t,area:r}}));h.sort((function(t,e){return e.area-t.area}));var f=e;for(u=0;u<l;u++){var d=h[u];if(f<=0)break;var p=u===l-1?f:Math.ceil(d.area/c*e);p<0||(d0(f0,{points:d.poly},p,r),f-=p)}}n=Yg;break}if(!n)return p0(t,e);var g=[];for(u=0;u<r.length;u++){var y=new n;y.setShape(r[u]),g0(t,y),g.push(y)}return g}function m0(t,e){var n=t.length,r=e.length;if(n===r)return[t,e];for(var i=[],o=[],a=n<r?t:e,s=Math.min(n,r),l=Math.abs(r-n)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,h=[a[0],a[1]],f=l,d=2;d<s;){var p=a[d-2],g=a[d-1],v=a[d++],y=a[d++],m=a[d++],b=a[d++],_=a[d++],x=a[d++];if(f<=0)h.push(v,y,m,b,_,x);else{for(var w=Math.min(f,c-1)+1,S=1;S<=w;S++){var O=S/w;Be(p,v,m,_,O,i),Be(g,y,b,x,O,o),p=i[3],g=o[3],h.push(i[1],o[1],i[2],o[2],p,g),v=i[5],y=o[5],m=i[6],b=o[6]}f-=w-1}}return a===t?[h,e]:[t,h]}function b0(t,e){for(var n=t.length,r=t[n-2],i=t[n-1],o=[],a=0;a<e.length;)o[a++]=r,o[a++]=i;return o}function _0(t,e){for(var n,r,i,o=[],a=[],s=0;s<Math.max(t.length,e.length);s++){var l=t[s],u=e[s],c=void 0,h=void 0;l?u?(n=m0(l,u),c=n[0],h=n[1],r=c,i=h):(h=b0(i||l,l),c=l):(c=b0(r||u,u),h=u),o.push(c),a.push(h)}return[o,a]}function x0(t){for(var e=0,n=0,r=0,i=t.length,o=0,a=i-2;o<i;a=o,o+=2){var s=t[a],l=t[a+1],u=t[o],c=t[o+1],h=s*c-u*l;e+=h,n+=(s+u)*h,r+=(l+c)*h}return 0===e?[t[0]||0,t[1]||0]:[n/e/3,r/e/3,e]}function w0(t,e,n,r){for(var i=(t.length-2)/6,o=1/0,a=0,s=t.length,l=s-2,u=0;u<i;u++){for(var c=6*u,h=0,f=0;f<s;f+=2){var d=0===f?c:(c+f-2)%l+2,p=t[d]-n[0],g=t[d+1]-n[1],v=e[f]-r[0],y=e[f+1]-r[1],m=v-p,b=y-g;h+=m*m+b*b}h<o&&(o=h,a=u)}return a}function S0(t){for(var e=[],n=t.length,r=0;r<n;r+=2)e[r]=t[n-r-2],e[r+1]=t[n-r-1];return e}function O0(t,e,n,r){for(var i,o=[],a=0;a<t.length;a++){var s=t[a],l=e[a],u=x0(s),c=x0(l);null==i&&(i=u[2]<0!==c[2]<0);var h=[],f=[],d=0,p=1/0,g=[],v=s.length;i&&(s=S0(s));for(var y=6*w0(s,l,u,c),m=v-2,b=0;b<m;b+=2){var _=(y+b)%m+2;h[b+2]=s[_]-u[0],h[b+3]=s[_+1]-u[1]}if(h[0]=s[y]-u[0],h[1]=s[y+1]-u[1],n>0)for(var x=r/n,w=-r/2;w<=r/2;w+=x){var S=Math.sin(w),O=Math.cos(w),C=0;for(b=0;b<s.length;b+=2){var k=h[b],A=h[b+1],M=l[b]-c[0],T=l[b+1]-c[1],I=M*O-T*S,E=M*S+T*O;g[b]=I,g[b+1]=E;var P=I-k,j=E-A;C+=P*P+j*j}if(C<p){p=C,d=w;for(var L=0;L<g.length;L++)f[L]=g[L]}}else for(var D=0;D<v;D+=2)f[D]=l[D]-c[0],f[D+1]=l[D+1]-c[1];o.push({from:h,to:f,fromCp:u,toCp:c,rotation:-d})}return o}function C0(t){return t.__isCombineMorphing}var k0="__mOriginal_";function A0(t,e,n){var r=k0+e,i=t[r]||t[e];t[r]||(t[r]=t[e]);var o=n.replace,a=n.after,s=n.before;t[e]=function(){var t,e=arguments;return s&&s.apply(this,e),t=o?o.apply(this,e):i.apply(this,e),a&&a.apply(this,e),t}}function M0(t,e){var n=k0+e;t[n]&&(t[e]=t[n],t[n]=null)}function T0(t,e){for(var n=0;n<t.length;n++)for(var r=t[n],i=0;i<r.length;){var o=r[i],a=r[i+1];r[i++]=e[0]*o+e[2]*a+e[4],r[i++]=e[1]*o+e[3]*a+e[5]}}function I0(t,e){var n=t.getUpdatedPathProxy(),r=e.getUpdatedPathProxy(),i=_0(e0(n),e0(r)),o=i[0],a=i[1],s=t.getComputedTransform(),l=e.getComputedTransform();function u(){this.transform=null}s&&T0(o,s),l&&T0(a,l),A0(e,"updateTransform",{replace:u}),e.transform=null;var c=O0(o,a,10,Math.PI),h=[];A0(e,"buildPath",{replace:function(t){for(var n=e.__morphT,r=1-n,i=[],o=0;o<c.length;o++){var a=c[o],s=a.from,l=a.to,u=a.rotation*n,f=a.fromCp,d=a.toCp,p=Math.sin(u),g=Math.cos(u);B(i,f,d,n);for(var v=0;v<s.length;v+=2){var y=s[v],m=s[v+1],b=l[v],_=l[v+1],x=y*r+b*n,w=m*r+_*n;h[v]=x*g-w*p+i[0],h[v+1]=x*p+w*g+i[1]}var S=h[0],O=h[1];t.moveTo(S,O);for(v=2;v<s.length;){b=h[v++],_=h[v++];var C=h[v++],k=h[v++],A=h[v++],M=h[v++];S===b&&O===_&&C===A&&k===M?t.lineTo(A,M):t.bezierCurveTo(b,_,C,k,A,M),S=A,O=M}}}})}function E0(t,e,n){if(!t||!e)return e;var r=n.done,i=n.during;function o(){M0(e,"buildPath"),M0(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return I0(t,e),e.__morphT=0,e.animateTo({__morphT:1},Object(v["defaults"])({during:function(t){e.dirtyShape(),i&&i(t)},done:function(){o(),r&&r()}},n)),e}function P0(t,e,n,r,i,o){var a=16;t=i===n?0:Math.round(32767*(t-n)/(i-n)),e=o===r?0:Math.round(32767*(e-r)/(o-r));for(var s,l=0,u=(1<<a)/2;u>0;u/=2){var c=0,h=0;(t&u)>0&&(c=1),(e&u)>0&&(h=1),l+=u*u*(3*c^h),0===h&&(1===c&&(t=u-1-t,e=u-1-e),s=t,t=e,e=s)}return l}function j0(t){var e=1/0,n=1/0,r=-1/0,i=-1/0,o=Object(v["map"])(t,(function(t){var o=t.getBoundingRect(),a=t.getComputedTransform(),s=o.x+o.width/2+(a?a[4]:0),l=o.y+o.height/2+(a?a[5]:0);return e=Math.min(s,e),n=Math.min(l,n),r=Math.max(s,r),i=Math.max(l,i),[s,l]})),a=Object(v["map"])(o,(function(o,a){return{cp:o,z:P0(o[0],o[1],e,n,r,i),path:t[a]}}));return a.sort((function(t,e){return t.z-e.z})).map((function(t){return t.path}))}function L0(t){return y0(t.path,t.count)}function D0(){return{fromIndividuals:[],toIndividuals:[],count:0}}function R0(t,e,n){var r=[];function i(t){for(var e=0;e<t.length;e++){var n=t[e];C0(n)?i(n.childrenRef()):n instanceof ss&&r.push(n)}}i(t);var o=r.length;if(!o)return D0();var a=n.dividePath||L0,s=a({path:e,count:o});if(s.length!==o)return console.error("Invalid morphing: unmatched splitted path"),D0();r=j0(r),s=j0(s);for(var l=n.done,u=n.during,c=n.individualDelay,h=new cr,f=0;f<o;f++){var d=r[f],p=s[f];p.parent=e,p.copyTransform(h),c||I0(d,p)}function g(t){for(var e=0;e<s.length;e++)s[e].addSelfToZr(t)}function y(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,M0(e,"addSelfToZr"),M0(e,"removeSelfFromZr")}e.__isCombineMorphing=!0,e.childrenRef=function(){return s},A0(e,"addSelfToZr",{after:function(t){g(t)}}),A0(e,"removeSelfFromZr",{after:function(t){for(var e=0;e<s.length;e++)s[e].removeSelfFromZr(t)}});var m=s.length;if(c){var b=m,_=function(){b--,0===b&&(y(),l&&l())};for(f=0;f<m;f++){var x=c?Object(v["defaults"])({delay:(n.delay||0)+c(f,m,r[f],s[f]),done:_},n):n;E0(r[f],s[f],x)}}else e.__morphT=0,e.animateTo({__morphT:1},Object(v["defaults"])({during:function(t){for(var n=0;n<m;n++){var r=s[n];r.__morphT=e.__morphT,r.dirtyShape()}u&&u(t)},done:function(){y();for(var e=0;e<t.length;e++)M0(t[e],"updateTransform");l&&l()}},n));return e.__zr&&g(e.__zr),{fromIndividuals:r,toIndividuals:s,count:m}}function N0(t,e,n){var r=e.length,i=[],o=n.dividePath||L0;function a(t){for(var e=0;e<t.length;e++){var n=t[e];C0(n)?a(n.childrenRef()):n instanceof ss&&i.push(n)}}if(C0(t)){a(t.childrenRef());var s=i.length;if(s<r)for(var l=0,u=s;u<r;u++)i.push(vg(i[l++%s]));i.length=r}else{i=o({path:t,count:r});var c=t.getComputedTransform();for(u=0;u<i.length;u++)i[u].setLocalTransform(c);if(i.length!==r)return console.error("Invalid morphing: unmatched splitted path"),D0()}i=j0(i),e=j0(e);var h=n.individualDelay;for(u=0;u<r;u++){var f=h?Object(v["defaults"])({delay:(n.delay||0)+h(u,r,i[u],e[u])},n):n;E0(i[u],e[u],f)}return{fromIndividuals:i,toIndividuals:e,count:e.length}}function B0(t){return Object(v["isArray"])(t[0])}function F0(t,e){for(var n=[],r=t.length,i=0;i<r;i++)n.push({one:t[i],many:[]});for(i=0;i<e.length;i++){var o=e[i].length,a=void 0;for(a=0;a<o;a++)n[a%r].many.push(e[i][a])}var s=0;for(i=r-1;i>=0;i--)if(!n[i].many.length){var l=n[s].many;if(l.length<=1){if(!s)return n;s=0}o=l.length;var u=Math.ceil(o/2);n[i].many=l.slice(u,o),n[s].many=l.slice(0,u),s++}return n}var z0={clone:function(t){for(var e=[],n=1-Math.pow(1-t.path.style.opacity,1/t.count),r=0;r<t.count;r++){var i=vg(t.path);i.setStyle("opacity",n),e.push(i)}return e},split:null};function V0(t,e,n,r,i,o){if(t.length&&e.length){var a=au("update",r,i);if(a&&a.duration>0){var s,l,u=r.getModel("universalTransition").get("delay"),c=Object.assign({setToFinal:!0},a);B0(t)&&(s=t,l=e),B0(e)&&(s=e,l=t);for(var h=s?s===t:t.length>e.length,f=s?F0(l,s):F0(h?e:t,[h?t:e]),d=0,p=0;p<f.length;p++)d+=f[p].many.length;var g=0;for(p=0;p<f.length;p++)y(f[p],h,g,d),g+=f[p].many.length}}function y(t,e,r,i,a){var s=t.many,l=t.one;if(1!==s.length||a)for(var h=Object(v["defaults"])({dividePath:z0[n],individualDelay:u&&function(t,e,n,o){return u(t+r,i)}},c),f=e?R0(s,l,h):N0(l,s,h),d=f.fromIndividuals,p=f.toIndividuals,g=d.length,m=0;m<g;m++){x=u?Object(v["defaults"])({delay:u(m,g)},c):c;o(d[m],p[m],e?s[m]:t.one,e?t.one:s[m],x)}else{var b=e?s[0]:l,_=e?l:s[0];if(C0(b))y({many:[b],one:_},!0,r,i,!0);else{var x=u?Object(v["defaults"])({delay:u(r,i)},c):c;E0(b,_,x),o(b,_,b,_,x)}}}}function q0(t){if(!t)return[];if(Object(v["isArray"])(t)){for(var e=[],n=0;n<t.length;n++)e.push(q0(t[n]));return e}var r=[];return t.traverse((function(t){t instanceof ss&&!t.disableMorphing&&!t.invisible&&!t.ignore&&r.push(t)})),r}var G0=1e4,H0=Yi();function W0(t){for(var e=t.dimensions,n=0;n<e.length;n++){var r=t.getDimensionInfo(e[n]);if(r&&0===r.otherDims.itemGroupId)return e[n]}}function U0(t){var e=[];return Object(v["each"])(t,(function(t){var n=t.data;if(!(n.count()>G0))for(var r=n.getIndices(),i=W0(n),o=0;o<r.length;o++)e.push({data:n,dim:t.dim||i,divide:t.divide,dataIndex:o})})),e}function $0(t,e,n){t.traverse((function(t){t instanceof ss&&uu(t,{style:{opacity:0}},e,{dataIndex:n,isFrom:!0})}))}function Y0(t){if(t.parent){var e=t.getComputedTransform();t.setLocalTransform(e),t.parent.remove(t)}}function X0(t){t.stopAnimation(),t.isGroup&&t.traverse((function(t){t.stopAnimation()}))}function K0(t,e,n){var r=au("update",n,e);r&&t.traverse((function(t){if(t instanceof ta){var e=gu(t);e&&t.animateFrom({style:e},r)}}))}function Z0(t,e){var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++){var i=t[r],o=e[r];if(i.data.getId(i.dataIndex)!==o.data.getId(o.dataIndex))return!1}return!0}function Q0(t,e,n){var r=U0(t),i=U0(e);function o(t,e,n,r,i){(n||t)&&e.animateFrom({style:n&&n!==t?Object(v["extend"])(Object(v["extend"])({},n.style),t.style):t.style},i)}function a(t){for(var e=0;e<t.length;e++)if(t[e].dim)return t[e].dim}var s=a(r),l=a(i),u=!1;function c(t,e){return function(n){var r=n.data,i=n.dataIndex;if(e)return r.getId(i);var o=r.hostModel&&r.hostModel.get("dataGroupId"),a=t?s||l:l||s,u=a&&r.getDimensionInfo(a),c=u&&u.ordinalMeta;if(u){var h=r.get(u.name,i);return c&&c.categories[h]||h+""}var f=r.getRawDataItem(i);return f&&f.groupId?f.groupId+"":o||r.getId(i)}}var h=Z0(r,i),f={};if(!h)for(var d=0;d<i.length;d++){var p=i[d],g=p.data.getItemGraphicEl(p.dataIndex);g&&(f[g.id]=!0)}function y(t,e){var n=r[e],a=i[t],s=a.data.hostModel,l=n.data.getItemGraphicEl(n.dataIndex),c=a.data.getItemGraphicEl(a.dataIndex);l!==c?l&&f[l.id]||c&&(X0(c),l?(X0(l),Y0(l),u=!0,V0(q0(l),q0(c),a.divide,s,t,o)):$0(c,s,t)):c&&K0(c,a.dataIndex,s)}new mx(r,i,c(!0,h),c(!1,h),null,"multiple").update(y).updateManyToOne((function(t,e){var n=i[t],a=n.data,s=a.hostModel,l=a.getItemGraphicEl(n.dataIndex),c=Object(v["filter"])(Object(v["map"])(e,(function(t){return r[t].data.getItemGraphicEl(r[t].dataIndex)})),(function(t){return t&&t!==l&&!f[t.id]}));l&&(X0(l),c.length?(Object(v["each"])(c,(function(t){X0(t),Y0(t)})),u=!0,V0(q0(c),q0(l),n.divide,s,t,o)):$0(l,s,n.dataIndex))})).updateOneToMany((function(t,e){var n=r[e],a=n.data.getItemGraphicEl(n.dataIndex);if(!a||!f[a.id]){var s=Object(v["filter"])(Object(v["map"])(t,(function(t){return i[t].data.getItemGraphicEl(i[t].dataIndex)})),(function(t){return t&&t!==a})),l=i[t[0]].data.hostModel;s.length&&(Object(v["each"])(s,(function(t){return X0(t)})),a?(X0(a),Y0(a),u=!0,V0(q0(a),q0(s),n.divide,l,t[0],o)):Object(v["each"])(s,(function(e){return $0(e,l,t[0])})))}})).updateManyToMany((function(t,e){new mx(e,t,(function(t){return r[t].data.getId(r[t].dataIndex)}),(function(t){return i[t].data.getId(i[t].dataIndex)})).update((function(n,r){y(t[n],e[r])})).execute()})).execute(),u&&Object(v["each"])(e,(function(t){var e=t.data,r=e.hostModel,i=r&&n.getViewOfSeriesModel(r),o=au("update",r,0);i&&r.isAnimationEnabled()&&o&&o.duration>0&&i.group.traverse((function(t){t instanceof ss&&!t.animators.length&&t.animateFrom({style:{opacity:0}},o)}))}))}function J0(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function t1(t){return Object(v["isArray"])(t)?t.sort().join(","):t}function e1(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function n1(t,e){var n=Object(v["createHashMap"])(),r=Object(v["createHashMap"])(),i=Object(v["createHashMap"])();return Object(v["each"])(t.oldSeries,(function(e,n){var o=t.oldData[n],a=J0(e),s=t1(a);r.set(s,o),Object(v["isArray"])(a)&&Object(v["each"])(a,(function(t){i.set(t,{data:o,key:s})}))})),Object(v["each"])(e.updatedSeries,(function(t){if(t.isUniversalTransitionEnabled()&&t.isAnimationEnabled()){var e=t.getData(),o=J0(t),a=t1(o),s=r.get(a);if(s)n.set(a,{oldSeries:[{divide:e1(s),data:s}],newSeries:[{divide:e1(e),data:e}]});else if(Object(v["isArray"])(o)){0;var l=[];Object(v["each"])(o,(function(t){var e=r.get(t);e&&l.push({divide:e1(e),data:e})})),l.length&&n.set(a,{oldSeries:l,newSeries:[{data:e,divide:e1(e)}]})}else{var u=i.get(o);if(u){var c=n.get(u.key);c||(c={oldSeries:[{data:u.data,divide:e1(u.data)}],newSeries:[]},n.set(u.key,c)),c.newSeries.push({data:e,divide:e1(e)})}}}})),n}function r1(t,e){for(var n=0;n<t.length;n++){var r=null!=e.seriesIndex&&e.seriesIndex===t[n].seriesIndex||null!=e.seriesId&&e.seriesId===t[n].id;if(r)return n}}function i1(t,e,n,r){var i=[],o=[];Object(v["each"])(ki(t.from),(function(t){var n=r1(e.oldSeries,t);n>=0&&i.push({data:e.oldData[n],divide:e1(e.oldData[n]),dim:t.dimension})})),Object(v["each"])(ki(t.to),(function(t){var e=r1(n.updatedSeries,t);if(e>=0){var r=n.updatedSeries[e].getData();o.push({data:r,divide:e1(r),dim:t.dimension})}})),i.length>0&&o.length>0&&Q0(i,o,r)}function o1(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){Object(v["each"])(ki(n.seriesTransition),(function(t){Object(v["each"])(ki(t.to),(function(t){for(var e=n.updatedSeries,r=0;r<e.length;r++)(null!=t.seriesIndex&&t.seriesIndex===e[r].seriesIndex||null!=t.seriesId&&t.seriesId===e[r].id)&&(e[r][Lp]=!0)}))}))})),t.registerUpdateLifecycle("series:transition",(function(t,e,n){var r=H0(e);if(r.oldSeries&&n.updatedSeries&&n.optionChanged){var i=n.seriesTransition;if(i)Object(v["each"])(ki(i),(function(t){i1(t,r,n,e)}));else{var o=n1(r,n);Object(v["each"])(o.keys(),(function(t){var n=o.get(t);Q0(n.oldSeries,n.newSeries,e)}))}Object(v["each"])(n.updatedSeries,(function(t){t[Lp]&&(t[Lp]=!1)}))}for(var a=t.getSeries(),s=r.oldSeries=[],l=r.oldData=[],u=0;u<a.length;u++){var c=a[u].getData();c.count()<G0&&(s.push(a[u]),l.push(c))}}))}px([TC]),px([nA]),px([eM,BM,sT,jI,tE,QP,Kj,OD,qR,QR,uN,pF,UF,hz,Bz,Uz,gV,kV,nq,fq,Eq,sH]),px(oW),px(ZW),px(ZP),px(SU),px(dF),px(jU),px(ZU),px(DY),px(yX),px(iW),px(ZX),px(tK),px(SK),px(XK),px(sZ),px(_Z),px(XZ),px(IQ),px(fQ),px(TQ),px(kJ),px(mJ),px(CJ),px(PJ),px(XJ),px(QJ),px(o1),px(yC)},"31b5":function(t,e,n){"use strict";var r=n("fbd7").codes.ERR_INVALID_OPT_VALUE;function i(t,e,n){return null!=t.highWaterMark?t.highWaterMark:e?t[n]:null}function o(t,e,n,o){var a=i(e,o,n);if(null!=a){if(!isFinite(a)||Math.floor(a)!==a||a<0){var s=o?n:"highWaterMark";throw new r(s,a)}return Math.floor(a)}return t.objectMode?16:16384}t.exports={getHighWaterMark:o}},"323e":function(t,e,n){var r,i;
|
||
/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
|
||
* @license MIT */(function(o,a){r=a,i="function"===typeof r?r.call(e,n,e,t):r,void 0===i||(t.exports=i)})(0,(function(){var t={version:"0.2.0"},e=t.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function n(t,e,n){return t<e?e:t>n?n:t}function r(t){return 100*(-1+t)}function i(t,n,i){var o;return o="translate3d"===e.positionUsing?{transform:"translate3d("+r(t)+"%,0,0)"}:"translate"===e.positionUsing?{transform:"translate("+r(t)+"%,0)"}:{"margin-left":r(t)+"%"},o.transition="all "+n+"ms "+i,o}t.configure=function(t){var n,r;for(n in t)r=t[n],void 0!==r&&t.hasOwnProperty(n)&&(e[n]=r);return this},t.status=null,t.set=function(r){var s=t.isStarted();r=n(r,e.minimum,1),t.status=1===r?null:r;var l=t.render(!s),u=l.querySelector(e.barSelector),c=e.speed,h=e.easing;return l.offsetWidth,o((function(n){""===e.positionUsing&&(e.positionUsing=t.getPositioningCSS()),a(u,i(r,c,h)),1===r?(a(l,{transition:"none",opacity:1}),l.offsetWidth,setTimeout((function(){a(l,{transition:"all "+c+"ms linear",opacity:0}),setTimeout((function(){t.remove(),n()}),c)}),c)):setTimeout(n,c)})),this},t.isStarted=function(){return"number"===typeof t.status},t.start=function(){t.status||t.set(0);var n=function(){setTimeout((function(){t.status&&(t.trickle(),n())}),e.trickleSpeed)};return e.trickle&&n(),this},t.done=function(e){return e||t.status?t.inc(.3+.5*Math.random()).set(1):this},t.inc=function(e){var r=t.status;return r?("number"!==typeof e&&(e=(1-r)*n(Math.random()*r,.1,.95)),r=n(r+e,0,.994),t.set(r)):t.start()},t.trickle=function(){return t.inc(Math.random()*e.trickleRate)},function(){var e=0,n=0;t.promise=function(r){return r&&"resolved"!==r.state()?(0===n&&t.start(),e++,n++,r.always((function(){n--,0===n?(e=0,t.done()):t.set((e-n)/e)})),this):this}}(),t.render=function(n){if(t.isRendered())return document.getElementById("nprogress");l(document.documentElement,"nprogress-busy");var i=document.createElement("div");i.id="nprogress",i.innerHTML=e.template;var o,s=i.querySelector(e.barSelector),u=n?"-100":r(t.status||0),c=document.querySelector(e.parent);return a(s,{transition:"all 0 linear",transform:"translate3d("+u+"%,0,0)"}),e.showSpinner||(o=i.querySelector(e.spinnerSelector),o&&h(o)),c!=document.body&&l(c,"nprogress-custom-parent"),c.appendChild(i),i},t.remove=function(){u(document.documentElement,"nprogress-busy"),u(document.querySelector(e.parent),"nprogress-custom-parent");var t=document.getElementById("nprogress");t&&h(t)},t.isRendered=function(){return!!document.getElementById("nprogress")},t.getPositioningCSS=function(){var t=document.body.style,e="WebkitTransform"in t?"Webkit":"MozTransform"in t?"Moz":"msTransform"in t?"ms":"OTransform"in t?"O":"";return e+"Perspective"in t?"translate3d":e+"Transform"in t?"translate":"margin"};var o=function(){var t=[];function e(){var n=t.shift();n&&n(e)}return function(n){t.push(n),1==t.length&&e()}}(),a=function(){var t=["Webkit","O","Moz","ms"],e={};function n(t){return t.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(t,e){return e.toUpperCase()}))}function r(e){var n=document.body.style;if(e in n)return e;var r,i=t.length,o=e.charAt(0).toUpperCase()+e.slice(1);while(i--)if(r=t[i]+o,r in n)return r;return e}function i(t){return t=n(t),e[t]||(e[t]=r(t))}function o(t,e,n){e=i(e),t.style[e]=n}return function(t,e){var n,r,i=arguments;if(2==i.length)for(n in e)r=e[n],void 0!==r&&e.hasOwnProperty(n)&&o(t,n,r);else o(t,i[1],i[2])}}();function s(t,e){var n="string"==typeof t?t:c(t);return n.indexOf(" "+e+" ")>=0}function l(t,e){var n=c(t),r=n+e;s(n,e)||(t.className=r.substring(1))}function u(t,e){var n,r=c(t);s(t,e)&&(n=r.replace(" "+e+" "," "),t.className=n.substring(1,n.length-1))}function c(t){return(" "+(t.className||"")+" ").replace(/\s+/gi," ")}function h(t){t&&t.parentNode&&t.parentNode.removeChild(t)}return t}))},"32c3":function(t,e,n){"use strict";var r;function i(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var o=n("e142").codes,a=o.ERR_MISSING_ARGS,s=o.ERR_STREAM_DESTROYED;function l(t){if(t)throw t}function u(t){return t.setHeader&&"function"===typeof t.abort}function c(t,e,o,a){a=i(a);var l=!1;t.on("close",(function(){l=!0})),void 0===r&&(r=n("ddda")),r(t,{readable:e,writable:o},(function(t){if(t)return a(t);l=!0,a()}));var c=!1;return function(e){if(!l&&!c)return c=!0,u(t)?t.abort():"function"===typeof t.destroy?t.destroy():void a(e||new s("pipe"))}}function h(t){t()}function f(t,e){return t.pipe(e)}function d(t){return t.length?"function"!==typeof t[t.length-1]?l:t.pop():l}function p(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r,i=d(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new a("streams");var o=e.map((function(t,n){var a=n<e.length-1,s=n>0;return c(t,a,s,(function(t){r||(r=t),t&&o.forEach(h),a||(o.forEach(h),i(r))}))}));return e.reduce(f)}t.exports=p},3301:function(t,e,n){"use strict";const{Buffer:r}=n("1c35"),i=Symbol.for("BufferList");function o(t){if(!(this instanceof o))return new o(t);o._init.call(this,t)}o._init=function(t){Object.defineProperty(this,i,{value:!0}),this._bufs=[],this.length=0,t&&this.append(t)},o.prototype._new=function(t){return new o(t)},o.prototype._offset=function(t){if(0===t)return[0,0];let e=0;for(let n=0;n<this._bufs.length;n++){const r=e+this._bufs[n].length;if(t<r||n===this._bufs.length-1)return[n,t-e];e=r}},o.prototype._reverseOffset=function(t){const e=t[0];let n=t[1];for(let r=0;r<e;r++)n+=this._bufs[r].length;return n},o.prototype.get=function(t){if(t>this.length||t<0)return;const e=this._offset(t);return this._bufs[e[0]][e[1]]},o.prototype.slice=function(t,e){return"number"===typeof t&&t<0&&(t+=this.length),"number"===typeof e&&e<0&&(e+=this.length),this.copy(null,0,t,e)},o.prototype.copy=function(t,e,n,i){if(("number"!==typeof n||n<0)&&(n=0),("number"!==typeof i||i>this.length)&&(i=this.length),n>=this.length)return t||r.alloc(0);if(i<=0)return t||r.alloc(0);const o=!!t,a=this._offset(n),s=i-n;let l=s,u=o&&e||0,c=a[1];if(0===n&&i===this.length){if(!o)return 1===this._bufs.length?this._bufs[0]:r.concat(this._bufs,this.length);for(let e=0;e<this._bufs.length;e++)this._bufs[e].copy(t,u),u+=this._bufs[e].length;return t}if(l<=this._bufs[a[0]].length-c)return o?this._bufs[a[0]].copy(t,e,c,c+l):this._bufs[a[0]].slice(c,c+l);o||(t=r.allocUnsafe(s));for(let r=a[0];r<this._bufs.length;r++){const e=this._bufs[r].length-c;if(!(l>e)){this._bufs[r].copy(t,u,c,c+l),u+=e;break}this._bufs[r].copy(t,u,c),u+=e,l-=e,c&&(c=0)}return t.length>u?t.slice(0,u):t},o.prototype.shallowSlice=function(t,e){if(t=t||0,e="number"!==typeof e?this.length:e,t<0&&(t+=this.length),e<0&&(e+=this.length),t===e)return this._new();const n=this._offset(t),r=this._offset(e),i=this._bufs.slice(n[0],r[0]+1);return 0===r[1]?i.pop():i[i.length-1]=i[i.length-1].slice(0,r[1]),0!==n[1]&&(i[0]=i[0].slice(n[1])),this._new(i)},o.prototype.toString=function(t,e,n){return this.slice(e,n).toString(t)},o.prototype.consume=function(t){if(t=Math.trunc(t),Number.isNaN(t)||t<=0)return this;while(this._bufs.length){if(!(t>=this._bufs[0].length)){this._bufs[0]=this._bufs[0].slice(t),this.length-=t;break}t-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift()}return this},o.prototype.duplicate=function(){const t=this._new();for(let e=0;e<this._bufs.length;e++)t.append(this._bufs[e]);return t},o.prototype.append=function(t){if(null==t)return this;if(t.buffer)this._appendBuffer(r.from(t.buffer,t.byteOffset,t.byteLength));else if(Array.isArray(t))for(let e=0;e<t.length;e++)this.append(t[e]);else if(this._isBufferList(t))for(let e=0;e<t._bufs.length;e++)this.append(t._bufs[e]);else"number"===typeof t&&(t=t.toString()),this._appendBuffer(r.from(t));return this},o.prototype._appendBuffer=function(t){this._bufs.push(t),this.length+=t.length},o.prototype.indexOf=function(t,e,n){if(void 0===n&&"string"===typeof e&&(n=e,e=void 0),"function"===typeof t||Array.isArray(t))throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.');if("number"===typeof t?t=r.from([t]):"string"===typeof t?t=r.from(t,n):this._isBufferList(t)?t=t.slice():Array.isArray(t.buffer)?t=r.from(t.buffer,t.byteOffset,t.byteLength):r.isBuffer(t)||(t=r.from(t)),e=Number(e||0),isNaN(e)&&(e=0),e<0&&(e=this.length+e),e<0&&(e=0),0===t.length)return e>this.length?this.length:e;const i=this._offset(e);let o=i[0],a=i[1];for(;o<this._bufs.length;o++){const e=this._bufs[o];while(a<e.length){const n=e.length-a;if(n>=t.length){const n=e.indexOf(t,a);if(-1!==n)return this._reverseOffset([o,n]);a=e.length-t.length+1}else{const e=this._reverseOffset([o,a]);if(this._match(e,t))return e;a++}}a=0}return-1},o.prototype._match=function(t,e){if(this.length-t<e.length)return!1;for(let n=0;n<e.length;n++)if(this.get(t+n)!==e[n])return!1;return!0},function(){const t={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1,readIntBE:null,readIntLE:null,readUIntBE:null,readUIntLE:null};for(const e in t)(function(e){null===t[e]?o.prototype[e]=function(t,n){return this.slice(t,t+n)[e](0,n)}:o.prototype[e]=function(n=0){return this.slice(n,n+t[e])[e](0)}})(e)}(),o.prototype._isBufferList=function(t){return t instanceof o||o.isBufferList(t)},o.isBufferList=function(t){return null!=t&&t[i]},t.exports=o},"335d":function(t,e,n){},3397:function(t,e,n){var r=n("7a41");t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},3409:function(t,e,n){e.parser=n("1fad").parser,e.generate=n("7f0f"),e.writeToStream=n("7135")},3410:function(t,e,n){var r=n("23e7"),i=n("d039"),o=n("7b0b"),a=n("e163"),s=n("e177"),l=i((function(){a(1)}));r({target:"Object",stat:!0,forced:l,sham:!s},{getPrototypeOf:function(t){return a(o(t))}})},"342f":function(t,e,n){var r=n("d066");t.exports=r("navigator","userAgent")||""},"34e3":function(t,e,n){"use strict";(function(e){var r;function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=n("d9e1"),a=Symbol("lastResolve"),s=Symbol("lastReject"),l=Symbol("error"),u=Symbol("ended"),c=Symbol("lastPromise"),h=Symbol("handlePromise"),f=Symbol("stream");function d(t,e){return{value:t,done:e}}function p(t){var e=t[a];if(null!==e){var n=t[f].read();null!==n&&(t[c]=null,t[a]=null,t[s]=null,e(d(n,!1)))}}function g(t){e.nextTick(p,t)}function v(t,e){return function(n,r){t.then((function(){e[u]?n(d(void 0,!0)):e[h](n,r)}),r)}}var y=Object.getPrototypeOf((function(){})),m=Object.setPrototypeOf((r={get stream(){return this[f]},next:function(){var t=this,n=this[l];if(null!==n)return Promise.reject(n);if(this[u])return Promise.resolve(d(void 0,!0));if(this[f].destroyed)return new Promise((function(n,r){e.nextTick((function(){t[l]?r(t[l]):n(d(void 0,!0))}))}));var r,i=this[c];if(i)r=new Promise(v(i,this));else{var o=this[f].read();if(null!==o)return Promise.resolve(d(o,!1));r=new Promise(this[h])}return this[c]=r,r}},i(r,Symbol.asyncIterator,(function(){return this})),i(r,"return",(function(){var t=this;return new Promise((function(e,n){t[f].destroy(null,(function(t){t?n(t):e(d(void 0,!0))}))}))})),r),y),b=function(t){var e,n=Object.create(m,(e={},i(e,f,{value:t,writable:!0}),i(e,a,{value:null,writable:!0}),i(e,s,{value:null,writable:!0}),i(e,l,{value:null,writable:!0}),i(e,u,{value:t._readableState.endEmitted,writable:!0}),i(e,h,{value:function(t,e){var r=n[f].read();r?(n[c]=null,n[a]=null,n[s]=null,t(d(r,!1))):(n[a]=t,n[s]=e)},writable:!0}),e));return n[c]=null,o(t,(function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=n[s];return null!==e&&(n[c]=null,n[a]=null,n[s]=null,e(t)),void(n[l]=t)}var r=n[a];null!==r&&(n[c]=null,n[a]=null,n[s]=null,r(d(void 0,!0))),n[u]=!0})),t.on("readable",g.bind(null,n)),n};t.exports=b}).call(this,n("4362"))},"34eb":function(t,e,n){(function(r){function i(){return!("undefined"===typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"===typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!==typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!==typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function o(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;e.splice(1,0,n,"color: inherit");let r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,t=>{"%%"!==t&&(r++,"%c"===t&&(i=r))}),e.splice(i,0,n)}function a(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch(n){}}function s(){let t;try{t=e.storage.getItem("debug")}catch(n){}return!t&&"undefined"!==typeof r&&"env"in r&&(t=Object({NODE_ENV:"production",VUE_APP_BAI_DU_AK:"nAtaBg9FYzav6c8P9rF9qzsWZfTXXXXX",VUE_APP_BASE_API:"/prod-api",VUE_APP_MQTT_SERVER_URL:"",VUE_APP_TITLE:"FastBee物联网系统",BASE_URL:"/"}).DEBUG),t}function l(){try{return localStorage}catch(t){}}e.formatArgs=o,e.save=a,e.load=s,e.useColors=i,e.storage=l(),e.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.log=console.debug||console.log||(()=>{}),t.exports=n("dc90")(e);const{formatters:u}=t.exports;u.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}).call(this,n("4362"))},3511:function(t,e){var n=TypeError,r=9007199254740991;t.exports=function(t){if(t>r)throw n("Maximum allowed index exceeded");return t}},3529:function(t,e,n){"use strict";var r=n("23e7"),i=n("c65b"),o=n("59ed"),a=n("f069"),s=n("e667"),l=n("2266"),u=n("5eed");r({target:"Promise",stat:!0,forced:u},{race:function(t){var e=this,n=a.f(e),r=n.reject,u=s((function(){var a=o(e.resolve);l(t,(function(t){i(a,e,t).then(n.resolve,r)}))}));return u.error&&r(u.value),n.promise}})},"357d":function(t,e,n){},"35a1":function(t,e,n){var r=n("f5df"),i=n("dc4a"),o=n("7234"),a=n("3f8c"),s=n("b622"),l=s("iterator");t.exports=function(t){if(!o(t))return i(t,l)||i(t,"@@iterator")||a[r(t)]}},"35e8":function(t,e,n){"use strict";t.exports={isString:function(t){return"string"===typeof t},isObject:function(t){return"object"===typeof t&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}},3648:function(t,e,n){},"37e8":function(t,e,n){var r=n("83ab"),i=n("aed9"),o=n("9bf2"),a=n("825a"),s=n("fc6a"),l=n("df75");e.f=r&&!i?Object.defineProperties:function(t,e){a(t);var n,r=s(e),i=l(e),u=i.length,c=0;while(u>c)o.f(t,n=i[c++],r[n]);return t}},3835:function(t,e,n){"use strict";function r(t){if(Array.isArray(t))return t}n.d(e,"a",(function(){return s}));n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),n("14d9");function i(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&null!=n["return"]&&(a=n["return"](),Object(a)!==a))return}finally{if(u)throw i}}return s}}var o=n("06c5");n("d9e2");function a(){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 s(t,e){return r(t)||i(t,e)||Object(o["a"])(t,e)||a()}},"386b":function(t,e,n){"use strict";var r;function i(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var o=n("9bfc").codes,a=o.ERR_MISSING_ARGS,s=o.ERR_STREAM_DESTROYED;function l(t){if(t)throw t}function u(t){return t.setHeader&&"function"===typeof t.abort}function c(t,e,o,a){a=i(a);var l=!1;t.on("close",(function(){l=!0})),void 0===r&&(r=n("bf09")),r(t,{readable:e,writable:o},(function(t){if(t)return a(t);l=!0,a()}));var c=!1;return function(e){if(!l&&!c)return c=!0,u(t)?t.abort():"function"===typeof t.destroy?t.destroy():void a(e||new s("pipe"))}}function h(t){t()}function f(t,e){return t.pipe(e)}function d(t){return t.length?"function"!==typeof t[t.length-1]?l:t.pop():l}function p(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r,i=d(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new a("streams");var o=e.map((function(t,n){var a=n<e.length-1,s=n>0;return c(t,a,s,(function(t){r||(r=t),t&&o.forEach(h),a||(o.forEach(h),i(r))}))}));return e.reduce(f)}t.exports=p},"387f":function(t,e,n){"use strict";t.exports=function(t,e,n,r,i){return t.config=e,n&&(t.code=n),t.request=r,t.response=i,t.isAxiosError=!0,t.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}},t}},3934:function(t,e,n){"use strict";var r=n("c532");t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(t){var r=t;return e&&(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 t=i(window.location.href),function(e){var n=r.isString(e)?i(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return function(){return!0}}()},3938:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.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};e.radarConfig=r},"393a":function(t,e,n){"use strict";var r=n("e444"),i=n("512c"),o=n("ba01"),a=n("051b"),s=n("8a0d"),l=n("26dd"),u=n("92f0"),c=n("ce7a"),h=n("cc15")("iterator"),f=!([].keys&&"next"in[].keys()),d="@@iterator",p="keys",g="values",v=function(){return this};t.exports=function(t,e,n,y,m,b,_){l(n,e,y);var x,w,S,O=function(t){if(!f&&t in M)return M[t];switch(t){case p:return function(){return new n(this,t)};case g:return function(){return new n(this,t)}}return function(){return new n(this,t)}},C=e+" Iterator",k=m==g,A=!1,M=t.prototype,T=M[h]||M[d]||m&&M[m],I=T||O(m),E=m?k?O("entries"):I:void 0,P="Array"==e&&M.entries||T;if(P&&(S=c(P.call(new t)),S!==Object.prototype&&S.next&&(u(S,C,!0),r||"function"==typeof S[h]||a(S,h,v))),k&&T&&T.name!==g&&(A=!0,I=function(){return T.call(this)}),r&&!_||!f&&!A&&M[h]||a(M,h,I),s[e]=I,s[C]=v,m)if(x={values:k?I:O(g),keys:b?I:O(p),entries:E},_)for(w in x)w in M||o(M,w,x[w]);else i(i.P+i.F*(f||A),e,x);return x}},"39ad":function(t,e,n){var r=n("6ca1"),i=n("d16a"),o=n("9d11");t.exports=function(t){return function(e,n,a){var s,l=r(e),u=i(l.length),c=o(a,u);if(t&&n!=n){while(u>c)if(s=l[c++],s!=s)return!0}else for(;u>c;c++)if((t||c in l)&&l[c]===n)return t||c||0;return!t&&-1}}},"3a34":function(t,e,n){"use strict";var r=n("83ab"),i=n("e8b5"),o=TypeError,a=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=s?function(t,e){if(i(t)&&!a(t,"length").writable)throw o("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},"3a9b":function(t,e,n){var r=n("e330");t.exports=r({}.isPrototypeOf)},"3bbe":function(t,e,n){var r=n("1626"),i=String,o=TypeError;t.exports=function(t){if("object"==typeof t||r(t))return t;throw o("Can't set "+i(t)+" as a prototype")}},"3bd2":function(t,e,n){"use strict";(function(e,r){var i;t.exports=T,T.ReadableState=M;n("faa1").EventEmitter;var o=function(t,e){return t.listeners(e).length},a=n("946b"),s=n("1c35").Buffer,l=e.Uint8Array||function(){};function u(t){return s.from(t)}function c(t){return s.isBuffer(t)||t instanceof l}var h,f=n(7);h=f&&f.debuglog?f.debuglog("stream"):function(){};var d,p,g,v=n("86ef"),y=n("015d"),m=n("75d2"),b=m.getHighWaterMark,_=n("e142").codes,x=_.ERR_INVALID_ARG_TYPE,w=_.ERR_STREAM_PUSH_AFTER_EOF,S=_.ERR_METHOD_NOT_IMPLEMENTED,O=_.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n("3fb5")(T,a);var C=y.errorOrDestroy,k=["error","close","destroy","pause","resume"];function A(t,e,n){if("function"===typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}function M(t,e,r){i=i||n("030c"),t=t||{},"boolean"!==typeof r&&(r=e instanceof i),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=b(this,t,"readableHighWaterMark",r),this.buffer=new v,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(d||(d=n("aa22").StringDecoder),this.decoder=new d(t.encoding),this.encoding=t.encoding)}function T(t){if(i=i||n("030c"),!(this instanceof T))return new T(t);var e=this instanceof i;this._readableState=new M(t,this,e),this.readable=!0,t&&("function"===typeof t.read&&(this._read=t.read),"function"===typeof t.destroy&&(this._destroy=t.destroy)),a.call(this)}function I(t,e,n,r,i){h("readableAddChunk",e);var o,a=t._readableState;if(null===e)a.reading=!1,R(t,a);else if(i||(o=P(a,e)),o)C(t,o);else if(a.objectMode||e&&e.length>0)if("string"===typeof e||a.objectMode||Object.getPrototypeOf(e)===s.prototype||(e=u(e)),r)a.endEmitted?C(t,new O):E(t,a,e,!0);else if(a.ended)C(t,new w);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!n?(e=a.decoder.write(e),a.objectMode||0!==e.length?E(t,a,e,!1):F(t,a)):E(t,a,e,!1)}else r||(a.reading=!1,F(t,a));return!a.ended&&(a.length<a.highWaterMark||0===a.length)}function E(t,e,n,r){e.flowing&&0===e.length&&!e.sync?(e.awaitDrain=0,t.emit("data",n)):(e.length+=e.objectMode?1:n.length,r?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&N(t)),F(t,e)}function P(t,e){var n;return c(e)||"string"===typeof e||void 0===e||t.objectMode||(n=new x("chunk",["string","Buffer","Uint8Array"],e)),n}Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),T.prototype.destroy=y.destroy,T.prototype._undestroy=y.undestroy,T.prototype._destroy=function(t,e){e(t)},T.prototype.push=function(t,e){var n,r=this._readableState;return r.objectMode?n=!0:"string"===typeof t&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=s.from(t,e),e=""),n=!0),I(this,t,e,!1,n)},T.prototype.unshift=function(t){return I(this,t,null,!0,!1)},T.prototype.isPaused=function(){return!1===this._readableState.flowing},T.prototype.setEncoding=function(t){d||(d=n("aa22").StringDecoder);var e=new d(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;var r=this._readableState.buffer.head,i="";while(null!==r)i+=e.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var j=1073741824;function L(t){return t>=j?t=j:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function D(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=L(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function R(t,e){if(h("onEofChunk"),!e.ended){if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,e.sync?N(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,B(t)))}}function N(t){var e=t._readableState;h("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(h("emitReadable",e.flowing),e.emittedReadable=!0,r.nextTick(B,t))}function B(t){var e=t._readableState;h("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,U(t)}function F(t,e){e.readingMore||(e.readingMore=!0,r.nextTick(z,t,e))}function z(t,e){while(!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&0===e.length)){var n=e.length;if(h("maybeReadMore read 0"),t.read(0),n===e.length)break}e.readingMore=!1}function V(t){return function(){var e=t._readableState;h("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&o(t,"data")&&(e.flowing=!0,U(t))}}function q(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function G(t){h("readable nexttick read 0"),t.read(0)}function H(t,e){e.resumeScheduled||(e.resumeScheduled=!0,r.nextTick(W,t,e))}function W(t,e){h("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),U(t),e.flowing&&!e.reading&&t.read(0)}function U(t){var e=t._readableState;h("flow",e.flowing);while(e.flowing&&null!==t.read());}function $(t,e){return 0===e.length?null:(e.objectMode?n=e.buffer.shift():!t||t>=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):n=e.buffer.consume(t,e.decoder),n);var n}function Y(t){var e=t._readableState;h("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,r.nextTick(X,e,t))}function X(t,e){if(h("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var n=e._writableState;(!n||n.autoDestroy&&n.finished)&&e.destroy()}}function K(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1}T.prototype.read=function(t){h("read",t),t=parseInt(t,10);var e=this._readableState,n=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&((0!==e.highWaterMark?e.length>=e.highWaterMark:e.length>0)||e.ended))return h("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?Y(this):N(this),null;if(t=D(t,e),0===t&&e.ended)return 0===e.length&&Y(this),null;var r,i=e.needReadable;return h("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&(i=!0,h("length less than watermark",i)),e.ended||e.reading?(i=!1,h("reading or ended",i)):i&&(h("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=D(n,e))),r=t>0?$(t,e):null,null===r?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&Y(this)),null!==r&&this.emit("data",r),r},T.prototype._read=function(t){C(this,new S("_read()"))},T.prototype.pipe=function(t,e){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t);break}i.pipesCount+=1,h("pipe count=%d opts=%j",i.pipesCount,e);var a=(!e||!1!==e.end)&&t!==r.stdout&&t!==r.stderr,s=a?u:m;function l(t,e){h("onunpipe"),t===n&&e&&!1===e.hasUnpiped&&(e.hasUnpiped=!0,d())}function u(){h("onend"),t.end()}i.endEmitted?r.nextTick(s):n.once("end",s),t.on("unpipe",l);var c=V(n);t.on("drain",c);var f=!1;function d(){h("cleanup"),t.removeListener("close",v),t.removeListener("finish",y),t.removeListener("drain",c),t.removeListener("error",g),t.removeListener("unpipe",l),n.removeListener("end",u),n.removeListener("end",m),n.removeListener("data",p),f=!0,!i.awaitDrain||t._writableState&&!t._writableState.needDrain||c()}function p(e){h("ondata");var r=t.write(e);h("dest.write",r),!1===r&&((1===i.pipesCount&&i.pipes===t||i.pipesCount>1&&-1!==K(i.pipes,t))&&!f&&(h("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function g(e){h("onerror",e),m(),t.removeListener("error",g),0===o(t,"error")&&C(t,e)}function v(){t.removeListener("finish",y),m()}function y(){h("onfinish"),t.removeListener("close",v),m()}function m(){h("unpipe"),n.unpipe(t)}return n.on("data",p),A(t,"error",g),t.once("close",v),t.once("finish",y),t.emit("pipe",n),i.flowing||(h("pipe resume"),n.resume()),t},T.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n)),this;if(!t){var r=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<i;o++)r[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=K(e.pipes,t);return-1===a||(e.pipes.splice(a,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,n)),this},T.prototype.on=function(t,e){var n=a.prototype.on.call(this,t,e),i=this._readableState;return"data"===t?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"===t&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,h("on readable",i.length,i.reading),i.length?N(this):i.reading||r.nextTick(G,this))),n},T.prototype.addListener=T.prototype.on,T.prototype.removeListener=function(t,e){var n=a.prototype.removeListener.call(this,t,e);return"readable"===t&&r.nextTick(q,this),n},T.prototype.removeAllListeners=function(t){var e=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||r.nextTick(q,this),e},T.prototype.resume=function(){var t=this._readableState;return t.flowing||(h("resume"),t.flowing=!t.readableListening,H(this,t)),t.paused=!1,this},T.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},T.prototype.wrap=function(t){var e=this,n=this._readableState,r=!1;for(var i in t.on("end",(function(){if(h("wrapped end"),n.decoder&&!n.ended){var t=n.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(i){if(h("wrapped data"),n.decoder&&(i=n.decoder.write(i)),(!n.objectMode||null!==i&&void 0!==i)&&(n.objectMode||i&&i.length)){var o=e.push(i);o||(r=!0,t.pause())}})),t)void 0===this[i]&&"function"===typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var o=0;o<k.length;o++)t.on(k[o],this.emit.bind(this,k[o]));return this._read=function(e){h("wrapped _read",e),r&&(r=!1,t.resume())},this},"function"===typeof Symbol&&(T.prototype[Symbol.asyncIterator]=function(){return void 0===p&&(p=n("7887")),p(this)}),Object.defineProperty(T.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(T.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(T.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}}),T._fromList=$,Object.defineProperty(T.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"===typeof Symbol&&(T.from=function(t,e){return void 0===g&&(g=n("854c")),g(T,t,e)})}).call(this,n("c8ba"),n("4362"))},"3c0e":function(t,e,n){},"3c4e":function(t,e,n){"use strict";var r=function(t){return i(t)&&!o(t)};function i(t){return!!t&&"object"===typeof t}function o(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||l(t)}var a="function"===typeof Symbol&&Symbol.for,s=a?Symbol.for("react.element"):60103;function l(t){return t.$$typeof===s}function u(t){return Array.isArray(t)?[]:{}}function c(t,e){var n=e&&!0===e.clone;return n&&r(t)?d(u(t),t,e):t}function h(t,e,n){var i=t.slice();return e.forEach((function(e,o){"undefined"===typeof i[o]?i[o]=c(e,n):r(e)?i[o]=d(t[o],e,n):-1===t.indexOf(e)&&i.push(c(e,n))})),i}function f(t,e,n){var i={};return r(t)&&Object.keys(t).forEach((function(e){i[e]=c(t[e],n)})),Object.keys(e).forEach((function(o){r(e[o])&&t[o]?i[o]=d(t[o],e[o],n):i[o]=c(e[o],n)})),i}function d(t,e,n){var r=Array.isArray(e),i=Array.isArray(t),o=n||{arrayMerge:h},a=r===i;if(a){if(r){var s=o.arrayMerge||h;return s(t,e,n)}return f(t,e,n)}return c(e,n)}d.all=function(t,e){if(!Array.isArray(t)||t.length<2)throw new Error("first argument should be an array with at least two elements");return t.reduce((function(t,n){return d(t,n,e)}))};var p=d;t.exports=p},"3c65":function(t,e,n){"use strict";var r=n("23e7"),i=n("7b0b"),o=n("07fa"),a=n("3a34"),s=n("083a"),l=n("3511"),u=1!==[].unshift(0),c=!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(t){return t instanceof TypeError}}();r({target:"Array",proto:!0,arity:1,forced:u||c},{unshift:function(t){var e=i(this),n=o(e),r=arguments.length;if(r){l(n+r);var u=n;while(u--){var c=u+r;u in e?e[c]=e[u]:s(e,c)}for(var h=0;h<r;h++)e[h]=arguments[h]}return a(e,n+r)}})},"3ca2":function(t,e,n){"use strict";t.exports=c;var r=n("fbd7").codes,i=r.ERR_METHOD_NOT_IMPLEMENTED,o=r.ERR_MULTIPLE_CALLBACK,a=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=r.ERR_TRANSFORM_WITH_LENGTH_0,l=n("be3f");function u(t,e){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(null===r)return this.emit("error",new o);n.writechunk=null,n.writecb=null,null!=e&&this.push(e),r(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function c(t){if(!(this instanceof c))return new c(t);l.call(this,t),this._transformState={afterTransform:u.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"===typeof t.transform&&(this._transform=t.transform),"function"===typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",h)}function h(){var t=this;"function"!==typeof this._flush||this._readableState.destroyed?f(this,null,null):this._flush((function(e,n){f(t,e,n)}))}function f(t,e,n){if(e)return t.emit("error",e);if(null!=n&&t.push(n),t._writableState.length)throw new s;if(t._transformState.transforming)throw new a;return t.push(null)}n("3fb5")(c,l),c.prototype.push=function(t,e){return this._transformState.needTransform=!1,l.prototype.push.call(this,t,e)},c.prototype._transform=function(t,e,n){n(new i("_transform()"))},c.prototype._write=function(t,e,n){var r=this._transformState;if(r.writecb=n,r.writechunk=t,r.writeencoding=e,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},c.prototype._read=function(t){var e=this._transformState;null===e.writechunk||e.transforming?e.needTransform=!0:(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform))},c.prototype._destroy=function(t,e){l.prototype._destroy.call(this,t,(function(t){e(t)}))}},"3ca3":function(t,e,n){"use strict";var r=n("6547").charAt,i=n("577e"),o=n("69f3"),a=n("c6d2"),s=n("4754"),l="String Iterator",u=o.set,c=o.getterFor(l);a(String,"String",(function(t){u(this,{type:l,string:i(t),index:0})}),(function(){var t,e=c(this),n=e.string,i=e.index;return i>=n.length?s(void 0,!0):(t=r(n,i),e.index+=t.length,s(t,!1))}))},"3d67":function(t,e,n){"use strict";n.r(e),n.d(e,"Stack",(function(){return u})),n.d(e,"Queue",(function(){return C})),n.d(e,"PriorityQueue",(function(){return I})),n.d(e,"Vector",(function(){return B})),n.d(e,"VectorIterator",(function(){return R})),n.d(e,"LinkList",(function(){return H})),n.d(e,"LinkListIterator",(function(){return q})),n.d(e,"Deque",(function(){return w})),n.d(e,"DequeIterator",(function(){return _})),n.d(e,"OrderedSet",(function(){return ot})),n.d(e,"OrderedSetIterator",(function(){return rt})),n.d(e,"OrderedMap",(function(){return ft})),n.d(e,"OrderedMapIterator",(function(){return ct})),n.d(e,"HashSet",(function(){return _t})),n.d(e,"HashMap",(function(){return Ct})),n.d(e,"Container",(function(){return a})),n.d(e,"ContainerIterator",(function(){return i})),n.d(e,"SequentialContainer",(function(){return f})),n.d(e,"TreeContainer",(function(){return K})),n.d(e,"HashContainer",(function(){return gt}));var r=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=function(){function t(e){void 0===e&&(e=t.NORMAL),this.iteratorType=e}return t.NORMAL=!1,t.REVERSE=!0,t}(),o=function(){function t(){this.length=0}return t.prototype.size=function(){return this.length},t.prototype.empty=function(){return 0===this.length},t}(),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e}(o),s=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),l=function(t){function e(e){void 0===e&&(e=[]);var n=t.call(this)||this;return n.stack=[],e.forEach((function(t){return n.push(t)})),n}return s(e,t),e.prototype.clear=function(){this.length=0,this.stack.length=0},e.prototype.push=function(t){this.stack.push(t),this.length+=1},e.prototype.pop=function(){this.stack.pop(),this.length>0&&(this.length-=1)},e.prototype.top=function(){return this.stack[this.length-1]},e}(o),u=l,c=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e}(a),f=h;function d(t,e,n){if(t<e||t>n)throw new RangeError}var p=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),g=function(t){function e(e,n,r,o,a){var s=t.call(this,a)||this;return s.node=e,s.size=n,s.getElementByPos=r,s.setElementByPos=o,s.iteratorType===i.NORMAL?(s.pre=function(){if(0===this.node)throw new RangeError("Deque iterator access denied!");return this.node-=1,this},s.next=function(){if(this.node===this.size())throw new RangeError("Deque Iterator access denied!");return this.node+=1,this}):(s.pre=function(){if(this.node===this.size()-1)throw new RangeError("Deque iterator access denied!");return this.node+=1,this},s.next=function(){if(-1===this.node)throw new RangeError("Deque iterator access denied!");return this.node-=1,this}),s}return p(e,t),Object.defineProperty(e.prototype,"pointer",{get:function(){return d(this.node,0,this.size()-1),this.getElementByPos(this.node)},set:function(t){d(this.node,0,this.size()-1),this.setElementByPos(this.node,t)},enumerable:!1,configurable:!0}),e.prototype.equals=function(t){return this.node===t.node},e}(i),v=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),y=function(t,e){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(t){return function(e){return l([t,e])}}function l(o){if(n)throw new TypeError("Generator is already executing.");while(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=e.call(t,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},m=function(t,e){var n="function"===typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{while((void 0===e||e-- >0)&&!(r=o.next()).done)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o["return"])&&n.call(o)}finally{if(i)throw i.error}}return a},b=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))},_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v(e,t),e.prototype.copy=function(){return new e(this.node,this.size,this.getElementByPos,this.setElementByPos,this.iteratorType)},e}(g),x=function(t){function e(e,n){void 0===e&&(e=[]),void 0===n&&(n=4096);var r,i=t.call(this)||this;if(i.first=0,i.curFirst=0,i.last=0,i.curLast=0,i.bucketNum=0,i.map=[],"size"in e)r="number"===typeof e.size?e.size:e.size();else{if(!("length"in e))throw new RangeError("Can't get container's size!");r=e.length}i.bucketSize=n,i.bucketNum=Math.max(Math.ceil(r/i.bucketSize),1);for(var o=0;o<i.bucketNum;++o)i.map.push(new Array(i.bucketSize));var a=Math.ceil(r/i.bucketSize);return i.first=i.last=(i.bucketNum>>1)-(a>>1),i.curFirst=i.curLast=i.bucketSize-r%i.bucketSize>>1,e.forEach((function(t){return i.pushBack(t)})),i.size=i.size.bind(i),i.getElementByPos=i.getElementByPos.bind(i),i.setElementByPos=i.setElementByPos.bind(i),i}return v(e,t),e.prototype.reAllocate=function(){for(var t=[],e=Math.max(this.bucketNum>>1,1),n=0;n<e;++n)t[n]=new Array(this.bucketSize);for(n=this.first;n<this.bucketNum;++n)t[t.length]=this.map[n];for(n=0;n<this.last;++n)t[t.length]=this.map[n];t[t.length]=b([],m(this.map[this.last]),!1),this.first=e,this.last=t.length-1;for(n=0;n<e;++n)t[t.length]=new Array(this.bucketSize);this.map=t,this.bucketNum=t.length},e.prototype.getElementIndex=function(t){var e=this.curFirst+t+1,n=e%this.bucketSize,r=n-1,i=this.first+(e-n)/this.bucketSize;return 0===n&&(i-=1),i%=this.bucketNum,r<0&&(r+=this.bucketSize),{curNodeBucketIndex:i,curNodePointerIndex:r}},e.prototype.clear=function(){this.map=[[]],this.bucketNum=1,this.first=this.last=this.length=0,this.curFirst=this.curLast=this.bucketSize>>1},e.prototype.front=function(){return this.map[this.first][this.curFirst]},e.prototype.back=function(){return this.map[this.last][this.curLast]},e.prototype.begin=function(){return new _(0,this.size,this.getElementByPos,this.setElementByPos)},e.prototype.end=function(){return new _(this.length,this.size,this.getElementByPos,this.setElementByPos)},e.prototype.rBegin=function(){return new _(this.length-1,this.size,this.getElementByPos,this.setElementByPos,i.REVERSE)},e.prototype.rEnd=function(){return new _(-1,this.size,this.getElementByPos,this.setElementByPos,i.REVERSE)},e.prototype.pushBack=function(t){this.length&&(this.curLast<this.bucketSize-1?this.curLast+=1:this.last<this.bucketNum-1?(this.last+=1,this.curLast=0):(this.last=0,this.curLast=0),this.last===this.first&&this.curLast===this.curFirst&&this.reAllocate()),this.length+=1,this.map[this.last][this.curLast]=t},e.prototype.popBack=function(){this.length&&(this.map[this.last][this.curLast]=void 0,1!==this.length&&(this.curLast>0?this.curLast-=1:this.last>0?(this.last-=1,this.curLast=this.bucketSize-1):(this.last=this.bucketNum-1,this.curLast=this.bucketSize-1)),this.length-=1)},e.prototype.pushFront=function(t){this.length&&(this.curFirst>0?this.curFirst-=1:this.first>0?(this.first-=1,this.curFirst=this.bucketSize-1):(this.first=this.bucketNum-1,this.curFirst=this.bucketSize-1),this.first===this.last&&this.curFirst===this.curLast&&this.reAllocate()),this.length+=1,this.map[this.first][this.curFirst]=t},e.prototype.popFront=function(){this.length&&(this.map[this.first][this.curFirst]=void 0,1!==this.length&&(this.curFirst<this.bucketSize-1?this.curFirst+=1:this.first<this.bucketNum-1?(this.first+=1,this.curFirst=0):(this.first=0,this.curFirst=0)),this.length-=1)},e.prototype.forEach=function(t){for(var e=0;e<this.length;++e)t(this.getElementByPos(e),e)},e.prototype.getElementByPos=function(t){d(t,0,this.length-1);var e=this.getElementIndex(t),n=e.curNodeBucketIndex,r=e.curNodePointerIndex;return this.map[n][r]},e.prototype.setElementByPos=function(t,e){d(t,0,this.length-1);var n=this.getElementIndex(t),r=n.curNodeBucketIndex,i=n.curNodePointerIndex;this.map[r][i]=e},e.prototype.insert=function(t,e,n){if(void 0===n&&(n=1),d(t,0,this.length),0===t)while(n--)this.pushFront(e);else if(t===this.length)while(n--)this.pushBack(e);else{for(var r=[],i=t;i<this.length;++i)r.push(this.getElementByPos(i));this.cut(t-1);for(i=0;i<n;++i)this.pushBack(e);for(i=0;i<r.length;++i)this.pushBack(r[i])}},e.prototype.cut=function(t){if(t<0)this.clear();else{var e=this.getElementIndex(t),n=e.curNodeBucketIndex,r=e.curNodePointerIndex;this.last=n,this.curLast=r,this.length=t+1}},e.prototype.eraseElementByPos=function(t){var e=this;if(d(t,0,this.length-1),0===t)this.popFront();else if(t===this.length-1)this.popBack();else{for(var n=[],r=t+1;r<this.length;++r)n.push(this.getElementByPos(r));this.cut(t),this.popBack(),n.forEach((function(t){return e.pushBack(t)}))}},e.prototype.eraseElementByValue=function(t){if(this.length){for(var e=[],n=0;n<this.length;++n){var r=this.getElementByPos(n);r!==t&&e.push(r)}var i=e.length;for(n=0;n<i;++n)this.setElementByPos(n,e[n]);this.cut(i-1)}},e.prototype.eraseElementByIterator=function(t){var e=t.node;return this.eraseElementByPos(e),t=t.next(),t},e.prototype.find=function(t){for(var e=0;e<this.length;++e)if(this.getElementByPos(e)===t)return new _(e,this.size,this.getElementByPos,this.setElementByPos);return this.end()},e.prototype.reverse=function(){var t=0,e=this.length-1;while(t<e){var n=this.getElementByPos(t);this.setElementByPos(t,this.getElementByPos(e)),this.setElementByPos(e,n),t+=1,e-=1}},e.prototype.unique=function(){if(!(this.length<=1)){for(var t=1,e=this.getElementByPos(0),n=1;n<this.length;++n){var r=this.getElementByPos(n);r!==e&&(e=r,this.setElementByPos(t++,r))}while(this.length>t)this.popBack()}},e.prototype.sort=function(t){for(var e=[],n=0;n<this.length;++n)e.push(this.getElementByPos(n));e.sort(t);for(n=0;n<this.length;++n)this.setElementByPos(n,e[n])},e.prototype.shrinkToFit=function(){if(this.length){var t=[];this.forEach((function(e){return t.push(e)})),this.bucketNum=Math.max(Math.ceil(this.length/this.bucketSize),1),this.length=this.first=this.last=this.curFirst=this.curLast=0,this.map=[];for(var e=0;e<this.bucketNum;++e)this.map.push(new Array(this.bucketSize));for(e=0;e<t.length;++e)this.pushBack(t[e])}},e.prototype[Symbol.iterator]=function(){return function(){var t;return y(this,(function(e){switch(e.label){case 0:t=0,e.label=1;case 1:return t<this.length?[4,this.getElementByPos(t)]:[3,4];case 2:e.sent(),e.label=3;case 3:return++t,[3,1];case 4:return[2]}}))}.bind(this)()},e}(f),w=x,S=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),O=function(t){function e(e){void 0===e&&(e=[]);var n=t.call(this)||this;return n.queue=new w(e),n.length=n.queue.size(),n}return S(e,t),e.prototype.clear=function(){this.queue.clear(),this.length=0},e.prototype.push=function(t){this.queue.pushBack(t),this.length+=1},e.prototype.pop=function(){this.queue.popFront(),this.length&&(this.length-=1)},e.prototype.front=function(){return this.queue.front()},e}(o),C=O,k=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),A=function(t,e){var n="function"===typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{while((void 0===e||e-- >0)&&!(r=o.next()).done)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o["return"])&&n.call(o)}finally{if(i)throw i.error}}return a},M=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))},T=function(t){function e(e,n,r){var i;void 0===e&&(e=[]),void 0===n&&(n=function(t,e){return t>e?-1:t<e?1:0}),void 0===r&&(r=!0);var o=t.call(this)||this;o.cmp=n,Array.isArray(e)?o.priorityQueue=r?M([],A(e),!1):e:(o.priorityQueue=[],e.forEach((function(t){return o.priorityQueue.push(t)}))),o.length=o.priorityQueue.length;for(var a=o.length-1>>1;a>=0;--a){var s=a,l=s<<1|1;while(l<o.length){var u=l,c=u+1,h=u;if(c<o.length&&o.cmp(o.priorityQueue[u],o.priorityQueue[c])>0&&(h=c),o.cmp(o.priorityQueue[s],o.priorityQueue[h])<=0)break;i=A([o.priorityQueue[h],o.priorityQueue[s]],2),o.priorityQueue[s]=i[0],o.priorityQueue[h]=i[1],s=h,l=s<<1|1}}return o}return k(e,t),e.prototype.adjust=function(t){var e,n,r=t<<1|1,i=2+(t<<1);r<this.length&&this.cmp(this.priorityQueue[t],this.priorityQueue[r])>0&&(e=A([this.priorityQueue[r],this.priorityQueue[t]],2),this.priorityQueue[t]=e[0],this.priorityQueue[r]=e[1]),i<this.length&&this.cmp(this.priorityQueue[t],this.priorityQueue[i])>0&&(n=A([this.priorityQueue[i],this.priorityQueue[t]],2),this.priorityQueue[t]=n[0],this.priorityQueue[i]=n[1])},e.prototype.clear=function(){this.length=0,this.priorityQueue.length=0},e.prototype.push=function(t){if(this.priorityQueue.push(t),this.length+=1,1!==this.length){var e=this.length-1;while(e>0){var n=e-1>>1;if(this.cmp(this.priorityQueue[n],t)<=0)break;this.adjust(n),e=n}}},e.prototype.pop=function(){if(this.length){var t=this.priorityQueue[this.length-1];this.length-=1;var e=0;while(e<this.length){var n=e<<1|1,r=2+(e<<1);if(n>=this.length)break;var i=n;if(r<this.length&&this.cmp(this.priorityQueue[n],this.priorityQueue[r])>0&&(i=r),this.cmp(this.priorityQueue[i],t)>=0)break;this.priorityQueue[e]=this.priorityQueue[i],e=i}this.priorityQueue[e]=t,this.priorityQueue.pop()}},e.prototype.top=function(){return this.priorityQueue[0]},e}(o),I=T,E=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),P=function(t,e){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(t){return function(e){return l([t,e])}}function l(o){if(n)throw new TypeError("Generator is already executing.");while(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=e.call(t,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},j=function(t,e){var n="function"===typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{while((void 0===e||e-- >0)&&!(r=o.next()).done)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o["return"])&&n.call(o)}finally{if(i)throw i.error}}return a},L=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))},D=function(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},R=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return E(e,t),e.prototype.copy=function(){return new e(this.node,this.size,this.getElementByPos,this.setElementByPos,this.iteratorType)},e}(g),N=function(t){function e(e,n){void 0===e&&(e=[]),void 0===n&&(n=!0);var r=t.call(this)||this;return Array.isArray(e)?(r.vector=n?L([],j(e),!1):e,r.length=e.length):(r.vector=[],e.forEach((function(t){return r.pushBack(t)}))),r.size=r.size.bind(r),r.getElementByPos=r.getElementByPos.bind(r),r.setElementByPos=r.setElementByPos.bind(r),r}return E(e,t),e.prototype.clear=function(){this.length=0,this.vector.length=0},e.prototype.begin=function(){return new R(0,this.size,this.getElementByPos,this.setElementByPos)},e.prototype.end=function(){return new R(this.length,this.size,this.getElementByPos,this.setElementByPos)},e.prototype.rBegin=function(){return new R(this.length-1,this.size,this.getElementByPos,this.setElementByPos,i.REVERSE)},e.prototype.rEnd=function(){return new R(-1,this.size,this.getElementByPos,this.setElementByPos,i.REVERSE)},e.prototype.front=function(){return this.vector[0]},e.prototype.back=function(){return this.vector[this.length-1]},e.prototype.forEach=function(t){for(var e=0;e<this.length;++e)t(this.vector[e],e)},e.prototype.getElementByPos=function(t){return d(t,0,this.length-1),this.vector[t]},e.prototype.eraseElementByPos=function(t){d(t,0,this.length-1),this.vector.splice(t,1),this.length-=1},e.prototype.eraseElementByValue=function(t){for(var e=0,n=0;n<this.length;++n)this.vector[n]!==t&&(this.vector[e++]=this.vector[n]);this.length=this.vector.length=e},e.prototype.eraseElementByIterator=function(t){var e=t.node;return t=t.next(),this.eraseElementByPos(e),t},e.prototype.pushBack=function(t){this.vector.push(t),this.length+=1},e.prototype.popBack=function(){this.length&&(this.vector.pop(),this.length-=1)},e.prototype.setElementByPos=function(t,e){d(t,0,this.length-1),this.vector[t]=e},e.prototype.insert=function(t,e,n){var r;void 0===n&&(n=1),d(t,0,this.length),(r=this.vector).splice.apply(r,L([t,0],j(new Array(n).fill(e)),!1)),this.length+=n},e.prototype.find=function(t){for(var e=0;e<this.length;++e)if(this.vector[e]===t)return new R(e,this.size,this.getElementByPos,this.getElementByPos);return this.end()},e.prototype.reverse=function(){this.vector.reverse()},e.prototype.unique=function(){for(var t=1,e=1;e<this.length;++e)this.vector[e]!==this.vector[e-1]&&(this.vector[t++]=this.vector[e]);this.length=this.vector.length=t},e.prototype.sort=function(t){this.vector.sort(t)},e.prototype[Symbol.iterator]=function(){return function(){return P(this,(function(t){switch(t.label){case 0:return[5,D(this.vector)];case 1:return[2,t.sent()]}}))}.bind(this)()},e}(f),B=N,F=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),z=function(t,e){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(t){return function(e){return l([t,e])}}function l(o){if(n)throw new TypeError("Generator is already executing.");while(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=e.call(t,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},V=function(){function t(t){this.value=void 0,this.pre=void 0,this.next=void 0,this.value=t}return t}(),q=function(t){function e(e,n,r){var o=t.call(this,r)||this;return o.node=e,o.header=n,o.iteratorType===i.NORMAL?(o.pre=function(){if(this.node.pre===this.header)throw new RangeError("LinkList iterator access denied!");return this.node=this.node.pre,this},o.next=function(){if(this.node===this.header)throw new RangeError("LinkList iterator access denied!");return this.node=this.node.next,this}):(o.pre=function(){if(this.node.next===this.header)throw new RangeError("LinkList iterator access denied!");return this.node=this.node.next,this},o.next=function(){if(this.node===this.header)throw new RangeError("LinkList iterator access denied!");return this.node=this.node.pre,this}),o}return F(e,t),Object.defineProperty(e.prototype,"pointer",{get:function(){if(this.node===this.header)throw new RangeError("LinkList iterator access denied!");return this.node.value},set:function(t){if(this.node===this.header)throw new RangeError("LinkList iterator access denied!");this.node.value=t},enumerable:!1,configurable:!0}),e.prototype.equals=function(t){return this.node===t.node},e.prototype.copy=function(){return new e(this.node,this.header,this.iteratorType)},e}(i),G=function(t){function e(e){void 0===e&&(e=[]);var n=t.call(this)||this;return n.header=new V,n.head=void 0,n.tail=void 0,e.forEach((function(t){return n.pushBack(t)})),n}return F(e,t),e.prototype.clear=function(){this.length=0,this.head=this.tail=void 0,this.header.pre=this.header.next=void 0},e.prototype.begin=function(){return new q(this.head||this.header,this.header)},e.prototype.end=function(){return new q(this.header,this.header)},e.prototype.rBegin=function(){return new q(this.tail||this.header,this.header,i.REVERSE)},e.prototype.rEnd=function(){return new q(this.header,this.header,i.REVERSE)},e.prototype.front=function(){return this.head?this.head.value:void 0},e.prototype.back=function(){return this.tail?this.tail.value:void 0},e.prototype.forEach=function(t){if(this.length){var e=this.head,n=0;while(e!==this.header)t(e.value,n++),e=e.next}},e.prototype.getElementByPos=function(t){d(t,0,this.length-1);var e=this.head;while(t--)e=e.next;return e.value},e.prototype.eraseElementByPos=function(t){if(d(t,0,this.length-1),0===t)this.popFront();else if(t===this.length-1)this.popBack();else{var e=this.head;while(t--)e=e.next;e=e;var n=e.pre,r=e.next;r.pre=n,n.next=r,this.length-=1}},e.prototype.eraseElementByValue=function(t){while(this.head&&this.head.value===t)this.popFront();while(this.tail&&this.tail.value===t)this.popBack();if(this.head){var e=this.head;while(e!==this.header){if(e.value===t){var n=e.pre,r=e.next;r&&(r.pre=n),n&&(n.next=r),this.length-=1}e=e.next}}},e.prototype.eraseElementByIterator=function(t){var e=t.node;if(e===this.header)throw new RangeError("Invalid iterator");if(t=t.next(),this.head===e)this.popFront();else if(this.tail===e)this.popBack();else{var n=e.pre,r=e.next;r&&(r.pre=n),n&&(n.next=r),this.length-=1}return t},e.prototype.pushBack=function(t){this.length+=1;var e=new V(t);this.tail?(this.tail.next=e,e.pre=this.tail,this.tail=e):(this.head=this.tail=e,this.header.next=this.head,this.head.pre=this.header),this.tail.next=this.header,this.header.pre=this.tail},e.prototype.popBack=function(){this.tail&&(this.length-=1,this.head===this.tail?(this.head=this.tail=void 0,this.header.next=void 0):(this.tail=this.tail.pre,this.tail&&(this.tail.next=void 0)),this.header.pre=this.tail,this.tail&&(this.tail.next=this.header))},e.prototype.setElementByPos=function(t,e){d(t,0,this.length-1);var n=this.head;while(t--)n=n.next;n.value=e},e.prototype.insert=function(t,e,n){if(void 0===n&&(n=1),d(t,0,this.length),!(n<=0))if(0===t)while(n--)this.pushFront(e);else if(t===this.length)while(n--)this.pushBack(e);else{for(var r=this.head,i=1;i<t;++i)r=r.next;var o=r.next;this.length+=n;while(n--)r.next=new V(e),r.next.pre=r,r=r.next;r.next=o,o&&(o.pre=r)}},e.prototype.find=function(t){if(!this.head)return this.end();var e=this.head;while(e!==this.header){if(e.value===t)return new q(e,this.header);e=e.next}return this.end()},e.prototype.reverse=function(){if(!(this.length<=1)){var t=this.head,e=this.tail,n=0;while(n<<1<this.length){var r=t.value;t.value=e.value,e.value=r,t=t.next,e=e.pre,n+=1}}},e.prototype.unique=function(){if(!(this.length<=1)){var t=this.head;while(t!==this.header){var e=t;while(e.next&&e.value===e.next.value)e=e.next,this.length-=1;t.next=e.next,t.next&&(t.next.pre=t),t=t.next}}},e.prototype.sort=function(t){if(!(this.length<=1)){var e=[];this.forEach((function(t){return e.push(t)})),e.sort(t);var n=this.head;e.forEach((function(t){n.value=t,n=n.next}))}},e.prototype.pushFront=function(t){this.length+=1;var e=new V(t);this.head?(e.next=this.head,this.head.pre=e,this.head=e):(this.head=this.tail=e,this.tail.next=this.header,this.header.pre=this.tail),this.header.next=this.head,this.head.pre=this.header},e.prototype.popFront=function(){this.head&&(this.length-=1,this.head===this.tail?(this.head=this.tail=void 0,this.header.pre=this.tail):(this.head=this.head.next,this.head&&(this.head.pre=this.header)),this.header.next=this.head)},e.prototype.merge=function(t){var e=this;if(this.head){var n=this.head;t.forEach((function(t){while(n&&n!==e.header&&n.value<=t)n=n.next;if(n===e.header)e.pushBack(t),n=e.tail;else if(n===e.head)e.pushFront(t),n=e.head;else{e.length+=1;var r=n.pre;r.next=new V(t),r.next.pre=r,r.next.next=n,n.pre=r.next}}))}else t.forEach((function(t){return e.pushBack(t)}))},e.prototype[Symbol.iterator]=function(){return function(){var t;return z(this,(function(e){switch(e.label){case 0:if(!this.head)return[2];t=this.head,e.label=1;case 1:return t===this.header?[3,3]:[4,t.value];case 2:return e.sent(),t=t.next,[3,1];case 3:return[2]}}))}.bind(this)()},e}(f),H=G,W=function(){function t(t,e){this.color=!0,this.key=void 0,this.value=void 0,this.left=void 0,this.right=void 0,this.parent=void 0,this.key=t,this.value=e}return t.prototype.pre=function(){var e=this;if(e.color===t.RED&&e.parent.parent===e)e=e.right;else if(e.left){e=e.left;while(e.right)e=e.right}else{var n=e.parent;while(n.left===e)e=n,n=e.parent;e=n}return e},t.prototype.next=function(){var t=this;if(t.right){t=t.right;while(t.left)t=t.left}else{var e=t.parent;while(e.right===t)t=e,e=t.parent;t.right!==e&&(t=e)}return t},t.prototype.rotateLeft=function(){var t=this.parent,e=this.right,n=e.left;return t.parent===this?t.parent=e:t.left===this?t.left=e:t.right=e,e.parent=t,e.left=this,this.parent=e,this.right=n,n&&(n.parent=this),e},t.prototype.rotateRight=function(){var t=this.parent,e=this.left,n=e.right;return t.parent===this?t.parent=e:t.left===this?t.left=e:t.right=e,e.parent=t,e.right=this,this.parent=e,this.left=n,n&&(n.parent=this),e},t.prototype.remove=function(){var t=this.parent;this===t.left?t.left=void 0:t.right=void 0},t.RED=!0,t.BLACK=!1,t}(),U=W,$=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Y=function(t,e){var n="function"===typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{while((void 0===e||e-- >0)&&!(r=o.next()).done)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o["return"])&&n.call(o)}finally{if(i)throw i.error}}return a},X=function(t){function e(e){void 0===e&&(e=function(t,e){return t<e?-1:t>e?1:0});var n=t.call(this)||this;return n.root=void 0,n.header=new U,n.inOrderTraversal=function(t,e){if(void 0===t)return!1;var r=n.inOrderTraversal(t.left,e);return!!r||(!!e(t)||n.inOrderTraversal(t.right,e))},n.cmp=e,n}return $(e,t),e.prototype._lowerBound=function(t,e){var n;while(t){var r=this.cmp(t.key,e);if(r<0)t=t.right;else{if(!(r>0))return t;n=t,t=t.left}}return void 0===n?this.header:n},e.prototype._upperBound=function(t,e){var n;while(t){var r=this.cmp(t.key,e);r<=0?t=t.right:r>0&&(n=t,t=t.left)}return void 0===n?this.header:n},e.prototype._reverseLowerBound=function(t,e){var n;while(t){var r=this.cmp(t.key,e);if(r<0)n=t,t=t.right;else{if(!(r>0))return t;t=t.left}}return void 0===n?this.header:n},e.prototype._reverseUpperBound=function(t,e){var n;while(t){var r=this.cmp(t.key,e);r<0?(n=t,t=t.right):r>=0&&(t=t.left)}return void 0===n?this.header:n},e.prototype.eraseNodeSelfBalance=function(t){while(1){var e=t.parent;if(e===this.header)return;if(t.color===U.RED)return void(t.color=U.BLACK);if(t===e.left){var n=e.right;if(n.color===U.RED)n.color=U.BLACK,e.color=U.RED,e===this.root?this.root=e.rotateLeft():e.rotateLeft();else if(n.color===U.BLACK){if(n.right&&n.right.color===U.RED)return n.color=e.color,e.color=U.BLACK,n.right.color=U.BLACK,void(e===this.root?this.root=e.rotateLeft():e.rotateLeft());n.left&&n.left.color===U.RED?(n.color=U.RED,n.left.color=U.BLACK,n.rotateRight()):(n.color=U.RED,t=e)}}else{n=e.left;if(n.color===U.RED)n.color=U.BLACK,e.color=U.RED,e===this.root?this.root=e.rotateRight():e.rotateRight();else{if(n.left&&n.left.color===U.RED)return n.color=e.color,e.color=U.BLACK,n.left.color=U.BLACK,void(e===this.root?this.root=e.rotateRight():e.rotateRight());n.right&&n.right.color===U.RED?(n.color=U.RED,n.right.color=U.BLACK,n.rotateLeft()):(n.color=U.RED,t=e)}}}},e.prototype.eraseNode=function(t){var e,n;if(1!==this.length){var r=t;while(r.left||r.right){if(r.right){r=r.right;while(r.left)r=r.left}else r.left&&(r=r.left);e=Y([r.key,t.key],2),t.key=e[0],r.key=e[1],n=Y([r.value,t.value],2),t.value=n[0],r.value=n[1],t=r}this.header.left===r?this.header.left=r.parent:this.header.right===r&&(this.header.right=r.parent),this.eraseNodeSelfBalance(r),r.remove(),this.length-=1,this.root.color=U.BLACK}else this.clear()},e.prototype.insertNodeSelfBalance=function(t){while(1){var e=t.parent;if(e.color===U.BLACK)return;var n=e.parent;if(e===n.left){var r=n.right;if(r&&r.color===U.RED){if(r.color=e.color=U.BLACK,n===this.root)return;n.color=U.RED,t=n;continue}if(t===e.right){if(t.color=U.BLACK,t.left&&(t.left.parent=e),t.right&&(t.right.parent=n),e.right=t.left,n.left=t.right,t.left=e,t.right=n,n===this.root)this.root=t,this.header.parent=t;else{var i=n.parent;i.left===n?i.left=t:i.right=t}t.parent=n.parent,e.parent=t,n.parent=t}else e.color=U.BLACK,n===this.root?this.root=n.rotateRight():n.rotateRight();n.color=U.RED}else{r=n.left;if(r&&r.color===U.RED){if(r.color=e.color=U.BLACK,n===this.root)return;n.color=U.RED,t=n;continue}if(t===e.left){if(t.color=U.BLACK,t.left&&(t.left.parent=n),t.right&&(t.right.parent=e),n.right=t.left,e.left=t.right,t.left=n,t.right=e,n===this.root)this.root=t,this.header.parent=t;else{i=n.parent;i.left===n?i.left=t:i.right=t}t.parent=n.parent,e.parent=t,n.parent=t}else e.color=U.BLACK,n===this.root?this.root=n.rotateLeft():n.rotateLeft();n.color=U.RED}return}},e.prototype.findElementNode=function(t,e){while(t){var n=this.cmp(t.key,e);if(n<0)t=t.right;else{if(!(n>0))return t;t=t.left}}return t},e.prototype.set=function(t,e,n){if(void 0===this.root)return this.length+=1,this.root=new U(t,e),this.root.color=U.BLACK,this.root.parent=this.header,this.header.parent=this.root,this.header.left=this.root,void(this.header.right=this.root);var r,i=this.header.left,o=this.cmp(i.key,t);if(0!==o){if(o>0)i.left=new U(t,e),i.left.parent=i,r=i.left,this.header.left=r;else{var a=this.header.right,s=this.cmp(a.key,t);if(0===s)return void(a.value=e);if(s<0)a.right=new U(t,e),a.right.parent=a,r=a.right,this.header.right=r;else{if(void 0!==n){var l=n.node;if(l!==this.header){var u=this.cmp(l.key,t);if(0===u)return void(l.value=e);if(u>0){var c=l.pre(),h=this.cmp(c.key,t);if(0===h)return void(c.value=e);h<0&&(r=new U(t,e),void 0===c.right?(c.right=r,r.parent=c):(l.left=r,r.parent=l))}}}if(void 0===r){r=this.root;while(1){var f=this.cmp(r.key,t);if(f>0){if(void 0===r.left){r.left=new U(t,e),r.left.parent=r,r=r.left;break}r=r.left}else{if(!(f<0))return void(r.value=e);if(void 0===r.right){r.right=new U(t,e),r.right.parent=r,r=r.right;break}r=r.right}}}}}this.length+=1,this.insertNodeSelfBalance(r)}else i.value=e},e.prototype.clear=function(){this.length=0,this.root=void 0,this.header.parent=void 0,this.header.left=this.header.right=void 0},e.prototype.updateKeyByIterator=function(t,e){var n=t.node;if(n===this.header)throw new TypeError("Invalid iterator!");if(1===this.length)return n.key=e,!0;if(n===this.header.left)return this.cmp(n.next().key,e)>0&&(n.key=e,!0);if(n===this.header.right)return this.cmp(n.pre().key,e)<0&&(n.key=e,!0);var r=n.pre().key;if(this.cmp(r,e)>=0)return!1;var i=n.next().key;return!(this.cmp(i,e)<=0)&&(n.key=e,!0)},e.prototype.eraseElementByPos=function(t){var e=this;d(t,0,this.length-1);var n=0;this.inOrderTraversal(this.root,(function(r){return t===n?(e.eraseNode(r),!0):(n+=1,!1)}))},e.prototype.eraseElementByKey=function(t){if(this.length){var e=this.findElementNode(this.root,t);void 0!==e&&this.eraseNode(e)}},e.prototype.eraseElementByIterator=function(t){var e=t.node;if(e===this.header)throw new RangeError("Invalid iterator");return void 0===e.right&&(t=t.next()),this.eraseNode(e),t},e.prototype.getHeight=function(){if(!this.length)return 0;var t=function(e){return e?Math.max(t(e.left),t(e.right))+1:0};return t(this.root)},e}(a),K=X,Z=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Q=function(t){function e(e,n,r){var o=t.call(this,r)||this;return o.node=e,o.header=n,o.iteratorType===i.NORMAL?(o.pre=function(){if(this.node===this.header.left)throw new RangeError("LinkList iterator access denied!");return this.node=this.node.pre(),this},o.next=function(){if(this.node===this.header)throw new RangeError("LinkList iterator access denied!");return this.node=this.node.next(),this}):(o.pre=function(){if(this.node===this.header.right)throw new RangeError("LinkList iterator access denied!");return this.node=this.node.next(),this},o.next=function(){if(this.node===this.header)throw new RangeError("LinkList iterator access denied!");return this.node=this.node.pre(),this}),o}return Z(e,t),e.prototype.equals=function(t){return this.node===t.node},e}(i),J=Q,tt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),et=function(t,e){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(t){return function(e){return l([t,e])}}function l(o){if(n)throw new TypeError("Generator is already executing.");while(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=e.call(t,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},nt=function(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},rt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tt(e,t),Object.defineProperty(e.prototype,"pointer",{get:function(){if(this.node===this.header)throw new RangeError("OrderedSet iterator access denied!");return this.node.key},enumerable:!1,configurable:!0}),e.prototype.copy=function(){return new e(this.node,this.header,this.iteratorType)},e}(J),it=function(t){function e(e,n){void 0===e&&(e=[]);var r=t.call(this,n)||this;return r.iterationFunc=function(t){return et(this,(function(e){switch(e.label){case 0:return void 0===t?[2]:[5,nt(this.iterationFunc(t.left))];case 1:return e.sent(),[4,t.key];case 2:return e.sent(),[5,nt(this.iterationFunc(t.right))];case 3:return e.sent(),[2]}}))},e.forEach((function(t){return r.insert(t)})),r.iterationFunc=r.iterationFunc.bind(r),r}return tt(e,t),e.prototype.begin=function(){return new rt(this.header.left||this.header,this.header)},e.prototype.end=function(){return new rt(this.header,this.header)},e.prototype.rBegin=function(){return new rt(this.header.right||this.header,this.header,i.REVERSE)},e.prototype.rEnd=function(){return new rt(this.header,this.header,i.REVERSE)},e.prototype.front=function(){return this.header.left?this.header.left.key:void 0},e.prototype.back=function(){return this.header.right?this.header.right.key:void 0},e.prototype.forEach=function(t){var e,n,r=0;try{for(var i=nt(this),o=i.next();!o.done;o=i.next()){var a=o.value;t(a,r++)}}catch(s){e={error:s}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}},e.prototype.getElementByPos=function(t){var e,n,r;d(t,0,this.length-1);var i=0;try{for(var o=nt(this),a=o.next();!a.done;a=o.next()){var s=a.value;i===t&&(r=s),i+=1}}catch(l){e={error:l}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return r},e.prototype.insert=function(t,e){this.set(t,void 0,e)},e.prototype.find=function(t){var e=this.findElementNode(this.root,t);return void 0!==e?new rt(e,this.header):this.end()},e.prototype.lowerBound=function(t){var e=this._lowerBound(this.root,t);return new rt(e,this.header)},e.prototype.upperBound=function(t){var e=this._upperBound(this.root,t);return new rt(e,this.header)},e.prototype.reverseLowerBound=function(t){var e=this._reverseLowerBound(this.root,t);return new rt(e,this.header)},e.prototype.reverseUpperBound=function(t){var e=this._reverseUpperBound(this.root,t);return new rt(e,this.header)},e.prototype.union=function(t){var e=this;t.forEach((function(t){return e.insert(t)}))},e.prototype[Symbol.iterator]=function(){return this.iterationFunc(this.root)},e}(K),ot=it,at=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),st=function(t,e){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(t){return function(e){return l([t,e])}}function l(o){if(n)throw new TypeError("Generator is already executing.");while(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=e.call(t,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},lt=function(t,e){var n="function"===typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{while((void 0===e||e-- >0)&&!(r=o.next()).done)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o["return"])&&n.call(o)}finally{if(i)throw i.error}}return a},ut=function(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},ct=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return at(e,t),Object.defineProperty(e.prototype,"pointer",{get:function(){var t=this;if(this.node===this.header)throw new RangeError("OrderedMap iterator access denied");return new Proxy([],{get:function(e,n){return"0"===n?t.node.key:"1"===n?t.node.value:void 0},set:function(e,n,r){if("1"!==n)throw new TypeError("props must be 1");return t.node.value=r,!0}})},enumerable:!1,configurable:!0}),e.prototype.copy=function(){return new e(this.node,this.header,this.iteratorType)},e}(J),ht=function(t){function e(e,n){void 0===e&&(e=[]);var r=t.call(this,n)||this;return r.iterationFunc=function(t){return st(this,(function(e){switch(e.label){case 0:return void 0===t?[2]:[5,ut(this.iterationFunc(t.left))];case 1:return e.sent(),[4,[t.key,t.value]];case 2:return e.sent(),[5,ut(this.iterationFunc(t.right))];case 3:return e.sent(),[2]}}))},r.iterationFunc=r.iterationFunc.bind(r),e.forEach((function(t){var e=lt(t,2),n=e[0],i=e[1];return r.setElement(n,i)})),r}return at(e,t),e.prototype.begin=function(){return new ct(this.header.left||this.header,this.header)},e.prototype.end=function(){return new ct(this.header,this.header)},e.prototype.rBegin=function(){return new ct(this.header.right||this.header,this.header,i.REVERSE)},e.prototype.rEnd=function(){return new ct(this.header,this.header,i.REVERSE)},e.prototype.front=function(){if(this.length){var t=this.header.left;return[t.key,t.value]}},e.prototype.back=function(){if(this.length){var t=this.header.right;return[t.key,t.value]}},e.prototype.forEach=function(t){var e,n,r=0;try{for(var i=ut(this),o=i.next();!o.done;o=i.next()){var a=o.value;t(a,r++)}}catch(s){e={error:s}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}},e.prototype.lowerBound=function(t){var e=this._lowerBound(this.root,t);return new ct(e,this.header)},e.prototype.upperBound=function(t){var e=this._upperBound(this.root,t);return new ct(e,this.header)},e.prototype.reverseLowerBound=function(t){var e=this._reverseLowerBound(this.root,t);return new ct(e,this.header)},e.prototype.reverseUpperBound=function(t){var e=this._reverseUpperBound(this.root,t);return new ct(e,this.header)},e.prototype.setElement=function(t,e,n){this.set(t,e,n)},e.prototype.find=function(t){var e=this.findElementNode(this.root,t);return void 0!==e?new ct(e,this.header):this.end()},e.prototype.getElementByKey=function(t){var e=this.findElementNode(this.root,t);return e?e.value:void 0},e.prototype.getElementByPos=function(t){var e,n,r;d(t,0,this.length-1);var i=0;try{for(var o=ut(this),a=o.next();!a.done;a=o.next()){var s=a.value;if(i===t){r=s;break}i+=1}}catch(l){e={error:l}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return r},e.prototype.union=function(t){var e=this;t.forEach((function(t){var n=lt(t,2),r=n[0],i=n[1];return e.setElement(r,i)}))},e.prototype[Symbol.iterator]=function(){return this.iterationFunc(this.root)},e}(K),ft=ht,dt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),pt=function(t){function e(e,n){void 0===e&&(e=16),void 0===n&&(n=function(t){var e;e="string"!==typeof t?JSON.stringify(t):t;for(var n=0,r=e.length,i=0;i<r;i++){var o=e.charCodeAt(i);n=(n<<5)-n+o,n|=0}return n>>>0});var r=t.call(this)||this;if(e<16||0!==(e&e-1))throw new RangeError("InitBucketNum range error");return r.bucketNum=r.initBucketNum=e,r.hashFunc=n,r}return dt(e,t),e.prototype.clear=function(){this.length=0,this.bucketNum=this.initBucketNum,this.hashTable=[]},e.sigma=.75,e.treeifyThreshold=8,e.untreeifyThreshold=6,e.minTreeifySize=64,e.maxBucketNum=1<<30,e}(o),gt=pt,vt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),yt=function(t,e){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(t){return function(e){return l([t,e])}}function l(o){if(n)throw new TypeError("Generator is already executing.");while(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=e.call(t,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},mt=function(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},bt=function(t){function e(e,n,r){void 0===e&&(e=[]);var i=t.call(this,n,r)||this;return i.hashTable=[],e.forEach((function(t){return i.insert(t)})),i}return vt(e,t),e.prototype.reAllocate=function(){var t=this;if(!(this.bucketNum>=gt.maxBucketNum)){var e=[],n=this.bucketNum;this.bucketNum<<=1;for(var r=Object.keys(this.hashTable),i=r.length,o=function(i){var o=parseInt(r[i]),s=a.hashTable[o],l=s.size();if(0===l)return"continue";if(1===l){var u=s.front();return e[a.hashFunc(u)&a.bucketNum-1]=new B([u],!1),"continue"}var c=[],h=[];s.forEach((function(e){var r=t.hashFunc(e);0===(r&n)?c.push(e):h.push(e)})),s instanceof ot?(c.length>gt.untreeifyThreshold?e[o]=new ot(c):c.length&&(e[o]=new B(c,!1)),h.length>gt.untreeifyThreshold?e[o+n]=new ot(h):h.length&&(e[o+n]=new B(h,!1))):(c.length>=gt.treeifyThreshold?e[o]=new ot(c):c.length&&(e[o]=new B(c,!1)),h.length>=gt.treeifyThreshold?e[o+n]=new ot(h):h.length&&(e[o+n]=new B(h,!1)))},a=this,s=0;s<i;++s)o(s);this.hashTable=e}},e.prototype.forEach=function(t){for(var e=Object.values(this.hashTable),n=e.length,r=0,i=0;i<n;++i)e[i].forEach((function(e){return t(e,r++)}))},e.prototype.insert=function(t){var e=this.hashFunc(t)&this.bucketNum-1,n=this.hashTable[e];if(n){var r=n.size();if(n instanceof B){if(!n.find(t).equals(n.end()))return;if(n.pushBack(t),r+1>=gt.treeifyThreshold){if(this.bucketNum<=gt.minTreeifySize)return this.length+=1,void this.reAllocate();this.hashTable[e]=new ot(n)}this.length+=1}else{n.insert(t);var i=n.size();this.length+=i-r}}else this.hashTable[e]=new B([t],!1),this.length+=1;this.length>this.bucketNum*gt.sigma&&this.reAllocate()},e.prototype.eraseElementByKey=function(t){var e=this.hashFunc(t)&this.bucketNum-1,n=this.hashTable[e];if(n){var r=n.size();if(0!==r)if(n instanceof B){n.eraseElementByValue(t);var i=n.size();this.length+=i-r}else{n.eraseElementByKey(t);i=n.size();this.length+=i-r,i<=gt.untreeifyThreshold&&(this.hashTable[e]=new B(n))}}},e.prototype.find=function(t){var e=this.hashFunc(t)&this.bucketNum-1,n=this.hashTable[e];return!!n&&!n.find(t).equals(n.end())},e.prototype[Symbol.iterator]=function(){return function(){var t,e,n,r,i,o,a,s,l,u;return yt(this,(function(c){switch(c.label){case 0:t=Object.values(this.hashTable),e=t.length,n=0,c.label=1;case 1:if(!(n<e))return[3,10];r=t[n],c.label=2;case 2:c.trys.push([2,7,8,9]),l=void 0,i=mt(r),o=i.next(),c.label=3;case 3:return o.done?[3,6]:(a=o.value,[4,a]);case 4:c.sent(),c.label=5;case 5:return o=i.next(),[3,3];case 6:return[3,9];case 7:return s=c.sent(),l={error:s},[3,9];case 8:try{o&&!o.done&&(u=i.return)&&u.call(i)}finally{if(l)throw l.error}return[7];case 9:return++n,[3,1];case 10:return[2]}}))}.bind(this)()},e}(gt),_t=bt,xt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),wt=function(t,e){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(t){return function(e){return l([t,e])}}function l(o){if(n)throw new TypeError("Generator is already executing.");while(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=e.call(t,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}},St=function(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Ot=function(t){function e(e,n,r){void 0===e&&(e=[]);var i=t.call(this,n,r)||this;return i.hashTable=[],e.forEach((function(t){return i.setElement(t[0],t[1])})),i}return xt(e,t),e.prototype.reAllocate=function(){var t=this;if(!(this.bucketNum>=gt.maxBucketNum)){var e=[],n=this.bucketNum;this.bucketNum<<=1;for(var r=Object.keys(this.hashTable),i=r.length,o=function(i){var o=parseInt(r[i]),s=a.hashTable[o],l=s.size();if(0===l)return"continue";if(1===l){var u=s.front();return e[a.hashFunc(u[0])&a.bucketNum-1]=new B([u],!1),"continue"}var c=[],h=[];s.forEach((function(e){var r=t.hashFunc(e[0]);0===(r&n)?c.push(e):h.push(e)})),s instanceof ft?(c.length>gt.untreeifyThreshold?e[o]=new ft(c):c.length&&(e[o]=new B(c,!1)),h.length>gt.untreeifyThreshold?e[o+n]=new ft(h):h.length&&(e[o+n]=new B(h,!1))):(c.length>=gt.treeifyThreshold?e[o]=new ft(c):c.length&&(e[o]=new B(c,!1)),h.length>=gt.treeifyThreshold?e[o+n]=new ft(h):h.length&&(e[o+n]=new B(h,!1)))},a=this,s=0;s<i;++s)o(s);this.hashTable=e}},e.prototype.forEach=function(t){for(var e=Object.values(this.hashTable),n=e.length,r=0,i=0;i<n;++i)e[i].forEach((function(e){return t(e,r++)}))},e.prototype.setElement=function(t,n){var r,i,o=this.hashFunc(t)&this.bucketNum-1,a=this.hashTable[o];if(a){var s=a.size();if(a instanceof B){try{for(var l=St(a),u=l.next();!u.done;u=l.next()){var c=u.value;if(c[0]===t)return void(c[1]=n)}}catch(f){r={error:f}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}if(a.pushBack([t,n]),s+1>=e.treeifyThreshold){if(this.bucketNum<=e.minTreeifySize)return this.length+=1,void this.reAllocate();this.hashTable[o]=new ft(this.hashTable[o])}this.length+=1}else{a.setElement(t,n);var h=a.size();this.length+=h-s}}else this.length+=1,this.hashTable[o]=new B([[t,n]],!1);this.length>this.bucketNum*e.sigma&&this.reAllocate()},e.prototype.getElementByKey=function(t){var e,n,r=this.hashFunc(t)&this.bucketNum-1,i=this.hashTable[r];if(i){if(i instanceof ft)return i.getElementByKey(t);try{for(var o=St(i),a=o.next();!a.done;a=o.next()){var s=a.value;if(s[0]===t)return s[1]}}catch(l){e={error:l}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}}},e.prototype.eraseElementByKey=function(t){var e,n,r=this.hashFunc(t)&this.bucketNum-1,i=this.hashTable[r];if(i)if(i instanceof B){var o=0;try{for(var a=St(i),s=a.next();!s.done;s=a.next()){var l=s.value;if(l[0]===t)return i.eraseElementByPos(o),void(this.length-=1);o+=1}}catch(h){e={error:h}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}}else{var u=i.size();i.eraseElementByKey(t);var c=i.size();this.length+=c-u,c<=gt.untreeifyThreshold&&(this.hashTable[r]=new B(i))}},e.prototype.find=function(t){var e,n,r=this.hashFunc(t)&this.bucketNum-1,i=this.hashTable[r];if(!i)return!1;if(i instanceof ft)return!i.find(t).equals(i.end());try{for(var o=St(i),a=o.next();!a.done;a=o.next()){var s=a.value;if(s[0]===t)return!0}}catch(l){e={error:l}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return!1},e.prototype[Symbol.iterator]=function(){return function(){var t,e,n,r,i,o,a,s,l,u;return wt(this,(function(c){switch(c.label){case 0:t=Object.values(this.hashTable),e=t.length,n=0,c.label=1;case 1:if(!(n<e))return[3,10];r=t[n],c.label=2;case 2:c.trys.push([2,7,8,9]),l=void 0,i=St(r),o=i.next(),c.label=3;case 3:return o.done?[3,6]:(a=o.value,[4,a]);case 4:c.sent(),c.label=5;case 5:return o=i.next(),[3,3];case 6:return[3,9];case 7:return s=c.sent(),l={error:s},[3,9];case 8:try{o&&!o.done&&(u=i.return)&&u.call(i)}finally{if(l)throw l.error}return[7];case 9:return++n,[3,1];case 10:return[2]}}))}.bind(this)()},e}(gt),Ct=Ot},"3e8a":function(t,e,n){},"3ee2":function(t,e,n){
|
||
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
||
var r=n("1c35"),i=r.Buffer;function o(t,e){for(var n in t)e[n]=t[n]}function a(t,e,n){return i(t,e,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=r:(o(r,e),e.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(t,e,n){if("number"===typeof t)throw new TypeError("Argument must not be a number");return i(t,e,n)},a.alloc=function(t,e,n){if("number"!==typeof t)throw new TypeError("Argument must be a number");var r=i(t);return void 0!==e?"string"===typeof n?r.fill(e,n):r.fill(e):r.fill(0),r},a.allocUnsafe=function(t){if("number"!==typeof t)throw new TypeError("Argument must be a number");return i(t)},a.allocUnsafeSlow=function(t){if("number"!==typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}},"3f6b":function(t,e,n){t.exports={default:n("b9c7"),__esModule:!0}},"3f8c":function(t,e){t.exports={}},"3fb5":function(t,e){"function"===typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}}},"408a":function(t,e,n){var r=n("e330");t.exports=r(1..valueOf)},"40d5":function(t,e,n){var r=n("d039");t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},"41b2":function(t,e,n){"use strict";e.__esModule=!0;var r=n("3f6b"),i=o(r);function o(t){return t&&t.__esModule?t:{default:t}}e.default=i.default||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}},"41ef":function(t,e,n){"use strict";n.r(e),n.d(e,"parse",(function(){return y})),n.d(e,"lift",(function(){return _})),n.d(e,"toHex",(function(){return x})),n.d(e,"fastLerp",(function(){return w})),n.d(e,"fastMapToColor",(function(){return S})),n.d(e,"lerp",(function(){return O})),n.d(e,"mapToColor",(function(){return C})),n.d(e,"modifyHSL",(function(){return k})),n.d(e,"modifyAlpha",(function(){return A})),n.d(e,"stringify",(function(){return M})),n.d(e,"lum",(function(){return T})),n.d(e,"random",(function(){return I}));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(t){return t=Math.round(t),t<0?0:t>255?255:t}function a(t){return t=Math.round(t),t<0?0:t>360?360:t}function s(t){return t<0?0:t>1?1:t}function l(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?o(parseFloat(e)/100*255):o(parseInt(e,10))}function u(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?s(parseFloat(e)/100):s(parseFloat(e))}function c(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function h(t,e,n){return t+(e-t)*n}function f(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t}function d(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var p=new r["a"](20),g=null;function v(t,e){g&&d(g,e),g=p.put(t,g||e.slice())}function y(t,e){if(t){e=e||[];var n=p.get(t);if(n)return d(e,n);t+="";var r=t.replace(/ /g,"").toLowerCase();if(r in i)return d(e,i[r]),v(t,e),e;var o=r.length;if("#"!==r.charAt(0)){var a=r.indexOf("("),s=r.indexOf(")");if(-1!==a&&s+1===o){var c=r.substr(0,a),h=r.substr(a+1,s-(a+1)).split(","),g=1;switch(c){case"rgba":if(4!==h.length)return 3===h.length?f(e,+h[0],+h[1],+h[2],1):f(e,0,0,0,1);g=u(h.pop());case"rgb":return h.length>=3?(f(e,l(h[0]),l(h[1]),l(h[2]),3===h.length?g:u(h[3])),v(t,e),e):void f(e,0,0,0,1);case"hsla":return 4!==h.length?void f(e,0,0,0,1):(h[3]=u(h[3]),m(h,e),v(t,e),e);case"hsl":return 3!==h.length?void f(e,0,0,0,1):(m(h,e),v(t,e),e);default:return}}f(e,0,0,0,1)}else{if(4===o||5===o){var y=parseInt(r.slice(1,4),16);return y>=0&&y<=4095?(f(e,(3840&y)>>4|(3840&y)>>8,240&y|(240&y)>>4,15&y|(15&y)<<4,5===o?parseInt(r.slice(4),16)/15:1),v(t,e),e):void f(e,0,0,0,1)}if(7===o||9===o){y=parseInt(r.slice(1,7),16);return y>=0&&y<=16777215?(f(e,(16711680&y)>>16,(65280&y)>>8,255&y,9===o?parseInt(r.slice(7),16)/255:1),v(t,e),e):void f(e,0,0,0,1)}}}}function m(t,e){var n=(parseFloat(t[0])%360+360)%360/360,r=u(t[1]),i=u(t[2]),a=i<=.5?i*(r+1):i+r-i*r,s=2*i-a;return e=e||[],f(e,o(255*c(s,a,n+1/3)),o(255*c(s,a,n)),o(255*c(s,a,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function b(t){if(t){var e,n,r=t[0]/255,i=t[1]/255,o=t[2]/255,a=Math.min(r,i,o),s=Math.max(r,i,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var c=((s-r)/6+l/2)/l,h=((s-i)/6+l/2)/l,f=((s-o)/6+l/2)/l;r===s?e=f-h:i===s?e=1/3+c-f:o===s&&(e=2/3+h-c),e<0&&(e+=1),e>1&&(e-=1)}var d=[360*e,n,u];return null!=t[3]&&d.push(t[3]),d}}function _(t,e){var n=y(t);if(n){for(var r=0;r<3;r++)n[r]=e<0?n[r]*(1-e)|0:(255-n[r])*e+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return M(n,4===n.length?"rgba":"rgb")}}function x(t){var e=y(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function w(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var r=t*(e.length-1),i=Math.floor(r),a=Math.ceil(r),l=e[i],u=e[a],c=r-i;return n[0]=o(h(l[0],u[0],c)),n[1]=o(h(l[1],u[1],c)),n[2]=o(h(l[2],u[2],c)),n[3]=s(h(l[3],u[3],c)),n}}var S=w;function O(t,e,n){if(e&&e.length&&t>=0&&t<=1){var r=t*(e.length-1),i=Math.floor(r),a=Math.ceil(r),l=y(e[i]),u=y(e[a]),c=r-i,f=M([o(h(l[0],u[0],c)),o(h(l[1],u[1],c)),o(h(l[2],u[2],c)),s(h(l[3],u[3],c))],"rgba");return n?{color:f,leftIndex:i,rightIndex:a,value:r}:f}}var C=O;function k(t,e,n,r){var i=y(t);if(t)return i=b(i),null!=e&&(i[0]=a(e)),null!=n&&(i[1]=u(n)),null!=r&&(i[2]=u(r)),M(m(i),"rgba")}function A(t,e){var n=y(t);if(n&&null!=e)return n[3]=s(e),M(n,"rgba")}function M(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}function T(t,e){var n=y(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function I(){return M([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}},"41f6":function(t,e,n){},"428f":function(t,e,n){var r=n("da84");t.exports=r},4362:function(t,e,n){e.nextTick=function(t){var e=Array.prototype.slice.call(arguments);e.shift(),setTimeout((function(){t.apply(null,e)}),0)},e.platform=e.arch=e.execPath=e.title="browser",e.pid=1,e.browser=!0,e.env={},e.argv=[],e.binding=function(t){throw new Error("No such module. (Possibly not yet loaded)")},function(){var t,r="/";e.cwd=function(){return r},e.chdir=function(e){t||(t=n("df7c")),r=t.resolve(e,r)}}(),e.exit=e.kill=e.umask=e.dlopen=e.uptime=e.memoryUsage=e.uvCounters=function(){},e.features={}},"448a":function(t,e,n){var r=n("2236"),i=n("11b0"),o=n("6613"),a=n("0676");function s(t){return r(t)||i(t)||o(t)||a()}t.exports=s,t.exports.__esModule=!0,t.exports["default"]=t.exports},"44ad":function(t,e,n){var r=n("e330"),i=n("d039"),o=n("c6b6"),a=Object,s=r("".split);t.exports=i((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?s(t,""):a(t)}:a},"44d2":function(t,e,n){var r=n("b622"),i=n("7c73"),o=n("9bf2").f,a=r("unscopables"),s=Array.prototype;void 0==s[a]&&o(s,a,{configurable:!0,value:i(null)}),t.exports=function(t){s[a][t]=!0}},"44de":function(t,e,n){var r=n("da84");t.exports=function(t,e){var n=r.console;n&&n.error&&(1==arguments.length?n.error(t):n.error(t,e))}},"44e7":function(t,e,n){var r=n("861d"),i=n("c6b6"),o=n("b622"),a=o("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==i(t))}},4656:function(t,e,n){},"467f":function(t,e,n){"use strict";var r=n("2d83");t.exports=function(t,e,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},"46bb6":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.grid=f;var i=r(n("278c")),o=r(n("9523")),a=n("18ad"),s=n("5557"),l=n("9d85"),u=n("becb");function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){(0,o["default"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function f(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.grid;n=(0,u.deepMerge)((0,s.deepClone)(l.gridConfig,!0),n||{}),(0,a.doUpdate)({chart:t,series:[n],key:"grid",getGraphConfig:d})}function d(t,e){var n=t.animationCurve,r=t.animationFrame,i=t.rLevel,o=p(t,e),a=v(t);return e.chart.gridArea=h({},o),[{name:"rect",index:i,animationCurve:n,animationFrame:r,shape:o,style:a}]}function p(t,e){var n=(0,i["default"])(e.chart.render.area,2),r=n[0],o=n[1],a=g(t.left,r),s=g(t.right,r),l=g(t.top,o),u=g(t.bottom,o),c=r-a-s,h=o-l-u;return{x:a,y:l,w:c,h:h}}function g(t,e){return"number"===typeof t?t:"string"!==typeof t?0:e*parseInt(t)/100}function v(t){var e=t.style;return e}},"470c":function(t,e,n){},4738:function(t,e,n){var r=n("da84"),i=n("d256"),o=n("1626"),a=n("94ca"),s=n("8925"),l=n("b622"),u=n("6069"),c=n("6c59"),h=n("c430"),f=n("2d00"),d=i&&i.prototype,p=l("species"),g=!1,v=o(r.PromiseRejectionEvent),y=a("Promise",(function(){var t=s(i),e=t!==String(i);if(!e&&66===f)return!0;if(h&&(!d["catch"]||!d["finally"]))return!0;if(!f||f<51||!/native code/.test(t)){var n=new i((function(t){t(1)})),r=function(t){t((function(){}),(function(){}))},o=n.constructor={};if(o[p]=r,g=n.then((function(){}))instanceof r,!g)return!0}return!e&&(u||c)&&!v}));t.exports={CONSTRUCTOR:y,REJECTION_EVENT:v,SUBCLASSING:g}},4754:function(t,e){t.exports=function(t,e){return{value:t,done:e}}},4840:function(t,e,n){var r=n("825a"),i=n("5087"),o=n("7234"),a=n("b622"),s=a("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||o(n=r(a)[s])?e:i(n)}},"485a":function(t,e,n){var r=n("c65b"),i=n("1626"),o=n("861d"),a=TypeError;t.exports=function(t,e){var n,s;if("string"===e&&i(n=t.toString)&&!o(s=r(n,t)))return s;if(i(n=t.valueOf)&&!o(s=r(n,t)))return s;if("string"!==e&&i(n=t.toString)&&!o(s=r(n,t)))return s;throw a("Can't convert object to primitive value")}},"498a":function(t,e,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(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.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};e.gridConfig=r},"4a7b":function(t,e,n){"use strict";var r=n("c532");t.exports=function(t,e){e=e||{};var n={};function i(t,e){return r.isPlainObject(t)&&r.isPlainObject(e)?r.merge(t,e):r.isPlainObject(e)?r.merge({},e):r.isArray(e)?e.slice():e}function o(n){return r.isUndefined(e[n])?r.isUndefined(t[n])?void 0:i(void 0,t[n]):i(t[n],e[n])}function a(t){if(!r.isUndefined(e[t]))return i(void 0,e[t])}function s(n){return r.isUndefined(e[n])?r.isUndefined(t[n])?void 0:i(void 0,t[n]):i(void 0,e[n])}function l(n){return n in e?i(t[n],e[n]):n in t?i(void 0,t[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:l};return r.forEach(Object.keys(t).concat(Object.keys(e)),(function(t){var e=u[t]||o,i=e(t);r.isUndefined(i)&&e!==l||(n[t]=i)})),n}},"4b8b":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"4d20":function(t,e,n){var r=n("1917"),i=n("10db"),o=n("6ca1"),a=n("3397"),s=n("9c0e"),l=n("faf5"),u=Object.getOwnPropertyDescriptor;e.f=n("0bad")?u:function(t,e){if(t=o(t),e=a(e,!0),l)try{return u(t,e)}catch(n){}if(s(t,e))return i(!r.f.call(t,e),t[e])}},"4d63":function(t,e,n){var r=n("83ab"),i=n("da84"),o=n("e330"),a=n("94ca"),s=n("7156"),l=n("9112"),u=n("241c").f,c=n("3a9b"),h=n("44e7"),f=n("577e"),d=n("90d8"),p=n("9f7f"),g=n("aeb0"),v=n("cb2d"),y=n("d039"),m=n("1a2d"),b=n("69f3").enforce,_=n("2626"),x=n("b622"),w=n("fce3"),S=n("107c"),O=x("match"),C=i.RegExp,k=C.prototype,A=i.SyntaxError,M=o(k.exec),T=o("".charAt),I=o("".replace),E=o("".indexOf),P=o("".slice),j=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,L=/a/g,D=/a/g,R=new C(L)!==L,N=p.MISSED_STICKY,B=p.UNSUPPORTED_Y,F=r&&(!R||N||w||S||y((function(){return D[O]=!1,C(L)!=L||C(D)==D||"/a/i"!=C(L,"i")}))),z=function(t){for(var e,n=t.length,r=0,i="",o=!1;r<=n;r++)e=T(t,r),"\\"!==e?o||"."!==e?("["===e?o=!0:"]"===e&&(o=!1),i+=e):i+="[\\s\\S]":i+=e+T(t,++r);return i},V=function(t){for(var e,n=t.length,r=0,i="",o=[],a={},s=!1,l=!1,u=0,c="";r<=n;r++){if(e=T(t,r),"\\"===e)e+=T(t,++r);else if("]"===e)s=!1;else if(!s)switch(!0){case"["===e:s=!0;break;case"("===e:M(j,P(t,r+1))&&(r+=2,l=!0),i+=e,u++;continue;case">"===e&&l:if(""===c||m(a,c))throw new A("Invalid capture group name");a[c]=!0,o[o.length]=[c,u],l=!1,c="";continue}l?c+=e:i+=e}return[i,o]};if(a("RegExp",F)){for(var q=function(t,e){var n,r,i,o,a,u,p=c(k,this),g=h(t),v=void 0===e,y=[],m=t;if(!p&&g&&v&&t.constructor===q)return t;if((g||c(k,t))&&(t=t.source,v&&(e=d(m))),t=void 0===t?"":f(t),e=void 0===e?"":f(e),m=t,w&&"dotAll"in L&&(r=!!e&&E(e,"s")>-1,r&&(e=I(e,/s/g,""))),n=e,N&&"sticky"in L&&(i=!!e&&E(e,"y")>-1,i&&B&&(e=I(e,/y/g,""))),S&&(o=V(t),t=o[0],y=o[1]),a=s(C(t,e),p?this:k,q),(r||i||y.length)&&(u=b(a),r&&(u.dotAll=!0,u.raw=q(z(t),n)),i&&(u.sticky=!0),y.length&&(u.groups=y)),t!==m)try{l(a,"source",""===m?"(?:)":m)}catch(_){}return a},G=u(C),H=0;G.length>H;)g(q,C,G[H++]);k.constructor=q,q.prototype=k,v(i,"RegExp",q,{constructor:!0})}_("RegExp")},"4d64":function(t,e,n){var r=n("fc6a"),i=n("23cb"),o=n("07fa"),a=function(t){return function(e,n,a){var s,l=r(e),u=o(l),c=i(a,u);if(t&&n!=n){while(u>c)if(s=l[c++],s!=s)return!0}else for(;u>c;c++)if((t||c in l)&&l[c]===n)return t||c||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},"4d84":function(t,e,n){"use strict";const r=n("3d67").OrderedSet,i=n("34eb")("number-allocator:trace"),o=n("34eb")("number-allocator:error");function a(t,e){this.low=t,this.high=e}function s(t,e){if(!(this instanceof s))return new s(t,e);this.min=t,this.max=e,this.ss=new r([],(t,e)=>t.compare(e)),i("Create"),this.clear()}a.prototype.equals=function(t){return this.low===t.low&&this.high===t.high},a.prototype.compare=function(t){return this.low<t.low&&this.high<t.low?-1:t.low<this.low&&t.high<this.low?1:0},s.prototype.firstVacant=function(){return 0===this.ss.size()?null:this.ss.front().low},s.prototype.alloc=function(){if(0===this.ss.size())return i("alloc():empty"),null;const t=this.ss.begin(),e=t.pointer.low,n=t.pointer.high,r=e;return r+1<=n?this.ss.updateKeyByIterator(t,new a(e+1,n)):this.ss.eraseElementByPos(0),i("alloc():"+r),r},s.prototype.use=function(t){const e=new a(t,t),n=this.ss.lowerBound(e);if(!n.equals(this.ss.end())){const r=n.pointer.low,o=n.pointer.high;return n.pointer.equals(e)?(this.ss.eraseElementByIterator(n),i("use():"+t),!0):!(r>t)&&(r===t?(this.ss.updateKeyByIterator(n,new a(r+1,o)),i("use():"+t),!0):o===t?(this.ss.updateKeyByIterator(n,new a(r,o-1)),i("use():"+t),!0):(this.ss.updateKeyByIterator(n,new a(t+1,o)),this.ss.insert(new a(r,t-1)),i("use():"+t),!0))}return i("use():failed"),!1},s.prototype.free=function(t){if(t<this.min||t>this.max)return void o("free():"+t+" is out of range");const e=new a(t,t),n=this.ss.upperBound(e);if(n.equals(this.ss.end())){if(n.equals(this.ss.begin()))return void this.ss.insert(e);n.pre();const r=n.pointer.high,i=n.pointer.high;i+1===t?this.ss.updateKeyByIterator(n,new a(r,t)):this.ss.insert(e)}else if(n.equals(this.ss.begin()))if(t+1===n.pointer.low){const t=n.pointer.high-1,e=n.pointer.high;this.ss.updateKeyByIterator(n,new a(t,e))}else this.ss.insert(e);else{const r=n.pointer.low,i=n.pointer.high;n.pre();const o=n.pointer.low,s=n.pointer.high;if(s+1===t)if(t+1===r){this.ss.eraseElementByIterator(n);const t=n.pointer.high;this.ss.updateKeyByIterator(n,new a(o,t))}else this.ss.updateKeyByIterator(n,new a(o,t));else t+1===r?(this.ss.eraseElementByIterator(n.next()),this.ss.insert(new a(t,i))):this.ss.insert(e)}i("free():"+t)},s.prototype.clear=function(){i("clear()"),this.ss.clear(),this.ss.insert(new a(this.min,this.max))},s.prototype.intervalCount=function(){return this.ss.size()},s.prototype.dump=function(){console.log("length:"+this.ss.size());for(const t of this.ss)console.log(t)},t.exports=s},"4d88":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"4dae":function(t,e,n){var r=n("23cb"),i=n("07fa"),o=n("8418"),a=Array,s=Math.max;t.exports=function(t,e,n){for(var l=i(t),u=r(e,l),c=r(void 0===n?l:n,l),h=a(s(c-u,0)),f=0;u<c;u++,f++)o(h,f,t[u]);return h.length=f,h}},"4de4":function(t,e,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(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(t,e,n){"use strict";var r=n("0366"),i=n("c65b"),o=n("7b0b"),a=n("9bdd"),s=n("e95a"),l=n("68ee"),u=n("07fa"),c=n("8418"),h=n("9a1f"),f=n("35a1"),d=Array;t.exports=function(t){var e=o(t),n=l(this),p=arguments.length,g=p>1?arguments[1]:void 0,v=void 0!==g;v&&(g=r(g,p>2?arguments[2]:void 0));var y,m,b,_,x,w,S=f(e),O=0;if(!S||this===d&&s(S))for(y=u(e),m=n?new this(y):d(y);y>O;O++)w=v?g(e[O],O):e[O],c(m,O,w);else for(_=h(e,S),x=_.next,m=n?new this:[];!(b=i(x,_)).done;O++)w=v?a(_,g,[b.value,O],!0):b.value,c(m,O,w);return m.length=O,m}},"4e71":function(t,e,n){n("e198")("observable")},"4e82":function(t,e,n){"use strict";var r=n("23e7"),i=n("e330"),o=n("59ed"),a=n("7b0b"),s=n("07fa"),l=n("083a"),u=n("577e"),c=n("d039"),h=n("addb"),f=n("a640"),d=n("04d1"),p=n("d998"),g=n("2d00"),v=n("512ce"),y=[],m=i(y.sort),b=i(y.push),_=c((function(){y.sort(void 0)})),x=c((function(){y.sort(null)})),w=f("sort"),S=!c((function(){if(g)return g<70;if(!(d&&d>3)){if(p)return!0;if(v)return v<603;var t,e,n,r,i="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){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++)y.push({k:e+r,v:n})}for(y.sort((function(t,e){return e.v-t.v})),r=0;r<y.length;r++)e=y[r].k.charAt(0),i.charAt(i.length-1)!==e&&(i+=e);return"DGBEFHACIJK"!==i}})),O=_||!x||!w||!S,C=function(t){return function(e,n){return void 0===n?-1:void 0===e?1:void 0!==t?+t(e,n)||0:u(e)>u(n)?1:-1}};r({target:"Array",proto:!0,forced:O},{sort:function(t){void 0!==t&&o(t);var e=a(this);if(S)return void 0===t?m(e):m(e,t);var n,r,i=[],u=s(e);for(r=0;r<u;r++)r in e&&b(i,e[r]);h(i,C(t)),n=s(i),r=0;while(r<n)e[r]=i[r++];while(r<u)l(e,r++);return e}})},"4e86":function(t,e,n){},"4ea4":function(t,e){function n(t){return t&&t.__esModule?t:{default:t}}t.exports=n,t.exports.__esModule=!0,t.exports["default"]=t.exports},"4eb1":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.radar=g;var i=r(n("9523")),o=r(n("7037")),a=r(n("278c")),s=r(n("448a")),l=n("18ad"),u=n("9d85"),c=n("5557"),h=n("a870"),f=n("becb");function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){(0,i["default"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function g(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.series;n||(n=[]);var r=(0,f.initNeedSeries)(n,u.radarConfig,"radar");r=v(r,t),r=y(r,t),r=m(r,t),(0,l.doUpdate)({chart:t,series:r,key:"radar",getGraphConfig:b,getStartGraphConfig:_,beforeChange:S}),(0,l.doUpdate)({chart:t,series:r,key:"radarPoint",getGraphConfig:O,getStartGraphConfig:C}),(0,l.doUpdate)({chart:t,series:r,key:"radarLabel",getGraphConfig:M})}function v(t,e){var n=e.radarAxis;if(!n)return[];var r=n.indicator,i=n.axisLineAngles,o=n.radius,a=n.centerPos;return t.forEach((function(t){var e=t.data;t.dataRadius=[],t.radarPosition=r.map((function(n,r){var l=n.max,u=n.min,h=e[r];"number"!==typeof l&&(l=h),"number"!==typeof u&&(u=0),"number"!==typeof h&&(h=u);var f=(h-u)/(l-u)*o;return t.dataRadius[r]=f,c.getCircleRadianPoint.apply(void 0,(0,s["default"])(a).concat([f,i[r]]))}))})),t}function y(t,e){var n=e.radarAxis;if(!n)return[];var r=n.centerPos,i=n.axisLineAngles;return t.forEach((function(t){var e=t.dataRadius,n=t.label,o=n.labelGap;t.labelPosition=e.map((function(t,e){return c.getCircleRadianPoint.apply(void 0,(0,s["default"])(r).concat([t+o,i[e]]))}))})),t}function m(t,e){var n=e.radarAxis;if(!n)return[];var r=(0,a["default"])(n.centerPos,2),i=r[0],o=r[1];return t.forEach((function(t){var e=t.labelPosition,n=e.map((function(t){var e=(0,a["default"])(t,2),n=e[0],r=e[1],s=n>i?"left":"right",l=r>o?"top":"bottom";return{textAlign:s,textBaseline:l}}));t.labelAlign=n})),t}function b(t){var e=t.animationCurve,n=t.animationFrame,r=t.rLevel;return[{name:"polyline",index:r,animationCurve:e,animationFrame:n,shape:x(t),style:w(t)}]}function _(t,e){var n=e.chart.radarAxis.centerPos,r=b(t)[0],i=r.shape.points.length,o=new Array(i).fill(0).map((function(t){return(0,s["default"])(n)}));return r.shape.points=o,[r]}function x(t){var e=t.radarPosition;return{points:e,close:!0}}function w(t){var e=t.radarStyle,n=t.color,r=(0,h.getRgbaValue)(n);r[3]=.5;var i={stroke:n,fill:(0,h.getColorFromRgbValue)(r)};return(0,f.deepMerge)(i,e)}function S(t,e){var n=e.shape,r=t.shape.points,i=r.length,o=n.points.length;if(o>i){var a=r.slice(-1)[0],l=new Array(o-i).fill(0).map((function(t){return(0,s["default"])(a)}));r.push.apply(r,(0,s["default"])(l))}else o<i&&r.splice(o)}function O(t){var e=t.radarPosition,n=t.animationCurve,r=t.animationFrame,i=t.rLevel;return e.map((function(e,o){return{name:"circle",index:i,animationCurve:n,animationFrame:r,visible:t.point.show,shape:k(t,o),style:A(t,o)}}))}function C(t){var e=O(t);return e.forEach((function(t){return t.shape.r=.01})),e}function k(t,e){var n=t.radarPosition,r=t.point,i=r.radius,o=n[e];return{rx:o[0],ry:o[1],r:i}}function A(t,e){var n=t.point,r=t.color,i=n.style;return(0,f.deepMerge)({stroke:r},i)}function M(t){var e=t.labelPosition,n=t.animationCurve,r=t.animationFrame,i=t.rLevel;return e.map((function(e,o){return{name:"text",index:i,visible:t.label.show,animationCurve:n,animationFrame:r,shape:T(t,o),style:E(t,o)}}))}function T(t,e){var n=t.labelPosition,r=t.label,i=t.data,a=r.offset,s=r.formatter,l=I(n[e],a),u=i[e]?i[e].toString():"0",c=(0,o["default"])(s);return"string"===c&&(u=s.replace("{value}",u)),"function"===c&&(u=s(u)),{content:u,position:l}}function I(t,e){var n=(0,a["default"])(t,2),r=n[0],i=n[1],o=(0,a["default"])(e,2),s=o[0],l=o[1];return[r+s,i+l]}function E(t,e){var n=t.label,r=t.color,i=t.labelAlign,o=n.style,a=p({fill:r},i[e]);return(0,f.deepMerge)(a,o)}},"4eb5":function(t,e,n){var r=n("6981"),i={autoSetContainer:!1,appendToBody:!0},o={install:function(t){var e="3."===t.version.slice(0,2)?t.config.globalProperties:t.prototype;e.$clipboardConfig=i,e.$copyText=function(t,e){return new Promise((function(n,o){var a=document.createElement("button"),s=new r(a,{text:function(){return t},action:function(){return"copy"},container:"object"===typeof e?e:document.body});s.on("success",(function(t){s.destroy(),n(t)})),s.on("error",(function(t){s.destroy(),o(t)})),i.appendToBody&&document.body.appendChild(a),a.click(),i.appendToBody&&document.body.removeChild(a)}))},t.directive("clipboard",{bind:function(t,e,n){if("success"===e.arg)t._vClipboard_success=e.value;else if("error"===e.arg)t._vClipboard_error=e.value;else{var o=new r(t,{text:function(){return e.value},action:function(){return"cut"===e.arg?"cut":"copy"},container:i.autoSetContainer?t:void 0});o.on("success",(function(e){var n=t._vClipboard_success;n&&n(e)})),o.on("error",(function(e){var n=t._vClipboard_error;n&&n(e)})),t._vClipboard=o}},update:function(t,e){"success"===e.arg?t._vClipboard_success=e.value:"error"===e.arg?t._vClipboard_error=e.value:(t._vClipboard.text=function(){return e.value},t._vClipboard.action=function(){return"cut"===e.arg?"cut":"copy"})},unbind:function(t,e){t._vClipboard&&("success"===e.arg?delete t._vClipboard_success:"error"===e.arg?delete t._vClipboard_error:(t._vClipboard.destroy(),delete t._vClipboard))}})},config:i};t.exports=o},"4ebc":function(t,e,n){var r=n("4d88");t.exports=Array.isArray||function(t){return"Array"==r(t)}},"4fad":function(t,e,n){var r=n("d039"),i=n("861d"),o=n("c6b6"),a=n("d86b"),s=Object.isExtensible,l=r((function(){s(1)}));t.exports=l||a?function(t){return!!i(t)&&((!a||"ArrayBuffer"!=o(t))&&(!s||s(t)))}:s},5087:function(t,e,n){var r=n("68ee"),i=n("0d51"),o=TypeError;t.exports=function(t){if(r(t))return t;throw o(i(t)+" is not a constructor")}},"50c4":function(t,e,n){var r=n("5926"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},"511f":function(t,e,n){n("0b99"),n("658f"),t.exports=n("fcd4").f("iterator")},"512c":function(t,e,n){var r=n("ef08"),i=n("5524"),o=n("9c0c"),a=n("051b"),s=n("9c0e"),l="prototype",u=function(t,e,n){var c,h,f,d=t&u.F,p=t&u.G,g=t&u.S,v=t&u.P,y=t&u.B,m=t&u.W,b=p?i:i[e]||(i[e]={}),_=b[l],x=p?r:g?r[e]:(r[e]||{})[l];for(c in p&&(n=e),n)h=!d&&x&&void 0!==x[c],h&&s(b,c)||(f=h?x[c]:n[c],b[c]=p&&"function"!=typeof x[c]?n[c]:y&&h?o(f,r):m&&x[c]==f?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e[l]=t[l],e}(f):v&&"function"==typeof f?o(Function.call,f):f,v&&((b.virtual||(b.virtual={}))[c]=f,t&u.R&&_&&!_[c]&&a(_,c,f)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},"512ce":function(t,e,n){var r=n("342f"),i=r.match(/AppleWebKit\/(\d+)\./);t.exports=!!i&&+i[1]},"51e9":function(t,e,n){"use strict";const r=n("f214").Duplex,i=n("3fb5"),o=n("3301");function a(t){if(!(this instanceof a))return new a(t);if("function"===typeof t){this._callback=t;const e=function(t){this._callback&&(this._callback(t),this._callback=null)}.bind(this);this.on("pipe",(function(t){t.on("error",e)})),this.on("unpipe",(function(t){t.removeListener("error",e)})),t=null}o._init.call(this,t),r.call(this)}i(a,r),Object.assign(a.prototype,o.prototype),a.prototype._new=function(t){return new a(t)},a.prototype._write=function(t,e,n){this._appendBuffer(t),"function"===typeof n&&n()},a.prototype._read=function(t){if(!this.length)return this.push(null);t=Math.min(t,this.length),this.push(this.slice(0,t)),this.consume(t)},a.prototype.end=function(t){r.prototype.end.call(this,t),this._callback&&(this._callback(null,this.slice()),this._callback=null)},a.prototype._destroy=function(t,e){this._bufs.length=0,this.length=0,e(t)},a.prototype._isBufferList=function(t){return t instanceof a||t instanceof o||a.isBufferList(t)},a.isBufferList=o.isBufferList,t.exports=a,t.exports.BufferListStream=a,t.exports.BufferList=o},"51eb":function(t,e,n){"use strict";var r=n("825a"),i=n("485a"),o=TypeError;t.exports=function(t){if(r(this),"string"===t||"default"===t)t="string";else if("number"!==t)throw o("Incorrect hint");return i(this,t)}},5270:function(t,e,n){"use strict";var r=n("c532"),i=n("c401"),o=n("2e67"),a=n("2444"),s=n("7a77");function l(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new s("canceled")}t.exports=function(t){l(t),t.headers=t.headers||{},t.data=i.call(t,t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]}));var e=t.adapter||a.adapter;return e(t).then((function(e){return l(t),e.data=i.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return o(e)||(l(t),e&&e.response&&(e.response.data=i.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},5319:function(t,e,n){"use strict";var r=n("2ba4"),i=n("c65b"),o=n("e330"),a=n("d784"),s=n("d039"),l=n("825a"),u=n("1626"),c=n("7234"),h=n("5926"),f=n("50c4"),d=n("577e"),p=n("1d80"),g=n("8aa5"),v=n("dc4a"),y=n("0cb2"),m=n("14c3"),b=n("b622"),_=b("replace"),x=Math.max,w=Math.min,S=o([].concat),O=o([].push),C=o("".indexOf),k=o("".slice),A=function(t){return void 0===t?t:String(t)},M=function(){return"$0"==="a".replace(/./,"$0")}(),T=function(){return!!/./[_]&&""===/./[_]("a","$0")}(),I=!s((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}));a("replace",(function(t,e,n){var o=T?"$":"$0";return[function(t,n){var r=p(this),o=c(t)?void 0:v(t,_);return o?i(o,t,r,n):i(e,d(r),t,n)},function(t,i){var a=l(this),s=d(t);if("string"==typeof i&&-1===C(i,o)&&-1===C(i,"$<")){var c=n(e,a,s,i);if(c.done)return c.value}var p=u(i);p||(i=d(i));var v=a.global;if(v){var b=a.unicode;a.lastIndex=0}var _=[];while(1){var M=m(a,s);if(null===M)break;if(O(_,M),!v)break;var T=d(M[0]);""===T&&(a.lastIndex=g(s,f(a.lastIndex),b))}for(var I="",E=0,P=0;P<_.length;P++){M=_[P];for(var j=d(M[0]),L=x(w(h(M.index),s.length),0),D=[],R=1;R<M.length;R++)O(D,A(M[R]));var N=M.groups;if(p){var B=S([j],D,L,s);void 0!==N&&O(B,N);var F=d(r(i,void 0,B))}else F=y(j,s,L,D,N,i);L>=E&&(I+=k(s,E,L)+F,E=L+j.length)}return I+k(s,E)}]}),!I||!M||T)},"53a8":function(t,e){t.exports=r;var n=Object.prototype.hasOwnProperty;function r(){for(var t={},e=0;e<arguments.length;e++){var r=arguments[e];for(var i in r)n.call(r,i)&&(t[i]=r[i])}return t}},"53ca":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0");function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}},5524:function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},5530:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));n("b64b"),n("a4d3"),n("4de4"),n("d3b7"),n("e439"),n("14d9"),n("159b"),n("dbb4");var r=n("ade3");function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){Object(r["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}},5557:function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.deepClone=p,e.eliminateBlur=g,e.checkPointIsInCircle=v,e.getTwoPointDistance=y,e.checkPointIsInPolygon=m,e.checkPointIsInSector=b,e.checkPointIsNearPolyline=x,e.checkPointIsInRect=w,e.getRotatePointPos=S,e.getScalePointPos=O,e.getTranslatePointPos=C,e.getDistanceBetweenPointAndLine=k,e.getCircleRadianPoint=A,e.getRegularPolygonPoints=M,e["default"]=void 0;var i=r(n("448a")),o=r(n("278c")),a=r(n("7037")),s=Math.abs,l=Math.sqrt,u=Math.sin,c=Math.cos,h=Math.max,f=Math.min,d=Math.PI;function p(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t)return t;var n=JSON.parse,r=JSON.stringify;if(!e)return n(r(t));var i=t instanceof Array?[]:{};if(t&&"object"===(0,a["default"])(t))for(var o in t)t.hasOwnProperty(o)&&(t[o]&&"object"===(0,a["default"])(t[o])?i[o]=p(t[o],!0):i[o]=t[o]);return i}function g(t){return t.map((function(t){var e=(0,o["default"])(t,2),n=e[0],r=e[1];return[parseInt(n)+.5,parseInt(r)+.5]}))}function v(t,e,n,r){return y(t,[e,n])<=r}function y(t,e){var n=(0,o["default"])(t,2),r=n[0],i=n[1],a=(0,o["default"])(e,2),u=a[0],c=a[1],h=s(r-u),f=s(i-c);return l(h*h+f*f)}function m(t,e){for(var n=0,r=(0,o["default"])(t,2),i=r[0],a=r[1],s=e.length,l=1,u=e[0];l<=s;l++){var c=e[l%s];if(i>f(u[0],c[0])&&i<=h(u[0],c[0])&&a<=h(u[1],c[1])&&u[0]!==c[0]){var d=(i-u[0])*(c[1]-u[1])/(c[0]-u[0])+u[1];(u[1]===c[1]||a<=d)&&n++}u=c}return n%2===1}function b(t,e,n,r,i,a,s){if(!t)return!1;if(y(t,[e,n])>r)return!1;if(!s){var l=p([a,i]),u=(0,o["default"])(l,2);i=u[0],a=u[1]}var c=i>a;if(c){var h=[a,i];i=h[0],a=h[1]}var f=a-i;if(f>=2*d)return!0;var g=(0,o["default"])(t,2),v=g[0],m=g[1],b=A(e,n,r,i),x=(0,o["default"])(b,2),w=x[0],S=x[1],O=A(e,n,r,a),C=(0,o["default"])(O,2),k=C[0],M=C[1],T=[v-e,m-n],I=[w-e,S-n],E=[k-e,M-n],P=f>d;if(P){var j=p([E,I]),L=(0,o["default"])(j,2);I=L[0],E=L[1]}var D=_(I,T)&&!_(E,T);return P&&(D=!D),c&&(D=!D),D}function _(t,e){var n=(0,o["default"])(t,2),r=n[0],i=n[1],a=(0,o["default"])(e,2),s=a[0],l=a[1];return-i*s+r*l>0}function x(t,e,n){var r=n/2,a=e.map((function(t){var e=(0,o["default"])(t,2),n=e[0],i=e[1];return[n,i-r]})),s=e.map((function(t){var e=(0,o["default"])(t,2),n=e[0],i=e[1];return[n,i+r]})),l=[].concat((0,i["default"])(a),(0,i["default"])(s.reverse()));return m(t,l)}function w(t,e,n,r,i){var a=(0,o["default"])(t,2),s=a[0],l=a[1];return!(s<e)&&(!(l<n)&&(!(s>e+r)&&!(l>n+i)))}function S(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[0,0];if(!e)return!1;if(t%360===0)return e;var r=(0,o["default"])(e,2),i=r[0],a=r[1],s=(0,o["default"])(n,2),l=s[0],h=s[1];return t*=d/180,[(i-l)*c(t)-(a-h)*u(t)+l,(i-l)*u(t)+(a-h)*c(t)+h]}function O(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[1,1],e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[0,0];if(!e)return!1;if(1===t)return e;var r=(0,o["default"])(e,2),i=r[0],a=r[1],s=(0,o["default"])(n,2),l=s[0],u=s[1],c=(0,o["default"])(t,2),h=c[0],f=c[1],d=i-l,p=a-u;return[d*h+l,p*f+u]}function C(t,e){if(!t||!e)return!1;var n=(0,o["default"])(e,2),r=n[0],i=n[1],a=(0,o["default"])(t,2),s=a[0],l=a[1];return[r+s,i+l]}function k(t,e,n){if(!t||!e||!n)return!1;var r=(0,o["default"])(t,2),i=r[0],a=r[1],u=(0,o["default"])(e,2),c=u[0],h=u[1],f=(0,o["default"])(n,2),d=f[0],p=f[1],g=p-h,v=c-d,y=h*(d-c)-c*(p-h),m=s(g*i+v*a+y),b=l(g*g+v*v);return m/b}function A(t,e,n,r){return[t+c(r)*n,e+u(r)*n]}function M(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-.5*d,o=2*d/r,a=new Array(r).fill("").map((function(t,e){return e*o+i}));return a.map((function(r){return A(t,e,n,r)}))}var T={deepClone:p,eliminateBlur:g,checkPointIsInCircle:v,checkPointIsInPolygon:m,checkPointIsInSector:b,checkPointIsNearPolyline:x,getTwoPointDistance:y,getRotatePointPos:S,getScalePointPos:O,getTranslatePointPos:C,getCircleRadianPoint:A,getRegularPolygonPoints:M,getDistanceBetweenPointAndLine:k};e["default"]=T},"566b":function(t,e,n){var r=n("d633");function i(t){var e=function(){return e.called?e.value:(e.called=!0,e.value=t.apply(this,arguments))};return e.called=!1,e}function o(t){var e=function(){if(e.called)throw new Error(e.onceError);return e.called=!0,e.value=t.apply(this,arguments)},n=t.name||"Function wrapped with `once`";return e.onceError=n+" shouldn't be called more than once",e.called=!1,e}t.exports=r(i),t.exports.strict=r(o),i.proto=i((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return i(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return o(this)},configurable:!0})}))},5692:function(t,e,n){var r=n("c430"),i=n("c6cd");(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.25.3",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.25.3/LICENSE",source:"https://github.com/zloirock/core-js"})},"56ef":function(t,e,n){var r=n("d066"),i=n("e330"),o=n("241c"),a=n("7418"),s=n("825a"),l=i([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(s(t)),n=a.f;return n?l(e,n(t)):e}},"577e":function(t,e,n){var r=n("f5df"),i=String;t.exports=function(t){if("Symbol"===r(t))throw TypeError("Cannot convert a Symbol value to a string");return i(t)}},"57b9":function(t,e,n){var r=n("c65b"),i=n("d066"),o=n("b622"),a=n("cb2d");t.exports=function(){var t=i("Symbol"),e=t&&t.prototype,n=e&&e.valueOf,s=o("toPrimitive");e&&!e[s]&&a(e,s,(function(t){return r(n,this)}),{arity:1})}},5899:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},"58a8":function(t,e,n){var r=n("e330"),i=n("1d80"),o=n("577e"),a=n("5899"),s=r("".replace),l="["+a+"]",u=RegExp("^"+l+l+"*"),c=RegExp(l+l+"*$"),h=function(t){return function(e){var n=o(i(e));return 1&t&&(n=s(n,u,"")),2&t&&(n=s(n,c,"")),n}};t.exports={start:h(1),end:h(2),trim:h(3)}},"58ca":function(t,e,n){"use strict";(function(t){var r=n("2554"),i=n.n(r),o="2.4.0";function a(t){return a="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t){return h(t)||f(t)||d(t)||g()}function h(t){if(Array.isArray(t))return p(t)}function f(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function d(t,e){if(t){if("string"===typeof t)return p(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(t,e):void 0}}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function g(){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 v(t,e){var n;if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=d(t))||e&&t&&"number"===typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},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=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function y(t){return Array.isArray(t)}function m(t){return"undefined"===typeof t}function b(t){return"object"===a(t)}function _(t){return"object"===a(t)&&null!==t}function x(t){return"function"===typeof t}function w(t){return"string"===typeof t}function S(){try{return!m(window)}catch(t){return!1}}var O=S(),C=O?window:t,k=C.console||{};function A(t){k&&k.warn&&k.warn(t)}var M=function(){return A("This vue app/component has no vue-meta configuration")},T={title:void 0,titleChunk:"",titleTemplate:"%s",htmlAttrs:{},bodyAttrs:{},headAttrs:{},base:[],link:[],meta:[],style:[],script:[],noscript:[],__dangerouslyDisableSanitizers:[],__dangerouslyDisableSanitizersByTagID:{}},I="_vueMeta",E="metaInfo",P="data-vue-meta",j="data-vue-meta-server-rendered",L="vmid",D="template",R="content",N="ssr",B=10,F=!0,z={keyName:E,attribute:P,ssrAttribute:j,tagIDKeyName:L,contentKeyName:R,metaTemplateKeyName:D,waitOnDestroyed:F,debounceWait:B,ssrAppId:N},V=Object.keys(T),q=[V[12],V[13]],G=[V[1],V[2],"changed"].concat(q),H=[V[3],V[4],V[5]],W=["link","style","script"],U=["base","meta","link"],$=["noscript","script","style"],Y=["innerHTML","cssText","json"],X=["once","skip","template"],K=["body","pbody"],Z=["allowfullscreen","amp","amp-boilerplate","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"],Q=null;function J(t,e,n){var r=t.debounceWait;e[I].initialized||!e[I].initializing&&"watcher"!==n||(e[I].initialized=null),e[I].initialized&&!e[I].pausing&&tt((function(){e.$meta().refresh()}),r)}function tt(t,e){if(e=void 0===e?10:e,e)return clearTimeout(Q),Q=setTimeout((function(){t()}),e),Q;t()}function et(t,e,n){if(Array.prototype.find)return t.find(e,n);for(var r=0;r<t.length;r++)if(e.call(n,t[r],r,t))return t[r]}function nt(t,e,n){if(!Array.prototype.findIndex){for(var r=0;r<t.length;r++)if(e.call(n,t[r],r,t))return r;return-1}return t.findIndex(e,n)}function rt(t){return Array.from?Array.from(t):Array.prototype.slice.call(t)}function it(t,e){if(!Array.prototype.includes){for(var n in t)if(t[n]===e)return!0;return!1}return t.includes(e)}var ot=function(t,e){return(e||document).querySelectorAll(t)};function at(t,e){return t[e]||(t[e]=document.getElementsByTagName(e)[0]),t[e]}function st(t){var e=t.body,n=t.pbody;return e?"body":n?"pbody":"head"}function lt(t,e,n){var r=e.appId,i=e.attribute,o=e.type,a=e.tagIDKeyName;n=n||{};var s=["".concat(o,"[").concat(i,'="').concat(r,'"]'),"".concat(o,"[data-").concat(a,"]")].map((function(t){for(var e in n){var r=n[e],i=r&&!0!==r?'="'.concat(r,'"'):"";t+="[data-".concat(e).concat(i,"]")}return t}));return rt(ot(s.join(", "),t))}function ut(t,e){var n=t.attribute;rt(ot("[".concat(n,'="').concat(e,'"]'))).map((function(t){return t.remove()}))}function ct(t,e){t.removeAttribute(e)}function ht(t){return t=t||this,t&&(!0===t[I]||b(t[I]))}function ft(t){return t=t||this,t&&!m(t[I])}function dt(t,e){return t[I].pausing=!0,function(){return pt(t,e)}}function pt(t,e){if(t[I].pausing=!1,e||void 0===e)return t.$meta().refresh()}function gt(t){var e=t.$router;!t[I].navGuards&&e&&(t[I].navGuards=!0,e.beforeEach((function(e,n,r){dt(t),r()})),e.afterEach((function(){t.$nextTick((function(){var e=pt(t),n=e.metaInfo;n&&x(n.afterNavigation)&&n.afterNavigation(n)}))})))}var vt=1;function yt(t,e){var n=["activated","deactivated","beforeMount"],r=!1;return{beforeCreate:function(){var i=this,o="$root",a=this[o],s=this.$options,l=t.config.devtools;if(Object.defineProperty(this,"_hasMetaInfo",{configurable:!0,get:function(){return l&&!a[I].deprecationWarningShown&&(A("VueMeta DeprecationWarning: _hasMetaInfo has been deprecated and will be removed in a future version. Please use hasMetaInfo(vm) instead"),a[I].deprecationWarningShown=!0),ht(this)}}),this===a&&a.$once("hook:beforeMount",(function(){if(r=this.$el&&1===this.$el.nodeType&&this.$el.hasAttribute("data-server-rendered"),!r&&a[I]&&1===a[I].appId){var t=at({},"html");r=t&&t.hasAttribute(e.ssrAttribute)}})),!m(s[e.keyName])&&null!==s[e.keyName]){if(a[I]||(a[I]={appId:vt},vt++,l&&a.$options[e.keyName]&&this.$nextTick((function(){var t=et(a.$children,(function(t){return t.$vnode&&t.$vnode.fnOptions}));t&&t.$vnode.fnOptions[e.keyName]&&A("VueMeta has detected a possible global mixin which adds a ".concat(e.keyName," property to all Vue components on the page. This could cause severe performance issues. If possible, use $meta().addApp to add meta information instead"))}))),!this[I]){this[I]=!0;var u=this.$parent;while(u&&u!==a)m(u[I])&&(u[I]=!1),u=u.$parent}x(s[e.keyName])&&(s.computed=s.computed||{},s.computed.$metaInfo=s[e.keyName],this.$isServer||this.$on("hook:created",(function(){this.$watch("$metaInfo",(function(){J(e,this[o],"watcher")}))}))),m(a[I].initialized)&&(a[I].initialized=this.$isServer,a[I].initialized||(a[I].initializedSsr||(a[I].initializedSsr=!0,this.$on("hook:beforeMount",(function(){var t=this[o];r&&(t[I].appId=e.ssrAppId)}))),this.$on("hook:mounted",(function(){var t=this[o];t[I].initialized||(t[I].initializing=!0,this.$nextTick((function(){var n=t.$meta().refresh(),r=n.tags,i=n.metaInfo;!1===r&&null===t[I].initialized&&this.$nextTick((function(){return J(e,t,"init")})),t[I].initialized=!0,delete t[I].initializing,!e.refreshOnceOnNavigation&&i.afterNavigation&>(t)})))})),e.refreshOnceOnNavigation&>(a))),this.$on("hook:destroyed",(function(){var t=this;this.$parent&&ht(this)&&(delete this._hasMetaInfo,this.$nextTick((function(){if(e.waitOnDestroyed&&t.$el&&t.$el.offsetParent)var n=setInterval((function(){t.$el&&null!==t.$el.offsetParent||(clearInterval(n),J(e,t.$root,"destroyed"))}),50);else J(e,t.$root,"destroyed")})))})),this.$isServer||n.forEach((function(t){i.$on("hook:".concat(t),(function(){J(e,this[o],t)}))}))}}}}function mt(t){return t=b(t)?t:{},{keyName:t["keyName"]||z.keyName,attribute:t["attribute"]||z.attribute,ssrAttribute:t["ssrAttribute"]||z.ssrAttribute,tagIDKeyName:t["tagIDKeyName"]||z.tagIDKeyName,contentKeyName:t["contentKeyName"]||z.contentKeyName,metaTemplateKeyName:t["metaTemplateKeyName"]||z.metaTemplateKeyName,debounceWait:m(t["debounceWait"])?z.debounceWait:t["debounceWait"],waitOnDestroyed:m(t["waitOnDestroyed"])?z.waitOnDestroyed:t["waitOnDestroyed"],ssrAppId:t["ssrAppId"]||z.ssrAppId,refreshOnceOnNavigation:!!t["refreshOnceOnNavigation"]}}function bt(t){var e={};for(var n in t)e[n]=t[n];return e}function _t(t,e){return e&&b(t)?(y(t[e])||(t[e]=[]),t):y(t)?t:[]}var xt=[[/&/g,"&"],[/</g,"<"],[/>/g,">"],[/"/g,"""],[/'/g,"'"]],wt=[[/&/g,"&"],[/</g,"<"],[/>/g,">"],[/"/g,'"'],[/'/g,"'"]];function St(t,e,n,r){var i=e.tagIDKeyName,o=n.doEscape,a=void 0===o?function(t){return t}:o,s={};for(var l in t){var u=t[l];if(it(G,l))s[l]=u;else{var c=q[0];if(n[c]&&it(n[c],l))s[l]=u;else{var h=t[i];if(h&&(c=q[1],n[c]&&n[c][h]&&it(n[c][h],l)))s[l]=u;else if(w(u)?s[l]=a(u):y(u)?s[l]=u.map((function(t){return _(t)?St(t,e,n,!0):a(t)})):_(u)?s[l]=St(u,e,n,!0):s[l]=u,r){var f=a(l);l!==f&&(s[f]=s[l],delete s[l])}}}}return s}function Ot(t,e,n){n=n||[];var r={doEscape:function(t){return n.reduce((function(t,e){return t.replace(e[0],e[1])}),t)}};return q.forEach((function(t,n){if(0===n)_t(e,t);else if(1===n)for(var i in e[t])_t(e[t],i);r[t]=e[t]})),St(e,t,r)}function Ct(t,e,n,r){var i=t.component,o=t.metaTemplateKeyName,a=t.contentKeyName;return!0!==n&&!0!==e[o]&&(m(n)&&e[o]&&(n=e[o],e[o]=!0),n?(m(r)&&(r=e[a]),e[a]=x(n)?n.call(i,r):n.replace(/%s/g,r),!0):(delete e[o],!1))}function kt(t,e,n){var r=t.component,i=t.tagIDKeyName,o=t.metaTemplateKeyName,a=t.contentKeyName,s=[];return e.length||n.length?(e.forEach((function(t,e){if(t[i]){var l=nt(n,(function(e){return e[i]===t[i]})),u=n[l];if(-1!==l){if(a in u&&void 0===u[a]||"innerHTML"in u&&void 0===u.innerHTML)return s.push(t),void n.splice(l,1);if(null!==u[a]&&null!==u.innerHTML){var c=t[o];if(c){var h=u[o];if(!h)return Ct({component:r,metaTemplateKeyName:o,contentKeyName:a},u,c),void(u.template=!0);u[a]||Ct({component:r,metaTemplateKeyName:o,contentKeyName:a},u,void 0,t[a])}}else n.splice(l,1)}else s.push(t)}else s.push(t)})),s.concat(n)):s}var At=!1;function Mt(t,e,n){return n=n||{},void 0===e.title&&delete e.title,H.forEach((function(t){if(e[t])for(var n in e[t])n in e[t]&&void 0===e[t][n]&&(it(Z,n)&&!At&&(A("VueMeta: Please note that since v2 the value undefined is not used to indicate boolean attributes anymore, see migration guide for details"),At=!0),delete e[t][n])})),i()(t,e,{arrayMerge:function(t,e){return kt(n,t,e)}})}function Tt(t,e){return It(t||{},e,T)}function It(t,e,n){if(n=n||{},e._inactive)return n;t=t||{};var r=t,i=r.keyName,o=e.$metaInfo,a=e.$options,s=e.$children;if(a[i]){var l=o||a[i];b(l)&&(n=Mt(n,l,t))}return s.length&&s.forEach((function(e){ft(e)&&(n=It(t,e,n))})),n}var Et=[];function Pt(t){return"complete"===(t||document).readyState}function jt(t,e){1===arguments.length&&(e=t,t=""),Et.push([t,e])}function Lt(t,e,n,r){var i=t.tagIDKeyName,o=!1;return n.forEach((function(t){t[i]&&t.callback&&(o=!0,jt("".concat(e,"[data-").concat(i,'="').concat(t[i],'"]'),t.callback))})),r&&o?Dt():o}function Dt(){Pt()?Rt():document.onreadystatechange=function(){Rt()}}function Rt(t){Et.forEach((function(e){var n=e[0],r=e[1],i="".concat(n,'[onload="this.__vm_l=1"]'),o=[];t||(o=rt(ot(i))),t&&t.matches(i)&&(o=[t]),o.forEach((function(t){if(!t.__vm_cb){var e=function(){t.__vm_cb=!0,ct(t,"onload"),r(t)};t.__vm_l?e():t.__vm_ev||(t.__vm_ev=!0,t.addEventListener("load",e))}}))}))}var Nt,Bt={};function Ft(t,e,n,r,i){var o=e||{},a=o.attribute,s=i.getAttribute(a);s&&(Bt[n]=JSON.parse(decodeURI(s)),ct(i,a));var l=Bt[n]||{},u=[];for(var c in l)void 0!==l[c]&&t in l[c]&&(u.push(c),r[c]||delete l[c][t]);for(var h in r){var f=l[h];f&&f[t]===r[h]||(u.push(h),void 0!==r[h]&&(l[h]=l[h]||{},l[h][t]=r[h]))}for(var d=0,p=u;d<p.length;d++){var g=p[d],v=l[g],y=[];for(var m in v)Array.prototype.push.apply(y,[].concat(v[m]));if(y.length){var b=it(Z,g)&&y.some(Boolean)?"":y.filter((function(t){return void 0!==t})).join(" ");i.setAttribute(g,b)}else ct(i,g)}Bt[n]=l}function zt(t){(t||""===t)&&(document.title=t)}function Vt(t,e,n,r,i,o){var a=e||{},s=a.attribute,l=a.tagIDKeyName,u=K.slice();u.push(l);var c=[],h={appId:t,attribute:s,type:n,tagIDKeyName:l},f={head:lt(i,h),pbody:lt(o,h,{pbody:!0}),body:lt(o,h,{body:!0})};if(r.length>1){var d=[];r=r.filter((function(t){var e=JSON.stringify(t),n=!it(d,e);return d.push(e),n}))}r.forEach((function(e){if(!e.skip){var r=document.createElement(n);e.once||r.setAttribute(s,t),Object.keys(e).forEach((function(t){if(!it(X,t))if("innerHTML"!==t)if("json"!==t)if("cssText"!==t)if("callback"!==t){var n=it(u,t)?"data-".concat(t):t,i=it(Z,t);if(!i||e[t]){var o=i?"":e[t];r.setAttribute(n,o)}}else r.onload=function(){return e[t](r)};else r.styleSheet?r.styleSheet.cssText=e.cssText:r.appendChild(document.createTextNode(e.cssText));else r.innerHTML=JSON.stringify(e.json);else r.innerHTML=e.innerHTML}));var i,o=f[st(e)],a=o.some((function(t,e){return i=e,r.isEqualNode(t)}));a&&(i||0===i)?o.splice(i,1):c.push(r)}}));var p=[];for(var g in f)Array.prototype.push.apply(p,f[g]);return p.forEach((function(t){t.parentNode.removeChild(t)})),c.forEach((function(t){t.hasAttribute("data-body")?o.appendChild(t):t.hasAttribute("data-pbody")?o.insertBefore(t,o.firstChild):i.appendChild(t)})),{oldTags:p,newTags:c}}function qt(t,e,n){e=e||{};var r=e,i=r.ssrAttribute,o=r.ssrAppId,a={},s=at(a,"html");if(t===o&&s.hasAttribute(i)){ct(s,i);var l=!1;return W.forEach((function(t){n[t]&&Lt(e,t,n[t])&&(l=!0)})),l&&Dt(),!1}var u={},c={};for(var h in n)if(!it(G,h))if("title"!==h){if(it(H,h)){var f=h.substr(0,4);Ft(t,e,h,n[h],at(a,f))}else if(y(n[h])){var d=Vt(t,e,h,n[h],at(a,"head"),at(a,"body")),p=d.oldTags,g=d.newTags;g.length&&(u[h]=g,c[h]=p)}}else zt(n.title);return{tagsAdded:u,tagsRemoved:c}}function Gt(t,e,n){return{set:function(r){return Ht(t,e,n,r)},remove:function(){return Wt(t,e,n)}}}function Ht(t,e,n,r){if(t&&t.$el)return qt(e,n,r);Nt=Nt||{},Nt[e]=r}function Wt(t,e,n){if(t&&t.$el){var r,i={},o=v(H);try{for(o.s();!(r=o.n()).done;){var a=r.value,s=a.substr(0,4);Ft(e,n,a,{},at(i,s))}}catch(l){o.e(l)}finally{o.f()}return ut(n,e)}Nt[e]&&(delete Nt[e],$t())}function Ut(){return Nt}function $t(t){!t&&Object.keys(Nt).length||(Nt=void 0)}function Yt(t,e,n,r){t=t||{},n=n||[];var i=t,o=i.tagIDKeyName;return e.title&&(e.titleChunk=e.title),e.titleTemplate&&"%s"!==e.titleTemplate&&Ct({component:r,contentKeyName:"title"},e,e.titleTemplate,e.titleChunk||""),e.base&&(e.base=Object.keys(e.base).length?[e.base]:[]),e.meta&&(e.meta=e.meta.filter((function(t,e,n){var r=!!t[o];if(!r)return!0;var i=e===nt(n,(function(e){return e[o]===t[o]}));return i})),e.meta.forEach((function(e){return Ct(t,e)}))),Ot(t,e,n)}function Xt(t,e){if(e=e||{},!t[I])return M(),{};var n=Tt(e,t),r=Yt(e,n,wt,t),i=t[I].appId,o=qt(i,e,r);o&&x(r.changed)&&(r.changed(r,o.tagsAdded,o.tagsRemoved),o={addedTags:o.tagsAdded,removedTags:o.tagsRemoved});var a=Ut();if(a){for(var s in a)qt(s,e,a[s]),delete a[s];$t(!0)}return{vm:t,metaInfo:r,tags:o}}function Kt(t,e,n,r){var i=r.addSsrAttribute,o=t||{},a=o.attribute,s=o.ssrAttribute,l="";for(var u in n){var h=n[u],f=[];for(var d in h)f.push.apply(f,c([].concat(h[d])));f.length&&(l+=Z.includes(u)&&f.some(Boolean)?"".concat(u):"".concat(u,'="').concat(f.join(" "),'"'),l+=" ")}return l&&(l+="".concat(a,'="').concat(encodeURI(JSON.stringify(n)),'"')),"htmlAttrs"===e&&i?"".concat(s).concat(l?" ":"").concat(l):l}function Zt(t,e,n,r){var i=r||{},o=i.ln;return n?"<".concat(e,">").concat(n,"</").concat(e,">").concat(o?"\n":""):""}function Qt(t,e,n,r){var i=t||{},o=i.ssrAppId,a=i.attribute,s=i.tagIDKeyName,l=r||{},u=l.appId,h=l.isSSR,f=void 0===h||h,d=l.body,p=void 0!==d&&d,g=l.pbody,v=void 0!==g&&g,y=l.ln,m=void 0!==y&&y,b=[s].concat(c(K));return n&&n.length?n.reduce((function(t,n){if(n.skip)return t;var r=Object.keys(n);if(0===r.length)return t;if(Boolean(n.body)!==p||Boolean(n.pbody)!==v)return t;var i=n.once?"":" ".concat(a,'="').concat(u||(!1===f?"1":o),'"');for(var s in n)if(!Y.includes(s)&&!X.includes(s))if("callback"!==s){var l="";b.includes(s)&&(l="data-");var c=!l&&Z.includes(s);c&&!n[s]||(i+=" ".concat(l).concat(s)+(c?"":'="'.concat(n[s],'"')))}else i+=' onload="this.__vm_l=1"';var h="";n.json&&(h=JSON.stringify(n.json));var d=n.innerHTML||n.cssText||h,g=!U.includes(e),y=g&&$.includes(e);return"".concat(t,"<").concat(e).concat(i).concat(!y&&g?"/":"",">")+(y?"".concat(d,"</").concat(e,">"):"")+(m?"\n":"")}),""):""}function Jt(t,e,n){var r={data:e,extraData:void 0,addInfo:function(t,e){this.extraData=this.extraData||{},this.extraData[t]=e},callInjectors:function(t){var e=this.injectors;return(t.body||t.pbody?"":e.title.text(t))+e.meta.text(t)+e.base.text(t)+e.link.text(t)+e.style.text(t)+e.script.text(t)+e.noscript.text(t)},injectors:{head:function(t){return r.callInjectors(u(u({},n),{},{ln:t}))},bodyPrepend:function(t){return r.callInjectors(u(u({},n),{},{ln:t,pbody:!0}))},bodyAppend:function(t){return r.callInjectors(u(u({},n),{},{ln:t,body:!0}))}}},i=function(e){if(G.includes(e))return"continue";r.injectors[e]={text:function(i){var o=!0===i;if(i=u(u({addSsrAttribute:o},n),i),"title"===e)return Zt(t,e,r.data[e],i);if(H.includes(e)){var a={},l=r.data[e];if(l){var c=!1===i.isSSR?"1":t.ssrAppId;for(var h in l)a[h]=s({},c,l[h])}if(r.extraData)for(var f in r.extraData){var d=r.extraData[f][e];if(d)for(var p in d)a[p]=u(u({},a[p]),{},s({},f,d[p]))}return Kt(t,e,a,i)}var g=Qt(t,e,r.data[e],i);if(r.extraData)for(var v in r.extraData){var y=r.extraData[v][e],m=Qt(t,e,y,u({appId:v},i));g="".concat(g).concat(m)}return g}}};for(var o in T)i(o);return r}function te(t,e,n){if(!t[I])return M(),{};var r=Tt(e,t),i=Yt(e,r,xt,t),o=Jt(e,i,n),a=Ut();if(a){for(var s in a)o.addInfo(s,a[s]),delete a[s];$t(!0)}return o.injectors}function ee(t){t=t||{};var e=this.$root;return{getOptions:function(){return bt(t)},setOptions:function(n){var r="refreshOnceOnNavigation";n&&n[r]&&(t.refreshOnceOnNavigation=!!n[r],gt(e));var i="debounceWait";if(n&&i in n){var o=parseInt(n[i]);isNaN(o)||(t.debounceWait=o)}var a="waitOnDestroyed";n&&a in n&&(t.waitOnDestroyed=!!n[a])},refresh:function(){return Xt(e,t)},inject:function(n){return te(e,t,n)},pause:function(){return dt(e)},resume:function(){return pt(e)},addApp:function(n){return Gt(e,n,t)}}}function ne(t,e){e=mt(e);var n=Yt(e,t,xt),r=Jt(e,n);return r.injectors}function re(t,e){t.__vuemeta_installed||(t.__vuemeta_installed=!0,e=mt(e),t.prototype.$meta=function(){return ee.call(this,e)},t.mixin(yt(t,e)))}var ie={version:o,install:re,generate:function(t,e){return ne(t,e)},hasMetaInfo:ht};e["a"]=ie}).call(this,n("c8ba"))},5926:function(t,e,n){var r=n("b42e");t.exports=function(t){var e=+t;return e!==e||0===e?0:r(e)}},"597f":function(t,e){t.exports=function(t,e,n,r){var i,o=0;function a(){var a=this,s=Number(new Date)-o,l=arguments;function u(){o=Number(new Date),n.apply(a,l)}function c(){i=void 0}r&&!i&&u(),i&&clearTimeout(i),void 0===r&&s>t?u():!0!==e&&(i=setTimeout(r?c:u,void 0===r?t-s:t))}return"boolean"!==typeof e&&(r=n,n=e,e=void 0),a}},"59ed":function(t,e,n){var r=n("1626"),i=n("0d51"),o=TypeError;t.exports=function(t){if(r(t))return t;throw o(i(t)+" is not a function")}},"5a34":function(t,e,n){var r=n("44e7"),i=TypeError;t.exports=function(t){if(r(t))throw i("The method doesn't accept regular expressions");return t}},"5a43":function(t,e){function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}t.exports=n,t.exports.__esModule=!0,t.exports["default"]=t.exports},"5a47":function(t,e,n){var r=n("23e7"),i=n("04f8"),o=n("d039"),a=n("7418"),s=n("7b0b"),l=!i||o((function(){a.f(1)}));r({target:"Object",stat:!0,forced:l},{getOwnPropertySymbols:function(t){var e=a.f;return e?e(s(t)):[]}})},"5a94":function(t,e,n){var r=n("b367")("keys"),i=n("8b1a");t.exports=function(t){return r[t]||(r[t]=i(t))}},"5c6c":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"5cce":function(t,e){t.exports={version:"0.24.0"}},"5e07":function(t,e,n){},"5e77":function(t,e,n){var r=n("83ab"),i=n("1a2d"),o=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=i(o,"name"),l=s&&"something"===function(){}.name,u=s&&(!r||r&&a(o,"name").configurable);t.exports={EXISTS:s,PROPER:l,CONFIGURABLE:u}},"5e7e":function(t,e,n){"use strict";var r,i,o,a,s=n("23e7"),l=n("c430"),u=n("605d"),c=n("da84"),h=n("c65b"),f=n("cb2d"),d=n("d2bb"),p=n("d44e"),g=n("2626"),v=n("59ed"),y=n("1626"),m=n("861d"),b=n("19aa"),_=n("4840"),x=n("2cf4").set,w=n("b575"),S=n("44de"),O=n("e667"),C=n("01b4"),k=n("69f3"),A=n("d256"),M=n("4738"),T=n("f069"),I="Promise",E=M.CONSTRUCTOR,P=M.REJECTION_EVENT,j=M.SUBCLASSING,L=k.getterFor(I),D=k.set,R=A&&A.prototype,N=A,B=R,F=c.TypeError,z=c.document,V=c.process,q=T.f,G=q,H=!!(z&&z.createEvent&&c.dispatchEvent),W="unhandledrejection",U="rejectionhandled",$=0,Y=1,X=2,K=1,Z=2,Q=function(t){var e;return!(!m(t)||!y(e=t.then))&&e},J=function(t,e){var n,r,i,o=e.value,a=e.state==Y,s=a?t.ok:t.fail,l=t.resolve,u=t.reject,c=t.domain;try{s?(a||(e.rejection===Z&&it(e),e.rejection=K),!0===s?n=o:(c&&c.enter(),n=s(o),c&&(c.exit(),i=!0)),n===t.promise?u(F("Promise-chain cycle")):(r=Q(n))?h(r,n,l,u):l(n)):u(o)}catch(f){c&&!i&&c.exit(),u(f)}},tt=function(t,e){t.notified||(t.notified=!0,w((function(){var n,r=t.reactions;while(n=r.get())J(n,t);t.notified=!1,e&&!t.rejection&&nt(t)})))},et=function(t,e,n){var r,i;H?(r=z.createEvent("Event"),r.promise=e,r.reason=n,r.initEvent(t,!1,!0),c.dispatchEvent(r)):r={promise:e,reason:n},!P&&(i=c["on"+t])?i(r):t===W&&S("Unhandled promise rejection",n)},nt=function(t){h(x,c,(function(){var e,n=t.facade,r=t.value,i=rt(t);if(i&&(e=O((function(){u?V.emit("unhandledRejection",r,n):et(W,n,r)})),t.rejection=u||rt(t)?Z:K,e.error))throw e.value}))},rt=function(t){return t.rejection!==K&&!t.parent},it=function(t){h(x,c,(function(){var e=t.facade;u?V.emit("rejectionHandled",e):et(U,e,t.value)}))},ot=function(t,e,n){return function(r){t(e,r,n)}},at=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=X,tt(t,!0))},st=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw F("Promise can't be resolved itself");var r=Q(e);r?w((function(){var n={done:!1};try{h(r,e,ot(st,n,t),ot(at,n,t))}catch(i){at(n,i,t)}})):(t.value=e,t.state=Y,tt(t,!1))}catch(i){at({done:!1},i,t)}}};if(E&&(N=function(t){b(this,B),v(t),h(r,this);var e=L(this);try{t(ot(st,e),ot(at,e))}catch(n){at(e,n)}},B=N.prototype,r=function(t){D(this,{type:I,done:!1,notified:!1,parent:!1,reactions:new C,rejection:!1,state:$,value:void 0})},r.prototype=f(B,"then",(function(t,e){var n=L(this),r=q(_(this,N));return n.parent=!0,r.ok=!y(t)||t,r.fail=y(e)&&e,r.domain=u?V.domain:void 0,n.state==$?n.reactions.add(r):w((function(){J(r,n)})),r.promise})),i=function(){var t=new r,e=L(t);this.promise=t,this.resolve=ot(st,e),this.reject=ot(at,e)},T.f=q=function(t){return t===N||t===o?new i(t):G(t)},!l&&y(A)&&R!==Object.prototype)){a=R.then,j||f(R,"then",(function(t,e){var n=this;return new N((function(t,e){h(a,n,t,e)})).then(t,e)}),{unsafe:!0});try{delete R.constructor}catch(lt){}d&&d(R,B)}s({global:!0,constructor:!0,wrap:!0,forced:E},{Promise:N}),p(N,I,!1,!0),g(I)},"5eed":function(t,e,n){var r=n("d256"),i=n("1c7e"),o=n("4738").CONSTRUCTOR;t.exports=o||!i((function(t){r.all(t).then(void 0,(function(){}))}))},"5f02":function(t,e,n){"use strict";t.exports=function(t){return"object"===typeof t&&!0===t.isAxiosError}},"605d":function(t,e,n){var r=n("c6b6"),i=n("da84");t.exports="process"==r(i.process)},6062:function(t,e,n){n("1c59")},6069:function(t,e,n){var r=n("6c59"),i=n("605d");t.exports=!r&&!i&&"object"==typeof window&&"object"==typeof document},"60da":function(t,e,n){"use strict";var r=n("83ab"),i=n("e330"),o=n("c65b"),a=n("d039"),s=n("df75"),l=n("7418"),u=n("d1e7"),c=n("7b0b"),h=n("44ad"),f=Object.assign,d=Object.defineProperty,p=i([].concat);t.exports=!f||a((function(){if(r&&1!==f({b:1},f(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach((function(t){e[t]=t})),7!=f({},t)[n]||s(f({},e)).join("")!=i}))?function(t,e){var n=c(t),i=arguments.length,a=1,f=l.f,d=u.f;while(i>a){var g,v=h(arguments[a++]),y=f?p(s(v),f(v)):s(v),m=y.length,b=0;while(m>b)g=y[b++],r&&!o(d,v,g)||(n[g]=v[g])}return n}:f},"60f1":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.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};e.legendConfig=r},"60f7":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.legend=h;var i=r(n("9523")),o=r(n("278c")),a=r(n("7037")),s=n("18ad"),l=n("5557"),u=n("9d85"),c=n("becb");function h(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.legend;n?(n=(0,c.deepMerge)((0,l.deepClone)(u.legendConfig,!0),n),n=f(n),n=d(n,e,t),n=p(n,t),n=y(n,t),n=[n]):n=[],(0,s.doUpdate)({chart:t,series:n,key:"legendIcon",getGraphConfig:M}),(0,s.doUpdate)({chart:t,series:n,key:"legendText",getGraphConfig:E})}function f(t){var e=t.data;return t.data=e.map((function(t){var e=(0,a["default"])(t);return"string"===e?{name:t}:"object"===e?t:{name:""}})),t}function d(t,e,n){var r=e.series,i=n.legendStatus,o=t.data.filter((function(t){var e=t.name,n=r.find((function(t){var n=t.name;return e===n}));return!!n&&(t.color||(t.color=n.color),t.icon||(t.icon=n.type),t)}));return i&&i.length===t.data.length||(i=new Array(t.data.length).fill(!0)),o.forEach((function(t,e){return t.status=i[e]})),t.data=o,n.legendStatus=i,t}function p(t,e){var n=e.render.ctx,r=t.data,i=t.textStyle,o=t.textUnselectedStyle;return r.forEach((function(t){var e=t.status,r=t.name;t.textWidth=g(n,r,e?i:o)})),t}function g(t,e,n){return t.font=v(n),t.measureText(e).width}function v(t){var e=t.fontFamily,n=t.fontSize;return"".concat(n,"px ").concat(e)}function y(t,e){var n=t.orient;return"vertical"===n?O(t,e):m(t,e),t}function m(t,e){var n=t.iconHeight,r=t.itemGap,i=b(t,e),o=i.map((function(n){return x(n,t,e)})),a=w(t,e),s={textAlign:"left",textBaseline:"middle"};i.forEach((function(t,e){return t.forEach((function(t){var i=t.iconPosition,l=t.textPosition,u=o[e],c=a+e*(r+n);t.iconPosition=S(i,[u,c]),t.textPosition=S(l,[u,c]),t.align=s}))}))}function b(t,e){var n=t.data,r=t.iconWidth,i=e.render.area[0],o=0,a=[[]];return n.forEach((function(e,n){var s=_(o,n,t),l=s+r+5+e.textWidth;l>=i&&(o=n,s=_(o,n,t),a.push([])),e.iconPosition=[s,0],e.textPosition=[s+r+5,0],a.slice(-1)[0].push(e)})),a}function _(t,e,n){var r=n.data,i=n.iconWidth,o=n.itemGap,a=r.slice(t,e);return(0,c.mulAdd)(a.map((function(t){var e=t.textWidth;return e})))+(e-t)*(o+5+i)}function x(t,e,n){var r=e.left,i=e.right,o=e.iconWidth,a=e.itemGap,s=n.render.area[0],l=t.length,u=(0,c.mulAdd)(t.map((function(t){var e=t.textWidth;return e})))+l*(5+o)+(l-1)*a,h=[r,i].findIndex((function(t){return"auto"!==t}));return-1===h?(s-u)/2:0===h?"number"===typeof r?r:parseInt(r)/100*s:("number"!==typeof i&&(i=parseInt(i)/100*s),s-(u+i))}function w(t,e){var n=t.top,r=t.bottom,i=t.iconHeight,o=e.render.area[1],a=[n,r].findIndex((function(t){return"auto"!==t})),s=i/2;if(-1===a){var l=e.gridArea,u=l.y,c=l.h;return u+c+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 S(t,e){var n=(0,o["default"])(t,2),r=n[0],i=n[1],a=(0,o["default"])(e,2),s=a[0],l=a[1];return[r+s,i+l]}function O(t,e){var n=C(t,e),r=(0,o["default"])(n,2),i=r[0],a=r[1],s=k(t,e);A(t,i);var l={textAlign:"left",textBaseline:"middle"};t.data.forEach((function(t){var e=t.textPosition,n=t.iconPosition;t.textPosition=S(e,[a,s]),t.iconPosition=S(n,[a,s]),t.align=l}))}function C(t,e){var n=t.left,r=t.right,i=e.render.area[0],o=[n,r].findIndex((function(t){return"auto"!==t}));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 k(t,e){var n=t.iconHeight,r=t.itemGap,i=t.data,o=t.top,a=t.bottom,s=e.render.area[1],l=i.length,u=l*n+(l-1)*r,c=[o,a].findIndex((function(t){return"auto"!==t}));if(-1===c)return(s-u)/2;var h=[o,a][c];return"number"!==typeof h&&(h=parseInt(h)/100*s),1===c&&(h=s-h-u),h}function A(t,e){var n=t.data,r=t.iconWidth,i=t.iconHeight,o=t.itemGap,a=i/2;n.forEach((function(t,n){var s=t.textWidth,l=(i+o)*n+a,u=e?0-r:0,c=e?u-5-s:r+5;t.iconPosition=[u,l],t.textPosition=[c,l]}))}function M(t,e){var n=t.data,r=t.selectAble,o=t.animationCurve,a=t.animationFrame,s=t.rLevel;return n.map((function(n,l){return(0,i["default"])({name:"line"===n.icon?"lineIcon":"rect",index:s,visible:t.show,hover:r,click:r,animationCurve:o,animationFrame:a,shape:T(t,l),style:I(t,l)},"click",D(t,l,e))}))}function T(t,e){var n=t.data,r=t.iconWidth,i=t.iconHeight,a=(0,o["default"])(n[e].iconPosition,2),s=a[0],l=a[1],u=i/2;return{x:s,y:l-u,w:r,h:i}}function I(t,e){var n=t.data,r=t.iconStyle,i=t.iconUnselectedStyle,o=n[e],a=o.status,s=o.color,l=a?r:i;return(0,c.deepMerge)({fill:s},l)}function E(t,e){var n=t.data,r=t.selectAble,i=t.animationCurve,o=t.animationFrame,a=t.rLevel;return n.map((function(n,s){return{name:"text",index:a,visible:t.show,hover:r,animationCurve:i,animationFrame:o,hoverRect:L(t,s),shape:P(t,s),style:j(t,s),click:D(t,s,e)}}))}function P(t,e){var n=t.data[e],r=n.textPosition,i=n.name;return{content:i,position:r}}function j(t,e){var n=t.textStyle,r=t.textUnselectedStyle,i=t.data[e],o=i.status,a=i.align,s=o?n:r;return(0,c.deepMerge)((0,l.deepClone)(s,!0),a)}function L(t,e){var n=t.textStyle,r=t.textUnselectedStyle,i=t.data[e],a=i.status,s=(0,o["default"])(i.textPosition,2),l=s[0],u=s[1],c=i.textWidth,h=a?n:r,f=h.fontSize;return[l,u-f/2,c,f]}function D(t,e,n){var r=t.data[e].name;return function(){var t=n.chart,i=t.legendStatus,o=t.option,a=!i[e],s=o.series.find((function(t){var e=t.name;return e===r}));s.show=a,i[e]=a,n.chart.setOption(o)}}},6155:function(t,e,n){const r=n("4d84");t.exports.NumberAllocator=r},"62e4":function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},"62fd":function(t,e,n){},6374:function(t,e,n){var r=n("da84"),i=Object.defineProperty;t.exports=function(t,e){try{i(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},"63f00":function(t,e,n){"use strict";const r=n("2fae"),i=Symbol("max"),o=Symbol("length"),a=Symbol("lengthCalculator"),s=Symbol("allowStale"),l=Symbol("maxAge"),u=Symbol("dispose"),c=Symbol("noDisposeOnSet"),h=Symbol("lruList"),f=Symbol("cache"),d=Symbol("updateAgeOnGet"),p=()=>1;class g{constructor(t){if("number"===typeof t&&(t={max:t}),t||(t={}),t.max&&("number"!==typeof t.max||t.max<0))throw new TypeError("max must be a non-negative number");this[i]=t.max||1/0;const e=t.length||p;if(this[a]="function"!==typeof e?p:e,this[s]=t.stale||!1,t.maxAge&&"number"!==typeof t.maxAge)throw new TypeError("maxAge must be a number");this[l]=t.maxAge||0,this[u]=t.dispose,this[c]=t.noDisposeOnSet||!1,this[d]=t.updateAgeOnGet||!1,this.reset()}set max(t){if("number"!==typeof t||t<0)throw new TypeError("max must be a non-negative number");this[i]=t||1/0,m(this)}get max(){return this[i]}set allowStale(t){this[s]=!!t}get allowStale(){return this[s]}set maxAge(t){if("number"!==typeof t)throw new TypeError("maxAge must be a non-negative number");this[l]=t,m(this)}get maxAge(){return this[l]}set lengthCalculator(t){"function"!==typeof t&&(t=p),t!==this[a]&&(this[a]=t,this[o]=0,this[h].forEach(t=>{t.length=this[a](t.value,t.key),this[o]+=t.length})),m(this)}get lengthCalculator(){return this[a]}get length(){return this[o]}get itemCount(){return this[h].length}rforEach(t,e){e=e||this;for(let n=this[h].tail;null!==n;){const r=n.prev;x(this,t,n,e),n=r}}forEach(t,e){e=e||this;for(let n=this[h].head;null!==n;){const r=n.next;x(this,t,n,e),n=r}}keys(){return this[h].toArray().map(t=>t.key)}values(){return this[h].toArray().map(t=>t.value)}reset(){this[u]&&this[h]&&this[h].length&&this[h].forEach(t=>this[u](t.key,t.value)),this[f]=new Map,this[h]=new r,this[o]=0}dump(){return this[h].map(t=>!y(this,t)&&{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}).toArray().filter(t=>t)}dumpLru(){return this[h]}set(t,e,n){if(n=n||this[l],n&&"number"!==typeof n)throw new TypeError("maxAge must be a number");const r=n?Date.now():0,s=this[a](e,t);if(this[f].has(t)){if(s>this[i])return b(this,this[f].get(t)),!1;const a=this[f].get(t),l=a.value;return this[u]&&(this[c]||this[u](t,l.value)),l.now=r,l.maxAge=n,l.value=e,this[o]+=s-l.length,l.length=s,this.get(t),m(this),!0}const d=new _(t,e,s,r,n);return d.length>this[i]?(this[u]&&this[u](t,e),!1):(this[o]+=d.length,this[h].unshift(d),this[f].set(t,this[h].head),m(this),!0)}has(t){if(!this[f].has(t))return!1;const e=this[f].get(t).value;return!y(this,e)}get(t){return v(this,t,!0)}peek(t){return v(this,t,!1)}pop(){const t=this[h].tail;return t?(b(this,t),t.value):null}del(t){b(this,this[f].get(t))}load(t){this.reset();const e=Date.now();for(let n=t.length-1;n>=0;n--){const r=t[n],i=r.e||0;if(0===i)this.set(r.k,r.v);else{const t=i-e;t>0&&this.set(r.k,r.v,t)}}}prune(){this[f].forEach((t,e)=>v(this,e,!1))}}const v=(t,e,n)=>{const r=t[f].get(e);if(r){const e=r.value;if(y(t,e)){if(b(t,r),!t[s])return}else n&&(t[d]&&(r.value.now=Date.now()),t[h].unshiftNode(r));return e.value}},y=(t,e)=>{if(!e||!e.maxAge&&!t[l])return!1;const n=Date.now()-e.now;return e.maxAge?n>e.maxAge:t[l]&&n>t[l]},m=t=>{if(t[o]>t[i])for(let e=t[h].tail;t[o]>t[i]&&null!==e;){const n=e.prev;b(t,e),e=n}},b=(t,e)=>{if(e){const n=e.value;t[u]&&t[u](n.key,n.value),t[o]-=n.length,t[f].delete(n.key),t[h].removeNode(e)}};class _{constructor(t,e,n,r,i){this.key=t,this.value=e,this.length=n,this.now=r,this.maxAge=i||0}}const x=(t,e,n,r)=>{let i=n.value;y(t,i)&&(b(t,n),t[s]||(i=void 0)),i&&e.call(r,i.value,i.key,t)};t.exports=g},6438:function(t,e,n){var r=n("03d6"),i=n("9742").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},"652a":function(t,e,n){"use strict";var r;function i(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}var o=n("fbd7").codes,a=o.ERR_MISSING_ARGS,s=o.ERR_STREAM_DESTROYED;function l(t){if(t)throw t}function u(t){return t.setHeader&&"function"===typeof t.abort}function c(t,e,o,a){a=i(a);var l=!1;t.on("close",(function(){l=!0})),void 0===r&&(r=n("d9e1")),r(t,{readable:e,writable:o},(function(t){if(t)return a(t);l=!0,a()}));var c=!1;return function(e){if(!l&&!c)return c=!0,u(t)?t.abort():"function"===typeof t.destroy?t.destroy():void a(e||new s("pipe"))}}function h(t){t()}function f(t,e){return t.pipe(e)}function d(t){return t.length?"function"!==typeof t[t.length-1]?l:t.pop():l}function p(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r,i=d(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new a("streams");var o=e.map((function(t,n){var a=n<e.length-1,s=n>0;return c(t,a,s,(function(t){r||(r=t),t&&o.forEach(h),a||(o.forEach(h),i(r))}))}));return e.reduce(f)}t.exports=p},6547:function(t,e,n){var r=n("e330"),i=n("5926"),o=n("577e"),a=n("1d80"),s=r("".charAt),l=r("".charCodeAt),u=r("".slice),c=function(t){return function(e,n){var r,c,h=o(a(e)),f=i(n),d=h.length;return f<0||f>=d?t?"":void 0:(r=l(h,f),r<55296||r>56319||f+1===d||(c=l(h,f+1))<56320||c>57343?t?s(h,f):r:t?u(h,f,f+2):c-56320+(r-55296<<10)+65536)}};t.exports={codeAt:c(!1),charAt:c(!0)}},6566:function(t,e,n){"use strict";var r=n("9bf2").f,i=n("7c73"),o=n("6964"),a=n("0366"),s=n("19aa"),l=n("7234"),u=n("2266"),c=n("c6d2"),h=n("4754"),f=n("2626"),d=n("83ab"),p=n("f183").fastKey,g=n("69f3"),v=g.set,y=g.getterFor;t.exports={getConstructor:function(t,e,n,c){var h=t((function(t,r){s(t,f),v(t,{type:e,index:i(null),first:void 0,last:void 0,size:0}),d||(t.size=0),l(r)||u(r,t[c],{that:t,AS_ENTRIES:n})})),f=h.prototype,g=y(e),m=function(t,e,n){var r,i,o=g(t),a=b(t,e);return a?a.value=n:(o.last=a={index:i=p(e,!0),key:e,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=a),r&&(r.next=a),d?o.size++:t.size++,"F"!==i&&(o.index[i]=a)),t},b=function(t,e){var n,r=g(t),i=p(e);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==e)return n};return o(f,{clear:function(){var t=this,e=g(t),n=e.index,r=e.first;while(r)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete n[r.index],r=r.next;e.first=e.last=void 0,d?e.size=0:t.size=0},delete:function(t){var e=this,n=g(e),r=b(e,t);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--:e.size--}return!!r},forEach:function(t){var e,n=g(this),r=a(t,arguments.length>1?arguments[1]:void 0);while(e=e?e.next:n.first){r(e.value,e.key,this);while(e&&e.removed)e=e.previous}},has:function(t){return!!b(this,t)}}),o(f,n?{get:function(t){var e=b(this,t);return e&&e.value},set:function(t,e){return m(this,0===t?0:t,e)}}:{add:function(t){return m(this,t=0===t?0:t,t)}}),d&&r(f,"size",{get:function(){return g(this).size}}),h},setStrong:function(t,e,n){var r=e+" Iterator",i=y(e),o=y(r);c(t,e,(function(t,e){v(this,{type:r,target:t,state:i(t),kind:e,last:void 0})}),(function(){var t=o(this),e=t.kind,n=t.last;while(n&&n.removed)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?h("keys"==e?n.key:"values"==e?n.value:[n.key,n.value],!1):(t.target=void 0,h(void 0,!0))}),n?"entries":"values",!n,!0),f(e)}}},"658f":function(t,e,n){n("6858");for(var r=n("ef08"),i=n("051b"),o=n("8a0d"),a=n("cc15")("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l<s.length;l++){var u=s[l],c=r[u],h=c&&c.prototype;h&&!h[a]&&i(h,a,u),o[u]=o.Array}},"65f0":function(t,e,n){var r=n("0b42");t.exports=function(t,e){return new(r(t))(0===e?0:e)}},6613:function(t,e,n){n("fb6a"),n("d3b7"),n("b0c0"),n("a630"),n("3ca3"),n("ac1f"),n("00b4");var r=n("5a43");function i(t,e){if(t){if("string"===typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}t.exports=i,t.exports.__esModule=!0,t.exports["default"]=t.exports},6858:function(t,e,n){"use strict";var r=n("2f9a"),i=n("ea34"),o=n("8a0d"),a=n("6ca1");t.exports=n("393a")(Array,"Array",(function(t,e){this._t=a(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},"68ee":function(t,e,n){var r=n("e330"),i=n("d039"),o=n("1626"),a=n("f5df"),s=n("d066"),l=n("8925"),u=function(){},c=[],h=s("Reflect","construct"),f=/^\s*(?:class|function)\b/,d=r(f.exec),p=!f.exec(u),g=function(t){if(!o(t))return!1;try{return h(u,c,t),!0}catch(e){return!1}},v=function(t){if(!o(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!d(f,l(t))}catch(e){return!0}};v.sham=!0,t.exports=!h||i((function(){var t;return g(g.call)||!g(Object)||!g((function(){t=!0}))||t}))?v:g},"693d":function(t,e,n){"use strict";var r=n("ef08"),i=n("9c0e"),o=n("0bad"),a=n("512c"),s=n("ba01"),l=n("e34a").KEY,u=n("4b8b"),c=n("b367"),h=n("92f0"),f=n("8b1a"),d=n("cc15"),p=n("fcd4"),g=n("e198"),v=n("0ae2"),y=n("4ebc"),m=n("77e9"),b=n("7a41"),_=n("0983"),x=n("6ca1"),w=n("3397"),S=n("10db"),O=n("6f4f"),C=n("1836"),k=n("4d20"),A=n("fed5"),M=n("1a14"),T=n("9876"),I=k.f,E=M.f,P=C.f,j=r.Symbol,L=r.JSON,D=L&&L.stringify,R="prototype",N=d("_hidden"),B=d("toPrimitive"),F={}.propertyIsEnumerable,z=c("symbol-registry"),V=c("symbols"),q=c("op-symbols"),G=Object[R],H="function"==typeof j&&!!A.f,W=r.QObject,U=!W||!W[R]||!W[R].findChild,$=o&&u((function(){return 7!=O(E({},"a",{get:function(){return E(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=I(G,e);r&&delete G[e],E(t,e,n),r&&t!==G&&E(G,e,r)}:E,Y=function(t){var e=V[t]=O(j[R]);return e._k=t,e},X=H&&"symbol"==typeof j.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof j},K=function(t,e,n){return t===G&&K(q,e,n),m(t),e=w(e,!0),m(n),i(V,e)?(n.enumerable?(i(t,N)&&t[N][e]&&(t[N][e]=!1),n=O(n,{enumerable:S(0,!1)})):(i(t,N)||E(t,N,S(1,{})),t[N][e]=!0),$(t,e,n)):E(t,e,n)},Z=function(t,e){m(t);var n,r=v(e=x(e)),i=0,o=r.length;while(o>i)K(t,n=r[i++],e[n]);return t},Q=function(t,e){return void 0===e?O(t):Z(O(t),e)},J=function(t){var e=F.call(this,t=w(t,!0));return!(this===G&&i(V,t)&&!i(q,t))&&(!(e||!i(this,t)||!i(V,t)||i(this,N)&&this[N][t])||e)},tt=function(t,e){if(t=x(t),e=w(e,!0),t!==G||!i(V,e)||i(q,e)){var n=I(t,e);return!n||!i(V,e)||i(t,N)&&t[N][e]||(n.enumerable=!0),n}},et=function(t){var e,n=P(x(t)),r=[],o=0;while(n.length>o)i(V,e=n[o++])||e==N||e==l||r.push(e);return r},nt=function(t){var e,n=t===G,r=P(n?q:x(t)),o=[],a=0;while(r.length>a)!i(V,e=r[a++])||n&&!i(G,e)||o.push(V[e]);return o};H||(j=function(){if(this instanceof j)throw TypeError("Symbol is not a constructor!");var t=f(arguments.length>0?arguments[0]:void 0),e=function(n){this===G&&e.call(q,n),i(this,N)&&i(this[N],t)&&(this[N][t]=!1),$(this,t,S(1,n))};return o&&U&&$(G,t,{configurable:!0,set:e}),Y(t)},s(j[R],"toString",(function(){return this._k})),k.f=tt,M.f=K,n("6438").f=C.f=et,n("1917").f=J,A.f=nt,o&&!n("e444")&&s(G,"propertyIsEnumerable",J,!0),p.f=function(t){return Y(d(t))}),a(a.G+a.W+a.F*!H,{Symbol:j});for(var rt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),it=0;rt.length>it;)d(rt[it++]);for(var ot=T(d.store),at=0;ot.length>at;)g(ot[at++]);a(a.S+a.F*!H,"Symbol",{for:function(t){return i(z,t+="")?z[t]:z[t]=j(t)},keyFor:function(t){if(!X(t))throw TypeError(t+" is not a symbol!");for(var e in z)if(z[e]===t)return e},useSetter:function(){U=!0},useSimple:function(){U=!1}}),a(a.S+a.F*!H,"Object",{create:Q,defineProperty:K,defineProperties:Z,getOwnPropertyDescriptor:tt,getOwnPropertyNames:et,getOwnPropertySymbols:nt});var st=u((function(){A.f(1)}));a(a.S+a.F*st,"Object",{getOwnPropertySymbols:function(t){return A.f(_(t))}}),L&&a(a.S+a.F*(!H||u((function(){var t=j();return"[null]"!=D([t])||"{}"!=D({a:t})||"{}"!=D(Object(t))}))),"JSON",{stringify:function(t){var e,n,r=[t],i=1;while(arguments.length>i)r.push(arguments[i++]);if(n=e=r[1],(b(e)||void 0!==t)&&!X(t))return y(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!X(e))return e}),r[1]=e,D.apply(L,r)}}),j[R][B]||n("051b")(j[R],B,j[R].valueOf),h(j,"Symbol"),h(Math,"Math",!0),h(r.JSON,"JSON",!0)},6964:function(t,e,n){var r=n("cb2d");t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},6981:function(t,e,n){
|
||
/*!
|
||
* clipboard.js v2.0.8
|
||
* https://clipboardjs.com/
|
||
*
|
||
* Licensed MIT © Zeno Rocha
|
||
*/
|
||
!function(e,n){t.exports=n()}(0,(function(){return e={134:function(t,e,n){"use strict";n.d(e,{default:function(){return g}});e=n(279);var r=n.n(e),i=(e=n(370),n.n(e)),o=(e=n(817),n.n(e));function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var l=function(){function t(e){!function(e){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this),this.resolveOptions(e),this.initSelection()}var e,n,r;return e=t,(n=[{key:"resolveOptions",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"createFakeElement",value:function(){var t="rtl"===document.documentElement.getAttribute("dir");return this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px",t=window.pageYOffset||document.documentElement.scrollTop,this.fakeElem.style.top="".concat(t,"px"),this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.fakeElem}},{key:"selectFake",value:function(){var t=this,e=this.createFakeElement();this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.container.appendChild(e),this.selectedText=o()(e),this.copyText(),this.removeFake()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=o()(this.target),this.copyText()}},{key:"copyText",value:function(){var t;try{t=document.execCommand(this.action)}catch(e){t=!1}this.handleResult(t)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==a(t)||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}])&&s(e.prototype,n),r&&s(e,r),t}();function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(e){var n=function(){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(t){return!1}}();return function(){var t,r=d(e);return t=n?(t=d(this).constructor,Reflect.construct(r,arguments,t)):r.apply(this,arguments),r=this,!(t=t)||"object"!==u(t)&&"function"!=typeof t?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(r):t}}function d(t){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function p(t,e){if(t="data-clipboard-".concat(t),e.hasAttribute(t))return e.getAttribute(t)}var g=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}(a,r());var t,e,n,o=f(a);function a(t,e){var n;return function(t){if(!(t instanceof a))throw new TypeError("Cannot call a class as a function")}(this),(n=o.call(this)).resolveOptions(e),n.listenClick(t),n}return t=a,n=[{key:"isSupported",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e=(t="string"==typeof t?[t]:t,!!document.queryCommandSupported);return t.forEach((function(t){e=e&&!!document.queryCommandSupported(t)})),e}}],(e=[{key:"resolveOptions",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"===u(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=i()(t,"click",(function(t){return e.onClick(t)}))}},{key:"onClick",value:function(t){t=t.delegateTarget||t.currentTarget,this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new l({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(t){return p("action",t)}},{key:"defaultTarget",value:function(t){if(t=p("target",t),t)return document.querySelector(t)}},{key:"defaultText",value:function(t){return p("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}])&&c(t.prototype,e),n&&c(t,n),a}()},828:function(t){var e;"undefined"==typeof Element||Element.prototype.matches||((e=Element.prototype).matches=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector),t.exports=function(t,e){for(;t&&9!==t.nodeType;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}},438:function(t,e,n){var r=n(828);function i(t,e,n,i,o){var a=function(t,e,n,i){return function(n){n.delegateTarget=r(n.target,e),n.delegateTarget&&i.call(t,n)}}.apply(this,arguments);return t.addEventListener(n,a,o),{destroy:function(){t.removeEventListener(n,a,o)}}}t.exports=function(t,e,n,r,o){return"function"==typeof t.addEventListener?i.apply(null,arguments):"function"==typeof n?i.bind(null,document).apply(null,arguments):("string"==typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,(function(t){return i(t,e,n,r,o)})))}},879:function(t,e){e.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},e.nodeList=function(t){var n=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in t&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"==typeof t||t instanceof String},e.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},370:function(t,e,n){var r=n(879),i=n(438);t.exports=function(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!r.string(e))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(t))return u=e,c=n,(l=t).addEventListener(u,c),{destroy:function(){l.removeEventListener(u,c)}};if(r.nodeList(t))return o=t,a=e,s=n,Array.prototype.forEach.call(o,(function(t){t.addEventListener(a,s)})),{destroy:function(){Array.prototype.forEach.call(o,(function(t){t.removeEventListener(a,s)}))}};if(r.string(t))return t=t,e=e,n=n,i(document.body,t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");var o,a,s,l,u,c}},817:function(t){t.exports=function(t){var e,n="SELECT"===t.nodeName?(t.focus(),t.value):"INPUT"===t.nodeName||"TEXTAREA"===t.nodeName?((e=t.hasAttribute("readonly"))||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),e||t.removeAttribute("readonly"),t.value):(t.hasAttribute("contenteditable")&&t.focus(),n=window.getSelection(),(e=document.createRange()).selectNodeContents(t),n.removeAllRanges(),n.addRange(e),n.toString());return n}},279:function(t){function e(){}e.prototype={on:function(t,e,n){var r=this.e||(this.e={});return(r[t]||(r[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var r=this;function i(){r.off(t,i),e.apply(n,arguments)}return i._=e,this.on(t,i,n)},emit:function(t){for(var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),r=0,i=n.length;r<i;r++)n[r].fn.apply(n[r].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),r=n[t],i=[];if(r&&e)for(var o=0,a=r.length;o<a;o++)r[o].fn!==e&&r[o].fn._!==e&&i.push(r[o]);return i.length?n[t]=i:delete n[t],this}},t.exports=e,t.exports.TinyEmitter=e}},n={},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,{a:n}),n},t.d=function(e,n){for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},t.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},t(134).default;function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{}};return e[r](i,i.exports,t),i.exports}var e,n}))},"69f3":function(t,e,n){var r,i,o,a=n("cdce"),s=n("da84"),l=n("e330"),u=n("861d"),c=n("9112"),h=n("1a2d"),f=n("c6cd"),d=n("f772"),p=n("d012"),g="Object already initialized",v=s.TypeError,y=s.WeakMap,m=function(t){return o(t)?i(t):r(t,{})},b=function(t){return function(e){var n;if(!u(e)||(n=i(e)).type!==t)throw v("Incompatible receiver, "+t+" required");return n}};if(a||f.state){var _=f.state||(f.state=new y),x=l(_.get),w=l(_.has),S=l(_.set);r=function(t,e){if(w(_,t))throw v(g);return e.facade=t,S(_,t,e),e},i=function(t){return x(_,t)||{}},o=function(t){return w(_,t)}}else{var O=d("state");p[O]=!0,r=function(t,e){if(h(t,O))throw v(g);return e.facade=t,c(t,O,e),e},i=function(t){return h(t,O)?t[O]:{}},o=function(t){return h(t,O)}}t.exports={set:r,get:i,has:o,enforce:m,getterFor:b}},"6b75":function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}n.d(e,"a",(function(){return r}))},"6c02":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"changeDefaultConfig",{enumerable:!0,get:function(){return o.changeDefaultConfig}}),e["default"]=void 0;var i=r(n("04fb")),o=n("9d85"),a=i["default"];e["default"]=a},"6c29":function(t,e,n){"use strict";n.d(e,"a",(function(){return C})),n.d(e,"b",(function(){return ot})),n.d(e,"c",(function(){return qt})),n.d(e,"d",(function(){return te})),n.d(e,"e",(function(){return Pe})),n.d(e,"f",(function(){return He})),n.d(e,"g",(function(){return Sn})),n.d(e,"h",(function(){return On})),n.d(e,"i",(function(){return Yn})),n.d(e,"j",(function(){return ar})),n.d(e,"k",(function(){return mr}));n("62fd");var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;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:t.digitalFlop}}),n("div",{staticClass:"active-ring-name",style:t.fontSize},[t._v(t._s(t.ringName))])],1)])},i=[],o=n("2909"),a=n("5530"),s=(n("d81d"),n("13d5"),n("d3b7"),n("b0c0"),n("159b"),n("6c02")),l=n.n(s),u=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"dv-digital-flop"},[n("canvas",{ref:"digital-flop"})])},c=[],h=n("3835"),f=(n("b680"),n("9886")),d=n.n(f),p=(n("0ca1"),n("becb")),g=n("5557"),v={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 t=this.update;t()}},methods:{init:function(){var t=this.initRender,e=this.mergeConfig,n=this.initGraph;t(),e(),n()},initRender:function(){var t=this.$refs;this.renderer=new d.a(t["digital-flop"])},mergeConfig:function(){var t=this.defaultConfig,e=this.config;this.mergedConfig=Object(p["deepMerge"])(Object(g["deepClone"])(t,!0),e||{})},initGraph:function(){var t=this.getShape,e=this.getStyle,n=this.renderer,r=this.mergedConfig,i=r.animationCurve,o=r.animationFrame,a=t(),s=e();this.graph=n.add({name:"numberText",animationCurve:i,animationFrame:o,shape:a,style:s})},getShape:function(){var t=this.mergedConfig,e=t.number,n=t.content,r=t.toFixed,i=t.textAlign,o=t.rowGap,a=t.formatter,s=Object(h["a"])(this.renderer.area,2),l=s[0],u=s[1],c=[l/2,u/2];return"left"===i&&(c[0]=0),"right"===i&&(c[0]=l),{number:e,content:n,toFixed:r,position:c,rowGap:o,formatter:a}},getStyle:function(){var t=this.mergedConfig,e=t.style,n=t.textAlign;return Object(p["deepMerge"])(e,{textAlign:n,textBaseline:"middle"})},update:function(){var t=this.mergeConfig,e=this.mergeShape,n=this.getShape,r=this.getStyle,i=this.graph,o=this.mergedConfig;if(i.animationEnd(),t(),i){var a=o.animationCurve,s=o.animationFrame,l=n(),u=r();e(i,l),i.animationCurve=a,i.animationFrame=s,i.animation("style",u,!0),i.animation("shape",l)}},mergeShape:function(t,e){var n=t.shape.number.length,r=e.number.length;n!==r&&(t.shape.number=e.number)}},mounted:function(){var t=this.init;t()}},y=v,m=n("2877"),b=Object(m["a"])(y,u,c,!1,null,null,null),_=b.exports,x={name:"DvActiveRingChart",components:{dvDigitalFlop:_},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 t=this.mergedConfig,e=this.activeIndex;if(!t)return{};var n,r=t.digitalFlopStyle,i=t.digitalFlopToFixed,o=t.data,a=t.showOriginValue,s=t.digitalFlopUnit,l=o.map((function(t){var e=t.value;return e}));if(a)n=l[e];else{var u=l.reduce((function(t,e){return t+e}),0),c=parseFloat(l[e]/u*100)||0;n=c}return{content:"{nt}".concat(a?s:s||"%"),number:[n],style:r,toFixed:i}},ringName:function(){var t=this.mergedConfig,e=this.activeIndex;return t?t.data[e].name:""},fontSize:function(){var t=this.mergedConfig;return t?"font-size: ".concat(t.digitalFlopStyle.fontSize,"px;"):""}},watch:{config:function(){var t=this.animationHandler,e=this.mergeConfig,n=this.setRingOption;clearTimeout(t),this.activeIndex=0,e(),n()}},methods:{init:function(){var t=this.initChart,e=this.mergeConfig,n=this.setRingOption;t(),e(),n()},initChart:function(){var t=this.$refs;this.chart=new l.a(t["active-ring-chart"])},mergeConfig:function(){var t=this.defaultConfig,e=this.config;this.mergedConfig=Object(p["deepMerge"])(Object(g["deepClone"])(t,!0),e||{})},setRingOption:function(){var t=this.getRingOption,e=this.chart,n=this.ringAnimation,r=t();e.setOption(r,!0),n()},getRingOption:function(){var t=this.mergedConfig,e=this.getRealRadius,n=e();return t.data.forEach((function(t){t.radius=n})),{series:[Object(a["a"])(Object(a["a"])({type:"pie"},t),{},{outsideLabel:{show:!1}})],color:t.color}},getRealRadius:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.mergedConfig,n=this.chart,r=e.radius,i=e.activeRadius,a=e.lineWidth,s=Math.min.apply(Math,Object(o["a"])(n.render.area))/2,l=a/2,u=t?i:r;"number"!==typeof u&&(u=parseInt(u)/100*s);var c=u-l,h=u+l;return[c,h]},ringAnimation:function(){var t=this,e=this.activeIndex,n=this.getRingOption,r=this.chart,i=this.getRealRadius,o=i(),a=i(!0),s=n(),l=s.series[0].data;l.forEach((function(t,n){t.radius=n===e?a:o})),r.setOption(s,!0);var u=s.series[0].activeTimeGap;this.animationHandler=setTimeout((function(n){e+=1,e>=l.length&&(e=0),t.activeIndex=e,t.ringAnimation()}),u)}},mounted:function(){var t=this.init;t()},beforeDestroy:function(){var t=this.animationHandler;clearTimeout(t)}},w=x,S=Object(m["a"])(w,r,i,!1,null,null,null),O=S.exports,C=function(t){t.component(O.name,O)},k=(n("fe7b"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:t.ref,staticClass:"dv-border-box-1"},[n("svg",{staticClass:"border",attrs:{width:t.width,height:t.height}},[n("polygon",{attrs:{fill:t.backgroundColor,points:"10, 27 10, "+(t.height-27)+" 13, "+(t.height-24)+" 13, "+(t.height-21)+" 24, "+(t.height-11)+"\n 38, "+(t.height-11)+" 41, "+(t.height-8)+" 73, "+(t.height-8)+" 75, "+(t.height-10)+" 81, "+(t.height-10)+"\n 85, "+(t.height-6)+" "+(t.width-85)+", "+(t.height-6)+" "+(t.width-81)+", "+(t.height-10)+" "+(t.width-75)+", "+(t.height-10)+"\n "+(t.width-73)+", "+(t.height-8)+" "+(t.width-41)+", "+(t.height-8)+" "+(t.width-38)+", "+(t.height-11)+"\n "+(t.width-24)+", "+(t.height-11)+" "+(t.width-13)+", "+(t.height-21)+" "+(t.width-13)+", "+(t.height-24)+"\n "+(t.width-10)+", "+(t.height-27)+" "+(t.width-10)+", 27 "+(t.width-13)+", 25 "+(t.width-13)+", 21\n "+(t.width-24)+", 11 "+(t.width-38)+", 11 "+(t.width-41)+", 8 "+(t.width-73)+", 8 "+(t.width-75)+", 10\n "+(t.width-81)+", 10 "+(t.width-85)+", 6 85, 6 81, 10 75, 10 73, 8 41, 8 38, 11 24, 11 13, 21 13, 24"}})]),t._l(t.border,(function(e){return n("svg",{key:e,class:e+" border",attrs:{width:"150px",height:"150px"}},[n("polygon",{attrs:{fill:t.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:t.mergedColor[0]+";"+t.mergedColor[1]+";"+t.mergedColor[0],dur:"0.5s",begin:"0s",repeatCount:"indefinite"}})]),n("polygon",{attrs:{fill:t.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:t.mergedColor[1]+";"+t.mergedColor[0]+";"+t.mergedColor[1],dur:"0.5s",begin:"0s",repeatCount:"indefinite"}})]),n("polygon",{attrs:{fill:t.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:t.mergedColor[0]+";"+t.mergedColor[1]+";transparent",dur:"1s",begin:"0s",repeatCount:"indefinite"}})])])})),n("div",{staticClass:"border-box-content"},[t._t("default")],2)],2)}),A=[];function M(t,e){return 1===arguments.length?parseInt(Math.random()*t+1,10):parseInt(Math.random()*(e-t+1)+t,10)}function T(t,e){let n;return function(){clearTimeout(n);const[r,i]=[this,arguments];n=setTimeout(()=>{e.apply(r,i)},t)}}function I(t,e){const n=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,r=new n(e);return r.observe(t,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0}),r}function E(t,e){const n=Math.abs(t[0]-e[0]),r=Math.abs(t[1]-e[1]);return Math.sqrt(n*n+r*r)}function P(t){return(t?"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx":"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx").replace(/[xy]/g,(function(t){const e=16*Math.random()|0,n="x"==t?e:3&e|8;return n.toString(16)}))}var j={data(){return{dom:"",width:0,height:0,debounceInitWHFun:"",domObserver:""}},methods:{async autoResizeMixinInit(){const{initWH:t,getDebounceInitWHFun:e,bindDomResizeCallback:n,afterAutoResizeMixinInit:r}=this;await t(!1),e(),n(),"function"===typeof r&&r()},initWH(t=!0){const{$nextTick:e,$refs:n,ref:r,onResize:i}=this;return new Promise(o=>{e(e=>{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&&t&&i(),o()})})},getDebounceInitWHFun(){const{initWH:t}=this;this.debounceInitWHFun=T(100,t)},bindDomResizeCallback(){const{dom:t,debounceInitWHFun:e}=this;this.domObserver=I(t,e),window.addEventListener("resize",e)},unbindDomResizeCallback(){let{domObserver:t,debounceInitWHFun:e}=this;t&&(t.disconnect(),t.takeRecords(),t=null,window.removeEventListener("resize",e))}},mounted(){const{autoResizeMixinInit:t}=this;t()},beforeDestroy(){const{unbindDomResizeCallback:t}=this;t()}},L={name:"DvBorderBox1",mixins:[j],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 t=this.mergeColor;t()}},methods:{mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t||[])}},mounted:function(){var t=this.mergeColor;t()}},D=L,R=Object(m["a"])(D,k,A,!1,null,null,null),N=(R.exports,n("6ccd"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:t.ref,staticClass:"dv-border-box-10",style:"box-shadow: inset 0 0 25px 3px "+t.mergedColor[0]},[n("svg",{staticClass:"dv-border-svg-container",attrs:{width:t.width,height:t.height}},[n("polygon",{attrs:{fill:t.backgroundColor,points:"\n 4, 0 "+(t.width-4)+", 0 "+t.width+", 4 "+t.width+", "+(t.height-4)+" "+(t.width-4)+", "+t.height+"\n 4, "+t.height+" 0, "+(t.height-4)+" 0, 4\n "}})]),t._l(t.border,(function(e){return n("svg",{key:e,class:e+" dv-border-svg-container",attrs:{width:"150px",height:"150px"}},[n("polygon",{attrs:{fill:t.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"},[t._t("default")],2)],2)}),B=[],F={name:"DvBorderBox10",mixins:[j],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 t=this.mergeColor;t()}},methods:{mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t||[])}},mounted:function(){var t=this.mergeColor;t()}},z=F,V=Object(m["a"])(z,N,B,!1,null,null,null),q=(V.exports,n("4656"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:t.ref,staticClass:"dv-border-box-11"},[n("svg",{staticClass:"dv-border-svg-container",attrs:{width:t.width,height:t.height}},[n("defs",[n("filter",{attrs:{id:t.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":t.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:t.backgroundColor,points:"\n 20, 32 "+(.5*t.width-t.titleWidth/2)+", 32 "+(.5*t.width-t.titleWidth/2+20)+", 53\n "+(.5*t.width+t.titleWidth/2-20)+", 53 "+(.5*t.width+t.titleWidth/2)+", 32\n "+(t.width-20)+", 32 "+(t.width-8)+", 48 "+(t.width-8)+", "+(t.height-25)+" "+(t.width-20)+", "+(t.height-8)+"\n 20, "+(t.height-8)+" 8, "+(t.height-25)+" 8, 50\n "}}),n("polyline",{attrs:{stroke:t.mergedColor[0],filter:"url(#"+t.filterId+")",points:"\n "+(t.width-t.titleWidth)/2+", 30\n 20, 30 7, 50 7, "+(50+(t.height-167)/2)+"\n 13, "+(55+(t.height-167)/2)+" 13, "+(135+(t.height-167)/2)+"\n 7, "+(140+(t.height-167)/2)+" 7, "+(t.height-27)+"\n 20, "+(t.height-7)+" "+(t.width-20)+", "+(t.height-7)+" "+(t.width-7)+", "+(t.height-27)+"\n "+(t.width-7)+", "+(140+(t.height-167)/2)+" "+(t.width-13)+", "+(135+(t.height-167)/2)+"\n "+(t.width-13)+", "+(55+(t.height-167)/2)+" "+(t.width-7)+", "+(50+(t.height-167)/2)+"\n "+(t.width-7)+", 50 "+(t.width-20)+", 30 "+(t.width+t.titleWidth)/2+", 30\n "+((t.width+t.titleWidth)/2-20)+", 7 "+((t.width-t.titleWidth)/2+20)+", 7\n "+(t.width-t.titleWidth)/2+", 30 "+((t.width-t.titleWidth)/2+20)+", 52\n "+((t.width+t.titleWidth)/2-20)+", 52 "+(t.width+t.titleWidth)/2+", 30\n "}}),n("polygon",{attrs:{stroke:t.mergedColor[0],fill:"transparent",points:"\n "+((t.width+t.titleWidth)/2-5)+", 30 "+((t.width+t.titleWidth)/2-21)+", 11\n "+((t.width+t.titleWidth)/2-27)+", 11 "+((t.width+t.titleWidth)/2-8)+", 34\n "}}),n("polygon",{attrs:{stroke:t.mergedColor[0],fill:"transparent",points:"\n "+((t.width-t.titleWidth)/2+5)+", 30 "+((t.width-t.titleWidth)/2+22)+", 49\n "+((t.width-t.titleWidth)/2+28)+", 49 "+((t.width-t.titleWidth)/2+8)+", 26\n "}}),n("polygon",{attrs:{stroke:t.mergedColor[0],fill:t.fade(t.mergedColor[1]||t.defaultColor[1],30),filter:"url(#"+t.filterId+")",points:"\n "+((t.width+t.titleWidth)/2-11)+", 37 "+((t.width+t.titleWidth)/2-32)+", 11\n "+((t.width-t.titleWidth)/2+23)+", 11 "+((t.width-t.titleWidth)/2+11)+", 23\n "+((t.width-t.titleWidth)/2+33)+", 49 "+((t.width+t.titleWidth)/2-22)+", 49\n "}}),n("polygon",{attrs:{filter:"url(#"+t.filterId+")",fill:t.mergedColor[0],opacity:"1",points:"\n "+((t.width-t.titleWidth)/2-10)+", 37 "+((t.width-t.titleWidth)/2-31)+", 37\n "+((t.width-t.titleWidth)/2-25)+", 46 "+((t.width-t.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(#"+t.filterId+")",fill:t.mergedColor[0],opacity:"0.7",points:"\n "+((t.width-t.titleWidth)/2-40)+", 37 "+((t.width-t.titleWidth)/2-61)+", 37\n "+((t.width-t.titleWidth)/2-55)+", 46 "+((t.width-t.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(#"+t.filterId+")",fill:t.mergedColor[0],opacity:"0.5",points:"\n "+((t.width-t.titleWidth)/2-70)+", 37 "+((t.width-t.titleWidth)/2-91)+", 37\n "+((t.width-t.titleWidth)/2-85)+", 46 "+((t.width-t.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(#"+t.filterId+")",fill:t.mergedColor[0],opacity:"1",points:"\n "+((t.width+t.titleWidth)/2+30)+", 37 "+((t.width+t.titleWidth)/2+9)+", 37\n "+((t.width+t.titleWidth)/2+3)+", 46 "+((t.width+t.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(#"+t.filterId+")",fill:t.mergedColor[0],opacity:"0.7",points:"\n "+((t.width+t.titleWidth)/2+60)+", 37 "+((t.width+t.titleWidth)/2+39)+", 37\n "+((t.width+t.titleWidth)/2+33)+", 46 "+((t.width+t.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(#"+t.filterId+")",fill:t.mergedColor[0],opacity:"0.5",points:"\n "+((t.width+t.titleWidth)/2+90)+", 37 "+((t.width+t.titleWidth)/2+69)+", 37\n "+((t.width+t.titleWidth)/2+63)+", 46 "+((t.width+t.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:""+t.width/2,y:"32",fill:"#fff","font-size":"18","text-anchor":"middle","dominant-baseline":"middle"}},[t._v(" "+t._s(t.title)+" ")]),n("polygon",{attrs:{fill:t.mergedColor[0],filter:"url(#"+t.filterId+")",points:"\n 7, "+(53+(t.height-167)/2)+" 11, "+(57+(t.height-167)/2)+"\n 11, "+(133+(t.height-167)/2)+" 7, "+(137+(t.height-167)/2)+"\n "}}),n("polygon",{attrs:{fill:t.mergedColor[0],filter:"url(#"+t.filterId+")",points:"\n "+(t.width-7)+", "+(53+(t.height-167)/2)+" "+(t.width-11)+", "+(57+(t.height-167)/2)+"\n "+(t.width-11)+", "+(133+(t.height-167)/2)+" "+(t.width-7)+", "+(137+(t.height-167)/2)+"\n "}})]),n("div",{staticClass:"border-box-content"},[t._t("default")],2)])}),G=[],H=(n("a9e3"),n("a870")),W={name:"DvBorderBox11",mixins:[j],props:{color:{type:Array,default:function(){return[]}},titleWidth:{type:Number,default:250},title:{type:String,default:""},backgroundColor:{type:String,default:"transparent"}},data:function(){var t=P();return{ref:"border-box-11",filterId:"border-box-11-filterId-".concat(t),defaultColor:["#8aaafb","#1f33a2"],mergedColor:[]}},watch:{color:function(){var t=this.mergeColor;t()}},methods:{mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t||[])},fade:H["fade"]},mounted:function(){var t=this.mergeColor;t()}},U=W,$=Object(m["a"])(U,q,G,!1,null,null,null),Y=($.exports,n("3c0e"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:t.ref,staticClass:"dv-border-box-12"},[n("svg",{staticClass:"dv-border-svg-container",attrs:{width:t.width,height:t.height}},[n("defs",[n("filter",{attrs:{id:t.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":t.fade(t.mergedColor[1]||t.defaultColor[1],70),result:"glowColor"}},[n("animate",{attrs:{attributeName:"flood-color",values:"\n "+t.fade(t.mergedColor[1]||t.defaultColor[1],70)+";\n "+t.fade(t.mergedColor[1]||t.defaultColor[1],30)+";\n "+t.fade(t.mergedColor[1]||t.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)]),t.width&&t.height?n("path",{attrs:{fill:t.backgroundColor,"stroke-width":"2",stroke:t.mergedColor[0],d:"\n M15 5 L "+(t.width-15)+" 5 Q "+(t.width-5)+" 5, "+(t.width-5)+" 15\n L "+(t.width-5)+" "+(t.height-15)+" Q "+(t.width-5)+" "+(t.height-5)+", "+(t.width-15)+" "+(t.height-5)+"\n L 15, "+(t.height-5)+" Q 5 "+(t.height-5)+" 5 "+(t.height-15)+" L 5 15\n Q 5 5 15 5\n "}}):t._e(),n("path",{attrs:{"stroke-width":"2",fill:"transparent","stroke-linecap":"round",filter:"url(#"+t.filterId+")",stroke:t.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(#"+t.filterId+")",stroke:t.mergedColor[1],d:"M "+(t.width-20)+" 5 L "+(t.width-15)+" 5 Q "+(t.width-5)+" 5 "+(t.width-5)+" 15 L "+(t.width-5)+" 20"}}),n("path",{attrs:{"stroke-width":"2",fill:"transparent","stroke-linecap":"round",filter:"url(#"+t.filterId+")",stroke:t.mergedColor[1],d:"\n M "+(t.width-20)+" "+(t.height-5)+" L "+(t.width-15)+" "+(t.height-5)+"\n Q "+(t.width-5)+" "+(t.height-5)+" "+(t.width-5)+" "+(t.height-15)+"\n L "+(t.width-5)+" "+(t.height-20)+"\n "}}),n("path",{attrs:{"stroke-width":"2",fill:"transparent","stroke-linecap":"round",filter:"url(#"+t.filterId+")",stroke:t.mergedColor[1],d:"\n M 20 "+(t.height-5)+" L 15 "+(t.height-5)+"\n Q 5 "+(t.height-5)+" 5 "+(t.height-15)+"\n L 5 "+(t.height-20)+"\n "}})]),n("div",{staticClass:"border-box-content"},[t._t("default")],2)])}),X=[],K={name:"DvBorderBox12",mixins:[j],props:{color:{type:Array,default:function(){return[]}},backgroundColor:{type:String,default:"transparent"}},data:function(){var t=P();return{ref:"border-box-12",filterId:"borderr-box-12-filterId-".concat(t),defaultColor:["#2e6099","#7ce7fd"],mergedColor:[]}},watch:{color:function(){var t=this.mergeColor;t()}},methods:{mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t||[])},fade:H["fade"]},mounted:function(){var t=this.mergeColor;t()}},Z=K,Q=Object(m["a"])(Z,Y,X,!1,null,null,null),J=(Q.exports,n("470c"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:t.ref,staticClass:"dv-border-box-13"},[n("svg",{staticClass:"dv-border-svg-container",attrs:{width:t.width,height:t.height}},[n("path",{attrs:{fill:t.backgroundColor,stroke:t.mergedColor[0],d:"\n M 5 20 L 5 10 L 12 3 L 60 3 L 68 10\n L "+(t.width-20)+" 10 L "+(t.width-5)+" 25\n L "+(t.width-5)+" "+(t.height-5)+" L 20 "+(t.height-5)+"\n L 5 "+(t.height-20)+" L 5 20\n "}}),n("path",{attrs:{fill:"transparent","stroke-width":"3","stroke-linecap":"round","stroke-dasharray":"10, 5",stroke:t.mergedColor[0],d:"M 16 9 L 61 9"}}),n("path",{attrs:{fill:"transparent",stroke:t.mergedColor[1],d:"M 5 20 L 5 10 L 12 3 L 60 3 L 68 10"}}),n("path",{attrs:{fill:"transparent",stroke:t.mergedColor[1],d:"M "+(t.width-5)+" "+(t.height-30)+" L "+(t.width-5)+" "+(t.height-5)+" L "+(t.width-30)+" "+(t.height-5)}})]),n("div",{staticClass:"border-box-content"},[t._t("default")],2)])}),tt=[],et={name:"DvBorderBox13",mixins:[j],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 t=this.mergeColor;t()}},methods:{mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t||[])}},mounted:function(){var t=this.mergeColor;t()}},nt=et,rt=Object(m["a"])(nt,J,tt,!1,null,null,null),it=rt.exports,ot=function(t){t.component(it.name,it)},at=(n("b72d"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:t.ref,staticClass:"dv-border-box-2"},[n("svg",{staticClass:"dv-border-svg-container",attrs:{width:t.width,height:t.height}},[n("polygon",{attrs:{fill:t.backgroundColor,points:"\n 7, 7 "+(t.width-7)+", 7 "+(t.width-7)+", "+(t.height-7)+" 7, "+(t.height-7)+"\n "}}),n("polyline",{attrs:{stroke:t.mergedColor[0],points:"2, 2 "+(t.width-2)+" ,2 "+(t.width-2)+", "+(t.height-2)+" 2, "+(t.height-2)+" 2, 2"}}),n("polyline",{attrs:{stroke:t.mergedColor[1],points:"6, 6 "+(t.width-6)+", 6 "+(t.width-6)+", "+(t.height-6)+" 6, "+(t.height-6)+" 6, 6"}}),n("circle",{attrs:{fill:t.mergedColor[0],cx:"11",cy:"11",r:"1"}}),n("circle",{attrs:{fill:t.mergedColor[0],cx:t.width-11,cy:"11",r:"1"}}),n("circle",{attrs:{fill:t.mergedColor[0],cx:t.width-11,cy:t.height-11,r:"1"}}),n("circle",{attrs:{fill:t.mergedColor[0],cx:"11",cy:t.height-11,r:"1"}})]),n("div",{staticClass:"border-box-content"},[t._t("default")],2)])}),st=[],lt={name:"DvBorderBox2",mixins:[j],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 t=this.mergeColor;t()}},methods:{mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t||[])}},mounted:function(){var t=this.mergeColor;t()}},ut=lt,ct=Object(m["a"])(ut,at,st,!1,null,null,null),ht=(ct.exports,n("1e4c"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:t.ref,staticClass:"dv-border-box-3"},[n("svg",{staticClass:"dv-border-svg-container",attrs:{width:t.width,height:t.height}},[n("polygon",{attrs:{fill:t.backgroundColor,points:"\n 23, 23 "+(t.width-24)+", 23 "+(t.width-24)+", "+(t.height-24)+" 23, "+(t.height-24)+"\n "}}),n("polyline",{staticClass:"dv-bb3-line1",attrs:{stroke:t.mergedColor[0],points:"4, 4 "+(t.width-22)+" ,4 "+(t.width-22)+", "+(t.height-22)+" 4, "+(t.height-22)+" 4, 4"}}),n("polyline",{staticClass:"dv-bb3-line2",attrs:{stroke:t.mergedColor[1],points:"10, 10 "+(t.width-16)+", 10 "+(t.width-16)+", "+(t.height-16)+" 10, "+(t.height-16)+" 10, 10"}}),n("polyline",{staticClass:"dv-bb3-line2",attrs:{stroke:t.mergedColor[1],points:"16, 16 "+(t.width-10)+", 16 "+(t.width-10)+", "+(t.height-10)+" 16, "+(t.height-10)+" 16, 16"}}),n("polyline",{staticClass:"dv-bb3-line2",attrs:{stroke:t.mergedColor[1],points:"22, 22 "+(t.width-4)+", 22 "+(t.width-4)+", "+(t.height-4)+" 22, "+(t.height-4)+" 22, 22"}})]),n("div",{staticClass:"border-box-content"},[t._t("default")],2)])}),ft=[],dt={name:"DvBorderBox3",mixins:[j],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 t=this.mergeColor;t()}},methods:{mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t||[])}},mounted:function(){var t=this.mergeColor;t()}},pt=dt,gt=Object(m["a"])(pt,ht,ft,!1,null,null,null),vt=(gt.exports,n("1dac"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:t.ref,staticClass:"dv-border-box-4"},[n("svg",{class:"dv-border-svg-container "+(t.reverse&&"dv-reverse"),attrs:{width:t.width,height:t.height}},[n("polygon",{attrs:{fill:t.backgroundColor,points:"\n "+(t.width-15)+", 22 170, 22 150, 7 40, 7 28, 21 32, 24\n 16, 42 16, "+(t.height-32)+" 41, "+(t.height-7)+" "+(t.width-15)+", "+(t.height-7)+"\n "}}),n("polyline",{staticClass:"dv-bb4-line-1",attrs:{stroke:t.mergedColor[0],points:"145, "+(t.height-5)+" 40, "+(t.height-5)+" 10, "+(t.height-35)+"\n 10, 40 40, 5 150, 5 170, 20 "+(t.width-15)+", 20"}}),n("polyline",{staticClass:"dv-bb4-line-2",attrs:{stroke:t.mergedColor[1],points:"245, "+(t.height-1)+" 36, "+(t.height-1)+" 14, "+(t.height-23)+"\n 14, "+(t.height-100)}}),n("polyline",{staticClass:"dv-bb4-line-3",attrs:{stroke:t.mergedColor[0],points:"7, "+(t.height-40)+" 7, "+(t.height-75)}}),n("polyline",{staticClass:"dv-bb4-line-4",attrs:{stroke:t.mergedColor[0],points:"28, 24 13, 41 13, 64"}}),n("polyline",{staticClass:"dv-bb4-line-5",attrs:{stroke:t.mergedColor[0],points:"5, 45 5, 140"}}),n("polyline",{staticClass:"dv-bb4-line-6",attrs:{stroke:t.mergedColor[1],points:"14, 75 14, 180"}}),n("polyline",{staticClass:"dv-bb4-line-7",attrs:{stroke:t.mergedColor[1],points:"55, 11 147, 11 167, 26 250, 26"}}),n("polyline",{staticClass:"dv-bb4-line-8",attrs:{stroke:t.mergedColor[1],points:"158, 5 173, 16"}}),n("polyline",{staticClass:"dv-bb4-line-9",attrs:{stroke:t.mergedColor[0],points:"200, 17 "+(t.width-10)+", 17"}}),n("polyline",{staticClass:"dv-bb4-line-10",attrs:{stroke:t.mergedColor[1],points:"385, 17 "+(t.width-10)+", 17"}})]),n("div",{staticClass:"border-box-content"},[t._t("default")],2)])}),yt=[],mt={name:"DvBorderBox4",mixins:[j],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 t=this.mergeColor;t()}},methods:{mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t||[])}},mounted:function(){var t=this.mergeColor;t()}},bt=mt,_t=Object(m["a"])(bt,vt,yt,!1,null,null,null),xt=(_t.exports,n("042d"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:t.ref,staticClass:"dv-border-box-5"},[n("svg",{class:"dv-border-svg-container "+(t.reverse&&"dv-reverse"),attrs:{width:t.width,height:t.height}},[n("polygon",{attrs:{fill:t.backgroundColor,points:"\n 10, 22 "+(t.width-22)+", 22 "+(t.width-22)+", "+(t.height-86)+" "+(t.width-84)+", "+(t.height-24)+" 10, "+(t.height-24)+"\n "}}),n("polyline",{staticClass:"dv-bb5-line-1",attrs:{stroke:t.mergedColor[0],points:"8, 5 "+(t.width-5)+", 5 "+(t.width-5)+", "+(t.height-100)+"\n "+(t.width-100)+", "+(t.height-5)+" 8, "+(t.height-5)+" 8, 5"}}),n("polyline",{staticClass:"dv-bb5-line-2",attrs:{stroke:t.mergedColor[1],points:"3, 5 "+(t.width-20)+", 5 "+(t.width-20)+", "+(t.height-60)+"\n "+(t.width-74)+", "+(t.height-5)+" 3, "+(t.height-5)+" 3, 5"}}),n("polyline",{staticClass:"dv-bb5-line-3",attrs:{stroke:t.mergedColor[1],points:"50, 13 "+(t.width-35)+", 13"}}),n("polyline",{staticClass:"dv-bb5-line-4",attrs:{stroke:t.mergedColor[1],points:"15, 20 "+(t.width-35)+", 20"}}),n("polyline",{staticClass:"dv-bb5-line-5",attrs:{stroke:t.mergedColor[1],points:"15, "+(t.height-20)+" "+(t.width-110)+", "+(t.height-20)}}),n("polyline",{staticClass:"dv-bb5-line-6",attrs:{stroke:t.mergedColor[1],points:"15, "+(t.height-13)+" "+(t.width-110)+", "+(t.height-13)}})]),n("div",{staticClass:"border-box-content"},[t._t("default")],2)])}),wt=[],St={name:"DvBorderBox5",mixins:[j],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 t=this.mergeColor;t()}},methods:{mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t||[])}},mounted:function(){var t=this.mergeColor;t()}},Ot=St,Ct=Object(m["a"])(Ot,xt,wt,!1,null,null,null),kt=(Ct.exports,n("4e86"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:t.ref,staticClass:"dv-border-box-6"},[n("svg",{staticClass:"dv-border-svg-container",attrs:{width:t.width,height:t.height}},[n("polygon",{attrs:{fill:t.backgroundColor,points:"\n 9, 7 "+(t.width-9)+", 7 "+(t.width-9)+", "+(t.height-7)+" 9, "+(t.height-7)+"\n "}}),n("circle",{attrs:{fill:t.mergedColor[1],cx:"5",cy:"5",r:"2"}}),n("circle",{attrs:{fill:t.mergedColor[1],cx:t.width-5,cy:"5",r:"2"}}),n("circle",{attrs:{fill:t.mergedColor[1],cx:t.width-5,cy:t.height-5,r:"2"}}),n("circle",{attrs:{fill:t.mergedColor[1],cx:"5",cy:t.height-5,r:"2"}}),n("polyline",{attrs:{stroke:t.mergedColor[0],points:"10, 4 "+(t.width-10)+", 4"}}),n("polyline",{attrs:{stroke:t.mergedColor[0],points:"10, "+(t.height-4)+" "+(t.width-10)+", "+(t.height-4)}}),n("polyline",{attrs:{stroke:t.mergedColor[0],points:"5, 70 5, "+(t.height-70)}}),n("polyline",{attrs:{stroke:t.mergedColor[0],points:t.width-5+", 70 "+(t.width-5)+", "+(t.height-70)}}),n("polyline",{attrs:{stroke:t.mergedColor[0],points:"3, 10, 3, 50"}}),n("polyline",{attrs:{stroke:t.mergedColor[0],points:"7, 30 7, 80"}}),n("polyline",{attrs:{stroke:t.mergedColor[0],points:t.width-3+", 10 "+(t.width-3)+", 50"}}),n("polyline",{attrs:{stroke:t.mergedColor[0],points:t.width-7+", 30 "+(t.width-7)+", 80"}}),n("polyline",{attrs:{stroke:t.mergedColor[0],points:"3, "+(t.height-10)+" 3, "+(t.height-50)}}),n("polyline",{attrs:{stroke:t.mergedColor[0],points:"7, "+(t.height-30)+" 7, "+(t.height-80)}}),n("polyline",{attrs:{stroke:t.mergedColor[0],points:t.width-3+", "+(t.height-10)+" "+(t.width-3)+", "+(t.height-50)}}),n("polyline",{attrs:{stroke:t.mergedColor[0],points:t.width-7+", "+(t.height-30)+" "+(t.width-7)+", "+(t.height-80)}})]),n("div",{staticClass:"border-box-content"},[t._t("default")],2)])}),At=[],Mt={name:"DvBorderBox6",mixins:[j],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 t=this.mergeColor;t()}},methods:{mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t||[])}},mounted:function(){var t=this.mergeColor;t()}},Tt=Mt,It=Object(m["a"])(Tt,kt,At,!1,null,null,null),Et=(It.exports,n("3648"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:t.ref,staticClass:"dv-border-box-7",style:"box-shadow: inset 0 0 40px "+t.mergedColor[0]+"; border: 1px solid "+t.mergedColor[0]+"; background-color: "+t.backgroundColor},[n("svg",{staticClass:"dv-border-svg-container",attrs:{width:t.width,height:t.height}},[n("polyline",{staticClass:"dv-bb7-line-width-2",attrs:{stroke:t.mergedColor[0],points:"0, 25 0, 0 25, 0"}}),n("polyline",{staticClass:"dv-bb7-line-width-2",attrs:{stroke:t.mergedColor[0],points:t.width-25+", 0 "+t.width+", 0 "+t.width+", 25"}}),n("polyline",{staticClass:"dv-bb7-line-width-2",attrs:{stroke:t.mergedColor[0],points:t.width-25+", "+t.height+" "+t.width+", "+t.height+" "+t.width+", "+(t.height-25)}}),n("polyline",{staticClass:"dv-bb7-line-width-2",attrs:{stroke:t.mergedColor[0],points:"0, "+(t.height-25)+" 0, "+t.height+" 25, "+t.height}}),n("polyline",{staticClass:"dv-bb7-line-width-5",attrs:{stroke:t.mergedColor[1],points:"0, 10 0, 0 10, 0"}}),n("polyline",{staticClass:"dv-bb7-line-width-5",attrs:{stroke:t.mergedColor[1],points:t.width-10+", 0 "+t.width+", 0 "+t.width+", 10"}}),n("polyline",{staticClass:"dv-bb7-line-width-5",attrs:{stroke:t.mergedColor[1],points:t.width-10+", "+t.height+" "+t.width+", "+t.height+" "+t.width+", "+(t.height-10)}}),n("polyline",{staticClass:"dv-bb7-line-width-5",attrs:{stroke:t.mergedColor[1],points:"0, "+(t.height-10)+" 0, "+t.height+" 10, "+t.height}})]),n("div",{staticClass:"border-box-content"},[t._t("default")],2)])}),Pt=[],jt={name:"DvBorderBox7",mixins:[j],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 t=this.mergeColor;t()}},methods:{mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t||[])}},mounted:function(){var t=this.mergeColor;t()}},Lt=jt,Dt=Object(m["a"])(Lt,Et,Pt,!1,null,null,null),Rt=(Dt.exports,n("733c"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:t.ref,staticClass:"dv-border-box-8"},[n("svg",{staticClass:"dv-border-svg-container",attrs:{width:t.width,height:t.height}},[n("defs",[n("path",{attrs:{id:t.path,d:t.pathD,fill:"transparent"}}),n("radialGradient",{attrs:{id:t.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:t.mask}},[n("circle",{attrs:{cx:"0",cy:"0",r:"150",fill:"url(#"+t.gradient+")"}},[n("animateMotion",{attrs:{dur:t.dur+"s",path:t.pathD,rotate:"auto",repeatCount:"indefinite"}})],1)])],1),n("polygon",{attrs:{fill:t.backgroundColor,points:"5, 5 "+(t.width-5)+", 5 "+(t.width-5)+" "+(t.height-5)+" 5, "+(t.height-5)}}),n("use",{attrs:{stroke:t.mergedColor[0],"stroke-width":"1","xlink:href":"#"+t.path}}),n("use",{attrs:{stroke:t.mergedColor[1],"stroke-width":"3","xlink:href":"#"+t.path,mask:"url(#"+t.mask+")"}},[n("animate",{attrs:{attributeName:"stroke-dasharray",from:"0, "+t.length,to:t.length+", 0",dur:t.dur+"s",repeatCount:"indefinite"}})])]),n("div",{staticClass:"border-box-content"},[t._t("default")],2)])}),Nt=[],Bt=(n("99af"),{name:"DvBorderBox8",mixins:[j],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 t=P();return{ref:"border-box-8",path:"border-box-8-path-".concat(t),gradient:"border-box-8-gradient-".concat(t),mask:"border-box-8-mask-".concat(t),defaultColor:["#235fa7","#4fd2dd"],mergedColor:[]}},computed:{length:function(){var t=this.width,e=this.height;return 2*(t+e-5)},pathD:function(){var t=this.reverse,e=this.width,n=this.height;return t?"M 2.5, 2.5 L 2.5, ".concat(n-2.5," L ").concat(e-2.5,", ").concat(n-2.5," L ").concat(e-2.5,", 2.5 L 2.5, 2.5"):"M2.5, 2.5 L".concat(e-2.5,", 2.5 L").concat(e-2.5,", ").concat(n-2.5," L2.5, ").concat(n-2.5," L2.5, 2.5")}},watch:{color:function(){var t=this.mergeColor;t()}},methods:{mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t||[])}},mounted:function(){var t=this.mergeColor;t()}}),Ft=Bt,zt=Object(m["a"])(Ft,Rt,Nt,!1,null,null,null),Vt=zt.exports,qt=function(t){t.component(Vt.name,Vt)},Gt=(n("6fc2"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:t.ref,staticClass:"dv-border-box-9"},[n("svg",{staticClass:"dv-border-svg-container",attrs:{width:t.width,height:t.height}},[n("defs",[n("linearGradient",{attrs:{id:t.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":t.mergedColor[0]}},[n("animate",{attrs:{attributeName:"stop-color",values:t.mergedColor[0]+";"+t.mergedColor[1]+";"+t.mergedColor[0],dur:"10s",begin:"0s",repeatCount:"indefinite"}})]),n("stop",{attrs:{offset:"100%","stop-color":t.mergedColor[1]}},[n("animate",{attrs:{attributeName:"stop-color",values:t.mergedColor[1]+";"+t.mergedColor[0]+";"+t.mergedColor[1],dur:"10s",begin:"0s",repeatCount:"indefinite"}})])],1),n("mask",{attrs:{id:t.maskId}},[n("polyline",{attrs:{stroke:"#fff","stroke-width":"3",fill:"transparent",points:"8, "+.4*t.height+" 8, 3, "+(.4*t.width+7)+", 3"}}),n("polyline",{attrs:{fill:"#fff",points:"8, "+.15*t.height+" 8, 3, "+(.1*t.width+7)+", 3\n "+.1*t.width+", 8 14, 8 14, "+(.15*t.height-7)+"\n "}}),n("polyline",{attrs:{stroke:"#fff","stroke-width":"3",fill:"transparent",points:.5*t.width+", 3 "+(t.width-3)+", 3, "+(t.width-3)+", "+.25*t.height}}),n("polyline",{attrs:{fill:"#fff",points:"\n "+.52*t.width+", 3 "+.58*t.width+", 3\n "+(.58*t.width-7)+", 9 "+(.52*t.width+7)+", 9\n "}}),n("polyline",{attrs:{fill:"#fff",points:"\n "+.9*t.width+", 3 "+(t.width-3)+", 3 "+(t.width-3)+", "+.1*t.height+"\n "+(t.width-9)+", "+(.1*t.height-7)+" "+(t.width-9)+", 9 "+(.9*t.width+7)+", 9\n "}}),n("polyline",{attrs:{stroke:"#fff","stroke-width":"3",fill:"transparent",points:"8, "+.5*t.height+" 8, "+(t.height-3)+" "+(.3*t.width+7)+", "+(t.height-3)}}),n("polyline",{attrs:{fill:"#fff",points:"\n 8, "+.55*t.height+" 8, "+.7*t.height+"\n 2, "+(.7*t.height-7)+" 2, "+(.55*t.height+7)+"\n "}}),n("polyline",{attrs:{stroke:"#fff","stroke-width":"3",fill:"transparent",points:.35*t.width+", "+(t.height-3)+" "+(t.width-3)+", "+(t.height-3)+" "+(t.width-3)+", "+.35*t.height}}),n("polyline",{attrs:{fill:"#fff",points:"\n "+.92*t.width+", "+(t.height-3)+" "+(t.width-3)+", "+(t.height-3)+" "+(t.width-3)+", "+.8*t.height+"\n "+(t.width-9)+", "+(.8*t.height+7)+" "+(t.width-9)+", "+(t.height-9)+" "+(.92*t.width+7)+", "+(t.height-9)+"\n "}})])],1),n("polygon",{attrs:{fill:t.backgroundColor,points:"\n 15, 9 "+(.1*t.width+1)+", 9 "+(.1*t.width+4)+", 6 "+(.52*t.width+2)+", 6\n "+(.52*t.width+6)+", 10 "+(.58*t.width-7)+", 10 "+(.58*t.width-2)+", 6\n "+(.9*t.width+2)+", 6 "+(.9*t.width+6)+", 10 "+(t.width-10)+", 10 "+(t.width-10)+", "+(.1*t.height-6)+"\n "+(t.width-6)+", "+(.1*t.height-1)+" "+(t.width-6)+", "+(.8*t.height+1)+" "+(t.width-10)+", "+(.8*t.height+6)+"\n "+(t.width-10)+", "+(t.height-10)+" "+(.92*t.width+7)+", "+(t.height-10)+" "+(.92*t.width+2)+", "+(t.height-6)+"\n 11, "+(t.height-6)+" 11, "+(.15*t.height-2)+" 15, "+(.15*t.height-7)+"\n "}}),n("rect",{attrs:{x:"0",y:"0",width:t.width,height:t.height,fill:"url(#"+t.gradientId+")",mask:"url(#"+t.maskId+")"}})]),n("div",{staticClass:"border-box-content"},[t._t("default")],2)])}),Ht=[],Wt={name:"DvBorderBox9",mixins:[j],props:{color:{type:Array,default:function(){return[]}},backgroundColor:{type:String,default:"transparent"}},data:function(){var t=P();return{ref:"border-box-9",gradientId:"border-box-9-gradient-".concat(t),maskId:"border-box-9-mask-".concat(t),defaultColor:["#11eefd","#0078d2"],mergedColor:[]}},watch:{color:function(){var t=this.mergeColor;t()}},methods:{mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t||[])}},mounted:function(){var t=this.mergeColor;t()}},Ut=Wt,$t=Object(m["a"])(Ut,Gt,Ht,!1,null,null,null),Yt=($t.exports,n("335d"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"dv-capsule-chart"},[t.mergedConfig?[n("div",{staticClass:"label-column"},[t._l(t.mergedConfig.data,(function(e){return n("div",{key:e.name},[t._v(t._s(e.name))])})),n("div")],2),n("div",{staticClass:"capsule-container"},[t._l(t.capsuleLength,(function(e,r){return n("div",{key:r,staticClass:"capsule-item"},[n("div",{staticClass:"capsule-item-column",style:"width: "+100*e+"%; background-color: "+t.mergedConfig.colors[r%t.mergedConfig.colors.length]+";"},[t.mergedConfig.showValue?n("div",{staticClass:"capsule-item-value"},[t._v(t._s(t.capsuleValue[r]))]):t._e()])])})),n("div",{staticClass:"unit-label"},t._l(t.labelData,(function(e,r){return n("div",{key:e+r},[t._v(t._s(e))])})),0)],2),t.mergedConfig.unit?n("div",{staticClass:"unit-text"},[t._v(t._s(t.mergedConfig.unit))]):t._e()]:t._e()],2)}),Xt=[],Kt=(n("a630"),n("3ca3"),n("6062"),n("ddb0"),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 t=this.calcData;t()}},methods:{calcData:function(){var t=this.mergeConfig,e=this.calcCapsuleLengthAndLabelData;t(),e()},mergeConfig:function(){var t=this.config,e=this.defaultConfig;this.mergedConfig=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t||{})},calcCapsuleLengthAndLabelData:function(){var t=this.mergedConfig.data;if(t.length){var e=t.map((function(t){var e=t.value;return e})),n=Math.max.apply(Math,Object(o["a"])(e));this.capsuleValue=e,this.capsuleLength=e.map((function(t){return n?t/n:0}));var r=n/5,i=Array.from(new Set(new Array(6).fill(0).map((function(t,e){return Math.ceil(e*r)}))));this.labelData=i,this.labelDataLength=Array.from(i).map((function(t){return n?t/n:0}))}}},mounted:function(){var t=this.calcData;t()}}),Zt=Kt,Qt=Object(m["a"])(Zt,Yt,Xt,!1,null,null,null),Jt=Qt.exports,te=function(t){t.component(Jt.name,Jt)},ee=(n("8261"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:t.ref,staticClass:"dv-charts-container"},[n("div",{ref:t.chartRef,staticClass:"charts-canvas-container"})])}),ne=[],re={name:"DvCharts",mixins:[j],props:{option:{type:Object,default:function(){return{}}}},data:function(){var t=P();return{ref:"charts-container-".concat(t),chartRef:"chart-".concat(t),chart:null}},watch:{option:function(){var t=this.chart,e=this.option;t&&(e||(e={}),t.setOption(e,!0))}},methods:{afterAutoResizeMixinInit:function(){var t=this.initChart;t()},initChart:function(){var t=this.$refs,e=this.chartRef,n=this.option,r=this.chart=new l.a(t[e]);n&&r.setOption(n)},onResize:function(){var t=this.chart;t&&t.resize()}}},ie=re,oe=Object(m["a"])(ie,ee,ne,!1,null,null,null),ae=(oe.exports,n("7ed3"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:t.ref,staticClass:"dv-conical-column-chart"},[n("svg",{attrs:{width:t.width,height:t.height}},t._l(t.column,(function(e,r){return n("g",{key:r},[n("path",{attrs:{d:e.d,fill:t.mergedConfig.columnColor}}),n("text",{style:"fontSize:"+t.mergedConfig.fontSize+"px",attrs:{fill:t.mergedConfig.textColor,x:e.x,y:t.height-4}},[t._v(" "+t._s(e.name)+" ")]),t.mergedConfig.img.length?n("image",{attrs:{"xlink:href":t.mergedConfig.img[r%t.mergedConfig.img.length],width:t.mergedConfig.imgSideLength,height:t.mergedConfig.imgSideLength,x:e.x-t.mergedConfig.imgSideLength/2,y:e.y-t.mergedConfig.imgSideLength}}):t._e(),t.mergedConfig.showValue?n("text",{style:"fontSize:"+t.mergedConfig.fontSize+"px",attrs:{fill:t.mergedConfig.textColor,x:e.x,y:e.textY}},[t._v(" "+t._s(e.value)+" ")]):t._e()])})),0)])}),se=[],le=(n("4e82"),{name:"DvConicalColumnChart",mixins:[j],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 t=this.calcData;t()}},methods:{afterAutoResizeMixinInit:function(){var t=this.calcData;t()},onResize:function(){var t=this.calcData;t()},calcData:function(){var t=this.mergeConfig,e=this.initData,n=this.calcSVGPath;t(),e(),n()},mergeConfig:function(){var t=this.defaultConfig,e=this.config;this.mergedConfig=Object(p["deepMerge"])(Object(g["deepClone"])(t,!0),e||{})},initData:function(){var t=this.mergedConfig,e=t.data;e=Object(g["deepClone"])(e,!0),e.sort((function(t,e){var n=t.value,r=e.value;return n>r?-1:n<r?1:n===r?0:void 0}));var n=e[0]?e[0].value:10;e=e.map((function(t){return Object(a["a"])(Object(a["a"])({},t),{},{percent:t.value/n})})),t.data=e},calcSVGPath:function(){var t=this.mergedConfig,e=this.width,n=this.height,r=t.imgSideLength,i=t.fontSize,o=t.data,s=o.length,l=e/(s+1),u=n-r-i-5,c=n-i-5;this.column=o.map((function(t,e){var n=t.percent,r=l*(e+1),o=l*e,s=l*(e+2),h=c-u*n,f=u*n*.6+h,d="\n M".concat(o,", ").concat(c,"\n Q").concat(r,", ").concat(f," ").concat(r,",").concat(h,"\n M").concat(r,",").concat(h,"\n Q").concat(r,", ").concat(f," ").concat(s,",").concat(c,"\n L").concat(o,", ").concat(c,"\n Z\n "),p=(c+h)/2+i/2;return Object(a["a"])(Object(a["a"])({},t),{},{d:d,x:r,y:h,textY:p})}))}}}),ue=le,ce=Object(m["a"])(ue,ae,se,!1,null,null,null),he=(ce.exports,n("11b09"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:t.ref,staticClass:"dv-decoration-1"},[n("svg",{style:"transform:scale("+t.svgScale[0]+","+t.svgScale[1]+");",attrs:{width:t.svgWH[0]+"px",height:t.svgWH[1]+"px"}},[t._l(t.points,(function(e,r){return[Math.random()>.6?n("rect",{key:r,attrs:{fill:t.mergedColor[0],x:e[0]-t.halfPointSideLength,y:e[1]-t.halfPointSideLength,width:t.pointSideLength,height:t.pointSideLength}},[Math.random()>.6?n("animate",{attrs:{attributeName:"fill",values:t.mergedColor[0]+";transparent",dur:"1s",begin:2*Math.random(),repeatCount:"indefinite"}}):t._e()]):t._e()]})),t.rects[0]?n("rect",{attrs:{fill:t.mergedColor[1],x:t.rects[0][0]-t.pointSideLength,y:t.rects[0][1]-t.pointSideLength,width:2*t.pointSideLength,height:2*t.pointSideLength}},[n("animate",{attrs:{attributeName:"width",values:"0;"+2*t.pointSideLength,dur:"2s",repeatCount:"indefinite"}}),n("animate",{attrs:{attributeName:"height",values:"0;"+2*t.pointSideLength,dur:"2s",repeatCount:"indefinite"}}),n("animate",{attrs:{attributeName:"x",values:t.rects[0][0]+";"+(t.rects[0][0]-t.pointSideLength),dur:"2s",repeatCount:"indefinite"}}),n("animate",{attrs:{attributeName:"y",values:t.rects[0][1]+";"+(t.rects[0][1]-t.pointSideLength),dur:"2s",repeatCount:"indefinite"}})]):t._e(),t.rects[1]?n("rect",{attrs:{fill:t.mergedColor[1],x:t.rects[1][0]-40,y:t.rects[1][1]-t.pointSideLength,width:40,height:2*t.pointSideLength}},[n("animate",{attrs:{attributeName:"width",values:"0;40;0",dur:"2s",repeatCount:"indefinite"}}),n("animate",{attrs:{attributeName:"x",values:t.rects[1][0]+";"+(t.rects[1][0]-40)+";"+t.rects[1][0],dur:"2s",repeatCount:"indefinite"}})]):t._e()],2)])}),fe=[],de={name:"DvDecoration1",mixins:[j],props:{color:{type:Array,default:function(){return[]}}},data:function(){var t=2.5;return{ref:"decoration-1",svgWH:[200,50],svgScale:[1,1],rowNum:4,rowPoints:20,pointSideLength:t,halfPointSideLength:t/2,points:[],rects:[],defaultColor:["#fff","#0de7c2"],mergedColor:[]}},watch:{color:function(){var t=this.mergeColor;t()}},methods:{afterAutoResizeMixinInit:function(){var t=this.calcSVGData;t()},calcSVGData:function(){var t=this.calcPointsPosition,e=this.calcRectsPosition,n=this.calcScale;t(),e(),n()},calcPointsPosition:function(){var t=this.svgWH,e=this.rowNum,n=this.rowPoints,r=Object(h["a"])(t,2),i=r[0],a=r[1],s=i/(n+1),l=a/(e+1),u=new Array(e).fill(0).map((function(t,e){return new Array(n).fill(0).map((function(t,n){return[s*(n+1),l*(e+1)]}))}));this.points=u.reduce((function(t,e){return[].concat(Object(o["a"])(t),Object(o["a"])(e))}),[])},calcRectsPosition:function(){var t=this.points,e=this.rowPoints,n=t[2*e-1],r=t[2*e-3];this.rects=[n,r]},calcScale:function(){var t=this.width,e=this.height,n=this.svgWH,r=Object(h["a"])(n,2),i=r[0],o=r[1];this.svgScale=[t/i,e/o]},onResize:function(){var t=this.calcSVGData;t()},mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t||[])}},mounted:function(){var t=this.mergeColor;t()}},pe=de,ge=Object(m["a"])(pe,he,fe,!1,null,null,null),ve=(ge.exports,n("c423"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:t.ref,staticClass:"dv-decoration-10"},[n("svg",{attrs:{width:t.width,height:t.height}},[n("polyline",{attrs:{stroke:t.mergedColor[1],"stroke-width":"2",points:"0, "+t.height/2+" "+t.width+", "+t.height/2}}),n("polyline",{attrs:{stroke:t.mergedColor[0],"stroke-width":"2",points:"5, "+t.height/2+" "+(.2*t.width-3)+", "+t.height/2,"stroke-dasharray":"0, "+.2*t.width,fill:"freeze"}},[n("animate",{attrs:{id:t.animationId2,attributeName:"stroke-dasharray",values:"0, "+.2*t.width+";"+.2*t.width+", 0;",dur:"3s",begin:t.animationId1+".end",fill:"freeze"}}),n("animate",{attrs:{attributeName:"stroke-dasharray",values:.2*t.width+", 0;0, "+.2*t.width,dur:"0.01s",begin:t.animationId7+".end",fill:"freeze"}})]),n("polyline",{attrs:{stroke:t.mergedColor[0],"stroke-width":"2",points:.2*t.width+3+", "+t.height/2+" "+(.8*t.width-3)+", "+t.height/2,"stroke-dasharray":"0, "+.6*t.width}},[n("animate",{attrs:{id:t.animationId4,attributeName:"stroke-dasharray",values:"0, "+.6*t.width+";"+.6*t.width+", 0",dur:"3s",begin:t.animationId3+".end + 1s",fill:"freeze"}}),n("animate",{attrs:{attributeName:"stroke-dasharray",values:.6*t.width+", 0;0, "+.6*t.width,dur:"0.01s",begin:t.animationId7+".end",fill:"freeze"}})]),n("polyline",{attrs:{stroke:t.mergedColor[0],"stroke-width":"2",points:.8*t.width+3+", "+t.height/2+" "+(t.width-5)+", "+t.height/2,"stroke-dasharray":"0, "+.2*t.width}},[n("animate",{attrs:{id:t.animationId6,attributeName:"stroke-dasharray",values:"0, "+.2*t.width+";"+.2*t.width+", 0",dur:"3s",begin:t.animationId5+".end + 1s",fill:"freeze"}}),n("animate",{attrs:{attributeName:"stroke-dasharray",values:.2*t.width+", 0;0, "+.3*t.width,dur:"0.01s",begin:t.animationId7+".end",fill:"freeze"}})]),n("circle",{attrs:{cx:"2",cy:t.height/2,r:"2",fill:t.mergedColor[1]}},[n("animate",{attrs:{id:t.animationId1,attributeName:"fill",values:t.mergedColor[1]+";"+t.mergedColor[0],begin:"0s;"+t.animationId7+".end",dur:"0.3s",fill:"freeze"}})]),n("circle",{attrs:{cx:.2*t.width,cy:t.height/2,r:"2",fill:t.mergedColor[1]}},[n("animate",{attrs:{id:t.animationId3,attributeName:"fill",values:t.mergedColor[1]+";"+t.mergedColor[0],begin:t.animationId2+".end",dur:"0.3s",fill:"freeze"}}),n("animate",{attrs:{attributeName:"fill",values:t.mergedColor[1]+";"+t.mergedColor[1],dur:"0.01s",begin:t.animationId7+".end",fill:"freeze"}})]),n("circle",{attrs:{cx:.8*t.width,cy:t.height/2,r:"2",fill:t.mergedColor[1]}},[n("animate",{attrs:{id:t.animationId5,attributeName:"fill",values:t.mergedColor[1]+";"+t.mergedColor[0],begin:t.animationId4+".end",dur:"0.3s",fill:"freeze"}}),n("animate",{attrs:{attributeName:"fill",values:t.mergedColor[1]+";"+t.mergedColor[1],dur:"0.01s",begin:t.animationId7+".end",fill:"freeze"}})]),n("circle",{attrs:{cx:t.width-2,cy:t.height/2,r:"2",fill:t.mergedColor[1]}},[n("animate",{attrs:{id:t.animationId7,attributeName:"fill",values:t.mergedColor[1]+";"+t.mergedColor[0],begin:t.animationId6+".end",dur:"0.3s",fill:"freeze"}}),n("animate",{attrs:{attributeName:"fill",values:t.mergedColor[1]+";"+t.mergedColor[1],dur:"0.01s",begin:t.animationId7+".end",fill:"freeze"}})])])])}),ye=[],me={name:"DvDecoration10",mixins:[j],props:{color:{type:Array,default:function(){return[]}}},data:function(){var t=P();return{ref:"decoration-10",animationId1:"d10ani1".concat(t),animationId2:"d10ani2".concat(t),animationId3:"d10ani3".concat(t),animationId4:"d10ani4".concat(t),animationId5:"d10ani5".concat(t),animationId6:"d10ani6".concat(t),animationId7:"d10ani7".concat(t),defaultColor:["#00c2ff","rgba(0, 194, 255, 0.3)"],mergedColor:[]}},watch:{color:function(){var t=this.mergeColor;t()}},methods:{mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t||[])}},mounted:function(){var t=this.mergeColor;t()}},be=me,_e=Object(m["a"])(be,ve,ye,!1,null,null,null),xe=(_e.exports,n("3e8a"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:t.ref,staticClass:"dv-decoration-11"},[n("svg",{attrs:{width:t.width,height:t.height}},[n("polygon",{attrs:{fill:t.fade(t.mergedColor[1]||t.defaultColor[1],10),stroke:t.mergedColor[1],points:"20 10, 25 4, 55 4 60 10"}}),n("polygon",{attrs:{fill:t.fade(t.mergedColor[1]||t.defaultColor[1],10),stroke:t.mergedColor[1],points:"20 "+(t.height-10)+", 25 "+(t.height-4)+", 55 "+(t.height-4)+" 60 "+(t.height-10)}}),n("polygon",{attrs:{fill:t.fade(t.mergedColor[1]||t.defaultColor[1],10),stroke:t.mergedColor[1],points:t.width-20+" 10, "+(t.width-25)+" 4, "+(t.width-55)+" 4 "+(t.width-60)+" 10"}}),n("polygon",{attrs:{fill:t.fade(t.mergedColor[1]||t.defaultColor[1],10),stroke:t.mergedColor[1],points:t.width-20+" "+(t.height-10)+", "+(t.width-25)+" "+(t.height-4)+", "+(t.width-55)+" "+(t.height-4)+" "+(t.width-60)+" "+(t.height-10)}}),n("polygon",{attrs:{fill:t.fade(t.mergedColor[0]||t.defaultColor[0],20),stroke:t.mergedColor[0],points:"\n 20 10, 5 "+t.height/2+" 20 "+(t.height-10)+"\n "+(t.width-20)+" "+(t.height-10)+" "+(t.width-5)+" "+t.height/2+" "+(t.width-20)+" 10\n "}}),n("polyline",{attrs:{fill:"transparent",stroke:t.fade(t.mergedColor[0]||t.defaultColor[0],70),points:"25 18, 15 "+t.height/2+" 25 "+(t.height-18)}}),n("polyline",{attrs:{fill:"transparent",stroke:t.fade(t.mergedColor[0]||t.defaultColor[0],70),points:t.width-25+" 18, "+(t.width-15)+" "+t.height/2+" "+(t.width-25)+" "+(t.height-18)}})]),n("div",{staticClass:"decoration-content"},[t._t("default")],2)])}),we=[],Se={name:"DvDecoration11",mixins:[j],props:{color:{type:Array,default:function(){return[]}}},data:function(){return{ref:"decoration-11",defaultColor:["#1a98fc","#2cf7fe"],mergedColor:[]}},watch:{color:function(){var t=this.mergeColor;t()}},methods:{mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t||[])},fade:H["fade"]},mounted:function(){var t=this.mergeColor;t()}},Oe=Se,Ce=Object(m["a"])(Oe,xe,we,!1,null,null,null),ke=(Ce.exports,n("e11f"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:t.ref,staticClass:"dv-decoration-12"},[n("svg",{attrs:{width:t.width,height:t.height}},[n("defs",[n("g",{attrs:{id:t.gId}},t._l(t.pathD,(function(e,r){return n("path",{key:e,attrs:{stroke:t.pathColor[r],"stroke-width":t.width/2,fill:"transparent",d:e}})})),0),n("radialGradient",{attrs:{id:t.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":t.fade(t.mergedColor[1]||t.defaultColor[1],30),"stop-opacity":"1"}})],1)],1),t._l(t.circleR,(function(e){return n("circle",{key:e,attrs:{r:e,cx:t.x,cy:t.y,stroke:t.mergedColor[1],"stroke-width":.5,fill:"transparent"}})})),n("circle",{attrs:{r:"1",cx:t.x,cy:t.y,stroke:"transparent",fill:"url(#"+t.gradientId+")"}},[n("animate",{attrs:{attributeName:"r",values:"1;"+t.width/2,dur:t.haloDur+"s",repeatCount:"indefinite"}}),n("animate",{attrs:{attributeName:"opacity",values:"1;0",dur:t.haloDur+"s",repeatCount:"indefinite"}})]),n("circle",{attrs:{r:"2",cx:t.x,cy:t.y,fill:t.mergedColor[1]}}),t.showSplitLine?n("g",t._l(t.splitLinePoints,(function(e){return n("polyline",{key:e,attrs:{points:e,stroke:t.mergedColor[1],"stroke-width":.5,opacity:"0.5"}})})),0):t._e(),t._l(t.arcD,(function(e){return n("path",{key:e,attrs:{d:e,stroke:t.mergedColor[1],"stroke-width":"2",fill:"transparent"}})})),n("use",{attrs:{"xlink:href":"#"+t.gId}},[n("animateTransform",{attrs:{attributeName:"transform",type:"rotate",values:"0, "+t.x+" "+t.y+";360, "+t.x+" "+t.y,dur:t.scanDur+"s",repeatCount:"indefinite"}})],1)],2),n("div",{staticClass:"decoration-content"},[t._t("default")],2)])}),Ae=[],Me=(n("a15b"),{name:"DvDecoration12",mixins:[j],props:{color:{type:Array,default:function(){return[]}},scanDur:{type:Number,default:3},haloDur:{type:Number,default:2}},data:function(){var t=P();return{ref:"decoration-12",gId:"decoration-12-g-".concat(t),gradientId:"decoration-12-gradient-".concat(t),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 t=this.mergeColor;t()}},computed:{x:function(){var t=this.width;return t/2},y:function(){var t=this.height;return t/2}},methods:{init:function(){var t=this.mergeColor,e=this.calcPathD,n=this.calcPathColor,r=this.calcCircleR,i=this.calcSplitLinePoints,o=this.calcArcD;t(),e(),n(),r(),i(),o()},mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t||[])},calcPathD:function(){var t=this.x,e=this.y,n=this.width,r=this.segment,i=this.sectorAngle,o=-Math.PI/2,a=i/r,s=n/4,l=Object(g["getCircleRadianPoint"])(t,e,s,o);this.pathD=new Array(r).fill("").map((function(n,r){var i=Object(g["getCircleRadianPoint"])(t,e,s,o-(r+1)*a).map((function(t){return t.toFixed(5)})),u="M".concat(l.join(",")," A").concat(s,", ").concat(s," 0 0 0 ").concat(i.join(","));return l=i,u}))},calcPathColor:function(){var t=Object(h["a"])(this.mergedColor,1),e=t[0],n=this.segment,r=100/(n-1);this.pathColor=new Array(n).fill(e).map((function(t,n){return Object(H["fade"])(e,100-n*r)}))},calcCircleR:function(){this.segment;var t=this.ringNum,e=this.width,n=this.ringWidth,r=(e/2-n/2)/t;this.circleR=new Array(t).fill(0).map((function(t,e){return r*(e+1)}))},calcSplitLinePoints:function(){var t=this.x,e=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,l=Object(g["getCircleRadianPoint"])(t,e,i,a),u=Object(g["getCircleRadianPoint"])(t,e,i,s);return"".concat(l.join(",")," ").concat(u.join(","))}))},calcArcD:function(){var t=this.x,e=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,l=Object(g["getCircleRadianPoint"])(t,e,i,a),u=Object(g["getCircleRadianPoint"])(t,e,i,s);return"M".concat(l.join(",")," A").concat(t,", ").concat(e," 0 0 1 ").concat(u.join(","))}))},afterAutoResizeMixinInit:function(){var t=this.init;t()},fade:H["fade"]}}),Te=Me,Ie=Object(m["a"])(Te,ke,Ae,!1,null,null,null),Ee=Ie.exports,Pe=function(t){t.component(Ee.name,Ee)},je=(n("9b06"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:t.ref,staticClass:"dv-decoration-2"},[n("svg",{attrs:{width:t.width+"px",height:t.height+"px"}},[n("rect",{attrs:{x:t.x,y:t.y,width:t.w,height:t.h,fill:t.mergedColor[0]}},[n("animate",{attrs:{attributeName:t.reverse?"height":"width",from:"0",to:t.reverse?t.height:t.width,dur:t.dur+"s",calcMode:"spline",keyTimes:"0;1",keySplines:".42,0,.58,1",repeatCount:"indefinite"}})]),n("rect",{attrs:{x:t.x,y:t.y,width:"1",height:"1",fill:t.mergedColor[1]}},[n("animate",{attrs:{attributeName:t.reverse?"y":"x",from:"0",to:t.reverse?t.height:t.width,dur:t.dur+"s",calcMode:"spline",keyTimes:"0;1",keySplines:"0.42,0,0.58,1",repeatCount:"indefinite"}})])])])}),Le=[],De={name:"DvDecoration2",mixins:[j],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 t=this.mergeColor;t()},reverse:function(){var t=this.calcSVGData;t()}},methods:{afterAutoResizeMixinInit:function(){var t=this.calcSVGData;t()},calcSVGData:function(){var t=this.reverse,e=this.width,n=this.height;t?(this.w=1,this.h=n,this.x=e/2,this.y=0):(this.w=e,this.h=1,this.x=0,this.y=n/2)},onResize:function(){var t=this.calcSVGData;t()},mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t||[])}},mounted:function(){var t=this.mergeColor;t()}},Re=De,Ne=Object(m["a"])(Re,je,Le,!1,null,null,null),Be=(Ne.exports,n("5e07"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:t.ref,staticClass:"dv-decoration-3"},[n("svg",{style:"transform:scale("+t.svgScale[0]+","+t.svgScale[1]+");",attrs:{width:t.svgWH[0]+"px",height:t.svgWH[1]+"px"}},[t._l(t.points,(function(e,r){return[n("rect",{key:r,attrs:{fill:t.mergedColor[0],x:e[0]-t.halfPointSideLength,y:e[1]-t.halfPointSideLength,width:t.pointSideLength,height:t.pointSideLength}},[Math.random()>.6?n("animate",{attrs:{attributeName:"fill",values:""+t.mergedColor.join(";"),dur:Math.random()+1+"s",begin:2*Math.random(),repeatCount:"indefinite"}}):t._e()])]}))],2)])}),Fe=[],ze={name:"DvDecoration3",mixins:[j],props:{color:{type:Array,default:function(){return[]}}},data:function(){var t=7;return{ref:"decoration-3",svgWH:[300,35],svgScale:[1,1],rowNum:2,rowPoints:25,pointSideLength:t,halfPointSideLength:t/2,points:[],defaultColor:["#7acaec","transparent"],mergedColor:[]}},watch:{color:function(){var t=this.mergeColor;t()}},methods:{afterAutoResizeMixinInit:function(){var t=this.calcSVGData;t()},calcSVGData:function(){var t=this.calcPointsPosition,e=this.calcScale;t(),e()},calcPointsPosition:function(){var t=this.svgWH,e=this.rowNum,n=this.rowPoints,r=Object(h["a"])(t,2),i=r[0],a=r[1],s=i/(n+1),l=a/(e+1),u=new Array(e).fill(0).map((function(t,e){return new Array(n).fill(0).map((function(t,n){return[s*(n+1),l*(e+1)]}))}));this.points=u.reduce((function(t,e){return[].concat(Object(o["a"])(t),Object(o["a"])(e))}),[])},calcScale:function(){var t=this.width,e=this.height,n=this.svgWH,r=Object(h["a"])(n,2),i=r[0],o=r[1];this.svgScale=[t/i,e/o]},onResize:function(){var t=this.calcSVGData;t()},mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t||[])}},mounted:function(){var t=this.mergeColor;t()}},Ve=ze,qe=Object(m["a"])(Ve,Be,Fe,!1,null,null,null),Ge=qe.exports,He=function(t){t.component(Ge.name,Ge)},We=(n("c2ca"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:t.ref,staticClass:"dv-decoration-4"},[n("div",{class:"container "+(t.reverse?"reverse":"normal"),style:t.reverse?"width:"+t.width+"px;height:5px;animation-duration:"+t.dur+"s":"width:5px;height:"+t.height+"px;animation-duration:"+t.dur+"s"},[n("svg",{attrs:{width:t.reverse?t.width:5,height:t.reverse?5:t.height}},[n("polyline",{attrs:{stroke:t.mergedColor[0],points:t.reverse?"0, 2.5 "+t.width+", 2.5":"2.5, 0 2.5, "+t.height}}),n("polyline",{staticClass:"bold-line",attrs:{stroke:t.mergedColor[1],"stroke-width":"3","stroke-dasharray":"20, 80","stroke-dashoffset":"-30",points:t.reverse?"0, 2.5 "+t.width+", 2.5":"2.5, 0 2.5, "+t.height}})])])])}),Ue=[],$e={name:"DvDecoration4",mixins:[j],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 t=this.mergeColor;t()}},methods:{mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t||[])}},mounted:function(){var t=this.mergeColor;t()}},Ye=$e,Xe=Object(m["a"])(Ye,We,Ue,!1,null,null,null),Ke=(Xe.exports,n("2848"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:t.ref,staticClass:"dv-decoration-5"},[n("svg",{attrs:{width:t.width,height:t.height}},[n("polyline",{attrs:{fill:"transparent",stroke:t.mergedColor[0],"stroke-width":"3",points:t.line1Points}},[n("animate",{attrs:{attributeName:"stroke-dasharray",attributeType:"XML",from:"0, "+t.line1Length/2+", 0, "+t.line1Length/2,to:"0, 0, "+t.line1Length+", 0",dur:t.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:t.mergedColor[1],"stroke-width":"2",points:t.line2Points}},[n("animate",{attrs:{attributeName:"stroke-dasharray",attributeType:"XML",from:"0, "+t.line2Length/2+", 0, "+t.line2Length/2,to:"0, 0, "+t.line2Length+", 0",dur:t.dur+"s",begin:"0s",calcMode:"spline",keyTimes:"0;1",keySplines:".4,1,.49,.98",repeatCount:"indefinite"}})])])])}),Ze=[],Qe={name:"DvDecoration5",mixins:[j],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 t=this.mergeColor;t()}},methods:{afterAutoResizeMixinInit:function(){var t=this.calcSVGData;t()},calcSVGData:function(){var t=this.width,e=this.height,n=[[0,.2*e],[.18*t,.2*e],[.2*t,.4*e],[.25*t,.4*e],[.27*t,.6*e],[.72*t,.6*e],[.75*t,.4*e],[.8*t,.4*e],[.82*t,.2*e],[t,.2*e]],r=[[.3*t,.8*e],[.7*t,.8*e]],i=Object(p["getPolylineLength"])(n),o=Object(p["getPolylineLength"])(r);n=n.map((function(t){return t.join(",")})).join(" "),r=r.map((function(t){return t.join(",")})).join(" "),this.line1Points=n,this.line2Points=r,this.line1Length=i,this.line2Length=o},onResize:function(){var t=this.calcSVGData;t()},mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t||[])}},mounted:function(){var t=this.mergeColor;t()}},Je=Qe,tn=Object(m["a"])(Je,Ke,Ze,!1,null,null,null),en=(tn.exports,n("c7c8"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:t.ref,staticClass:"dv-decoration-6"},[n("svg",{style:"transform:scale("+t.svgScale[0]+","+t.svgScale[1]+");",attrs:{width:t.svgWH[0]+"px",height:t.svgWH[1]+"px"}},[t._l(t.points,(function(e,r){return[n("rect",{key:r,attrs:{fill:t.mergedColor[Math.random()>.5?0:1],x:e[0]-t.halfRectWidth,y:e[1]-t.heights[r]/2,width:t.rectWidth,height:t.heights[r]}},[n("animate",{attrs:{attributeName:"y",values:e[1]-t.minHeights[r]/2+";"+(e[1]-t.heights[r]/2)+";"+(e[1]-t.minHeights[r]/2),dur:t.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:t.minHeights[r]+";"+t.heights[r]+";"+t.minHeights[r],dur:t.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)])}),nn=[],rn={name:"DvDecoration6",mixins:[j],props:{color:{type:Array,default:function(){return[]}}},data:function(){var t=7;return{ref:"decoration-6",svgWH:[300,35],svgScale:[1,1],rowNum:1,rowPoints:40,rectWidth:t,halfRectWidth:t/2,points:[],heights:[],minHeights:[],randoms:[],defaultColor:["#7acaec","#7acaec"],mergedColor:[]}},watch:{color:function(){var t=this.mergeColor;t()}},methods:{afterAutoResizeMixinInit:function(){var t=this.calcSVGData;t()},calcSVGData:function(){var t=this.calcPointsPosition,e=this.calcScale;t(),e()},calcPointsPosition:function(){var t=this.svgWH,e=this.rowNum,n=this.rowPoints,r=Object(h["a"])(t,2),i=r[0],a=r[1],s=i/(n+1),l=a/(e+1),u=new Array(e).fill(0).map((function(t,e){return new Array(n).fill(0).map((function(t,n){return[s*(n+1),l*(e+1)]}))}));this.points=u.reduce((function(t,e){return[].concat(Object(o["a"])(t),Object(o["a"])(e))}),[]);var c=this.heights=new Array(e*n).fill(0).map((function(t){return Math.random()>.8?M(.7*a,a):M(.2*a,.5*a)}));this.minHeights=new Array(e*n).fill(0).map((function(t,e){return c[e]*Math.random()})),this.randoms=new Array(e*n).fill(0).map((function(t){return Math.random()+1.5}))},calcScale:function(){var t=this.width,e=this.height,n=this.svgWH,r=Object(h["a"])(n,2),i=r[0],o=r[1];this.svgScale=[t/i,e/o]},onResize:function(){var t=this.calcSVGData;t()},mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t||[])}},mounted:function(){var t=this.mergeColor;t()}},on=rn,an=Object(m["a"])(on,en,nn,!1,null,null,null),sn=(an.exports,n("d51d"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"dv-decoration-7"},[n("svg",{attrs:{width:"21px",height:"20px"}},[n("polyline",{attrs:{"stroke-width":"4",fill:"transparent",stroke:t.mergedColor[0],points:"10, 0 19, 10 10, 20"}}),n("polyline",{attrs:{"stroke-width":"2",fill:"transparent",stroke:t.mergedColor[1],points:"2, 0 11, 10 2, 20"}})]),t._t("default"),n("svg",{attrs:{width:"21px",height:"20px"}},[n("polyline",{attrs:{"stroke-width":"4",fill:"transparent",stroke:t.mergedColor[0],points:"11, 0 2, 10 11, 20"}}),n("polyline",{attrs:{"stroke-width":"2",fill:"transparent",stroke:t.mergedColor[1],points:"19, 0 10, 10 19, 20"}})])],2)}),ln=[],un={name:"DvDecoration7",props:{color:{type:Array,default:function(){return[]}}},data:function(){return{defaultColor:["#1dc1f5","#1dc1f5"],mergedColor:[]}},watch:{color:function(){var t=this.mergeColor;t()}},methods:{mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t||[])}},mounted:function(){var t=this.mergeColor;t()}},cn=un,hn=Object(m["a"])(cn,sn,ln,!1,null,null,null),fn=(hn.exports,n("357d"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:t.ref,staticClass:"dv-decoration-8"},[n("svg",{attrs:{width:t.width,height:t.height}},[n("polyline",{attrs:{stroke:t.mergedColor[0],"stroke-width":"2",fill:"transparent",points:t.xPos(0)+", 0 "+t.xPos(30)+", "+t.height/2}}),n("polyline",{attrs:{stroke:t.mergedColor[0],"stroke-width":"2",fill:"transparent",points:t.xPos(20)+", 0 "+t.xPos(50)+", "+t.height/2+" "+t.xPos(t.width)+", "+t.height/2}}),n("polyline",{attrs:{stroke:t.mergedColor[1],fill:"transparent","stroke-width":"3",points:t.xPos(0)+", "+(t.height-3)+", "+t.xPos(200)+", "+(t.height-3)}})])])}),dn=[],pn={name:"DvDecoration8",mixins:[j],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 t=this.mergeColor;t()}},methods:{xPos:function(t){var e=this.reverse,n=this.width;return e?n-t:t},mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t||[])}},mounted:function(){var t=this.mergeColor;t()}},gn=pn,vn=Object(m["a"])(gn,fn,dn,!1,null,null,null),yn=(vn.exports,n("9ab4"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:t.ref,staticClass:"dv-decoration-9"},[n("svg",{style:"transform:scale("+t.svgScale[0]+","+t.svgScale[1]+");",attrs:{width:t.svgWH[0]+"px",height:t.svgWH[1]+"px"}},[n("defs",[n("polygon",{attrs:{id:t.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:t.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:t.dur+"s",repeatCount:"indefinite"}})],1),n("circle",{attrs:{cx:"50",cy:"50",r:"45",fill:"transparent",stroke:t.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:t.dur+"s",repeatCount:"indefinite"}})],1),n("circle",{attrs:{cx:"50",cy:"50",r:"38",fill:"transparent",stroke:t.fade(t.mergedColor[1]||t.defaultColor[1],30),"stroke-width":"1","stroke-dasharray":"5, 1"}}),t._l(new Array(20).fill(0),(function(e,r){return n("use",{key:r,attrs:{"xlink:href":"#"+t.polygonId,stroke:t.mergedColor[1],fill:Math.random()>.4?"transparent":t.mergedColor[0]}},[n("animateTransform",{attrs:{attributeName:"transform",type:"rotate",values:"0 50 50;360 50 50",dur:t.dur+"s",begin:r*t.dur/20+"s",repeatCount:"indefinite"}})],1)})),n("circle",{attrs:{cx:"50",cy:"50",r:"26",fill:"transparent",stroke:t.fade(t.mergedColor[1]||t.defaultColor[1],30),"stroke-width":"1","stroke-dasharray":"5, 1"}})],2),t._t("default")],2)}),mn=[],bn={name:"DvDecoration9",mixins:[j],props:{color:{type:Array,default:function(){return[]}},dur:{type:Number,default:3}},data:function(){var t=P();return{ref:"decoration-9",polygonId:"decoration-9-polygon-".concat(t),svgWH:[100,100],svgScale:[1,1],defaultColor:["rgba(3, 166, 224, 0.8)","rgba(3, 166, 224, 0.5)"],mergedColor:[]}},watch:{color:function(){var t=this.mergeColor;t()}},methods:{afterAutoResizeMixinInit:function(){var t=this.calcScale;t()},calcScale:function(){var t=this.width,e=this.height,n=this.svgWH,r=Object(h["a"])(n,2),i=r[0],o=r[1];this.svgScale=[t/i,e/o]},onResize:function(){var t=this.calcScale;t()},mergeColor:function(){var t=this.color,e=this.defaultColor;this.mergedColor=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t||[])},fade:H["fade"]},mounted:function(){var t=this.mergeColor;t()}},_n=bn,xn=Object(m["a"])(_n,yn,mn,!1,null,null,null),wn=xn.exports,Sn=function(t){t.component(wn.name,wn)},On=(n("bc96"),function(t){t.component(_.name,_)}),Cn=(n("41f6"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"dv-flyline-chart",staticClass:"dv-flyline-chart",style:"background-image: url("+(t.mergedConfig?t.mergedConfig.bgImgUrl:"")+")",on:{click:t.consoleClickPos}},[t.mergedConfig?n("svg",{attrs:{width:t.width,height:t.height}},[n("defs",[n("radialGradient",{attrs:{id:t.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:t.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),t.paths[0]?n("circle",{attrs:{id:"circle"+t.paths[0].toString(),cx:t.paths[0][2][0],cy:t.paths[0][2][1]}},[n("animate",{attrs:{attributeName:"r",values:"1;"+t.mergedConfig.halo.radius,dur:t.mergedConfig.halo.duration/10+"s",repeatCount:"indefinite"}}),n("animate",{attrs:{attributeName:"opacity",values:"1;0",dur:t.mergedConfig.halo.duration/10+"s",repeatCount:"indefinite"}})]):t._e()],1),t.paths[0]?n("image",{attrs:{"xlink:href":t.mergedConfig.centerPointImg.url,width:t.mergedConfig.centerPointImg.width,height:t.mergedConfig.centerPointImg.height,x:t.paths[0][2][0]-t.mergedConfig.centerPointImg.width/2,y:t.paths[0][2][1]-t.mergedConfig.centerPointImg.height/2}}):t._e(),n("mask",{attrs:{id:"maskhalo"+t.paths[0].toString()}},[t.paths[0]?n("use",{attrs:{"xlink:href":"#circle"+t.paths[0].toString(),fill:"url(#"+t.gradient2Id+")"}}):t._e()]),t.paths[0]&&t.mergedConfig.halo.show?n("use",{attrs:{"xlink:href":"#circle"+t.paths[0].toString(),fill:t.mergedConfig.halo.color,mask:"url(#maskhalo"+t.paths[0].toString()+")"}}):t._e(),t._l(t.paths,(function(e,r){return n("g",{key:r},[n("defs",[n("path",{ref:"path"+r,refInFor:!0,attrs:{id:"path"+e.toString(),d:"M"+e[0].toString()+" Q"+e[1].toString()+" "+e[2].toString(),fill:"transparent"}})]),n("use",{attrs:{"xlink:href":"#path"+e.toString(),"stroke-width":t.mergedConfig.lineWidth,stroke:t.mergedConfig.orbitColor}}),t.lengths[r]?n("use",{attrs:{"xlink:href":"#path"+e.toString(),"stroke-width":t.mergedConfig.lineWidth,stroke:t.mergedConfig.flylineColor,mask:"url(#mask"+t.unique+e.toString()+")"}},[n("animate",{attrs:{attributeName:"stroke-dasharray",from:"0, "+t.lengths[r],to:t.lengths[r]+", 0",dur:t.times[r]||0,repeatCount:"indefinite"}})]):t._e(),n("mask",{attrs:{id:"mask"+t.unique+e.toString()}},[n("circle",{attrs:{cx:"0",cy:"0",r:t.mergedConfig.flylineRadius,fill:"url(#"+t.gradientId+")"}},[n("animateMotion",{attrs:{dur:t.times[r]||0,path:"M"+e[0].toString()+" Q"+e[1].toString()+" "+e[2].toString(),rotate:"auto",repeatCount:"indefinite"}})],1)]),n("image",{attrs:{"xlink:href":t.mergedConfig.pointsImg.url,width:t.mergedConfig.pointsImg.width,height:t.mergedConfig.pointsImg.height,x:e[0][0]-t.mergedConfig.pointsImg.width/2,y:e[0][1]-t.mergedConfig.pointsImg.height/2}}),n("text",{style:"fontSize:"+t.mergedConfig.text.fontSize+"px;",attrs:{fill:t.mergedConfig.text.color,x:e[0][0]+t.mergedConfig.text.offset[0],y:e[0][1]+t.mergedConfig.text.offset[1]}},[t._v(" "+t._s(t.texts[r])+" ")])])}))],2):t._e()])}),kn=[],An=n("c7eb"),Mn=n("1da1"),Tn={name:"DvFlylineChart",mixins:[j],props:{config:{type:Object,default:function(){return{}}},dev:{type:Boolean,default:!1}},data:function(){var t=P();return{ref:"dv-flyline-chart",unique:Math.random(),maskId:"flyline-mask-id-".concat(t),maskCircleId:"mask-circle-id-".concat(t),gradientId:"gradient-id-".concat(t),gradient2Id:"gradient2-id-".concat(t),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 t=this.calcData;t()}},methods:{afterAutoResizeMixinInit:function(){var t=this.calcData;t()},onResize:function(){var t=this.calcData;t()},calcData:function(){var t=this;return Object(Mn["a"])(Object(An["a"])().mark((function e(){var n,r,i,o,a;return Object(An["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.mergeConfig,r=t.createFlylinePaths,i=t.calcLineLengths,n(),r(),e.next=5,i();case 5:o=t.calcTimes,a=t.calcTexts,o(),a();case 8:case"end":return e.stop()}}),e)})))()},mergeConfig:function(){var t=this.config,e=this.defaultConfig,n=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t||{}),r=n.points;n.points=r.map((function(t){return t instanceof Array?{position:t,text:""}:t})),this.mergedConfig=n},createFlylinePaths:function(){var t=this.getPath,e=this.mergedConfig,n=this.width,r=this.height,i=e.centerPoint,o=e.points,a=e.relative;o=o.map((function(t){var e=t.position;return e})),a&&(i=[n*i[0],r*i[1]],o=o.map((function(t){var e=Object(h["a"])(t,2),i=e[0],o=e[1];return[n*i,r*o]}))),this.paths=o.map((function(e){return t(i,e)}))},getPath:function(t,e){var n=this.getControlPoint,r=n(t,e);return[e,r,t]},getControlPoint:function(t,e){var n=Object(h["a"])(t,2),r=n[0],i=n[1],o=Object(h["a"])(e,2),a=o[0],s=o[1],l=this.getKLinePointByx,u=this.mergedConfig,c=u.curvature,f=u.k,d=(r+a)/2,p=(i+s)/2,g=E([r,i],[a,s]),v=g/c,y=v/2,m=d,b=p;do{m+=y,b=l(f,[d,p],m)[1]}while(E([d,p],[m,b])<v);return[m,b]},getKLinePointByx:function(t,e,n){var r=Object(h["a"])(e,2),i=r[0],o=r[1],a=o-t*i+t*n;return[n,a]},calcLineLengths:function(){var t=this;return Object(Mn["a"])(Object(An["a"])().mark((function e(){var n,r,i;return Object(An["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.$nextTick,r=t.paths,i=t.$refs,e.next=3,n();case 3:t.lengths=r.map((function(t,e){return i["path".concat(e)][0].getTotalLength()}));case 4:case"end":return e.stop()}}),e)})))()},calcTimes:function(){var t=this.mergedConfig,e=t.duration,n=t.points;this.times=n.map((function(t){return M.apply(void 0,Object(o["a"])(e))/10}))},calcTexts:function(){var t=this.mergedConfig.points;this.texts=t.map((function(t){var e=t.text;return e}))},consoleClickPos:function(t){var e=t.offsetX,n=t.offsetY,r=this.width,i=this.height,o=this.dev;if(o){var a=(e/r).toFixed(2),s=(n/i).toFixed(2);console.warn("dv-flyline-chart DEV: \n Click Position is [".concat(e,", ").concat(n,"] \n Relative Position is [").concat(a,", ").concat(s,"]"))}}}},In=Tn,En=Object(m["a"])(In,Cn,kn,!1,null,null,null),Pn=(En.exports,n("dbbf"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:t.ref,staticClass:"dv-flyline-chart-enhanced",style:"background-image: url("+(t.mergedConfig?t.mergedConfig.bgImgSrc:"")+")",on:{click:t.consoleClickPos}},[t.flylines.length?n("svg",{attrs:{width:t.width,height:t.height}},[n("defs",[n("radialGradient",{attrs:{id:t.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:t.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),t._l(t.flylinePoints,(function(e){return n("g",{key:e.key+Math.random()},[n("defs",[e.halo.show?n("circle",{attrs:{id:"halo"+t.unique+e.key,cx:e.coordinate[0],cy:e.coordinate[1]}},[n("animate",{attrs:{attributeName:"r",values:"1;"+e.halo.radius,dur:e.halo.time+"s",repeatCount:"indefinite"}}),n("animate",{attrs:{attributeName:"opacity",values:"1;0",dur:e.halo.time+"s",repeatCount:"indefinite"}})]):t._e()]),n("mask",{attrs:{id:"mask"+t.unique+e.key}},[e.halo.show?n("use",{attrs:{"xlink:href":"#halo"+t.unique+e.key,fill:"url(#"+t.haloGradientId+")"}}):t._e()]),e.halo.show?n("use",{attrs:{"xlink:href":"#halo"+t.unique+e.key,fill:e.halo.color,mask:"url(#mask"+t.unique+e.key+")"}}):t._e(),e.icon.show?n("image",{attrs:{"xlink:href":e.icon.src,width:e.icon.width,height:e.icon.height,x:e.icon.x,y:e.icon.y}}):t._e(),e.text.show?n("text",{style:"fontSize:"+e.text.fontSize+"px;color:"+e.text.color,attrs:{fill:e.text.color,x:e.text.x,y:e.text.y}},[t._v(" "+t._s(e.name)+" ")]):t._e()])})),t._l(t.flylines,(function(e,r){return n("g",{key:e.key+Math.random()},[n("defs",[n("path",{ref:e.key,refInFor:!0,attrs:{id:e.key,d:e.d,fill:"transparent"}})]),n("use",{attrs:{"xlink:href":"#"+e.key,"stroke-width":e.width,stroke:e.orbitColor}}),n("mask",{attrs:{id:"mask"+t.unique+e.key}},[n("circle",{attrs:{cx:"0",cy:"0",r:e.radius,fill:"url(#"+t.flylineGradientId+")"}},[n("animateMotion",{attrs:{dur:e.time,path:e.d,rotate:"auto",repeatCount:"indefinite"}})],1)]),t.flylineLengths[r]?n("use",{attrs:{"xlink:href":"#"+e.key,"stroke-width":e.width,stroke:e.color,mask:"url(#mask"+t.unique+e.key+")"}},[n("animate",{attrs:{attributeName:"stroke-dasharray",from:"0, "+t.flylineLengths[r],to:t.flylineLengths[r]+", 0",dur:e.time,repeatCount:"indefinite"}})]):t._e()])}))],2):t._e()])}),jn=[],Ln=(n("25f0"),n("7db0"),{name:"DvFlylineChartEnhanced",mixins:[j],props:{config:{type:Object,default:function(){return{}}},dev:{type:Boolean,default:!1}},data:function(){var t=P();return{ref:"dv-flyline-chart-enhanced",unique:Math.random(),flylineGradientId:"flyline-gradient-id-".concat(t),haloGradientId:"halo-gradient-id-".concat(t),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 t=this.calcData;t()}},methods:{afterAutoResizeMixinInit:function(){var t=this.calcData;t()},onResize:function(){var t=this.calcData;t()},calcData:function(){var t=this;return Object(Mn["a"])(Object(An["a"])().mark((function e(){var n,r,i,o;return Object(An["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.mergeConfig,r=t.calcflylinePoints,i=t.calcLinePaths,n(),r(),i(),o=t.calcLineLengths,e.next=7,o();case 7:case"end":return e.stop()}}),e)})))()},mergeConfig:function(){var t=this.config,e=this.defaultConfig,n=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t||{}),r=n.points,i=n.lines,o=n.halo,a=n.text,s=n.icon,l=n.line;n.points=r.map((function(t){return t.halo=Object(p["deepMerge"])(Object(g["deepClone"])(o,!0),t.halo||{}),t.text=Object(p["deepMerge"])(Object(g["deepClone"])(a,!0),t.text||{}),t.icon=Object(p["deepMerge"])(Object(g["deepClone"])(s,!0),t.icon||{}),t})),n.lines=i.map((function(t){return Object(p["deepMerge"])(Object(g["deepClone"])(l,!0),t)})),this.mergedConfig=n},calcflylinePoints:function(){var t=this.mergedConfig,e=this.width,n=this.height,r=t.relative,i=t.points;this.flylinePoints=i.map((function(t,i){var a=Object(h["a"])(t.coordinate,2),s=a[0],l=a[1],u=t.halo,c=t.icon,f=t.text;r&&(t.coordinate=[s*e,l*n]),t.halo.time=M.apply(void 0,Object(o["a"])(u.duration))/10;var d=c.width,p=c.height;t.icon.x=t.coordinate[0]-d/2,t.icon.y=t.coordinate[1]-p/2;var g=Object(h["a"])(f.offset,2),v=g[0],y=g[1];return t.text.x=t.coordinate[0]+v,t.text.y=t.coordinate[1]+y,t.key="".concat(t.coordinate.toString()).concat(i),t}))},calcLinePaths:function(){var t=this.getPath,e=this.mergedConfig,n=e.points,r=e.lines;this.flylines=r.map((function(e){var r=e.source,i=e.target,s=e.duration,l=n.find((function(t){var e=t.name;return e===r})).coordinate,u=n.find((function(t){var e=t.name;return e===i})).coordinate,c=t(l,u).map((function(t){return t.map((function(t){return parseFloat(t.toFixed(10))}))})),h="M".concat(c[0].toString()," Q").concat(c[1].toString()," ").concat(c[2].toString()),f="path".concat(c.toString()),d=M.apply(void 0,Object(o["a"])(s))/10;return Object(a["a"])(Object(a["a"])({},e),{},{path:c,key:f,d:h,time:d})}))},getPath:function(t,e){var n=this.getControlPoint,r=n(t,e);return[t,r,e]},getControlPoint:function(t,e){var n=Object(h["a"])(t,2),r=n[0],i=n[1],o=Object(h["a"])(e,2),a=o[0],s=o[1],l=this.getKLinePointByx,u=this.mergedConfig,c=u.curvature,f=u.k,d=(r+a)/2,p=(i+s)/2,g=E([r,i],[a,s]),v=g/c,y=v/2,m=d,b=p;do{m+=y,b=l(f,[d,p],m)[1]}while(E([d,p],[m,b])<v);return[m,b]},getKLinePointByx:function(t,e,n){var r=Object(h["a"])(e,2),i=r[0],o=r[1],a=o-t*i+t*n;return[n,a]},calcLineLengths:function(){var t=this;return Object(Mn["a"])(Object(An["a"])().mark((function e(){var n,r,i;return Object(An["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.$nextTick,r=t.flylines,i=t.$refs,e.next=3,n();case 3:t.flylineLengths=r.map((function(t){var e=t.key;return i[e][0].getTotalLength()}));case 4:case"end":return e.stop()}}),e)})))()},consoleClickPos:function(t){var e=t.offsetX,n=t.offsetY,r=this.width,i=this.height,o=this.dev;if(o){var a=(e/r).toFixed(2),s=(n/i).toFixed(2);console.warn("dv-flyline-chart-enhanced DEV: \n Click Position is [".concat(e,", ").concat(n,"] \n Relative Position is [").concat(a,", ").concat(s,"]"))}}}}),Dn=Ln,Rn=Object(m["a"])(Dn,Pn,jn,!1,null,null,null),Nn=(Rn.exports,n("7cc8"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:t.ref,attrs:{id:"dv-full-screen-container"}},[t.ready?[t._t("default")]:t._e()],2)}),Bn=[],Fn={name:"DvFullScreenContainer",mixins:[j],data:function(){return{ref:"full-screen-container",allWidth:0,scale:0,datavRoot:"",ready:!1}},methods:{afterAutoResizeMixinInit:function(){var t=this.initConfig,e=this.setAppScale;t(),e(),this.ready=!0},initConfig:function(){var t=this.dom,e=screen,n=e.width,r=e.height;this.allWidth=n,t.style.width="".concat(n,"px"),t.style.height="".concat(r,"px")},setAppScale:function(){var t=this.allWidth,e=this.dom,n=document.body.clientWidth;e.style.transform="scale(".concat(n/t,")")},onResize:function(){var t=this.setAppScale;t()}}},zn=Fn,Vn=Object(m["a"])(zn,Nn,Bn,!1,null,null,null),qn=(Vn.exports,n("84cd"),function(){var t=this,e=t.$createElement,n=t._self._c||e;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"},[t._t("default")],2)])}),Gn=[],Hn={name:"DvLoading"},Wn=Hn,Un=Object(m["a"])(Wn,qn,Gn,!1,null,null,null),$n=Un.exports,Yn=function(t){t.component($n.name,$n)},Xn=(n("a157"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"percent-pond",staticClass:"dv-percent-pond"},[n("svg",[n("defs",[n("linearGradient",{attrs:{id:t.gradientId1,x1:"0%",y1:"0%",x2:"100%",y2:"0%"}},t._l(t.linearGradient,(function(t){return n("stop",{key:t[0],attrs:{offset:t[0]+"%","stop-color":t[1]}})})),1),n("linearGradient",{attrs:{id:t.gradientId2,x1:"0%",y1:"0%",x2:t.gradient2XPos,y2:"0%"}},t._l(t.linearGradient,(function(t){return n("stop",{key:t[0],attrs:{offset:t[0]+"%","stop-color":t[1]}})})),1)],1),n("rect",{attrs:{x:t.mergedConfig?t.mergedConfig.borderWidth/2:"0",y:t.mergedConfig?t.mergedConfig.borderWidth/2:"0",rx:t.mergedConfig?t.mergedConfig.borderRadius:"0",ry:t.mergedConfig?t.mergedConfig.borderRadius:"0",fill:"transparent","stroke-width":t.mergedConfig?t.mergedConfig.borderWidth:"0",stroke:"url(#"+t.gradientId1+")",width:t.rectWidth>0?t.rectWidth:0,height:t.rectHeight>0?t.rectHeight:0}}),n("polyline",{attrs:{"stroke-width":t.polylineWidth,"stroke-dasharray":t.mergedConfig?t.mergedConfig.lineDash.join(","):"0",stroke:"url(#"+t.polylineGradient+")",points:t.points}}),n("text",{attrs:{stroke:t.mergedConfig?t.mergedConfig.textColor:"#fff",fill:t.mergedConfig?t.mergedConfig.textColor:"#fff",x:t.width/2,y:t.height/2}},[t._v(" "+t._s(t.details)+" ")])])])}),Kn=[],Zn=(n("ac1f"),n("5319"),{name:"DvPercentPond",props:{config:{type:Object,default:function(){return{}}}},data:function(){var t=P();return{gradientId1:"percent-pond-gradientId1-".concat(t),gradientId2:"percent-pond-gradientId2-".concat(t),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 t=this.mergedConfig,e=this.width;if(!t)return 0;var n=t.borderWidth;return e-n},rectHeight:function(){var t=this.mergedConfig,e=this.height;if(!t)return 0;var n=t.borderWidth;return e-n},points:function(){var t=this.mergedConfig,e=this.width,n=this.height,r=n/2;if(!t)return"0, ".concat(r," 0, ").concat(r);var i=t.borderWidth,o=t.borderGap,a=t.value,s=(e-2*(i+o))/100*a;return"\n ".concat(i+o,", ").concat(r,"\n ").concat(i+o+s,", ").concat(r+.001,"\n ")},polylineWidth:function(){var t=this.mergedConfig,e=this.height;if(!t)return 0;var n=t.borderWidth,r=t.borderGap;return e-2*(n+r)},linearGradient:function(){var t=this.mergedConfig;if(!t)return[];var e=t.colors,n=e.length,r=100/(n-1);return e.map((function(t,e){return[r*e,t]}))},polylineGradient:function(){var t=this.gradientId1,e=this.gradientId2,n=this.mergedConfig;return n&&n.localGradient?t:e},gradient2XPos:function(){var t=this.mergedConfig;if(!t)return"100%";var e=t.value;return"".concat(200-e,"%")},details:function(){var t=this.mergedConfig;if(!t)return"";var e=t.value,n=t.formatter;return n.replace("{value}",e)}},watch:{config:function(){var t=this.mergeConfig;t()}},methods:{init:function(){var t=this;return Object(Mn["a"])(Object(An["a"])().mark((function e(){var n,r,i;return Object(An["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.initWH,r=t.config,i=t.mergeConfig,e.next=3,n();case 3:if(r){e.next=5;break}return e.abrupt("return");case 5:i();case 6:case"end":return e.stop()}}),e)})))()},initWH:function(){var t=this;return Object(Mn["a"])(Object(An["a"])().mark((function e(){var n,r,i,o,a;return Object(An["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.$nextTick,r=t.$refs,e.next=3,n();case 3:i=r["percent-pond"],o=i.clientWidth,a=i.clientHeight,t.width=o,t.height=a;case 6:case"end":return e.stop()}}),e)})))()},mergeConfig:function(){var t=this.config,e=this.defaultConfig;this.mergedConfig=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t||{})}},mounted:function(){var t=this.init;t()}}),Qn=Zn,Jn=Object(m["a"])(Qn,Xn,Kn,!1,null,null,null),tr=(Jn.exports,n("037e"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:t.ref,staticClass:"dv-scroll-board"},[t.header.length&&t.mergedConfig?n("div",{staticClass:"header",style:"background-color: "+t.mergedConfig.headerBGC+";"},t._l(t.header,(function(e,r){return n("div",{key:""+e+r,staticClass:"header-item",style:"\n height: "+t.mergedConfig.headerHeight+"px;\n line-height: "+t.mergedConfig.headerHeight+"px;\n width: "+t.widths[r]+"px;\n ",attrs:{align:t.aligns[r]},domProps:{innerHTML:t._s(e)}})})),0):t._e(),t.mergedConfig?n("div",{staticClass:"rows",style:"height: "+(t.height-(t.header.length?t.mergedConfig.headerHeight:0))+"px;"},t._l(t.rows,(function(e,r){return n("div",{key:""+e.toString()+e.scroll,staticClass:"row-item",style:"\n height: "+t.heights[r]+"px;\n line-height: "+t.heights[r]+"px;\n background-color: "+t.mergedConfig[e.rowIndex%2===0?"evenRowBGC":"oddRowBGC"]+";\n "},t._l(e.ceils,(function(i,o){return n("div",{key:""+i+r+o,staticClass:"ceil",style:"width: "+t.widths[o]+"px;",attrs:{align:t.aligns[o]},domProps:{innerHTML:t._s(i)},on:{click:function(n){return t.emitEvent("click",r,o,e,i)},mouseenter:function(n){return t.handleHover(!0,r,o,e,i)},mouseleave:function(e){return t.handleHover(!1)}}})})),0)})),0):t._e()])}),er=[],nr=(n("3c65"),n("fb6a"),n("14d9"),n("a434"),{name:"DvScrollBoard",mixins:[j],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 t=this.stopAnimation,e=this.calcData;t(),this.animationIndex=0,e()}},methods:{handleHover:function(t,e,n,r,i){var o=this.mergedConfig,a=this.emitEvent,s=this.stopAnimation,l=this.animation;t&&a("mouseover",e,n,r,i),o.hoverPause&&(t?s():l(!0))},afterAutoResizeMixinInit:function(){var t=this.calcData;t()},onResize:function(){var t=this.mergedConfig,e=this.calcWidths,n=this.calcHeights;t&&(e(),n())},calcData:function(){var t=this.mergeConfig,e=this.calcHeaderData,n=this.calcRowsData;t(),e(),n();var r=this.calcWidths,i=this.calcHeights,o=this.calcAligns;r(),i(),o();var a=this.animation;a(!0)},mergeConfig:function(){var t=this.config,e=this.defaultConfig;this.mergedConfig=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t||{})},calcHeaderData:function(){var t=this.mergedConfig,e=t.header,n=t.index,r=t.indexHeader;e.length?(e=Object(o["a"])(e),n&&e.unshift(r),this.header=e):this.header=[]},calcRowsData:function(){var t=this.mergedConfig,e=t.data,n=t.index,r=t.headerBGC,i=t.rowNum;n&&(e=e.map((function(t,e){t=Object(o["a"])(t);var n='<span class="index" style="background-color: '.concat(r,';">').concat(e+1,"</span>");return t.unshift(n),t}))),e=e.map((function(t,e){return{ceils:t,rowIndex:e}}));var s=e.length;s>i&&s<2*i&&(e=[].concat(Object(o["a"])(e),Object(o["a"])(e))),e=e.map((function(t,e){return Object(a["a"])(Object(a["a"])({},t),{},{scroll:e})})),this.rowsData=e,this.rows=e},calcWidths:function(){var t=this.width,e=this.mergedConfig,n=this.rowsData,r=e.columnWidth,i=e.header,o=r.reduce((function(t,e){return t+e}),0),a=0;n[0]?a=n[0].ceils.length:i.length&&(a=i.length);var s=(t-o)/(a-r.length),l=new Array(a).fill(s);this.widths=Object(p["deepMerge"])(l,r)},calcHeights:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.height,n=this.mergedConfig,r=this.header,i=n.headerHeight,o=n.rowNum,a=n.data,s=e;r.length&&(s-=i);var l=s/o;this.avgHeight=l,t||(this.heights=new Array(a.length).fill(l))},calcAligns:function(){var t=this.header,e=this.mergedConfig,n=t.length,r=new Array(n).fill("left"),i=e.align;this.aligns=Object(p["deepMerge"])(r,i)},animation:function(){var t=arguments,e=this;return Object(Mn["a"])(Object(An["a"])().mark((function n(){var r,i,a,s,l,u,c,h,f,d,p,g,v,y,m,b,_,x;return Object(An["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(i=t.length>0&&void 0!==t[0]&&t[0],a=e.needCalc,s=e.calcHeights,l=e.calcRowsData,a&&(l(),s(),e.needCalc=!1),u=e.avgHeight,c=e.animationIndex,h=e.mergedConfig,f=e.rowsData,d=e.animation,p=e.updater,g=h.waitTime,v=h.carousel,y=h.rowNum,m=f.length,!(y>=m)){n.next=8;break}return n.abrupt("return");case 8:if(!i){n.next=13;break}return n.next=11,new Promise((function(t){return setTimeout(t,g)}));case 11:if(p===e.updater){n.next=13;break}return n.abrupt("return");case 13:return b="single"===v?1:y,_=f.slice(c),_.push.apply(_,Object(o["a"])(f.slice(0,c))),e.rows=_.slice(0,"page"===v?2*y:y+1),e.heights=new Array(m).fill(u),n.next=20,new Promise((function(t){return setTimeout(t,300)}));case 20:if(p===e.updater){n.next=22;break}return n.abrupt("return");case 22:(r=e.heights).splice.apply(r,[0,b].concat(Object(o["a"])(new Array(b).fill(0)))),c+=b,x=c-m,x>=0&&(c=x),e.animationIndex=c,e.animationHandler=setTimeout(d,g-300);case 28:case"end":return n.stop()}}),n)})))()},stopAnimation:function(){var t=this.animationHandler,e=this.updater;this.updater=(e+1)%999999,t&&clearTimeout(t)},emitEvent:function(t,e,n,r,i){var o=r.ceils,a=r.rowIndex;this.$emit(t,{row:o,ceil:i,rowIndex:a,columnIndex:n})},updateRows:function(t,e){var n=this.mergedConfig,r=this.animationHandler,i=this.animation;this.mergedConfig=Object(a["a"])(Object(a["a"])({},n),{},{data:Object(o["a"])(t)}),this.needCalc=!0,"number"===typeof e&&(this.animationIndex=e),r||i(!0)}},destroyed:function(){var t=this.stopAnimation;t()}}),rr=nr,ir=Object(m["a"])(rr,tr,er,!1,null,null,null),or=ir.exports,ar=function(t){t.component(or.name,or)},sr=(n("c280"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:t.ref,staticClass:"dv-scroll-ranking-board"},t._l(t.rows,(function(e,r){return n("div",{key:e.toString()+e.scroll,staticClass:"row-item",style:"height: "+t.heights[r]+"px;"},[n("div",{staticClass:"ranking-info"},[n("div",{staticClass:"rank"},[t._v("No."+t._s(e.ranking))]),n("div",{staticClass:"info-name",domProps:{innerHTML:t._s(e.name)}}),n("div",{staticClass:"ranking-value"},[t._v(t._s(t.mergedConfig.valueFormatter?t.mergedConfig.valueFormatter(e):e.value+t.mergedConfig.unit))])]),n("div",{staticClass:"ranking-column"},[n("div",{staticClass:"inside-column",style:"width: "+e.percent+"%;"},[n("div",{staticClass:"shine"})])])])})),0)}),lr=[],ur={name:"DvScrollRankingBoard",mixins:[j],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 t=this.stopAnimation,e=this.calcData;t(),e()}},methods:{afterAutoResizeMixinInit:function(){var t=this.calcData;t()},onResize:function(){var t=this.mergedConfig,e=this.calcHeights;t&&e(!0)},calcData:function(){var t=this.mergeConfig,e=this.calcRowsData;t(),e();var n=this.calcHeights;n();var r=this.animation;r(!0)},mergeConfig:function(){var t=this.config,e=this.defaultConfig;this.mergedConfig=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t||{})},calcRowsData:function(){var t=this.mergedConfig,e=t.data,n=t.rowNum,r=t.sort;r&&e.sort((function(t,e){var n=t.value,r=e.value;return n>r?-1:n<r?1:n===r?0:void 0}));var i=e.map((function(t){var e=t.value;return e})),s=Math.min.apply(Math,Object(o["a"])(i))||0,l=Math.abs(s),u=Math.max.apply(Math,Object(o["a"])(i))||0,c=(Math.abs(u),u+l);e=e.map((function(t,e){return Object(a["a"])(Object(a["a"])({},t),{},{ranking:e+1,percent:(t.value+l)/c*100})}));var h=e.length;h>n&&h<2*n&&(e=[].concat(Object(o["a"])(e),Object(o["a"])(e))),e=e.map((function(t,e){return Object(a["a"])(Object(a["a"])({},t),{},{scroll:e})})),this.rowsData=e,this.rows=e},calcHeights:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.height,n=this.mergedConfig,r=n.rowNum,i=n.data,o=e/r;this.avgHeight=o,t||(this.heights=new Array(i.length).fill(o))},animation:function(){var t=arguments,e=this;return Object(Mn["a"])(Object(An["a"])().mark((function n(){var r,i,a,s,l,u,c,h,f,d,p,g,v,y,m;return Object(An["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(i=t.length>0&&void 0!==t[0]&&t[0],a=e.avgHeight,s=e.animationIndex,l=e.mergedConfig,u=e.rowsData,c=e.animation,h=e.updater,f=l.waitTime,d=l.carousel,p=l.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(t){return setTimeout(t,f)}));case 9:if(h===e.updater){n.next=11;break}return n.abrupt("return");case 11:return v="single"===d?1:p,y=u.slice(s),y.push.apply(y,Object(o["a"])(u.slice(0,s))),e.rows=y.slice(0,p+1),e.heights=new Array(g).fill(a),n.next=18,new Promise((function(t){return setTimeout(t,300)}));case 18:if(h===e.updater){n.next=20;break}return n.abrupt("return");case 20:(r=e.heights).splice.apply(r,[0,v].concat(Object(o["a"])(new Array(v).fill(0)))),s+=v,m=s-g,m>=0&&(s=m),e.animationIndex=s,e.animationHandler=setTimeout(c,f-300);case 26:case"end":return n.stop()}}),n)})))()},stopAnimation:function(){var t=this.animationHandler,e=this.updater;this.updater=(e+1)%999999,t&&clearTimeout(t)}},destroyed:function(){var t=this.stopAnimation;t()}},cr=ur,hr=Object(m["a"])(cr,sr,lr,!1,null,null,null),fr=(hr.exports,n("fa10"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"dv-water-pond-level"},[t.renderer?n("svg",[n("defs",[n("linearGradient",{attrs:{id:t.gradientId,x1:"0%",y1:"0%",x2:"0%",y2:"100%"}},t._l(t.svgBorderGradient,(function(t){return n("stop",{key:t[0],attrs:{offset:t[0],"stop-color":t[1]}})})),1)],1),t.renderer?n("text",{attrs:{stroke:"url(#"+t.gradientId+")",fill:"url(#"+t.gradientId+")",x:t.renderer.area[0]/2+8,y:t.renderer.area[1]/2+8}},[t._v(" "+t._s(t.details)+" ")]):t._e(),t.shape&&"round"!==t.shape?n("rect",{attrs:{x:"2",y:"2",rx:"roundRect"===t.shape?10:0,ry:"roundRect"===t.shape?10:0,width:t.renderer.area[0]+12,height:t.renderer.area[1]+12,stroke:"url(#"+t.gradientId+")"}}):n("ellipse",{attrs:{cx:t.renderer.area[0]/2+8,cy:t.renderer.area[1]/2+8,rx:t.renderer.area[0]/2+5,ry:t.renderer.area[1]/2+5,stroke:"url(#"+t.gradientId+")"}})]):t._e(),n("canvas",{ref:"water-pond-level",style:"border-radius: "+t.radius+";"})])}),dr=[],pr={name:"DvWaterLevelPond",props:{config:Object,default:function(){return{}}},data:function(){var t=P();return{gradientId:"water-level-pond-".concat(t),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 t=this.mergedConfig.shape;return"round"===t?"50%":"rect"===t?"0":"roundRect"===t?"10px":"0"},shape:function(){var t=this.mergedConfig.shape;return t||"rect"}},watch:{config:function(){var t=this.calcData,e=this.renderer;e.delAllGraph(),this.waves=[],setTimeout(t,0)}},methods:{init:function(){var t=this.initRender,e=this.config,n=this.calcData;t(),e&&n()},initRender:function(){var t=this.$refs;this.renderer=new d.a(t["water-pond-level"])},calcData:function(){var t=this.mergeConfig,e=this.calcSvgBorderGradient,n=this.calcDetails;t(),e(),n();var r=this.addWave,i=this.animationWave;r(),i()},mergeConfig:function(){var t=this.config,e=this.defaultConfig;this.mergedConfig=Object(p["deepMerge"])(Object(g["deepClone"])(e,!0),t)},calcSvgBorderGradient:function(){var t=this.mergedConfig.colors,e=t.length,n=100/(e-1);this.svgBorderGradient=t.map((function(t,e){return[n*e,t]}))},calcDetails:function(){var t=this.mergedConfig,e=t.data,n=t.formatter;if(e.length){var r=Math.max.apply(Math,Object(o["a"])(e));this.details=n.replace("{value}",r)}else this.details=""},addWave:function(){var t=this.renderer,e=this.getWaveShapes,n=this.getWaveStyle,r=this.drawed,i=e(),o=n();this.waves=i.map((function(e){return t.add({name:"smoothline",animationFrame:300,shape:e,style:o,drawed:r})}))},getWaveShapes:function(){var t=this.mergedConfig,e=this.renderer,n=this.mergeOffset,r=t.waveNum,i=t.waveHeight,o=t.data,a=Object(h["a"])(e.area,2),s=a[0],l=a[1],u=4*r+4,c=s/r/2;return o.map((function(t){var e=new Array(u).fill(0).map((function(e,n){var r=s-c*n,o=(1-t/100)*l,a=n%2===0?o:o-i;return[r,a]}));return e=e.map((function(t){return n(t,[2*c,0])})),{points:e}}))},mergeOffset:function(t,e){var n=Object(h["a"])(t,2),r=n[0],i=n[1],o=Object(h["a"])(e,2),a=o[0],s=o[1];return[r+a,i+s]},getWaveStyle:function(){var t=this.renderer,e=this.mergedConfig,n=t.area[1];return{gradientColor:e.colors,gradientType:"linear",gradientParams:[0,0,0,n],gradientWith:"fill",opacity:e.waveOpacity,translate:[0,0]}},drawed:function(t,e){var n=t.shape.points,r=e.ctx,i=e.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 t=arguments,e=this;return Object(Mn["a"])(Object(An["a"])().mark((function n(){var r,i,o,a,s;return Object(An["a"])().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(r=t.length>0&&void 0!==t[0]?t[0]:1,i=e.waves,o=e.renderer,a=e.animation,!a){n.next=4;break}return n.abrupt("return");case 4:return e.animation=!0,s=o.area[0],i.forEach((function(t){t.attr("style",{translate:[0,0]}),t.animation("style",{translate:[s,0]},!0)})),n.next=9,o.launchAnimation();case 9:if(e.animation=!1,o.graphs.length){n.next=12;break}return n.abrupt("return");case 12:e.animationWave(r+1);case 13:case"end":return n.stop()}}),n)})))()}},mounted:function(){var t=this.init;t()},beforeDestroy:function(){var t=this.renderer;t.delAllGraph(),this.waves=[]}},gr=pr,vr=Object(m["a"])(gr,fr,dr,!1,null,null,null),yr=vr.exports,mr=function(t){t.component(yr.name,yr)}},"6c57":function(t,e,n){var r=n("23e7"),i=n("da84");r({global:!0,forced:i.globalThis!==i},{globalThis:i})},"6c59":function(t,e){t.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},"6ca1":function(t,e,n){var r=n("9fbb"),i=n("c901");t.exports=function(t){return r(i(t))}},"6ccd":function(t,e,n){},"6d61":function(t,e,n){"use strict";var r=n("23e7"),i=n("da84"),o=n("e330"),a=n("94ca"),s=n("cb2d"),l=n("f183"),u=n("2266"),c=n("19aa"),h=n("1626"),f=n("7234"),d=n("861d"),p=n("d039"),g=n("1c7e"),v=n("d44e"),y=n("7156");t.exports=function(t,e,n){var m=-1!==t.indexOf("Map"),b=-1!==t.indexOf("Weak"),_=m?"set":"add",x=i[t],w=x&&x.prototype,S=x,O={},C=function(t){var e=o(w[t]);s(w,t,"add"==t?function(t){return e(this,0===t?0:t),this}:"delete"==t?function(t){return!(b&&!d(t))&&e(this,0===t?0:t)}:"get"==t?function(t){return b&&!d(t)?void 0:e(this,0===t?0:t)}:"has"==t?function(t){return!(b&&!d(t))&&e(this,0===t?0:t)}:function(t,n){return e(this,0===t?0:t,n),this})},k=a(t,!h(x)||!(b||w.forEach&&!p((function(){(new x).entries().next()}))));if(k)S=n.getConstructor(e,t,m,_),l.enable();else if(a(t,!0)){var A=new S,M=A[_](b?{}:-0,1)!=A,T=p((function(){A.has(1)})),I=g((function(t){new x(t)})),E=!b&&p((function(){var t=new x,e=5;while(e--)t[_](e,e);return!t.has(-0)}));I||(S=e((function(t,e){c(t,w);var n=y(new x,t,S);return f(e)||u(e,n[_],{that:n,AS_ENTRIES:m}),n})),S.prototype=w,w.constructor=S),(T||E)&&(C("delete"),C("has"),m&&C("get")),(E||M)&&C(_),b&&w.clear&&delete w.clear}return O[t]=S,r({global:!0,constructor:!0,forced:S!=x},O),v(S,t),b||n.setStrong(S,t,m),S}},"6d8b":function(t,e,n){"use strict";n.r(e),n.d(e,"guid",(function(){return v})),n.d(e,"logError",(function(){return y})),n.d(e,"clone",(function(){return m})),n.d(e,"merge",(function(){return b})),n.d(e,"mergeAll",(function(){return _})),n.d(e,"extend",(function(){return x})),n.d(e,"defaults",(function(){return w})),n.d(e,"createCanvas",(function(){return S})),n.d(e,"indexOf",(function(){return O})),n.d(e,"inherits",(function(){return C})),n.d(e,"mixin",(function(){return k})),n.d(e,"isArrayLike",(function(){return A})),n.d(e,"each",(function(){return M})),n.d(e,"map",(function(){return T})),n.d(e,"reduce",(function(){return I})),n.d(e,"filter",(function(){return E})),n.d(e,"find",(function(){return P})),n.d(e,"keys",(function(){return j})),n.d(e,"bind",(function(){return D})),n.d(e,"curry",(function(){return R})),n.d(e,"isArray",(function(){return N})),n.d(e,"isFunction",(function(){return B})),n.d(e,"isString",(function(){return F})),n.d(e,"isStringSafe",(function(){return z})),n.d(e,"isNumber",(function(){return V})),n.d(e,"isObject",(function(){return q})),n.d(e,"isBuiltInObject",(function(){return G})),n.d(e,"isTypedArray",(function(){return H})),n.d(e,"isDom",(function(){return W})),n.d(e,"isGradientObject",(function(){return U})),n.d(e,"isImagePatternObject",(function(){return $})),n.d(e,"isRegExp",(function(){return Y})),n.d(e,"eqNaN",(function(){return X})),n.d(e,"retrieve",(function(){return K})),n.d(e,"retrieve2",(function(){return Z})),n.d(e,"retrieve3",(function(){return Q})),n.d(e,"slice",(function(){return J})),n.d(e,"normalizeCssArray",(function(){return tt})),n.d(e,"assert",(function(){return et})),n.d(e,"trim",(function(){return nt})),n.d(e,"setAsPrimitive",(function(){return it})),n.d(e,"isPrimitive",(function(){return ot})),n.d(e,"HashMap",(function(){return at})),n.d(e,"createHashMap",(function(){return st})),n.d(e,"concatArray",(function(){return lt})),n.d(e,"createObject",(function(){return ut})),n.d(e,"disableUserSelect",(function(){return ct})),n.d(e,"hasOwn",(function(){return ht})),n.d(e,"noop",(function(){return ft})),n.d(e,"RADIAN_TO_DEGREE",(function(){return dt}));var r=n("726e"),i=I(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(t,e){return t["[object "+e+"]"]=!0,t}),{}),o=I(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(t,e){return t["[object "+e+"Array]"]=!0,t}),{}),a=Object.prototype.toString,s=Array.prototype,l=s.forEach,u=s.filter,c=s.slice,h=s.map,f=function(){}.constructor,d=f?f.prototype:null,p="__proto__",g=2311;function v(){return g++}function y(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!==typeof console&&console.error.apply(console,t)}function m(t){if(null==t||"object"!==typeof t)return t;var e=t,n=a.call(t);if("[object Array]"===n){if(!ot(t)){e=[];for(var r=0,s=t.length;r<s;r++)e[r]=m(t[r])}}else if(o[n]){if(!ot(t)){var l=t.constructor;if(l.from)e=l.from(t);else{e=new l(t.length);for(r=0,s=t.length;r<s;r++)e[r]=t[r]}}}else if(!i[n]&&!ot(t)&&!W(t))for(var u in e={},t)t.hasOwnProperty(u)&&u!==p&&(e[u]=m(t[u]));return e}function b(t,e,n){if(!q(e)||!q(t))return n?m(e):t;for(var r in e)if(e.hasOwnProperty(r)&&r!==p){var i=t[r],o=e[r];!q(o)||!q(i)||N(o)||N(i)||W(o)||W(i)||G(o)||G(i)||ot(o)||ot(i)?!n&&r in t||(t[r]=m(e[r])):b(i,o,n)}return t}function _(t,e){for(var n=t[0],r=1,i=t.length;r<i;r++)n=b(n,t[r],e);return n}function x(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==p&&(t[n]=e[n]);return t}function w(t,e,n){for(var r=j(e),i=0;i<r.length;i++){var o=r[i];(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}return t}var S=r["d"].createCanvas;function O(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n}return-1}function C(t,e){var n=t.prototype;function r(){}for(var i in r.prototype=e.prototype,t.prototype=new r,n)n.hasOwnProperty(i)&&(t.prototype[i]=n[i]);t.prototype.constructor=t,t.superClass=e}function k(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(e),i=0;i<r.length;i++){var o=r[i];"constructor"!==o&&(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}else w(t,e,n)}function A(t){return!!t&&("string"!==typeof t&&"number"===typeof t.length)}function M(t,e,n){if(t&&e)if(t.forEach&&t.forEach===l)t.forEach(e,n);else if(t.length===+t.length)for(var r=0,i=t.length;r<i;r++)e.call(n,t[r],r,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function T(t,e,n){if(!t)return[];if(!e)return J(t);if(t.map&&t.map===h)return t.map(e,n);for(var r=[],i=0,o=t.length;i<o;i++)r.push(e.call(n,t[i],i,t));return r}function I(t,e,n,r){if(t&&e){for(var i=0,o=t.length;i<o;i++)n=e.call(r,n,t[i],i,t);return n}}function E(t,e,n){if(!t)return[];if(!e)return J(t);if(t.filter&&t.filter===u)return t.filter(e,n);for(var r=[],i=0,o=t.length;i<o;i++)e.call(n,t[i],i,t)&&r.push(t[i]);return r}function P(t,e,n){if(t&&e)for(var r=0,i=t.length;r<i;r++)if(e.call(n,t[r],r,t))return t[r]}function j(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}function L(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return t.apply(e,n.concat(c.call(arguments)))}}var D=d&&B(d.bind)?d.call.bind(d.bind):L;function R(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(c.call(arguments)))}}function N(t){return Array.isArray?Array.isArray(t):"[object Array]"===a.call(t)}function B(t){return"function"===typeof t}function F(t){return"string"===typeof t}function z(t){return"[object String]"===a.call(t)}function V(t){return"number"===typeof t}function q(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function G(t){return!!i[a.call(t)]}function H(t){return!!o[a.call(t)]}function W(t){return"object"===typeof t&&"number"===typeof t.nodeType&&"object"===typeof t.ownerDocument}function U(t){return null!=t.colorStops}function $(t){return null!=t.image}function Y(t){return"[object RegExp]"===a.call(t)}function X(t){return t!==t}function K(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,r=t.length;n<r;n++)if(null!=t[n])return t[n]}function Z(t,e){return null!=t?t:e}function Q(t,e,n){return null!=t?t:null!=e?e:n}function J(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return c.apply(t,e)}function tt(t){if("number"===typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function et(t,e){if(!t)throw new Error(e)}function nt(t){return null==t?null:"function"===typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var rt="__ec_primitive__";function it(t){t[rt]=!0}function ot(t){return t[rt]}var at=function(){function t(e){this.data={};var n=N(e);this.data={};var r=this;function i(t,e){n?r.set(t,e):r.set(e,t)}e instanceof t?e.each(i):e&&M(e,i)}return t.prototype.get=function(t){return this.data.hasOwnProperty(t)?this.data[t]:null},t.prototype.set=function(t,e){return this.data[t]=e},t.prototype.each=function(t,e){for(var n in this.data)this.data.hasOwnProperty(n)&&t.call(e,this.data[n],n)},t.prototype.keys=function(){return j(this.data)},t.prototype.removeKey=function(t){delete this.data[t]},t}();function st(t){return new at(t)}function lt(t,e){for(var n=new t.constructor(t.length+e.length),r=0;r<t.length;r++)n[r]=t[r];var i=t.length;for(r=0;r<e.length;r++)n[r+i]=e[r];return n}function ut(t,e){var n;if(Object.create)n=Object.create(t);else{var r=function(){};r.prototype=t,n=new r}return e&&x(n,e),n}function ct(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function ht(t,e){return t.hasOwnProperty(e)}function ft(){}var dt=180/Math.PI},"6dd8":function(t,e,n){"use strict";n.r(e),function(t){var n=function(){if("undefined"!==typeof Map)return Map;function t(t,e){var n=-1;return t.some((function(t,r){return t[0]===e&&(n=r,!0)})),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),r=this.__entries__[n];return r&&r[1]},e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];t.call(e,i[1],i[0])}},e}()}(),r="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,i=function(){return"undefined"!==typeof t&&t.Math===Math?t:"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(t){return setTimeout((function(){return t(Date.now())}),1e3/60)}}(),a=2;function s(t,e){var n=!1,r=!1,i=0;function s(){n&&(n=!1,t()),r&&u()}function l(){o(s)}function u(){var t=Date.now();if(n){if(t-i<a)return;r=!0}else n=!0,r=!1,setTimeout(l,e);i=t}return u}var l=20,u=["top","right","bottom","left","width","height","size","weight"],c="undefined"!==typeof MutationObserver,h=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=s(this.refresh.bind(this),l)}return t.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},t.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},t.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},t.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),c?(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)},t.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)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e,r=u.some((function(t){return!!~n.indexOf(t)}));r&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),f=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];Object.defineProperty(t,i,{value:e[i],enumerable:!1,writable:!1,configurable:!0})}return t},d=function(t){var e=t&&t.ownerDocument&&t.ownerDocument.defaultView;return e||i},p=O(0,0,0,0);function g(t){return parseFloat(t)||0}function v(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce((function(e,n){var r=t["border-"+n+"-width"];return e+g(r)}),0)}function y(t){for(var e=["top","right","bottom","left"],n={},r=0,i=e;r<i.length;r++){var o=i[r],a=t["padding-"+o];n[o]=g(a)}return n}function m(t){var e=t.getBBox();return O(0,0,e.width,e.height)}function b(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return p;var r=d(t).getComputedStyle(t),i=y(r),o=i.left+i.right,a=i.top+i.bottom,s=g(r.width),l=g(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==e&&(s-=v(r,"left","right")+o),Math.round(l+a)!==n&&(l-=v(r,"top","bottom")+a)),!x(t)){var u=Math.round(s+o)-e,c=Math.round(l+a)-n;1!==Math.abs(u)&&(s-=u),1!==Math.abs(c)&&(l-=c)}return O(i.left,i.top,s,l)}var _=function(){return"undefined"!==typeof SVGGraphicsElement?function(t){return t instanceof d(t).SVGGraphicsElement}:function(t){return t instanceof d(t).SVGElement&&"function"===typeof t.getBBox}}();function x(t){return t===d(t).document.documentElement}function w(t){return r?_(t)?m(t):b(t):p}function S(t){var e=t.x,n=t.y,r=t.width,i=t.height,o="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(o.prototype);return f(a,{x:e,y:n,width:r,height:i,top:n,right:e+r,bottom:i+n,left:e}),a}function O(t,e,n,r){return{x:t,y:e,width:n,height:r}}var C=function(){function t(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=O(0,0,0,0),this.target=t}return t.prototype.isActive=function(){var t=w(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},t}(),k=function(){function t(t,e){var n=S(e);f(this,{target:t,contentRect:n})}return t}(),A=function(){function t(t,e,r){if(this.activeObservations_=[],this.observations_=new n,"function"!==typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=r}return t.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(t instanceof d(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new C(t)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(t instanceof d(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},t.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new k(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),M="undefined"!==typeof WeakMap?new WeakMap:new n,T=function(){function t(e){if(!(this instanceof t))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=h.getInstance(),r=new A(e,n,this);M.set(this,r)}return t}();["observe","unobserve","disconnect"].forEach((function(t){T.prototype[t]=function(){var e;return(e=M.get(this))[t].apply(e,arguments)}}));var I=function(){return"undefined"!==typeof i.ResizeObserver?i.ResizeObserver:T}();e["default"]=I}.call(this,n("c8ba"))},"6eb9":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.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};e.lineConfig=r},"6f4f":function(t,e,n){var r=n("77e9"),i=n("85e7"),o=n("9742"),a=n("5a94")("IE_PROTO"),s=function(){},l="prototype",u=function(){var t,e=n("05f5")("iframe"),r=o.length,i="<",a=">";e.style.display="none",n("9141").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(i+"script"+a+"document.F=Object"+i+"/script"+a),t.close(),u=t.F;while(r--)delete u[l][o[r]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(s[l]=r(t),n=new s,s[l]=null,n[a]=t):n=u(),void 0===e?n:i(n,e)}},"6fc2":function(t,e,n){},7037:function(t,e,n){function r(e){return t.exports=r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports["default"]=t.exports,r(e)}n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},7058:function(t,e,n){"use strict";t.exports=i;var r=n("3ca2");function i(t){if(!(this instanceof i))return new i(t);r.call(this,t)}n("3fb5")(i,r),i.prototype._transform=function(t,e,n){n(null,t)}},7135:function(t,e,n){(function(e){const r=n("b289"),i=e.allocUnsafe(0),o=e.from([0]),a=n("f0cb"),s=n("966d").nextTick,l=n("34eb")("mqtt-packet:writeToStream"),u=a.cache,c=a.generateNumber,h=a.generateCache,f=a.genBufVariableByteInt,d=a.generate4ByteBuffer;let p=j,g=!0;function v(t,e,n){switch(l("generate called"),e.cork&&(e.cork(),s(y,e)),g&&(g=!1,h()),l("generate: packet.cmd: %s",t.cmd),t.cmd){case"connect":return m(t,e,n);case"connack":return b(t,e,n);case"publish":return _(t,e,n);case"puback":case"pubrec":case"pubrel":case"pubcomp":return x(t,e,n);case"subscribe":return w(t,e,n);case"suback":return S(t,e,n);case"unsubscribe":return O(t,e,n);case"unsuback":return C(t,e,n);case"pingreq":case"pingresp":return k(t,e,n);case"disconnect":return A(t,e,n);case"auth":return M(t,e,n);default:return e.emit("error",new Error("Unknown command")),!1}}function y(t){t.uncork()}function m(t,n,i){const o=t||{},a=o.protocolId||"MQTT";let s=o.protocolVersion||4;const l=o.will;let u=o.clean;const c=o.keepalive||0,h=o.clientId||"",f=o.username,d=o.password,g=o.properties;void 0===u&&(u=!0);let v=0;if(!a||"string"!==typeof a&&!e.isBuffer(a))return n.emit("error",new Error("Invalid protocolId")),!1;if(v+=a.length+2,3!==s&&4!==s&&5!==s)return n.emit("error",new Error("Invalid protocol version")),!1;if(v+=1,("string"===typeof h||e.isBuffer(h))&&(h||s>=4)&&(h||u))v+=e.byteLength(h)+2;else{if(s<4)return n.emit("error",new Error("clientId must be supplied before 3.1.1")),!1;if(1*u===0)return n.emit("error",new Error("clientId must be given if cleanSession set to 0")),!1}if("number"!==typeof c||c<0||c>65535||c%1!==0)return n.emit("error",new Error("Invalid keepalive")),!1;if(v+=2,v+=1,5===s){var y=N(n,g);if(!y)return!1;v+=y.length}if(l){if("object"!==typeof l)return n.emit("error",new Error("Invalid will")),!1;if(!l.topic||"string"!==typeof l.topic)return n.emit("error",new Error("Invalid will topic")),!1;if(v+=e.byteLength(l.topic)+2,v+=2,l.payload){if(!(l.payload.length>=0))return n.emit("error",new Error("Invalid will payload")),!1;"string"===typeof l.payload?v+=e.byteLength(l.payload):v+=l.payload.length}var m={};if(5===s){if(m=N(n,l.properties),!m)return!1;v+=m.length}}let b=!1;if(null!=f){if(!q(f))return n.emit("error",new Error("Invalid username")),!1;b=!0,v+=e.byteLength(f)+2}if(null!=d){if(!b)return n.emit("error",new Error("Username is required to use password")),!1;if(!q(d))return n.emit("error",new Error("Invalid password")),!1;v+=V(d)+2}n.write(r.CONNECT_HEADER),I(n,v),R(n,a),o.bridgeMode&&(s+=128),n.write(131===s?r.VERSION131:132===s?r.VERSION132:4===s?r.VERSION4:5===s?r.VERSION5:r.VERSION3);let _=0;return _|=null!=f?r.USERNAME_MASK:0,_|=null!=d?r.PASSWORD_MASK:0,_|=l&&l.retain?r.WILL_RETAIN_MASK:0,_|=l&&l.qos?l.qos<<r.WILL_QOS_SHIFT:0,_|=l?r.WILL_FLAG_MASK:0,_|=u?r.CLEAN_SESSION_MASK:0,n.write(e.from([_])),p(n,c),5===s&&y.write(),R(n,h),l&&(5===s&&m.write(),E(n,l.topic),R(n,l.payload)),null!=f&&R(n,f),null!=d&&R(n,d),!0}function b(t,n,i){const a=i?i.protocolVersion:4,s=t||{},l=5===a?s.reasonCode:s.returnCode,u=s.properties;let c=2;if("number"!==typeof l)return n.emit("error",new Error("Invalid return code")),!1;let h=null;if(5===a){if(h=N(n,u),!h)return!1;c+=h.length}return n.write(r.CONNACK_HEADER),I(n,c),n.write(s.sessionPresent?r.SESSIONPRESENT_HEADER:o),n.write(e.from([l])),null!=h&&h.write(),!0}function _(t,n,o){l("publish: packet: %o",t);const a=o?o.protocolVersion:4,s=t||{},u=s.qos||0,c=s.retain?r.RETAIN_MASK:0,h=s.topic,f=s.payload||i,d=s.messageId,g=s.properties;let v=0;if("string"===typeof h)v+=e.byteLength(h)+2;else{if(!e.isBuffer(h))return n.emit("error",new Error("Invalid topic")),!1;v+=h.length+2}if(e.isBuffer(f)?v+=f.length:v+=e.byteLength(f),u&&"number"!==typeof d)return n.emit("error",new Error("Invalid messageId")),!1;u&&(v+=2);let y=null;if(5===a){if(y=N(n,g),!y)return!1;v+=y.length}return n.write(r.PUBLISH_HEADER[u][s.dup?1:0][c?1:0]),I(n,v),p(n,V(h)),n.write(h),u>0&&p(n,d),null!=y&&y.write(),l("publish: payload: %o",f),n.write(f)}function x(t,n,i){const o=i?i.protocolVersion:4,a=t||{},s=a.cmd||"puback",l=a.messageId,u=a.dup&&"pubrel"===s?r.DUP_MASK:0;let c=0;const h=a.reasonCode,f=a.properties;let d=5===o?3:2;if("pubrel"===s&&(c=1),"number"!==typeof l)return n.emit("error",new Error("Invalid messageId")),!1;let g=null;if(5===o&&"object"===typeof f){if(g=B(n,f,i,d),!g)return!1;d+=g.length}return n.write(r.ACKS[s][c][u][0]),I(n,d),p(n,l),5===o&&n.write(e.from([h])),null!==g&&g.write(),!0}function w(t,n,i){l("subscribe: packet: ");const o=i?i.protocolVersion:4,a=t||{},s=a.dup?r.DUP_MASK:0,u=a.messageId,c=a.subscriptions,h=a.properties;let f=0;if("number"!==typeof u)return n.emit("error",new Error("Invalid messageId")),!1;f+=2;let d=null;if(5===o){if(d=N(n,h),!d)return!1;f+=d.length}if("object"!==typeof c||!c.length)return n.emit("error",new Error("Invalid subscriptions")),!1;for(let r=0;r<c.length;r+=1){const t=c[r].topic,i=c[r].qos;if("string"!==typeof t)return n.emit("error",new Error("Invalid subscriptions - invalid topic")),!1;if("number"!==typeof i)return n.emit("error",new Error("Invalid subscriptions - invalid qos")),!1;if(5===o){const t=c[r].nl||!1;if("boolean"!==typeof t)return n.emit("error",new Error("Invalid subscriptions - invalid No Local")),!1;const e=c[r].rap||!1;if("boolean"!==typeof e)return n.emit("error",new Error("Invalid subscriptions - invalid Retain as Published")),!1;const i=c[r].rh||0;if("number"!==typeof i||i>2)return n.emit("error",new Error("Invalid subscriptions - invalid Retain Handling")),!1}f+=e.byteLength(t)+2+1}l("subscribe: writing to stream: %o",r.SUBSCRIBE_HEADER),n.write(r.SUBSCRIBE_HEADER[1][s?1:0][0]),I(n,f),p(n,u),null!==d&&d.write();let g=!0;for(const l of c){const t=l.topic,i=l.qos,a=+l.nl,s=+l.rap,u=l.rh;let c;E(n,t),c=r.SUBSCRIBE_OPTIONS_QOS[i],5===o&&(c|=a?r.SUBSCRIBE_OPTIONS_NL:0,c|=s?r.SUBSCRIBE_OPTIONS_RAP:0,c|=u?r.SUBSCRIBE_OPTIONS_RH[u]:0),g=n.write(e.from([c]))}return g}function S(t,n,i){const o=i?i.protocolVersion:4,a=t||{},s=a.messageId,l=a.granted,u=a.properties;let c=0;if("number"!==typeof s)return n.emit("error",new Error("Invalid messageId")),!1;if(c+=2,"object"!==typeof l||!l.length)return n.emit("error",new Error("Invalid qos vector")),!1;for(let e=0;e<l.length;e+=1){if("number"!==typeof l[e])return n.emit("error",new Error("Invalid qos vector")),!1;c+=1}let h=null;if(5===o){if(h=B(n,u,i,c),!h)return!1;c+=h.length}return n.write(r.SUBACK_HEADER),I(n,c),p(n,s),null!==h&&h.write(),n.write(e.from(l))}function O(t,n,i){const o=i?i.protocolVersion:4,a=t||{},s=a.messageId,l=a.dup?r.DUP_MASK:0,u=a.unsubscriptions,c=a.properties;let h=0;if("number"!==typeof s)return n.emit("error",new Error("Invalid messageId")),!1;if(h+=2,"object"!==typeof u||!u.length)return n.emit("error",new Error("Invalid unsubscriptions")),!1;for(let r=0;r<u.length;r+=1){if("string"!==typeof u[r])return n.emit("error",new Error("Invalid unsubscriptions")),!1;h+=e.byteLength(u[r])+2}let f=null;if(5===o){if(f=N(n,c),!f)return!1;h+=f.length}n.write(r.UNSUBSCRIBE_HEADER[1][l?1:0][0]),I(n,h),p(n,s),null!==f&&f.write();let d=!0;for(let e=0;e<u.length;e++)d=E(n,u[e]);return d}function C(t,n,i){const o=i?i.protocolVersion:4,a=t||{},s=a.messageId,l=a.dup?r.DUP_MASK:0,u=a.granted,c=a.properties,h=a.cmd,f=0;let d=2;if("number"!==typeof s)return n.emit("error",new Error("Invalid messageId")),!1;if(5===o){if("object"!==typeof u||!u.length)return n.emit("error",new Error("Invalid qos vector")),!1;for(let t=0;t<u.length;t+=1){if("number"!==typeof u[t])return n.emit("error",new Error("Invalid qos vector")),!1;d+=1}}let g=null;if(5===o){if(g=B(n,c,i,d),!g)return!1;d+=g.length}return n.write(r.ACKS[h][f][l][0]),I(n,d),p(n,s),null!==g&&g.write(),5===o&&n.write(e.from(u)),!0}function k(t,e,n){return e.write(r.EMPTY[t.cmd])}function A(t,n,i){const o=i?i.protocolVersion:4,a=t||{},s=a.reasonCode,l=a.properties;let u=5===o?1:0,c=null;if(5===o){if(c=B(n,l,i,u),!c)return!1;u+=c.length}return n.write(e.from([r.codes.disconnect<<4])),I(n,u),5===o&&n.write(e.from([s])),null!==c&&c.write(),!0}function M(t,n,i){const o=i?i.protocolVersion:4,a=t||{},s=a.reasonCode,l=a.properties;let u=5===o?1:0;5!==o&&n.emit("error",new Error("Invalid mqtt version for auth packet"));const c=B(n,l,i,u);return!!c&&(u+=c.length,n.write(e.from([r.codes.auth<<4])),I(n,u),n.write(e.from([s])),null!==c&&c.write(),!0)}Object.defineProperty(v,"cacheNumbers",{get(){return p===j},set(t){t?(u&&0!==Object.keys(u).length||(g=!0),p=j):(g=!1,p=L)}});const T={};function I(t,e){if(e>r.VARBYTEINT_MAX)return t.emit("error",new Error("Invalid variable byte integer: "+e)),!1;let n=T[e];return n||(n=f(e),e<16384&&(T[e]=n)),l("writeVarByteInt: writing to stream: %o",n),t.write(n)}function E(t,n){const r=e.byteLength(n);return p(t,r),l("writeString: %s",n),t.write(n,"utf8")}function P(t,e,n){E(t,e),E(t,n)}function j(t,e){return l("writeNumberCached: number: %d",e),l("writeNumberCached: %o",u[e]),t.write(u[e])}function L(t,e){const n=c(e);return l("writeNumberGenerated: %o",n),t.write(n)}function D(t,e){const n=d(e);return l("write4ByteNumber: %o",n),t.write(n)}function R(t,e){"string"===typeof e?E(t,e):e?(p(t,e.length),t.write(e)):p(t,0)}function N(t,n){if("object"!==typeof n||null!=n.length)return{length:1,write(){z(t,{},0)}};let i=0;function o(n,i){const o=r.propertiesTypes[n];let a=0;switch(o){case"byte":if("boolean"!==typeof i)return t.emit("error",new Error(`Invalid ${n}: ${i}`)),!1;a+=2;break;case"int8":if("number"!==typeof i||i<0||i>255)return t.emit("error",new Error(`Invalid ${n}: ${i}`)),!1;a+=2;break;case"binary":if(i&&null===i)return t.emit("error",new Error(`Invalid ${n}: ${i}`)),!1;a+=1+e.byteLength(i)+2;break;case"int16":if("number"!==typeof i||i<0||i>65535)return t.emit("error",new Error(`Invalid ${n}: ${i}`)),!1;a+=3;break;case"int32":if("number"!==typeof i||i<0||i>4294967295)return t.emit("error",new Error(`Invalid ${n}: ${i}`)),!1;a+=5;break;case"var":if("number"!==typeof i||i<0||i>268435455)return t.emit("error",new Error(`Invalid ${n}: ${i}`)),!1;a+=1+e.byteLength(f(i));break;case"string":if("string"!==typeof i)return t.emit("error",new Error(`Invalid ${n}: ${i}`)),!1;a+=3+e.byteLength(i.toString());break;case"pair":if("object"!==typeof i)return t.emit("error",new Error(`Invalid ${n}: ${i}`)),!1;a+=Object.getOwnPropertyNames(i).reduce((t,n)=>{const r=i[n];return Array.isArray(r)?t+=r.reduce((t,r)=>(t+=3+e.byteLength(n.toString())+2+e.byteLength(r.toString()),t),0):t+=3+e.byteLength(n.toString())+2+e.byteLength(i[n].toString()),t},0);break;default:return t.emit("error",new Error(`Invalid property ${n}: ${i}`)),!1}return a}if(n)for(const e in n){let t=0,r=0;const a=n[e];if(Array.isArray(a))for(let n=0;n<a.length;n++){if(r=o(e,a[n]),!r)return!1;t+=r}else{if(r=o(e,a),!r)return!1;t=r}if(!t)return!1;i+=t}const a=e.byteLength(f(i));return{length:a+i,write(){z(t,n,i)}}}function B(t,e,n,r){const i=["reasonString","userProperties"],o=n&&n.properties&&n.properties.maximumPacketSize?n.properties.maximumPacketSize:0;let a=N(t,e);if(o)while(r+a.length>o){const n=i.shift();if(!n||!e[n])return!1;delete e[n],a=N(t,e)}return a}function F(t,n,i){const o=r.propertiesTypes[n];switch(o){case"byte":t.write(e.from([r.properties[n]])),t.write(e.from([+i]));break;case"int8":t.write(e.from([r.properties[n]])),t.write(e.from([i]));break;case"binary":t.write(e.from([r.properties[n]])),R(t,i);break;case"int16":t.write(e.from([r.properties[n]])),p(t,i);break;case"int32":t.write(e.from([r.properties[n]])),D(t,i);break;case"var":t.write(e.from([r.properties[n]])),I(t,i);break;case"string":t.write(e.from([r.properties[n]])),E(t,i);break;case"pair":Object.getOwnPropertyNames(i).forEach(o=>{const a=i[o];Array.isArray(a)?a.forEach(i=>{t.write(e.from([r.properties[n]])),P(t,o.toString(),i.toString())}):(t.write(e.from([r.properties[n]])),P(t,o.toString(),a.toString()))});break;default:return t.emit("error",new Error(`Invalid property ${n} value: ${i}`)),!1}}function z(t,e,n){I(t,n);for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&null!==e[r]){const n=e[r];if(Array.isArray(n))for(let e=0;e<n.length;e++)F(t,r,n[e]);else F(t,r,n)}}function V(t){return t?t instanceof e?t.length:e.byteLength(t):0}function q(t){return"string"===typeof t||t instanceof e}t.exports=v}).call(this,n("1c35").Buffer)},7149:function(t,e,n){"use strict";var r=n("23e7"),i=n("d066"),o=n("c430"),a=n("d256"),s=n("4738").CONSTRUCTOR,l=n("cdf9"),u=i("Promise"),c=o&&!s;r({target:"Promise",stat:!0,forced:o||s},{resolve:function(t){return l(c&&this===u?a:this,t)}})},7156:function(t,e,n){var r=n("1626"),i=n("861d"),o=n("d2bb");t.exports=function(t,e,n){var a,s;return o&&r(a=e.constructor)&&a!==n&&i(s=a.prototype)&&s!==n.prototype&&o(t,s),t}},7234:function(t,e){t.exports=function(t){return null===t||void 0===t}},"726e":function(t,e,n){"use strict";n.d(e,"c",(function(){return r})),n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o})),n.d(e,"d",(function(){return h})),n.d(e,"e",(function(){return f}));var r=12,i="sans-serif",o=r+"px "+i,a=20,s=100,l="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function u(t){var e={};if("undefined"===typeof JSON)return e;for(var n=0;n<t.length;n++){var r=String.fromCharCode(n+32),i=(t.charCodeAt(n)-a)/s;e[r]=i}return e}var c=u(l),h={createCanvas:function(){return"undefined"!==typeof document&&document.createElement("canvas")},measureText:function(){var t,e;return function(n,i){if(!t){var a=h.createCanvas();t=a&&a.getContext("2d")}if(t)return e!==i&&(e=t.font=i||o),t.measureText(n);n=n||"",i=i||o;var s=/^([0-9]*?)px$/.exec(i),l=+(s&&s[1])||r,u=0;if(i.indexOf("mono")>=0)u=l*n.length;else for(var f=0;f<n.length;f++){var d=c[n[f]];u+=null==d?l:d*l}return{width:u}}}(),loadImage:function(t,e,n){var r=new Image;return r.onload=e,r.onerror=n,r.src=t,r}};function f(t){for(var e in h)t[e]&&(h[e]=t[e])}},"729e":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.pie=p;var i=r(n("9523")),o=r(n("7037")),a=r(n("278c")),s=r(n("448a")),l=n("18ad"),u=n("222a"),c=n("5557"),h=n("becb");function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){(0,i["default"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.series;n||(n=[]);var r=(0,h.initNeedSeries)(n,u.pieConfig,"pie");r=g(r,t),r=v(r,t),r=m(r,t),r=x(r),r=O(r,t),r=k(r),r=M(r),r=T(r),(0,l.doUpdate)({chart:t,series:r,key:"pie",getGraphConfig:D,getStartGraphConfig:R,beforeChange:N}),(0,l.doUpdate)({chart:t,series:r,key:"pieInsideLabel",getGraphConfig:z}),(0,l.doUpdate)({chart:t,series:r,key:"pieOutsideLabelLine",getGraphConfig:G,getStartGraphConfig:H}),(0,l.doUpdate)({chart:t,series:r,key:"pieOutsideLabel",getGraphConfig:$,getStartGraphConfig:Y})}function g(t,e){var n=e.render.area;return t.forEach((function(t){var e=t.center;e=e.map((function(t,e){return"number"===typeof t?t:parseInt(t)/100*n[e]})),t.center=e})),t}function v(t,e){var n=Math.min.apply(Math,(0,s["default"])(e.render.area))/2;return t.forEach((function(t){var e=t.radius,r=t.data;e=y(e,n),r.forEach((function(t){var r=t.radius;r||(r=e),r=y(r,n),t.radius=r})),t.radius=e})),t}function y(t,e){return t instanceof Array||(t=[0,t]),t=t.map((function(t){return"number"===typeof t?t:parseInt(t)/100*e})),t}function m(t,e){var n=t.filter((function(t){var e=t.roseType;return e}));return n.forEach((function(t){var e=t.radius,n=t.data,r=t.roseSort,i=_(t),o=(0,s["default"])(n);n=b(n),n.forEach((function(t,n){t.radius[1]=e[1]-i*n})),r?n.reverse():t.data=o,t.roseIncrement=i})),t}function b(t){return t.sort((function(t,e){var n=t.value,r=e.value;return n===r?0:n>r?-1:n<r?1:void 0}))}function _(t){var e=t.radius,n=t.roseIncrement;if("number"===typeof n)return n;if("auto"===n){var r=t.data,i=r.reduce((function(t,e){var n=e.radius;return[].concat((0,s["default"])(t),(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*e[1]}function x(t){return t.forEach((function(t){var e=t.data,n=t.percentToFixed,r=S(e);e.forEach((function(t){var e=t.value;t.percent=e/r*100,t.percentForLabel=w(e/r*100,n)}));var i=(0,h.mulAdd)(e.slice(0,-1).map((function(t){var e=t.percent;return e})));e.slice(-1)[0].percent=100-i,e.slice(-1)[0].percentForLabel=w(100-i,n)})),t}function w(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=t.toString(),r=n.split("."),i=r[1]||"0",o=i.slice(0,e);return r[1]=o,parseFloat(r.join("."))}function S(t){return(0,h.mulAdd)(t.map((function(t){var e=t.value;return e})))}function O(t){return t.forEach((function(t){var e=t.startAngle,n=t.data;n.forEach((function(t,r){var i=C(n,r),o=(0,a["default"])(i,2),s=o[0],l=o[1];t.startAngle=e+s,t.endAngle=e+l}))})),t}function C(t,e){var n=2*Math.PI,r=t.slice(0,e+1),i=(0,h.mulAdd)(r.map((function(t){var e=t.percent;return e}))),o=t[e].percent,a=i-o;return[n*a/100,n*i/100]}function k(t){return t.forEach((function(t){var e=t.data;e.forEach((function(e){e.insideLabelPos=A(t,e)}))})),t}function A(t,e){var n=t.center,r=e.startAngle,i=e.endAngle,o=(0,a["default"])(e.radius,2),l=o[0],u=o[1],h=(l+u)/2,f=(r+i)/2;return c.getCircleRadianPoint.apply(void 0,(0,s["default"])(n).concat([h,f]))}function M(t){return t.forEach((function(t){var e=t.data,n=t.center;e.forEach((function(t){var e=t.startAngle,r=t.endAngle,i=t.radius,o=(e+r)/2,a=c.getCircleRadianPoint.apply(void 0,(0,s["default"])(n).concat([i[1],o]));t.edgeCenterPos=a}))})),t}function T(t){return t.forEach((function(t){var e=P(t),n=P(t,!1);e=j(e),n=j(n),L(e,t),L(n,t,!1)})),t}function I(t){var e=t.outsideLabel.labelLineBendGap,n=E(t);return"number"!==typeof e&&(e=parseInt(e)/100*n),e+n}function E(t){var e=t.data,n=e.map((function(t){var e=(0,a["default"])(t.radius,2),n=(e[0],e[1]);return n}));return Math.max.apply(Math,(0,s["default"])(n))}function P(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=t.data,r=t.center,i=r[0];return n.filter((function(t){var n=t.edgeCenterPos,r=n[0];return e?r<=i:r>i}))}function j(t){return t.sort((function(t,e){var n=(0,a["default"])(t.edgeCenterPos,2),r=(n[0],n[1]),i=(0,a["default"])(e.edgeCenterPos,2),o=(i[0],i[1]);return r>o?1:r<o?-1:r===o?0:void 0})),t}function L(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=e.center,i=e.outsideLabel,o=I(e);t.forEach((function(t){var e=t.edgeCenterPos,a=t.startAngle,l=t.endAngle,u=i.labelLineEndLength,f=(a+l)/2,d=c.getCircleRadianPoint.apply(void 0,(0,s["default"])(r).concat([o,f])),p=(0,s["default"])(d);p[0]+=u*(n?-1:1),t.labelLine=[e,d,p],t.labelLineLength=(0,h.getPolylineLength)(t.labelLine),t.align={textAlign:"left",textBaseline:"middle"},n&&(t.align.textAlign="right")}))}function D(t){var e=t.data,n=t.animationCurve,r=t.animationFrame,i=t.rLevel;return e.map((function(e,o){return{name:"pie",index:i,animationCurve:n,animationFrame:r,shape:B(t,o),style:F(t,o)}}))}function R(t){var e=t.animationDelayGap,n=t.startAnimationCurve,r=D(t);return r.forEach((function(t,r){t.animationCurve=n,t.animationDelay=r*e,t.shape.or=t.shape.ir})),r}function N(t){t.animationDelay=0}function B(t,e){var n=t.center,r=t.data,i=r[e],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 F(t,e){var n=t.pieStyle,r=t.data,i=r[e],o=i.color;return(0,h.deepMerge)({fill:o},n)}function z(t){var e=t.animationCurve,n=t.animationFrame,r=t.data,i=t.rLevel;return r.map((function(r,o){return{name:"text",index:i,visible:t.insideLabel.show,animationCurve:e,animationFrame:n,shape:V(t,o),style:q(t,o)}}))}function V(t,e){var n=t.insideLabel,r=t.data,i=n.formatter,a=r[e],s=(0,o["default"])(i),l="";return"string"===s&&(l=i.replace("{name}",a.name),l=l.replace("{percent}",a.percentForLabel),l=l.replace("{value}",a.value)),"function"===s&&(l=i(a)),{content:l,position:a.insideLabelPos}}function q(t,e){var n=t.insideLabel.style;return n}function G(t){var e=t.animationCurve,n=t.animationFrame,r=t.data,i=t.rLevel;return r.map((function(r,o){return{name:"polyline",index:i,visible:t.outsideLabel.show,animationCurve:e,animationFrame:n,shape:W(t,o),style:U(t,o)}}))}function H(t){var e=t.data,n=G(t);return n.forEach((function(t,n){t.style.lineDash=[0,e[n].labelLineLength]})),n}function W(t,e){var n=t.data,r=n[e];return{points:r.labelLine}}function U(t,e){var n=t.outsideLabel,r=t.data,i=n.labelLineStyle,o=r[e].color;return(0,h.deepMerge)({stroke:o,lineDash:[r[e].labelLineLength,0]},i)}function $(t){var e=t.animationCurve,n=t.animationFrame,r=t.data,i=t.rLevel;return r.map((function(r,o){return{name:"text",index:i,visible:t.outsideLabel.show,animationCurve:e,animationFrame:n,shape:X(t,o),style:K(t,o)}}))}function Y(t){var e=t.data,n=$(t);return n.forEach((function(t,n){t.shape.position=e[n].labelLine[1]})),n}function X(t,e){var n=t.outsideLabel,r=t.data,i=n.formatter,a=r[e],s=a.labelLine,l=a.name,u=a.percentForLabel,c=a.value,h=(0,o["default"])(i),f="";return"string"===h&&(f=i.replace("{name}",l),f=f.replace("{percent}",u),f=f.replace("{value}",c)),"function"===h&&(f=i(r[e])),{content:f,position:s[2]}}function K(t,e){var n=t.outsideLabel,r=t.data,i=r[e],o=i.color,a=i.align,s=n.style;return(0,h.deepMerge)(d({fill:o},a),s)}},"733c":function(t,e,n){},7418:function(t,e){e.f=Object.getOwnPropertySymbols},"75d2":function(t,e,n){"use strict";var r=n("e142").codes.ERR_INVALID_OPT_VALUE;function i(t,e,n){return null!=t.highWaterMark?t.highWaterMark:e?t[n]:null}function o(t,e,n,o){var a=i(e,o,n);if(null!=a){if(!isFinite(a)||Math.floor(a)!==a||a<0){var s=o?n:"highWaterMark";throw new r(s,a)}return Math.floor(a)}return t.objectMode?16:16384}t.exports={getHighWaterMark:o}},"77e9":function(t,e,n){var r=n("7a41");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},"782c":function(t,e,n){"use strict";(function(e){var r;function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=n("bf09"),a=Symbol("lastResolve"),s=Symbol("lastReject"),l=Symbol("error"),u=Symbol("ended"),c=Symbol("lastPromise"),h=Symbol("handlePromise"),f=Symbol("stream");function d(t,e){return{value:t,done:e}}function p(t){var e=t[a];if(null!==e){var n=t[f].read();null!==n&&(t[c]=null,t[a]=null,t[s]=null,e(d(n,!1)))}}function g(t){e.nextTick(p,t)}function v(t,e){return function(n,r){t.then((function(){e[u]?n(d(void 0,!0)):e[h](n,r)}),r)}}var y=Object.getPrototypeOf((function(){})),m=Object.setPrototypeOf((r={get stream(){return this[f]},next:function(){var t=this,n=this[l];if(null!==n)return Promise.reject(n);if(this[u])return Promise.resolve(d(void 0,!0));if(this[f].destroyed)return new Promise((function(n,r){e.nextTick((function(){t[l]?r(t[l]):n(d(void 0,!0))}))}));var r,i=this[c];if(i)r=new Promise(v(i,this));else{var o=this[f].read();if(null!==o)return Promise.resolve(d(o,!1));r=new Promise(this[h])}return this[c]=r,r}},i(r,Symbol.asyncIterator,(function(){return this})),i(r,"return",(function(){var t=this;return new Promise((function(e,n){t[f].destroy(null,(function(t){t?n(t):e(d(void 0,!0))}))}))})),r),y),b=function(t){var e,n=Object.create(m,(e={},i(e,f,{value:t,writable:!0}),i(e,a,{value:null,writable:!0}),i(e,s,{value:null,writable:!0}),i(e,l,{value:null,writable:!0}),i(e,u,{value:t._readableState.endEmitted,writable:!0}),i(e,h,{value:function(t,e){var r=n[f].read();r?(n[c]=null,n[a]=null,n[s]=null,t(d(r,!1))):(n[a]=t,n[s]=e)},writable:!0}),e));return n[c]=null,o(t,(function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=n[s];return null!==e&&(n[c]=null,n[a]=null,n[s]=null,e(t)),void(n[l]=t)}var r=n[a];null!==r&&(n[c]=null,n[a]=null,n[s]=null,r(d(void 0,!0))),n[u]=!0})),t.on("readable",g.bind(null,n)),n};t.exports=b}).call(this,n("4362"))},7839:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"785a":function(t,e,n){var r=n("cc12"),i=r("span").classList,o=i&&i.constructor&&i.constructor.prototype;t.exports=o===Object.prototype?void 0:o},7887:function(t,e,n){"use strict";(function(e){var r;function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=n("ddda"),a=Symbol("lastResolve"),s=Symbol("lastReject"),l=Symbol("error"),u=Symbol("ended"),c=Symbol("lastPromise"),h=Symbol("handlePromise"),f=Symbol("stream");function d(t,e){return{value:t,done:e}}function p(t){var e=t[a];if(null!==e){var n=t[f].read();null!==n&&(t[c]=null,t[a]=null,t[s]=null,e(d(n,!1)))}}function g(t){e.nextTick(p,t)}function v(t,e){return function(n,r){t.then((function(){e[u]?n(d(void 0,!0)):e[h](n,r)}),r)}}var y=Object.getPrototypeOf((function(){})),m=Object.setPrototypeOf((r={get stream(){return this[f]},next:function(){var t=this,n=this[l];if(null!==n)return Promise.reject(n);if(this[u])return Promise.resolve(d(void 0,!0));if(this[f].destroyed)return new Promise((function(n,r){e.nextTick((function(){t[l]?r(t[l]):n(d(void 0,!0))}))}));var r,i=this[c];if(i)r=new Promise(v(i,this));else{var o=this[f].read();if(null!==o)return Promise.resolve(d(o,!1));r=new Promise(this[h])}return this[c]=r,r}},i(r,Symbol.asyncIterator,(function(){return this})),i(r,"return",(function(){var t=this;return new Promise((function(e,n){t[f].destroy(null,(function(t){t?n(t):e(d(void 0,!0))}))}))})),r),y),b=function(t){var e,n=Object.create(m,(e={},i(e,f,{value:t,writable:!0}),i(e,a,{value:null,writable:!0}),i(e,s,{value:null,writable:!0}),i(e,l,{value:null,writable:!0}),i(e,u,{value:t._readableState.endEmitted,writable:!0}),i(e,h,{value:function(t,e){var r=n[f].read();r?(n[c]=null,n[a]=null,n[s]=null,t(d(r,!1))):(n[a]=t,n[s]=e)},writable:!0}),e));return n[c]=null,o(t,(function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=n[s];return null!==e&&(n[c]=null,n[a]=null,n[s]=null,e(t)),void(n[l]=t)}var r=n[a];null!==r&&(n[c]=null,n[a]=null,n[s]=null,r(d(void 0,!0))),n[u]=!0})),t.on("readable",g.bind(null,n)),n};t.exports=b}).call(this,n("4362"))},"7a29":function(t,e,n){"use strict";(function(t){n.d(e,"p",(function(){return s})),n.d(e,"j",(function(){return u})),n.d(e,"q",(function(){return h})),n.d(e,"e",(function(){return f})),n.d(e,"a",(function(){return d})),n.d(e,"b",(function(){return p})),n.d(e,"i",(function(){return g})),n.d(e,"h",(function(){return v})),n.d(e,"l",(function(){return y})),n.d(e,"n",(function(){return b})),n.d(e,"m",(function(){return _})),n.d(e,"o",(function(){return x})),n.d(e,"k",(function(){return w})),n.d(e,"d",(function(){return S})),n.d(e,"f",(function(){return O})),n.d(e,"g",(function(){return C})),n.d(e,"c",(function(){return k}));var r=n("6d8b"),i=n("41ef"),o=n("22d1"),a=Math.round;function s(t){var e;if(t&&"transparent"!==t){if("string"===typeof t&&t.indexOf("rgba")>-1){var n=Object(i["parse"])(t);n&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3])}}else t="none";return{color:t,opacity:null==e?1:e}}var l=1e-4;function u(t){return t<l&&t>-l}function c(t){return a(1e3*t)/1e3}function h(t){return a(1e4*t)/1e4}function f(t){return"matrix("+c(t[0])+","+c(t[1])+","+c(t[2])+","+c(t[3])+","+h(t[4])+","+h(t[5])+")"}var d={left:"start",right:"end",center:"middle",middle:"middle"};function p(t,e,n){return"top"===n?t+=e/2:"bottom"===n&&(t-=e/2),t}function g(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function v(t){var e=t.style,n=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}function y(t){return t&&!!t.image}function m(t){return t&&!!t.svgElement}function b(t){return y(t)||m(t)}function _(t){return"linear"===t.type}function x(t){return"radial"===t.type}function w(t){return t&&("linear"===t.type||"radial"===t.type)}function S(t){return"url(#"+t+")"}function O(t){var e=t.getGlobalScale(),n=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function C(t){var e=t.x||0,n=t.y||0,i=(t.rotation||0)*r["RADIAN_TO_DEGREE"],o=Object(r["retrieve2"])(t.scaleX,1),s=Object(r["retrieve2"])(t.scaleY,1),l=t.skewX||0,u=t.skewY||0,c=[];return(e||n)&&c.push("translate("+e+"px,"+n+"px)"),i&&c.push("rotate("+i+")"),1===o&&1===s||c.push("scale("+o+","+s+")"),(l||u)&&c.push("skew("+a(l*r["RADIAN_TO_DEGREE"])+"deg, "+a(u*r["RADIAN_TO_DEGREE"])+"deg)"),c.join(" ")}var k=function(){return o["a"].hasGlobalWindow&&Object(r["isFunction"])(window.btoa)?function(t){return window.btoa(unescape(t))}:"undefined"!==typeof t?function(e){return t.from(e).toString("base64")}:function(t){return null}}()}).call(this,n("1c35").Buffer)},"7a41":function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},"7a77":function(t,e,n){"use strict";function r(t){this.message=t}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,t.exports=r},"7aac":function(t,e,n){"use strict";var r=n("c532");t.exports=r.isStandardBrowserEnv()?function(){return{write:function(t,e,n,i,o,a){var s=[];s.push(t+"="+encodeURIComponent(e)),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(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},"7b0b":function(t,e,n){var r=n("1d80"),i=Object;t.exports=function(t){return i(r(t))}},"7b3e":function(t,e,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(t,e){if(!i.canUseDOM||e&&!("addEventListener"in document))return!1;var n="on"+t,o=n in document;if(!o){var a=document.createElement("div");a.setAttribute(n,"return;"),o="function"===typeof a[n]}return!o&&r&&"wheel"===t&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}i.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),t.exports=o},"7b6a":function(t,e,n){"use strict";t.exports=c;var r=n("e142").codes,i=r.ERR_METHOD_NOT_IMPLEMENTED,o=r.ERR_MULTIPLE_CALLBACK,a=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=r.ERR_TRANSFORM_WITH_LENGTH_0,l=n("030c");function u(t,e){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(null===r)return this.emit("error",new o);n.writechunk=null,n.writecb=null,null!=e&&this.push(e),r(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function c(t){if(!(this instanceof c))return new c(t);l.call(this,t),this._transformState={afterTransform:u.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"===typeof t.transform&&(this._transform=t.transform),"function"===typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",h)}function h(){var t=this;"function"!==typeof this._flush||this._readableState.destroyed?f(this,null,null):this._flush((function(e,n){f(t,e,n)}))}function f(t,e,n){if(e)return t.emit("error",e);if(null!=n&&t.push(n),t._writableState.length)throw new s;if(t._transformState.transforming)throw new a;return t.push(null)}n("3fb5")(c,l),c.prototype.push=function(t,e){return this._transformState.needTransform=!1,l.prototype.push.call(this,t,e)},c.prototype._transform=function(t,e,n){n(new i("_transform()"))},c.prototype._write=function(t,e,n){var r=this._transformState;if(r.writecb=n,r.writechunk=t,r.writeencoding=e,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},c.prototype._read=function(t){var e=this._transformState;null===e.writechunk||e.transforming?e.needTransform=!0:(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform))},c.prototype._destroy=function(t,e){l.prototype._destroy.call(this,t,(function(t){e(t)}))}},"7c73":function(t,e,n){var r,i=n("825a"),o=n("37e8"),a=n("7839"),s=n("d012"),l=n("1be4"),u=n("cc12"),c=n("f772"),h=">",f="<",d="prototype",p="script",g=c("IE_PROTO"),v=function(){},y=function(t){return f+p+h+t+f+"/"+p+h},m=function(t){t.write(y("")),t.close();var e=t.parentWindow.Object;return t=null,e},b=function(){var t,e=u("iframe"),n="java"+p+":";return e.style.display="none",l.appendChild(e),e.src=String(n),t=e.contentWindow.document,t.open(),t.write(y("document.F=Object")),t.close(),t.F},_=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}_="undefined"!=typeof document?document.domain&&r?m(r):b():m(r);var t=a.length;while(t--)delete _[d][a[t]];return _()};s[g]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(v[d]=i(t),n=new v,v[d]=null,n[g]=t):n=_(),void 0===e?n:o.f(n,e)}},"7cc8":function(t,e,n){},"7db0":function(t,e,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(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o(a)},"7ec2":function(t,e,n){n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),n("b636"),n("944a"),n("0c47"),n("23dc"),n("3410"),n("d9e2"),n("14d9"),n("159b"),n("b0c0"),n("131a"),n("1f68"),n("fb6a");var r=n("7037")["default"];function i(){"use strict";
|
||
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t.exports=i=function(){return e},t.exports.__esModule=!0,t.exports["default"]=t.exports;var e={},n=Object.prototype,o=n.hasOwnProperty,a=Object.defineProperty||function(t,e,n){t[e]=n.value},s="function"==typeof Symbol?Symbol:{},l=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",c=s.toStringTag||"@@toStringTag";function h(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},"")}catch(E){h=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var i=e&&e.prototype instanceof g?e:g,o=Object.create(i.prototype),s=new M(r||[]);return a(o,"_invoke",{value:O(t,n,s)}),o}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(E){return{type:"throw",arg:E}}}e.wrap=f;var p={};function g(){}function v(){}function y(){}var m={};h(m,l,(function(){return this}));var b=Object.getPrototypeOf,_=b&&b(b(T([])));_&&_!==n&&o.call(_,l)&&(m=_);var x=y.prototype=g.prototype=Object.create(m);function w(t){["next","throw","return"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(i,a,s,l){var u=d(t[i],t,a);if("throw"!==u.type){var c=u.arg,h=c.value;return h&&"object"==r(h)&&o.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,s,l)}),(function(t){n("throw",t,s,l)})):e.resolve(h).then((function(t){c.value=t,s(c)}),(function(t){return n("throw",t,s,l)}))}l(u.arg)}var i;a(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(o,o):o()}})}function O(t,e,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 I()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=C(a,n);if(s){if(s===p)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 l=d(t,e,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===p)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function C(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator["return"]&&(e.method="return",e.arg=void 0,C(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var i=d(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,p;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function M(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function T(t){if(t){var e=t[l];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(o.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:I}}function I(){return{value:void 0,done:!0}}return v.prototype=y,a(x,"constructor",{value:y,configurable:!0}),a(y,"constructor",{value:v,configurable:!0}),v.displayName=h(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,h(t,c,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},w(S.prototype),h(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new S(f(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(x),h(x,c,"Generator"),h(x,l,(function(){return this})),h(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=T,M.prototype={constructor:M,reset:function(t){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(A),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=o.call(i,"catchLoc"),l=o.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),p},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),A(n),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;A(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:T(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},e}t.exports=i,t.exports.__esModule=!0,t.exports["default"]=t.exports},"7ed3":function(t,e,n){},"7f0f":function(t,e,n){(function(e){const r=n("7135"),i=n("faa1");function o(t,e){const n=new a;return r(t,n,e),n.concat()}class a extends i{constructor(){super(),this._array=new Array(20),this._i=0}write(t){return this._array[this._i++]=t,!0}concat(){let t=0;const n=new Array(this._array.length),r=this._array;let i,o=0;for(i=0;i<r.length&&void 0!==r[i];i++)"string"!==typeof r[i]?n[i]=r[i].length:n[i]=e.byteLength(r[i]),t+=n[i];const a=e.allocUnsafe(t);for(i=0;i<r.length&&void 0!==r[i];i++)"string"!==typeof r[i]?(r[i].copy(a,o),o+=n[i]):(a.write(r[i],o),o+=n[i]);return a}}t.exports=o}).call(this,n("1c35").Buffer)},"7f73":function(t,e,n){"use strict";t.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}},8096:function(t,e,n){},8119:function(t,e,n){n("693d"),n("dfe5"),n("301c"),n("4e71"),t.exports=n("5524").Symbol},8172:function(t,e,n){var r=n("e065"),i=n("57b9");r("toPrimitive"),i()},"81d5":function(t,e,n){"use strict";var r=n("7b0b"),i=n("23cb"),o=n("07fa");t.exports=function(t){var e=r(this),n=o(e),a=arguments.length,s=i(a>1?arguments[1]:void 0,n),l=a>2?arguments[2]:void 0,u=void 0===l?n:i(l,n);while(u>s)e[s++]=t;return e}},"825a":function(t,e,n){var r=n("861d"),i=String,o=TypeError;t.exports=function(t){if(r(t))return t;throw o(i(t)+" is not an object")}},8261:function(t,e,n){},8311:function(t,e,n){"use strict";const{Buffer:r}=n("1c35"),i=n("035d").Transform,o=n("fb12");let a,s,l;function u(){const t=new i;return t._write=function(t,e,n){a.send({data:t.buffer,success:function(){n()},fail:function(t){n(new Error(t))}})},t._flush=function(t){a.close({success:function(){t()}})},t}function c(t){t.hostname||(t.hostname="localhost"),t.path||(t.path="/"),t.wsOptions||(t.wsOptions={})}function h(t,e){const n="wxs"===t.protocol?"wss":"ws";let r=n+"://"+t.hostname+t.path;return t.port&&80!==t.port&&443!==t.port&&(r=n+"://"+t.hostname+":"+t.port+t.path),"function"===typeof t.transformWsUrl&&(r=t.transformWsUrl(r,t,e)),r}function f(){a.onOpen((function(){l.setReadable(s),l.setWritable(s),l.emit("connect")})),a.onMessage((function(t){let e=t.data;e=e instanceof ArrayBuffer?r.from(e):r.from(e,"utf8"),s.push(e)})),a.onClose((function(){l.end(),l.destroy()})),a.onError((function(t){l.destroy(new Error(t.errMsg))}))}function d(t,e){if(e.hostname=e.hostname||e.host,!e.hostname)throw new Error("Could not determine host. Specify host manually.");const n="MQIsdp"===e.protocolId&&3===e.protocolVersion?"mqttv3.1":"mqtt";c(e);const r=h(e,t);a=wx.connectSocket({url:r,protocols:[n]}),s=u(),l=o.obj(),l._destroy=function(t,e){a.close({success:function(){e&&e(t)}})};const i=l.destroy;return l.destroy=function(){l.destroy=i;const t=this;setTimeout((function(){a.close({fail:function(){t._destroy(new Error)}})}),0)}.bind(l),f(),l}t.exports=d},"83ab":function(t,e,n){var r=n("d039");t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"83b9":function(t,e,n){"use strict";var r=n("d925"),i=n("e683");t.exports=function(t,e){return t&&!r(e)?i(t,e):e}},8418:function(t,e,n){"use strict";var r=n("a04b"),i=n("9bf2"),o=n("5c6c");t.exports=function(t,e,n){var a=r(e);a in t?i.f(t,a,o(0,n)):t[a]=n}},"841c":function(t,e,n){"use strict";var r=n("c65b"),i=n("d784"),o=n("825a"),a=n("7234"),s=n("1d80"),l=n("129f"),u=n("577e"),c=n("dc4a"),h=n("14c3");i("search",(function(t,e,n){return[function(e){var n=s(this),i=a(e)?void 0:c(e,t);return i?r(i,e,n):new RegExp(e)[t](u(n))},function(t){var r=o(this),i=u(t),a=n(e,r,i);if(a.done)return a.value;var s=r.lastIndex;l(s,0)||(r.lastIndex=0);var c=h(r,i);return l(r.lastIndex,s)||(r.lastIndex=s),null===c?-1:c.index}]}))},"848b":function(t,e,n){"use strict";var r=n("5cce").version,i={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){i[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));var o={};function a(t,e,n){if("object"!==typeof t)throw new TypeError("options must be an object");var r=Object.keys(t),i=r.length;while(i-- >0){var o=r[i],a=e[o];if(a){var s=t[o],l=void 0===s||a(s,o,t);if(!0!==l)throw new TypeError("option "+o+" must be "+l)}else if(!0!==n)throw Error("Unknown option "+o)}}i.transitional=function(t,e,n){function i(t,e){return"[Axios v"+r+"] Transitional option '"+t+"'"+e+(n?". "+n:"")}return function(n,r,a){if(!1===t)throw new Error(i(r," has been removed"+(e?" in "+e:"")));return e&&!o[r]&&(o[r]=!0,console.warn(i(r," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,r,a)}},t.exports={assertOptions:a,validators:i}},"84cd":function(t,e,n){},"852e":function(t,e,n){(function(e,n){t.exports=n()})(0,(function(){"use strict";function t(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}var e={read:function(t){return'"'===t[0]&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function n(e,r){function i(n,i,o){if("undefined"!==typeof document){o=t({},r,o),"number"===typeof o.expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),n=encodeURIComponent(n).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var s in o)o[s]&&(a+="; "+s,!0!==o[s]&&(a+="="+o[s].split(";")[0]));return document.cookie=n+"="+e.write(i,n)+a}}function o(t){if("undefined"!==typeof document&&(!arguments.length||t)){for(var n=document.cookie?document.cookie.split("; "):[],r={},i=0;i<n.length;i++){var o=n[i].split("="),a=o.slice(1).join("=");try{var s=decodeURIComponent(o[0]);if(r[s]=e.read(a,s),t===s)break}catch(l){}}return t?r[t]:r}}return Object.create({set:i,get:o,remove:function(e,n){i(e,"",t({},n,{expires:-1}))},withAttributes:function(e){return n(this.converter,t({},this.attributes,e))},withConverter:function(e){return n(t({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(e)}})}var r=n(e,{path:"/"});return r}))},"854c":function(t,e){t.exports=function(){throw new Error("Readable.from is not available in the browser")}},"857a":function(t,e,n){var r=n("e330"),i=n("1d80"),o=n("577e"),a=/"/g,s=r("".replace);t.exports=function(t,e,n,r){var l=o(i(t)),u="<"+e;return""!==n&&(u+=" "+n+'="'+s(o(r),a,""")+'"'),u+">"+l+"</"+e+">"}},"85c4":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=void 0;var i=r(n("9523")),o=r(n("448a")),a=r(n("970b")),s=r(n("a870")),l=r(n("050c")),u=n("5557"),c=r(n("b06d")),h=r(n("eb53"));function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(n,!0).forEach((function(e){(0,i["default"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var p=function t(e){if((0,a["default"])(this,t),e){var n=e.getContext("2d"),r=e.clientWidth,i=e.clientHeight,o=[r,i];e.setAttribute("width",r),e.setAttribute("height",i),this.ctx=n,this.area=o,this.animationStatus=!1,this.graphs=[],this.color=s["default"],this.bezierCurve=l["default"],e.addEventListener("mousedown",y.bind(this)),e.addEventListener("mousemove",m.bind(this)),e.addEventListener("mouseup",b.bind(this))}else console.error("CRender Missing parameters!")};function g(t,e){var n=this.graphs;v(n)?(n.forEach((function(t){return t.turnNextAnimationFrame(e)})),this.drawAllGraph(),requestAnimationFrame(g.bind(this,t,e))):t()}function v(t){return t.find((function(t){return!t.animationPause&&t.animationFrameState.length}))}function y(t){var e=this.graphs,n=e.find((function(t){return"hover"===t.status}));n&&(n.status="active")}function m(t){var e=t.offsetX,n=t.offsetY,r=[e,n],i=this.graphs,o=i.find((function(t){return"active"===t.status||"drag"===t.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(t),void(o.status="drag"))}var a=i.find((function(t){return"hover"===t.status})),s=i.filter((function(t){return t.hover&&("function"===typeof t.hoverCheck||t.hoverRect)})),l=s.find((function(t){return t.hoverCheckProcessor(r,t)}));document.body.style.cursor=l?l.style.hoverCursor:"default";var u=!1,c=!1;if(a&&(u="function"===typeof a.mouseOuter),l&&(c="function"===typeof l.mouseEnter),l||a){if(!l&&a)return u&&a.mouseOuter(t,a),void(a.status="static");if(!l||l!==a)return l&&!a?(c&&l.mouseEnter(t,l),void(l.status="hover")):void(l&&a&&l!==a&&(u&&a.mouseOuter(t,a),a.status="static",c&&l.mouseEnter(t,l),l.status="hover"))}}function b(t){var e=this.graphs,n=e.find((function(t){return"active"===t.status})),r=e.find((function(t){return"drag"===t.status}));n&&"function"===typeof n.click&&n.click(t,n),e.forEach((function(t){return t&&(t.status="static")})),n&&(n.status="hover"),r&&(r.status="hover")}e["default"]=p,p.prototype.clearArea=function(){var t,e=this.area;(t=this.ctx).clearRect.apply(t,[0,0].concat((0,o["default"])(e)))},p.prototype.add=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.name;if(e){var n=c["default"].get(e);if(n){var r=new h["default"](n,t);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 t=this.graphs;t.sort((function(t,e){return t.index>e.index?1:t.index===e.index?0:t.index<e.index?-1:void 0}))},p.prototype.delGraph=function(t){"function"===typeof t.delProcessor&&(t.delProcessor(this),this.graphs=this.graphs.filter((function(t){return t})),this.drawAllGraph())},p.prototype.delAllGraph=function(){var t=this;this.graphs.forEach((function(e){return e.delProcessor(t)})),this.graphs=this.graphs.filter((function(t){return t})),this.drawAllGraph()},p.prototype.drawAllGraph=function(){var t=this;this.clearArea(),this.graphs.filter((function(t){return t&&t.visible})).forEach((function(e){return e.drawProcessor(t,e)}))},p.prototype.launchAnimation=function(){var t=this,e=this.animationStatus;if(!e)return this.animationStatus=!0,new Promise((function(e){g.call(t,(function(){t.animationStatus=!1,e()}),Date.now())}))},p.prototype.clone=function(t){var e=t.style.getStyle(),n=d({},t,{style:e});return delete n.render,n=(0,u.deepClone)(n,!0),this.add(n)}},"85e7":function(t,e,n){var r=n("1a14"),i=n("77e9"),o=n("9876");t.exports=n("0bad")?Object.defineProperties:function(t,e){i(t);var n,a=o(e),s=a.length,l=0;while(s>l)r.f(t,n=a[l++],e[n]);return t}},"85f8":function(t,e,n){"use strict";(function(e,r){var i;t.exports=T,T.ReadableState=M;n("faa1").EventEmitter;var o=function(t,e){return t.listeners(e).length},a=n("9ede"),s=n("1c35").Buffer,l=e.Uint8Array||function(){};function u(t){return s.from(t)}function c(t){return s.isBuffer(t)||t instanceof l}var h,f=n(2);h=f&&f.debuglog?f.debuglog("stream"):function(){};var d,p,g,v=n("f688"),y=n("edb3"),m=n("31b5"),b=m.getHighWaterMark,_=n("fbd7").codes,x=_.ERR_INVALID_ARG_TYPE,w=_.ERR_STREAM_PUSH_AFTER_EOF,S=_.ERR_METHOD_NOT_IMPLEMENTED,O=_.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n("3fb5")(T,a);var C=y.errorOrDestroy,k=["error","close","destroy","pause","resume"];function A(t,e,n){if("function"===typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}function M(t,e,r){i=i||n("be3f"),t=t||{},"boolean"!==typeof r&&(r=e instanceof i),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=b(this,t,"readableHighWaterMark",r),this.buffer=new v,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(d||(d=n("aa22").StringDecoder),this.decoder=new d(t.encoding),this.encoding=t.encoding)}function T(t){if(i=i||n("be3f"),!(this instanceof T))return new T(t);var e=this instanceof i;this._readableState=new M(t,this,e),this.readable=!0,t&&("function"===typeof t.read&&(this._read=t.read),"function"===typeof t.destroy&&(this._destroy=t.destroy)),a.call(this)}function I(t,e,n,r,i){h("readableAddChunk",e);var o,a=t._readableState;if(null===e)a.reading=!1,R(t,a);else if(i||(o=P(a,e)),o)C(t,o);else if(a.objectMode||e&&e.length>0)if("string"===typeof e||a.objectMode||Object.getPrototypeOf(e)===s.prototype||(e=u(e)),r)a.endEmitted?C(t,new O):E(t,a,e,!0);else if(a.ended)C(t,new w);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!n?(e=a.decoder.write(e),a.objectMode||0!==e.length?E(t,a,e,!1):F(t,a)):E(t,a,e,!1)}else r||(a.reading=!1,F(t,a));return!a.ended&&(a.length<a.highWaterMark||0===a.length)}function E(t,e,n,r){e.flowing&&0===e.length&&!e.sync?(e.awaitDrain=0,t.emit("data",n)):(e.length+=e.objectMode?1:n.length,r?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&N(t)),F(t,e)}function P(t,e){var n;return c(e)||"string"===typeof e||void 0===e||t.objectMode||(n=new x("chunk",["string","Buffer","Uint8Array"],e)),n}Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),T.prototype.destroy=y.destroy,T.prototype._undestroy=y.undestroy,T.prototype._destroy=function(t,e){e(t)},T.prototype.push=function(t,e){var n,r=this._readableState;return r.objectMode?n=!0:"string"===typeof t&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=s.from(t,e),e=""),n=!0),I(this,t,e,!1,n)},T.prototype.unshift=function(t){return I(this,t,null,!0,!1)},T.prototype.isPaused=function(){return!1===this._readableState.flowing},T.prototype.setEncoding=function(t){d||(d=n("aa22").StringDecoder);var e=new d(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;var r=this._readableState.buffer.head,i="";while(null!==r)i+=e.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var j=1073741824;function L(t){return t>=j?t=j:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function D(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=L(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function R(t,e){if(h("onEofChunk"),!e.ended){if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,e.sync?N(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,B(t)))}}function N(t){var e=t._readableState;h("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(h("emitReadable",e.flowing),e.emittedReadable=!0,r.nextTick(B,t))}function B(t){var e=t._readableState;h("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,U(t)}function F(t,e){e.readingMore||(e.readingMore=!0,r.nextTick(z,t,e))}function z(t,e){while(!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&0===e.length)){var n=e.length;if(h("maybeReadMore read 0"),t.read(0),n===e.length)break}e.readingMore=!1}function V(t){return function(){var e=t._readableState;h("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&o(t,"data")&&(e.flowing=!0,U(t))}}function q(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function G(t){h("readable nexttick read 0"),t.read(0)}function H(t,e){e.resumeScheduled||(e.resumeScheduled=!0,r.nextTick(W,t,e))}function W(t,e){h("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),U(t),e.flowing&&!e.reading&&t.read(0)}function U(t){var e=t._readableState;h("flow",e.flowing);while(e.flowing&&null!==t.read());}function $(t,e){return 0===e.length?null:(e.objectMode?n=e.buffer.shift():!t||t>=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):n=e.buffer.consume(t,e.decoder),n);var n}function Y(t){var e=t._readableState;h("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,r.nextTick(X,e,t))}function X(t,e){if(h("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var n=e._writableState;(!n||n.autoDestroy&&n.finished)&&e.destroy()}}function K(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1}T.prototype.read=function(t){h("read",t),t=parseInt(t,10);var e=this._readableState,n=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&((0!==e.highWaterMark?e.length>=e.highWaterMark:e.length>0)||e.ended))return h("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?Y(this):N(this),null;if(t=D(t,e),0===t&&e.ended)return 0===e.length&&Y(this),null;var r,i=e.needReadable;return h("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&(i=!0,h("length less than watermark",i)),e.ended||e.reading?(i=!1,h("reading or ended",i)):i&&(h("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=D(n,e))),r=t>0?$(t,e):null,null===r?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&Y(this)),null!==r&&this.emit("data",r),r},T.prototype._read=function(t){C(this,new S("_read()"))},T.prototype.pipe=function(t,e){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t);break}i.pipesCount+=1,h("pipe count=%d opts=%j",i.pipesCount,e);var a=(!e||!1!==e.end)&&t!==r.stdout&&t!==r.stderr,s=a?u:m;function l(t,e){h("onunpipe"),t===n&&e&&!1===e.hasUnpiped&&(e.hasUnpiped=!0,d())}function u(){h("onend"),t.end()}i.endEmitted?r.nextTick(s):n.once("end",s),t.on("unpipe",l);var c=V(n);t.on("drain",c);var f=!1;function d(){h("cleanup"),t.removeListener("close",v),t.removeListener("finish",y),t.removeListener("drain",c),t.removeListener("error",g),t.removeListener("unpipe",l),n.removeListener("end",u),n.removeListener("end",m),n.removeListener("data",p),f=!0,!i.awaitDrain||t._writableState&&!t._writableState.needDrain||c()}function p(e){h("ondata");var r=t.write(e);h("dest.write",r),!1===r&&((1===i.pipesCount&&i.pipes===t||i.pipesCount>1&&-1!==K(i.pipes,t))&&!f&&(h("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function g(e){h("onerror",e),m(),t.removeListener("error",g),0===o(t,"error")&&C(t,e)}function v(){t.removeListener("finish",y),m()}function y(){h("onfinish"),t.removeListener("close",v),m()}function m(){h("unpipe"),n.unpipe(t)}return n.on("data",p),A(t,"error",g),t.once("close",v),t.once("finish",y),t.emit("pipe",n),i.flowing||(h("pipe resume"),n.resume()),t},T.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n)),this;if(!t){var r=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<i;o++)r[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=K(e.pipes,t);return-1===a||(e.pipes.splice(a,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,n)),this},T.prototype.on=function(t,e){var n=a.prototype.on.call(this,t,e),i=this._readableState;return"data"===t?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"===t&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,h("on readable",i.length,i.reading),i.length?N(this):i.reading||r.nextTick(G,this))),n},T.prototype.addListener=T.prototype.on,T.prototype.removeListener=function(t,e){var n=a.prototype.removeListener.call(this,t,e);return"readable"===t&&r.nextTick(q,this),n},T.prototype.removeAllListeners=function(t){var e=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||r.nextTick(q,this),e},T.prototype.resume=function(){var t=this._readableState;return t.flowing||(h("resume"),t.flowing=!t.readableListening,H(this,t)),t.paused=!1,this},T.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},T.prototype.wrap=function(t){var e=this,n=this._readableState,r=!1;for(var i in t.on("end",(function(){if(h("wrapped end"),n.decoder&&!n.ended){var t=n.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(i){if(h("wrapped data"),n.decoder&&(i=n.decoder.write(i)),(!n.objectMode||null!==i&&void 0!==i)&&(n.objectMode||i&&i.length)){var o=e.push(i);o||(r=!0,t.pause())}})),t)void 0===this[i]&&"function"===typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var o=0;o<k.length;o++)t.on(k[o],this.emit.bind(this,k[o]));return this._read=function(e){h("wrapped _read",e),r&&(r=!1,t.resume())},this},"function"===typeof Symbol&&(T.prototype[Symbol.asyncIterator]=function(){return void 0===p&&(p=n("34e3")),p(this)}),Object.defineProperty(T.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(T.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(T.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}}),T._fromList=$,Object.defineProperty(T.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"===typeof Symbol&&(T.from=function(t,e){return void 0===g&&(g=n("2527")),g(T,t,e)})}).call(this,n("c8ba"),n("4362"))},"861d":function(t,e,n){var r=n("1626"),i=n("8ea1"),o=i.all;t.exports=i.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:r(t)||t===o}:function(t){return"object"==typeof t?null!==t:r(t)}},"86c6":function(t,e,n){"use strict";var r=n("9bfc").codes.ERR_INVALID_OPT_VALUE;function i(t,e,n){return null!=t.highWaterMark?t.highWaterMark:e?t[n]:null}function o(t,e,n,o){var a=i(e,o,n);if(null!=a){if(!isFinite(a)||Math.floor(a)!==a||a<0){var s=o?n:"highWaterMark";throw new r(s,a)}return Math.floor(a)}return t.objectMode?16:16384}t.exports={getHighWaterMark:o}},"86ef":function(t,e,n){"use strict";function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),t}var u=n("1c35"),c=u.Buffer,h=n(8),f=h.inspect,d=f&&f.custom||"inspect";function p(t,e,n){c.prototype.copy.call(t,e,n)}t.exports=function(){function t(){a(this,t),this.head=null,this.tail=null,this.length=0}return l(t,[{key:"push",value:function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";var e=this.head,n=""+e.data;while(e=e.next)n+=t+e.data;return n}},{key:"concat",value:function(t){if(0===this.length)return c.alloc(0);var e=c.allocUnsafe(t>>>0),n=this.head,r=0;while(n)p(n.data,e,r),r+=n.data.length,n=n.next;return e}},{key:"consume",value:function(t,e){var n;return t<this.head.data.length?(n=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):n=t===this.head.data.length?this.shift():e?this._getString(t):this._getBuffer(t),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var e=this.head,n=1,r=e.data;t-=r.length;while(e=e.next){var i=e.data,o=t>i.length?i.length:t;if(o===i.length?r+=i:r+=i.slice(0,t),t-=o,0===t){o===i.length?(++n,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=i.slice(o));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(t){var e=c.allocUnsafe(t),n=this.head,r=1;n.data.copy(e),t-=n.data.length;while(n=n.next){var i=n.data,o=t>i.length?i.length:t;if(i.copy(e,e.length-t,0,o),t-=o,0===t){o===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(o));break}++r}return this.length-=r,e}},{key:d,value:function(t,e){return f(this,i({},e,{depth:0,customInspect:!1}))}}]),t}()},"873c":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.title=u;var i=r(n("278c")),o=n("18ad"),a=n("5557"),s=n("9d85"),l=n("becb");function u(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];e.title&&(n[0]=(0,l.deepMerge)((0,a.deepClone)(s.titleConfig,!0),e.title)),(0,o.doUpdate)({chart:t,series:n,key:"title",getGraphConfig:c})}function c(t,e){var n=s.titleConfig.animationCurve,r=s.titleConfig.animationFrame,i=s.titleConfig.rLevel,o=h(t,e),a=f(t);return[{name:"text",index:i,visible:t.show,animationCurve:n,animationFrame:r,shape:o,style:a}]}function h(t,e){var n=t.offset,r=t.text,o=e.chart.gridArea,a=o.x,s=o.y,l=o.w,u=(0,i["default"])(n,2),c=u[0],h=u[1];return{content:r,position:[a+l/2+c,s+h]}}function f(t){var e=t.style;return e}},"887c":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.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};e.titleConfig=r},8925:function(t,e,n){var r=n("e330"),i=n("1626"),o=n("c6cd"),a=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(t){return a(t)}),t.exports=o.inspectSource},"8a0d":function(t,e){t.exports={}},"8a1d":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mergeColor=a;var r=n("9d85"),i=n("5557"),o=n("becb");function a(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,i.deepClone)(r.colorConfig,!0),a=e.color,s=e.series;if(s||(s=[]),a||(a=[]),e.color=a=(0,o.deepMerge)(n,a),s.length){var l=a.length;s.forEach((function(t,e){t.color||(t.color=a[e%l])}));var u=s.filter((function(t){var e=t.type;return"pie"===e}));u.forEach((function(t){return t.data.forEach((function(t,e){return t.color=a[e%l]}))}));var c=s.filter((function(t){var e=t.type;return"gauge"===e}));c.forEach((function(t){return t.data.forEach((function(t,e){return t.color=a[e%l]}))}));var h=s.filter((function(t){var e=t.type,n=t.independentColor;return"bar"===e&&n}));h.forEach((function(t){t.independentColors||(t.independentColors=a)}))}}},"8aa5":function(t,e,n){"use strict";var r=n("6547").charAt;t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},"8b1a":function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},"8c4f":function(t,e,n){"use strict";
|
||
/*!
|
||
* vue-router v3.4.9
|
||
* (c) 2020 Evan You
|
||
* @license MIT
|
||
*/function r(t,e){0}function i(t,e){for(var n in e)t[n]=e[n];return t}var o=/[!'()*]/g,a=function(t){return"%"+t.charCodeAt(0).toString(16)},s=/%2C/g,l=function(t){return encodeURIComponent(t).replace(o,a).replace(s,",")};function u(t){try{return decodeURIComponent(t)}catch(e){0}return t}function c(t,e,n){void 0===e&&(e={});var r,i=n||f;try{r=i(t||"")}catch(s){r={}}for(var o in e){var a=e[o];r[o]=Array.isArray(a)?a.map(h):h(a)}return r}var h=function(t){return null==t||"object"===typeof t?t:String(t)};function f(t){var e={};return t=t.trim().replace(/^(\?|#|&)/,""),t?(t.split("&").forEach((function(t){var n=t.replace(/\+/g," ").split("="),r=u(n.shift()),i=n.length>0?u(n.join("=")):null;void 0===e[r]?e[r]=i:Array.isArray(e[r])?e[r].push(i):e[r]=[e[r],i]})),e):e}function d(t){var e=t?Object.keys(t).map((function(e){var n=t[e];if(void 0===n)return"";if(null===n)return l(e);if(Array.isArray(n)){var r=[];return n.forEach((function(t){void 0!==t&&(null===t?r.push(l(e)):r.push(l(e)+"="+l(t)))})),r.join("&")}return l(e)+"="+l(n)})).filter((function(t){return t.length>0})).join("&"):null;return e?"?"+e:""}var p=/\/?$/;function g(t,e,n,r){var i=r&&r.options.stringifyQuery,o=e.query||{};try{o=v(o)}catch(s){}var a={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:o,params:e.params||{},fullPath:b(e,i),matched:t?m(t):[]};return n&&(a.redirectedFrom=b(n,i)),Object.freeze(a)}function v(t){if(Array.isArray(t))return t.map(v);if(t&&"object"===typeof t){var e={};for(var n in t)e[n]=v(t[n]);return e}return t}var y=g(null,{path:"/"});function m(t){var e=[];while(t)e.unshift(t),t=t.parent;return e}function b(t,e){var n=t.path,r=t.query;void 0===r&&(r={});var i=t.hash;void 0===i&&(i="");var o=e||d;return(n||"/")+o(r)+i}function _(t,e){return e===y?t===e:!!e&&(t.path&&e.path?t.path.replace(p,"")===e.path.replace(p,"")&&t.hash===e.hash&&x(t.query,e.query):!(!t.name||!e.name)&&(t.name===e.name&&t.hash===e.hash&&x(t.query,e.query)&&x(t.params,e.params)))}function x(t,e){if(void 0===t&&(t={}),void 0===e&&(e={}),!t||!e)return t===e;var n=Object.keys(t).sort(),r=Object.keys(e).sort();return n.length===r.length&&n.every((function(n,i){var o=t[n],a=r[i];if(a!==n)return!1;var s=e[n];return null==o||null==s?o===s:"object"===typeof o&&"object"===typeof s?x(o,s):String(o)===String(s)}))}function w(t,e){return 0===t.path.replace(p,"/").indexOf(e.path.replace(p,"/"))&&(!e.hash||t.hash===e.hash)&&S(t.query,e.query)}function S(t,e){for(var n in e)if(!(n in t))return!1;return!0}function O(t){for(var e=0;e<t.matched.length;e++){var n=t.matched[e];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 C={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var n=e.props,r=e.children,o=e.parent,a=e.data;a.routerView=!0;var s=o.$createElement,l=n.name,u=o.$route,c=o._routerViewCache||(o._routerViewCache={}),h=0,f=!1;while(o&&o._routerRoot!==o){var d=o.$vnode?o.$vnode.data:{};d.routerView&&h++,d.keepAlive&&o._directInactive&&o._inactive&&(f=!0),o=o.$parent}if(a.routerViewDepth=h,f){var p=c[l],g=p&&p.component;return g?(p.configProps&&k(g,a,p.route,p.configProps),s(g,a,r)):s()}var v=u.matched[h],y=v&&v.components[l];if(!v||!y)return c[l]=null,s();c[l]={component:y},a.registerRouteInstance=function(t,e){var n=v.instances[l];(e&&n!==t||!e&&n===t)&&(v.instances[l]=e)},(a.hook||(a.hook={})).prepatch=function(t,e){v.instances[l]=e.componentInstance},a.hook.init=function(t){t.data.keepAlive&&t.componentInstance&&t.componentInstance!==v.instances[l]&&(v.instances[l]=t.componentInstance),O(u)};var m=v.props&&v.props[l];return m&&(i(c[l],{route:u,configProps:m}),k(y,a,u,m)),s(y,a,r)}};function k(t,e,n,r){var o=e.props=A(n,r);if(o){o=e.props=i({},o);var a=e.attrs=e.attrs||{};for(var s in o)t.props&&s in t.props||(a[s]=o[s],delete o[s])}}function A(t,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(t);case"boolean":return e?t.params:void 0;default:0}}function M(t,e,n){var r=t.charAt(0);if("/"===r)return t;if("?"===r||"#"===r)return e+t;var i=e.split("/");n&&i[i.length-1]||i.pop();for(var o=t.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 T(t){var e="",n="",r=t.indexOf("#");r>=0&&(e=t.slice(r),t=t.slice(0,r));var i=t.indexOf("?");return i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),{path:t,query:n,hash:e}}function I(t){return t.replace(/\/\//g,"/")}var E=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},P=Z,j=B,L=F,D=q,R=K,N=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function B(t,e){var n,r=[],i=0,o=0,a="",s=e&&e.delimiter||"/";while(null!=(n=N.exec(t))){var l=n[0],u=n[1],c=n.index;if(a+=t.slice(o,c),o=c+l.length,u)a+=u[1];else{var h=t[o],f=n[2],d=n[3],p=n[4],g=n[5],v=n[6],y=n[7];a&&(r.push(a),a="");var m=null!=f&&null!=h&&h!==f,b="+"===v||"*"===v,_="?"===v||"*"===v,x=n[2]||s,w=p||g;r.push({name:d||i++,prefix:f||"",delimiter:x,optional:_,repeat:b,partial:m,asterisk:!!y,pattern:w?H(w):y?".*":"[^"+G(x)+"]+?"})}}return o<t.length&&(a+=t.substr(o)),a&&r.push(a),r}function F(t,e){return q(B(t,e),e)}function z(t){return encodeURI(t).replace(/[\/?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}function V(t){return encodeURI(t).replace(/[?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}function q(t,e){for(var n=new Array(t.length),r=0;r<t.length;r++)"object"===typeof t[r]&&(n[r]=new RegExp("^(?:"+t[r].pattern+")$",U(e)));return function(e,r){for(var i="",o=e||{},a=r||{},s=a.pretty?z:encodeURIComponent,l=0;l<t.length;l++){var u=t[l];if("string"!==typeof u){var c,h=o[u.name];if(null==h){if(u.optional){u.partial&&(i+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(E(h)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(h)+"`");if(0===h.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var f=0;f<h.length;f++){if(c=s(h[f]),!n[l].test(c))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(c)+"`");i+=(0===f?u.prefix:u.delimiter)+c}}else{if(c=u.asterisk?V(h):s(h),!n[l].test(c))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+c+'"');i+=u.prefix+c}}else i+=u}return i}}function G(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function H(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function W(t,e){return t.keys=e,t}function U(t){return t&&t.sensitive?"":"i"}function $(t,e){var n=t.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)e.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return W(t,e)}function Y(t,e,n){for(var r=[],i=0;i<t.length;i++)r.push(Z(t[i],e,n).source);var o=new RegExp("(?:"+r.join("|")+")",U(n));return W(o,e)}function X(t,e,n){return K(B(t,n),e,n)}function K(t,e,n){E(e)||(n=e||n,e=[]),n=n||{};for(var r=n.strict,i=!1!==n.end,o="",a=0;a<t.length;a++){var s=t[a];if("string"===typeof s)o+=G(s);else{var l=G(s.prefix),u="(?:"+s.pattern+")";e.push(s),s.repeat&&(u+="(?:"+l+u+")*"),u=s.optional?s.partial?l+"("+u+")?":"(?:"+l+"("+u+"))?":l+"("+u+")",o+=u}}var c=G(n.delimiter||"/"),h=o.slice(-c.length)===c;return r||(o=(h?o.slice(0,-c.length):o)+"(?:"+c+"(?=$))?"),o+=i?"$":r&&h?"":"(?="+c+"|$)",W(new RegExp("^"+o,U(n)),e)}function Z(t,e,n){return E(e)||(n=e||n,e=[]),n=n||{},t instanceof RegExp?$(t,e):E(t)?Y(t,e,n):X(t,e,n)}P.parse=j,P.compile=L,P.tokensToFunction=D,P.tokensToRegExp=R;var Q=Object.create(null);function J(t,e,n){e=e||{};try{var r=Q[t]||(Q[t]=P.compile(t));return"string"===typeof e.pathMatch&&(e[0]=e.pathMatch),r(e,{pretty:!0})}catch(i){return""}finally{delete e[0]}}function tt(t,e,n,r){var o="string"===typeof t?{path:t}:t;if(o._normalized)return o;if(o.name){o=i({},t);var a=o.params;return a&&"object"===typeof a&&(o.params=i({},a)),o}if(!o.path&&o.params&&e){o=i({},o),o._normalized=!0;var s=i(i({},e.params),o.params);if(e.name)o.name=e.name,o.params=s;else if(e.matched.length){var l=e.matched[e.matched.length-1].path;o.path=J(l,s,"path "+e.path)}else 0;return o}var u=T(o.path||""),h=e&&e.path||"/",f=u.path?M(u.path,h,n||o.append):h,d=c(u.query,o.query,r&&r.options.parseQuery),p=o.hash||u.hash;return p&&"#"!==p.charAt(0)&&(p="#"+p),{_normalized:!0,path:f,query:d,hash:p}}var et,nt=[String,Object],rt=[String,Array],it=function(){},ot={name:"RouterLink",props:{to:{type:nt,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:rt,default:"click"}},render:function(t){var e=this,n=this.$router,r=this.$route,o=n.resolve(this.to,r,this.append),a=o.location,s=o.route,l=o.href,u={},c=n.options.linkActiveClass,h=n.options.linkExactActiveClass,f=null==c?"router-link-active":c,d=null==h?"router-link-exact-active":h,p=null==this.activeClass?f:this.activeClass,v=null==this.exactActiveClass?d:this.exactActiveClass,y=s.redirectedFrom?g(null,tt(s.redirectedFrom),null,n):s;u[v]=_(r,y),u[p]=this.exact?u[v]:w(r,y);var m=u[v]?this.ariaCurrentValue:null,b=function(t){at(t)&&(e.replace?n.replace(a,it):n.push(a,it))},x={click:at};Array.isArray(this.event)?this.event.forEach((function(t){x[t]=b})):x[this.event]=b;var S={class:u},O=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:l,route:s,navigate:b,isActive:u[p],isExactActive:u[v]});if(O){if(1===O.length)return O[0];if(O.length>1||!O.length)return 0===O.length?t():t("span",{},O)}if("a"===this.tag)S.on=x,S.attrs={href:l,"aria-current":m};else{var C=st(this.$slots.default);if(C){C.isStatic=!1;var k=C.data=i({},C.data);for(var A in k.on=k.on||{},k.on){var M=k.on[A];A in x&&(k.on[A]=Array.isArray(M)?M:[M])}for(var T in x)T in k.on?k.on[T].push(x[T]):k.on[T]=b;var I=C.data.attrs=i({},C.data.attrs);I.href=l,I["aria-current"]=m}else S.on=x}return t(this.tag,S,this.$slots.default)}};function at(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&(void 0===t.button||0===t.button)){if(t.currentTarget&&t.currentTarget.getAttribute){var e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function st(t){if(t)for(var e,n=0;n<t.length;n++){if(e=t[n],"a"===e.tag)return e;if(e.children&&(e=st(e.children)))return e}}function lt(t){if(!lt.installed||et!==t){lt.installed=!0,et=t;var e=function(t){return void 0!==t},n=function(t,n){var r=t.$options._parentVnode;e(r)&&e(r=r.data)&&e(r=r.registerRouteInstance)&&r(t,n)};t.mixin({beforeCreate:function(){e(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),t.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(t.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(t.prototype,"$route",{get:function(){return this._routerRoot._route}}),t.component("RouterView",C),t.component("RouterLink",ot);var r=t.config.optionMergeStrategies;r.beforeRouteEnter=r.beforeRouteLeave=r.beforeRouteUpdate=r.created}}var ut="undefined"!==typeof window;function ct(t,e,n,r){var i=e||[],o=n||Object.create(null),a=r||Object.create(null);t.forEach((function(t){ht(i,o,a,t)}));for(var s=0,l=i.length;s<l;s++)"*"===i[s]&&(i.push(i.splice(s,1)[0]),l--,s--);return{pathList:i,pathMap:o,nameMap:a}}function ht(t,e,n,r,i,o){var a=r.path,s=r.name;var l=r.pathToRegexpOptions||{},u=dt(a,i,l.strict);"boolean"===typeof r.caseSensitive&&(l.sensitive=r.caseSensitive);var c={path:u,regex:ft(u,l),components:r.components||{default:r.component},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?I(o+"/"+r.path):void 0;ht(t,e,n,r,c,i)})),e[c.path]||(t.push(c.path),e[c.path]=c),void 0!==r.alias)for(var h=Array.isArray(r.alias)?r.alias:[r.alias],f=0;f<h.length;++f){var d=h[f];0;var p={path:d,children:r.children};ht(t,e,n,p,i,c.path||"/")}s&&(n[s]||(n[s]=c))}function ft(t,e){var n=P(t,[],e);return n}function dt(t,e,n){return n||(t=t.replace(/\/$/,"")),"/"===t[0]||null==e?t:I(e.path+"/"+t)}function pt(t,e){var n=ct(t),r=n.pathList,i=n.pathMap,o=n.nameMap;function a(t){ct(t,r,i,o)}function s(t,n,a){var s=tt(t,n,!1,e),l=s.name;if(l){var u=o[l];if(!u)return c(null,s);var h=u.regex.keys.filter((function(t){return!t.optional})).map((function(t){return t.name}));if("object"!==typeof s.params&&(s.params={}),n&&"object"===typeof n.params)for(var f in n.params)!(f in s.params)&&h.indexOf(f)>-1&&(s.params[f]=n.params[f]);return s.path=J(u.path,s.params,'named route "'+l+'"'),c(u,s,a)}if(s.path){s.params={};for(var d=0;d<r.length;d++){var p=r[d],g=i[p];if(gt(g.regex,s.path,s.params))return c(g,s,a)}}return c(null,s)}function l(t,n){var r=t.redirect,i="function"===typeof r?r(g(t,n,null,e)):r;if("string"===typeof i&&(i={path:i}),!i||"object"!==typeof i)return c(null,n);var a=i,l=a.name,u=a.path,h=n.query,f=n.hash,d=n.params;if(h=a.hasOwnProperty("query")?a.query:h,f=a.hasOwnProperty("hash")?a.hash:f,d=a.hasOwnProperty("params")?a.params:d,l){o[l];return s({_normalized:!0,name:l,query:h,hash:f,params:d},void 0,n)}if(u){var p=vt(u,t),v=J(p,d,'redirect route with path "'+p+'"');return s({_normalized:!0,path:v,query:h,hash:f},void 0,n)}return c(null,n)}function u(t,e,n){var r=J(n,e.params,'aliased route with path "'+n+'"'),i=s({_normalized:!0,path:r});if(i){var o=i.matched,a=o[o.length-1];return e.params=i.params,c(a,e)}return c(null,e)}function c(t,n,r){return t&&t.redirect?l(t,r||n):t&&t.matchAs?u(t,n,t.matchAs):g(t,n,r,e)}return{match:s,addRoutes:a}}function gt(t,e,n){var r=e.match(t);if(!r)return!1;if(!n)return!0;for(var i=1,o=r.length;i<o;++i){var a=t.keys[i-1];a&&(n[a.name||"pathMatch"]="string"===typeof r[i]?u(r[i]):r[i])}return!0}function vt(t,e){return M(t,e.parent?e.parent.path:"/",!0)}var yt=ut&&window.performance&&window.performance.now?window.performance:Date;function mt(){return yt.now().toFixed(3)}var bt=mt();function _t(){return bt}function xt(t){return bt=t}var wt=Object.create(null);function St(){"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual");var t=window.location.protocol+"//"+window.location.host,e=window.location.href.replace(t,""),n=i({},window.history.state);return n.key=_t(),window.history.replaceState(n,"",e),window.addEventListener("popstate",kt),function(){window.removeEventListener("popstate",kt)}}function Ot(t,e,n,r){if(t.app){var i=t.options.scrollBehavior;i&&t.app.$nextTick((function(){var o=At(),a=i.call(t,e,n,r?o:null);a&&("function"===typeof a.then?a.then((function(t){Lt(t,o)})).catch((function(t){0})):Lt(a,o))}))}}function Ct(){var t=_t();t&&(wt[t]={x:window.pageXOffset,y:window.pageYOffset})}function kt(t){Ct(),t.state&&t.state.key&&xt(t.state.key)}function At(){var t=_t();if(t)return wt[t]}function Mt(t,e){var n=document.documentElement,r=n.getBoundingClientRect(),i=t.getBoundingClientRect();return{x:i.left-r.left-e.x,y:i.top-r.top-e.y}}function Tt(t){return Pt(t.x)||Pt(t.y)}function It(t){return{x:Pt(t.x)?t.x:window.pageXOffset,y:Pt(t.y)?t.y:window.pageYOffset}}function Et(t){return{x:Pt(t.x)?t.x:0,y:Pt(t.y)?t.y:0}}function Pt(t){return"number"===typeof t}var jt=/^#\d/;function Lt(t,e){var n="object"===typeof t;if(n&&"string"===typeof t.selector){var r=jt.test(t.selector)?document.getElementById(t.selector.slice(1)):document.querySelector(t.selector);if(r){var i=t.offset&&"object"===typeof t.offset?t.offset:{};i=Et(i),e=Mt(r,i)}else Tt(t)&&(e=It(t))}else n&&Tt(t)&&(e=It(t));e&&("scrollBehavior"in document.documentElement.style?window.scrollTo({left:e.x,top:e.y,behavior:t.behavior}):window.scrollTo(e.x,e.y))}var Dt=ut&&function(){var t=window.navigator.userAgent;return(-1===t.indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&(window.history&&"function"===typeof window.history.pushState)}();function Rt(t,e){Ct();var n=window.history;try{if(e){var r=i({},n.state);r.key=_t(),n.replaceState(r,"",t)}else n.pushState({key:xt(mt())},"",t)}catch(o){window.location[e?"replace":"assign"](t)}}function Nt(t){Rt(t,!0)}function Bt(t,e,n){var r=function(i){i>=t.length?n():t[i]?e(t[i],(function(){r(i+1)})):r(i+1)};r(0)}var Ft={redirected:2,aborted:4,cancelled:8,duplicated:16};function zt(t,e){return Ht(t,e,Ft.redirected,'Redirected when going from "'+t.fullPath+'" to "'+Ut(e)+'" via a navigation guard.')}function Vt(t,e){var n=Ht(t,e,Ft.duplicated,'Avoided redundant navigation to current location: "'+t.fullPath+'".');return n.name="NavigationDuplicated",n}function qt(t,e){return Ht(t,e,Ft.cancelled,'Navigation cancelled from "'+t.fullPath+'" to "'+e.fullPath+'" with a new navigation.')}function Gt(t,e){return Ht(t,e,Ft.aborted,'Navigation aborted from "'+t.fullPath+'" to "'+e.fullPath+'" via a navigation guard.')}function Ht(t,e,n,r){var i=new Error(r);return i._isRouter=!0,i.from=t,i.to=e,i.type=n,i}var Wt=["params","query","hash"];function Ut(t){if("string"===typeof t)return t;if("path"in t)return t.path;var e={};return Wt.forEach((function(n){n in t&&(e[n]=t[n])})),JSON.stringify(e,null,2)}function $t(t){return Object.prototype.toString.call(t).indexOf("Error")>-1}function Yt(t,e){return $t(t)&&t._isRouter&&(null==e||t.type===e)}function Xt(t){return function(e,n,r){var i=!1,o=0,a=null;Kt(t,(function(t,e,n,s){if("function"===typeof t&&void 0===t.cid){i=!0,o++;var l,u=te((function(e){Jt(e)&&(e=e.default),t.resolved="function"===typeof e?e:et.extend(e),n.components[s]=e,o--,o<=0&&r()})),c=te((function(t){var e="Failed to resolve async component "+s+": "+t;a||(a=$t(t)?t:new Error(e),r(a))}));try{l=t(u,c)}catch(f){c(f)}if(l)if("function"===typeof l.then)l.then(u,c);else{var h=l.component;h&&"function"===typeof h.then&&h.then(u,c)}}})),i||r()}}function Kt(t,e){return Zt(t.map((function(t){return Object.keys(t.components).map((function(n){return e(t.components[n],t.instances[n],t,n)}))})))}function Zt(t){return Array.prototype.concat.apply([],t)}var Qt="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag;function Jt(t){return t.__esModule||Qt&&"Module"===t[Symbol.toStringTag]}function te(t){var e=!1;return function(){var n=[],r=arguments.length;while(r--)n[r]=arguments[r];if(!e)return e=!0,t.apply(this,n)}}var ee=function(t,e){this.router=t,this.base=ne(e),this.current=y,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function ne(t){if(!t)if(ut){var e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^https?:\/\/[^\/]+/,"")}else t="/";return"/"!==t.charAt(0)&&(t="/"+t),t.replace(/\/$/,"")}function re(t,e){var n,r=Math.max(t.length,e.length);for(n=0;n<r;n++)if(t[n]!==e[n])break;return{updated:e.slice(0,n),activated:e.slice(n),deactivated:t.slice(n)}}function ie(t,e,n,r){var i=Kt(t,(function(t,r,i,o){var a=oe(t,e);if(a)return Array.isArray(a)?a.map((function(t){return n(t,r,i,o)})):n(a,r,i,o)}));return Zt(r?i.reverse():i)}function oe(t,e){return"function"!==typeof t&&(t=et.extend(t)),t.options[e]}function ae(t){return ie(t,"beforeRouteLeave",le,!0)}function se(t){return ie(t,"beforeRouteUpdate",le)}function le(t,e){if(e)return function(){return t.apply(e,arguments)}}function ue(t){return ie(t,"beforeRouteEnter",(function(t,e,n,r){return ce(t,n,r)}))}function ce(t,e,n){return function(r,i,o){return t(r,i,(function(t){"function"===typeof t&&(e.enteredCbs[n]||(e.enteredCbs[n]=[]),e.enteredCbs[n].push(t)),o(t)}))}}ee.prototype.listen=function(t){this.cb=t},ee.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},ee.prototype.onError=function(t){this.errorCbs.push(t)},ee.prototype.transitionTo=function(t,e,n){var r,i=this;try{r=this.router.match(t,this.current)}catch(a){throw this.errorCbs.forEach((function(t){t(a)})),a}var o=this.current;this.confirmTransition(r,(function(){i.updateRoute(r),e&&e(r),i.ensureURL(),i.router.afterHooks.forEach((function(t){t&&t(r,o)})),i.ready||(i.ready=!0,i.readyCbs.forEach((function(t){t(r)})))}),(function(t){n&&n(t),t&&!i.ready&&(Yt(t,Ft.redirected)&&o===y||(i.ready=!0,i.readyErrorCbs.forEach((function(e){e(t)}))))}))},ee.prototype.confirmTransition=function(t,e,n){var i=this,o=this.current;this.pending=t;var a=function(t){!Yt(t)&&$t(t)&&(i.errorCbs.length?i.errorCbs.forEach((function(e){e(t)})):(r(!1,"uncaught error during route navigation:"),console.error(t))),n&&n(t)},s=t.matched.length-1,l=o.matched.length-1;if(_(t,o)&&s===l&&t.matched[s]===o.matched[l])return this.ensureURL(),a(Vt(o,t));var u=re(this.current.matched,t.matched),c=u.updated,h=u.deactivated,f=u.activated,d=[].concat(ae(h),this.router.beforeHooks,se(c),f.map((function(t){return t.beforeEnter})),Xt(f)),p=function(e,n){if(i.pending!==t)return a(qt(o,t));try{e(t,o,(function(e){!1===e?(i.ensureURL(!0),a(Gt(o,t))):$t(e)?(i.ensureURL(!0),a(e)):"string"===typeof e||"object"===typeof e&&("string"===typeof e.path||"string"===typeof e.name)?(a(zt(o,t)),"object"===typeof e&&e.replace?i.replace(e):i.push(e)):n(e)}))}catch(r){a(r)}};Bt(d,p,(function(){var n=ue(f),r=n.concat(i.router.resolveHooks);Bt(r,p,(function(){if(i.pending!==t)return a(qt(o,t));i.pending=null,e(t),i.router.app&&i.router.app.$nextTick((function(){O(t)}))}))}))},ee.prototype.updateRoute=function(t){this.current=t,this.cb&&this.cb(t)},ee.prototype.setupListeners=function(){},ee.prototype.teardown=function(){this.listeners.forEach((function(t){t()})),this.listeners=[],this.current=y,this.pending=null};var he=function(t){function e(e,n){t.call(this,e,n),this._startLocation=fe(this.base)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this;if(!(this.listeners.length>0)){var e=this.router,n=e.options.scrollBehavior,r=Dt&&n;r&&this.listeners.push(St());var i=function(){var n=t.current,i=fe(t.base);t.current===y&&i===t._startLocation||t.transitionTo(i,(function(t){r&&Ot(e,t,n,!0)}))};window.addEventListener("popstate",i),this.listeners.push((function(){window.removeEventListener("popstate",i)}))}},e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(t,e,n){var r=this,i=this,o=i.current;this.transitionTo(t,(function(t){Rt(I(r.base+t.fullPath)),Ot(r.router,t,o,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this,i=this,o=i.current;this.transitionTo(t,(function(t){Nt(I(r.base+t.fullPath)),Ot(r.router,t,o,!1),e&&e(t)}),n)},e.prototype.ensureURL=function(t){if(fe(this.base)!==this.current.fullPath){var e=I(this.base+this.current.fullPath);t?Rt(e):Nt(e)}},e.prototype.getCurrentLocation=function(){return fe(this.base)},e}(ee);function fe(t){var e=window.location.pathname;return t&&0===e.toLowerCase().indexOf(t.toLowerCase())&&(e=e.slice(t.length)),(e||"/")+window.location.search+window.location.hash}var de=function(t){function e(e,n,r){t.call(this,e,n),r&&pe(this.base)||ge()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this;if(!(this.listeners.length>0)){var e=this.router,n=e.options.scrollBehavior,r=Dt&&n;r&&this.listeners.push(St());var i=function(){var e=t.current;ge()&&t.transitionTo(ve(),(function(n){r&&Ot(t.router,n,e,!0),Dt||be(n.fullPath)}))},o=Dt?"popstate":"hashchange";window.addEventListener(o,i),this.listeners.push((function(){window.removeEventListener(o,i)}))}},e.prototype.push=function(t,e,n){var r=this,i=this,o=i.current;this.transitionTo(t,(function(t){me(t.fullPath),Ot(r.router,t,o,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this,i=this,o=i.current;this.transitionTo(t,(function(t){be(t.fullPath),Ot(r.router,t,o,!1),e&&e(t)}),n)},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;ve()!==e&&(t?me(e):be(e))},e.prototype.getCurrentLocation=function(){return ve()},e}(ee);function pe(t){var e=fe(t);if(!/^\/#/.test(e))return window.location.replace(I(t+"/#"+e)),!0}function ge(){var t=ve();return"/"===t.charAt(0)||(be("/"+t),!1)}function ve(){var t=window.location.href,e=t.indexOf("#");return e<0?"":(t=t.slice(e+1),t)}function ye(t){var e=window.location.href,n=e.indexOf("#"),r=n>=0?e.slice(0,n):e;return r+"#"+t}function me(t){Dt?Rt(ye(t)):window.location.hash=t}function be(t){Dt?Nt(ye(t)):window.location.replace(ye(t))}var _e=function(t){function e(e,n){t.call(this,e,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index+1).concat(t),r.index++,e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index).concat(t),e&&e(t)}),n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,(function(){var t=e.current;e.index=n,e.updateRoute(r),e.router.afterHooks.forEach((function(e){e&&e(r,t)}))}),(function(t){Yt(t,Ft.duplicated)&&(e.index=n)}))}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(ee),xe=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=pt(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!Dt&&!1!==t.fallback,this.fallback&&(e="hash"),ut||(e="abstract"),this.mode=e,e){case"history":this.history=new he(this,t.base);break;case"hash":this.history=new de(this,t.base,this.fallback);break;case"abstract":this.history=new _e(this,t.base);break;default:0}},we={currentRoute:{configurable:!0}};function Se(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function Oe(t,e,n){var r="hash"===n?"#"+e:e;return t?I(t+"/"+r):r}xe.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},we.currentRoute.get=function(){return this.history&&this.history.current},xe.prototype.init=function(t){var e=this;if(this.apps.push(t),t.$once("hook:destroyed",(function(){var n=e.apps.indexOf(t);n>-1&&e.apps.splice(n,1),e.app===t&&(e.app=e.apps[0]||null),e.app||e.history.teardown()})),!this.app){this.app=t;var n=this.history;if(n instanceof he||n instanceof de){var r=function(t){var r=n.current,i=e.options.scrollBehavior,o=Dt&&i;o&&"fullPath"in t&&Ot(e,t,r,!1)},i=function(t){n.setupListeners(),r(t)};n.transitionTo(n.getCurrentLocation(),i,i)}n.listen((function(t){e.apps.forEach((function(e){e._route=t}))}))}},xe.prototype.beforeEach=function(t){return Se(this.beforeHooks,t)},xe.prototype.beforeResolve=function(t){return Se(this.resolveHooks,t)},xe.prototype.afterEach=function(t){return Se(this.afterHooks,t)},xe.prototype.onReady=function(t,e){this.history.onReady(t,e)},xe.prototype.onError=function(t){this.history.onError(t)},xe.prototype.push=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!==typeof Promise)return new Promise((function(e,n){r.history.push(t,e,n)}));this.history.push(t,e,n)},xe.prototype.replace=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!==typeof Promise)return new Promise((function(e,n){r.history.replace(t,e,n)}));this.history.replace(t,e,n)},xe.prototype.go=function(t){this.history.go(t)},xe.prototype.back=function(){this.go(-1)},xe.prototype.forward=function(){this.go(1)},xe.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map((function(t){return Object.keys(t.components).map((function(e){return t.components[e]}))}))):[]},xe.prototype.resolve=function(t,e,n){e=e||this.history.current;var r=tt(t,e,n,this),i=this.match(r,e),o=i.redirectedFrom||i.fullPath,a=this.history.base,s=Oe(a,o,this.mode);return{location:r,route:i,href:s,normalizedTo:r,resolved:i}},xe.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==y&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(xe.prototype,we),xe.install=lt,xe.version="3.4.9",xe.isNavigationFailure=Yt,xe.NavigationFailureType=Ft,ut&&window.Vue&&window.Vue.use(xe),e["a"]=xe},"8df4":function(t,e,n){"use strict";var r=n("7a77");function i(t){if("function"!==typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;this.promise.then((function(t){if(n._listeners){var e,r=n._listeners.length;for(e=0;e<r;e++)n._listeners[e](t);n._listeners=null}})),this.promise.then=function(t){var e,r=new Promise((function(t){n.subscribe(t),e=t})).then(t);return r.cancel=function(){n.unsubscribe(e)},r},t((function(t){n.reason||(n.reason=new r(t),e(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.prototype.subscribe=function(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]},i.prototype.unsubscribe=function(t){if(this._listeners){var e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}},i.source=function(){var t,e=new i((function(e){t=e}));return{token:e,cancel:t}},t.exports=i},"8ea1":function(t,e){var n="object"==typeof document&&document.all,r="undefined"==typeof n&&void 0!==n;t.exports={all:n,IS_HTMLDDA:r}},"8eb7":function(t,e){var n,r,i,o,a,s,l,u,c,h,f,d,p,g,v,y=!1;function m(){if(!y){y=!0;var t=navigator.userAgent,e=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(t),m=/(Mac OS X)|(Windows)|(Linux)/.exec(t);if(d=/\b(iPhone|iP[ao]d)/.exec(t),p=/\b(iP[ao]d)/.exec(t),h=/Android/i.exec(t),g=/FBAN\/\w+;/i.exec(t),v=/Mobile/i.exec(t),f=!!/Win64/.exec(t),e){n=e[1]?parseFloat(e[1]):e[5]?parseFloat(e[5]):NaN,n&&document&&document.documentMode&&(n=document.documentMode);var b=/(?:Trident\/(\d+.\d+))/.exec(t);s=b?parseFloat(b[1])+4:n,r=e[2]?parseFloat(e[2]):NaN,i=e[3]?parseFloat(e[3]):NaN,o=e[4]?parseFloat(e[4]):NaN,o?(e=/(?:Chrome\/(\d+\.\d+))/.exec(t),a=e&&e[1]?parseFloat(e[1]):NaN):a=NaN}else n=r=i=a=o=NaN;if(m){if(m[1]){var _=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(t);l=!_||parseFloat(_[1].replace("_","."))}else l=!1;u=!!m[2],c=!!m[3]}else l=u=c=!1}}var b={ie:function(){return m()||n},ieCompatibilityMode:function(){return m()||s>n},ie64:function(){return b.ie()&&f},firefox:function(){return m()||r},opera:function(){return m()||i},webkit:function(){return m()||o},safari:function(){return b.webkit()},chrome:function(){return m()||a},windows:function(){return m()||u},osx:function(){return m()||l},linux:function(){return m()||c},iphone:function(){return m()||d},mobile:function(){return m()||d||p||h||v},nativeApp:function(){return m()||g},android:function(){return m()||h},ipad:function(){return m()||p}};t.exports=b},"8f47":function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.transition=l,e.injectNewCurve=x,e["default"]=void 0;var i=r(n("278c")),o=r(n("7037")),a=r(n("df83")),s="linear";function l(t){var e=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=c(t),a=h(o,r);return i&&"number"!==typeof n?_(e,n,a):v(e,n,a)}catch(s){return console.warn("Transition parameter may be abnormal!"),[n]}}function u(t){var e=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(!t||!1===e||!1===n||!r)return console.error("transition: Missing Parameters!"),!1;if((0,o["default"])(e)!==(0,o["default"])(n))return console.error("transition: Inconsistent Status Types!"),!1;var i=(0,o["default"])(n);return"string"!==i&&"boolean"!==i&&t.length?(a["default"].has(t)||t 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 c(t){var e="";return e=a["default"].has(t)?a["default"].get(t):t instanceof Array?t:a["default"].get(s),e}function h(t,e){var n=1/(e-1),r=new Array(e).fill(0).map((function(t,e){return e*n})),i=r.map((function(e){return f(t,e)}));return i}function f(t,e){var n=d(t,e),r=p(n,e);return g(n,r)}function d(t,e){var n=t.length-1,r="",i="";t.findIndex((function(o,a){if(a!==n){r=o,i=t[a+1];var s=r[0][0],l=i[0][0];return e>=s&&e<l}}));var o=r[0],a=r[2]||r[0],s=i[1]||i[0],l=i[0];return[o,a,s,l]}function p(t,e){var n=t[0][0],r=t[3][0],i=r-n,o=e-n;return o/i}function g(t,e){var n=(0,i["default"])(t,4),r=(0,i["default"])(n[0],2),o=r[1],a=(0,i["default"])(n[1],2),s=a[1],l=(0,i["default"])(n[2],2),u=l[1],c=(0,i["default"])(n[3],2),h=c[1],f=Math.pow,d=1-e,p=o*f(d,3),g=3*s*e*f(d,2),v=3*u*f(e,2)*d,y=h*f(e,3);return 1-(p+g+v+y)}function v(t,e,n){var r="object";return"number"===typeof t&&(r="number"),t instanceof Array&&(r="array"),"number"===r?y(t,e,n):"array"===r?m(t,e,n):"object"===r?b(t,e,n):n.map((function(t){return e}))}function y(t,e,n){var r=e-t;return n.map((function(e){return t+r*e}))}function m(t,e,n){var r=e.map((function(e,n){return"number"===typeof e&&e-t[n]}));return n.map((function(n){return r.map((function(r,i){return!1===r?e[i]:t[i]+r*n}))}))}function b(t,e,n){var r=Object.keys(e),i=r.map((function(e){return t[e]})),o=r.map((function(t){return e[t]})),a=m(i,o,n);return a.map((function(t){var e={};return t.forEach((function(t,n){return e[r[n]]=t})),e}))}function _(t,e,n){var r=v(t,e,n),i=function(i){var a=t[i],s=e[i];if("object"!==(0,o["default"])(s))return"continue";var l=_(a,s,n);r.forEach((function(t,e){return t[i]=l[e]}))};for(var a in e)i(a);return r}function x(t,e){t&&e?a["default"].set(t,e):console.error("InjectNewCurve Missing Parameters!")}var w=l;e["default"]=w},"90d8":function(t,e,n){var r=n("c65b"),i=n("1a2d"),o=n("3a9b"),a=n("ad6d"),s=RegExp.prototype;t.exports=function(t){var e=t.flags;return void 0!==e||"flags"in s||i(t,"flags")||!o(s,t)?e:r(a,t)}},"90e3":function(t,e,n){var r=n("e330"),i=0,o=Math.random(),a=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++i+o,36)}},9112:function(t,e,n){var r=n("83ab"),i=n("9bf2"),o=n("5c6c");t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},9141:function(t,e,n){var r=n("ef08").document;t.exports=r&&r.documentElement},9152:function(t,e){
|
||
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
||
e.read=function(t,e,n,r,i){var o,a,s=8*i-r-1,l=(1<<s)-1,u=l>>1,c=-7,h=n?i-1:0,f=n?-1:1,d=t[e+h];for(h+=f,o=d&(1<<-c)-1,d>>=-c,c+=s;c>0;o=256*o+t[e+h],h+=f,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+t[e+h],h+=f,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),o-=u}return(d?-1:1)*a*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var a,s,l,u=8*o-i-1,c=(1<<u)-1,h=c>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,p=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),e+=a+h>=1?f/l:f*Math.pow(2,1-h),e*l>=2&&(a++,l/=2),a+h>=c?(s=0,a=c):a+h>=1?(s=(e*l-1)*Math.pow(2,i),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[n+d]=255&s,d+=p,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;t[n+d]=255&a,d+=p,a/=256,u-=8);t[n+d-p]|=128*g}},"91dd":function(t,e,n){"use strict";function r(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,e,n,o){e=e||"&",n=n||"=";var a={};if("string"!==typeof t||0===t.length)return a;var s=/\+/g;t=t.split(e);var l=1e3;o&&"number"===typeof o.maxKeys&&(l=o.maxKeys);var u=t.length;l>0&&u>l&&(u=l);for(var c=0;c<u;++c){var h,f,d,p,g=t[c].replace(s,"%20"),v=g.indexOf(n);v>=0?(h=g.substr(0,v),f=g.substr(v+1)):(h=g,f=""),d=decodeURIComponent(h),p=decodeURIComponent(f),r(a,d)?i(a[d])?a[d].push(p):a[d]=[a[d],p]:a[d]=p}return a};var i=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},9263:function(t,e,n){"use strict";var r=n("c65b"),i=n("e330"),o=n("577e"),a=n("ad6d"),s=n("9f7f"),l=n("5692"),u=n("7c73"),c=n("69f3").get,h=n("fce3"),f=n("107c"),d=l("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,g=p,v=i("".charAt),y=i("".indexOf),m=i("".replace),b=i("".slice),_=function(){var t=/a/,e=/b*/g;return r(p,t,"a"),r(p,e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),x=s.BROKEN_CARET,w=void 0!==/()??/.exec("")[1],S=_||w||x||h||f;S&&(g=function(t){var e,n,i,s,l,h,f,S=this,O=c(S),C=o(t),k=O.raw;if(k)return k.lastIndex=S.lastIndex,e=r(g,k,C),S.lastIndex=k.lastIndex,e;var A=O.groups,M=x&&S.sticky,T=r(a,S),I=S.source,E=0,P=C;if(M&&(T=m(T,"y",""),-1===y(T,"g")&&(T+="g"),P=b(C,S.lastIndex),S.lastIndex>0&&(!S.multiline||S.multiline&&"\n"!==v(C,S.lastIndex-1))&&(I="(?: "+I+")",P=" "+P,E++),n=new RegExp("^(?:"+I+")",T)),w&&(n=new RegExp("^"+I+"$(?!\\s)",T)),_&&(i=S.lastIndex),s=r(p,M?n:S,P),M?s?(s.input=b(s.input,E),s[0]=b(s[0],E),s.index=S.lastIndex,S.lastIndex+=s[0].length):S.lastIndex=0:_&&s&&(S.lastIndex=S.global?s.index+s[0].length:i),w&&s&&s.length>1&&r(d,s[0],n,(function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(s[l]=void 0)})),s&&A)for(s.groups=h=u(null),l=0;l<A.length;l++)f=A[l],h[f[0]]=s[f[1]];return s}),t.exports=g},"92f0":function(t,e,n){var r=n("1a14").f,i=n("9c0e"),o=n("cc15")("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},"92fa":function(t,e){var n=/^(attrs|props|on|nativeOn|class|style|hook)$/;function r(t,e){return function(){t&&t.apply(this,arguments),e&&e.apply(this,arguments)}}t.exports=function(t){return t.reduce((function(t,e){var i,o,a,s,l;for(a in e)if(i=t[a],o=e[a],i&&n.test(a))if("class"===a&&("string"===typeof i&&(l=i,t[a]=i={},i[l]=!0),"string"===typeof o&&(l=o,e[a]=o={},o[l]=!0)),"on"===a||"nativeOn"===a||"hook"===a)for(s in o)i[s]=r(i[s],o[s]);else if(Array.isArray(i))t[a]=i.concat(o);else if(Array.isArray(o))t[a]=[i].concat(o);else for(s in o)i[s]=o[s];else t[a]=e[a];return t}),{})}},9339:function(t,e,n){(function(e){
|
||
/*!
|
||
* Quill Editor v1.3.7
|
||
* https://quilljs.com/
|
||
* Copyright (c) 2014, Jason Chen
|
||
* Copyright (c) 2013, salesforce.com
|
||
*/
|
||
(function(e,n){t.exports=n()})("undefined"!==typeof self&&self,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=109)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(17),i=n(18),o=n(19),a=n(45),s=n(46),l=n(47),u=n(48),c=n(49),h=n(12),f=n(32),d=n(33),p=n(31),g=n(1),v={Scope:g.Scope,create:g.create,find:g.find,query:g.query,register:g.register,Container:r.default,Format:i.default,Leaf:o.default,Embed:u.default,Scroll:a.default,Block:l.default,Inline:s.default,Text:c.default,Attributor:{Attribute:h.default,Class:f.default,Style:d.default,Store:p.default}};e.default=v},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){function e(e){var n=this;return e="[Parchment] "+e,n=t.call(this,e)||this,n.message=e,n.name=n.constructor.name,n}return r(e,t),e}(Error);e.ParchmentError=i;var o,a={},s={},l={},u={};function c(t,e){var n=f(t);if(null==n)throw new i("Unable to create "+t+" blot");var r=n,o=t instanceof Node||t["nodeType"]===Node.TEXT_NODE?t:r.create(e);return new r(o,e)}function h(t,n){return void 0===n&&(n=!1),null==t?null:null!=t[e.DATA_KEY]?t[e.DATA_KEY].blot:n?h(t.parentNode,n):null}function f(t,e){var n;if(void 0===e&&(e=o.ANY),"string"===typeof t)n=u[t]||a[t];else if(t instanceof Text||t["nodeType"]===Node.TEXT_NODE)n=u["text"];else if("number"===typeof t)t&o.LEVEL&o.BLOCK?n=u["block"]:t&o.LEVEL&o.INLINE&&(n=u["inline"]);else if(t instanceof HTMLElement){var r=(t.getAttribute("class")||"").split(/\s+/);for(var i in r)if(n=s[r[i]],n)break;n=n||l[t.tagName]}return null==n?null:e&o.LEVEL&n.scope&&e&o.TYPE&n.scope?n:null}function d(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(t.length>1)return t.map((function(t){return d(t)}));var n=t[0];if("string"!==typeof n.blotName&&"string"!==typeof n.attrName)throw new i("Invalid definition");if("abstract"===n.blotName)throw new i("Cannot register abstract class");if(u[n.blotName||n.attrName]=n,"string"===typeof n.keyName)a[n.keyName]=n;else if(null!=n.className&&(s[n.className]=n),null!=n.tagName){Array.isArray(n.tagName)?n.tagName=n.tagName.map((function(t){return t.toUpperCase()})):n.tagName=n.tagName.toUpperCase();var r=Array.isArray(n.tagName)?n.tagName:[n.tagName];r.forEach((function(t){null!=l[t]&&null!=n.className||(l[t]=n)}))}return n}e.DATA_KEY="__blot",function(t){t[t["TYPE"]=3]="TYPE",t[t["LEVEL"]=12]="LEVEL",t[t["ATTRIBUTE"]=13]="ATTRIBUTE",t[t["BLOT"]=14]="BLOT",t[t["INLINE"]=7]="INLINE",t[t["BLOCK"]=11]="BLOCK",t[t["BLOCK_BLOT"]=10]="BLOCK_BLOT",t[t["INLINE_BLOT"]=6]="INLINE_BLOT",t[t["BLOCK_ATTRIBUTE"]=9]="BLOCK_ATTRIBUTE",t[t["INLINE_ATTRIBUTE"]=5]="INLINE_ATTRIBUTE",t[t["ANY"]=15]="ANY"}(o=e.Scope||(e.Scope={})),e.create=c,e.find=h,e.query=f,e.register=d},function(t,e,n){var r=n(51),i=n(11),o=n(3),a=n(20),s=String.fromCharCode(0),l=function(t){Array.isArray(t)?this.ops=t:null!=t&&Array.isArray(t.ops)?this.ops=t.ops:this.ops=[]};l.prototype.insert=function(t,e){var n={};return 0===t.length?this:(n.insert=t,null!=e&&"object"===typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n))},l.prototype["delete"]=function(t){return t<=0?this:this.push({delete:t})},l.prototype.retain=function(t,e){if(t<=0)return this;var n={retain:t};return null!=e&&"object"===typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n)},l.prototype.push=function(t){var e=this.ops.length,n=this.ops[e-1];if(t=o(!0,{},t),"object"===typeof n){if("number"===typeof t["delete"]&&"number"===typeof n["delete"])return this.ops[e-1]={delete:n["delete"]+t["delete"]},this;if("number"===typeof n["delete"]&&null!=t.insert&&(e-=1,n=this.ops[e-1],"object"!==typeof n))return this.ops.unshift(t),this;if(i(t.attributes,n.attributes)){if("string"===typeof t.insert&&"string"===typeof n.insert)return this.ops[e-1]={insert:n.insert+t.insert},"object"===typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this;if("number"===typeof t.retain&&"number"===typeof n.retain)return this.ops[e-1]={retain:n.retain+t.retain},"object"===typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this}}return e===this.ops.length?this.ops.push(t):this.ops.splice(e,0,t),this},l.prototype.chop=function(){var t=this.ops[this.ops.length-1];return t&&t.retain&&!t.attributes&&this.ops.pop(),this},l.prototype.filter=function(t){return this.ops.filter(t)},l.prototype.forEach=function(t){this.ops.forEach(t)},l.prototype.map=function(t){return this.ops.map(t)},l.prototype.partition=function(t){var e=[],n=[];return this.forEach((function(r){var i=t(r)?e:n;i.push(r)})),[e,n]},l.prototype.reduce=function(t,e){return this.ops.reduce(t,e)},l.prototype.changeLength=function(){return this.reduce((function(t,e){return e.insert?t+a.length(e):e.delete?t-e.delete:t}),0)},l.prototype.length=function(){return this.reduce((function(t,e){return t+a.length(e)}),0)},l.prototype.slice=function(t,e){t=t||0,"number"!==typeof e&&(e=1/0);var n=[],r=a.iterator(this.ops),i=0;while(i<e&&r.hasNext()){var o;i<t?o=r.next(t-i):(o=r.next(e-i),n.push(o)),i+=a.length(o)}return new l(n)},l.prototype.compose=function(t){var e=a.iterator(this.ops),n=a.iterator(t.ops),r=[],o=n.peek();if(null!=o&&"number"===typeof o.retain&&null==o.attributes){var s=o.retain;while("insert"===e.peekType()&&e.peekLength()<=s)s-=e.peekLength(),r.push(e.next());o.retain-s>0&&n.next(o.retain-s)}var u=new l(r);while(e.hasNext()||n.hasNext())if("insert"===n.peekType())u.push(n.next());else if("delete"===e.peekType())u.push(e.next());else{var c=Math.min(e.peekLength(),n.peekLength()),h=e.next(c),f=n.next(c);if("number"===typeof f.retain){var d={};"number"===typeof h.retain?d.retain=c:d.insert=h.insert;var p=a.attributes.compose(h.attributes,f.attributes,"number"===typeof h.retain);if(p&&(d.attributes=p),u.push(d),!n.hasNext()&&i(u.ops[u.ops.length-1],d)){var g=new l(e.rest());return u.concat(g).chop()}}else"number"===typeof f["delete"]&&"number"===typeof h.retain&&u.push(f)}return u.chop()},l.prototype.concat=function(t){var e=new l(this.ops.slice());return t.ops.length>0&&(e.push(t.ops[0]),e.ops=e.ops.concat(t.ops.slice(1))),e},l.prototype.diff=function(t,e){if(this.ops===t.ops)return new l;var n=[this,t].map((function(e){return e.map((function(n){if(null!=n.insert)return"string"===typeof n.insert?n.insert:s;var r=e===t?"on":"with";throw new Error("diff() called "+r+" non-document")})).join("")})),o=new l,u=r(n[0],n[1],e),c=a.iterator(this.ops),h=a.iterator(t.ops);return u.forEach((function(t){var e=t[1].length;while(e>0){var n=0;switch(t[0]){case r.INSERT:n=Math.min(h.peekLength(),e),o.push(h.next(n));break;case r.DELETE:n=Math.min(e,c.peekLength()),c.next(n),o["delete"](n);break;case r.EQUAL:n=Math.min(c.peekLength(),h.peekLength(),e);var s=c.next(n),l=h.next(n);i(s.insert,l.insert)?o.retain(n,a.attributes.diff(s.attributes,l.attributes)):o.push(l)["delete"](n);break}e-=n}})),o.chop()},l.prototype.eachLine=function(t,e){e=e||"\n";var n=a.iterator(this.ops),r=new l,i=0;while(n.hasNext()){if("insert"!==n.peekType())return;var o=n.peek(),s=a.length(o)-n.peekLength(),u="string"===typeof o.insert?o.insert.indexOf(e,s)-s:-1;if(u<0)r.push(n.next());else if(u>0)r.push(n.next(u));else{if(!1===t(r,n.next(1).attributes||{},i))return;i+=1,r=new l}}r.length()>0&&t(r,{},i)},l.prototype.transform=function(t,e){if(e=!!e,"number"===typeof t)return this.transformPosition(t,e);var n=a.iterator(this.ops),r=a.iterator(t.ops),i=new l;while(n.hasNext()||r.hasNext())if("insert"!==n.peekType()||!e&&"insert"===r.peekType())if("insert"===r.peekType())i.push(r.next());else{var o=Math.min(n.peekLength(),r.peekLength()),s=n.next(o),u=r.next(o);if(s["delete"])continue;u["delete"]?i.push(u):i.retain(o,a.attributes.transform(s.attributes,u.attributes,e))}else i.retain(a.length(n.next()));return i.chop()},l.prototype.transformPosition=function(t,e){e=!!e;var n=a.iterator(this.ops),r=0;while(n.hasNext()&&r<=t){var i=n.peekLength(),o=n.peekType();n.next(),"delete"!==o?("insert"===o&&(r<t||!e)&&(t+=i),r+=i):t-=Math.min(i,t-r)}return t},t.exports=l},function(t,e){"use strict";var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=function(t){return"function"===typeof Array.isArray?Array.isArray(t):"[object Array]"===r.call(t)},s=function(t){if(!t||"[object Object]"!==r.call(t))return!1;var e,i=n.call(t,"constructor"),o=t.constructor&&t.constructor.prototype&&n.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!i&&!o)return!1;for(e in t);return"undefined"===typeof e||n.call(t,e)},l=function(t,e){i&&"__proto__"===e.name?i(t,e.name,{enumerable:!0,configurable:!0,value:e.newValue,writable:!0}):t[e.name]=e.newValue},u=function(t,e){if("__proto__"===e){if(!n.call(t,e))return;if(o)return o(t,e).value}return t[e]};t.exports=function t(){var e,n,r,i,o,c,h=arguments[0],f=1,d=arguments.length,p=!1;for("boolean"===typeof h&&(p=h,h=arguments[1]||{},f=2),(null==h||"object"!==typeof h&&"function"!==typeof h)&&(h={});f<d;++f)if(e=arguments[f],null!=e)for(n in e)r=u(h,n),i=u(e,n),h!==i&&(p&&i&&(s(i)||(o=a(i)))?(o?(o=!1,c=r&&a(r)?r:[]):c=r&&s(r)?r:{},l(h,{name:n,newValue:t(p,c,i)})):"undefined"!==typeof i&&l(h,{name:n,newValue:i}));return h}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BlockEmbed=e.bubbleFormats=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(3),a=y(o),s=n(2),l=y(s),u=n(0),c=y(u),h=n(16),f=y(h),d=n(6),p=y(d),g=n(7),v=y(g);function y(t){return t&&t.__esModule?t:{default:t}}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function b(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function _(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var x=1,w=function(t){function e(){return m(this,e),b(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return _(e,t),r(e,[{key:"attach",value:function(){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"attach",this).call(this),this.attributes=new c.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new l.default).insert(this.value(),(0,a.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(t,e){var n=c.default.query(t,c.default.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,e)}},{key:"formatAt",value:function(t,e,n,r){this.format(n,r)}},{key:"insertAt",value:function(t,n,r){if("string"===typeof n&&n.endsWith("\n")){var o=c.default.create(S.blotName);this.parent.insertBefore(o,0===t?this:this.next),o.insertAt(0,n.slice(0,-1))}else i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r)}}]),e}(c.default.Embed);w.scope=c.default.Scope.BLOCK_BLOT;var S=function(t){function e(t){m(this,e);var n=b(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.cache={},n}return _(e,t),r(e,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(c.default.Leaf).reduce((function(t,e){return 0===e.length()?t:t.insert(e.value(),O(e))}),new l.default).insert("\n",O(this))),this.cache.delta}},{key:"deleteAt",value:function(t,n){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"deleteAt",this).call(this,t,n),this.cache={}}},{key:"formatAt",value:function(t,n,r,o){n<=0||(c.default.query(r,c.default.Scope.BLOCK)?t+n===this.length()&&this.format(r,o):i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,Math.min(n,this.length()-t-1),r,o),this.cache={})}},{key:"insertAt",value:function(t,n,r){if(null!=r)return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r);if(0!==n.length){var o=n.split("\n"),a=o.shift();a.length>0&&(t<this.length()-1||null==this.children.tail?i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,Math.min(t,this.length()-1),a):this.children.tail.insertAt(this.children.tail.length(),a),this.cache={});var s=this;o.reduce((function(t,e){return s=s.split(t,!0),s.insertAt(0,e),e.length}),t+a.length)}}},{key:"insertBefore",value:function(t,n){var r=this.children.head;i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n),r instanceof f.default&&r.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"length",this).call(this)+x),this.cache.length}},{key:"moveChildren",value:function(t,n){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"moveChildren",this).call(this,t,n),this.cache={}}},{key:"optimize",value:function(t){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.cache={}}},{key:"path",value:function(t){return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"path",this).call(this,t,!0)}},{key:"removeChild",value:function(t){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"removeChild",this).call(this,t),this.cache={}}},{key:"split",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===t||t>=this.length()-x)){var r=this.clone();return 0===t?(this.parent.insertBefore(r,this),this):(this.parent.insertBefore(r,this.next),r)}var o=i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"split",this).call(this,t,n);return this.cache={},o}}]),e}(c.default.Block);function O(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==t?e:("function"===typeof t.formats&&(e=(0,a.default)(e,t.formats())),null==t.parent||"scroll"==t.parent.blotName||t.parent.statics.scope!==t.statics.scope?e:O(t.parent,e))}S.blotName="block",S.tagName="P",S.defaultChild="break",S.allowedChildren=[p.default,c.default.Embed,v.default],e.bubbleFormats=O,e.BlockEmbed=w,e.default=S},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.overload=e.expandConfig=void 0;var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(){function t(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),e&&n.length===e)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();n(50);var a=n(2),s=O(a),l=n(14),u=O(l),c=n(8),h=O(c),f=n(9),d=O(f),p=n(0),g=O(p),v=n(15),y=O(v),m=n(3),b=O(m),_=n(10),x=O(_),w=n(34),S=O(w);function O(t){return t&&t.__esModule?t:{default:t}}function C(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function k(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var A=(0,x.default)("quill"),M=function(){function t(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(k(this,t),this.options=T(e,r),this.container=this.options.container,null==this.container)return A.error("Invalid Quill container",e);this.options.debug&&t.debug(this.options.debug);var i=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new h.default,this.scroll=g.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new u.default(this.scroll),this.selection=new y.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(h.default.events.EDITOR_CHANGE,(function(t){t===h.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(h.default.events.SCROLL_UPDATE,(function(t,e){var r=n.selection.lastRange,i=r&&0===r.length?r.index:void 0;I.call(n,(function(){return n.editor.update(null,e,i)}),t)}));var o=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+i+"<p><br></p></div>");this.setContents(o),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return o(t,null,[{key:"debug",value:function(t){!0===t&&(t="log"),x.default.level(t)}},{key:"find",value:function(t){return t.__quill||g.default.find(t)}},{key:"import",value:function(t){return null==this.imports[t]&&A.error("Cannot import "+t+". Are you sure it was registered?"),this.imports[t]}},{key:"register",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!==typeof t){var i=t.attrName||t.blotName;"string"===typeof i?this.register("formats/"+i,t,e):Object.keys(t).forEach((function(r){n.register(r,t[r],e)}))}else null==this.imports[t]||r||A.warn("Overwriting "+t+" with",e),this.imports[t]=e,(t.startsWith("blots/")||t.startsWith("formats/"))&&"abstract"!==e.blotName?g.default.register(e):t.startsWith("modules")&&"function"===typeof e.register&&e.register()}}]),o(t,[{key:"addContainer",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"===typeof t){var n=t;t=document.createElement("div"),t.classList.add(n)}return this.container.insertBefore(t,e),t}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(t,e,n){var r=this,o=E(t,e,n),a=i(o,4);return t=a[0],e=a[1],n=a[3],I.call(this,(function(){return r.editor.deleteText(t,e)}),n,t,-1*e)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(t),this.container.classList.toggle("ql-disabled",!t)}},{key:"focus",value:function(){var t=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=t,this.scrollIntoView()}},{key:"format",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h.default.sources.API;return I.call(this,(function(){var r=n.getSelection(!0),i=new s.default;if(null==r)return i;if(g.default.query(t,g.default.Scope.BLOCK))i=n.editor.formatLine(r.index,r.length,C({},t,e));else{if(0===r.length)return n.selection.format(t,e),i;i=n.editor.formatText(r.index,r.length,C({},t,e))}return n.setSelection(r,h.default.sources.SILENT),i}),r)}},{key:"formatLine",value:function(t,e,n,r,o){var a=this,s=void 0,l=E(t,e,n,r,o),u=i(l,4);return t=u[0],e=u[1],s=u[2],o=u[3],I.call(this,(function(){return a.editor.formatLine(t,e,s)}),o,t,0)}},{key:"formatText",value:function(t,e,n,r,o){var a=this,s=void 0,l=E(t,e,n,r,o),u=i(l,4);return t=u[0],e=u[1],s=u[2],o=u[3],I.call(this,(function(){return a.editor.formatText(t,e,s)}),o,t,0)}},{key:"getBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"===typeof t?this.selection.getBounds(t,e):this.selection.getBounds(t.index,t.length);var r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,width:n.width}}},{key:"getContents",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,n=E(t,e),r=i(n,2);return t=r[0],e=r[1],this.editor.getContents(t,e)}},{key:"getFormat",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"===typeof t?this.editor.getFormat(t,e):this.editor.getFormat(t.index,t.length)}},{key:"getIndex",value:function(t){return t.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(t){return this.scroll.leaf(t)}},{key:"getLine",value:function(t){return this.scroll.line(t)}},{key:"getLines",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!==typeof t?this.scroll.lines(t.index,t.length):this.scroll.lines(t,e)}},{key:"getModule",value:function(t){return this.theme.modules[t]}},{key:"getSelection",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return t&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,n=E(t,e),r=i(n,2);return t=r[0],e=r[1],this.editor.getText(t,e)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(e,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.sources.API;return I.call(this,(function(){return i.editor.insertEmbed(e,n,r)}),o,e)}},{key:"insertText",value:function(t,e,n,r,o){var a=this,s=void 0,l=E(t,0,n,r,o),u=i(l,4);return t=u[0],s=u[2],o=u[3],I.call(this,(function(){return a.editor.insertText(t,e,s)}),o,t,e.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(t,e,n){this.clipboard.dangerouslyPasteHTML(t,e,n)}},{key:"removeFormat",value:function(t,e,n){var r=this,o=E(t,e,n),a=i(o,4);return t=a[0],e=a[1],n=a[3],I.call(this,(function(){return r.editor.removeFormat(t,e)}),n,t)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h.default.sources.API;return I.call(this,(function(){t=new s.default(t);var n=e.getLength(),r=e.editor.deleteText(0,n),i=e.editor.applyDelta(t),o=i.ops[i.ops.length-1];null!=o&&"string"===typeof o.insert&&"\n"===o.insert[o.insert.length-1]&&(e.editor.deleteText(e.getLength()-1,1),i.delete(1));var a=r.compose(i);return a}),n)}},{key:"setSelection",value:function(e,n,r){if(null==e)this.selection.setRange(null,n||t.sources.API);else{var o=E(e,n,r),a=i(o,4);e=a[0],n=a[1],r=a[3],this.selection.setRange(new v.Range(e,n),r),r!==h.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h.default.sources.API,n=(new s.default).insert(t);return this.setContents(n,e)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h.default.sources.USER,e=this.scroll.update(t);return this.selection.update(t),e}},{key:"updateContents",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h.default.sources.API;return I.call(this,(function(){return t=new s.default(t),e.editor.applyDelta(t,n)}),n,!0)}}]),t}();function T(t,e){if(e=(0,b.default)(!0,{container:t,modules:{clipboard:!0,keyboard:!0,history:!0}},e),e.theme&&e.theme!==M.DEFAULTS.theme){if(e.theme=M.import("themes/"+e.theme),null==e.theme)throw new Error("Invalid theme "+e.theme+". Did you register it?")}else e.theme=S.default;var n=(0,b.default)(!0,{},e.theme.DEFAULTS);[n,e].forEach((function(t){t.modules=t.modules||{},Object.keys(t.modules).forEach((function(e){!0===t.modules[e]&&(t.modules[e]={})}))}));var r=Object.keys(n.modules).concat(Object.keys(e.modules)),i=r.reduce((function(t,e){var n=M.import("modules/"+e);return null==n?A.error("Cannot load "+e+" module. Are you sure you registered it?"):t[e]=n.DEFAULTS||{},t}),{});return null!=e.modules&&e.modules.toolbar&&e.modules.toolbar.constructor!==Object&&(e.modules.toolbar={container:e.modules.toolbar}),e=(0,b.default)(!0,{},M.DEFAULTS,{modules:i},n,e),["bounds","container","scrollingContainer"].forEach((function(t){"string"===typeof e[t]&&(e[t]=document.querySelector(e[t]))})),e.modules=Object.keys(e.modules).reduce((function(t,n){return e.modules[n]&&(t[n]=e.modules[n]),t}),{}),e}function I(t,e,n,r){if(this.options.strict&&!this.isEnabled()&&e===h.default.sources.USER)return new s.default;var i=null==n?null:this.getSelection(),o=this.editor.delta,a=t();if(null!=i&&(!0===n&&(n=i.index),null==r?i=P(i,a,e):0!==r&&(i=P(i,n,r,e)),this.setSelection(i,h.default.sources.SILENT)),a.length()>0){var l,u,c=[h.default.events.TEXT_CHANGE,a,o,e];if((l=this.emitter).emit.apply(l,[h.default.events.EDITOR_CHANGE].concat(c)),e!==h.default.sources.SILENT)(u=this.emitter).emit.apply(u,c)}return a}function E(t,e,n,i,o){var a={};return"number"===typeof t.index&&"number"===typeof t.length?"number"!==typeof e?(o=i,i=n,n=e,e=t.length,t=t.index):(e=t.length,t=t.index):"number"!==typeof e&&(o=i,i=n,n=e,e=0),"object"===("undefined"===typeof n?"undefined":r(n))?(a=n,o=i):"string"===typeof n&&(null!=i?a[n]=i:o=n),o=o||h.default.sources.API,[t,e,a,o]}function P(t,e,n,r){if(null==t)return null;var o=void 0,a=void 0;if(e instanceof s.default){var l=[t.index,t.index+t.length].map((function(t){return e.transformPosition(t,r!==h.default.sources.USER)})),u=i(l,2);o=u[0],a=u[1]}else{var c=[t.index,t.index+t.length].map((function(t){return t<e||t===e&&r===h.default.sources.USER?t:n>=0?t+n:Math.max(e,t+n)})),f=i(c,2);o=f[0],a=f[1]}return new v.Range(o,a-o)}M.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},M.events=h.default.events,M.sources=h.default.sources,M.version="1.3.7",M.imports={delta:s.default,parchment:g.default,"core/module":d.default,"core/theme":S.default},e.expandConfig=T,e.overload=E,e.default=M},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(7),a=u(o),s=n(0),l=u(s);function u(t){return t&&t.__esModule?t:{default:t}}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function f(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var d=function(t){function e(){return c(this,e),h(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return f(e,t),r(e,[{key:"formatAt",value:function(t,n,r,o){if(e.compare(this.statics.blotName,r)<0&&l.default.query(r,l.default.Scope.BLOT)){var a=this.isolate(t,n);o&&a.wrap(r,o)}else i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,n,r,o)}},{key:"optimize",value:function(t){if(i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.parent instanceof e&&e.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(t,n){var r=e.order.indexOf(t),i=e.order.indexOf(n);return r>=0||i>=0?r-i:t===n?0:t<n?-1:1}}]),e}(l.default.Inline);d.allowedChildren=[d,l.default.Embed,a.default],d.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=o(r);function o(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function l(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=function(t){function e(){return a(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),e}(i.default.Text);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(54),a=u(o),s=n(10),l=u(s);function u(t){return t&&t.__esModule?t:{default:t}}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function f(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var d=(0,l.default)("quill:events"),p=["selectionchange","mousedown","mouseup","click"];p.forEach((function(t){document.addEventListener(t,(function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach((function(t){var n;t.__quill&&t.__quill.emitter&&(n=t.__quill.emitter).handleDOM.apply(n,e)}))}))}));var g=function(t){function e(){c(this,e);var t=h(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.listeners={},t.on("error",d.error),t}return f(e,t),r(e,[{key:"emit",value:function(){d.log.apply(d,arguments),i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];(this.listeners[t.type]||[]).forEach((function(e){var r=e.node,i=e.handler;(t.target===r||r.contains(t.target))&&i.apply(void 0,[t].concat(n))}))}},{key:"listenDOM",value:function(t,e,n){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push({node:e,handler:n})}}]),e}(a.default);g.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},g.sources={API:"api",SILENT:"silent",USER:"user"},e.default=g},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,t),this.quill=e,this.options=n};i.DEFAULTS={},e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=["error","warn","log","info"],i="warn";function o(t){if(r.indexOf(t)<=r.indexOf(i)){for(var e,n=arguments.length,o=Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];(e=console)[t].apply(e,o)}}function a(t){return r.reduce((function(e,n){return e[n]=o.bind(console,n,t),e}),{})}o.level=a.level=function(t){i=t},e.default=a},function(t,e,n){var r=Array.prototype.slice,i=n(52),o=n(53),a=t.exports=function(t,e,n){return n||(n={}),t===e||(t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():!t||!e||"object"!=typeof t&&"object"!=typeof e?n.strict?t===e:t==e:u(t,e,n))};function s(t){return null===t||void 0===t}function l(t){return!(!t||"object"!==typeof t||"number"!==typeof t.length)&&("function"===typeof t.copy&&"function"===typeof t.slice&&!(t.length>0&&"number"!==typeof t[0]))}function u(t,e,n){var u,c;if(s(t)||s(e))return!1;if(t.prototype!==e.prototype)return!1;if(o(t))return!!o(e)&&(t=r.call(t),e=r.call(e),a(t,e,n));if(l(t)){if(!l(e))return!1;if(t.length!==e.length)return!1;for(u=0;u<t.length;u++)if(t[u]!==e[u])return!1;return!0}try{var h=i(t),f=i(e)}catch(d){return!1}if(h.length!=f.length)return!1;for(h.sort(),f.sort(),u=h.length-1;u>=0;u--)if(h[u]!=f[u])return!1;for(u=h.length-1;u>=0;u--)if(c=h[u],!a(t[c],e[c],n))return!1;return typeof t===typeof e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=function(){function t(t,e,n){void 0===n&&(n={}),this.attrName=t,this.keyName=e;var i=r.Scope.TYPE&r.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&r.Scope.LEVEL|i:this.scope=r.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return t.keys=function(t){return[].map.call(t.attributes,(function(t){return t.name}))},t.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.setAttribute(this.keyName,e),!0)},t.prototype.canAdd=function(t,e){var n=r.query(t,r.Scope.BLOT&(this.scope|r.Scope.TYPE));return null!=n&&(null==this.whitelist||("string"===typeof e?this.whitelist.indexOf(e.replace(/["']/g,""))>-1:this.whitelist.indexOf(e)>-1))},t.prototype.remove=function(t){t.removeAttribute(this.keyName)},t.prototype.value=function(t){var e=t.getAttribute(this.keyName);return this.canAdd(t,e)&&e?e:""},t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Code=void 0;var r=function(){function t(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),e&&n.length===e)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(2),s=v(a),l=n(0),u=v(l),c=n(4),h=v(c),f=n(6),d=v(f),p=n(7),g=v(p);function v(t){return t&&t.__esModule?t:{default:t}}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function m(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function b(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var _=function(t){function e(){return y(this,e),m(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return b(e,t),e}(d.default);_.blotName="code",_.tagName="CODE";var x=function(t){function e(){return y(this,e),m(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return b(e,t),i(e,[{key:"delta",value:function(){var t=this,e=this.domNode.textContent;return e.endsWith("\n")&&(e=e.slice(0,-1)),e.split("\n").reduce((function(e,n){return e.insert(n).insert("\n",t.formats())}),new s.default)}},{key:"format",value:function(t,n){if(t!==this.statics.blotName||!n){var i=this.descendant(g.default,this.length()-1),a=r(i,1),s=a[0];null!=s&&s.deleteAt(s.length()-1,1),o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}},{key:"formatAt",value:function(t,n,r,i){if(0!==n&&null!=u.default.query(r,u.default.Scope.BLOCK)&&(r!==this.statics.blotName||i!==this.statics.formats(this.domNode))){var o=this.newlineIndex(t);if(!(o<0||o>=t+n)){var a=this.newlineIndex(t,!0)+1,s=o-a+1,l=this.isolate(a,s),c=l.next;l.format(r,i),c instanceof e&&c.formatAt(0,t-a+n-s,r,i)}}}},{key:"insertAt",value:function(t,e,n){if(null==n){var i=this.descendant(g.default,t),o=r(i,2),a=o[0],s=o[1];a.insertAt(s,e)}}},{key:"length",value:function(){var t=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?t:t+1}},{key:"newlineIndex",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e)return this.domNode.textContent.slice(0,t).lastIndexOf("\n");var n=this.domNode.textContent.slice(t).indexOf("\n");return n>-1?t+n:-1}},{key:"optimize",value:function(t){this.domNode.textContent.endsWith("\n")||this.appendChild(u.default.create("text","\n")),o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(t),n.moveChildren(this),n.remove())}},{key:"replace",value:function(t){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(t){var e=u.default.find(t);null==e?t.parentNode.removeChild(t):e instanceof u.default.Embed?e.remove():e.unwrap()}))}}],[{key:"create",value:function(t){var n=o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),e}(h.default);x.blotName="code-block",x.tagName="PRE",x.TAB=" ",e.Code=_,e.default=x},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(){function t(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),e&&n.length===e)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=n(2),s=k(a),l=n(20),u=k(l),c=n(0),h=k(c),f=n(13),d=k(f),p=n(24),g=k(p),v=n(4),y=k(v),m=n(16),b=k(m),_=n(21),x=k(_),w=n(11),S=k(w),O=n(3),C=k(O);function k(t){return t&&t.__esModule?t:{default:t}}function A(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function M(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var T=/^[ -~]*$/,I=function(){function t(e){M(this,t),this.scroll=e,this.delta=this.getDelta()}return o(t,[{key:"applyDelta",value:function(t){var e=this,n=!1;this.scroll.update();var o=this.scroll.length();return this.scroll.batchStart(),t=P(t),t.reduce((function(t,a){var s=a.retain||a.delete||a.insert.length||1,l=a.attributes||{};if(null!=a.insert){if("string"===typeof a.insert){var c=a.insert;c.endsWith("\n")&&n&&(n=!1,c=c.slice(0,-1)),t>=o&&!c.endsWith("\n")&&(n=!0),e.scroll.insertAt(t,c);var f=e.scroll.line(t),d=i(f,2),p=d[0],g=d[1],m=(0,C.default)({},(0,v.bubbleFormats)(p));if(p instanceof y.default){var b=p.descendant(h.default.Leaf,g),_=i(b,1),x=_[0];m=(0,C.default)(m,(0,v.bubbleFormats)(x))}l=u.default.attributes.diff(m,l)||{}}else if("object"===r(a.insert)){var w=Object.keys(a.insert)[0];if(null==w)return t;e.scroll.insertAt(t,w,a.insert[w])}o+=s}return Object.keys(l).forEach((function(n){e.scroll.formatAt(t,s,n,l[n])})),t+s}),0),t.reduce((function(t,n){return"number"===typeof n.delete?(e.scroll.deleteAt(t,n.delete),t):t+(n.retain||n.insert.length||1)}),0),this.scroll.batchEnd(),this.update(t)}},{key:"deleteText",value:function(t,e){return this.scroll.deleteAt(t,e),this.update((new s.default).retain(t).delete(e))}},{key:"formatLine",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(r).forEach((function(i){if(null==n.scroll.whitelist||n.scroll.whitelist[i]){var o=n.scroll.lines(t,Math.max(e,1)),a=e;o.forEach((function(e){var o=e.length();if(e instanceof d.default){var s=t-e.offset(n.scroll),l=e.newlineIndex(s+a)-s+1;e.formatAt(s,l,i,r[i])}else e.format(i,r[i]);a-=o}))}})),this.scroll.optimize(),this.update((new s.default).retain(t).retain(e,(0,x.default)(r)))}},{key:"formatText",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(r).forEach((function(i){n.scroll.formatAt(t,e,i,r[i])})),this.update((new s.default).retain(t).retain(e,(0,x.default)(r)))}},{key:"getContents",value:function(t,e){return this.delta.slice(t,t+e)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(t,e){return t.concat(e.delta())}),new s.default)}},{key:"getFormat",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===e?this.scroll.path(t).forEach((function(t){var e=i(t,1),o=e[0];o instanceof y.default?n.push(o):o instanceof h.default.Leaf&&r.push(o)})):(n=this.scroll.lines(t,e),r=this.scroll.descendants(h.default.Leaf,t,e));var o=[n,r].map((function(t){if(0===t.length)return{};var e=(0,v.bubbleFormats)(t.shift());while(Object.keys(e).length>0){var n=t.shift();if(null==n)return e;e=E((0,v.bubbleFormats)(n),e)}return e}));return C.default.apply(C.default,o)}},{key:"getText",value:function(t,e){return this.getContents(t,e).filter((function(t){return"string"===typeof t.insert})).map((function(t){return t.insert})).join("")}},{key:"insertEmbed",value:function(t,e,n){return this.scroll.insertAt(t,e,n),this.update((new s.default).retain(t).insert(A({},e,n)))}},{key:"insertText",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e=e.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(t,e),Object.keys(r).forEach((function(i){n.scroll.formatAt(t,e.length,i,r[i])})),this.update((new s.default).retain(t).insert(e,(0,x.default)(r)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var t=this.scroll.children.head;return t.statics.blotName===y.default.blotName&&(!(t.children.length>1)&&t.children.head instanceof b.default)}},{key:"removeFormat",value:function(t,e){var n=this.getText(t,e),r=this.scroll.line(t+e),o=i(r,2),a=o[0],l=o[1],u=0,c=new s.default;null!=a&&(u=a instanceof d.default?a.newlineIndex(l)-l+1:a.length()-l,c=a.delta().slice(l,l+u-1).insert("\n"));var h=this.getContents(t,e+u),f=h.diff((new s.default).insert(n).concat(c)),p=(new s.default).retain(t).concat(f);return this.applyDelta(p)}},{key:"update",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this.delta;if(1===e.length&&"characterData"===e[0].type&&e[0].target.data.match(T)&&h.default.find(e[0].target)){var i=h.default.find(e[0].target),o=(0,v.bubbleFormats)(i),a=i.offset(this.scroll),l=e[0].oldValue.replace(g.default.CONTENTS,""),u=(new s.default).insert(l),c=(new s.default).insert(i.value()),f=(new s.default).retain(a).concat(u.diff(c,n));t=f.reduce((function(t,e){return e.insert?t.insert(e.insert,o):t.push(e)}),new s.default),this.delta=r.compose(t)}else this.delta=this.getDelta(),t&&(0,S.default)(r.compose(t),this.delta)||(t=r.diff(this.delta,n));return t}}]),t}();function E(t,e){return Object.keys(e).reduce((function(n,r){return null==t[r]||(e[r]===t[r]?n[r]=e[r]:Array.isArray(e[r])?e[r].indexOf(t[r])<0&&(n[r]=e[r].concat([t[r]])):n[r]=[e[r],t[r]]),n}),{})}function P(t){return t.reduce((function(t,e){if(1===e.insert){var n=(0,x.default)(e.attributes);return delete n["image"],t.insert({image:e.attributes.image},n)}if(null==e.attributes||!0!==e.attributes.list&&!0!==e.attributes.bullet||(e=(0,x.default)(e),e.attributes.list?e.attributes.list="ordered":(e.attributes.list="bullet",delete e.attributes.bullet)),"string"===typeof e.insert){var r=e.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return t.insert(r,e.attributes)}return t.push(e)}),new s.default)}e.default=I},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Range=void 0;var r=function(){function t(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),e&&n.length===e)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=n(0),a=g(o),s=n(21),l=g(s),u=n(11),c=g(u),h=n(8),f=g(h),d=n(10),p=g(d);function g(t){return t&&t.__esModule?t:{default:t}}function v(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var m=(0,p.default)("quill:selection"),b=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;y(this,t),this.index=e,this.length=n},_=function(){function t(e,n){var r=this;y(this,t),this.emitter=n,this.scroll=e,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=a.default.create("cursor",this),this.lastRange=this.savedRange=new b(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){r.mouseDown||setTimeout(r.update.bind(r,f.default.sources.USER),1)})),this.emitter.on(f.default.events.EDITOR_CHANGE,(function(t,e){t===f.default.events.TEXT_CHANGE&&e.length()>0&&r.update(f.default.sources.SILENT)})),this.emitter.on(f.default.events.SCROLL_BEFORE_UPDATE,(function(){if(r.hasFocus()){var t=r.getNativeRange();null!=t&&t.start.node!==r.cursor.textNode&&r.emitter.once(f.default.events.SCROLL_UPDATE,(function(){try{r.setNativeRange(t.start.node,t.start.offset,t.end.node,t.end.offset)}catch(e){}}))}})),this.emitter.on(f.default.events.SCROLL_OPTIMIZE,(function(t,e){if(e.range){var n=e.range,i=n.startNode,o=n.startOffset,a=n.endNode,s=n.endOffset;r.setNativeRange(i,o,a,s)}})),this.update(f.default.sources.SILENT)}return i(t,[{key:"handleComposition",value:function(){var t=this;this.root.addEventListener("compositionstart",(function(){t.composing=!0})),this.root.addEventListener("compositionend",(function(){if(t.composing=!1,t.cursor.parent){var e=t.cursor.restore();if(!e)return;setTimeout((function(){t.setNativeRange(e.startNode,e.startOffset,e.endNode,e.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var t=this;this.emitter.listenDOM("mousedown",document.body,(function(){t.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){t.mouseDown=!1,t.update(f.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(t,e){if(null==this.scroll.whitelist||this.scroll.whitelist[t]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!a.default.query(t,a.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=a.default.find(n.start.node,!1);if(null==r)return;if(r instanceof a.default.Leaf){var i=r.split(n.start.offset);r.parent.insertBefore(this.cursor,i)}else r.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(t,e),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();t=Math.min(t,n-1),e=Math.min(t+e,n-1)-t;var i=void 0,o=this.scroll.leaf(t),a=r(o,2),s=a[0],l=a[1];if(null==s)return null;var u=s.position(l,!0),c=r(u,2);i=c[0],l=c[1];var h=document.createRange();if(e>0){h.setStart(i,l);var f=this.scroll.leaf(t+e),d=r(f,2);if(s=d[0],l=d[1],null==s)return null;var p=s.position(l,!0),g=r(p,2);return i=g[0],l=g[1],h.setEnd(i,l),h.getBoundingClientRect()}var v="left",y=void 0;return i instanceof Text?(l<i.data.length?(h.setStart(i,l),h.setEnd(i,l+1)):(h.setStart(i,l-1),h.setEnd(i,l),v="right"),y=h.getBoundingClientRect()):(y=s.domNode.getBoundingClientRect(),l>0&&(v="right")),{bottom:y.top+y.height,height:y.height,left:y[v],right:y[v],top:y.top,width:0}}},{key:"getNativeRange",value:function(){var t=document.getSelection();if(null==t||t.rangeCount<=0)return null;var e=t.getRangeAt(0);if(null==e)return null;var n=this.normalizeNative(e);return m.info("getNativeRange",n),n}},{key:"getRange",value:function(){var t=this.getNativeRange();if(null==t)return[null,null];var e=this.normalizedToRange(t);return[e,t]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(t){var e=this,n=[[t.start.node,t.start.offset]];t.native.collapsed||n.push([t.end.node,t.end.offset]);var i=n.map((function(t){var n=r(t,2),i=n[0],o=n[1],s=a.default.find(i,!0),l=s.offset(e.scroll);return 0===o?l:s instanceof a.default.Container?l+s.length():l+s.index(i,o)})),o=Math.min(Math.max.apply(Math,v(i)),this.scroll.length()-1),s=Math.min.apply(Math,[o].concat(v(i)));return new b(s,o-s)}},{key:"normalizeNative",value:function(t){if(!x(this.root,t.startContainer)||!t.collapsed&&!x(this.root,t.endContainer))return null;var e={start:{node:t.startContainer,offset:t.startOffset},end:{node:t.endContainer,offset:t.endOffset},native:t};return[e.start,e.end].forEach((function(t){var e=t.node,n=t.offset;while(!(e instanceof Text)&&e.childNodes.length>0)if(e.childNodes.length>n)e=e.childNodes[n],n=0;else{if(e.childNodes.length!==n)break;e=e.lastChild,n=e instanceof Text?e.data.length:e.childNodes.length+1}t.node=e,t.offset=n})),e}},{key:"rangeToNative",value:function(t){var e=this,n=t.collapsed?[t.index]:[t.index,t.index+t.length],i=[],o=this.scroll.length();return n.forEach((function(t,n){t=Math.min(o-1,t);var a=void 0,s=e.scroll.leaf(t),l=r(s,2),u=l[0],c=l[1],h=u.position(c,0!==n),f=r(h,2);a=f[0],c=f[1],i.push(a,c)})),i.length<2&&(i=i.concat(i)),i}},{key:"scrollIntoView",value:function(t){var e=this.lastRange;if(null!=e){var n=this.getBounds(e.index,e.length);if(null!=n){var i=this.scroll.length()-1,o=this.scroll.line(Math.min(e.index,i)),a=r(o,1),s=a[0],l=s;if(e.length>0){var u=this.scroll.line(Math.min(e.index+e.length,i)),c=r(u,1);l=c[0]}if(null!=s&&null!=l){var h=t.getBoundingClientRect();n.top<h.top?t.scrollTop-=h.top-n.top:n.bottom>h.bottom&&(t.scrollTop+=n.bottom-h.bottom)}}}}},{key:"setNativeRange",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(m.info("setNativeRange",t,e,n,r),null==t||null!=this.root.parentNode&&null!=t.parentNode&&null!=n.parentNode){var o=document.getSelection();if(null!=o)if(null!=t){this.hasFocus()||this.root.focus();var a=(this.getNativeRange()||{}).native;if(null==a||i||t!==a.startContainer||e!==a.startOffset||n!==a.endContainer||r!==a.endOffset){"BR"==t.tagName&&(e=[].indexOf.call(t.parentNode.childNodes,t),t=t.parentNode),"BR"==n.tagName&&(r=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var s=document.createRange();s.setStart(t,e),s.setEnd(n,r),o.removeAllRanges(),o.addRange(s)}}else o.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f.default.sources.API;if("string"===typeof e&&(n=e,e=!1),m.info("setRange",t),null!=t){var r=this.rangeToNative(t);this.setNativeRange.apply(this,v(r).concat([e]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.default.sources.USER,e=this.lastRange,n=this.getRange(),i=r(n,2),o=i[0],a=i[1];if(this.lastRange=o,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,c.default)(e,this.lastRange)){var s;!this.composing&&null!=a&&a.native.collapsed&&a.start.node!==this.cursor.textNode&&this.cursor.restore();var u,h=[f.default.events.SELECTION_CHANGE,(0,l.default)(this.lastRange),(0,l.default)(e),t];if((s=this.emitter).emit.apply(s,[f.default.events.EDITOR_CHANGE].concat(h)),t!==f.default.sources.SILENT)(u=this.emitter).emit.apply(u,h)}}}]),t}();function x(t,e){try{e.parentNode}catch(n){return!1}return e instanceof Text&&(e=e.parentNode),t.contains(e)}e.Range=b,e.default=_},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(0),a=s(o);function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function c(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var h=function(t){function e(){return l(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return c(e,t),r(e,[{key:"insertInto",value:function(t,n){0===t.children.length?i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertInto",this).call(this,t,n):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),e}(a.default.Embed);h.blotName="break",h.tagName="BR",e.default=h},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(44),o=n(30),a=n(1),s=function(t){function e(e){var n=t.call(this,e)||this;return n.build(),n}return r(e,t),e.prototype.appendChild=function(t){this.insertBefore(t)},e.prototype.attach=function(){t.prototype.attach.call(this),this.children.forEach((function(t){t.attach()}))},e.prototype.build=function(){var t=this;this.children=new i.default,[].slice.call(this.domNode.childNodes).reverse().forEach((function(e){try{var n=l(e);t.insertBefore(n,t.children.head||void 0)}catch(r){if(r instanceof a.ParchmentError)return;throw r}}))},e.prototype.deleteAt=function(t,e){if(0===t&&e===this.length())return this.remove();this.children.forEachAt(t,e,(function(t,e,n){t.deleteAt(e,n)}))},e.prototype.descendant=function(t,n){var r=this.children.find(n),i=r[0],o=r[1];return null==t.blotName&&t(i)||null!=t.blotName&&i instanceof t?[i,o]:i instanceof e?i.descendant(t,o):[null,-1]},e.prototype.descendants=function(t,n,r){void 0===n&&(n=0),void 0===r&&(r=Number.MAX_VALUE);var i=[],o=r;return this.children.forEachAt(n,r,(function(n,r,a){(null==t.blotName&&t(n)||null!=t.blotName&&n instanceof t)&&i.push(n),n instanceof e&&(i=i.concat(n.descendants(t,r,o))),o-=a})),i},e.prototype.detach=function(){this.children.forEach((function(t){t.detach()})),t.prototype.detach.call(this)},e.prototype.formatAt=function(t,e,n,r){this.children.forEachAt(t,e,(function(t,e,i){t.formatAt(e,i,n,r)}))},e.prototype.insertAt=function(t,e,n){var r=this.children.find(t),i=r[0],o=r[1];if(i)i.insertAt(o,e,n);else{var s=null==n?a.create("text",e):a.create(e,n);this.appendChild(s)}},e.prototype.insertBefore=function(t,e){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some((function(e){return t instanceof e})))throw new a.ParchmentError("Cannot insert "+t.statics.blotName+" into "+this.statics.blotName);t.insertInto(this,e)},e.prototype.length=function(){return this.children.reduce((function(t,e){return t+e.length()}),0)},e.prototype.moveChildren=function(t,e){this.children.forEach((function(n){t.insertBefore(n,e)}))},e.prototype.optimize=function(e){if(t.prototype.optimize.call(this,e),0===this.children.length)if(null!=this.statics.defaultChild){var n=a.create(this.statics.defaultChild);this.appendChild(n),n.optimize(e)}else this.remove()},e.prototype.path=function(t,n){void 0===n&&(n=!1);var r=this.children.find(t,n),i=r[0],o=r[1],a=[[this,t]];return i instanceof e?a.concat(i.path(o,n)):(null!=i&&a.push([i,o]),a)},e.prototype.removeChild=function(t){this.children.remove(t)},e.prototype.replace=function(n){n instanceof e&&n.moveChildren(this),t.prototype.replace.call(this,n)},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(t,this.length(),(function(t,r,i){t=t.split(r,e),n.appendChild(t)})),n},e.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},e.prototype.update=function(t,e){var n=this,r=[],i=[];t.forEach((function(t){t.target===n.domNode&&"childList"===t.type&&(r.push.apply(r,t.addedNodes),i.push.apply(i,t.removedNodes))})),i.forEach((function(t){if(!(null!=t.parentNode&&"IFRAME"!==t.tagName&&document.body.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var e=a.find(t);null!=e&&(null!=e.domNode.parentNode&&e.domNode.parentNode!==n.domNode||e.detach())}})),r.filter((function(t){return t.parentNode==n.domNode})).sort((function(t,e){return t===e?0:t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})).forEach((function(t){var e=null;null!=t.nextSibling&&(e=a.find(t.nextSibling));var r=l(t);r.next==e&&null!=r.next||(null!=r.parent&&r.parent.removeChild(n),n.insertBefore(r,e||void 0))}))},e}(o.default);function l(t){var e=a.find(t);if(null==e)try{e=a.create(t)}catch(n){e=a.create(a.Scope.INLINE),[].slice.call(t.childNodes).forEach((function(t){e.domNode.appendChild(t)})),t.parentNode&&t.parentNode.replaceChild(e.domNode,t),e.attach()}return e}e.default=s},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(12),o=n(31),a=n(17),s=n(1),l=function(t){function e(e){var n=t.call(this,e)||this;return n.attributes=new o.default(n.domNode),n}return r(e,t),e.formats=function(t){return"string"===typeof this.tagName||(Array.isArray(this.tagName)?t.tagName.toLowerCase():void 0)},e.prototype.format=function(t,e){var n=s.query(t);n instanceof i.default?this.attributes.attribute(n,e):e&&(null==n||t===this.statics.blotName&&this.formats()[t]===e||this.replaceWith(t,e))},e.prototype.formats=function(){var t=this.attributes.values(),e=this.statics.formats(this.domNode);return null!=e&&(t[this.statics.blotName]=e),t},e.prototype.replaceWith=function(e,n){var r=t.prototype.replaceWith.call(this,e,n);return this.attributes.copy(r),r},e.prototype.update=function(e,n){var r=this;t.prototype.update.call(this,e,n),e.some((function(t){return t.target===r.domNode&&"attributes"===t.type}))&&this.attributes.build()},e.prototype.wrap=function(n,r){var i=t.prototype.wrap.call(this,n,r);return i instanceof e&&i.statics.scope===this.statics.scope&&this.attributes.move(i),i},e}(a.default);e.default=l},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(30),o=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.value=function(t){return!0},e.prototype.index=function(t,e){return this.domNode===t||this.domNode.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1},e.prototype.position=function(t,e){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return t>0&&(n+=1),[this.parent.domNode,n]},e.prototype.value=function(){var t;return t={},t[this.statics.blotName]=this.statics.value(this.domNode)||!0,t},e.scope=o.Scope.INLINE_BLOT,e}(i.default);e.default=a},function(t,e,n){var r=n(11),i=n(3),o={attributes:{compose:function(t,e,n){"object"!==typeof t&&(t={}),"object"!==typeof e&&(e={});var r=i(!0,{},e);for(var o in n||(r=Object.keys(r).reduce((function(t,e){return null!=r[e]&&(t[e]=r[e]),t}),{})),t)void 0!==t[o]&&void 0===e[o]&&(r[o]=t[o]);return Object.keys(r).length>0?r:void 0},diff:function(t,e){"object"!==typeof t&&(t={}),"object"!==typeof e&&(e={});var n=Object.keys(t).concat(Object.keys(e)).reduce((function(n,i){return r(t[i],e[i])||(n[i]=void 0===e[i]?null:e[i]),n}),{});return Object.keys(n).length>0?n:void 0},transform:function(t,e,n){if("object"!==typeof t)return e;if("object"===typeof e){if(!n)return e;var r=Object.keys(e).reduce((function(n,r){return void 0===t[r]&&(n[r]=e[r]),n}),{});return Object.keys(r).length>0?r:void 0}}},iterator:function(t){return new a(t)},length:function(t){return"number"===typeof t["delete"]?t["delete"]:"number"===typeof t.retain?t.retain:"string"===typeof t.insert?t.insert.length:1}};function a(t){this.ops=t,this.index=0,this.offset=0}a.prototype.hasNext=function(){return this.peekLength()<1/0},a.prototype.next=function(t){t||(t=1/0);var e=this.ops[this.index];if(e){var n=this.offset,r=o.length(e);if(t>=r-n?(t=r-n,this.index+=1,this.offset=0):this.offset+=t,"number"===typeof e["delete"])return{delete:t};var i={};return e.attributes&&(i.attributes=e.attributes),"number"===typeof e.retain?i.retain=t:"string"===typeof e.insert?i.insert=e.insert.substr(n,t):i.insert=e.insert,i}return{retain:1/0}},a.prototype.peek=function(){return this.ops[this.index]},a.prototype.peekLength=function(){return this.ops[this.index]?o.length(this.ops[this.index])-this.offset:1/0},a.prototype.peekType=function(){return this.ops[this.index]?"number"===typeof this.ops[this.index]["delete"]?"delete":"number"===typeof this.ops[this.index].retain?"retain":"insert":"retain"},a.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var t=this.offset,e=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=t,this.index=e,[n].concat(r)}return[]},t.exports=o},function(t,n){var r=function(){"use strict";function t(t,e){return null!=e&&t instanceof e}var n,r,i;try{n=Map}catch(h){n=function(){}}try{r=Set}catch(h){r=function(){}}try{i=Promise}catch(h){i=function(){}}function o(a,s,l,u,h){"object"===typeof s&&(l=s.depth,u=s.prototype,h=s.includeNonEnumerable,s=s.circular);var f=[],d=[],p="undefined"!=typeof e;function g(a,l){if(null===a)return null;if(0===l)return a;var v,y;if("object"!=typeof a)return a;if(t(a,n))v=new n;else if(t(a,r))v=new r;else if(t(a,i))v=new i((function(t,e){a.then((function(e){t(g(e,l-1))}),(function(t){e(g(t,l-1))}))}));else if(o.__isArray(a))v=[];else if(o.__isRegExp(a))v=new RegExp(a.source,c(a)),a.lastIndex&&(v.lastIndex=a.lastIndex);else if(o.__isDate(a))v=new Date(a.getTime());else{if(p&&e.isBuffer(a))return v=e.allocUnsafe?e.allocUnsafe(a.length):new e(a.length),a.copy(v),v;t(a,Error)?v=Object.create(a):"undefined"==typeof u?(y=Object.getPrototypeOf(a),v=Object.create(y)):(v=Object.create(u),y=u)}if(s){var m=f.indexOf(a);if(-1!=m)return d[m];f.push(a),d.push(v)}for(var b in t(a,n)&&a.forEach((function(t,e){var n=g(e,l-1),r=g(t,l-1);v.set(n,r)})),t(a,r)&&a.forEach((function(t){var e=g(t,l-1);v.add(e)})),a){var _;y&&(_=Object.getOwnPropertyDescriptor(y,b)),_&&null==_.set||(v[b]=g(a[b],l-1))}if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(a);for(b=0;b<x.length;b++){var w=x[b],S=Object.getOwnPropertyDescriptor(a,w);(!S||S.enumerable||h)&&(v[w]=g(a[w],l-1),S.enumerable||Object.defineProperty(v,w,{enumerable:!1}))}}if(h){var O=Object.getOwnPropertyNames(a);for(b=0;b<O.length;b++){var C=O[b];S=Object.getOwnPropertyDescriptor(a,C);S&&S.enumerable||(v[C]=g(a[C],l-1),Object.defineProperty(v,C,{enumerable:!1}))}}return v}return"undefined"==typeof s&&(s=!0),"undefined"==typeof l&&(l=1/0),g(a,l)}function a(t){return Object.prototype.toString.call(t)}function s(t){return"object"===typeof t&&"[object Date]"===a(t)}function l(t){return"object"===typeof t&&"[object Array]"===a(t)}function u(t){return"object"===typeof t&&"[object RegExp]"===a(t)}function c(t){var e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),e}return o.clonePrototype=function(t){if(null===t)return null;var e=function(){};return e.prototype=t,new e},o.__objToStr=a,o.__isDate=s,o.__isArray=l,o.__isRegExp=u,o.__getRegExpFlags=c,o}();"object"===typeof t&&t.exports&&(t.exports=r)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),e&&n.length===e)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(0),s=m(a),l=n(8),u=m(l),c=n(4),h=m(c),f=n(16),d=m(f),p=n(13),g=m(p),v=n(25),y=m(v);function m(t){return t&&t.__esModule?t:{default:t}}function b(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function x(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function w(t){return t instanceof h.default||t instanceof c.BlockEmbed}var S=function(t){function e(t,n){b(this,e);var r=_(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.emitter=n.emitter,Array.isArray(n.whitelist)&&(r.whitelist=n.whitelist.reduce((function(t,e){return t[e]=!0,t}),{})),r.domNode.addEventListener("DOMNodeInserted",(function(){})),r.optimize(),r.enable(),r}return x(e,t),i(e,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(t,n){var i=this.line(t),a=r(i,2),s=a[0],l=a[1],u=this.line(t+n),h=r(u,1),f=h[0];if(o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"deleteAt",this).call(this,t,n),null!=f&&s!==f&&l>0){if(s instanceof c.BlockEmbed||f instanceof c.BlockEmbed)return void this.optimize();if(s instanceof g.default){var p=s.newlineIndex(s.length(),!0);if(p>-1&&(s=s.split(p+1),s===f))return void this.optimize()}else if(f instanceof g.default){var v=f.newlineIndex(0);v>-1&&f.split(v+1)}var y=f.children.head instanceof d.default?null:f.children.head;s.moveChildren(f,y),s.remove()}this.optimize()}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",t)}},{key:"formatAt",value:function(t,n,r,i){(null==this.whitelist||this.whitelist[r])&&(o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,n,r,i),this.optimize())}},{key:"insertAt",value:function(t,n,r){if(null==r||null==this.whitelist||this.whitelist[n]){if(t>=this.length())if(null==r||null==s.default.query(n,s.default.Scope.BLOCK)){var i=s.default.create(this.statics.defaultChild);this.appendChild(i),null==r&&n.endsWith("\n")&&(n=n.slice(0,-1)),i.insertAt(0,n,r)}else{var a=s.default.create(n,r);this.appendChild(a)}else o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r);this.optimize()}}},{key:"insertBefore",value:function(t,n){if(t.statics.scope===s.default.Scope.INLINE_BLOT){var r=s.default.create(this.statics.defaultChild);r.appendChild(t),t=r}o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n)}},{key:"leaf",value:function(t){return this.path(t).pop()||[null,-1]}},{key:"line",value:function(t){return t===this.length()?this.line(t-1):this.descendant(w,t)}},{key:"lines",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,n=function t(e,n,r){var i=[],o=r;return e.children.forEachAt(n,r,(function(e,n,r){w(e)?i.push(e):e instanceof s.default.Container&&(i=i.concat(t(e,n,o))),o-=r})),i};return n(this,t,e)}},{key:"optimize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t,n),t.length>0&&this.emitter.emit(u.default.events.SCROLL_OPTIMIZE,t,n))}},{key:"path",value:function(t){return o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"path",this).call(this,t).slice(1)}},{key:"update",value:function(t){if(!0!==this.batch){var n=u.default.sources.USER;"string"===typeof t&&(n=t),Array.isArray(t)||(t=this.observer.takeRecords()),t.length>0&&this.emitter.emit(u.default.events.SCROLL_BEFORE_UPDATE,n,t),o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"update",this).call(this,t.concat([])),t.length>0&&this.emitter.emit(u.default.events.SCROLL_UPDATE,n,t)}}}]),e}(s.default.Scroll);S.blotName="scroll",S.className="ql-editor",S.tagName="DIV",S.defaultChild="block",S.allowedChildren=[h.default,c.BlockEmbed,y.default],e.default=S},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SHORTKEY=e.default=void 0;var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(){function t(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),e&&n.length===e)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=n(21),s=O(a),l=n(11),u=O(l),c=n(3),h=O(c),f=n(2),d=O(f),p=n(20),g=O(p),v=n(0),y=O(v),m=n(5),b=O(m),_=n(10),x=O(_),w=n(9),S=O(w);function O(t){return t&&t.__esModule?t:{default:t}}function C(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function k(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function A(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function M(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var T=(0,x.default)("quill:keyboard"),I=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",E=function(t){function e(t,n){k(this,e);var r=A(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.bindings={},Object.keys(r.options.bindings).forEach((function(e){("list autofill"!==e||null==t.scroll.whitelist||t.scroll.whitelist["list"])&&r.options.bindings[e]&&r.addBinding(r.options.bindings[e])})),r.addBinding({key:e.keys.ENTER,shiftKey:null},R),r.addBinding({key:e.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},(function(){})),/Firefox/i.test(navigator.userAgent)?(r.addBinding({key:e.keys.BACKSPACE},{collapsed:!0},j),r.addBinding({key:e.keys.DELETE},{collapsed:!0},L)):(r.addBinding({key:e.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},j),r.addBinding({key:e.keys.DELETE},{collapsed:!0,suffix:/^.?$/},L)),r.addBinding({key:e.keys.BACKSPACE},{collapsed:!1},D),r.addBinding({key:e.keys.DELETE},{collapsed:!1},D),r.addBinding({key:e.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},j),r.listen(),r}return M(e,t),o(e,null,[{key:"match",value:function(t,e){return e=F(e),!["altKey","ctrlKey","metaKey","shiftKey"].some((function(n){return!!e[n]!==t[n]&&null!==e[n]}))&&e.key===(t.which||t.keyCode)}}]),o(e,[{key:"addBinding",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=F(t);if(null==r||null==r.key)return T.warn("Attempted to add invalid keyboard binding",r);"function"===typeof e&&(e={handler:e}),"function"===typeof n&&(n={handler:n}),r=(0,h.default)(r,e,n),this.bindings[r.key]=this.bindings[r.key]||[],this.bindings[r.key].push(r)}},{key:"listen",value:function(){var t=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented){var o=n.which||n.keyCode,a=(t.bindings[o]||[]).filter((function(t){return e.match(n,t)}));if(0!==a.length){var s=t.quill.getSelection();if(null!=s&&t.quill.hasFocus()){var l=t.quill.getLine(s.index),c=i(l,2),h=c[0],f=c[1],d=t.quill.getLeaf(s.index),p=i(d,2),g=p[0],v=p[1],m=0===s.length?[g,v]:t.quill.getLeaf(s.index+s.length),b=i(m,2),_=b[0],x=b[1],w=g instanceof y.default.Text?g.value().slice(0,v):"",S=_ instanceof y.default.Text?_.value().slice(x):"",O={collapsed:0===s.length,empty:0===s.length&&h.length()<=1,format:t.quill.getFormat(s),offset:f,prefix:w,suffix:S},C=a.some((function(e){if(null!=e.collapsed&&e.collapsed!==O.collapsed)return!1;if(null!=e.empty&&e.empty!==O.empty)return!1;if(null!=e.offset&&e.offset!==O.offset)return!1;if(Array.isArray(e.format)){if(e.format.every((function(t){return null==O.format[t]})))return!1}else if("object"===r(e.format)&&!Object.keys(e.format).every((function(t){return!0===e.format[t]?null!=O.format[t]:!1===e.format[t]?null==O.format[t]:(0,u.default)(e.format[t],O.format[t])})))return!1;return!(null!=e.prefix&&!e.prefix.test(O.prefix))&&(!(null!=e.suffix&&!e.suffix.test(O.suffix))&&!0!==e.handler.call(t,s,O))}));C&&n.preventDefault()}}}}))}}]),e}(S.default);function P(t,e){var n,r=t===E.keys.LEFT?"prefix":"suffix";return n={key:t,shiftKey:e,altKey:null},C(n,r,/^$/),C(n,"handler",(function(n){var r=n.index;t===E.keys.RIGHT&&(r+=n.length+1);var o=this.quill.getLeaf(r),a=i(o,1),s=a[0];return!(s instanceof y.default.Embed)||(t===E.keys.LEFT?e?this.quill.setSelection(n.index-1,n.length+1,b.default.sources.USER):this.quill.setSelection(n.index-1,b.default.sources.USER):e?this.quill.setSelection(n.index,n.length+1,b.default.sources.USER):this.quill.setSelection(n.index+n.length+1,b.default.sources.USER),!1)})),n}function j(t,e){if(!(0===t.index||this.quill.getLength()<=1)){var n=this.quill.getLine(t.index),r=i(n,1),o=r[0],a={};if(0===e.offset){var s=this.quill.getLine(t.index-1),l=i(s,1),u=l[0];if(null!=u&&u.length()>1){var c=o.formats(),h=this.quill.getFormat(t.index-1,1);a=g.default.attributes.diff(c,h)||{}}}var f=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(e.prefix)?2:1;this.quill.deleteText(t.index-f,f,b.default.sources.USER),Object.keys(a).length>0&&this.quill.formatLine(t.index-f,f,a,b.default.sources.USER),this.quill.focus()}}function L(t,e){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(e.suffix)?2:1;if(!(t.index>=this.quill.getLength()-n)){var r={},o=0,a=this.quill.getLine(t.index),s=i(a,1),l=s[0];if(e.offset>=l.length()-1){var u=this.quill.getLine(t.index+1),c=i(u,1),h=c[0];if(h){var f=l.formats(),d=this.quill.getFormat(t.index,1);r=g.default.attributes.diff(f,d)||{},o=h.length()}}this.quill.deleteText(t.index,n,b.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(t.index+o-1,n,r,b.default.sources.USER)}}function D(t){var e=this.quill.getLines(t),n={};if(e.length>1){var r=e[0].formats(),i=e[e.length-1].formats();n=g.default.attributes.diff(i,r)||{}}this.quill.deleteText(t,b.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(t.index,1,n,b.default.sources.USER),this.quill.setSelection(t.index,b.default.sources.SILENT),this.quill.focus()}function R(t,e){var n=this;t.length>0&&this.quill.scroll.deleteAt(t.index,t.length);var r=Object.keys(e.format).reduce((function(t,n){return y.default.query(n,y.default.Scope.BLOCK)&&!Array.isArray(e.format[n])&&(t[n]=e.format[n]),t}),{});this.quill.insertText(t.index,"\n",r,b.default.sources.USER),this.quill.setSelection(t.index+1,b.default.sources.SILENT),this.quill.focus(),Object.keys(e.format).forEach((function(t){null==r[t]&&(Array.isArray(e.format[t])||"link"!==t&&n.quill.format(t,e.format[t],b.default.sources.USER))}))}function N(t){return{key:E.keys.TAB,shiftKey:!t,format:{"code-block":!0},handler:function(e){var n=y.default.query("code-block"),r=e.index,o=e.length,a=this.quill.scroll.descendant(n,r),s=i(a,2),l=s[0],u=s[1];if(null!=l){var c=this.quill.getIndex(l),h=l.newlineIndex(u,!0)+1,f=l.newlineIndex(c+u+o),d=l.domNode.textContent.slice(h,f).split("\n");u=0,d.forEach((function(e,i){t?(l.insertAt(h+u,n.TAB),u+=n.TAB.length,0===i?r+=n.TAB.length:o+=n.TAB.length):e.startsWith(n.TAB)&&(l.deleteAt(h+u,n.TAB.length),u-=n.TAB.length,0===i?r-=n.TAB.length:o-=n.TAB.length),u+=e.length+1})),this.quill.update(b.default.sources.USER),this.quill.setSelection(r,o,b.default.sources.SILENT)}}}}function B(t){return{key:t[0].toUpperCase(),shortKey:!0,handler:function(e,n){this.quill.format(t,!n.format[t],b.default.sources.USER)}}}function F(t){if("string"===typeof t||"number"===typeof t)return F({key:t});if("object"===("undefined"===typeof t?"undefined":r(t))&&(t=(0,s.default)(t,!1)),"string"===typeof t.key)if(null!=E.keys[t.key.toUpperCase()])t.key=E.keys[t.key.toUpperCase()];else{if(1!==t.key.length)return null;t.key=t.key.toUpperCase().charCodeAt(0)}return t.shortKey&&(t[I]=t.shortKey,delete t.shortKey),t}E.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},E.DEFAULTS={bindings:{bold:B("bold"),italic:B("italic"),underline:B("underline"),indent:{key:E.keys.TAB,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","+1",b.default.sources.USER)}},outdent:{key:E.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","-1",b.default.sources.USER)}},"outdent backspace":{key:E.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(t,e){null!=e.format.indent?this.quill.format("indent","-1",b.default.sources.USER):null!=e.format.list&&this.quill.format("list",!1,b.default.sources.USER)}},"indent code-block":N(!0),"outdent code-block":N(!1),"remove tab":{key:E.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(t){this.quill.deleteText(t.index-1,1,b.default.sources.USER)}},tab:{key:E.keys.TAB,handler:function(t){this.quill.history.cutoff();var e=(new d.default).retain(t.index).delete(t.length).insert("\t");this.quill.updateContents(e,b.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index+1,b.default.sources.SILENT)}},"list empty enter":{key:E.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(t,e){this.quill.format("list",!1,b.default.sources.USER),e.format.indent&&this.quill.format("indent",!1,b.default.sources.USER)}},"checklist enter":{key:E.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(t){var e=this.quill.getLine(t.index),n=i(e,2),r=n[0],o=n[1],a=(0,h.default)({},r.formats(),{list:"checked"}),s=(new d.default).retain(t.index).insert("\n",a).retain(r.length()-o-1).retain(1,{list:"unchecked"});this.quill.updateContents(s,b.default.sources.USER),this.quill.setSelection(t.index+1,b.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:E.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(t,e){var n=this.quill.getLine(t.index),r=i(n,2),o=r[0],a=r[1],s=(new d.default).retain(t.index).insert("\n",e.format).retain(o.length()-a-1).retain(1,{header:null});this.quill.updateContents(s,b.default.sources.USER),this.quill.setSelection(t.index+1,b.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(t,e){var n=e.prefix.length,r=this.quill.getLine(t.index),o=i(r,2),a=o[0],s=o[1];if(s>n)return!0;var l=void 0;switch(e.prefix.trim()){case"[]":case"[ ]":l="unchecked";break;case"[x]":l="checked";break;case"-":case"*":l="bullet";break;default:l="ordered"}this.quill.insertText(t.index," ",b.default.sources.USER),this.quill.history.cutoff();var u=(new d.default).retain(t.index-s).delete(n+1).retain(a.length()-2-s).retain(1,{list:l});this.quill.updateContents(u,b.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index-n,b.default.sources.SILENT)}},"code exit":{key:E.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(t){var e=this.quill.getLine(t.index),n=i(e,2),r=n[0],o=n[1],a=(new d.default).retain(t.index+r.length()-o-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(a,b.default.sources.USER)}},"embed left":P(E.keys.LEFT,!1),"embed left shift":P(E.keys.LEFT,!0),"embed right":P(E.keys.RIGHT,!1),"embed right shift":P(E.keys.RIGHT,!0)}},e.default=E,e.SHORTKEY=I},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),e&&n.length===e)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=n(0),s=c(a),l=n(7),u=c(l);function c(t){return t&&t.__esModule?t:{default:t}}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function d(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var p=function(t){function e(t,n){h(this,e);var r=f(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.selection=n,r.textNode=document.createTextNode(e.CONTENTS),r.domNode.appendChild(r.textNode),r._length=0,r}return d(e,t),o(e,null,[{key:"value",value:function(){}}]),o(e,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(t,n){if(0!==this._length)return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n);var r=this,o=0;while(null!=r&&r.statics.scope!==s.default.Scope.BLOCK_BLOT)o+=r.offset(r.parent),r=r.parent;null!=r&&(this._length=e.CONTENTS.length,r.optimize(),r.formatAt(o,e.CONTENTS.length,t,n),this._length=0)}},{key:"index",value:function(t,n){return t===this.textNode?0:i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"index",this).call(this,t,n)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var t=this.textNode,n=this.selection.getNativeRange(),i=void 0,o=void 0,a=void 0;if(null!=n&&n.start.node===t&&n.end.node===t){var l=[t,n.start.offset,n.end.offset];i=l[0],o=l[1],a=l[2]}while(null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==e.CONTENTS){var c=this.textNode.data.split(e.CONTENTS).join("");this.next instanceof u.default?(i=this.next.domNode,this.next.insertAt(0,c),this.textNode.data=e.CONTENTS):(this.textNode.data=c,this.parent.insertBefore(s.default.create(this.textNode),this),this.textNode=document.createTextNode(e.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=o){var h=[o,a].map((function(t){return Math.max(0,Math.min(i.data.length,t-1))})),f=r(h,2);return o=f[0],a=f[1],{startNode:i,startOffset:o,endNode:i,endOffset:a}}}}},{key:"update",value:function(t,e){var n=this;if(t.some((function(t){return"characterData"===t.type&&t.target===n.textNode}))){var r=this.restore();r&&(e.range=r)}}},{key:"value",value:function(){return""}}]),e}(s.default.Embed);p.blotName="cursor",p.className="ql-cursor",p.tagName="span",p.CONTENTS="\ufeff",e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=s(r),o=n(4),a=s(o);function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function c(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var h=function(t){function e(){return l(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return c(e,t),e}(i.default.Container);h.allowedChildren=[a.default,o.BlockEmbed,h],e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ColorStyle=e.ColorClass=e.ColorAttributor=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(0),a=s(o);function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function c(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var h=function(t){function e(){return l(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return c(e,t),r(e,[{key:"value",value:function(t){var n=i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map((function(t){return("00"+parseInt(t).toString(16)).slice(-2)})).join("")):n}}]),e}(a.default.Attributor.Style),f=new a.default.Attributor.Class("color","ql-color",{scope:a.default.Scope.INLINE}),d=new h("color","color",{scope:a.default.Scope.INLINE});e.ColorAttributor=h,e.ColorClass=f,e.ColorStyle=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sanitize=e.default=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(6),a=s(o);function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function c(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var h=function(t){function e(){return l(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return c(e,t),r(e,[{key:"format",value:function(t,n){if(t!==this.statics.blotName||!n)return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n);n=this.constructor.sanitize(n),this.domNode.setAttribute("href",n)}}],[{key:"create",value:function(t){var n=i(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return t=this.sanitize(t),n.setAttribute("href",t),n.setAttribute("rel","noopener noreferrer"),n.setAttribute("target","_blank"),n}},{key:"formats",value:function(t){return t.getAttribute("href")}},{key:"sanitize",value:function(t){return f(t,this.PROTOCOL_WHITELIST)?t:this.SANITIZED_URL}}]),e}(a.default);function f(t,e){var n=document.createElement("a");n.href=t;var r=n.href.slice(0,n.href.indexOf(":"));return e.indexOf(r)>-1}h.blotName="link",h.tagName="A",h.SANITIZED_URL="about:blank",h.PROTOCOL_WHITELIST=["http","https","mailto","tel"],e.default=h,e.sanitize=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=n(23),a=u(o),s=n(107),l=u(s);function u(t){return t&&t.__esModule?t:{default:t}}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var h=0;function f(t,e){t.setAttribute(e,!("true"===t.getAttribute(e)))}var d=function(){function t(e){var n=this;c(this,t),this.select=e,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",(function(){n.togglePicker()})),this.label.addEventListener("keydown",(function(t){switch(t.keyCode){case a.default.keys.ENTER:n.togglePicker();break;case a.default.keys.ESCAPE:n.escape(),t.preventDefault();break;default:}})),this.select.addEventListener("change",this.update.bind(this))}return i(t,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),f(this.label,"aria-expanded"),f(this.options,"aria-hidden")}},{key:"buildItem",value:function(t){var e=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),t.hasAttribute("value")&&n.setAttribute("data-value",t.getAttribute("value")),t.textContent&&n.setAttribute("data-label",t.textContent),n.addEventListener("click",(function(){e.selectItem(n,!0)})),n.addEventListener("keydown",(function(t){switch(t.keyCode){case a.default.keys.ENTER:e.selectItem(n,!0),t.preventDefault();break;case a.default.keys.ESCAPE:e.escape(),t.preventDefault();break;default:}})),n}},{key:"buildLabel",value:function(){var t=document.createElement("span");return t.classList.add("ql-picker-label"),t.innerHTML=l.default,t.tabIndex="0",t.setAttribute("role","button"),t.setAttribute("aria-expanded","false"),this.container.appendChild(t),t}},{key:"buildOptions",value:function(){var t=this,e=document.createElement("span");e.classList.add("ql-picker-options"),e.setAttribute("aria-hidden","true"),e.tabIndex="-1",e.id="ql-picker-options-"+h,h+=1,this.label.setAttribute("aria-controls",e.id),this.options=e,[].slice.call(this.select.options).forEach((function(n){var r=t.buildItem(n);e.appendChild(r),!0===n.selected&&t.selectItem(r)})),this.container.appendChild(e)}},{key:"buildPicker",value:function(){var t=this;[].slice.call(this.select.attributes).forEach((function(e){t.container.setAttribute(e.name,e.value)})),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var t=this;this.close(),setTimeout((function(){return t.label.focus()}),1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(t!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=t&&(t.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(t.parentNode.children,t),t.hasAttribute("data-value")?this.label.setAttribute("data-value",t.getAttribute("data-value")):this.label.removeAttribute("data-value"),t.hasAttribute("data-label")?this.label.setAttribute("data-label",t.getAttribute("data-label")):this.label.removeAttribute("data-label"),e))){if("function"===typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"===typeof Event?"undefined":r(Event))){var i=document.createEvent("Event");i.initEvent("change",!0,!0),this.select.dispatchEvent(i)}this.close()}}},{key:"update",value:function(){var t=void 0;if(this.select.selectedIndex>-1){var e=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];t=this.select.options[this.select.selectedIndex],this.selectItem(e)}else this.selectItem(null);var n=null!=t&&t!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),t}();e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=T(r),o=n(5),a=T(o),s=n(4),l=T(s),u=n(16),c=T(u),h=n(25),f=T(h),d=n(24),p=T(d),g=n(35),v=T(g),y=n(6),m=T(y),b=n(22),_=T(b),x=n(7),w=T(x),S=n(55),O=T(S),C=n(42),k=T(C),A=n(23),M=T(A);function T(t){return t&&t.__esModule?t:{default:t}}a.default.register({"blots/block":l.default,"blots/block/embed":s.BlockEmbed,"blots/break":c.default,"blots/container":f.default,"blots/cursor":p.default,"blots/embed":v.default,"blots/inline":m.default,"blots/scroll":_.default,"blots/text":w.default,"modules/clipboard":O.default,"modules/history":k.default,"modules/keyboard":M.default}),i.default.register(l.default,c.default,p.default,m.default,_.default,w.default),e.default=a.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=function(){function t(t){this.domNode=t,this.domNode[r.DATA_KEY]={blot:this}}return Object.defineProperty(t.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),t.create=function(t){if(null==this.tagName)throw new r.ParchmentError("Blot definition missing tagName");var e;return Array.isArray(this.tagName)?("string"===typeof t&&(t=t.toUpperCase(),parseInt(t).toString()===t&&(t=parseInt(t))),e="number"===typeof t?document.createElement(this.tagName[t-1]):this.tagName.indexOf(t)>-1?document.createElement(t):document.createElement(this.tagName[0])):e=document.createElement(this.tagName),this.className&&e.classList.add(this.className),e},t.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},t.prototype.clone=function(){var t=this.domNode.cloneNode(!1);return r.create(t)},t.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},t.prototype.deleteAt=function(t,e){var n=this.isolate(t,e);n.remove()},t.prototype.formatAt=function(t,e,n,i){var o=this.isolate(t,e);if(null!=r.query(n,r.Scope.BLOT)&&i)o.wrap(n,i);else if(null!=r.query(n,r.Scope.ATTRIBUTE)){var a=r.create(this.statics.scope);o.wrap(a),a.format(n,i)}},t.prototype.insertAt=function(t,e,n){var i=null==n?r.create("text",e):r.create(e,n),o=this.split(t);this.parent.insertBefore(i,o)},t.prototype.insertInto=function(t,e){void 0===e&&(e=null),null!=this.parent&&this.parent.children.remove(this);var n=null;t.children.insertBefore(this,e),null!=e&&(n=e.domNode),this.domNode.parentNode==t.domNode&&this.domNode.nextSibling==n||t.domNode.insertBefore(this.domNode,n),this.parent=t,this.attach()},t.prototype.isolate=function(t,e){var n=this.split(t);return n.split(e),n},t.prototype.length=function(){return 1},t.prototype.offset=function(t){return void 0===t&&(t=this.parent),null==this.parent||this==t?0:this.parent.children.offset(this)+this.parent.offset(t)},t.prototype.optimize=function(t){null!=this.domNode[r.DATA_KEY]&&delete this.domNode[r.DATA_KEY].mutations},t.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},t.prototype.replace=function(t){null!=t.parent&&(t.parent.insertBefore(this,t.next),t.remove())},t.prototype.replaceWith=function(t,e){var n="string"===typeof t?r.create(t,e):t;return n.replace(this),n},t.prototype.split=function(t,e){return 0===t?this:this.next},t.prototype.update=function(t,e){},t.prototype.wrap=function(t,e){var n="string"===typeof t?r.create(t,e):t;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},t.blotName="abstract",t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(12),i=n(32),o=n(33),a=n(1),s=function(){function t(t){this.attributes={},this.domNode=t,this.build()}return t.prototype.attribute=function(t,e){e?t.add(this.domNode,e)&&(null!=t.value(this.domNode)?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])},t.prototype.build=function(){var t=this;this.attributes={};var e=r.default.keys(this.domNode),n=i.default.keys(this.domNode),s=o.default.keys(this.domNode);e.concat(n).concat(s).forEach((function(e){var n=a.query(e,a.Scope.ATTRIBUTE);n instanceof r.default&&(t.attributes[n.attrName]=n)}))},t.prototype.copy=function(t){var e=this;Object.keys(this.attributes).forEach((function(n){var r=e.attributes[n].value(e.domNode);t.format(n,r)}))},t.prototype.move=function(t){var e=this;this.copy(t),Object.keys(this.attributes).forEach((function(t){e.attributes[t].remove(e.domNode)})),this.attributes={}},t.prototype.values=function(){var t=this;return Object.keys(this.attributes).reduce((function(e,n){return e[n]=t.attributes[n].value(t.domNode),e}),{})},t}();e.default=s},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(12);function o(t,e){var n=t.getAttribute("class")||"";return n.split(/\s+/).filter((function(t){return 0===t.indexOf(e+"-")}))}var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.keys=function(t){return(t.getAttribute("class")||"").split(/\s+/).map((function(t){return t.split("-").slice(0,-1).join("-")}))},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(this.remove(t),t.classList.add(this.keyName+"-"+e),!0)},e.prototype.remove=function(t){var e=o(t,this.keyName);e.forEach((function(e){t.classList.remove(e)})),0===t.classList.length&&t.removeAttribute("class")},e.prototype.value=function(t){var e=o(t,this.keyName)[0]||"",n=e.slice(this.keyName.length+1);return this.canAdd(t,n)?n:""},e}(i.default);e.default=a},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(12);function o(t){var e=t.split("-"),n=e.slice(1).map((function(t){return t[0].toUpperCase()+t.slice(1)})).join("");return e[0]+n}var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.keys=function(t){return(t.getAttribute("style")||"").split(";").map((function(t){var e=t.split(":");return e[0].trim()}))},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.style[o(this.keyName)]=e,!0)},e.prototype.remove=function(t){t.style[o(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")},e.prototype.value=function(t){var e=t.style[o(this.keyName)];return this.canAdd(t,e)?e:""},e}(i.default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=function(){function t(e,n){i(this,t),this.quill=e,this.options=n,this.modules={}}return r(t,[{key:"init",value:function(){var t=this;Object.keys(this.options.modules).forEach((function(e){null==t.modules[e]&&t.addModule(e)}))}},{key:"addModule",value:function(t){var e=this.quill.constructor.import("modules/"+t);return this.modules[t]=new e(this.quill,this.options.modules[t]||{}),this.modules[t]}}]),t}();o.DEFAULTS={modules:{}},o.themes={default:o},e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(0),a=u(o),s=n(7),l=u(s);function u(t){return t&&t.__esModule?t:{default:t}}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function f(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var d="\ufeff",p=function(t){function e(t){c(this,e);var n=h(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach((function(t){n.contentNode.appendChild(t)})),n.leftGuard=document.createTextNode(d),n.rightGuard=document.createTextNode(d),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return f(e,t),r(e,[{key:"index",value:function(t,n){return t===this.leftGuard?0:t===this.rightGuard?1:i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"index",this).call(this,t,n)}},{key:"restore",value:function(t){var e=void 0,n=void 0,r=t.data.split(d).join("");if(t===this.leftGuard)if(this.prev instanceof l.default){var i=this.prev.length();this.prev.insertAt(i,r),e={startNode:this.prev.domNode,startOffset:i+r.length}}else n=document.createTextNode(r),this.parent.insertBefore(a.default.create(n),this),e={startNode:n,startOffset:r.length};else t===this.rightGuard&&(this.next instanceof l.default?(this.next.insertAt(0,r),e={startNode:this.next.domNode,startOffset:r.length}):(n=document.createTextNode(r),this.parent.insertBefore(a.default.create(n),this.next),e={startNode:n,startOffset:r.length}));return t.data=d,e}},{key:"update",value:function(t,e){var n=this;t.forEach((function(t){if("characterData"===t.type&&(t.target===n.leftGuard||t.target===n.rightGuard)){var r=n.restore(t.target);r&&(e.range=r)}}))}}]),e}(a.default.Embed);e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlignStyle=e.AlignClass=e.AlignAttribute=void 0;var r=n(0),i=o(r);function o(t){return t&&t.__esModule?t:{default:t}}var a={scope:i.default.Scope.BLOCK,whitelist:["right","center","justify"]},s=new i.default.Attributor.Attribute("align","align",a),l=new i.default.Attributor.Class("align","ql-align",a),u=new i.default.Attributor.Style("align","text-align",a);e.AlignAttribute=s,e.AlignClass=l,e.AlignStyle=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BackgroundStyle=e.BackgroundClass=void 0;var r=n(0),i=a(r),o=n(26);function a(t){return t&&t.__esModule?t:{default:t}}var s=new i.default.Attributor.Class("background","ql-bg",{scope:i.default.Scope.INLINE}),l=new o.ColorAttributor("background","background-color",{scope:i.default.Scope.INLINE});e.BackgroundClass=s,e.BackgroundStyle=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DirectionStyle=e.DirectionClass=e.DirectionAttribute=void 0;var r=n(0),i=o(r);function o(t){return t&&t.__esModule?t:{default:t}}var a={scope:i.default.Scope.BLOCK,whitelist:["rtl"]},s=new i.default.Attributor.Attribute("direction","dir",a),l=new i.default.Attributor.Class("direction","ql-direction",a),u=new i.default.Attributor.Style("direction","direction",a);e.DirectionAttribute=s,e.DirectionClass=l,e.DirectionStyle=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FontClass=e.FontStyle=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(0),a=s(o);function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function c(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var h={scope:a.default.Scope.INLINE,whitelist:["serif","monospace"]},f=new a.default.Attributor.Class("font","ql-font",h),d=function(t){function e(){return l(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return c(e,t),r(e,[{key:"value",value:function(t){return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t).replace(/["']/g,"")}}]),e}(a.default.Attributor.Style),p=new d("font","font-family",h);e.FontStyle=p,e.FontClass=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SizeStyle=e.SizeClass=void 0;var r=n(0),i=o(r);function o(t){return t&&t.__esModule?t:{default:t}}var a=new i.default.Attributor.Class("size","ql-size",{scope:i.default.Scope.INLINE,whitelist:["small","large","huge"]}),s=new i.default.Attributor.Style("size","font-size",{scope:i.default.Scope.INLINE,whitelist:["10px","18px","32px"]});e.SizeClass=a,e.SizeStyle=s},function(t,e,n){"use strict";t.exports={align:{"":n(76),center:n(77),right:n(78),justify:n(79)},background:n(80),blockquote:n(81),bold:n(82),clean:n(83),code:n(58),"code-block":n(58),color:n(84),direction:{"":n(85),rtl:n(86)},float:{center:n(87),full:n(88),left:n(89),right:n(90)},formula:n(91),header:{1:n(92),2:n(93)},italic:n(94),image:n(95),indent:{"+1":n(96),"-1":n(97)},link:n(98),list:{ordered:n(99),bullet:n(100),check:n(101)},script:{sub:n(102),super:n(103)},strike:n(104),underline:n(105),video:n(106)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getLastChangeIndex=e.default=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=n(0),o=c(i),a=n(5),s=c(a),l=n(9),u=c(l);function c(t){return t&&t.__esModule?t:{default:t}}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function d(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var p=function(t){function e(t,n){h(this,e);var r=f(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.lastRecorded=0,r.ignoreChange=!1,r.clear(),r.quill.on(s.default.events.EDITOR_CHANGE,(function(t,e,n,i){t!==s.default.events.TEXT_CHANGE||r.ignoreChange||(r.options.userOnly&&i!==s.default.sources.USER?r.transform(e):r.record(e,n))})),r.quill.keyboard.addBinding({key:"Z",shortKey:!0},r.undo.bind(r)),r.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},r.redo.bind(r)),/Win/i.test(navigator.platform)&&r.quill.keyboard.addBinding({key:"Y",shortKey:!0},r.redo.bind(r)),r}return d(e,t),r(e,[{key:"change",value:function(t,e){if(0!==this.stack[t].length){var n=this.stack[t].pop();this.stack[e].push(n),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[t],s.default.sources.USER),this.ignoreChange=!1;var r=v(n[t]);this.quill.setSelection(r)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(t,e){if(0!==t.ops.length){this.stack.redo=[];var n=this.quill.getContents().diff(e),r=Date.now();if(this.lastRecorded+this.options.delay>r&&this.stack.undo.length>0){var i=this.stack.undo.pop();n=n.compose(i.undo),t=i.redo.compose(t)}else this.lastRecorded=r;this.stack.undo.push({redo:t,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(t){this.stack.undo.forEach((function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)})),this.stack.redo.forEach((function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),e}(u.default);function g(t){var e=t.ops[t.ops.length-1];return null!=e&&(null!=e.insert?"string"===typeof e.insert&&e.insert.endsWith("\n"):null!=e.attributes&&Object.keys(e.attributes).some((function(t){return null!=o.default.query(t,o.default.Scope.BLOCK)})))}function v(t){var e=t.reduce((function(t,e){return t+=e.delete||0,t}),0),n=t.length()-e;return g(t)&&(n-=1),n}p.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},e.default=p,e.getLastChangeIndex=v},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BaseTooltip=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(3),a=S(o),s=n(2),l=S(s),u=n(8),c=S(u),h=n(23),f=S(h),d=n(34),p=S(d),g=n(59),v=S(g),y=n(60),m=S(y),b=n(28),_=S(b),x=n(61),w=S(x);function S(t){return t&&t.__esModule?t:{default:t}}function O(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function C(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function k(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var A=[!1,"center","right","justify"],M=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],T=[!1,"serif","monospace"],I=["1","2","3",!1],E=["small",!1,"large","huge"],P=function(t){function e(t,n){O(this,e);var r=C(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n)),i=function e(n){if(!document.body.contains(t.root))return document.body.removeEventListener("click",e);null==r.tooltip||r.tooltip.root.contains(n.target)||document.activeElement===r.tooltip.textbox||r.quill.hasFocus()||r.tooltip.hide(),null!=r.pickers&&r.pickers.forEach((function(t){t.container.contains(n.target)||t.close()}))};return t.emitter.listenDOM("click",document.body,i),r}return k(e,t),r(e,[{key:"addModule",value:function(t){var n=i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"addModule",this).call(this,t);return"toolbar"===t&&this.extendToolbar(n),n}},{key:"buildButtons",value:function(t,e){t.forEach((function(t){var n=t.getAttribute("class")||"";n.split(/\s+/).forEach((function(n){if(n.startsWith("ql-")&&(n=n.slice("ql-".length),null!=e[n]))if("direction"===n)t.innerHTML=e[n][""]+e[n]["rtl"];else if("string"===typeof e[n])t.innerHTML=e[n];else{var r=t.value||"";null!=r&&e[n][r]&&(t.innerHTML=e[n][r])}}))}))}},{key:"buildPickers",value:function(t,e){var n=this;this.pickers=t.map((function(t){if(t.classList.contains("ql-align"))return null==t.querySelector("option")&&D(t,A),new m.default(t,e.align);if(t.classList.contains("ql-background")||t.classList.contains("ql-color")){var n=t.classList.contains("ql-background")?"background":"color";return null==t.querySelector("option")&&D(t,M,"background"===n?"#ffffff":"#000000"),new v.default(t,e[n])}return null==t.querySelector("option")&&(t.classList.contains("ql-font")?D(t,T):t.classList.contains("ql-header")?D(t,I):t.classList.contains("ql-size")&&D(t,E)),new _.default(t)}));var r=function(){n.pickers.forEach((function(t){t.update()}))};this.quill.on(c.default.events.EDITOR_CHANGE,r)}}]),e}(p.default);P.DEFAULTS=(0,a.default)(!0,{},p.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var t=this,e=this.container.querySelector("input.ql-image[type=file]");null==e&&(e=document.createElement("input"),e.setAttribute("type","file"),e.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),e.classList.add("ql-image"),e.addEventListener("change",(function(){if(null!=e.files&&null!=e.files[0]){var n=new FileReader;n.onload=function(n){var r=t.quill.getSelection(!0);t.quill.updateContents((new l.default).retain(r.index).delete(r.length).insert({image:n.target.result}),c.default.sources.USER),t.quill.setSelection(r.index+1,c.default.sources.SILENT),e.value=""},n.readAsDataURL(e.files[0])}})),this.container.appendChild(e)),e.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var j=function(t){function e(t,n){O(this,e);var r=C(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.textbox=r.root.querySelector('input[type="text"]'),r.listen(),r}return k(e,t),r(e,[{key:"listen",value:function(){var t=this;this.textbox.addEventListener("keydown",(function(e){f.default.match(e,"enter")?(t.save(),e.preventDefault()):f.default.match(e,"escape")&&(t.cancel(),e.preventDefault())}))}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=e?this.textbox.value=e:t!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+t)||""),this.root.setAttribute("data-mode",t)}},{key:"restoreFocus",value:function(){var t=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=t}},{key:"save",value:function(){var t=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var e=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",t,c.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",t,c.default.sources.USER)),this.quill.root.scrollTop=e;break;case"video":t=L(t);case"formula":if(!t)break;var n=this.quill.getSelection(!0);if(null!=n){var r=n.index+n.length;this.quill.insertEmbed(r,this.root.getAttribute("data-mode"),t,c.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(r+1," ",c.default.sources.USER),this.quill.setSelection(r+2,c.default.sources.USER)}break;default:}this.textbox.value="",this.hide()}}]),e}(w.default);function L(t){var e=t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return e?(e[1]||"https")+"://www.youtube.com/embed/"+e[2]+"?showinfo=0":(e=t.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(e[1]||"https")+"://player.vimeo.com/video/"+e[2]+"/":t}function D(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e.forEach((function(e){var r=document.createElement("option");e===n?r.setAttribute("selected","selected"):r.setAttribute("value",e),t.appendChild(r)}))}e.BaseTooltip=j,e.default=P},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){this.head=this.tail=null,this.length=0}return t.prototype.append=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.insertBefore(t[0],null),t.length>1&&this.append.apply(this,t.slice(1))},t.prototype.contains=function(t){var e,n=this.iterator();while(e=n())if(e===t)return!0;return!1},t.prototype.insertBefore=function(t,e){t&&(t.next=e,null!=e?(t.prev=e.prev,null!=e.prev&&(e.prev.next=t),e.prev=t,e===this.head&&(this.head=t)):null!=this.tail?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)},t.prototype.offset=function(t){var e=0,n=this.head;while(null!=n){if(n===t)return e;e+=n.length(),n=n.next}return-1},t.prototype.remove=function(t){this.contains(t)&&(null!=t.prev&&(t.prev.next=t.next),null!=t.next&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)},t.prototype.iterator=function(t){return void 0===t&&(t=this.head),function(){var e=t;return null!=t&&(t=t.next),e}},t.prototype.find=function(t,e){void 0===e&&(e=!1);var n,r=this.iterator();while(n=r()){var i=n.length();if(t<i||e&&t===i&&(null==n.next||0!==n.next.length()))return[n,t];t-=i}return[null,0]},t.prototype.forEach=function(t){var e,n=this.iterator();while(e=n())t(e)},t.prototype.forEachAt=function(t,e,n){if(!(e<=0)){var r,i=this.find(t),o=i[0],a=i[1],s=t-a,l=this.iterator(o);while((r=l())&&s<t+e){var u=r.length();t>s?n(r,t-s,Math.min(e,s+u-t)):n(r,0,Math.min(u,t+e-s)),s+=u}}},t.prototype.map=function(t){return this.reduce((function(e,n){return e.push(t(n)),e}),[])},t.prototype.reduce=function(t,e){var n,r=this.iterator();while(n=r())e=t(e,n);return e},t}();e.default=r},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(17),o=n(1),a={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},s=100,l=function(t){function e(e){var n=t.call(this,e)||this;return n.scroll=n,n.observer=new MutationObserver((function(t){n.update(t)})),n.observer.observe(n.domNode,a),n.attach(),n}return r(e,t),e.prototype.detach=function(){t.prototype.detach.call(this),this.observer.disconnect()},e.prototype.deleteAt=function(e,n){this.update(),0===e&&n===this.length()?this.children.forEach((function(t){t.remove()})):t.prototype.deleteAt.call(this,e,n)},e.prototype.formatAt=function(e,n,r,i){this.update(),t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.insertAt=function(e,n,r){this.update(),t.prototype.insertAt.call(this,e,n,r)},e.prototype.optimize=function(e,n){var r=this;void 0===e&&(e=[]),void 0===n&&(n={}),t.prototype.optimize.call(this,n);var a=[].slice.call(this.observer.takeRecords());while(a.length>0)e.push(a.pop());for(var l=function(t,e){void 0===e&&(e=!0),null!=t&&t!==r&&null!=t.domNode.parentNode&&(null==t.domNode[o.DATA_KEY].mutations&&(t.domNode[o.DATA_KEY].mutations=[]),e&&l(t.parent))},u=function(t){null!=t.domNode[o.DATA_KEY]&&null!=t.domNode[o.DATA_KEY].mutations&&(t instanceof i.default&&t.children.forEach(u),t.optimize(n))},c=e,h=0;c.length>0;h+=1){if(h>=s)throw new Error("[Parchment] Maximum optimize iterations reached");c.forEach((function(t){var e=o.find(t.target,!0);null!=e&&(e.domNode===t.target&&("childList"===t.type?(l(o.find(t.previousSibling,!1)),[].forEach.call(t.addedNodes,(function(t){var e=o.find(t,!1);l(e,!1),e instanceof i.default&&e.children.forEach((function(t){l(t,!1)}))}))):"attributes"===t.type&&l(e.prev)),l(e))})),this.children.forEach(u),c=[].slice.call(this.observer.takeRecords()),a=c.slice();while(a.length>0)e.push(a.pop())}},e.prototype.update=function(e,n){var r=this;void 0===n&&(n={}),e=e||this.observer.takeRecords(),e.map((function(t){var e=o.find(t.target,!0);return null==e?null:null==e.domNode[o.DATA_KEY].mutations?(e.domNode[o.DATA_KEY].mutations=[t],e):(e.domNode[o.DATA_KEY].mutations.push(t),null)})).forEach((function(t){null!=t&&t!==r&&null!=t.domNode[o.DATA_KEY]&&t.update(t.domNode[o.DATA_KEY].mutations||[],n)})),null!=this.domNode[o.DATA_KEY].mutations&&t.prototype.update.call(this,this.domNode[o.DATA_KEY].mutations,n),this.optimize(e,n)},e.blotName="scroll",e.defaultChild="block",e.scope=o.Scope.BLOCK_BLOT,e.tagName="DIV",e}(i.default);e.default=l},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(18),o=n(1);function a(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(var n in t)if(t[n]!==e[n])return!1;return!0}var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.formats=function(n){if(n.tagName!==e.tagName)return t.formats.call(this,n)},e.prototype.format=function(n,r){var o=this;n!==this.statics.blotName||r?t.prototype.format.call(this,n,r):(this.children.forEach((function(t){t instanceof i.default||(t=t.wrap(e.blotName,!0)),o.attributes.copy(t)})),this.unwrap())},e.prototype.formatAt=function(e,n,r,i){if(null!=this.formats()[r]||o.query(r,o.Scope.ATTRIBUTE)){var a=this.isolate(e,n);a.format(r,i)}else t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n);var r=this.formats();if(0===Object.keys(r).length)return this.unwrap();var i=this.next;i instanceof e&&i.prev===this&&a(r,i.formats())&&(i.moveChildren(this),i.remove())},e.blotName="inline",e.scope=o.Scope.INLINE_BLOT,e.tagName="SPAN",e}(i.default);e.default=s},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(18),o=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.formats=function(n){var r=o.query(e.blotName).tagName;if(n.tagName!==r)return t.formats.call(this,n)},e.prototype.format=function(n,r){null!=o.query(n,o.Scope.BLOCK)&&(n!==this.statics.blotName||r?t.prototype.format.call(this,n,r):this.replaceWith(e.blotName))},e.prototype.formatAt=function(e,n,r,i){null!=o.query(r,o.Scope.BLOCK)?this.format(r,i):t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.insertAt=function(e,n,r){if(null==r||null!=o.query(n,o.Scope.INLINE))t.prototype.insertAt.call(this,e,n,r);else{var i=this.split(e),a=o.create(n,r);i.parent.insertBefore(a,i)}},e.prototype.update=function(e,n){navigator.userAgent.match(/Trident/)?this.build():t.prototype.update.call(this,e,n)},e.blotName="block",e.scope=o.Scope.BLOCK_BLOT,e.tagName="P",e}(i.default);e.default=a},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(19),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.formats=function(t){},e.prototype.format=function(e,n){t.prototype.formatAt.call(this,0,this.length(),e,n)},e.prototype.formatAt=function(e,n,r,i){0===e&&n===this.length()?this.format(r,i):t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.formats=function(){return this.statics.formats(this.domNode)},e}(i.default);e.default=o},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(19),o=n(1),a=function(t){function e(e){var n=t.call(this,e)||this;return n.text=n.statics.value(n.domNode),n}return r(e,t),e.create=function(t){return document.createTextNode(t)},e.value=function(t){var e=t.data;return e["normalize"]&&(e=e["normalize"]()),e},e.prototype.deleteAt=function(t,e){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+e)},e.prototype.index=function(t,e){return this.domNode===t?e:-1},e.prototype.insertAt=function(e,n,r){null==r?(this.text=this.text.slice(0,e)+n+this.text.slice(e),this.domNode.data=this.text):t.prototype.insertAt.call(this,e,n,r)},e.prototype.length=function(){return this.text.length},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof e&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},e.prototype.position=function(t,e){return void 0===e&&(e=!1),[this.domNode,t]},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var n=o.create(this.domNode.splitText(t));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},e.prototype.update=function(t,e){var n=this;t.some((function(t){return"characterData"===t.type&&t.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},e.prototype.value=function(){return this.text},e.blotName="text",e.scope=o.Scope.INLINE_BLOT,e}(i.default);e.default=a},function(t,e,n){"use strict";var r=document.createElement("div");if(r.classList.toggle("test-class",!1),r.classList.contains("test-class")){var i=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return arguments.length>1&&!this.contains(t)===!e?e:i.call(this,t)}}String.prototype.startsWith||(String.prototype.startsWith=function(t,e){return e=e||0,this.substr(e,t.length)===t}),String.prototype.endsWith||(String.prototype.endsWith=function(t,e){var n=this.toString();("number"!==typeof e||!isFinite(e)||Math.floor(e)!==e||e>n.length)&&(e=n.length),e-=t.length;var r=n.indexOf(t,e);return-1!==r&&r===e}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!==typeof t)throw new TypeError("predicate must be a function");for(var e,n=Object(this),r=n.length>>>0,i=arguments[1],o=0;o<r;o++)if(e=n[o],t.call(i,e,o,n))return e}}),document.addEventListener("DOMContentLoaded",(function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)}))},function(t,e){var n=-1,r=1,i=0;function o(t,e,n){if(t==e)return t?[[i,t]]:[];(n<0||t.length<n)&&(n=null);var r=u(t,e),o=t.substring(0,r);t=t.substring(r),e=e.substring(r),r=c(t,e);var s=t.substring(t.length-r);t=t.substring(0,t.length-r),e=e.substring(0,e.length-r);var l=a(t,e);return o&&l.unshift([i,o]),s&&l.push([i,s]),f(l),null!=n&&(l=g(l,n)),l=v(l),l}function a(t,e){var a;if(!t)return[[r,e]];if(!e)return[[n,t]];var l=t.length>e.length?t:e,u=t.length>e.length?e:t,c=l.indexOf(u);if(-1!=c)return a=[[r,l.substring(0,c)],[i,u],[r,l.substring(c+u.length)]],t.length>e.length&&(a[0][0]=a[2][0]=n),a;if(1==u.length)return[[n,t],[r,e]];var f=h(t,e);if(f){var d=f[0],p=f[1],g=f[2],v=f[3],y=f[4],m=o(d,g),b=o(p,v);return m.concat([[i,y]],b)}return s(t,e)}function s(t,e){for(var i=t.length,o=e.length,a=Math.ceil((i+o)/2),s=a,u=2*a,c=new Array(u),h=new Array(u),f=0;f<u;f++)c[f]=-1,h[f]=-1;c[s+1]=0,h[s+1]=0;for(var d=i-o,p=d%2!=0,g=0,v=0,y=0,m=0,b=0;b<a;b++){for(var _=-b+g;_<=b-v;_+=2){var x=s+_;A=_==-b||_!=b&&c[x-1]<c[x+1]?c[x+1]:c[x-1]+1;var w=A-_;while(A<i&&w<o&&t.charAt(A)==e.charAt(w))A++,w++;if(c[x]=A,A>i)v+=2;else if(w>o)g+=2;else if(p){var S=s+d-_;if(S>=0&&S<u&&-1!=h[S]){var O=i-h[S];if(A>=O)return l(t,e,A,w)}}}for(var C=-b+y;C<=b-m;C+=2){S=s+C;O=C==-b||C!=b&&h[S-1]<h[S+1]?h[S+1]:h[S-1]+1;var k=O-C;while(O<i&&k<o&&t.charAt(i-O-1)==e.charAt(o-k-1))O++,k++;if(h[S]=O,O>i)m+=2;else if(k>o)y+=2;else if(!p){x=s+d-C;if(x>=0&&x<u&&-1!=c[x]){var A=c[x];w=s+A-x;if(O=i-O,A>=O)return l(t,e,A,w)}}}}return[[n,t],[r,e]]}function l(t,e,n,r){var i=t.substring(0,n),a=e.substring(0,r),s=t.substring(n),l=e.substring(r),u=o(i,a),c=o(s,l);return u.concat(c)}function u(t,e){if(!t||!e||t.charAt(0)!=e.charAt(0))return 0;var n=0,r=Math.min(t.length,e.length),i=r,o=0;while(n<i)t.substring(o,i)==e.substring(o,i)?(n=i,o=n):r=i,i=Math.floor((r-n)/2+n);return i}function c(t,e){if(!t||!e||t.charAt(t.length-1)!=e.charAt(e.length-1))return 0;var n=0,r=Math.min(t.length,e.length),i=r,o=0;while(n<i)t.substring(t.length-i,t.length-o)==e.substring(e.length-i,e.length-o)?(n=i,o=n):r=i,i=Math.floor((r-n)/2+n);return i}function h(t,e){var n=t.length>e.length?t:e,r=t.length>e.length?e:t;if(n.length<4||2*r.length<n.length)return null;function i(t,e,n){var r,i,o,a,s=t.substring(n,n+Math.floor(t.length/4)),l=-1,h="";while(-1!=(l=e.indexOf(s,l+1))){var f=u(t.substring(n),e.substring(l)),d=c(t.substring(0,n),e.substring(0,l));h.length<d+f&&(h=e.substring(l-d,l)+e.substring(l,l+f),r=t.substring(0,n-d),i=t.substring(n+f),o=e.substring(0,l-d),a=e.substring(l+f))}return 2*h.length>=t.length?[r,i,o,a,h]:null}var o,a,s,l,h,f=i(n,r,Math.ceil(n.length/4)),d=i(n,r,Math.ceil(n.length/2));if(!f&&!d)return null;o=d?f&&f[4].length>d[4].length?f:d:f,t.length>e.length?(a=o[0],s=o[1],l=o[2],h=o[3]):(l=o[0],h=o[1],a=o[2],s=o[3]);var p=o[4];return[a,s,l,h,p]}function f(t){t.push([i,""]);var e,o=0,a=0,s=0,l="",h="";while(o<t.length)switch(t[o][0]){case r:s++,h+=t[o][1],o++;break;case n:a++,l+=t[o][1],o++;break;case i:a+s>1?(0!==a&&0!==s&&(e=u(h,l),0!==e&&(o-a-s>0&&t[o-a-s-1][0]==i?t[o-a-s-1][1]+=h.substring(0,e):(t.splice(0,0,[i,h.substring(0,e)]),o++),h=h.substring(e),l=l.substring(e)),e=c(h,l),0!==e&&(t[o][1]=h.substring(h.length-e)+t[o][1],h=h.substring(0,h.length-e),l=l.substring(0,l.length-e))),0===a?t.splice(o-s,a+s,[r,h]):0===s?t.splice(o-a,a+s,[n,l]):t.splice(o-a-s,a+s,[n,l],[r,h]),o=o-a-s+(a?1:0)+(s?1:0)+1):0!==o&&t[o-1][0]==i?(t[o-1][1]+=t[o][1],t.splice(o,1)):o++,s=0,a=0,l="",h="";break}""===t[t.length-1][1]&&t.pop();var d=!1;o=1;while(o<t.length-1)t[o-1][0]==i&&t[o+1][0]==i&&(t[o][1].substring(t[o][1].length-t[o-1][1].length)==t[o-1][1]?(t[o][1]=t[o-1][1]+t[o][1].substring(0,t[o][1].length-t[o-1][1].length),t[o+1][1]=t[o-1][1]+t[o+1][1],t.splice(o-1,1),d=!0):t[o][1].substring(0,t[o+1][1].length)==t[o+1][1]&&(t[o-1][1]+=t[o+1][1],t[o][1]=t[o][1].substring(t[o+1][1].length)+t[o+1][1],t.splice(o+1,1),d=!0)),o++;d&&f(t)}var d=o;function p(t,e){if(0===e)return[i,t];for(var r=0,o=0;o<t.length;o++){var a=t[o];if(a[0]===n||a[0]===i){var s=r+a[1].length;if(e===s)return[o+1,t];if(e<s){t=t.slice();var l=e-r,u=[a[0],a[1].slice(0,l)],c=[a[0],a[1].slice(l)];return t.splice(o,1,u,c),[o+1,t]}r=s}}throw new Error("cursor_pos is out of bounds!")}function g(t,e){var n=p(t,e),r=n[1],o=n[0],a=r[o],s=r[o+1];if(null==a)return t;if(a[0]!==i)return t;if(null!=s&&a[1]+s[1]===s[1]+a[1])return r.splice(o,2,s,a),y(r,o,2);if(null!=s&&0===s[1].indexOf(a[1])){r.splice(o,2,[s[0],a[1]],[0,a[1]]);var l=s[1].slice(a[1].length);return l.length>0&&r.splice(o+2,0,[s[0],l]),y(r,o,3)}return t}function v(t){for(var e=!1,o=function(t){return t.charCodeAt(0)>=56320&&t.charCodeAt(0)<=57343},a=function(t){return t.charCodeAt(t.length-1)>=55296&&t.charCodeAt(t.length-1)<=56319},s=2;s<t.length;s+=1)t[s-2][0]===i&&a(t[s-2][1])&&t[s-1][0]===n&&o(t[s-1][1])&&t[s][0]===r&&o(t[s][1])&&(e=!0,t[s-1][1]=t[s-2][1].slice(-1)+t[s-1][1],t[s][1]=t[s-2][1].slice(-1)+t[s][1],t[s-2][1]=t[s-2][1].slice(0,-1));if(!e)return t;var l=[];for(s=0;s<t.length;s+=1)t[s][1].length>0&&l.push(t[s]);return l}function y(t,e,n){for(var r=e+n-1;r>=0&&r>=e-1;r--)if(r+1<t.length){var i=t[r],o=t[r+1];i[0]===o[1]&&t.splice(r,2,[i[0],i[1]+o[1]])}return t}d.INSERT=r,d.DELETE=n,d.EQUAL=i,t.exports=d},function(t,e){function n(t){var e=[];for(var n in t)e.push(n);return e}e=t.exports="function"===typeof Object.keys?Object.keys:n,e.shim=n},function(t,e){var n="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function r(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function i(t){return t&&"object"==typeof t&&"number"==typeof t.length&&Object.prototype.hasOwnProperty.call(t,"callee")&&!Object.prototype.propertyIsEnumerable.call(t,"callee")||!1}e=t.exports=n?r:i,e.supported=r,e.unsupported=i},function(t,e){"use strict";var n=Object.prototype.hasOwnProperty,r="~";function i(){}function o(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function a(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(r=!1)),a.prototype.eventNames=function(){var t,e,i=[];if(0===this._eventsCount)return i;for(e in t=this._events)n.call(t,e)&&i.push(r?e.slice(1):e);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},a.prototype.listeners=function(t,e){var n=r?r+t:t,i=this._events[n];if(e)return!!i;if(!i)return[];if(i.fn)return[i.fn];for(var o=0,a=i.length,s=new Array(a);o<a;o++)s[o]=i[o].fn;return s},a.prototype.emit=function(t,e,n,i,o,a){var s=r?r+t:t;if(!this._events[s])return!1;var l,u,c=this._events[s],h=arguments.length;if(c.fn){switch(c.once&&this.removeListener(t,c.fn,void 0,!0),h){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,e),!0;case 3:return c.fn.call(c.context,e,n),!0;case 4:return c.fn.call(c.context,e,n,i),!0;case 5:return c.fn.call(c.context,e,n,i,o),!0;case 6:return c.fn.call(c.context,e,n,i,o,a),!0}for(u=1,l=new Array(h-1);u<h;u++)l[u-1]=arguments[u];c.fn.apply(c.context,l)}else{var f,d=c.length;for(u=0;u<d;u++)switch(c[u].once&&this.removeListener(t,c[u].fn,void 0,!0),h){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,e);break;case 3:c[u].fn.call(c[u].context,e,n);break;case 4:c[u].fn.call(c[u].context,e,n,i);break;default:if(!l)for(f=1,l=new Array(h-1);f<h;f++)l[f-1]=arguments[f];c[u].fn.apply(c[u].context,l)}}return!0},a.prototype.on=function(t,e,n){var i=new o(e,n||this),a=r?r+t:t;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],i]:this._events[a].push(i):(this._events[a]=i,this._eventsCount++),this},a.prototype.once=function(t,e,n){var i=new o(e,n||this,!0),a=r?r+t:t;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],i]:this._events[a].push(i):(this._events[a]=i,this._eventsCount++),this},a.prototype.removeListener=function(t,e,n,o){var a=r?r+t:t;if(!this._events[a])return this;if(!e)return 0===--this._eventsCount?this._events=new i:delete this._events[a],this;var s=this._events[a];if(s.fn)s.fn!==e||o&&!s.once||n&&s.context!==n||(0===--this._eventsCount?this._events=new i:delete this._events[a]);else{for(var l=0,u=[],c=s.length;l<c;l++)(s[l].fn!==e||o&&!s[l].once||n&&s[l].context!==n)&&u.push(s[l]);u.length?this._events[a]=1===u.length?u[0]:u:0===--this._eventsCount?this._events=new i:delete this._events[a]}return this},a.prototype.removeAllListeners=function(t){var e;return t?(e=r?r+t:t,this._events[e]&&(0===--this._eventsCount?this._events=new i:delete this._events[e])):(this._events=new i,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prototype.setMaxListeners=function(){return this},a.prefixed=r,a.EventEmitter=a,"undefined"!==typeof t&&(t.exports=a)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.matchText=e.matchSpacing=e.matchNewline=e.matchBlot=e.matchAttributor=e.default=void 0;var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(){function t(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),e&&n.length===e)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=n(3),s=k(a),l=n(2),u=k(l),c=n(0),h=k(c),f=n(5),d=k(f),p=n(10),g=k(p),v=n(9),y=k(v),m=n(36),b=n(37),_=n(13),x=k(_),w=n(26),S=n(38),O=n(39),C=n(40);function k(t){return t&&t.__esModule?t:{default:t}}function A(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function M(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function T(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function I(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var E=(0,g.default)("quill:clipboard"),P="__ql-matcher",j=[[Node.TEXT_NODE,Z],[Node.TEXT_NODE,Y],["br",W],[Node.ELEMENT_NODE,Y],[Node.ELEMENT_NODE,H],[Node.ELEMENT_NODE,X],[Node.ELEMENT_NODE,G],[Node.ELEMENT_NODE,K],["li",$],["b",q.bind(q,"bold")],["i",q.bind(q,"italic")],["style",U]],L=[m.AlignAttribute,S.DirectionAttribute].reduce((function(t,e){return t[e.keyName]=e,t}),{}),D=[m.AlignStyle,b.BackgroundStyle,w.ColorStyle,S.DirectionStyle,O.FontStyle,C.SizeStyle].reduce((function(t,e){return t[e.keyName]=e,t}),{}),R=function(t){function e(t,n){M(this,e);var r=T(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.root.addEventListener("paste",r.onPaste.bind(r)),r.container=r.quill.addContainer("ql-clipboard"),r.container.setAttribute("contenteditable",!0),r.container.setAttribute("tabindex",-1),r.matchers=[],j.concat(r.options.matchers).forEach((function(t){var e=i(t,2),o=e[0],a=e[1];(n.matchVisual||a!==X)&&r.addMatcher(o,a)})),r}return I(e,t),o(e,[{key:"addMatcher",value:function(t,e){this.matchers.push([t,e])}},{key:"convert",value:function(t){if("string"===typeof t)return this.container.innerHTML=t.replace(/\>\r?\n +\</g,"><"),this.convert();var e=this.quill.getFormat(this.quill.selection.savedRange.index);if(e[x.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new u.default).insert(n,A({},x.default.blotName,e[x.default.blotName]))}var r=this.prepareMatching(),o=i(r,2),a=o[0],s=o[1],l=V(this.container,a,s);return F(l,"\n")&&null==l.ops[l.ops.length-1].attributes&&(l=l.compose((new u.default).retain(l.length()-1).delete(1))),E.log("convert",this.container.innerHTML,l),this.container.innerHTML="",l}},{key:"dangerouslyPasteHTML",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d.default.sources.API;if("string"===typeof t)this.quill.setContents(this.convert(t),e),this.quill.setSelection(0,d.default.sources.SILENT);else{var r=this.convert(e);this.quill.updateContents((new u.default).retain(t).concat(r),n),this.quill.setSelection(t+r.length(),d.default.sources.SILENT)}}},{key:"onPaste",value:function(t){var e=this;if(!t.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),r=(new u.default).retain(n.index),i=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(d.default.sources.SILENT),setTimeout((function(){r=r.concat(e.convert()).delete(n.length),e.quill.updateContents(r,d.default.sources.USER),e.quill.setSelection(r.length()-n.length,d.default.sources.SILENT),e.quill.scrollingContainer.scrollTop=i,e.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var t=this,e=[],n=[];return this.matchers.forEach((function(r){var o=i(r,2),a=o[0],s=o[1];switch(a){case Node.TEXT_NODE:n.push(s);break;case Node.ELEMENT_NODE:e.push(s);break;default:[].forEach.call(t.container.querySelectorAll(a),(function(t){t[P]=t[P]||[],t[P].push(s)}));break}})),[e,n]}}]),e}(y.default);function N(t,e,n){return"object"===("undefined"===typeof e?"undefined":r(e))?Object.keys(e).reduce((function(t,n){return N(t,n,e[n])}),t):t.reduce((function(t,r){return r.attributes&&r.attributes[e]?t.push(r):t.insert(r.insert,(0,s.default)({},A({},e,n),r.attributes))}),new u.default)}function B(t){if(t.nodeType!==Node.ELEMENT_NODE)return{};var e="__ql-computed-style";return t[e]||(t[e]=window.getComputedStyle(t))}function F(t,e){for(var n="",r=t.ops.length-1;r>=0&&n.length<e.length;--r){var i=t.ops[r];if("string"!==typeof i.insert)break;n=i.insert+n}return n.slice(-1*e.length)===e}function z(t){if(0===t.childNodes.length)return!1;var e=B(t);return["block","list-item"].indexOf(e.display)>-1}function V(t,e,n){return t.nodeType===t.TEXT_NODE?n.reduce((function(e,n){return n(t,e)}),new u.default):t.nodeType===t.ELEMENT_NODE?[].reduce.call(t.childNodes||[],(function(r,i){var o=V(i,e,n);return i.nodeType===t.ELEMENT_NODE&&(o=e.reduce((function(t,e){return e(i,t)}),o),o=(i[P]||[]).reduce((function(t,e){return e(i,t)}),o)),r.concat(o)}),new u.default):new u.default}function q(t,e,n){return N(n,t,!0)}function G(t,e){var n=h.default.Attributor.Attribute.keys(t),r=h.default.Attributor.Class.keys(t),i=h.default.Attributor.Style.keys(t),o={};return n.concat(r).concat(i).forEach((function(e){var n=h.default.query(e,h.default.Scope.ATTRIBUTE);null!=n&&(o[n.attrName]=n.value(t),o[n.attrName])||(n=L[e],null==n||n.attrName!==e&&n.keyName!==e||(o[n.attrName]=n.value(t)||void 0),n=D[e],null==n||n.attrName!==e&&n.keyName!==e||(n=D[e],o[n.attrName]=n.value(t)||void 0))})),Object.keys(o).length>0&&(e=N(e,o)),e}function H(t,e){var n=h.default.query(t);if(null==n)return e;if(n.prototype instanceof h.default.Embed){var r={},i=n.value(t);null!=i&&(r[n.blotName]=i,e=(new u.default).insert(r,n.formats(t)))}else"function"===typeof n.formats&&(e=N(e,n.blotName,n.formats(t)));return e}function W(t,e){return F(e,"\n")||e.insert("\n"),e}function U(){return new u.default}function $(t,e){var n=h.default.query(t);if(null==n||"list-item"!==n.blotName||!F(e,"\n"))return e;var r=-1,i=t.parentNode;while(!i.classList.contains("ql-clipboard"))"list"===(h.default.query(i)||{}).blotName&&(r+=1),i=i.parentNode;return r<=0?e:e.compose((new u.default).retain(e.length()-1).retain(1,{indent:r}))}function Y(t,e){return F(e,"\n")||(z(t)||e.length()>0&&t.nextSibling&&z(t.nextSibling))&&e.insert("\n"),e}function X(t,e){if(z(t)&&null!=t.nextElementSibling&&!F(e,"\n\n")){var n=t.offsetHeight+parseFloat(B(t).marginTop)+parseFloat(B(t).marginBottom);t.nextElementSibling.offsetTop>t.offsetTop+1.5*n&&e.insert("\n")}return e}function K(t,e){var n={},r=t.style||{};return r.fontStyle&&"italic"===B(t).fontStyle&&(n.italic=!0),r.fontWeight&&(B(t).fontWeight.startsWith("bold")||parseInt(B(t).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(e=N(e,n)),parseFloat(r.textIndent||0)>0&&(e=(new u.default).insert("\t").concat(e)),e}function Z(t,e){var n=t.data;if("O:P"===t.parentNode.tagName)return e.insert(n.trim());if(0===n.trim().length&&t.parentNode.classList.contains("ql-clipboard"))return e;if(!B(t.parentNode).whiteSpace.startsWith("pre")){var r=function(t,e){return e=e.replace(/[^\u00a0]/g,""),e.length<1&&t?" ":e};n=n.replace(/\r\n/g," ").replace(/\n/g," "),n=n.replace(/\s\s+/g,r.bind(r,!0)),(null==t.previousSibling&&z(t.parentNode)||null!=t.previousSibling&&z(t.previousSibling))&&(n=n.replace(/^\s+/,r.bind(r,!1))),(null==t.nextSibling&&z(t.parentNode)||null!=t.nextSibling&&z(t.nextSibling))&&(n=n.replace(/\s+$/,r.bind(r,!1)))}return e.insert(n)}R.DEFAULTS={matchers:[],matchVisual:!0},e.default=R,e.matchAttributor=G,e.matchBlot=H,e.matchNewline=Y,e.matchSpacing=X,e.matchText=Z},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(6),a=s(o);function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function c(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var h=function(t){function e(){return l(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return c(e,t),r(e,[{key:"optimize",value:function(t){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return i(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),e}(a.default);h.blotName="bold",h.tagName=["STRONG","B"],e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.addControls=e.default=void 0;var r=function(){function t(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),e&&n.length===e)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=n(2),a=g(o),s=n(0),l=g(s),u=n(5),c=g(u),h=n(10),f=g(h),d=n(9),p=g(d);function g(t){return t&&t.__esModule?t:{default:t}}function v(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function m(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function b(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var _=(0,f.default)("quill:toolbar"),x=function(t){function e(t,n){y(this,e);var i,o=m(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));if(Array.isArray(o.options.container)){var a=document.createElement("div");S(a,o.options.container),t.container.parentNode.insertBefore(a,t.container),o.container=a}else"string"===typeof o.options.container?o.container=document.querySelector(o.options.container):o.container=o.options.container;return o.container instanceof HTMLElement?(o.container.classList.add("ql-toolbar"),o.controls=[],o.handlers={},Object.keys(o.options.handlers).forEach((function(t){o.addHandler(t,o.options.handlers[t])})),[].forEach.call(o.container.querySelectorAll("button, select"),(function(t){o.attach(t)})),o.quill.on(c.default.events.EDITOR_CHANGE,(function(t,e){t===c.default.events.SELECTION_CHANGE&&o.update(e)})),o.quill.on(c.default.events.SCROLL_OPTIMIZE,(function(){var t=o.quill.selection.getRange(),e=r(t,1),n=e[0];o.update(n)})),o):(i=_.error("Container required for toolbar",o.options),m(o,i))}return b(e,t),i(e,[{key:"addHandler",value:function(t,e){this.handlers[t]=e}},{key:"attach",value:function(t){var e=this,n=[].find.call(t.classList,(function(t){return 0===t.indexOf("ql-")}));if(n){if(n=n.slice("ql-".length),"BUTTON"===t.tagName&&t.setAttribute("type","button"),null==this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n])return void _.warn("ignoring attaching to disabled format",n,t);if(null==l.default.query(n))return void _.warn("ignoring attaching to nonexistent format",n,t)}var i="SELECT"===t.tagName?"change":"click";t.addEventListener(i,(function(i){var o=void 0;if("SELECT"===t.tagName){if(t.selectedIndex<0)return;var s=t.options[t.selectedIndex];o=!s.hasAttribute("selected")&&(s.value||!1)}else o=!t.classList.contains("ql-active")&&(t.value||!t.hasAttribute("value")),i.preventDefault();e.quill.focus();var u=e.quill.selection.getRange(),h=r(u,1),f=h[0];if(null!=e.handlers[n])e.handlers[n].call(e,o);else if(l.default.query(n).prototype instanceof l.default.Embed){if(o=prompt("Enter "+n),!o)return;e.quill.updateContents((new a.default).retain(f.index).delete(f.length).insert(v({},n,o)),c.default.sources.USER)}else e.quill.format(n,o,c.default.sources.USER);e.update(f)})),this.controls.push([n,t])}}},{key:"update",value:function(t){var e=null==t?{}:this.quill.getFormat(t);this.controls.forEach((function(n){var i=r(n,2),o=i[0],a=i[1];if("SELECT"===a.tagName){var s=void 0;if(null==t)s=null;else if(null==e[o])s=a.querySelector("option[selected]");else if(!Array.isArray(e[o])){var l=e[o];"string"===typeof l&&(l=l.replace(/\"/g,'\\"')),s=a.querySelector('option[value="'+l+'"]')}null==s?(a.value="",a.selectedIndex=-1):s.selected=!0}else if(null==t)a.classList.remove("ql-active");else if(a.hasAttribute("value")){var u=e[o]===a.getAttribute("value")||null!=e[o]&&e[o].toString()===a.getAttribute("value")||null==e[o]&&!a.getAttribute("value");a.classList.toggle("ql-active",u)}else a.classList.toggle("ql-active",null!=e[o])}))}}]),e}(p.default);function w(t,e,n){var r=document.createElement("button");r.setAttribute("type","button"),r.classList.add("ql-"+e),null!=n&&(r.value=n),t.appendChild(r)}function S(t,e){Array.isArray(e[0])||(e=[e]),e.forEach((function(e){var n=document.createElement("span");n.classList.add("ql-formats"),e.forEach((function(t){if("string"===typeof t)w(n,t);else{var e=Object.keys(t)[0],r=t[e];Array.isArray(r)?O(n,e,r):w(n,e,r)}})),t.appendChild(n)}))}function O(t,e,n){var r=document.createElement("select");r.classList.add("ql-"+e),n.forEach((function(t){var e=document.createElement("option");!1!==t?e.setAttribute("value",t):e.setAttribute("selected","selected"),r.appendChild(e)})),t.appendChild(r)}x.DEFAULTS={},x.DEFAULTS={container:null,handlers:{clean:function(){var t=this,e=this.quill.getSelection();if(null!=e)if(0==e.length){var n=this.quill.getFormat();Object.keys(n).forEach((function(e){null!=l.default.query(e,l.default.Scope.INLINE)&&t.quill.format(e,!1)}))}else this.quill.removeFormat(e,c.default.sources.USER)},direction:function(t){var e=this.quill.getFormat()["align"];"rtl"===t&&null==e?this.quill.format("align","right",c.default.sources.USER):t||"right"!==e||this.quill.format("align",!1,c.default.sources.USER),this.quill.format("direction",t,c.default.sources.USER)},indent:function(t){var e=this.quill.getSelection(),n=this.quill.getFormat(e),r=parseInt(n.indent||0);if("+1"===t||"-1"===t){var i="+1"===t?1:-1;"rtl"===n.direction&&(i*=-1),this.quill.format("indent",r+i,c.default.sources.USER)}},link:function(t){!0===t&&(t=prompt("Enter link URL:")),this.quill.format("link",t,c.default.sources.USER)},list:function(t){var e=this.quill.getSelection(),n=this.quill.getFormat(e);"check"===t?"checked"===n["list"]||"unchecked"===n["list"]?this.quill.format("list",!1,c.default.sources.USER):this.quill.format("list","unchecked",c.default.sources.USER):this.quill.format("list",t,c.default.sources.USER)}}},e.default=x,e.addControls=S},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(28),a=s(o);function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function c(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var h=function(t){function e(t,n){l(this,e);var r=u(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.label.innerHTML=n,r.container.classList.add("ql-color-picker"),[].slice.call(r.container.querySelectorAll(".ql-picker-item"),0,7).forEach((function(t){t.classList.add("ql-primary")})),r}return c(e,t),r(e,[{key:"buildItem",value:function(t){var n=i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"buildItem",this).call(this,t);return n.style.backgroundColor=t.getAttribute("value")||"",n}},{key:"selectItem",value:function(t,n){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"selectItem",this).call(this,t,n);var r=this.label.querySelector(".ql-color-label"),o=t&&t.getAttribute("data-value")||"";r&&("line"===r.tagName?r.style.stroke=o:r.style.fill=o)}}]),e}(a.default);e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(28),a=s(o);function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function c(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var h=function(t){function e(t,n){l(this,e);var r=u(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.container.classList.add("ql-icon-picker"),[].forEach.call(r.container.querySelectorAll(".ql-picker-item"),(function(t){t.innerHTML=n[t.getAttribute("data-value")||""]})),r.defaultItem=r.container.querySelector(".ql-selected"),r.selectItem(r.defaultItem),r}return c(e,t),r(e,[{key:"selectItem",value:function(t,n){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"selectItem",this).call(this,t,n),t=t||this.defaultItem,this.label.innerHTML=t.innerHTML}}]),e}(a.default);e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=function(){function t(e,n){var r=this;i(this,t),this.quill=e,this.boundsContainer=n||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",(function(){r.root.style.marginTop=-1*r.quill.root.scrollTop+"px"})),this.hide()}return r(t,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(t){var e=t.left+t.width/2-this.root.offsetWidth/2,n=t.bottom+this.quill.root.scrollTop;this.root.style.left=e+"px",this.root.style.top=n+"px",this.root.classList.remove("ql-flip");var r=this.boundsContainer.getBoundingClientRect(),i=this.root.getBoundingClientRect(),o=0;if(i.right>r.right&&(o=r.right-i.right,this.root.style.left=e+o+"px"),i.left<r.left&&(o=r.left-i.left,this.root.style.left=e+o+"px"),i.bottom>r.bottom){var a=i.bottom-i.top,s=t.bottom-t.top+a;this.root.style.top=n-s+"px",this.root.classList.add("ql-flip")}return o}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),e&&n.length===e)break}catch(l){i=!0,o=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=n(3),s=y(a),l=n(8),u=y(l),c=n(43),h=y(c),f=n(27),d=y(f),p=n(15),g=n(41),v=y(g);function y(t){return t&&t.__esModule?t:{default:t}}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function b(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function _(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var x=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],w=function(t){function e(t,n){m(this,e),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=x);var r=b(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.container.classList.add("ql-snow"),r}return _(e,t),o(e,[{key:"extendToolbar",value:function(t){t.container.classList.add("ql-snow"),this.buildButtons([].slice.call(t.container.querySelectorAll("button")),v.default),this.buildPickers([].slice.call(t.container.querySelectorAll("select")),v.default),this.tooltip=new S(this.quill,this.options.bounds),t.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},(function(e,n){t.handlers["link"].call(t,!n.format.link)}))}}]),e}(h.default);w.DEFAULTS=(0,s.default)(!0,{},h.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(t){if(t){var e=this.quill.getSelection();if(null==e||0==e.length)return;var n=this.quill.getText(e);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:"+n);var r=this.quill.theme.tooltip;r.edit("link",n)}else this.quill.format("link",!1)}}}}});var S=function(t){function e(t,n){m(this,e);var r=b(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.preview=r.root.querySelector("a.ql-preview"),r}return _(e,t),o(e,[{key:"listen",value:function(){var t=this;i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",(function(e){t.root.classList.contains("ql-editing")?t.save():t.edit("link",t.preview.textContent),e.preventDefault()})),this.root.querySelector("a.ql-remove").addEventListener("click",(function(e){if(null!=t.linkRange){var n=t.linkRange;t.restoreFocus(),t.quill.formatText(n,"link",!1,u.default.sources.USER),delete t.linkRange}e.preventDefault(),t.hide()})),this.quill.on(u.default.events.SELECTION_CHANGE,(function(e,n,i){if(null!=e){if(0===e.length&&i===u.default.sources.USER){var o=t.quill.scroll.descendant(d.default,e.index),a=r(o,2),s=a[0],l=a[1];if(null!=s){t.linkRange=new p.Range(e.index-l,s.length());var c=d.default.formats(s.domNode);return t.preview.textContent=c,t.preview.setAttribute("href",c),t.show(),void t.position(t.quill.getBounds(t.linkRange))}}else delete t.linkRange;t.hide()}}))}},{key:"show",value:function(){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),e}(c.BaseTooltip);S.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),e.default=w},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(29),i=nt(r),o=n(36),a=n(38),s=n(64),l=n(65),u=nt(l),c=n(66),h=nt(c),f=n(67),d=nt(f),p=n(37),g=n(26),v=n(39),y=n(40),m=n(56),b=nt(m),_=n(68),x=nt(_),w=n(27),S=nt(w),O=n(69),C=nt(O),k=n(70),A=nt(k),M=n(71),T=nt(M),I=n(72),E=nt(I),P=n(73),j=nt(P),L=n(13),D=nt(L),R=n(74),N=nt(R),B=n(75),F=nt(B),z=n(57),V=nt(z),q=n(41),G=nt(q),H=n(28),W=nt(H),U=n(59),$=nt(U),Y=n(60),X=nt(Y),K=n(61),Z=nt(K),Q=n(108),J=nt(Q),tt=n(62),et=nt(tt);function nt(t){return t&&t.__esModule?t:{default:t}}i.default.register({"attributors/attribute/direction":a.DirectionAttribute,"attributors/class/align":o.AlignClass,"attributors/class/background":p.BackgroundClass,"attributors/class/color":g.ColorClass,"attributors/class/direction":a.DirectionClass,"attributors/class/font":v.FontClass,"attributors/class/size":y.SizeClass,"attributors/style/align":o.AlignStyle,"attributors/style/background":p.BackgroundStyle,"attributors/style/color":g.ColorStyle,"attributors/style/direction":a.DirectionStyle,"attributors/style/font":v.FontStyle,"attributors/style/size":y.SizeStyle},!0),i.default.register({"formats/align":o.AlignClass,"formats/direction":a.DirectionClass,"formats/indent":s.IndentClass,"formats/background":p.BackgroundStyle,"formats/color":g.ColorStyle,"formats/font":v.FontClass,"formats/size":y.SizeClass,"formats/blockquote":u.default,"formats/code-block":D.default,"formats/header":h.default,"formats/list":d.default,"formats/bold":b.default,"formats/code":L.Code,"formats/italic":x.default,"formats/link":S.default,"formats/script":C.default,"formats/strike":A.default,"formats/underline":T.default,"formats/image":E.default,"formats/video":j.default,"formats/list/item":f.ListItem,"modules/formula":N.default,"modules/syntax":F.default,"modules/toolbar":V.default,"themes/bubble":J.default,"themes/snow":et.default,"ui/icons":G.default,"ui/picker":W.default,"ui/icon-picker":X.default,"ui/color-picker":$.default,"ui/tooltip":Z.default},!0),e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IndentClass=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(0),a=s(o);function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function c(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var h=function(t){function e(){return l(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return c(e,t),r(e,[{key:"add",value:function(t,n){if("+1"===n||"-1"===n){var r=this.value(t)||0;n="+1"===n?r+1:r-1}return 0===n?(this.remove(t),!0):i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"add",this).call(this,t,n)}},{key:"canAdd",value:function(t,n){return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,t,n)||i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,t,parseInt(n))}},{key:"value",value:function(t){return parseInt(i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t))||void 0}}]),e}(a.default.Attributor.Class),f=new h("indent","ql-indent",{scope:a.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});e.IndentClass=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(4),i=o(r);function o(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function l(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=function(t){function e(){return a(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),e}(i.default);u.blotName="blockquote",u.tagName="blockquote",e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=n(4),o=a(i);function a(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function u(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var c=function(t){function e(){return s(this,e),l(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return u(e,t),r(e,null,[{key:"formats",value:function(t){return this.tagName.indexOf(t.tagName)+1}}]),e}(o.default);c.blotName="header",c.tagName=["H1","H2","H3","H4","H5","H6"],e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ListItem=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(0),a=h(o),s=n(4),l=h(s),u=n(25),c=h(u);function h(t){return t&&t.__esModule?t:{default:t}}function f(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function g(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var v=function(t){function e(){return d(this,e),p(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return g(e,t),r(e,[{key:"format",value:function(t,n){t!==y.blotName||n?i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n):this.replaceWith(a.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(t,n){return this.parent.isolate(this.offset(this.parent),this.length()),t===this.parent.statics.blotName?(this.parent.replaceWith(t,n),this):(this.parent.unwrap(),i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replaceWith",this).call(this,t,n))}}],[{key:"formats",value:function(t){return t.tagName===this.tagName?void 0:i(e.__proto__||Object.getPrototypeOf(e),"formats",this).call(this,t)}}]),e}(l.default);v.blotName="list-item",v.tagName="LI";var y=function(t){function e(t){d(this,e);var n=p(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t)),r=function(e){if(e.target.parentNode===t){var r=n.statics.formats(t),i=a.default.find(e.target);"checked"===r?i.format("list","unchecked"):"unchecked"===r&&i.format("list","checked")}};return t.addEventListener("touchstart",r),t.addEventListener("mousedown",r),n}return g(e,t),r(e,null,[{key:"create",value:function(t){var n="ordered"===t?"OL":"UL",r=i(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,n);return"checked"!==t&&"unchecked"!==t||r.setAttribute("data-checked","checked"===t),r}},{key:"formats",value:function(t){return"OL"===t.tagName?"ordered":"UL"===t.tagName?t.hasAttribute("data-checked")?"true"===t.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),r(e,[{key:"format",value:function(t,e){this.children.length>0&&this.children.tail.format(t,e)}},{key:"formats",value:function(){return f({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(t,n){if(t instanceof v)i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n);else{var r=null==n?this.length():n.offset(this),o=this.split(r);o.parent.insertBefore(t,o)}}},{key:"optimize",value:function(t){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(t){if(t.statics.blotName!==this.statics.blotName){var n=a.default.create(this.statics.defaultChild);t.moveChildren(n),this.appendChild(n)}i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t)}}]),e}(c.default);y.blotName="list",y.scope=a.default.Scope.BLOCK_BLOT,y.tagName=["OL","UL"],y.defaultChild="list-item",y.allowedChildren=[v],e.ListItem=v,e.default=y},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(56),i=o(r);function o(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function l(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=function(t){function e(){return a(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),e}(i.default);u.blotName="italic",u.tagName=["EM","I"],e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(6),a=s(o);function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function c(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var h=function(t){function e(){return l(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return c(e,t),r(e,null,[{key:"create",value:function(t){return"super"===t?document.createElement("sup"):"sub"===t?document.createElement("sub"):i(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t)}},{key:"formats",value:function(t){return"SUB"===t.tagName?"sub":"SUP"===t.tagName?"super":void 0}}]),e}(a.default);h.blotName="script",h.tagName=["SUB","SUP"],e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(6),i=o(r);function o(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function l(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=function(t){function e(){return a(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),e}(i.default);u.blotName="strike",u.tagName="S",e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(6),i=o(r);function o(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function l(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=function(t){function e(){return a(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),e}(i.default);u.blotName="underline",u.tagName="U",e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(0),a=l(o),s=n(27);function l(t){return t&&t.__esModule?t:{default:t}}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function h(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var f=["alt","height","width"],d=function(t){function e(){return u(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return h(e,t),r(e,[{key:"format",value:function(t,n){f.indexOf(t)>-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=i(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return"string"===typeof t&&n.setAttribute("src",this.sanitize(t)),n}},{key:"formats",value:function(t){return f.reduce((function(e,n){return t.hasAttribute(n)&&(e[n]=t.getAttribute(n)),e}),{})}},{key:"match",value:function(t){return/\.(jpe?g|gif|png)$/.test(t)||/^data:image\/.+;base64/.test(t)}},{key:"sanitize",value:function(t){return(0,s.sanitize)(t,["http","https","data"])?t:"//:0"}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(a.default.Embed);d.blotName="image",d.tagName="IMG",e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(4),a=n(27),s=l(a);function l(t){return t&&t.__esModule?t:{default:t}}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function h(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var f=["height","width"],d=function(t){function e(){return u(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return h(e,t),r(e,[{key:"format",value:function(t,n){f.indexOf(t)>-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=i(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(t)),n}},{key:"formats",value:function(t){return f.reduce((function(e,n){return t.hasAttribute(n)&&(e[n]=t.getAttribute(n)),e}),{})}},{key:"sanitize",value:function(t){return s.default.sanitize(t)}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(o.BlockEmbed);d.blotName="video",d.className="ql-video",d.tagName="IFRAME",e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.FormulaBlot=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(35),a=h(o),s=n(5),l=h(s),u=n(9),c=h(u);function h(t){return t&&t.__esModule?t:{default:t}}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function p(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var g=function(t){function e(){return f(this,e),d(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return p(e,t),r(e,null,[{key:"create",value:function(t){var n=i(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return"string"===typeof t&&(window.katex.render(t,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",t)),n}},{key:"value",value:function(t){return t.getAttribute("data-value")}}]),e}(a.default);g.blotName="formula",g.className="ql-formula",g.tagName="SPAN";var v=function(t){function e(){f(this,e);var t=d(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return t}return p(e,t),r(e,null,[{key:"register",value:function(){l.default.register(g,!0)}}]),e}(c.default);e.FormulaBlot=g,e.default=v},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.CodeToken=e.CodeBlock=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=n(0),a=d(o),s=n(5),l=d(s),u=n(9),c=d(u),h=n(13),f=d(h);function d(t){return t&&t.__esModule?t:{default:t}}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function v(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var y=function(t){function e(){return p(this,e),g(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return v(e,t),r(e,[{key:"replaceWith",value:function(t){this.domNode.textContent=this.domNode.textContent,this.attach(),i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replaceWith",this).call(this,t)}},{key:"highlight",value:function(t){var e=this.domNode.textContent;this.cachedText!==e&&((e.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=t(e),this.domNode.normalize(),this.attach()),this.cachedText=e)}}]),e}(f.default);y.className="ql-syntax";var m=new a.default.Attributor.Class("token","hljs",{scope:a.default.Scope.INLINE}),b=function(t){function e(t,n){p(this,e);var r=g(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));if("function"!==typeof r.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var i=null;return r.quill.on(l.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(i),i=setTimeout((function(){r.highlight(),i=null}),r.options.interval)})),r.highlight(),r}return v(e,t),r(e,null,[{key:"register",value:function(){l.default.register(m,!0),l.default.register(y,!0)}}]),r(e,[{key:"highlight",value:function(){var t=this;if(!this.quill.selection.composing){this.quill.update(l.default.sources.USER);var e=this.quill.getSelection();this.quill.scroll.descendants(y).forEach((function(e){e.highlight(t.options.highlight)})),this.quill.update(l.default.sources.SILENT),null!=e&&this.quill.setSelection(e,l.default.sources.SILENT)}}}]),e}(c.default);b.DEFAULTS={highlight:function(){return null==window.hljs?null:function(t){var e=window.hljs.highlightAuto(t);return e.value}}(),interval:1e3},e.CodeBlock=y,e.CodeToken=m,e.default=b},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(t,e){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(t,e){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(t,e){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(t,e){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BubbleTooltip=void 0;var r=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=n(3),a=p(o),s=n(8),l=p(s),u=n(43),c=p(u),h=n(15),f=n(41),d=p(f);function p(t){return t&&t.__esModule?t:{default:t}}function g(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function y(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var m=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],b=function(t){function e(t,n){g(this,e),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=m);var r=v(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.container.classList.add("ql-bubble"),r}return y(e,t),i(e,[{key:"extendToolbar",value:function(t){this.tooltip=new _(this.quill,this.options.bounds),this.tooltip.root.appendChild(t.container),this.buildButtons([].slice.call(t.container.querySelectorAll("button")),d.default),this.buildPickers([].slice.call(t.container.querySelectorAll("select")),d.default)}}]),e}(c.default);b.DEFAULTS=(0,a.default)(!0,{},c.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(t){t?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var _=function(t){function e(t,n){g(this,e);var r=v(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.on(l.default.events.EDITOR_CHANGE,(function(t,e,n,i){if(t===l.default.events.SELECTION_CHANGE)if(null!=e&&e.length>0&&i===l.default.sources.USER){r.show(),r.root.style.left="0px",r.root.style.width="",r.root.style.width=r.root.offsetWidth+"px";var o=r.quill.getLines(e.index,e.length);if(1===o.length)r.position(r.quill.getBounds(e));else{var a=o[o.length-1],s=r.quill.getIndex(a),u=Math.min(a.length()-1,e.index+e.length-s),c=r.quill.getBounds(new h.Range(s,u));r.position(c)}}else document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide()})),r}return y(e,t),i(e,[{key:"listen",value:function(){var t=this;r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){t.root.classList.remove("ql-editing")})),this.quill.on(l.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!t.root.classList.contains("ql-hidden")){var e=t.quill.getSelection();null!=e&&t.position(t.quill.getBounds(e))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(t){var n=r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"position",this).call(this,t),i=this.root.querySelector(".ql-tooltip-arrow");if(i.style.marginLeft="",0===n)return n;i.style.marginLeft=-1*n-i.offsetWidth/2+"px"}}]),e}(u.BaseTooltip);_.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),e.BubbleTooltip=_,e.default=b},function(t,e,n){t.exports=n(63)}])["default"]}))}).call(this,n("1c35").Buffer)},"93bf":function(t,e,n){
|
||
/*!
|
||
* screenfull
|
||
* v5.0.2 - 2020-02-13
|
||
* (c) Sindre Sorhus; MIT License
|
||
*/
|
||
(function(){"use strict";var e="undefined"!==typeof window&&"undefined"!==typeof window.document?window.document:{},n=t.exports,r=function(){for(var t,n=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],r=0,i=n.length,o={};r<i;r++)if(t=n[r],t&&t[1]in e){for(r=0;r<t.length;r++)o[n[0][r]]=t[r];return o}return!1}(),i={change:r.fullscreenchange,error:r.fullscreenerror},o={request:function(t){return new Promise(function(n,i){var o=function(){this.off("change",o),n()}.bind(this);this.on("change",o),t=t||e.documentElement;var a=t[r.requestFullscreen]();a instanceof Promise&&a.then(o).catch(i)}.bind(this))},exit:function(){return new Promise(function(t,n){if(this.isFullscreen){var i=function(){this.off("change",i),t()}.bind(this);this.on("change",i);var o=e[r.exitFullscreen]();o instanceof Promise&&o.then(i).catch(n)}else t()}.bind(this))},toggle:function(t){return this.isFullscreen?this.exit():this.request(t)},onchange:function(t){this.on("change",t)},onerror:function(t){this.on("error",t)},on:function(t,n){var r=i[t];r&&e.addEventListener(r,n,!1)},off:function(t,n){var r=i[t];r&&e.removeEventListener(r,n,!1)},raw:r};r?(Object.defineProperties(o,{isFullscreen:{get:function(){return Boolean(e[r.fullscreenElement])}},element:{enumerable:!0,get:function(){return e[r.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return Boolean(e[r.fullscreenEnabled])}}}),n?t.exports=o:window.screenfull=o):n?t.exports={isEnabled:!1}:window.screenfull={isEnabled:!1}})()},"944a":function(t,e,n){var r=n("d066"),i=n("e065"),o=n("d44e");i("toStringTag"),o(r("Symbol"),"Symbol")},"946b":function(t,e,n){t.exports=n("faa1").EventEmitter},"94ca":function(t,e,n){var r=n("d039"),i=n("1626"),o=/#|\.prototype\./,a=function(t,e){var n=l[s(t)];return n==c||n!=u&&(i(e)?r(e):!!e)},s=a.normalize=function(t){return String(t).replace(o,".").toLowerCase()},l=a.data={},u=a.NATIVE="N",c=a.POLYFILL="P";t.exports=a},9523:function(t,e,n){var r=n("a395");function i(t,e,n){return e=r(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}t.exports=i,t.exports.__esModule=!0,t.exports["default"]=t.exports},9619:function(t,e,n){var r=n("597f"),i=n("0e15");t.exports={throttle:r,debounce:i}},"966d":function(t,e,n){"use strict";(function(e){function n(t,n,r,i){if("function"!==typeof t)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick((function(){t.call(null,n)}));case 3:return e.nextTick((function(){t.call(null,n,r)}));case 4:return e.nextTick((function(){t.call(null,n,r,i)}));default:o=new Array(s-1),a=0;while(a<o.length)o[a++]=arguments[a];return e.nextTick((function(){t.apply(null,o)}))}}"undefined"===typeof e||!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports={nextTick:n}:t.exports=e}).call(this,n("4362"))},"970b":function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n("d9e2"),t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},9742:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},9876:function(t,e,n){var r=n("03d6"),i=n("9742");t.exports=Object.keys||function(t){return r(t,i)}},9886:function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"CRender",{enumerable:!0,get:function(){return i["default"]}}),Object.defineProperty(e,"extendNewGraph",{enumerable:!0,get:function(){return o.extendNewGraph}}),e["default"]=void 0;var i=r(n("85c4")),o=n("b06d"),a=i["default"];e["default"]=a},9911:function(t,e,n){"use strict";var r=n("23e7"),i=n("857a"),o=n("af03");r({target:"String",proto:!0,forced:o("link")},{link:function(t){return i(this,"a","href",t)}})},"99af":function(t,e,n){"use strict";var r=n("23e7"),i=n("d039"),o=n("e8b5"),a=n("861d"),s=n("7b0b"),l=n("07fa"),u=n("3511"),c=n("8418"),h=n("65f0"),f=n("1dde"),d=n("b622"),p=n("2d00"),g=d("isConcatSpreadable"),v=p>=51||!i((function(){var t=[];return t[g]=!1,t.concat()[0]!==t})),y=f("concat"),m=function(t){if(!a(t))return!1;var e=t[g];return void 0!==e?!!e:o(t)},b=!v||!y;r({target:"Array",proto:!0,arity:1,forced:b},{concat:function(t){var e,n,r,i,o,a=s(this),f=h(a,0),d=0;for(e=-1,r=arguments.length;e<r;e++)if(o=-1===e?a:arguments[e],m(o))for(i=l(o),u(d+i),n=0;n<i;n++,d++)n in o&&c(f,d,o[n]);else u(d+1),c(f,d++,o);return f.length=d,f}})},"9a1f":function(t,e,n){var r=n("c65b"),i=n("59ed"),o=n("825a"),a=n("0d51"),s=n("35a1"),l=TypeError;t.exports=function(t,e){var n=arguments.length<2?s(t):e;if(i(n))return o(r(n,t));throw l(a(t)+" is not iterable")}},"9ab4":function(t,e,n){},"9b06":function(t,e,n){},"9b42":function(t,e,n){function r(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&null!=n["return"]&&(a=n["return"](),Object(a)!==a))return}finally{if(u)throw i}}return s}}n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),n("14d9"),t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},"9bdd":function(t,e,n){var r=n("825a"),i=n("2a62");t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(a){i(t,"throw",a)}}},"9bf2":function(t,e,n){var r=n("83ab"),i=n("0cfb"),o=n("aed9"),a=n("825a"),s=n("a04b"),l=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,h="enumerable",f="configurable",d="writable";e.f=r?o?function(t,e,n){if(a(t),e=s(e),a(n),"function"===typeof t&&"prototype"===e&&"value"in n&&d in n&&!n[d]){var r=c(t,e);r&&r[d]&&(t[e]=n.value,n={configurable:f in n?n[f]:r[f],enumerable:h in n?n[h]:r[h],writable:!1})}return u(t,e,n)}:u:function(t,e,n){if(a(t),e=s(e),a(n),i)try{return u(t,e,n)}catch(r){}if("get"in n||"set"in n)throw l("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},"9bfc":function(t,e,n){"use strict";function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i={};function o(t,e,n){function o(t,n,r){return"string"===typeof e?e:e(t,n,r)}n||(n=Error);var a=function(t){function e(e,n,r){return t.call(this,o(e,n,r))||this}return r(e,t),e}(n);a.prototype.name=n.name,a.prototype.code=t,i[t]=a}function a(t,e){if(Array.isArray(t)){var n=t.length;return t=t.map((function(t){return String(t)})),n>2?"one of ".concat(e," ").concat(t.slice(0,n-1).join(", "),", or ")+t[n-1]:2===n?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}function s(t,e,n){return t.substr(!n||n<0?0:+n,e.length)===e}function l(t,e,n){return(void 0===n||n>t.length)&&(n=t.length),t.substring(n-e.length,n)===e}function u(t,e,n){return"number"!==typeof n&&(n=0),!(n+e.length>t.length)&&-1!==t.indexOf(e,n)}o("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'}),TypeError),o("ERR_INVALID_ARG_TYPE",(function(t,e,n){var r,i;if("string"===typeof e&&s(e,"not ")?(r="must not be",e=e.replace(/^not /,"")):r="must be",l(t," argument"))i="The ".concat(t," ").concat(r," ").concat(a(e,"type"));else{var o=u(t,".")?"property":"argument";i='The "'.concat(t,'" ').concat(o," ").concat(r," ").concat(a(e,"type"))}return i+=". Received type ".concat(typeof n),i}),TypeError),o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),o("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),o("ERR_STREAM_PREMATURE_CLOSE","Premature close"),o("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),o("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),o("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),o("ERR_STREAM_WRITE_AFTER_END","write after end"),o("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),o("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=i},"9c0c":function(t,e,n){var r=n("1609");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},"9c0e":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"9d11":function(t,e,n){var r=n("fc5e"),i=Math.max,o=Math.min;t.exports=function(t,e){return t=r(t),t<0?i(t+e,0):o(t,e)}},"9d37":function(t,e,n){"use strict";t.exports=i;var r=n("fe34");function i(t){if(!(this instanceof i))return new i(t);r.call(this,t)}n("3fb5")(i,r),i.prototype._transform=function(t,e,n){n(null,t)}},"9d85":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.changeDefaultConfig=v,Object.defineProperty(e,"colorConfig",{enumerable:!0,get:function(){return r.colorConfig}}),Object.defineProperty(e,"gridConfig",{enumerable:!0,get:function(){return i.gridConfig}}),Object.defineProperty(e,"xAxisConfig",{enumerable:!0,get:function(){return o.xAxisConfig}}),Object.defineProperty(e,"yAxisConfig",{enumerable:!0,get:function(){return o.yAxisConfig}}),Object.defineProperty(e,"titleConfig",{enumerable:!0,get:function(){return a.titleConfig}}),Object.defineProperty(e,"lineConfig",{enumerable:!0,get:function(){return s.lineConfig}}),Object.defineProperty(e,"barConfig",{enumerable:!0,get:function(){return l.barConfig}}),Object.defineProperty(e,"pieConfig",{enumerable:!0,get:function(){return u.pieConfig}}),Object.defineProperty(e,"radarAxisConfig",{enumerable:!0,get:function(){return c.radarAxisConfig}}),Object.defineProperty(e,"radarConfig",{enumerable:!0,get:function(){return h.radarConfig}}),Object.defineProperty(e,"gaugeConfig",{enumerable:!0,get:function(){return f.gaugeConfig}}),Object.defineProperty(e,"legendConfig",{enumerable:!0,get:function(){return d.legendConfig}}),e.keys=void 0;var r=n("f3cb"),i=n("49bc"),o=n("c930"),a=n("887c"),s=n("6eb9"),l=n("f111"),u=n("222a"),c=n("0cd4"),h=n("3938"),f=n("cc6d"),d=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:l.barConfig,pieConfig:u.pieConfig,radarAxisConfig:c.radarAxisConfig,radarConfig:h.radarConfig,gaugeConfig:f.gaugeConfig,legendConfig:d.legendConfig};function v(t,e){g["".concat(t,"Config")]?(0,p.deepMerge)(g["".concat(t,"Config")],e):console.warn("Change default config Error - Invalid key!")}var y=["color","title","legend","xAxis","yAxis","grid","radarAxis","line","bar","pie","radar","gauge"];e.keys=y},"9ede":function(t,e,n){t.exports=n("faa1").EventEmitter},"9f7f":function(t,e,n){var r=n("d039"),i=n("da84"),o=i.RegExp,a=r((function(){var t=o("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),s=a||r((function(){return!o("a","y").sticky})),l=a||r((function(){var t=o("^r","gy");return t.lastIndex=2,null!=t.exec("str")}));t.exports={BROKEN_CARET:l,MISSED_STICKY:s,UNSUPPORTED_Y:a}},"9fbb":function(t,e,n){var r=n("4d88");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},a04b:function(t,e,n){var r=n("c04e"),i=n("d9b5");t.exports=function(t){var e=r(t,"string");return i(e)?e:e+""}},a143:function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.radarAxis=d;var i=r(n("278c")),o=r(n("9523")),a=r(n("448a")),s=n("18ad"),l=n("9d85"),u=n("5557"),c=n("becb");function h(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?h(Object(n),!0).forEach((function(e){(0,o["default"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function d(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.radar,r=[];n&&(r=p(n),r=g(r,t),r=v(r,t),r=y(r),r=m(r),r=b(r),r=[r]);var i=r;r.length&&!r[0].show&&(i=[]),(0,s.doUpdate)({chart:t,series:i,key:"radarAxisSplitArea",getGraphConfig:_,beforeUpdate:S,beforeChange:O}),(0,s.doUpdate)({chart:t,series:i,key:"radarAxisSplitLine",getGraphConfig:C,beforeUpdate:M,beforeChange:T}),(0,s.doUpdate)({chart:t,series:i,key:"radarAxisLine",getGraphConfig:I}),(0,s.doUpdate)({chart:t,series:i,key:"radarAxisLable",getGraphConfig:j}),t.radarAxis=r[0]}function p(t){return(0,c.deepMerge)((0,u.deepClone)(l.radarAxisConfig),t)}function g(t,e){var n=e.render.area,r=t.center;return t.centerPos=r.map((function(t,e){return"number"===typeof t?t:parseInt(t)/100*n[e]})),t}function v(t,e){var n=e.render.area,r=t.splitNum,i=t.radius,o=Math.min.apply(Math,(0,a["default"])(n))/2;"number"!==typeof i&&(i=parseInt(i)/100*o);var s=i/r;return t.ringRadius=new Array(r).fill(0).map((function(t,e){return s*(e+1)})),t.radius=i,t}function y(t){var e=t.indicator,n=t.centerPos,r=t.radius,i=t.startAngle,o=2*Math.PI,s=e.length,l=o/s,c=new Array(s).fill(0).map((function(t,e){return l*e+i}));return t.axisLineAngles=c,t.axisLinePosition=c.map((function(t){return u.getCircleRadianPoint.apply(void 0,(0,a["default"])(n).concat([r,t]))})),t}function m(t){var e=t.ringRadius,n=e[0]/2;return t.areaRadius=e.map((function(t){return t-n})),t}function b(t){var e=t.axisLineAngles,n=t.centerPos,r=t.radius,i=t.axisLabel;return r+=i.labelGap,t.axisLabelPosition=e.map((function(t){return u.getCircleRadianPoint.apply(void 0,(0,a["default"])(n).concat([r,t]))})),t}function _(t){var e=t.areaRadius,n=t.polygon,r=t.animationCurve,i=t.animationFrame,o=t.rLevel,a=n?"regPolygon":"ring";return e.map((function(e,n){return{name:a,index:o,visible:t.splitArea.show,animationCurve:r,animationFrame:i,shape:x(t,n),style:w(t,n)}}))}function x(t,e){var n=t.polygon,r=t.areaRadius,i=t.indicator,o=t.centerPos,a=i.length,s={rx:o[0],ry:o[1],r:r[e]};return n&&(s.side=a),s}function w(t,e){var n=t.splitArea,r=t.ringRadius,i=t.axisLineAngles,o=t.polygon,s=t.centerPos,l=n.color,h=n.style;h=f({fill:"rgba(0, 0, 0, 0)"},h);var d=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]]));d=(0,c.getPointToLineDistance)(s,p,g)}if(h=(0,c.deepMerge)((0,u.deepClone)(h,!0),{lineWidth:d}),!l.length)return h;var v=l.length;return(0,c.deepMerge)(h,{stroke:l[e%v]})}function S(t,e,n,r){var i=t[n];if(i){var o=r.chart.render,a=e.polygon,s=i[0].name,l=a?"regPolygon":"ring",u=l!==s;u&&(i.forEach((function(t){return o.delGraph(t)})),t[n]=null)}}function O(t,e){var n=e.shape.side;"number"===typeof n&&(t.shape.side=n)}function C(t){var e=t.ringRadius,n=t.polygon,r=t.animationCurve,i=t.animationFrame,o=t.rLevel,a=n?"regPolygon":"ring";return e.map((function(e,n){return{name:a,index:o,animationCurve:r,animationFrame:i,visible:t.splitLine.show,shape:k(t,n),style:A(t,n)}}))}function k(t,e){var n=t.ringRadius,r=t.centerPos,i=t.indicator,o=t.polygon,a={rx:r[0],ry:r[1],r:n[e]},s=i.length;return o&&(a.side=s),a}function A(t,e){var n=t.splitLine,r=n.color,i=n.style;if(i=f({fill:"rgba(0, 0, 0, 0)"},i),!r.length)return i;var o=r.length;return(0,c.deepMerge)(i,{stroke:r[e%o]})}function M(t,e,n,r){var i=t[n];if(i){var o=r.chart.render,a=e.polygon,s=i[0].name,l=a?"regPolygon":"ring",u=l!==s;u&&(i.forEach((function(t){return o.delGraph(t)})),t[n]=null)}}function T(t,e){var n=e.shape.side;"number"===typeof n&&(t.shape.side=n)}function I(t){var e=t.axisLinePosition,n=t.animationCurve,r=t.animationFrame,i=t.rLevel;return e.map((function(e,o){return{name:"polyline",index:i,visible:t.axisLine.show,animationCurve:n,animationFrame:r,shape:E(t,o),style:P(t,o)}}))}function E(t,e){var n=t.centerPos,r=t.axisLinePosition,i=[n,r[e]];return{points:i}}function P(t,e){var n=t.axisLine,r=n.color,i=n.style;if(!r.length)return i;var o=r.length;return(0,c.deepMerge)(i,{stroke:r[e%o]})}function j(t){var e=t.axisLabelPosition,n=t.animationCurve,r=t.animationFrame,i=t.rLevel;return e.map((function(e,o){return{name:"text",index:i,visible:t.axisLabel.show,animationCurve:n,animationFrame:r,shape:L(t,o),style:D(t,o)}}))}function L(t,e){var n=t.axisLabelPosition,r=t.indicator;return{content:r[e].name,position:n[e]}}function D(t,e){var n=t.axisLabel,r=(0,i["default"])(t.centerPos,2),o=r[0],a=r[1],s=t.axisLabelPosition,l=n.color,u=n.style,h=(0,i["default"])(s[e],2),f=h[0],d=h[1],p=f>o?"left":"right",g=d>a?"top":"bottom";if(u=(0,c.deepMerge)({textAlign:p,textBaseline:g},u),!l.length)return u;var v=l.length;return(0,c.deepMerge)(u,{fill:l[e%v]})}},a157:function(t,e,n){},a15b:function(t,e,n){"use strict";var r=n("23e7"),i=n("e330"),o=n("44ad"),a=n("fc6a"),s=n("a640"),l=i([].join),u=o!=Object,c=s("join",",");r({target:"Array",proto:!0,forced:u||!c},{join:function(t){return l(a(this),void 0===t?",":t)}})},a15e:function(t,e,n){"use strict";n.r(e);var r=n("41b2"),i=n.n(r),o=n("1098"),a=n.n(o),s=/%[sdj%]/g,l=function(){};function u(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=1,i=e[0],o=e.length;if("function"===typeof i)return i.apply(null,e.slice(1));if("string"===typeof i){for(var a=String(i).replace(s,(function(t){if("%%"===t)return"%";if(r>=o)return t;switch(t){case"%s":return String(e[r++]);case"%d":return Number(e[r++]);case"%j":try{return JSON.stringify(e[r++])}catch(n){return"[Circular]"}break;default:return t}})),l=e[r];r<o;l=e[++r])a+=" "+l;return a}return i}function c(t){return"string"===t||"url"===t||"hex"===t||"email"===t||"pattern"===t}function h(t,e){return void 0===t||null===t||(!("array"!==e||!Array.isArray(t)||t.length)||!(!c(e)||"string"!==typeof t||t))}function f(t,e,n){var r=[],i=0,o=t.length;function a(t){r.push.apply(r,t),i++,i===o&&n(r)}t.forEach((function(t){e(t,a)}))}function d(t,e,n){var r=0,i=t.length;function o(a){if(a&&a.length)n(a);else{var s=r;r+=1,s<i?e(t[s],o):n([])}}o([])}function p(t){var e=[];return Object.keys(t).forEach((function(n){e.push.apply(e,t[n])})),e}function g(t,e,n,r){if(e.first){var i=p(t);return d(i,n,r)}var o=e.firstFields||[];!0===o&&(o=Object.keys(t));var a=Object.keys(t),s=a.length,l=0,u=[],c=function(t){u.push.apply(u,t),l++,l===s&&r(u)};a.forEach((function(e){var r=t[e];-1!==o.indexOf(e)?d(r,n,c):f(r,n,c)}))}function v(t){return function(e){return e&&e.message?(e.field=e.field||t.fullField,e):{message:e,field:e.field||t.fullField}}}function y(t,e){if(e)for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];"object"===("undefined"===typeof r?"undefined":a()(r))&&"object"===a()(t[n])?t[n]=i()({},t[n],r):t[n]=r}return t}function m(t,e,n,r,i,o){!t.required||n.hasOwnProperty(t.field)&&!h(e,o||t.type)||r.push(u(i.messages.required,t.fullField))}var b=m;function _(t,e,n,r,i){(/^\s+$/.test(e)||""===e)&&r.push(u(i.messages.whitespace,t.fullField))}var x=_,w={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},S={integer:function(t){return S.number(t)&&parseInt(t,10)===t},float:function(t){return S.number(t)&&!S.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch(e){return!1}},date:function(t){return"function"===typeof t.getTime&&"function"===typeof t.getMonth&&"function"===typeof t.getYear},number:function(t){return!isNaN(t)&&"number"===typeof t},object:function(t){return"object"===("undefined"===typeof t?"undefined":a()(t))&&!S.array(t)},method:function(t){return"function"===typeof t},email:function(t){return"string"===typeof t&&!!t.match(w.email)&&t.length<255},url:function(t){return"string"===typeof t&&!!t.match(w.url)},hex:function(t){return"string"===typeof t&&!!t.match(w.hex)}};function O(t,e,n,r,i){if(t.required&&void 0===e)b(t,e,n,r,i);else{var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;o.indexOf(s)>-1?S[s](e)||r.push(u(i.messages.types[s],t.fullField,t.type)):s&&("undefined"===typeof e?"undefined":a()(e))!==t.type&&r.push(u(i.messages.types[s],t.fullField,t.type))}}var C=O;function k(t,e,n,r,i){var o="number"===typeof t.len,a="number"===typeof t.min,s="number"===typeof t.max,l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=e,h=null,f="number"===typeof e,d="string"===typeof e,p=Array.isArray(e);if(f?h="number":d?h="string":p&&(h="array"),!h)return!1;p&&(c=e.length),d&&(c=e.replace(l,"_").length),o?c!==t.len&&r.push(u(i.messages[h].len,t.fullField,t.len)):a&&!s&&c<t.min?r.push(u(i.messages[h].min,t.fullField,t.min)):s&&!a&&c>t.max?r.push(u(i.messages[h].max,t.fullField,t.max)):a&&s&&(c<t.min||c>t.max)&&r.push(u(i.messages[h].range,t.fullField,t.min,t.max))}var A=k,M="enum";function T(t,e,n,r,i){t[M]=Array.isArray(t[M])?t[M]:[],-1===t[M].indexOf(e)&&r.push(u(i.messages[M],t.fullField,t[M].join(", ")))}var I=T;function E(t,e,n,r,i){if(t.pattern)if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(e)||r.push(u(i.messages.pattern.mismatch,t.fullField,e,t.pattern));else if("string"===typeof t.pattern){var o=new RegExp(t.pattern);o.test(e)||r.push(u(i.messages.pattern.mismatch,t.fullField,e,t.pattern))}}var P=E,j={required:b,whitespace:x,type:C,range:A,enum:I,pattern:P};function L(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(h(e,"string")&&!t.required)return n();j.required(t,e,r,o,i,"string"),h(e,"string")||(j.type(t,e,r,o,i),j.range(t,e,r,o,i),j.pattern(t,e,r,o,i),!0===t.whitespace&&j.whitespace(t,e,r,o,i))}n(o)}var D=L;function R(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(h(e)&&!t.required)return n();j.required(t,e,r,o,i),void 0!==e&&j.type(t,e,r,o,i)}n(o)}var N=R;function B(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(h(e)&&!t.required)return n();j.required(t,e,r,o,i),void 0!==e&&(j.type(t,e,r,o,i),j.range(t,e,r,o,i))}n(o)}var F=B;function z(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(h(e)&&!t.required)return n();j.required(t,e,r,o,i),void 0!==e&&j.type(t,e,r,o,i)}n(o)}var V=z;function q(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(h(e)&&!t.required)return n();j.required(t,e,r,o,i),h(e)||j.type(t,e,r,o,i)}n(o)}var G=q;function H(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(h(e)&&!t.required)return n();j.required(t,e,r,o,i),void 0!==e&&(j.type(t,e,r,o,i),j.range(t,e,r,o,i))}n(o)}var W=H;function U(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(h(e)&&!t.required)return n();j.required(t,e,r,o,i),void 0!==e&&(j.type(t,e,r,o,i),j.range(t,e,r,o,i))}n(o)}var $=U;function Y(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(h(e,"array")&&!t.required)return n();j.required(t,e,r,o,i,"array"),h(e,"array")||(j.type(t,e,r,o,i),j.range(t,e,r,o,i))}n(o)}var X=Y;function K(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(h(e)&&!t.required)return n();j.required(t,e,r,o,i),void 0!==e&&j.type(t,e,r,o,i)}n(o)}var Z=K,Q="enum";function J(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(h(e)&&!t.required)return n();j.required(t,e,r,o,i),e&&j[Q](t,e,r,o,i)}n(o)}var tt=J;function et(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(h(e,"string")&&!t.required)return n();j.required(t,e,r,o,i),h(e,"string")||j.pattern(t,e,r,o,i)}n(o)}var nt=et;function rt(t,e,n,r,i){var o=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(h(e)&&!t.required)return n();if(j.required(t,e,r,o,i),!h(e)){var s=void 0;s="number"===typeof e?new Date(e):e,j.type(t,s,r,o,i),s&&j.range(t,s.getTime(),r,o,i)}}n(o)}var it=rt;function ot(t,e,n,r,i){var o=[],s=Array.isArray(e)?"array":"undefined"===typeof e?"undefined":a()(e);j.required(t,e,r,o,i,s),n(o)}var at=ot;function st(t,e,n,r,i){var o=t.type,a=[],s=t.required||!t.required&&r.hasOwnProperty(t.field);if(s){if(h(e,o)&&!t.required)return n();j.required(t,e,r,a,i,o),h(e,o)||j.type(t,e,r,a,i)}n(a)}var lt=st,ut={string:D,method:N,number:F,boolean:V,regexp:G,integer:W,float:$,array:X,object:Z,enum:tt,pattern:nt,date:it,url:lt,hex:lt,email:lt,required:at};function ct(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var ht=ct();function ft(t){this.rules=null,this._messages=ht,this.define(t)}ft.prototype={messages:function(t){return t&&(this._messages=y(ct(),t)),this._messages},define:function(t){if(!t)throw new Error("Cannot configure a schema with no rules");if("object"!==("undefined"===typeof t?"undefined":a()(t))||Array.isArray(t))throw new Error("Rules must be an object");this.rules={};var e=void 0,n=void 0;for(e in t)t.hasOwnProperty(e)&&(n=t[e],this.rules[e]=Array.isArray(n)?n:[n])},validate:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments[2],o=t,s=n,c=r;if("function"===typeof s&&(c=s,s={}),this.rules&&0!==Object.keys(this.rules).length){if(s.messages){var h=this.messages();h===ht&&(h=ct()),y(h,s.messages),s.messages=h}else s.messages=this.messages();var f=void 0,d=void 0,p={},m=s.keys||Object.keys(this.rules);m.forEach((function(n){f=e.rules[n],d=o[n],f.forEach((function(r){var a=r;"function"===typeof a.transform&&(o===t&&(o=i()({},o)),d=o[n]=a.transform(d)),a="function"===typeof a?{validator:a}:i()({},a),a.validator=e.getValidationMethod(a),a.field=n,a.fullField=a.fullField||n,a.type=e.getType(a),a.validator&&(p[n]=p[n]||[],p[n].push({rule:a,value:d,source:o,field:n}))}))}));var b={};g(p,s,(function(t,e){var n=t.rule,r=("object"===n.type||"array"===n.type)&&("object"===a()(n.fields)||"object"===a()(n.defaultField));function o(t,e){return i()({},e,{fullField:n.fullField+"."+t})}function c(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],c=a;if(Array.isArray(c)||(c=[c]),c.length&&l("async-validator:",c),c.length&&n.message&&(c=[].concat(n.message)),c=c.map(v(n)),s.first&&c.length)return b[n.field]=1,e(c);if(r){if(n.required&&!t.value)return c=n.message?[].concat(n.message).map(v(n)):s.error?[s.error(n,u(s.messages.required,n.field))]:[],e(c);var h={};if(n.defaultField)for(var f in t.value)t.value.hasOwnProperty(f)&&(h[f]=n.defaultField);for(var d in h=i()({},h,t.rule.fields),h)if(h.hasOwnProperty(d)){var p=Array.isArray(h[d])?h[d]:[h[d]];h[d]=p.map(o.bind(null,d))}var g=new ft(h);g.messages(s.messages),t.rule.options&&(t.rule.options.messages=s.messages,t.rule.options.error=s.error),g.validate(t.value,t.rule.options||s,(function(t){e(t&&t.length?c.concat(t):t)}))}else e(c)}r=r&&(n.required||!n.required&&t.value),n.field=t.field;var h=n.validator(n,t.value,c,t.source,s);h&&h.then&&h.then((function(){return c()}),(function(t){return c(t)}))}),(function(t){_(t)}))}else c&&c();function _(t){var e=void 0,n=void 0,r=[],i={};function o(t){Array.isArray(t)?r=r.concat.apply(r,t):r.push(t)}for(e=0;e<t.length;e++)o(t[e]);if(r.length)for(e=0;e<r.length;e++)n=r[e].field,i[n]=i[n]||[],i[n].push(r[e]);else r=null,i=null;c(r,i)}},getType:function(t){if(void 0===t.type&&t.pattern instanceof RegExp&&(t.type="pattern"),"function"!==typeof t.validator&&t.type&&!ut.hasOwnProperty(t.type))throw new Error(u("Unknown rule type %s",t.type));return t.type||"string"},getValidationMethod:function(t){if("function"===typeof t.validator)return t.validator;var e=Object.keys(t),n=e.indexOf("message");return-1!==n&&e.splice(n,1),1===e.length&&"required"===e[0]?ut.required:ut[this.getType(t)]||!1}},ft.register=function(t,e){if("function"!==typeof e)throw new Error("Cannot register a validator by type, validator is not a function");ut[t]=e},ft.messages=ht;e["default"]=ft},a34a:function(t,e,n){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}n("6c57"),n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0");var i=n("7ec2")();t.exports=i;try{regeneratorRuntime=i}catch(o){"object"===("undefined"===typeof globalThis?"undefined":r(globalThis))?globalThis.regeneratorRuntime=i:Function("r","regeneratorRuntime = r")(i)}},a38e:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("53ca");n("8172"),n("efec"),n("a4d3"),n("e01a"),n("d3b7"),n("d9e2"),n("a9e3");function i(t,e){if("object"!==Object(r["a"])(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!==Object(r["a"])(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function o(t){var e=i(t,"string");return"symbol"===Object(r["a"])(e)?e:String(e)}},a395:function(t,e,n){var r=n("7037")["default"],i=n("e50d");function o(t){var e=i(t,"string");return"symbol"===r(e)?e:String(e)}t.exports=o,t.exports.__esModule=!0,t.exports["default"]=t.exports},a3de:function(t,e,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};t.exports=i},a434:function(t,e,n){"use strict";var r=n("23e7"),i=n("7b0b"),o=n("23cb"),a=n("5926"),s=n("07fa"),l=n("3a34"),u=n("3511"),c=n("65f0"),h=n("8418"),f=n("083a"),d=n("1dde"),p=d("splice"),g=Math.max,v=Math.min;r({target:"Array",proto:!0,forced:!p},{splice:function(t,e){var n,r,d,p,y,m,b=i(this),_=s(b),x=o(t,_),w=arguments.length;for(0===w?n=r=0:1===w?(n=0,r=_-x):(n=w-2,r=v(g(a(e),0),_-x)),u(_+n-r),d=c(b,r),p=0;p<r;p++)y=x+p,y in b&&h(d,p,b[y]);if(d.length=r,n<r){for(p=x;p<_-r;p++)y=p+r,m=p+n,y in b?b[m]=b[y]:f(b,m);for(p=_;p>_-r+n;p--)f(b,p-1)}else if(n>r)for(p=_-r;p>x;p--)y=p+r-1,m=p+n-1,y in b?b[m]=b[y]:f(b,m);for(p=0;p<n;p++)b[p+x]=arguments[p+2];return l(b,_-r+n),d}})},a43f:function(t,e,n){"use strict";const r=n("63f00"),i=n("6155").NumberAllocator;function o(t){if(!(this instanceof o))return new o(t);t>0&&(this.aliasToTopic=new r({max:t}),this.topicToAlias={},this.numberAllocator=new i(1,t),this.max=t,this.length=0)}o.prototype.put=function(t,e){if(0===e||e>this.max)return!1;const n=this.aliasToTopic.get(e);return n&&delete this.topicToAlias[n],this.aliasToTopic.set(e,t),this.topicToAlias[t]=e,this.numberAllocator.use(e),this.length=this.aliasToTopic.length,!0},o.prototype.getTopicByAlias=function(t){return this.aliasToTopic.get(t)},o.prototype.getAliasByTopic=function(t){const e=this.topicToAlias[t];return"undefined"!==typeof e&&this.aliasToTopic.get(e),e},o.prototype.clear=function(){this.aliasToTopic.reset(),this.topicToAlias={},this.numberAllocator.clear(),this.length=0},o.prototype.getLruAlias=function(){const t=this.numberAllocator.firstVacant();return t||this.aliasToTopic.keys()[this.aliasToTopic.length-1]},t.exports=o},a493:function(t,e,n){"use strict";(function(e){var r=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=u;var i=n("0e8b"),o=n("f6ba");n("3fb5")(u,i);for(var a=r(o.prototype),s=0;s<a.length;s++){var l=a[s];u.prototype[l]||(u.prototype[l]=o.prototype[l])}function u(t){if(!(this instanceof u))return new u(t);i.call(this,t),o.call(this,t),this.allowHalfOpen=!0,t&&(!1===t.readable&&(this.readable=!1),!1===t.writable&&(this.writable=!1),!1===t.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",c)))}function c(){this._writableState.ended||e.nextTick(h,this)}function h(t){t.end()}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}})}).call(this,n("4362"))},a4b4:function(t,e,n){var r=n("342f");t.exports=/web0s(?!.*chrome)/i.test(r)},a4d3:function(t,e,n){n("d9f5"),n("b4f8"),n("c513"),n("e9c4"),n("5a47")},a50f:function(t,e){t.exports=function(){throw new Error("Readable.from is not available in the browser")}},a5d8:function(t,e,n){},a630:function(t,e,n){var r=n("23e7"),i=n("4df4"),o=n("1c7e"),a=!o((function(t){Array.from(t)}));r({target:"Array",stat:!0,forced:a},{from:i})},a640:function(t,e,n){"use strict";var r=n("d039");t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){return 1},1)}))}},a736:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"mergeColor",{enumerable:!0,get:function(){return r.mergeColor}}),Object.defineProperty(e,"title",{enumerable:!0,get:function(){return i.title}}),Object.defineProperty(e,"grid",{enumerable:!0,get:function(){return o.grid}}),Object.defineProperty(e,"axis",{enumerable:!0,get:function(){return a.axis}}),Object.defineProperty(e,"line",{enumerable:!0,get:function(){return s.line}}),Object.defineProperty(e,"bar",{enumerable:!0,get:function(){return l.bar}}),Object.defineProperty(e,"pie",{enumerable:!0,get:function(){return u.pie}}),Object.defineProperty(e,"radarAxis",{enumerable:!0,get:function(){return c.radarAxis}}),Object.defineProperty(e,"radar",{enumerable:!0,get:function(){return h.radar}}),Object.defineProperty(e,"gauge",{enumerable:!0,get:function(){return f.gauge}}),Object.defineProperty(e,"legend",{enumerable:!0,get:function(){return d.legend}});var r=n("8a1d"),i=n("873c"),o=n("46bb6"),a=n("0680"),s=n("252f"),l=n("204e"),u=n("729e"),c=n("a143"),h=n("4eb1"),f=n("1f55"),d=n("60f7")},a753:function(t,e,n){},a79d:function(t,e,n){"use strict";var r=n("23e7"),i=n("c430"),o=n("d256"),a=n("d039"),s=n("d066"),l=n("1626"),u=n("4840"),c=n("cdf9"),h=n("cb2d"),f=o&&o.prototype,d=!!o&&a((function(){f["finally"].call({then:function(){}},(function(){}))}));if(r({target:"Promise",proto:!0,real:!0,forced:d},{finally:function(t){var e=u(this,s("Promise")),n=l(t);return this.then(n?function(n){return c(e,t()).then((function(){return n}))}:t,n?function(n){return c(e,t()).then((function(){throw n}))}:t)}}),!i&&l(o)){var p=s("Promise").prototype["finally"];f["finally"]!==p&&h(f,"finally",p,{unsafe:!0})}},a7c9:function(t,e){class n{constructor(){this.cmd=null,this.retain=!1,this.qos=0,this.dup=!1,this.length=-1,this.topic=null,this.payload=null}}t.exports=n},a870:function(t,e,n){"use strict";n.r(e),n.d(e,"darken",(function(){return m})),n.d(e,"fade",(function(){return _})),n.d(e,"getColorFromRgbValue",(function(){return y})),n.d(e,"getOpacity",(function(){return d})),n.d(e,"getRgbValue",(function(){return f})),n.d(e,"getRgbaValue",(function(){return p})),n.d(e,"isHex",(function(){return i})),n.d(e,"isRgb",(function(){return o})),n.d(e,"isRgbOrRgba",(function(){return s})),n.d(e,"isRgba",(function(){return a})),n.d(e,"lighten",(function(){return b})),n.d(e,"toHex",(function(){return v})),n.d(e,"toRgb",(function(){return g}));var r=(t=>(t.transparent="rgba(0,0,0,0)",t.black="#000000",t.silver="#C0C0C0",t.gray="#808080",t.white="#FFFFFF",t.maroon="#800000",t.red="#FF0000",t.purple="#800080",t.fuchsia="#FF00FF",t.green="#008000",t.lime="#00FF00",t.olive="#808000",t.yellow="#FFFF00",t.navy="#000080",t.blue="#0000FF",t.teal="#008080",t.aqua="#00FFFF",t.aliceblue="#f0f8ff",t.antiquewhite="#faebd7",t.aquamarine="#7fffd4",t.azure="#f0ffff",t.beige="#f5f5dc",t.bisque="#ffe4c4",t.blanchedalmond="#ffebcd",t.blueviolet="#8a2be2",t.brown="#a52a2a",t.burlywood="#deb887",t.cadetblue="#5f9ea0",t.chartreuse="#7fff00",t.chocolate="#d2691e",t.coral="#ff7f50",t.cornflowerblue="#6495ed",t.cornsilk="#fff8dc",t.crimson="#dc143c",t.cyan="#00ffff",t.darkblue="#00008b",t.darkcyan="#008b8b",t.darkgoldenrod="#b8860b",t.darkgray="#a9a9a9",t.darkgreen="#006400",t.darkgrey="#a9a9a9",t.darkkhaki="#bdb76b",t.darkmagenta="#8b008b",t.darkolivegreen="#556b2f",t.darkorange="#ff8c00",t.darkorchid="#9932cc",t.darkred="#8b0000",t.darksalmon="#e9967a",t.darkseagreen="#8fbc8f",t.darkslateblue="#483d8b",t.darkslategray="#2f4f4f",t.darkslategrey="#2f4f4f",t.darkturquoise="#00ced1",t.darkviolet="#9400d3",t.deeppink="#ff1493",t.deepskyblue="#00bfff",t.dimgray="#696969",t.dimgrey="#696969",t.dodgerblue="#1e90ff",t.firebrick="#b22222",t.floralwhite="#fffaf0",t.forestgreen="#228b22",t.gainsboro="#dcdcdc",t.ghostwhite="#f8f8ff",t.gold="#ffd700",t.goldenrod="#daa520",t.greenyellow="#adff2f",t.grey="#808080",t.honeydew="#f0fff0",t.hotpink="#ff69b4",t.indianred="#cd5c5c",t.indigo="#4b0082",t.ivory="#fffff0",t.khaki="#f0e68c",t.lavender="#e6e6fa",t.lavenderblush="#fff0f5",t.lawngreen="#7cfc00",t.lemonchiffon="#fffacd",t.lightblue="#add8e6",t.lightcoral="#f08080",t.lightcyan="#e0ffff",t.lightgoldenrodyellow="#fafad2",t.lightgray="#d3d3d3",t.lightgreen="#90ee90",t.lightgrey="#d3d3d3",t.lightpink="#ffb6c1",t.lightsalmon="#ffa07a",t.lightseagreen="#20b2aa",t.lightskyblue="#87cefa",t.lightslategray="#778899",t.lightslategrey="#778899",t.lightsteelblue="#b0c4de",t.lightyellow="#ffffe0",t.limegreen="#32cd32",t.linen="#faf0e6",t.magenta="#ff00ff",t.mediumaquamarine="#66cdaa",t.mediumblue="#0000cd",t.mediumorchid="#ba55d3",t.mediumpurple="#9370db",t.mediumseagreen="#3cb371",t.mediumslateblue="#7b68ee",t.mediumspringgreen="#00fa9a",t.mediumturquoise="#48d1cc",t.mediumvioletred="#c71585",t.midnightblue="#191970",t.mintcream="#f5fffa",t.mistyrose="#ffe4e1",t.moccasin="#ffe4b5",t.navajowhite="#ffdead",t.oldlace="#fdf5e6",t.olivedrab="#6b8e23",t.orange="#ffa500",t.orangered="#ff4500",t.orchid="#da70d6",t.palegoldenrod="#eee8aa",t.palegreen="#98fb98",t.paleturquoise="#afeeee",t.palevioletred="#db7093",t.papayawhip="#ffefd5",t.peachpuff="#ffdab9",t.peru="#cd853f",t.pink="#ffc0cb",t.plum="#dda0dd",t.powderblue="#b0e0e6",t.rosybrown="#bc8f8f",t.royalblue="#4169e1",t.saddlebrown="#8b4513",t.salmon="#fa8072",t.sandybrown="#f4a460",t.seagreen="#2e8b57",t.seashell="#fff5ee",t.sienna="#a0522d",t.skyblue="#87ceeb",t.slateblue="#6a5acd",t.slategray="#708090",t.snow="#fffafa",t.springgreen="#00ff7f",t.steelblue="#4682b4",t.tan="#d2b48c",t.thistle="#d8bfd8",t.tomato="#ff6347",t.turquoise="#40e0d0",t.violet="#ee82ee",t.wheat="#f5deb3",t.whitesmoke="#f5f5f5",t.yellowgreen="#9acd32",t))(r||{});function i(t){return"string"==typeof t&&(t=t.toLowerCase(),/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(t))}function o(t){return"string"==typeof t&&(t=t.toLowerCase(),/^(rgb\(|RGB\()/.test(t))}function a(t){return"string"==typeof t&&(t=t.toLowerCase(),/^(rgba|RGBA)/.test(t))}function s(t){return/^(rgb|rgba|RGB|RGBA)/.test(t)}function l(t){return r[t]}function u(t){if(i(t)||s(t))return t;const e=l(t);if(!e)throw new Error("Color: Invalid Input of "+t);return e}function c(t){t=t.replace("#",""),3===t.length&&(t=Array.from(t).map(t=>t+t).join(""));const e=t.split("");return new Array(3).fill(0).map((t,n)=>parseInt(`0x${e[2*n]}${e[2*n+1]}`))}function h(t){return t.replace(/rgb\(|rgba\(|\)/g,"").split(",").slice(0,3).map(t=>parseInt(t))}function f(t){const e=u(t).toLowerCase();return i(e)?c(e):h(e)}function d(t){const e=u(t);return a(e)?Number(e.toLowerCase().split(",").slice(-1)[0].replace(/[)|\s]/g,"")):1}function p(t){const e=f(t);return e&&[...e,d(t)]}function g(t,e){const n=f(t);return"number"==typeof e?`rgba(${n.join(",")},${e})`:`rgb(${n.join(",")})`}function v(t){if(i(t))return t;const e=f(t),n=t=>Number(t).toString(16).padStart(2,"0");return"#"+e.map(n).join("")}function y(t){if(!Array.isArray(t))throw new Error(`getColorFromRgbValue: ${t} is not an array`);const{length:e}=t;if(3!==e&&4!==e)throw new Error("getColorFromRgbValue: value length should be 3 or 4");return(3===e?"rgb(":"rgba(")+t.join(",")+")"}function m(t,e=0){let n=p(t);return n=n.map((t,n)=>3===n?t:t-Math.ceil(2.55*e)).map(t=>t<0?0:t),y(n)}function b(t,e=0){let n=p(t);return n=n.map((t,n)=>3===n?t:t+Math.ceil(2.55*e)).map(t=>t>255?255:t),y(n)}function _(t,e=100){const n=f(t);return y([...n,e/100])}},a9e3:function(t,e,n){"use strict";var r=n("83ab"),i=n("da84"),o=n("e330"),a=n("94ca"),s=n("cb2d"),l=n("1a2d"),u=n("7156"),c=n("3a9b"),h=n("d9b5"),f=n("c04e"),d=n("d039"),p=n("241c").f,g=n("06cf").f,v=n("9bf2").f,y=n("408a"),m=n("58a8").trim,b="Number",_=i[b],x=_.prototype,w=i.TypeError,S=o("".slice),O=o("".charCodeAt),C=function(t){var e=f(t,"number");return"bigint"==typeof e?e:k(e)},k=function(t){var e,n,r,i,o,a,s,l,u=f(t,"number");if(h(u))throw w("Cannot convert a Symbol value to a number");if("string"==typeof u&&u.length>2)if(u=m(u),e=O(u,0),43===e||45===e){if(n=O(u,2),88===n||120===n)return NaN}else if(48===e){switch(O(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=S(u,2),a=o.length,s=0;s<a;s++)if(l=O(o,s),l<48||l>i)return NaN;return parseInt(o,r)}return+u};if(a(b,!_(" 0o1")||!_("0b1")||_("+0x1"))){for(var A,M=function(t){var e=arguments.length<1?0:_(C(t)),n=this;return c(x,n)&&d((function(){y(n)}))?u(Object(e),n,M):e},T=r?p(_):"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(","),I=0;T.length>I;I++)l(_,A=T[I])&&!l(M,A)&&v(M,A,g(_,A));M.prototype=x,x.constructor=M,s(i,b,M,{constructor:!0})}},aa22:function(t,e,n){"use strict";var r=n("3ee2").Buffer,i=r.isEncoding||function(t){switch(t=""+t,t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(t){if(!t)return"utf8";var e;while(1)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function a(t){var e=o(t);if("string"!==typeof e&&(r.isEncoding===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}function s(t){var e;switch(this.encoding=a(t),this.encoding){case"utf16le":this.text=p,this.end=g,e=4;break;case"utf8":this.fillLast=h,e=4;break;case"base64":this.text=v,this.end=y,e=3;break;default:return this.write=m,void(this.end=b)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(e)}function l(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function u(t,e,n){var r=e.length-1;if(r<n)return 0;var i=l(e[r]);return i>=0?(i>0&&(t.lastNeed=i-1),i):--r<n||-2===i?0:(i=l(e[r]),i>=0?(i>0&&(t.lastNeed=i-2),i):--r<n||-2===i?0:(i=l(e[r]),i>=0?(i>0&&(2===i?i=0:t.lastNeed=i-3),i):0))}function c(t,e,n){if(128!==(192&e[0]))return t.lastNeed=0,"<22>";if(t.lastNeed>1&&e.length>1){if(128!==(192&e[1]))return t.lastNeed=1,"<22>";if(t.lastNeed>2&&e.length>2&&128!==(192&e[2]))return t.lastNeed=2,"<22>"}}function h(t){var e=this.lastTotal-this.lastNeed,n=c(this,t,e);return void 0!==n?n:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function f(t,e){var n=u(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var r=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,r),t.toString("utf8",e,r)}function d(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"<22>":e}function p(t,e){if((t.length-e)%2===0){var n=t.toString("utf16le",e);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function g(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,n)}return e}function v(t,e){var n=(t.length-e)%3;return 0===n?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function y(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function m(t){return t.toString(this.encoding)}function b(t){return t&&t.length?this.write(t):""}e.StringDecoder=s,s.prototype.write=function(t){if(0===t.length)return"";var e,n;if(this.lastNeed){if(e=this.fillLast(t),void 0===e)return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<t.length?e?e+this.text(t,n):this.text(t,n):e||""},s.prototype.end=d,s.prototype.text=f,s.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},ab13:function(t,e,n){var r=n("b622"),i=r("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[i]=!1,"/./"[t](e)}catch(r){}}return!1}},ab36:function(t,e,n){var r=n("861d"),i=n("9112");t.exports=function(t,e){r(e)&&"cause"in e&&i(t,"cause",e.cause)}},ab52:function(t,e,n){(function(e){var r=n("566b"),i=function(){},o=function(t){return t.setHeader&&"function"===typeof t.abort},a=function(t){return t.stdio&&Array.isArray(t.stdio)&&3===t.stdio.length},s=function(t,n,l){if("function"===typeof n)return s(t,null,n);n||(n={}),l=r(l||i);var u=t._writableState,c=t._readableState,h=n.readable||!1!==n.readable&&t.readable,f=n.writable||!1!==n.writable&&t.writable,d=!1,p=function(){t.writable||g()},g=function(){f=!1,h||l.call(t)},v=function(){h=!1,f||l.call(t)},y=function(e){l.call(t,e?new Error("exited with error code: "+e):null)},m=function(e){l.call(t,e)},b=function(){e.nextTick(_)},_=function(){if(!d)return(!h||c&&c.ended&&!c.destroyed)&&(!f||u&&u.ended&&!u.destroyed)?void 0:l.call(t,new Error("premature close"))},x=function(){t.req.on("finish",g)};return o(t)?(t.on("complete",g),t.on("abort",b),t.req?x():t.on("request",x)):f&&!u&&(t.on("end",p),t.on("close",p)),a(t)&&t.on("exit",y),t.on("end",v),t.on("finish",g),!1!==n.error&&t.on("error",m),t.on("close",b),function(){d=!0,t.removeListener("complete",g),t.removeListener("abort",b),t.removeListener("request",x),t.req&&t.req.removeListener("finish",g),t.removeListener("end",p),t.removeListener("close",p),t.removeListener("finish",g),t.removeListener("exit",y),t.removeListener("end",v),t.removeListener("error",m),t.removeListener("close",b)}};t.exports=s}).call(this,n("4362"))},ac1f:function(t,e,n){"use strict";var r=n("23e7"),i=n("9263");r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},ad6d:function(t,e,n){"use strict";var r=n("825a");t.exports=function(){var t=r(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},addb:function(t,e,n){var r=n("4dae"),i=Math.floor,o=function(t,e){var n=t.length,l=i(n/2);return n<8?a(t,e):s(t,o(r(t,0,l),e),o(r(t,l),e),e)},a=function(t,e){var n,r,i=t.length,o=1;while(o<i){r=o,n=t[o];while(r&&e(t[r-1],n)>0)t[r]=t[--r];r!==o++&&(t[r]=n)}return t},s=function(t,e,n,r){var i=e.length,o=n.length,a=0,s=0;while(a<i||s<o)t[a+s]=a<i&&s<o?r(e[a],n[s])<=0?e[a++]:n[s++]:a<i?e[a++]:n[s++];return t};t.exports=o},ade3:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("a38e");function i(t,e,n){return e=Object(r["a"])(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},ae10:function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=void 0;var i=r(n("278c")),o=r(n("448a"));function a(t){var e=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(!(t instanceof Array))return console.error("polylineToBezierCurve: Parameter polyline must be an array!"),!1;if(t.length<=2)return console.error("polylineToBezierCurve: Converting to a curve requires at least 3 points!"),!1;var i=t[0],a=t.length-1,u=new Array(a).fill(0).map((function(i,a){return[].concat((0,o["default"])(s(t,a,e,n,r)),[t[a+1]])}));return e&&l(u,i),u.unshift(t[0]),u}function s(t,e){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=t.length;if(!(o<3||e>=o)){var a=e-1;a<0&&(a=n?o+a:0);var s=e+1;s>=o&&(s=n?s-o:o-1);var l=e+2;l>=o&&(l=n?l-o:o-1);var u=t[a],c=t[e],h=t[s],f=t[l];return[[c[0]+r*(h[0]-u[0]),c[1]+r*(h[1]-u[1])],[h[0]-i*(f[0]-c[0]),h[1]-i*(f[1]-c[1])]]}}function l(t,e){var n=t[0],r=t.slice(-1)[0];return t.push([u(r[1],r[2]),u(n[0],e),e]),t}function u(t,e){var n=(0,i["default"])(t,2),r=n[0],o=n[1],a=(0,i["default"])(e,2),s=a[0],l=a[1],u=s-r,c=l-o;return[s+u,l+c]}var c=a;e["default"]=c},ae84:function(t,e,n){"use strict";function r(t){const e=t.split("/");for(let n=0;n<e.length;n++)if("+"!==e[n]){if("#"===e[n])return n===e.length-1;if(-1!==e[n].indexOf("+")||-1!==e[n].indexOf("#"))return!1}return!0}function i(t){if(0===t.length)return"empty_topic_list";for(let e=0;e<t.length;e++)if(!r(t[e]))return t[e];return null}t.exports={validateTopics:i}},ae93:function(t,e,n){"use strict";var r,i,o,a=n("d039"),s=n("1626"),l=n("861d"),u=n("7c73"),c=n("e163"),h=n("cb2d"),f=n("b622"),d=n("c430"),p=f("iterator"),g=!1;[].keys&&(o=[].keys(),"next"in o?(i=c(c(o)),i!==Object.prototype&&(r=i)):g=!0);var v=!l(r)||a((function(){var t={};return r[p].call(t)!==t}));v?r={}:d&&(r=u(r)),s(r[p])||h(r,p,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:g}},aeb0:function(t,e,n){var r=n("9bf2").f;t.exports=function(t,e,n){n in t||r(t,n,{configurable:!0,get:function(){return e[n]},set:function(t){e[n]=t}})}},aebc:function(t,e,n){"use strict";t.exports=i;var r=n("7b6a");function i(t){if(!(this instanceof i))return new i(t);r.call(this,t)}n("3fb5")(i,r),i.prototype._transform=function(t,e,n){n(null,t)}},aed9:function(t,e,n){var r=n("83ab"),i=n("d039");t.exports=r&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},af03:function(t,e,n){var r=n("d039");t.exports=function(t){return r((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))}},aff5:function(t,e,n){var r=n("23e7");r({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},aff9:function(t,e,n){"use strict";t.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}},b041:function(t,e,n){"use strict";var r=n("00ee"),i=n("f5df");t.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},b06d:function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.extendNewGraph=O,e["default"]=e.text=e.bezierCurve=e.smoothline=e.polyline=e.regPolygon=e.sector=e.arc=e.ring=e.rect=e.ellipse=e.circle=void 0;var i=r(n("448a")),o=r(n("278c")),a=r(n("050c")),s=n("5557"),l=n("e169"),u=a["default"].polylineToBezierCurve,c=a["default"].bezierCurveToPolyline,h={shape:{rx:0,ry:0,r:0},validator:function(t){var e=t.shape,n=e.rx,r=e.ry,i=e.r;return"number"===typeof n&&"number"===typeof r&&"number"===typeof i||(console.error("Circle shape configuration is abnormal!"),!1)},draw:function(t,e){var n=t.ctx,r=e.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(t,e){var n=e.shape,r=n.rx,i=n.ry,o=n.r;return(0,s.checkPointIsInCircle)(t,r,i,o)},setGraphCenter:function(t,e){var n=e.shape,r=e.style,i=n.rx,o=n.ry;r.graphCenter=[i,o]},move:function(t,e){var n=t.movementX,r=t.movementY,i=e.shape;this.attr("shape",{rx:i.rx+n,ry:i.ry+r})}};e.circle=h;var f={shape:{rx:0,ry:0,hr:0,vr:0},validator:function(t){var e=t.shape,n=e.rx,r=e.ry,i=e.hr,o=e.vr;return"number"===typeof n&&"number"===typeof r&&"number"===typeof i&&"number"===typeof o||(console.error("Ellipse shape configuration is abnormal!"),!1)},draw:function(t,e){var n=t.ctx,r=e.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(t,e){var n=e.shape,r=n.rx,i=n.ry,o=n.hr,a=n.vr,l=Math.max(o,a),u=Math.min(o,a),c=Math.sqrt(l*l-u*u),h=[r-c,i],f=[r+c,i],d=(0,s.getTwoPointDistance)(t,h)+(0,s.getTwoPointDistance)(t,f);return d<=2*l},setGraphCenter:function(t,e){var n=e.shape,r=e.style,i=n.rx,o=n.ry;r.graphCenter=[i,o]},move:function(t,e){var n=t.movementX,r=t.movementY,i=e.shape;this.attr("shape",{rx:i.rx+n,ry:i.ry+r})}};e.ellipse=f;var d={shape:{x:0,y:0,w:0,h:0},validator:function(t){var e=t.shape,n=e.x,r=e.y,i=e.w,o=e.h;return"number"===typeof n&&"number"===typeof r&&"number"===typeof i&&"number"===typeof o||(console.error("Rect shape configuration is abnormal!"),!1)},draw:function(t,e){var n=t.ctx,r=e.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(t,e){var n=e.shape,r=n.x,i=n.y,o=n.w,a=n.h;return(0,s.checkPointIsInRect)(t,r,i,o,a)},setGraphCenter:function(t,e){var n=e.shape,r=e.style,i=n.x,o=n.y,a=n.w,s=n.h;r.graphCenter=[i+a/2,o+s/2]},move:function(t,e){var n=t.movementX,r=t.movementY,i=e.shape;this.attr("shape",{x:i.x+n,y:i.y+r})}};e.rect=d;var p={shape:{rx:0,ry:0,r:0},validator:function(t){var e=t.shape,n=e.rx,r=e.ry,i=e.r;return"number"===typeof n&&"number"===typeof r&&"number"===typeof i||(console.error("Ring shape configuration is abnormal!"),!1)},draw:function(t,e){var n=t.ctx,r=e.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(t,e){var n=e.shape,r=e.style,i=n.rx,o=n.ry,a=n.r,l=r.lineWidth,u=l/2,c=a-u,h=a+u,f=(0,s.getTwoPointDistance)(t,[i,o]);return f>=c&&f<=h},setGraphCenter:function(t,e){var n=e.shape,r=e.style,i=n.rx,o=n.ry;r.graphCenter=[i,o]},move:function(t,e){var n=t.movementX,r=t.movementY,i=e.shape;this.attr("shape",{rx:i.rx+n,ry:i.ry+r})}};e.ring=p;var g={shape:{rx:0,ry:0,r:0,startAngle:0,endAngle:0,clockWise:!0},validator:function(t){var e=t.shape,n=["rx","ry","r","startAngle","endAngle"];return!n.find((function(t){return"number"!==typeof e[t]}))||(console.error("Arc shape configuration is abnormal!"),!1)},draw:function(t,e){var n=t.ctx,r=e.shape;n.beginPath();var i=r.rx,o=r.ry,a=r.r,s=r.startAngle,l=r.endAngle,u=r.clockWise;n.arc(i,o,a>0?a:.001,s,l,!u),n.stroke(),n.closePath()},hoverCheck:function(t,e){var n=e.shape,r=e.style,i=n.rx,o=n.ry,a=n.r,l=n.startAngle,u=n.endAngle,c=n.clockWise,h=r.lineWidth,f=h/2,d=a-f,p=a+f;return!(0,s.checkPointIsInSector)(t,i,o,d,l,u,c)&&(0,s.checkPointIsInSector)(t,i,o,p,l,u,c)},setGraphCenter:function(t,e){var n=e.shape,r=e.style,i=n.rx,o=n.ry;r.graphCenter=[i,o]},move:function(t,e){var n=t.movementX,r=t.movementY,i=e.shape;this.attr("shape",{rx:i.rx+n,ry:i.ry+r})}};e.arc=g;var v={shape:{rx:0,ry:0,r:0,startAngle:0,endAngle:0,clockWise:!0},validator:function(t){var e=t.shape,n=["rx","ry","r","startAngle","endAngle"];return!n.find((function(t){return"number"!==typeof e[t]}))||(console.error("Sector shape configuration is abnormal!"),!1)},draw:function(t,e){var n=t.ctx,r=e.shape;n.beginPath();var i=r.rx,o=r.ry,a=r.r,s=r.startAngle,l=r.endAngle,u=r.clockWise;n.arc(i,o,a>0?a:.01,s,l,!u),n.lineTo(i,o),n.closePath(),n.stroke(),n.fill()},hoverCheck:function(t,e){var n=e.shape,r=n.rx,i=n.ry,o=n.r,a=n.startAngle,l=n.endAngle,u=n.clockWise;return(0,s.checkPointIsInSector)(t,r,i,o,a,l,u)},setGraphCenter:function(t,e){var n=e.shape,r=e.style,i=n.rx,o=n.ry;r.graphCenter=[i,o]},move:function(t,e){var n=t.movementX,r=t.movementY,i=e.shape,o=i.rx,a=i.ry;this.attr("shape",{rx:o+n,ry:a+r})}};e.sector=v;var y={shape:{rx:0,ry:0,r:0,side:0},validator:function(t){var e=t.shape,n=e.side,r=["rx","ry","r","side"];return r.find((function(t){return"number"!==typeof e[t]}))?(console.error("RegPolygon shape configuration is abnormal!"),!1):!(n<3)||(console.error("RegPolygon at least trigon!"),!1)},draw:function(t,e){var n=t.ctx,r=e.shape,i=e.cache;n.beginPath();var o=r.rx,a=r.ry,u=r.r,c=r.side;if(!i.points||i.rx!==o||i.ry!==a||i.r!==u||i.side!==c){var h=(0,s.getRegularPolygonPoints)(o,a,u,c);Object.assign(i,{points:h,rx:o,ry:a,r:u,side:c})}var f=i.points;(0,l.drawPolylinePath)(n,f),n.closePath(),n.stroke(),n.fill()},hoverCheck:function(t,e){var n=e.cache,r=n.points;return(0,s.checkPointIsInPolygon)(t,r)},setGraphCenter:function(t,e){var n=e.shape,r=e.style,i=n.rx,o=n.ry;r.graphCenter=[i,o]},move:function(t,e){var n=t.movementX,r=t.movementY,i=e.shape,a=e.cache,s=i.rx,l=i.ry;a.rx+=n,a.ry+=r,this.attr("shape",{rx:s+n,ry:l+r}),a.points=a.points.map((function(t){var e=(0,o["default"])(t,2),i=e[0],a=e[1];return[i+n,a+r]}))}};e.regPolygon=y;var m={shape:{points:[],close:!1},validator:function(t){var e=t.shape,n=e.points;return n instanceof Array||(console.error("Polyline points should be an array!"),!1)},draw:function(t,e){var n=t.ctx,r=e.shape,i=e.style.lineWidth;n.beginPath();var o=r.points,a=r.close;1===i&&(o=(0,s.eliminateBlur)(o)),(0,l.drawPolylinePath)(n,o),a?(n.closePath(),n.fill(),n.stroke()):n.stroke()},hoverCheck:function(t,e){var n=e.shape,r=e.style,i=n.points,o=n.close,a=r.lineWidth;return o?(0,s.checkPointIsInPolygon)(t,i):(0,s.checkPointIsNearPolyline)(t,i,a)},setGraphCenter:function(t,e){var n=e.shape,r=e.style,i=n.points;r.graphCenter=i[0]},move:function(t,e){var n=t.movementX,r=t.movementY,i=e.shape,a=i.points,s=a.map((function(t){var e=(0,o["default"])(t,2),i=e[0],a=e[1];return[i+n,a+r]}));this.attr("shape",{points:s})}};e.polyline=m;var b={shape:{points:[],close:!1},validator:function(t){var e=t.shape,n=e.points;return n instanceof Array||(console.error("Smoothline points should be an array!"),!1)},draw:function(t,e){var n=t.ctx,r=e.shape,i=e.cache,o=r.points,a=r.close;if(!i.points||i.points.toString()!==o.toString()){var h=u(o,a),f=c(h);Object.assign(i,{points:(0,s.deepClone)(o,!0),bezierCurve:h,hoverPoints:f})}var d=i.bezierCurve;n.beginPath(),(0,l.drawBezierCurvePath)(n,d.slice(1),d[0]),a?(n.closePath(),n.fill(),n.stroke()):n.stroke()},hoverCheck:function(t,e){var n=e.cache,r=e.shape,i=e.style,o=n.hoverPoints,a=r.close,l=i.lineWidth;return a?(0,s.checkPointIsInPolygon)(t,o):(0,s.checkPointIsNearPolyline)(t,o,l)},setGraphCenter:function(t,e){var n=e.shape,r=e.style,i=n.points;r.graphCenter=i[0]},move:function(t,e){var n=t.movementX,r=t.movementY,a=e.shape,s=e.cache,l=a.points,u=l.map((function(t){var e=(0,o["default"])(t,2),i=e[0],a=e[1];return[i+n,a+r]}));s.points=u;var c=(0,o["default"])(s.bezierCurve[0],2),h=c[0],f=c[1],d=s.bezierCurve.slice(1);s.bezierCurve=[[h+n,f+r]].concat((0,i["default"])(d.map((function(t){return t.map((function(t){var e=(0,o["default"])(t,2),i=e[0],a=e[1];return[i+n,a+r]}))})))),s.hoverPoints=s.hoverPoints.map((function(t){var e=(0,o["default"])(t,2),i=e[0],a=e[1];return[i+n,a+r]})),this.attr("shape",{points:u})}};e.smoothline=b;var _={shape:{points:[],close:!1},validator:function(t){var e=t.shape,n=e.points;return n instanceof Array||(console.error("BezierCurve points should be an array!"),!1)},draw:function(t,e){var n=t.ctx,r=e.shape,i=e.cache,o=r.points,a=r.close;if(!i.points||i.points.toString()!==o.toString()){var u=c(o,20);Object.assign(i,{points:(0,s.deepClone)(o,!0),hoverPoints:u})}n.beginPath(),(0,l.drawBezierCurvePath)(n,o.slice(1),o[0]),a?(n.closePath(),n.fill(),n.stroke()):n.stroke()},hoverCheck:function(t,e){var n=e.cache,r=e.shape,i=e.style,o=n.hoverPoints,a=r.close,l=i.lineWidth;return a?(0,s.checkPointIsInPolygon)(t,o):(0,s.checkPointIsNearPolyline)(t,o,l)},setGraphCenter:function(t,e){var n=e.shape,r=e.style,i=n.points;r.graphCenter=i[0]},move:function(t,e){var n=t.movementX,r=t.movementY,a=e.shape,s=e.cache,l=a.points,u=(0,o["default"])(l[0],2),c=u[0],h=u[1],f=l.slice(1),d=[[c+n,h+r]].concat((0,i["default"])(f.map((function(t){return t.map((function(t){var e=(0,o["default"])(t,2),i=e[0],a=e[1];return[i+n,a+r]}))}))));s.points=d,s.hoverPoints=s.hoverPoints.map((function(t){var e=(0,o["default"])(t,2),i=e[0],a=e[1];return[i+n,a+r]})),this.attr("shape",{points:d})}};e.bezierCurve=_;var x={shape:{content:"",position:[],maxWidth:void 0,rowGap:0},validator:function(t){var e=t.shape,n=e.content,r=e.position,i=e.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(t,e){var n=t.ctx,r=e.shape,a=r.content,s=r.position,l=r.maxWidth,u=r.rowGap,c=n.textBaseline,h=n.font,f=parseInt(h.replace(/\D/g,"")),d=s,p=(0,o["default"])(d,2),g=p[0],v=p[1];a=a.split("\n");var y=a.length,m=f+u,b=y*m-u,_=0;"middle"===c&&(_=b/2,v+=f/2),"bottom"===c&&(_=b,v+=f),s=new Array(y).fill(0).map((function(t,e){return[g,v+e*m-_]})),n.beginPath(),a.forEach((function(t,e){n.fillText.apply(n,[t].concat((0,i["default"])(s[e]),[l])),n.strokeText.apply(n,[t].concat((0,i["default"])(s[e]),[l]))})),n.closePath()},hoverCheck:function(t,e){e.shape,e.style;return!1},setGraphCenter:function(t,e){var n=e.shape,r=e.style,o=n.position;r.graphCenter=(0,i["default"])(o)},move:function(t,e){var n=t.movementX,r=t.movementY,i=e.shape,a=(0,o["default"])(i.position,2),s=a[0],l=a[1];this.attr("shape",{position:[s+n,l+r]})}};e.text=x;var w=new Map([["circle",h],["ellipse",f],["rect",d],["ring",p],["arc",g],["sector",v],["regPolygon",y],["polyline",m],["smoothline",b],["bezierCurve",_],["text",x]]),S=w;function O(t,e){t&&e?e.shape?e.validator?e.draw?w.set(t,e):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!")}e["default"]=S},b0c0:function(t,e,n){var r=n("83ab"),i=n("5e77").EXISTS,o=n("e330"),a=n("9bf2").f,s=Function.prototype,l=o(s.toString),u=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,c=o(u.exec),h="name";r&&!i&&a(s,h,{configurable:!0,get:function(){try{return c(u,l(this))[1]}catch(t){return""}}})},b289:function(t,e,n){(function(e){const n=t.exports;n.types={0:"reserved",1:"connect",2:"connack",3:"publish",4:"puback",5:"pubrec",6:"pubrel",7:"pubcomp",8:"subscribe",9:"suback",10:"unsubscribe",11:"unsuback",12:"pingreq",13:"pingresp",14:"disconnect",15:"auth"},n.codes={};for(const t in n.types){const e=n.types[t];n.codes[e]=t}n.CMD_SHIFT=4,n.CMD_MASK=240,n.DUP_MASK=8,n.QOS_MASK=3,n.QOS_SHIFT=1,n.RETAIN_MASK=1,n.VARBYTEINT_MASK=127,n.VARBYTEINT_FIN_MASK=128,n.VARBYTEINT_MAX=268435455,n.SESSIONPRESENT_MASK=1,n.SESSIONPRESENT_HEADER=e.from([n.SESSIONPRESENT_MASK]),n.CONNACK_HEADER=e.from([n.codes.connack<<n.CMD_SHIFT]),n.USERNAME_MASK=128,n.PASSWORD_MASK=64,n.WILL_RETAIN_MASK=32,n.WILL_QOS_MASK=24,n.WILL_QOS_SHIFT=3,n.WILL_FLAG_MASK=4,n.CLEAN_SESSION_MASK=2,n.CONNECT_HEADER=e.from([n.codes.connect<<n.CMD_SHIFT]),n.properties={sessionExpiryInterval:17,willDelayInterval:24,receiveMaximum:33,maximumPacketSize:39,topicAliasMaximum:34,requestResponseInformation:25,requestProblemInformation:23,userProperties:38,authenticationMethod:21,authenticationData:22,payloadFormatIndicator:1,messageExpiryInterval:2,contentType:3,responseTopic:8,correlationData:9,maximumQoS:36,retainAvailable:37,assignedClientIdentifier:18,reasonString:31,wildcardSubscriptionAvailable:40,subscriptionIdentifiersAvailable:41,sharedSubscriptionAvailable:42,serverKeepAlive:19,responseInformation:26,serverReference:28,topicAlias:35,subscriptionIdentifier:11},n.propertiesCodes={};for(const t in n.properties){const e=n.properties[t];n.propertiesCodes[e]=t}function r(t){return[0,1,2].map(r=>[0,1].map(i=>[0,1].map(o=>{const a=e.alloc(1);return a.writeUInt8(n.codes[t]<<n.CMD_SHIFT|(i?n.DUP_MASK:0)|r<<n.QOS_SHIFT|o,0,!0),a})))}n.propertiesTypes={sessionExpiryInterval:"int32",willDelayInterval:"int32",receiveMaximum:"int16",maximumPacketSize:"int32",topicAliasMaximum:"int16",requestResponseInformation:"byte",requestProblemInformation:"byte",userProperties:"pair",authenticationMethod:"string",authenticationData:"binary",payloadFormatIndicator:"byte",messageExpiryInterval:"int32",contentType:"string",responseTopic:"string",correlationData:"binary",maximumQoS:"int8",retainAvailable:"byte",assignedClientIdentifier:"string",reasonString:"string",wildcardSubscriptionAvailable:"byte",subscriptionIdentifiersAvailable:"byte",sharedSubscriptionAvailable:"byte",serverKeepAlive:"int16",responseInformation:"string",serverReference:"string",topicAlias:"int16",subscriptionIdentifier:"var"},n.PUBLISH_HEADER=r("publish"),n.SUBSCRIBE_HEADER=r("subscribe"),n.SUBSCRIBE_OPTIONS_QOS_MASK=3,n.SUBSCRIBE_OPTIONS_NL_MASK=1,n.SUBSCRIBE_OPTIONS_NL_SHIFT=2,n.SUBSCRIBE_OPTIONS_RAP_MASK=1,n.SUBSCRIBE_OPTIONS_RAP_SHIFT=3,n.SUBSCRIBE_OPTIONS_RH_MASK=3,n.SUBSCRIBE_OPTIONS_RH_SHIFT=4,n.SUBSCRIBE_OPTIONS_RH=[0,16,32],n.SUBSCRIBE_OPTIONS_NL=4,n.SUBSCRIBE_OPTIONS_RAP=8,n.SUBSCRIBE_OPTIONS_QOS=[0,1,2],n.UNSUBSCRIBE_HEADER=r("unsubscribe"),n.ACKS={unsuback:r("unsuback"),puback:r("puback"),pubcomp:r("pubcomp"),pubrel:r("pubrel"),pubrec:r("pubrec")},n.SUBACK_HEADER=e.from([n.codes.suback<<n.CMD_SHIFT]),n.VERSION3=e.from([3]),n.VERSION4=e.from([4]),n.VERSION5=e.from([5]),n.VERSION131=e.from([131]),n.VERSION132=e.from([132]),n.QOS=[0,1,2].map(t=>e.from([t])),n.EMPTY={pingreq:e.from([n.codes.pingreq<<4,0]),pingresp:e.from([n.codes.pingresp<<4,0]),disconnect:e.from([n.codes.disconnect<<4,0])}}).call(this,n("1c35").Buffer)},b311:function(t,e,n){
|
||
/*!
|
||
* clipboard.js v2.0.8
|
||
* https://clipboardjs.com/
|
||
*
|
||
* Licensed MIT © Zeno Rocha
|
||
*/
|
||
(function(e,n){t.exports=n()})(0,(function(){return function(){var t={134:function(t,e,n){"use strict";n.d(e,{default:function(){return M}});var r=n(279),i=n.n(r),o=n(370),a=n.n(o),s=n(817),l=n.n(s);function u(t){return u="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function f(t,e,n){return e&&h(t.prototype,e),n&&h(t,n),t}var d=function(){function t(e){c(this,t),this.resolveOptions(e),this.initSelection()}return f(t,[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"createFakeElement",value:function(){var t="rtl"===document.documentElement.getAttribute("dir");this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px";var e=window.pageYOffset||document.documentElement.scrollTop;return this.fakeElem.style.top="".concat(e,"px"),this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.fakeElem}},{key:"selectFake",value:function(){var t=this,e=this.createFakeElement();this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.container.appendChild(e),this.selectedText=l()(e),this.copyText(),this.removeFake()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=l()(this.target),this.copyText()}},{key:"copyText",value:function(){var t;try{t=document.execCommand(this.action)}catch(e){t=!1}this.handleResult(t)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==u(t)||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}]),t}(),p=d;function g(t){return g="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g(t)}function v(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function m(t,e,n){return e&&y(t.prototype,e),n&&y(t,n),t}function b(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_(t,e)}function _(t,e){return _=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},_(t,e)}function x(t){var e=O();return function(){var n,r=C(t);if(e){var i=C(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return w(this,n)}}function w(t,e){return!e||"object"!==g(e)&&"function"!==typeof e?S(t):e}function S(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function O(){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(t){return!1}}function C(t){return C=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},C(t)}function k(t,e){var n="data-clipboard-".concat(t);if(e.hasAttribute(n))return e.getAttribute(n)}var A=function(t){b(n,t);var e=x(n);function n(t,r){var i;return v(this,n),i=e.call(this),i.resolveOptions(r),i.listenClick(t),i}return m(n,[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"===typeof t.action?t.action:this.defaultAction,this.target="function"===typeof t.target?t.target:this.defaultTarget,this.text="function"===typeof t.text?t.text:this.defaultText,this.container="object"===g(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=a()(t,"click",(function(t){return e.onClick(t)}))}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new p({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){return k("action",t)}},{key:"defaultTarget",value:function(t){var e=k("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return k("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"===typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach((function(t){n=n&&!!document.queryCommandSupported(t)})),n}}]),n}(i()),M=A},828:function(t){var e=9;if("undefined"!==typeof Element&&!Element.prototype.matches){var n=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}function r(t,n){while(t&&t.nodeType!==e){if("function"===typeof t.matches&&t.matches(n))return t;t=t.parentNode}}t.exports=r},438:function(t,e,n){var r=n(828);function i(t,e,n,r,i){var o=a.apply(this,arguments);return t.addEventListener(n,o,i),{destroy:function(){t.removeEventListener(n,o,i)}}}function o(t,e,n,r,o){return"function"===typeof t.addEventListener?i.apply(null,arguments):"function"===typeof n?i.bind(null,document).apply(null,arguments):("string"===typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,(function(t){return i(t,e,n,r,o)})))}function a(t,e,n,i){return function(n){n.delegateTarget=r(n.target,e),n.delegateTarget&&i.call(t,n)}}t.exports=o},879:function(t,e){e.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},e.nodeList=function(t){var n=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in t&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"===typeof t||t instanceof String},e.fn=function(t){var e=Object.prototype.toString.call(t);return"[object Function]"===e}},370:function(t,e,n){var r=n(879),i=n(438);function o(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!r.string(e))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(t))return a(t,e,n);if(r.nodeList(t))return s(t,e,n);if(r.string(t))return l(t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function a(t,e,n){return t.addEventListener(e,n),{destroy:function(){t.removeEventListener(e,n)}}}function s(t,e,n){return Array.prototype.forEach.call(t,(function(t){t.addEventListener(e,n)})),{destroy:function(){Array.prototype.forEach.call(t,(function(t){t.removeEventListener(e,n)}))}}}function l(t,e,n){return i(document.body,t,e,n)}t.exports=o},817:function(t){function e(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var r=window.getSelection(),i=document.createRange();i.selectNodeContents(t),r.removeAllRanges(),r.addRange(i),e=r.toString()}return e}t.exports=e},279:function(t){function e(){}e.prototype={on:function(t,e,n){var r=this.e||(this.e={});return(r[t]||(r[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var r=this;function i(){r.off(t,i),e.apply(n,arguments)}return i._=e,this.on(t,i,n)},emit:function(t){var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),r=0,i=n.length;for(r;r<i;r++)n[r].fn.apply(n[r].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),r=n[t],i=[];if(r&&e)for(var o=0,a=r.length;o<a;o++)r[o].fn!==e&&r[o].fn._!==e&&i.push(r[o]);return i.length?n[t]=i:delete n[t],this}},t.exports=e,t.exports.TinyEmitter=e}},e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}return function(){n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,{a:e}),e}}(),function(){n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})}}(),function(){n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),n(134)}().default}))},b367:function(t,e,n){var r=n("5524"),i=n("ef08"),o="__core-js_shared__",a=i[o]||(i[o]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n("e444")?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},b383:function(t,e,n){"use strict";e.decode=e.parse=n("91dd"),e.encode=e.stringify=n("e099")},b42e:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var e=+t;return(e>0?r:n)(e)}},b4de:function(t,e,n){e=t.exports=n("3bd2"),e.Stream=e,e.Readable=e,e.Writable=n("1beb"),e.Duplex=n("030c"),e.Transform=n("7b6a"),e.PassThrough=n("aebc"),e.finished=n("ddda"),e.pipeline=n("32c3")},b4f8:function(t,e,n){var r=n("23e7"),i=n("d066"),o=n("1a2d"),a=n("577e"),s=n("5692"),l=n("0b43"),u=s("string-to-symbol-registry"),c=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!l},{for:function(t){var e=a(t);if(o(u,e))return u[e];var n=i("Symbol")(e);return u[e]=n,c[n]=e,n}})},b50d:function(t,e,n){"use strict";var r=n("c532"),i=n("467f"),o=n("7aac"),a=n("30b5"),s=n("83b9"),l=n("c345"),u=n("3934"),c=n("2d83"),h=n("2444"),f=n("7a77");t.exports=function(t){return new Promise((function(e,n){var d,p=t.data,g=t.headers,v=t.responseType;function y(){t.cancelToken&&t.cancelToken.unsubscribe(d),t.signal&&t.signal.removeEventListener("abort",d)}r.isFormData(p)&&delete g["Content-Type"];var m=new XMLHttpRequest;if(t.auth){var b=t.auth.username||"",_=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";g.Authorization="Basic "+btoa(b+":"+_)}var x=s(t.baseURL,t.url);function w(){if(m){var r="getAllResponseHeaders"in m?l(m.getAllResponseHeaders()):null,o=v&&"text"!==v&&"json"!==v?m.response:m.responseText,a={data:o,status:m.status,statusText:m.statusText,headers:r,config:t,request:m};i((function(t){e(t),y()}),(function(t){n(t),y()}),a),m=null}}if(m.open(t.method.toUpperCase(),a(x,t.params,t.paramsSerializer),!0),m.timeout=t.timeout,"onloadend"in m?m.onloadend=w:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(w)},m.onabort=function(){m&&(n(c("Request aborted",t,"ECONNABORTED",m)),m=null)},m.onerror=function(){n(c("Network Error",t,null,m)),m=null},m.ontimeout=function(){var e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",r=t.transitional||h.transitional;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(c(e,t,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",m)),m=null},r.isStandardBrowserEnv()){var S=(t.withCredentials||u(x))&&t.xsrfCookieName?o.read(t.xsrfCookieName):void 0;S&&(g[t.xsrfHeaderName]=S)}"setRequestHeader"in m&&r.forEach(g,(function(t,e){"undefined"===typeof p&&"content-type"===e.toLowerCase()?delete g[e]:m.setRequestHeader(e,t)})),r.isUndefined(t.withCredentials)||(m.withCredentials=!!t.withCredentials),v&&"json"!==v&&(m.responseType=t.responseType),"function"===typeof t.onDownloadProgress&&m.addEventListener("progress",t.onDownloadProgress),"function"===typeof t.onUploadProgress&&m.upload&&m.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(d=function(t){m&&(n(!t||t&&t.type?new f("canceled"):t),m.abort(),m=null)},t.cancelToken&&t.cancelToken.subscribe(d),t.signal&&(t.signal.aborted?d():t.signal.addEventListener("abort",d))),p||(p=null),m.send(p)}))}},b575:function(t,e,n){var r,i,o,a,s,l,u,c,h=n("da84"),f=n("0366"),d=n("06cf").f,p=n("2cf4").set,g=n("1cdc"),v=n("d4c3"),y=n("a4b4"),m=n("605d"),b=h.MutationObserver||h.WebKitMutationObserver,_=h.document,x=h.process,w=h.Promise,S=d(h,"queueMicrotask"),O=S&&S.value;O||(r=function(){var t,e;m&&(t=x.domain)&&t.exit();while(i){e=i.fn,i=i.next;try{e()}catch(n){throw i?a():o=void 0,n}}o=void 0,t&&t.enter()},g||m||y||!b||!_?!v&&w&&w.resolve?(u=w.resolve(void 0),u.constructor=w,c=f(u.then,u),a=function(){c(r)}):m?a=function(){x.nextTick(r)}:(p=f(p,h),a=function(){p(r)}):(s=!0,l=_.createTextNode(""),new b(r).observe(l,{characterData:!0}),a=function(){l.data=s=!s})),t.exports=O||function(t){var e={fn:t,next:void 0};o&&(o.next=e),i||(i=e,a()),o=e}},b622:function(t,e,n){var r=n("da84"),i=n("5692"),o=n("1a2d"),a=n("90e3"),s=n("04f8"),l=n("fdbf"),u=i("wks"),c=r.Symbol,h=c&&c["for"],f=l?c:c&&c.withoutSetter||a;t.exports=function(t){if(!o(u,t)||!s&&"string"!=typeof u[t]){var e="Symbol."+t;s&&o(c,t)?u[t]=c[t]:u[t]=l&&h?h(e):f(e)}return u[t]}},b636:function(t,e,n){var r=n("e065");r("asyncIterator")},b64b:function(t,e,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(t){return o(i(t))}})},b680:function(t,e,n){"use strict";var r=n("23e7"),i=n("e330"),o=n("5926"),a=n("408a"),s=n("1148"),l=n("d039"),u=RangeError,c=String,h=Math.floor,f=i(s),d=i("".slice),p=i(1..toFixed),g=function(t,e,n){return 0===e?n:e%2===1?g(t,e-1,n*t):g(t*t,e/2,n)},v=function(t){var e=0,n=t;while(n>=4096)e+=12,n/=4096;while(n>=2)e+=1,n/=2;return e},y=function(t,e,n){var r=-1,i=n;while(++r<6)i+=e*t[r],t[r]=i%1e7,i=h(i/1e7)},m=function(t,e){var n=6,r=0;while(--n>=0)r+=t[n],t[n]=h(r/e),r=r%e*1e7},b=function(t){var e=6,n="";while(--e>=0)if(""!==n||0===e||0!==t[e]){var r=c(t[e]);n=""===n?r:n+f("0",7-r.length)+r}return n},_=l((function(){return"0.000"!==p(8e-5,3)||"1"!==p(.9,0)||"1.25"!==p(1.255,2)||"1000000000000000128"!==p(0xde0b6b3a7640080,0)}))||!l((function(){p({})}));r({target:"Number",proto:!0,forced:_},{toFixed:function(t){var e,n,r,i,s=a(this),l=o(t),h=[0,0,0,0,0,0],p="",_="0";if(l<0||l>20)throw u("Incorrect fraction digits");if(s!=s)return"NaN";if(s<=-1e21||s>=1e21)return c(s);if(s<0&&(p="-",s=-s),s>1e-21)if(e=v(s*g(2,69,1))-69,n=e<0?s*g(2,-e,1):s/g(2,e,1),n*=4503599627370496,e=52-e,e>0){y(h,0,n),r=l;while(r>=7)y(h,1e7,0),r-=7;y(h,g(10,r,1),0),r=e-1;while(r>=23)m(h,1<<23),r-=23;m(h,1<<r),y(h,1,1),m(h,2),_=b(h)}else y(h,0,n),y(h,1<<-e,0),_=b(h)+f("0",l);return l>0?(i=_.length,_=p+(i<=l?"0."+f("0",l-i)+_:d(_,0,i-l)+"."+d(_,i-l))):_=p+_,_}})},b727:function(t,e,n){var r=n("0366"),i=n("e330"),o=n("44ad"),a=n("7b0b"),s=n("07fa"),l=n("65f0"),u=i([].push),c=function(t){var e=1==t,n=2==t,i=3==t,c=4==t,h=6==t,f=7==t,d=5==t||h;return function(p,g,v,y){for(var m,b,_=a(p),x=o(_),w=r(g,v),S=s(x),O=0,C=y||l,k=e?C(p,S):n||f?C(p,0):void 0;S>O;O++)if((d||O in x)&&(m=x[O],b=w(m,O,_),t))if(e)k[O]=b;else if(b)switch(t){case 3:return!0;case 5:return m;case 6:return O;case 2:u(k,m)}else switch(t){case 4:return!1;case 7:u(k,m)}return h?-1:i||c?c:k}};t.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},b72d:function(t,e,n){},b7d1:function(t,e,n){(function(e){function n(t,e){if(r("noDeprecation"))return t;var n=!1;function i(){if(!n){if(r("throwDeprecation"))throw new Error(e);r("traceDeprecation")?console.trace(e):console.warn(e),n=!0}return t.apply(this,arguments)}return i}function r(t){try{if(!e.localStorage)return!1}catch(r){return!1}var n=e.localStorage[t];return null!=n&&"true"===String(n).toLowerCase()}t.exports=n}).call(this,n("c8ba"))},b85c:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),n("d9e2");var r=n("06c5");function i(t,e){var n="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=Object(r["a"])(t))||e&&t&&"number"===typeof t.length){n&&(t=n);var i=0,o=function(){};return{s:o,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:o}}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 a,s=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){l=!0,a=t},f:function(){try{s||null==n["return"]||n["return"]()}finally{if(l)throw a}}}}},b980:function(t,e,n){var r=n("d039"),i=n("5c6c");t.exports=!r((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",i(1,7)),7!==t.stack)}))},b98b:function(t,e,n){t.exports=n("faa1").EventEmitter},b9c7:function(t,e,n){n("e507"),t.exports=n("5524").Object.assign},ba01:function(t,e,n){t.exports=n("051b")},bb2f:function(t,e,n){var r=n("d039");t.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},bc3a:function(t,e,n){t.exports=n("cee4")},bc96:function(t,e,n){},be3f:function(t,e,n){"use strict";(function(e){var r=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=u;var i=n("85f8"),o=n("13a8");n("3fb5")(u,i);for(var a=r(o.prototype),s=0;s<a.length;s++){var l=a[s];u.prototype[l]||(u.prototype[l]=o.prototype[l])}function u(t){if(!(this instanceof u))return new u(t);i.call(this,t),o.call(this,t),this.allowHalfOpen=!0,t&&(!1===t.readable&&(this.readable=!1),!1===t.writable&&(this.writable=!1),!1===t.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",c)))}function c(){this._writableState.ended||e.nextTick(h,this)}function h(t){t.end()}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}})}).call(this,n("4362"))},becb:function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.filterNonNumber=s,e.deepMerge=l,e.mulAdd=u,e.mergeSameStackData=c,e.getTwoPointDistance=h,e.getLinearGradientColor=f,e.getPolylineLength=d,e.getPointToLineDistance=p,e.initNeedSeries=g,e.radianToAngle=v;var i=r(n("448a")),o=r(n("7037")),a=n("5557");function s(t){return t.filter((function(t){return"number"===typeof t}))}function l(t,e){for(var n in e)t[n]&&"object"===(0,o["default"])(t[n])?l(t[n],e[n]):"object"!==(0,o["default"])(e[n])?t[n]=e[n]:t[n]=(0,a.deepClone)(e[n],!0);return t}function u(t){return t=s(t),t.reduce((function(t,e){return t+e}),0)}function c(t,e){var n=t.stack;if(!n)return(0,i["default"])(t.data);var r=e.filter((function(t){var e=t.stack;return e===n})),o=r.findIndex((function(e){var n=e.data;return n===t.data})),a=r.splice(0,o+1).map((function(t){var e=t.data;return e})),s=a[0].length;return new Array(s).fill(0).map((function(t,e){return u(a.map((function(t){return t[e]})))}))}function h(t,e){var n=Math.abs(t[0]-e[0]),r=Math.abs(t[1]-e[1]);return Math.sqrt(n*n+r*r)}function f(t,e,n,r){if(t&&e&&n&&r.length){var o=r;"string"===typeof o&&(o=[r,r]);var a=t.createLinearGradient.apply(t,(0,i["default"])(e).concat((0,i["default"])(n))),s=1/(o.length-1);return o.forEach((function(t,e){return a.addColorStop(s*e,t)})),a}}function d(t){var e=new Array(t.length-1).fill(0).map((function(e,n){return[t[n],t[n+1]]})),n=e.map((function(t){return h.apply(void 0,(0,i["default"])(t))}));return u(n)}function p(t,e,n){var r=h(t,e),i=h(t,n),o=h(e,n);return.5*Math.sqrt((r+i+o)*(r+i-o)*(r+o-i)*(i+o-r))/o}function g(t,e,n){return t=t.filter((function(t){var e=t.type;return e===n})),t=t.map((function(t){return l((0,a.deepClone)(e,!0),t)})),t.filter((function(t){var e=t.show;return e}))}function v(t){return t/Math.PI*180}},bee2:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("a38e");function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,Object(r["a"])(i.key),i)}}function o(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}},bf09:function(t,e,n){"use strict";var r=n("9bfc").codes.ERR_STREAM_PREMATURE_CLOSE;function i(t){var e=!1;return function(){if(!e){e=!0;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];t.apply(this,r)}}}function o(){}function a(t){return t.setHeader&&"function"===typeof t.abort}function s(t,e,n){if("function"===typeof e)return s(t,null,e);e||(e={}),n=i(n||o);var l=e.readable||!1!==e.readable&&t.readable,u=e.writable||!1!==e.writable&&t.writable,c=function(){t.writable||f()},h=t._writableState&&t._writableState.finished,f=function(){u=!1,h=!0,l||n.call(t)},d=t._readableState&&t._readableState.endEmitted,p=function(){l=!1,d=!0,u||n.call(t)},g=function(e){n.call(t,e)},v=function(){var e;return l&&!d?(t._readableState&&t._readableState.ended||(e=new r),n.call(t,e)):u&&!h?(t._writableState&&t._writableState.ended||(e=new r),n.call(t,e)):void 0},y=function(){t.req.on("finish",f)};return a(t)?(t.on("complete",f),t.on("abort",v),t.req?y():t.on("request",y)):u&&!t._writableState&&(t.on("end",c),t.on("close",c)),t.on("end",p),t.on("finish",f),!1!==e.error&&t.on("error",g),t.on("close",v),function(){t.removeListener("complete",f),t.removeListener("abort",v),t.removeListener("request",y),t.req&&t.req.removeListener("finish",f),t.removeListener("end",c),t.removeListener("close",c),t.removeListener("finish",f),t.removeListener("end",p),t.removeListener("error",g),t.removeListener("close",v)}}t.exports=s},bf74:function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},c04e:function(t,e,n){var r=n("c65b"),i=n("861d"),o=n("d9b5"),a=n("dc4a"),s=n("485a"),l=n("b622"),u=TypeError,c=l("toPrimitive");t.exports=function(t,e){if(!i(t)||o(t))return t;var n,l=a(t,c);if(l){if(void 0===e&&(e="default"),n=r(l,t,e),!i(n)||o(n))return n;throw u("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},c098:function(t,e,n){t.exports=n("d4af")},c135:function(t,e){function n(t){if(Array.isArray(t))return t}t.exports=n,t.exports.__esModule=!0,t.exports["default"]=t.exports},c240:function(t,e,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"),t.exports=r,t.exports.__esModule=!0,t.exports["default"]=t.exports},c280:function(t,e,n){},c2ca:function(t,e,n){},c345:function(t,e,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"];t.exports=function(t){var e,n,o,a={};return t?(r.forEach(t.split("\n"),(function(t){if(o=t.indexOf(":"),e=r.trim(t.substr(0,o)).toLowerCase(),n=r.trim(t.substr(o+1)),e){if(a[e]&&i.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}})),a):a}},c401:function(t,e,n){"use strict";var r=n("c532"),i=n("2444");t.exports=function(t,e,n){var o=this||i;return r.forEach(n,(function(n){t=n.call(o,t,e)})),t}},c423:function(t,e,n){},c430:function(t,e){t.exports=!1},c4c7:function(t,e,n){"use strict";const{Buffer:r}=n("1c35"),i=n("035d").Transform,o=n("fb12");let a,s,l,u=!1;function c(){const t=new i;return t._write=function(t,e,n){a.sendSocketMessage({data:t.buffer,success:function(){n()},fail:function(){n(new Error)}})},t._flush=function(t){a.closeSocket({success:function(){t()}})},t}function h(t){t.hostname||(t.hostname="localhost"),t.path||(t.path="/"),t.wsOptions||(t.wsOptions={})}function f(t,e){const n="alis"===t.protocol?"wss":"ws";let r=n+"://"+t.hostname+t.path;return t.port&&80!==t.port&&443!==t.port&&(r=n+"://"+t.hostname+":"+t.port+t.path),"function"===typeof t.transformWsUrl&&(r=t.transformWsUrl(r,t,e)),r}function d(){u||(u=!0,a.onSocketOpen((function(){l.setReadable(s),l.setWritable(s),l.emit("connect")})),a.onSocketMessage((function(t){if("string"===typeof t.data){const e=r.from(t.data,"base64");s.push(e)}else{const e=new FileReader;e.addEventListener("load",(function(){let t=e.result;t=t instanceof ArrayBuffer?r.from(t):r.from(t,"utf8"),s.push(t)})),e.readAsArrayBuffer(t.data)}})),a.onSocketClose((function(){l.end(),l.destroy()})),a.onSocketError((function(t){l.destroy(t)})))}function p(t,e){if(e.hostname=e.hostname||e.host,!e.hostname)throw new Error("Could not determine host. Specify host manually.");const n="MQIsdp"===e.protocolId&&3===e.protocolVersion?"mqttv3.1":"mqtt";h(e);const r=f(e,t);return a=e.my,a.connectSocket({url:r,protocols:n}),s=c(),l=o.obj(),d(),l}t.exports=p},c513:function(t,e,n){var r=n("23e7"),i=n("1a2d"),o=n("d9b5"),a=n("0d51"),s=n("5692"),l=n("0b43"),u=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!l},{keyFor:function(t){if(!o(t))throw TypeError(a(t)+" is not a symbol");if(i(u,t))return u[t]}})},c532:function(t,e,n){"use strict";var r=n("1d2b"),i=Object.prototype.toString;function o(t){return"[object Array]"===i.call(t)}function a(t){return"undefined"===typeof t}function s(t){return null!==t&&!a(t)&&null!==t.constructor&&!a(t.constructor)&&"function"===typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function l(t){return"[object ArrayBuffer]"===i.call(t)}function u(t){return"undefined"!==typeof FormData&&t instanceof FormData}function c(t){var e;return e="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer,e}function h(t){return"string"===typeof t}function f(t){return"number"===typeof t}function d(t){return null!==t&&"object"===typeof t}function p(t){if("[object Object]"!==i.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function g(t){return"[object Date]"===i.call(t)}function v(t){return"[object File]"===i.call(t)}function y(t){return"[object Blob]"===i.call(t)}function m(t){return"[object Function]"===i.call(t)}function b(t){return d(t)&&m(t.pipe)}function _(t){return"undefined"!==typeof URLSearchParams&&t instanceof URLSearchParams}function x(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function w(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function S(t,e){if(null!==t&&"undefined"!==typeof t)if("object"!==typeof t&&(t=[t]),o(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}function O(){var t={};function e(e,n){p(t[n])&&p(e)?t[n]=O(t[n],e):p(e)?t[n]=O({},e):o(e)?t[n]=e.slice():t[n]=e}for(var n=0,r=arguments.length;n<r;n++)S(arguments[n],e);return t}function C(t,e,n){return S(e,(function(e,i){t[i]=n&&"function"===typeof e?r(e,n):e})),t}function k(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}t.exports={isArray:o,isArrayBuffer:l,isBuffer:s,isFormData:u,isArrayBufferView:c,isString:h,isNumber:f,isObject:d,isPlainObject:p,isUndefined:a,isDate:g,isFile:v,isBlob:y,isFunction:m,isStream:b,isURLSearchParams:_,isStandardBrowserEnv:w,forEach:S,merge:O,extend:C,trim:x,stripBOM:k}},c607:function(t,e,n){var r=n("83ab"),i=n("fce3"),o=n("c6b6"),a=n("edd0"),s=n("69f3").get,l=RegExp.prototype,u=TypeError;r&&i&&a(l,"dotAll",{configurable:!0,get:function(){if(this!==l){if("RegExp"===o(this))return!!s(this).dotAll;throw u("Incompatible receiver, RegExp required")}}})},c65b:function(t,e,n){var r=n("40d5"),i=Function.prototype.call;t.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},c6b6:function(t,e,n){var r=n("e330"),i=r({}.toString),o=r("".slice);t.exports=function(t){return o(i(t),8,-1)}},c6cd:function(t,e,n){var r=n("da84"),i=n("6374"),o="__core-js_shared__",a=r[o]||i(o,{});t.exports=a},c6d2:function(t,e,n){"use strict";var r=n("23e7"),i=n("c65b"),o=n("c430"),a=n("5e77"),s=n("1626"),l=n("dcc3"),u=n("e163"),c=n("d2bb"),h=n("d44e"),f=n("9112"),d=n("cb2d"),p=n("b622"),g=n("3f8c"),v=n("ae93"),y=a.PROPER,m=a.CONFIGURABLE,b=v.IteratorPrototype,_=v.BUGGY_SAFARI_ITERATORS,x=p("iterator"),w="keys",S="values",O="entries",C=function(){return this};t.exports=function(t,e,n,a,p,v,k){l(n,e,a);var A,M,T,I=function(t){if(t===p&&D)return D;if(!_&&t in j)return j[t];switch(t){case w:return function(){return new n(this,t)};case S:return function(){return new n(this,t)};case O:return function(){return new n(this,t)}}return function(){return new n(this)}},E=e+" Iterator",P=!1,j=t.prototype,L=j[x]||j["@@iterator"]||p&&j[p],D=!_&&L||I(p),R="Array"==e&&j.entries||L;if(R&&(A=u(R.call(new t)),A!==Object.prototype&&A.next&&(o||u(A)===b||(c?c(A,b):s(A[x])||d(A,x,C)),h(A,E,!0,!0),o&&(g[E]=C))),y&&p==S&&L&&L.name!==S&&(!o&&m?f(j,"name",S):(P=!0,D=function(){return i(L,this)})),p)if(M={values:I(S),keys:v?D:I(w),entries:I(O)},k)for(T in M)(_||P||!(T in j))&&d(j,T,M[T]);else r({target:e,proto:!0,forced:_||P},M);return o&&!k||j[x]===D||d(j,x,D,{name:p}),g[e]=D,M}},c740:function(t,e,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(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o(a)},c7c8:function(t,e,n){},c7eb:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),n("b636"),n("944a"),n("0c47"),n("23dc"),n("3410"),n("d9e2"),n("14d9"),n("159b"),n("b0c0"),n("131a"),n("1f68"),n("fb6a");var r=n("53ca");function i(){
|
||
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
||
i=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(I){c=function(t,e,n){return t[e]=n}}function h(t,e,n,r){var i=e&&e.prototype instanceof p?e:p,a=Object.create(i.prototype),s=new A(r||[]);return o(a,"_invoke",{value:S(t,n,s)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(I){return{type:"throw",arg:I}}}t.wrap=h;var d={};function p(){}function g(){}function v(){}var y={};c(y,s,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(M([])));b&&b!==e&&n.call(b,s)&&(y=b);var _=v.prototype=p.prototype=Object.create(y);function x(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function i(o,a,s,l){var u=f(t[o],t,a);if("throw"!==u.type){var c=u.arg,h=c.value;return h&&"object"==Object(r["a"])(h)&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){i("next",t,s,l)}),(function(t){i("throw",t,s,l)})):e.resolve(h).then((function(t){c.value=t,s(c)}),(function(t){return i("throw",t,s,l)}))}l(u.arg)}var a;o(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){i(t,n,e,r)}))}return a=a?a.then(r,r):r()}})}function S(t,e,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 T()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=O(a,n);if(s){if(s===d)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 l=f(t,e,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function O(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator["return"]&&(e.method="return",e.arg=void 0,O(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=f(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,d;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function M(t){if(t){var e=t[s];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:T}}function T(){return{value:void 0,done:!0}}return g.prototype=v,o(_,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:g,configurable:!0}),g.displayName=c(v,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,c(t,u,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},x(w.prototype),c(w.prototype,l,(function(){return this})),t.AsyncIterator=w,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new w(h(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(_),c(_,u,"Generator"),c(_,s,(function(){return this})),c(_,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=M,A.prototype={constructor:A,reset:function(t){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(k),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.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"),l=n.call(o,"finallyLoc");if(s&&l){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(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){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"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:M(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}},c8af:function(t,e,n){"use strict";var r=n("c532");t.exports=function(t,e){r.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))}},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},c8d2:function(t,e,n){var r=n("5e77").PROPER,i=n("d039"),o=n("5899"),a="
";t.exports=function(t){return i((function(){return!!o[t]()||a[t]()!==a||r&&o[t].name!==t}))}},c901:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},c930:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.yAxisConfig=e.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};e.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};e.yAxisConfig=i},c973:function(t,e,n){function r(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(r,i)}function i(t){return function(){var e=this,n=arguments;return new Promise((function(i,o){var a=t.apply(e,n);function s(t){r(a,i,o,s,l,"next",t)}function l(t){r(a,i,o,s,l,"throw",t)}s(void 0)}))}}n("d3b7"),t.exports=i,t.exports.__esModule=!0,t.exports["default"]=t.exports},ca84:function(t,e,n){var r=n("e330"),i=n("1a2d"),o=n("fc6a"),a=n("4d64").indexOf,s=n("d012"),l=r([].push);t.exports=function(t,e){var n,r=o(t),u=0,c=[];for(n in r)!i(s,n)&&i(r,n)&&l(c,n);while(e.length>u)i(r,n=e[u++])&&(~a(c,n)||l(c,n));return c}},caad:function(t,e,n){"use strict";var r=n("23e7"),i=n("4d64").includes,o=n("d039"),a=n("44d2"),s=o((function(){return!Array(1).includes()}));r({target:"Array",proto:!0,forced:s},{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),a("includes")},cb29:function(t,e,n){var r=n("23e7"),i=n("81d5"),o=n("44d2");r({target:"Array",proto:!0},{fill:i}),o("fill")},cb2d:function(t,e,n){var r=n("1626"),i=n("9bf2"),o=n("13d2"),a=n("6374");t.exports=function(t,e,n,s){s||(s={});var l=s.enumerable,u=void 0!==s.name?s.name:e;if(r(n)&&o(n,u,s),s.global)l?t[e]=n:a(e,n);else{try{s.unsafe?t[e]&&(l=!0):delete t[e]}catch(c){}l?t[e]=n:i.f(t,e,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},cc12:function(t,e,n){var r=n("da84"),i=n("861d"),o=r.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},cc15:function(t,e,n){var r=n("b367")("wks"),i=n("8b1a"),o=n("ef08").Symbol,a="function"==typeof o,s=t.exports=function(t){return r[t]||(r[t]=a&&o[t]||(a?o:i)("Symbol."+t))};s.store=r},cc6d:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.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};e.gaugeConfig=r},cc98:function(t,e,n){"use strict";var r=n("23e7"),i=n("c430"),o=n("4738").CONSTRUCTOR,a=n("d256"),s=n("d066"),l=n("1626"),u=n("cb2d"),c=a&&a.prototype;if(r({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(t){return this.then(void 0,t)}}),!i&&l(a)){var h=s("Promise").prototype["catch"];c["catch"]!==h&&u(c,"catch",h,{unsafe:!0})}},cca6:function(t,e,n){var r=n("23e7"),i=n("60da");r({target:"Object",stat:!0,arity:2,forced:Object.assign!==i},{assign:i})},cdce:function(t,e,n){var r=n("da84"),i=n("1626"),o=r.WeakMap;t.exports=i(o)&&/native code/.test(String(o))},cdf9:function(t,e,n){var r=n("825a"),i=n("861d"),o=n("f069");t.exports=function(t,e){if(r(t),i(e)&&e.constructor===t)return e;var n=o.f(t),a=n.resolve;return a(e),n.promise}},ce7a:function(t,e,n){var r=n("9c0e"),i=n("0983"),o=n("5a94")("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},cee4:function(t,e,n){"use strict";var r=n("c532"),i=n("1d2b"),o=n("0a06"),a=n("4a7b"),s=n("2444");function l(t){var e=new o(t),n=i(o.prototype.request,e);return r.extend(n,o.prototype,e),r.extend(n,e),n.create=function(e){return l(a(t,e))},n}var u=l(s);u.Axios=o,u.Cancel=n("7a77"),u.CancelToken=n("8df4"),u.isCancel=n("2e67"),u.VERSION=n("5cce").version,u.all=function(t){return Promise.all(t)},u.spread=n("0df6"),u.isAxiosError=n("5f02"),t.exports=u,t.exports.default=u},d012:function(t,e){t.exports={}},d039:function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},d066:function(t,e,n){var r=n("da84"),i=n("1626"),o=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t]):r[t]&&r[t][e]}},d0b5:function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=void 0;var i=r(n("448a")),o=r(n("970b")),a=n("a870"),s=n("5557"),l=function t(e){(0,o["default"])(this,t),this.colorProcessor(e);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,e)};function u(t,e){t.save();var n=e.graphCenter,r=e.rotate,o=e.scale,a=e.translate;n instanceof Array&&(t.translate.apply(t,(0,i["default"])(n)),r&&t.rotate(r*Math.PI/180),o instanceof Array&&t.scale.apply(t,(0,i["default"])(o)),a&&t.translate.apply(t,(0,i["default"])(a)),t.translate(-n[0],-n[1]))}e["default"]=l,l.prototype.colorProcessor=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e?a.getColorFromRgbValue:a.getRgbaValue,r=["fill","stroke","shadowColor"],i=Object.keys(t),o=i.filter((function(t){return r.find((function(e){return e===t}))}));o.forEach((function(e){return t[e]=n(t[e])}));var s=t.gradientColor,l=t.colors;if(s&&(t.gradientColor=s.map((function(t){return n(t)}))),l){var u=Object.keys(l);u.forEach((function(t){return l[t]=n(l[t])}))}},l.prototype.initStyle=function(t){u(t,this),h(t,this),f(t,this)};var c=["lineCap","lineJoin","lineDashOffset","shadowOffsetX","shadowOffsetY","lineWidth","textAlign","textBaseline"];function h(t,e){var n=e.fill,r=e.stroke,o=e.shadowColor,s=e.opacity;c.forEach((function(n){(n||"number"===typeof n)&&(t[n]=e[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,t.fillStyle=(0,a.getColorFromRgbValue)(n),t.strokeStyle=(0,a.getColorFromRgbValue)(r),t.shadowColor=(0,a.getColorFromRgbValue)(o);var l=e.lineDash,u=e.shadowBlur;l&&(l=l.map((function(t){return t>=0?t:0})),t.setLineDash(l)),"number"===typeof u&&(t.shadowBlur=u>0?u:.001);var h=e.fontStyle,f=e.fontVarient,d=e.fontWeight,p=e.fontSize,g=e.fontFamily;t.font=h+" "+f+" "+d+" "+p+"px "+g}function f(t,e){if(d(e)){var n=e.gradientColor,r=e.gradientParams,o=e.gradientType,s=e.gradientWith,l=e.gradientStops,u=e.opacity;n=n.map((function(t){var e=t[3]*u,n=(0,i["default"])(t);return n[3]=e,n})),n=n.map((function(t){return(0,a.getColorFromRgbValue)(t)})),"auto"===l&&(l=p(n));var c=t["create".concat(o.slice(0,1).toUpperCase()+o.slice(1),"Gradient")].apply(t,(0,i["default"])(r));l.forEach((function(t,e){return c.addColorStop(t,n[e])})),t["".concat(s,"Style")]=c}}function d(t){var e=t.gradientColor,n=t.gradientParams,r=t.gradientType,i=t.gradientWith,o=t.gradientStops;if(!e||!n)return!1;if(1===e.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(t){var e=1/(t.length-1);return t.map((function(t,n){return e*n}))}l.prototype.restoreTransform=function(t){t.restore()},l.prototype.update=function(t){this.colorProcessor(t),Object.assign(this,t)},l.prototype.getStyle=function(){var t=(0,s.deepClone)(this,!0);return this.colorProcessor(t,!0),t}},d16a:function(t,e,n){var r=n("fc5e"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},d1e7:function(t,e,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);e.f=o?function(t){var e=i(this,t);return!!e&&e.enumerable}:r},d256:function(t,e,n){var r=n("da84");t.exports=r.Promise},d28b:function(t,e,n){var r=n("e065");r("iterator")},d2bb:function(t,e,n){var r=n("e330"),i=n("825a"),o=n("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),t(n,[]),e=n instanceof Array}catch(a){}return function(n,r){return i(n),o(r),e?t(n,r):n.__proto__=r,n}}():void 0)},d3b7:function(t,e,n){var r=n("00ee"),i=n("cb2d"),o=n("b041");r||i(Object.prototype,"toString",o,{unsafe:!0})},d44e:function(t,e,n){var r=n("9bf2").f,i=n("1a2d"),o=n("b622"),a=o("toStringTag");t.exports=function(t,e,n){t&&!n&&(t=t.prototype),t&&!i(t,a)&&r(t,a,{configurable:!0,value:e})}},d4af:function(t,e,n){"use strict";var r=n("8eb7"),i=n("7b3e"),o=10,a=40,s=800;function l(t){var e=0,n=0,r=0,i=0;return"detail"in t&&(n=t.detail),"wheelDelta"in t&&(n=-t.wheelDelta/120),"wheelDeltaY"in t&&(n=-t.wheelDeltaY/120),"wheelDeltaX"in t&&(e=-t.wheelDeltaX/120),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(e=n,n=0),r=e*o,i=n*o,"deltaY"in t&&(i=t.deltaY),"deltaX"in t&&(r=t.deltaX),(r||i)&&t.deltaMode&&(1==t.deltaMode?(r*=a,i*=a):(r*=s,i*=s)),r&&!e&&(e=r<1?-1:1),i&&!n&&(n=i<1?-1:1),{spinX:e,spinY:n,pixelX:r,pixelY:i}}l.getEventType=function(){return r.firefox()?"DOMMouseScroll":i("wheel")?"wheel":"mousewheel"},t.exports=l},d4c3:function(t,e,n){var r=n("342f"),i=n("da84");t.exports=/ipad|iphone|ipod/i.test(r)&&void 0!==i.Pebble},d4ec:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));n("d9e2");function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},d51b:function(t,e,n){"use strict";var r=function(){function t(t){this.value=t}return t}(),i=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new r(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),o=function(){function t(t){this._list=new i,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,i=this._map,o=null;if(null==i[t]){var a=n.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=n.head;n.remove(l),delete i[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new r(e),s.key=t,n.insertEntry(s),i[t]=s}return o},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}();e["a"]=o},d51d:function(t,e,n){},d58f:function(t,e,n){var r=n("59ed"),i=n("7b0b"),o=n("44ad"),a=n("07fa"),s=TypeError,l=function(t){return function(e,n,l,u){r(n);var c=i(e),h=o(c),f=a(c),d=t?f-1:0,p=t?-1:1;if(l<2)while(1){if(d in h){u=h[d],d+=p;break}if(d+=p,t?d<0:f<=d)throw s("Reduce of empty array with no initial value")}for(;t?d>=0:f>d;d+=p)d in h&&(u=n(u,h[d],d,c));return u}};t.exports={left:l(!1),right:l(!0)}},d633:function(t,e){function n(t,e){if(t&&e)return n(t)(e);if("function"!==typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach((function(e){r[e]=t[e]})),r;function r(){for(var e=new Array(arguments.length),n=0;n<e.length;n++)e[n]=arguments[n];var r=t.apply(this,e),i=e[e.length-1];return"function"===typeof r&&r!==i&&Object.keys(i).forEach((function(t){r[t]=i[t]})),r}}t.exports=n},d6d6:function(t,e){var n=TypeError;t.exports=function(t,e){if(t<e)throw n("Not enough arguments");return t}},d784:function(t,e,n){"use strict";n("ac1f");var r=n("e330"),i=n("cb2d"),o=n("9263"),a=n("d039"),s=n("b622"),l=n("9112"),u=s("species"),c=RegExp.prototype;t.exports=function(t,e,n,h){var f=s(t),d=!a((function(){var e={};return e[f]=function(){return 7},7!=""[t](e)})),p=d&&!a((function(){var e=!1,n=/a/;return"split"===t&&(n={},n.constructor={},n.constructor[u]=function(){return n},n.flags="",n[f]=/./[f]),n.exec=function(){return e=!0,null},n[f](""),!e}));if(!d||!p||n){var g=r(/./[f]),v=e(f,""[t],(function(t,e,n,i,a){var s=r(t),l=e.exec;return l===o||l===c.exec?d&&!a?{done:!0,value:g(e,n,i)}:{done:!0,value:s(n,e,i)}:{done:!1}}));i(String.prototype,t,v[0]),i(c,f,v[1])}h&&l(c[f],"sham",!0)}},d81d:function(t,e,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(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},d86b:function(t,e,n){var r=n("d039");t.exports=r((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}}))},d925:function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},d998:function(t,e,n){var r=n("342f");t.exports=/MSIE|Trident/.test(r)},d9b5:function(t,e,n){var r=n("d066"),i=n("1626"),o=n("3a9b"),a=n("fdbf"),s=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return i(e)&&o(e.prototype,s(t))}},d9e1:function(t,e,n){"use strict";var r=n("fbd7").codes.ERR_STREAM_PREMATURE_CLOSE;function i(t){var e=!1;return function(){if(!e){e=!0;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];t.apply(this,r)}}}function o(){}function a(t){return t.setHeader&&"function"===typeof t.abort}function s(t,e,n){if("function"===typeof e)return s(t,null,e);e||(e={}),n=i(n||o);var l=e.readable||!1!==e.readable&&t.readable,u=e.writable||!1!==e.writable&&t.writable,c=function(){t.writable||f()},h=t._writableState&&t._writableState.finished,f=function(){u=!1,h=!0,l||n.call(t)},d=t._readableState&&t._readableState.endEmitted,p=function(){l=!1,d=!0,u||n.call(t)},g=function(e){n.call(t,e)},v=function(){var e;return l&&!d?(t._readableState&&t._readableState.ended||(e=new r),n.call(t,e)):u&&!h?(t._writableState&&t._writableState.ended||(e=new r),n.call(t,e)):void 0},y=function(){t.req.on("finish",f)};return a(t)?(t.on("complete",f),t.on("abort",v),t.req?y():t.on("request",y)):u&&!t._writableState&&(t.on("end",c),t.on("close",c)),t.on("end",p),t.on("finish",f),!1!==e.error&&t.on("error",g),t.on("close",v),function(){t.removeListener("complete",f),t.removeListener("abort",v),t.removeListener("request",y),t.req&&t.req.removeListener("finish",f),t.removeListener("end",c),t.removeListener("close",c),t.removeListener("finish",f),t.removeListener("end",p),t.removeListener("error",g),t.removeListener("close",v)}}t.exports=s},d9e2:function(t,e,n){var r=n("23e7"),i=n("da84"),o=n("2ba4"),a=n("e5cb"),s="WebAssembly",l=i[s],u=7!==Error("e",{cause:7}).cause,c=function(t,e){var n={};n[t]=a(t,e,u),r({global:!0,constructor:!0,arity:1,forced:u},n)},h=function(t,e){if(l&&l[t]){var n={};n[t]=a(s+"."+t,e,u),r({target:s,stat:!0,constructor:!0,arity:1,forced:u},n)}};c("Error",(function(t){return function(e){return o(t,this,arguments)}})),c("EvalError",(function(t){return function(e){return o(t,this,arguments)}})),c("RangeError",(function(t){return function(e){return o(t,this,arguments)}})),c("ReferenceError",(function(t){return function(e){return o(t,this,arguments)}})),c("SyntaxError",(function(t){return function(e){return o(t,this,arguments)}})),c("TypeError",(function(t){return function(e){return o(t,this,arguments)}})),c("URIError",(function(t){return function(e){return o(t,this,arguments)}})),h("CompileError",(function(t){return function(e){return o(t,this,arguments)}})),h("LinkError",(function(t){return function(e){return o(t,this,arguments)}})),h("RuntimeError",(function(t){return function(e){return o(t,this,arguments)}}))},d9f5:function(t,e,n){"use strict";var r=n("23e7"),i=n("da84"),o=n("c65b"),a=n("e330"),s=n("c430"),l=n("83ab"),u=n("04f8"),c=n("d039"),h=n("1a2d"),f=n("3a9b"),d=n("825a"),p=n("fc6a"),g=n("a04b"),v=n("577e"),y=n("5c6c"),m=n("7c73"),b=n("df75"),_=n("241c"),x=n("057f"),w=n("7418"),S=n("06cf"),O=n("9bf2"),C=n("37e8"),k=n("d1e7"),A=n("cb2d"),M=n("5692"),T=n("f772"),I=n("d012"),E=n("90e3"),P=n("b622"),j=n("e538"),L=n("e065"),D=n("57b9"),R=n("d44e"),N=n("69f3"),B=n("b727").forEach,F=T("hidden"),z="Symbol",V="prototype",q=N.set,G=N.getterFor(z),H=Object[V],W=i.Symbol,U=W&&W[V],$=i.TypeError,Y=i.QObject,X=S.f,K=O.f,Z=x.f,Q=k.f,J=a([].push),tt=M("symbols"),et=M("op-symbols"),nt=M("wks"),rt=!Y||!Y[V]||!Y[V].findChild,it=l&&c((function(){return 7!=m(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=X(H,e);r&&delete H[e],K(t,e,n),r&&t!==H&&K(H,e,r)}:K,ot=function(t,e){var n=tt[t]=m(U);return q(n,{type:z,tag:t,description:e}),l||(n.description=e),n},at=function(t,e,n){t===H&&at(et,e,n),d(t);var r=g(e);return d(n),h(tt,r)?(n.enumerable?(h(t,F)&&t[F][r]&&(t[F][r]=!1),n=m(n,{enumerable:y(0,!1)})):(h(t,F)||K(t,F,y(1,{})),t[F][r]=!0),it(t,r,n)):K(t,r,n)},st=function(t,e){d(t);var n=p(e),r=b(n).concat(ft(n));return B(r,(function(e){l&&!o(ut,n,e)||at(t,e,n[e])})),t},lt=function(t,e){return void 0===e?m(t):st(m(t),e)},ut=function(t){var e=g(t),n=o(Q,this,e);return!(this===H&&h(tt,e)&&!h(et,e))&&(!(n||!h(this,e)||!h(tt,e)||h(this,F)&&this[F][e])||n)},ct=function(t,e){var n=p(t),r=g(e);if(n!==H||!h(tt,r)||h(et,r)){var i=X(n,r);return!i||!h(tt,r)||h(n,F)&&n[F][r]||(i.enumerable=!0),i}},ht=function(t){var e=Z(p(t)),n=[];return B(e,(function(t){h(tt,t)||h(I,t)||J(n,t)})),n},ft=function(t){var e=t===H,n=Z(e?et:p(t)),r=[];return B(n,(function(t){!h(tt,t)||e&&!h(H,t)||J(r,tt[t])})),r};u||(W=function(){if(f(U,this))throw $("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?v(arguments[0]):void 0,e=E(t),n=function(t){this===H&&o(n,et,t),h(this,F)&&h(this[F],e)&&(this[F][e]=!1),it(this,e,y(1,t))};return l&&rt&&it(H,e,{configurable:!0,set:n}),ot(e,t)},U=W[V],A(U,"toString",(function(){return G(this).tag})),A(W,"withoutSetter",(function(t){return ot(E(t),t)})),k.f=ut,O.f=at,C.f=st,S.f=ct,_.f=x.f=ht,w.f=ft,j.f=function(t){return ot(P(t),t)},l&&(K(U,"description",{configurable:!0,get:function(){return G(this).description}}),s||A(H,"propertyIsEnumerable",ut,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:W}),B(b(nt),(function(t){L(t)})),r({target:z,stat:!0,forced:!u},{useSetter:function(){rt=!0},useSimple:function(){rt=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!l},{create:lt,defineProperty:at,defineProperties:st,getOwnPropertyDescriptor:ct}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:ht}),D(),R(W,z),I[F]=!0},da84:function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this,n("c8ba"))},dbb4:function(t,e,n){var r=n("23e7"),i=n("83ab"),o=n("56ef"),a=n("fc6a"),s=n("06cf"),l=n("8418");r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){var e,n,r=a(t),i=s.f,u=o(r),c={},h=0;while(u.length>h)n=i(r,e=u[h++]),void 0!==n&&l(c,e,n);return c}})},dbbf:function(t,e,n){},dc4a:function(t,e,n){var r=n("59ed"),i=n("7234");t.exports=function(t,e){var n=t[e];return i(n)?void 0:r(n)}},dc90:function(t,e,n){function r(t){function e(t){let e=0;for(let n=0;n<t.length;n++)e=(e<<5)-e+t.charCodeAt(n),e|=0;return r.colors[Math.abs(e)%r.colors.length]}function r(t){let e,n,o,a=null;function s(...t){if(!s.enabled)return;const n=s,i=Number(new Date),o=i-(e||i);n.diff=o,n.prev=e,n.curr=i,e=i,t[0]=r.coerce(t[0]),"string"!==typeof t[0]&&t.unshift("%O");let a=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,(e,i)=>{if("%%"===e)return"%";a++;const o=r.formatters[i];if("function"===typeof o){const r=t[a];e=o.call(n,r),t.splice(a,1),a--}return e}),r.formatArgs.call(n,t);const l=n.log||r.log;l.apply(n,t)}return s.namespace=t,s.useColors=r.useColors(),s.color=r.selectColor(t),s.extend=i,s.destroy=r.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(n!==r.namespaces&&(n=r.namespaces,o=r.enabled(t)),o),set:t=>{a=t}}),"function"===typeof r.init&&r.init(s),s}function i(t,e){const n=r(this.namespace+("undefined"===typeof e?":":e)+t);return n.log=this.log,n}function o(t){let e;r.save(t),r.namespaces=t,r.names=[],r.skips=[];const n=("string"===typeof t?t:"").split(/[\s,]+/),i=n.length;for(e=0;e<i;e++)n[e]&&(t=n[e].replace(/\*/g,".*?"),"-"===t[0]?r.skips.push(new RegExp("^"+t.slice(1)+"$")):r.names.push(new RegExp("^"+t+"$")))}function a(){const t=[...r.names.map(l),...r.skips.map(l).map(t=>"-"+t)].join(",");return r.enable(""),t}function s(t){if("*"===t[t.length-1])return!0;let e,n;for(e=0,n=r.skips.length;e<n;e++)if(r.skips[e].test(t))return!1;for(e=0,n=r.names.length;e<n;e++)if(r.names[e].test(t))return!0;return!1}function l(t){return t.toString().substring(2,t.toString().length-2).replace(/\.\*\?$/,"*")}function u(t){return t instanceof Error?t.stack||t.message:t}function c(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.debug=r,r.default=r,r.coerce=u,r.disable=a,r.enable=o,r.enabled=s,r.humanize=n("1468"),r.destroy=c,Object.keys(t).forEach(e=>{r[e]=t[e]}),r.names=[],r.skips=[],r.formatters={},r.selectColor=e,r.enable(r.load()),r}t.exports=r},dcc3:function(t,e,n){"use strict";var r=n("ae93").IteratorPrototype,i=n("7c73"),o=n("5c6c"),a=n("d44e"),s=n("3f8c"),l=function(){return this};t.exports=function(t,e,n,u){var c=e+" Iterator";return t.prototype=i(r,{next:o(+!u,n)}),a(t,c,!1,!0),s[c]=l,t}},ddb0:function(t,e,n){var r=n("da84"),i=n("fdbc"),o=n("785a"),a=n("e260"),s=n("9112"),l=n("b622"),u=l("iterator"),c=l("toStringTag"),h=a.values,f=function(t,e){if(t){if(t[u]!==h)try{s(t,u,h)}catch(r){t[u]=h}if(t[c]||s(t,c,e),i[e])for(var n in a)if(t[n]!==a[n])try{s(t,n,a[n])}catch(r){t[n]=a[n]}}};for(var d in i)f(r[d]&&r[d].prototype,d);f(o,"DOMTokenList")},ddda:function(t,e,n){"use strict";var r=n("e142").codes.ERR_STREAM_PREMATURE_CLOSE;function i(t){var e=!1;return function(){if(!e){e=!0;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];t.apply(this,r)}}}function o(){}function a(t){return t.setHeader&&"function"===typeof t.abort}function s(t,e,n){if("function"===typeof e)return s(t,null,e);e||(e={}),n=i(n||o);var l=e.readable||!1!==e.readable&&t.readable,u=e.writable||!1!==e.writable&&t.writable,c=function(){t.writable||f()},h=t._writableState&&t._writableState.finished,f=function(){u=!1,h=!0,l||n.call(t)},d=t._readableState&&t._readableState.endEmitted,p=function(){l=!1,d=!0,u||n.call(t)},g=function(e){n.call(t,e)},v=function(){var e;return l&&!d?(t._readableState&&t._readableState.ended||(e=new r),n.call(t,e)):u&&!h?(t._writableState&&t._writableState.ended||(e=new r),n.call(t,e)):void 0},y=function(){t.req.on("finish",f)};return a(t)?(t.on("complete",f),t.on("abort",v),t.req?y():t.on("request",y)):u&&!t._writableState&&(t.on("end",c),t.on("close",c)),t.on("end",p),t.on("finish",f),!1!==e.error&&t.on("error",g),t.on("close",v),function(){t.removeListener("complete",f),t.removeListener("abort",v),t.removeListener("request",y),t.req&&t.req.removeListener("finish",f),t.removeListener("end",c),t.removeListener("close",c),t.removeListener("finish",f),t.removeListener("end",p),t.removeListener("error",g),t.removeListener("close",v)}}t.exports=s},df75:function(t,e,n){var r=n("ca84"),i=n("7839");t.exports=Object.keys||function(t){return r(t,i)}},df7c:function(t,e,n){(function(t){function n(t,e){for(var n=0,r=t.length-1;r>=0;r--){var i=t[r];"."===i?t.splice(r,1):".."===i?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}function r(t){"string"!==typeof t&&(t+="");var e,n=0,r=-1,i=!0;for(e=t.length-1;e>=0;--e)if(47===t.charCodeAt(e)){if(!i){n=e+1;break}}else-1===r&&(i=!1,r=e+1);return-1===r?"":t.slice(n,r)}function i(t,e){if(t.filter)return t.filter(e);for(var n=[],r=0;r<t.length;r++)e(t[r],r,t)&&n.push(t[r]);return n}e.resolve=function(){for(var e="",r=!1,o=arguments.length-1;o>=-1&&!r;o--){var a=o>=0?arguments[o]:t.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(e=a+"/"+e,r="/"===a.charAt(0))}return e=n(i(e.split("/"),(function(t){return!!t})),!r).join("/"),(r?"/":"")+e||"."},e.normalize=function(t){var r=e.isAbsolute(t),a="/"===o(t,-1);return t=n(i(t.split("/"),(function(t){return!!t})),!r).join("/"),t||r||(t="."),t&&a&&(t+="/"),(r?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(i(t,(function(t,e){if("string"!==typeof t)throw new TypeError("Arguments to path.join must be strings");return t})).join("/"))},e.relative=function(t,n){function r(t){for(var e=0;e<t.length;e++)if(""!==t[e])break;for(var n=t.length-1;n>=0;n--)if(""!==t[n])break;return e>n?[]:t.slice(e,n-e+1)}t=e.resolve(t).substr(1),n=e.resolve(n).substr(1);for(var i=r(t.split("/")),o=r(n.split("/")),a=Math.min(i.length,o.length),s=a,l=0;l<a;l++)if(i[l]!==o[l]){s=l;break}var u=[];for(l=s;l<i.length;l++)u.push("..");return u=u.concat(o.slice(s)),u.join("/")},e.sep="/",e.delimiter=":",e.dirname=function(t){if("string"!==typeof t&&(t+=""),0===t.length)return".";for(var e=t.charCodeAt(0),n=47===e,r=-1,i=!0,o=t.length-1;o>=1;--o)if(e=t.charCodeAt(o),47===e){if(!i){r=o;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":t.slice(0,r)},e.basename=function(t,e){var n=r(t);return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n},e.extname=function(t){"string"!==typeof t&&(t+="");for(var e=-1,n=0,r=-1,i=!0,o=0,a=t.length-1;a>=0;--a){var s=t.charCodeAt(a);if(47!==s)-1===r&&(i=!1,r=a+1),46===s?-1===e?e=a:1!==o&&(o=1):-1!==e&&(o=-1);else if(!i){n=a+1;break}}return-1===e||-1===r||0===o||1===o&&e===r-1&&e===n+1?"":t.slice(e,r)};var o="b"==="ab".substr(-1)?function(t,e,n){return t.substr(e,n)}:function(t,e,n){return e<0&&(e=t.length+e),t.substr(e,n)}}).call(this,n("4362"))},df83:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=e.easeInOutBounce=e.easeOutBounce=e.easeInBounce=e.easeInOutElastic=e.easeOutElastic=e.easeInElastic=e.easeInOutBack=e.easeOutBack=e.easeInBack=e.easeInOutQuint=e.easeOutQuint=e.easeInQuint=e.easeInOutQuart=e.easeOutQuart=e.easeInQuart=e.easeInOutCubic=e.easeOutCubic=e.easeInCubic=e.easeInOutQuad=e.easeOutQuad=e.easeInQuad=e.easeInOutSine=e.easeOutSine=e.easeInSine=e.linear=void 0;var r=[[[0,1],"",[.33,.67]],[[1,0],[.67,.33]]];e.linear=r;var i=[[[0,1]],[[.538,.564],[.169,.912],[.88,.196]],[[1,0]]];e.easeInSine=i;var o=[[[0,1]],[[.444,.448],[.169,.736],[.718,.16]],[[1,0]]];e.easeOutSine=o;var a=[[[0,1]],[[.5,.5],[.2,1],[.8,0]],[[1,0]]];e.easeInOutSine=a;var s=[[[0,1]],[[.55,.584],[.231,.904],[.868,.264]],[[1,0]]];e.easeInQuad=s;var l=[[[0,1]],[[.413,.428],[.065,.816],[.76,.04]],[[1,0]]];e.easeOutQuad=l;var u=[[[0,1]],[[.5,.5],[.3,.9],[.7,.1]],[[1,0]]];e.easeInOutQuad=u;var c=[[[0,1]],[[.679,.688],[.366,.992],[.992,.384]],[[1,0]]];e.easeInCubic=c;var h=[[[0,1]],[[.321,.312],[.008,.616],[.634,.008]],[[1,0]]];e.easeOutCubic=h;var f=[[[0,1]],[[.5,.5],[.3,1],[.7,0]],[[1,0]]];e.easeInOutCubic=f;var d=[[[0,1]],[[.812,.74],[.611,.988],[1.013,.492]],[[1,0]]];e.easeInQuart=d;var p=[[[0,1]],[[.152,.244],[.001,.448],[.285,-.02]],[[1,0]]];e.easeOutQuart=p;var g=[[[0,1]],[[.5,.5],[.4,1],[.6,0]],[[1,0]]];e.easeInOutQuart=g;var v=[[[0,1]],[[.857,.856],[.714,1],[1,.712]],[[1,0]]];e.easeInQuint=v;var y=[[[0,1]],[[.108,.2],[.001,.4],[.214,-.012]],[[1,0]]];e.easeOutQuint=y;var m=[[[0,1]],[[.5,.5],[.5,1],[.5,0]],[[1,0]]];e.easeInOutQuint=m;var b=[[[0,1]],[[.667,.896],[.38,1.184],[.955,.616]],[[1,0]]];e.easeInBack=b;var _=[[[0,1]],[[.335,.028],[.061,.22],[.631,-.18]],[[1,0]]];e.easeOutBack=_;var x=[[[0,1]],[[.5,.5],[.4,1.4],[.6,-.4]],[[1,0]]];e.easeInOutBack=x;var w=[[[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]]];e.easeInElastic=w;var S=[[[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]]];e.easeOutElastic=S;var O=[[[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]]];e.easeInOutElastic=O;var C=[[[0,1]],[[.148,1],[.075,.868],[.193,.848]],[[.326,1],[.276,.836],[.405,.712]],[[.6,1],[.511,.708],[.671,.348]],[[1,0]]];e.easeInBounce=C;var k=[[[0,1]],[[.357,.004],[.27,.592],[.376,.252]],[[.604,-.004],[.548,.312],[.669,.184]],[[.82,0],[.749,.184],[.905,.132]],[[1,0]]];e.easeOutBounce=k;var A=[[[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]]];e.easeInOutBounce=A;var M=new Map([["linear",r],["easeInSine",i],["easeOutSine",o],["easeInOutSine",a],["easeInQuad",s],["easeOutQuad",l],["easeInOutQuad",u],["easeInCubic",c],["easeOutCubic",h],["easeInOutCubic",f],["easeInQuart",d],["easeOutQuart",p],["easeInOutQuart",g],["easeInQuint",v],["easeOutQuint",y],["easeInOutQuint",m],["easeInBack",b],["easeOutBack",_],["easeInOutBack",x],["easeInElastic",w],["easeOutElastic",S],["easeInOutElastic",O],["easeInBounce",C],["easeOutBounce",k],["easeInOutBounce",A]]);e["default"]=M},df86:function(t,e,n){"use strict";(function(e,r){const i=n("faa1").EventEmitter,o=n("ea08"),a=n("e7d0"),s=n("a43f"),l=n("3409"),u=n("1e4d"),c=n("035d").Writable,h=n("3fb5"),f=n("29a2"),d=n("2a28"),p=n("ae84"),g=n("53a8"),v=n("34eb")("mqttjs:client"),y=e?e.nextTick:function(t){setTimeout(t,0)},m=r.setImmediate||function(t){y(t)},b={keepalive:60,reschedulePings:!0,protocolId:"MQTT",protocolVersion:4,reconnectPeriod:1e3,connectTimeout:3e4,clean:!0,resubscribe:!0},_=["ECONNREFUSED","EADDRINUSE","ECONNRESET","ENOTFOUND"],x={0:"",1:"Unacceptable protocol version",2:"Identifier rejected",3:"Server unavailable",4:"Bad username or password",5:"Not authorized",16:"No matching subscribers",17:"No subscription existed",128:"Unspecified error",129:"Malformed Packet",130:"Protocol Error",131:"Implementation specific error",132:"Unsupported Protocol Version",133:"Client Identifier not valid",134:"Bad User Name or Password",135:"Not authorized",136:"Server unavailable",137:"Server busy",138:"Banned",139:"Server shutting down",140:"Bad authentication method",141:"Keep Alive timeout",142:"Session taken over",143:"Topic Filter invalid",144:"Topic Name invalid",145:"Packet identifier in use",146:"Packet Identifier not found",147:"Receive Maximum exceeded",148:"Topic Alias invalid",149:"Packet too large",150:"Message rate too high",151:"Quota exceeded",152:"Administrative action",153:"Payload format invalid",154:"Retain not supported",155:"QoS not supported",156:"Use another server",157:"Server moved",158:"Shared Subscriptions not supported",159:"Connection rate exceeded",160:"Maximum connect time",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"};function w(){return"mqttjs_"+Math.random().toString(16).substr(2,8)}function S(t,e){if(5===t.options.protocolVersion&&"publish"===e.cmd){let n;e.properties&&(n=e.properties.topicAlias);const r=e.topic.toString();if(t.topicAliasSend)if(n){if(0!==r.length&&(v("applyTopicAlias :: register topic: %s - alias: %d",r,n),!t.topicAliasSend.put(r,n)))return v("applyTopicAlias :: error out of range. topic: %s - alias: %d",r,n),new Error("Sending Topic Alias out of range")}else 0!==r.length&&(t.options.autoAssignTopicAlias?(n=t.topicAliasSend.getAliasByTopic(r),n?(e.topic="",e.properties={...e.properties,topicAlias:n},v("applyTopicAlias :: auto assign(use) topic: %s - alias: %d",r,n)):(n=t.topicAliasSend.getLruAlias(),t.topicAliasSend.put(r,n),e.properties={...e.properties,topicAlias:n},v("applyTopicAlias :: auto assign topic: %s - alias: %d",r,n))):t.options.autoUseTopicAlias&&(n=t.topicAliasSend.getAliasByTopic(r),n&&(e.topic="",e.properties={...e.properties,topicAlias:n},v("applyTopicAlias :: auto use topic: %s - alias: %d",r,n))));else if(n)return v("applyTopicAlias :: error out of range. topic: %s - alias: %d",r,n),new Error("Sending Topic Alias out of range")}}function O(t,e){let n;e.properties&&(n=e.properties.topicAlias);let r=e.topic.toString();if(0===r.length){if("undefined"===typeof n)return new Error("Unregistered Topic Alias");if(r=t.topicAliasSend.getTopicByAlias(n),"undefined"===typeof r)return new Error("Unregistered Topic Alias");e.topic=r}n&&delete e.properties.topicAlias}function C(t,e,n){v("sendPacket :: packet: %O",e),v("sendPacket :: emitting `packetsend`"),t.emit("packetsend",e),v("sendPacket :: writing to stream");const r=l.writeToStream(e,t.stream,t.options);v("sendPacket :: writeToStream result %s",r),!r&&n&&n!==T?(v("sendPacket :: handle events on `drain` once through callback."),t.stream.once("drain",n)):n&&(v("sendPacket :: invoking cb"),n())}function k(t){t&&(v("flush: queue exists? %b",!!t),Object.keys(t).forEach((function(e){"function"===typeof t[e].cb&&(t[e].cb(new Error("Connection closed")),delete t[e])})))}function A(t){t&&(v("flushVolatile :: deleting volatile messages from the queue and setting their callbacks as error function"),Object.keys(t).forEach((function(e){t[e].volatile&&"function"===typeof t[e].cb&&(t[e].cb(new Error("Connection closed")),delete t[e])})))}function M(t,e,n,r){v("storeAndSend :: store packet with cmd %s to outgoingStore",e.cmd);let i,o=e;if("publish"===o.cmd&&(o=d(e),i=O(t,o),i))return n&&n(i);t.outgoingStore.put(o,(function(i){if(i)return n&&n(i);r(),C(t,e,n)}))}function T(t){v("nop ::",t)}function I(t,e){let n;const r=this;if(!(this instanceof I))return new I(t,e);for(n in this.options=e||{},b)"undefined"===typeof this.options[n]?this.options[n]=b[n]:this.options[n]=e[n];v("MqttClient :: options.protocol",e.protocol),v("MqttClient :: options.protocolVersion",e.protocolVersion),v("MqttClient :: options.username",e.username),v("MqttClient :: options.keepalive",e.keepalive),v("MqttClient :: options.reconnectPeriod",e.reconnectPeriod),v("MqttClient :: options.rejectUnauthorized",e.rejectUnauthorized),v("MqttClient :: options.topicAliasMaximum",e.topicAliasMaximum),this.options.clientId="string"===typeof e.clientId?e.clientId:w(),v("MqttClient :: clientId",this.options.clientId),this.options.customHandleAcks=5===e.protocolVersion&&e.customHandleAcks?e.customHandleAcks:function(){arguments[3](0)},this.streamBuilder=t,this.messageIdProvider="undefined"===typeof this.options.messageIdProvider?new u:this.options.messageIdProvider,this.outgoingStore=e.outgoingStore||new o,this.incomingStore=e.incomingStore||new o,this.queueQoSZero=void 0===e.queueQoSZero||e.queueQoSZero,this._resubscribeTopics={},this.messageIdToTopic={},this.pingTimer=null,this.connected=!1,this.disconnecting=!1,this.queue=[],this.connackTimer=null,this.reconnectTimer=null,this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={},this._storeProcessingQueue=[],this.outgoing={},this._firstConnection=!0,e.topicAliasMaximum>0&&(e.topicAliasMaximum>65535?v("MqttClient :: options.topicAliasMaximum is out of range"):this.topicAliasRecv=new a(e.topicAliasMaximum)),this.on("connect",(function(){const t=this.queue;function e(){const n=t.shift();v("deliver :: entry %o",n);let i=null;if(!n)return void r._resubscribe();i=n.packet,v("deliver :: call _sendPacket for %o",i);let o=!0;i.messageId&&0!==i.messageId&&(r.messageIdProvider.register(i.messageId)||(o=!1)),o?r._sendPacket(i,(function(t){n.cb&&n.cb(t),e()})):(v("messageId: %d has already used. The message is skipped and removed.",i.messageId),e())}v("connect :: sending queued packets"),e()})),this.on("close",(function(){v("close :: connected set to `false`"),this.connected=!1,v("close :: clearing connackTimer"),clearTimeout(this.connackTimer),v("close :: clearing ping timer"),null!==r.pingTimer&&(r.pingTimer.clear(),r.pingTimer=null),this.topicAliasRecv&&this.topicAliasRecv.clear(),v("close :: calling _setupReconnect"),this._setupReconnect()})),i.call(this),v("MqttClient :: setting up stream"),this._setupStream()}h(I,i),I.prototype._setupStream=function(){const t=this,e=new c,n=l.parser(this.options);let r=null;const i=[];function o(){if(i.length)y(a);else{const t=r;r=null,t()}}function a(){v("work :: getting next packet in queue");const e=i.shift();if(e)v("work :: packet pulled from queue"),t._handlePacket(e,o);else{v("work :: no packets in queue");const t=r;r=null,v("work :: done flag is %s",!!t),t&&t()}}function s(e){v("streamErrorHandler :: error",e.message),_.includes(e.code)?(v("streamErrorHandler :: emitting error"),t.emit("error",e)):T(e)}v("_setupStream :: calling method to clear reconnect"),this._clearReconnect(),v("_setupStream :: using streamBuilder provided to client to create stream"),this.stream=this.streamBuilder(this),n.on("packet",(function(t){v("parser :: on packet push to packets array."),i.push(t)})),e._write=function(t,e,i){r=i,v("writable stream :: parsing buffer"),n.parse(t),a()},v("_setupStream :: pipe stream to writable stream"),this.stream.pipe(e),this.stream.on("error",s),this.stream.on("close",(function(){v("(%s)stream :: on close",t.options.clientId),A(t.outgoing),v("stream: emit close to MqttClient"),t.emit("close")})),v("_setupStream: sending packet `connect`");const u=Object.create(this.options);if(u.cmd="connect",this.topicAliasRecv&&(u.properties||(u.properties={}),this.topicAliasRecv&&(u.properties.topicAliasMaximum=this.topicAliasRecv.max)),C(this,u),n.on("error",this.emit.bind(this,"error")),this.options.properties){if(!this.options.properties.authenticationMethod&&this.options.properties.authenticationData)return t.end(()=>this.emit("error",new Error("Packet has no Authentication Method"))),this;if(this.options.properties.authenticationMethod&&this.options.authPacket&&"object"===typeof this.options.authPacket){const t=g({cmd:"auth",reasonCode:0},this.options.authPacket);C(this,t)}}this.stream.setMaxListeners(1e3),clearTimeout(this.connackTimer),this.connackTimer=setTimeout((function(){v("!!connectTimeout hit!! Calling _cleanUp with force `true`"),t._cleanUp(!0)}),this.options.connectTimeout)},I.prototype._handlePacket=function(t,e){const n=this.options;if(5===n.protocolVersion&&n.properties&&n.properties.maximumPacketSize&&n.properties.maximumPacketSize<t.length)return this.emit("error",new Error("exceeding packets size "+t.cmd)),this.end({reasonCode:149,properties:{reasonString:"Maximum packet size was exceeded"}}),this;switch(v("_handlePacket :: emitting packetreceive"),this.emit("packetreceive",t),t.cmd){case"publish":this._handlePublish(t,e);break;case"puback":case"pubrec":case"pubcomp":case"suback":case"unsuback":this._handleAck(t),e();break;case"pubrel":this._handlePubrel(t,e);break;case"connack":this._handleConnack(t),e();break;case"auth":this._handleAuth(t),e();break;case"pingresp":this._handlePingresp(t),e();break;case"disconnect":this._handleDisconnect(t),e();break;default:break}},I.prototype._checkDisconnecting=function(t){return this.disconnecting&&(t&&t!==T?t(new Error("client disconnecting")):this.emit("error",new Error("client disconnecting"))),this.disconnecting},I.prototype.publish=function(t,e,n,r){v("publish :: message `%s` to topic `%s`",e,t);const i=this.options;"function"===typeof n&&(r=n,n=null);const o={qos:0,retain:!1,dup:!1};if(n=g(o,n),this._checkDisconnecting(r))return this;const a=this,s=function(){let o=0;if((1===n.qos||2===n.qos)&&(o=a._nextId(),null===o))return v("No messageId left"),!1;const s={cmd:"publish",topic:t,payload:e,qos:n.qos,retain:n.retain,messageId:o,dup:n.dup};switch(5===i.protocolVersion&&(s.properties=n.properties),v("publish :: qos",n.qos),n.qos){case 1:case 2:a.outgoing[s.messageId]={volatile:!1,cb:r||T},v("MqttClient:publish: packet cmd: %s",s.cmd),a._sendPacket(s,void 0,n.cbStorePut);break;default:v("MqttClient:publish: packet cmd: %s",s.cmd),a._sendPacket(s,r,n.cbStorePut);break}return!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!s())&&this._storeProcessingQueue.push({invoke:s,cbStorePut:n.cbStorePut,callback:r}),this},I.prototype.subscribe=function(){const t=this,e=new Array(arguments.length);for(let h=0;h<arguments.length;h++)e[h]=arguments[h];const n=[];let r=e.shift();const i=r.resubscribe;let o=e.pop()||T,a=e.pop();const s=this.options.protocolVersion;delete r.resubscribe,"string"===typeof r&&(r=[r]),"function"!==typeof o&&(a=o,o=T);const l=p.validateTopics(r);if(null!==l)return m(o,new Error("Invalid topic "+l)),this;if(this._checkDisconnecting(o))return v("subscribe: discconecting true"),this;const u={qos:0};if(5===s&&(u.nl=!1,u.rap=!1,u.rh=0),a=g(u,a),Array.isArray(r)?r.forEach((function(e){if(v("subscribe: array topic %s",e),!Object.prototype.hasOwnProperty.call(t._resubscribeTopics,e)||t._resubscribeTopics[e].qos<a.qos||i){const t={topic:e,qos:a.qos};5===s&&(t.nl=a.nl,t.rap=a.rap,t.rh=a.rh,t.properties=a.properties),v("subscribe: pushing topic `%s` and qos `%s` to subs list",t.topic,t.qos),n.push(t)}})):Object.keys(r).forEach((function(e){if(v("subscribe: object topic %s",e),!Object.prototype.hasOwnProperty.call(t._resubscribeTopics,e)||t._resubscribeTopics[e].qos<r[e].qos||i){const t={topic:e,qos:r[e].qos};5===s&&(t.nl=r[e].nl,t.rap=r[e].rap,t.rh=r[e].rh,t.properties=a.properties),v("subscribe: pushing `%s` to subs list",t),n.push(t)}})),!n.length)return o(null,[]),this;const c=function(){const e=t._nextId();if(null===e)return v("No messageId left"),!1;const r={cmd:"subscribe",subscriptions:n,qos:1,retain:!1,dup:!1,messageId:e};if(a.properties&&(r.properties=a.properties),t.options.resubscribe){v("subscribe :: resubscribe true");const e=[];n.forEach((function(n){if(t.options.reconnectPeriod>0){const r={qos:n.qos};5===s&&(r.nl=n.nl||!1,r.rap=n.rap||!1,r.rh=n.rh||0,r.properties=n.properties),t._resubscribeTopics[n.topic]=r,e.push(n.topic)}})),t.messageIdToTopic[r.messageId]=e}return t.outgoing[r.messageId]={volatile:!0,cb:function(t,e){if(!t){const t=e.granted;for(let e=0;e<t.length;e+=1)n[e].qos=t[e]}o(t,n)}},v("subscribe :: call _sendPacket"),t._sendPacket(r),!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!c())&&this._storeProcessingQueue.push({invoke:c,callback:o}),this},I.prototype.unsubscribe=function(){const t=this,e=new Array(arguments.length);for(let s=0;s<arguments.length;s++)e[s]=arguments[s];let n=e.shift(),r=e.pop()||T,i=e.pop();"string"===typeof n&&(n=[n]),"function"!==typeof r&&(i=r,r=T);const o=p.validateTopics(n);if(null!==o)return m(r,new Error("Invalid topic "+o)),this;if(t._checkDisconnecting(r))return this;const a=function(){const e=t._nextId();if(null===e)return v("No messageId left"),!1;const o={cmd:"unsubscribe",qos:1,messageId:e};return"string"===typeof n?o.unsubscriptions=[n]:Array.isArray(n)&&(o.unsubscriptions=n),t.options.resubscribe&&o.unsubscriptions.forEach((function(e){delete t._resubscribeTopics[e]})),"object"===typeof i&&i.properties&&(o.properties=i.properties),t.outgoing[o.messageId]={volatile:!0,cb:r},v("unsubscribe: call _sendPacket"),t._sendPacket(o),!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!a())&&this._storeProcessingQueue.push({invoke:a,callback:r}),this},I.prototype.end=function(t,e,n){const r=this;function i(){v("end :: closeStores: closing incoming and outgoing stores"),r.disconnected=!0,r.incomingStore.close((function(t){r.outgoingStore.close((function(e){if(v("end :: closeStores: emitting end"),r.emit("end"),n){const r=t||e;v("end :: closeStores: invoking callback with args"),n(r)}}))})),r._deferredReconnect&&r._deferredReconnect()}function o(){v("end :: (%s) :: finish :: calling _cleanUp with force %s",r.options.clientId,t),r._cleanUp(t,()=>{v("end :: finish :: calling process.nextTick on closeStores"),y(i.bind(r))},e)}return v("end :: (%s)",this.options.clientId),null!=t&&"boolean"===typeof t||(n=e||T,e=t,t=!1,"object"!==typeof e&&(n=e,e=null,"function"!==typeof n&&(n=T))),"object"!==typeof e&&(n=e,e=null),v("end :: cb? %s",!!n),n=n||T,this.disconnecting?(n(),this):(this._clearReconnect(),this.disconnecting=!0,!t&&Object.keys(this.outgoing).length>0?(v("end :: (%s) :: calling finish in 10ms once outgoing is empty",r.options.clientId),this.once("outgoingEmpty",setTimeout.bind(null,o,10))):(v("end :: (%s) :: immediately calling finish",r.options.clientId),o()),this)},I.prototype.removeOutgoingMessage=function(t){const e=this.outgoing[t]?this.outgoing[t].cb:null;return delete this.outgoing[t],this.outgoingStore.del({messageId:t},(function(){e(new Error("Message removed"))})),this},I.prototype.reconnect=function(t){v("client reconnect");const e=this,n=function(){t?(e.options.incomingStore=t.incomingStore,e.options.outgoingStore=t.outgoingStore):(e.options.incomingStore=null,e.options.outgoingStore=null),e.incomingStore=e.options.incomingStore||new o,e.outgoingStore=e.options.outgoingStore||new o,e.disconnecting=!1,e.disconnected=!1,e._deferredReconnect=null,e._reconnect()};return this.disconnecting&&!this.disconnected?this._deferredReconnect=n:n(),this},I.prototype._reconnect=function(){v("_reconnect: emitting reconnect to client"),this.emit("reconnect"),this.connected?(this.end(()=>{this._setupStream()}),v("client already connected. disconnecting first.")):(v("_reconnect: calling _setupStream"),this._setupStream())},I.prototype._setupReconnect=function(){const t=this;!t.disconnecting&&!t.reconnectTimer&&t.options.reconnectPeriod>0?(this.reconnecting||(v("_setupReconnect :: emit `offline` state"),this.emit("offline"),v("_setupReconnect :: set `reconnecting` to `true`"),this.reconnecting=!0),v("_setupReconnect :: setting reconnectTimer for %d ms",t.options.reconnectPeriod),t.reconnectTimer=setInterval((function(){v("reconnectTimer :: reconnect triggered!"),t._reconnect()}),t.options.reconnectPeriod)):v("_setupReconnect :: doing nothing...")},I.prototype._clearReconnect=function(){v("_clearReconnect : clearing reconnect timer"),this.reconnectTimer&&(clearInterval(this.reconnectTimer),this.reconnectTimer=null)},I.prototype._cleanUp=function(t,e){const n=arguments[2];if(e&&(v("_cleanUp :: done callback provided for on stream close"),this.stream.on("close",e)),v("_cleanUp :: forced? %s",t),t)0===this.options.reconnectPeriod&&this.options.clean&&k(this.outgoing),v("_cleanUp :: (%s) :: destroying stream",this.options.clientId),this.stream.destroy();else{const t=g({cmd:"disconnect"},n);v("_cleanUp :: (%s) :: call _sendPacket with disconnect packet",this.options.clientId),this._sendPacket(t,m.bind(null,this.stream.end.bind(this.stream)))}this.disconnecting||(v("_cleanUp :: client not disconnecting. Clearing and resetting reconnect."),this._clearReconnect(),this._setupReconnect()),null!==this.pingTimer&&(v("_cleanUp :: clearing pingTimer"),this.pingTimer.clear(),this.pingTimer=null),e&&!this.connected&&(v("_cleanUp :: (%s) :: removing stream `done` callback `close` listener",this.options.clientId),this.stream.removeListener("close",e),e())},I.prototype._sendPacket=function(t,e,n){v("_sendPacket :: (%s) :: start",this.options.clientId),n=n||T,e=e||T;const r=S(this,t);if(r)e(r);else{if(!this.connected)return"auth"===t.cmd?(this._shiftPingInterval(),void C(this,t,e)):(v("_sendPacket :: client not connected. Storing packet offline."),void this._storePacket(t,e,n));switch(this._shiftPingInterval(),t.cmd){case"publish":break;case"pubrel":return void M(this,t,e,n);default:return void C(this,t,e)}switch(t.qos){case 2:case 1:M(this,t,e,n);break;case 0:default:C(this,t,e);break}v("_sendPacket :: (%s) :: end",this.options.clientId)}},I.prototype._storePacket=function(t,e,n){v("_storePacket :: packet: %o",t),v("_storePacket :: cb? %s",!!e),n=n||T;let r=t;if("publish"===r.cmd){r=d(t);const n=O(this,r);if(n)return e&&e(n)}0===(r.qos||0)&&this.queueQoSZero||"publish"!==r.cmd?this.queue.push({packet:r,cb:e}):r.qos>0?(e=this.outgoing[r.messageId]?this.outgoing[r.messageId].cb:null,this.outgoingStore.put(r,(function(t){if(t)return e&&e(t);n()}))):e&&e(new Error("No connection to broker"))},I.prototype._setupPingTimer=function(){v("_setupPingTimer :: keepalive %d (seconds)",this.options.keepalive);const t=this;!this.pingTimer&&this.options.keepalive&&(this.pingResp=!0,this.pingTimer=f((function(){t._checkPing()}),1e3*this.options.keepalive))},I.prototype._shiftPingInterval=function(){this.pingTimer&&this.options.keepalive&&this.options.reschedulePings&&this.pingTimer.reschedule(1e3*this.options.keepalive)},I.prototype._checkPing=function(){v("_checkPing :: checking ping..."),this.pingResp?(v("_checkPing :: ping response received. Clearing flag and sending `pingreq`"),this.pingResp=!1,this._sendPacket({cmd:"pingreq"})):(v("_checkPing :: calling _cleanUp with force true"),this._cleanUp(!0))},I.prototype._handlePingresp=function(){this.pingResp=!0},I.prototype._handleConnack=function(t){v("_handleConnack");const e=this.options,n=e.protocolVersion,r=5===n?t.reasonCode:t.returnCode;if(clearTimeout(this.connackTimer),delete this.topicAliasSend,t.properties){if(t.properties.topicAliasMaximum){if(t.properties.topicAliasMaximum>65535)return void this.emit("error",new Error("topicAliasMaximum from broker is out of range"));t.properties.topicAliasMaximum>0&&(this.topicAliasSend=new s(t.properties.topicAliasMaximum))}t.properties.serverKeepAlive&&e.keepalive&&(e.keepalive=t.properties.serverKeepAlive,this._shiftPingInterval()),t.properties.maximumPacketSize&&(e.properties||(e.properties={}),e.properties.maximumPacketSize=t.properties.maximumPacketSize)}if(0===r)this.reconnecting=!1,this._onConnect(t);else if(r>0){const t=new Error("Connection refused: "+x[r]);t.code=r,this.emit("error",t)}},I.prototype._handleAuth=function(t){const e=this.options,n=e.protocolVersion,r=5===n?t.reasonCode:t.returnCode;if(5!==n){const t=new Error("Protocol error: Auth packets are only supported in MQTT 5. Your version:"+n);return t.code=r,void this.emit("error",t)}const i=this;this.handleAuth(t,(function(t,e){if(t)i.emit("error",t);else if(24===r)i.reconnecting=!1,i._sendPacket(e);else{const e=new Error("Connection refused: "+x[r]);t.code=r,i.emit("error",e)}}))},I.prototype.handleAuth=function(t,e){e()},I.prototype._handlePublish=function(t,e){v("_handlePublish: packet %o",t),e="undefined"!==typeof e?e:T;let n=t.topic.toString();const r=t.payload,i=t.qos,o=t.messageId,a=this,s=this.options,l=[0,16,128,131,135,144,145,151,153];if(5===this.options.protocolVersion){let e;if(t.properties&&(e=t.properties.topicAlias),"undefined"!==typeof e)if(0===n.length){if(!(e>0&&e<=65535))return v("_handlePublish :: topic alias out of range. alias: %d",e),void this.emit("error",new Error("Received Topic Alias is out of range"));{const t=this.topicAliasRecv.getTopicByAlias(e);if(!t)return v("_handlePublish :: unregistered topic alias. alias: %d",e),void this.emit("error",new Error("Received unregistered Topic Alias"));n=t,v("_handlePublish :: topic complemented by alias. topic: %s - alias: %d",n,e)}}else{if(!this.topicAliasRecv.put(n,e))return v("_handlePublish :: topic alias out of range. alias: %d",e),void this.emit("error",new Error("Received Topic Alias is out of range"));v("_handlePublish :: registered topic: %s - alias: %d",n,e)}}switch(v("_handlePublish: qos %d",i),i){case 2:s.customHandleAcks(n,r,t,(function(n,r){return n instanceof Error||(r=n,n=null),n?a.emit("error",n):-1===l.indexOf(r)?a.emit("error",new Error("Wrong reason code for pubrec")):void(r?a._sendPacket({cmd:"pubrec",messageId:o,reasonCode:r},e):a.incomingStore.put(t,(function(){a._sendPacket({cmd:"pubrec",messageId:o},e)})))}));break;case 1:s.customHandleAcks(n,r,t,(function(i,s){return i instanceof Error||(s=i,i=null),i?a.emit("error",i):-1===l.indexOf(s)?a.emit("error",new Error("Wrong reason code for puback")):(s||a.emit("message",n,r,t),void a.handleMessage(t,(function(t){if(t)return e&&e(t);a._sendPacket({cmd:"puback",messageId:o,reasonCode:s},e)})))}));break;case 0:this.emit("message",n,r,t),this.handleMessage(t,e);break;default:v("_handlePublish: unknown QoS. Doing nothing.");break}},I.prototype.handleMessage=function(t,e){e()},I.prototype._handleAck=function(t){const e=t.messageId,n=t.cmd;let r=null;const i=this.outgoing[e]?this.outgoing[e].cb:null,o=this;let a;if(i){switch(v("_handleAck :: packet type",n),n){case"pubcomp":case"puback":{const n=t.reasonCode;n&&n>0&&16!==n&&(a=new Error("Publish error: "+x[n]),a.code=n,i(a,t)),delete this.outgoing[e],this.outgoingStore.del(t,i),this.messageIdProvider.deallocate(e),this._invokeStoreProcessingQueue();break}case"pubrec":{r={cmd:"pubrel",qos:2,messageId:e};const n=t.reasonCode;n&&n>0&&16!==n?(a=new Error("Publish error: "+x[n]),a.code=n,i(a,t)):this._sendPacket(r);break}case"suback":delete this.outgoing[e],this.messageIdProvider.deallocate(e);for(let n=0;n<t.granted.length;n++)if(0!==(128&t.granted[n])){const t=this.messageIdToTopic[e];t&&t.forEach((function(t){delete o._resubscribeTopics[t]}))}this._invokeStoreProcessingQueue(),i(null,t);break;case"unsuback":delete this.outgoing[e],this.messageIdProvider.deallocate(e),this._invokeStoreProcessingQueue(),i(null);break;default:o.emit("error",new Error("unrecognized packet type"))}this.disconnecting&&0===Object.keys(this.outgoing).length&&this.emit("outgoingEmpty")}else v("_handleAck :: Server sent an ack in error. Ignoring.")},I.prototype._handlePubrel=function(t,e){v("handling pubrel packet"),e="undefined"!==typeof e?e:T;const n=t.messageId,r=this,i={cmd:"pubcomp",messageId:n};r.incomingStore.get(t,(function(t,n){t?r._sendPacket(i,e):(r.emit("message",n.topic,n.payload,n),r.handleMessage(n,(function(t){if(t)return e(t);r.incomingStore.del(n,T),r._sendPacket(i,e)})))}))},I.prototype._handleDisconnect=function(t){this.emit("disconnect",t)},I.prototype._nextId=function(){return this.messageIdProvider.allocate()},I.prototype.getLastMessageId=function(){return this.messageIdProvider.getLastAllocated()},I.prototype._resubscribe=function(){v("_resubscribe");const t=Object.keys(this._resubscribeTopics);if(!this._firstConnection&&(this.options.clean||5===this.options.protocolVersion&&!this.connackPacket.sessionPresent)&&t.length>0)if(this.options.resubscribe)if(5===this.options.protocolVersion){v("_resubscribe: protocolVersion 5");for(let e=0;e<t.length;e++){const n={};n[t[e]]=this._resubscribeTopics[t[e]],n.resubscribe=!0,this.subscribe(n,{properties:n[t[e]].properties})}}else this._resubscribeTopics.resubscribe=!0,this.subscribe(this._resubscribeTopics);else this._resubscribeTopics={};this._firstConnection=!1},I.prototype._onConnect=function(t){if(this.disconnected)return void this.emit("connect",t);const e=this;function n(){let r=e.outgoingStore.createStream();function i(){e._storeProcessing=!1,e._packetIdsDuringStoreProcessing={}}function o(){r.destroy(),r=null,e._flushStoreProcessingQueue(),i()}function a(){if(!r)return;e._storeProcessing=!0;const t=r.read(1);let n;t?e._packetIdsDuringStoreProcessing[t.messageId]?a():e.disconnecting||e.reconnectTimer?r.destroy&&r.destroy():(n=e.outgoing[t.messageId]?e.outgoing[t.messageId].cb:null,e.outgoing[t.messageId]={volatile:!1,cb:function(t,e){n&&n(t,e),a()}},e._packetIdsDuringStoreProcessing[t.messageId]=!0,e.messageIdProvider.register(t.messageId)?e._sendPacket(t):v("messageId: %d has already used.",t.messageId)):r.once("readable",a)}e.once("close",o),r.on("error",(function(t){i(),e._flushStoreProcessingQueue(),e.removeListener("close",o),e.emit("error",t)})),r.on("end",(function(){let r=!0;for(const t in e._packetIdsDuringStoreProcessing)if(!e._packetIdsDuringStoreProcessing[t]){r=!1;break}r?(i(),e.removeListener("close",o),e._invokeAllStoreProcessingQueue(),e.emit("connect",t)):n()})),a()}this.connackPacket=t,this.messageIdProvider.clear(),this._setupPingTimer(),this.connected=!0,n()},I.prototype._invokeStoreProcessingQueue=function(){if(this._storeProcessingQueue.length>0){const t=this._storeProcessingQueue[0];if(t&&t.invoke())return this._storeProcessingQueue.shift(),!0}return!1},I.prototype._invokeAllStoreProcessingQueue=function(){while(this._invokeStoreProcessingQueue());},I.prototype._flushStoreProcessingQueue=function(){for(const t of this._storeProcessingQueue)t.cbStorePut&&t.cbStorePut(new Error("Connection closed")),t.callback&&t.callback(new Error("Connection closed"));this._storeProcessingQueue.splice(0)},t.exports=I}).call(this,n("4362"),n("c8ba"))},dfe5:function(t,e){},e017:function(t,e,n){(function(e){(function(e,n){t.exports=n()})(0,(function(){"use strict";var t=function(t){var e=t.id,n=t.viewBox,r=t.content;this.id=e,this.viewBox=n,this.content=r};t.prototype.stringify=function(){return this.content},t.prototype.toString=function(){return this.stringify()},t.prototype.destroy=function(){var t=this;["id","viewBox","content"].forEach((function(e){return delete t[e]}))};var n=function(t){var e=!!document.importNode,n=(new DOMParser).parseFromString(t,"image/svg+xml").documentElement;return e?document.importNode(n,!0):n};"undefined"!==typeof window?window:"undefined"!==typeof e||"undefined"!==typeof self&&self;function r(t,e){return e={exports:{}},t(e,e.exports),e.exports}var i=r((function(t,e){(function(e,n){t.exports=n()})(0,(function(){function t(t){var e=t&&"object"===typeof t;return e&&"[object RegExp]"!==Object.prototype.toString.call(t)&&"[object Date]"!==Object.prototype.toString.call(t)}function e(t){return Array.isArray(t)?[]:{}}function n(n,r){var i=r&&!0===r.clone;return i&&t(n)?o(e(n),n,r):n}function r(e,r,i){var a=e.slice();return r.forEach((function(r,s){"undefined"===typeof a[s]?a[s]=n(r,i):t(r)?a[s]=o(e[s],r,i):-1===e.indexOf(r)&&a.push(n(r,i))})),a}function i(e,r,i){var a={};return t(e)&&Object.keys(e).forEach((function(t){a[t]=n(e[t],i)})),Object.keys(r).forEach((function(s){t(r[s])&&e[s]?a[s]=o(e[s],r[s],i):a[s]=n(r[s],i)})),a}function o(t,e,o){var a=Array.isArray(e),s=o||{arrayMerge:r},l=s.arrayMerge||r;return a?Array.isArray(t)?l(t,e,o):n(e,o):i(t,e,o)}return o.all=function(t,e){if(!Array.isArray(t)||t.length<2)throw new Error("first argument should be an array with at least two elements");return t.reduce((function(t,n){return o(t,n,e)}))},o}))})),o=r((function(t,e){var n={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}};e.default=n,t.exports=e.default})),a=function(t){return Object.keys(t).map((function(e){var n=t[e].toString().replace(/"/g,""");return e+'="'+n+'"'})).join(" ")},s=o.svg,l=o.xlink,u={};u[s.name]=s.uri,u[l.name]=l.uri;var c=function(t,e){void 0===t&&(t="");var n=i(u,e||{}),r=a(n);return"<svg "+r+">"+t+"</svg>"},h=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var r={isMounted:{}};return r.isMounted.get=function(){return!!this.node},e.createFromExistingNode=function(t){return new e({id:t.getAttribute("id"),viewBox:t.getAttribute("viewBox"),content:t.outerHTML})},e.prototype.destroy=function(){this.isMounted&&this.unmount(),t.prototype.destroy.call(this)},e.prototype.mount=function(t){if(this.isMounted)return this.node;var e="string"===typeof t?document.querySelector(t):t,n=this.render();return this.node=n,e.appendChild(n),n},e.prototype.render=function(){var t=this.stringify();return n(c(t)).childNodes[0]},e.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(e.prototype,r),e}(t);return h}))}).call(this,n("c8ba"))},e01a:function(t,e,n){"use strict";var r=n("23e7"),i=n("83ab"),o=n("da84"),a=n("e330"),s=n("1a2d"),l=n("1626"),u=n("3a9b"),c=n("577e"),h=n("9bf2").f,f=n("e893"),d=o.Symbol,p=d&&d.prototype;if(i&&l(d)&&(!("description"in p)||void 0!==d().description)){var g={},v=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:c(arguments[0]),e=u(p,this)?new d(t):void 0===t?d():d(t);return""===t&&(g[e]=!0),e};f(v,d),v.prototype=p,p.constructor=v;var y="Symbol(test)"==String(d("test")),m=a(p.valueOf),b=a(p.toString),_=/^Symbol\((.*)\)[^)]+$/,x=a("".replace),w=a("".slice);h(p,"description",{configurable:!0,get:function(){var t=m(this);if(s(g,t))return"";var e=b(t),n=y?w(e,7,-1):x(e,_,"$1");return""===n?void 0:n}}),r({global:!0,constructor:!0,forced:!0},{Symbol:v})}},e065:function(t,e,n){var r=n("428f"),i=n("1a2d"),o=n("e538"),a=n("9bf2").f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});i(e,t)||a(e,t,{value:o.f(t)})}},e099:function(t,e,n){"use strict";var r=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,e,n,s){return e=e||"&",n=n||"=",null===t&&(t=void 0),"object"===typeof t?o(a(t),(function(a){var s=encodeURIComponent(r(a))+n;return i(t[a])?o(t[a],(function(t){return s+encodeURIComponent(r(t))})).join(e):s+encodeURIComponent(r(t[a]))})).join(e):s?encodeURIComponent(r(s))+n+encodeURIComponent(r(t)):""};var i=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function o(t,e){if(t.map)return t.map(e);for(var n=[],r=0;r<t.length;r++)n.push(e(t[r],r));return n}var a=Object.keys||function(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.push(n);return e}},e11f:function(t,e,n){},e142:function(t,e,n){"use strict";function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i={};function o(t,e,n){function o(t,n,r){return"string"===typeof e?e:e(t,n,r)}n||(n=Error);var a=function(t){function e(e,n,r){return t.call(this,o(e,n,r))||this}return r(e,t),e}(n);a.prototype.name=n.name,a.prototype.code=t,i[t]=a}function a(t,e){if(Array.isArray(t)){var n=t.length;return t=t.map((function(t){return String(t)})),n>2?"one of ".concat(e," ").concat(t.slice(0,n-1).join(", "),", or ")+t[n-1]:2===n?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}function s(t,e,n){return t.substr(!n||n<0?0:+n,e.length)===e}function l(t,e,n){return(void 0===n||n>t.length)&&(n=t.length),t.substring(n-e.length,n)===e}function u(t,e,n){return"number"!==typeof n&&(n=0),!(n+e.length>t.length)&&-1!==t.indexOf(e,n)}o("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'}),TypeError),o("ERR_INVALID_ARG_TYPE",(function(t,e,n){var r,i;if("string"===typeof e&&s(e,"not ")?(r="must not be",e=e.replace(/^not /,"")):r="must be",l(t," argument"))i="The ".concat(t," ").concat(r," ").concat(a(e,"type"));else{var o=u(t,".")?"property":"argument";i='The "'.concat(t,'" ').concat(o," ").concat(r," ").concat(a(e,"type"))}return i+=". Received type ".concat(typeof n),i}),TypeError),o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),o("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),o("ERR_STREAM_PREMATURE_CLOSE","Premature close"),o("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),o("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),o("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),o("ERR_STREAM_WRITE_AFTER_END","write after end"),o("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),o("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=i},e163:function(t,e,n){var r=n("1a2d"),i=n("1626"),o=n("7b0b"),a=n("f772"),s=n("e177"),l=a("IE_PROTO"),u=Object,c=u.prototype;t.exports=s?u.getPrototypeOf:function(t){var e=o(t);if(r(e,l))return e[l];var n=e.constructor;return i(n)&&e instanceof n?n.prototype:e instanceof u?c:null}},e169:function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.drawPolylinePath=o,e.drawBezierCurvePath=a,e["default"]=void 0;var i=r(n("448a"));function o(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!t||e.length<2)return!1;n&&t.beginPath(),e.forEach((function(e,n){return e&&(0===n?t.moveTo.apply(t,(0,i["default"])(e)):t.lineTo.apply(t,(0,i["default"])(e)))})),r&&t.closePath()}function a(t,e){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(!t||!e)return!1;r&&t.beginPath(),n&&t.moveTo.apply(t,(0,i["default"])(n)),e.forEach((function(e){return e&&t.bezierCurveTo.apply(t,(0,i["default"])(e[0]).concat((0,i["default"])(e[1]),(0,i["default"])(e[2])))})),o&&t.closePath()}var s={drawPolylinePath:o,drawBezierCurvePath:a};e["default"]=s},e177:function(t,e,n){var r=n("d039");t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},e198:function(t,e,n){var r=n("ef08"),i=n("5524"),o=n("e444"),a=n("fcd4"),s=n("1a14").f;t.exports=function(t){var e=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},e260:function(t,e,n){"use strict";var r=n("fc6a"),i=n("44d2"),o=n("3f8c"),a=n("69f3"),s=n("9bf2").f,l=n("c6d2"),u=n("4754"),c=n("c430"),h=n("83ab"),f="Array Iterator",d=a.set,p=a.getterFor(f);t.exports=l(Array,"Array",(function(t,e){d(this,{type:f,target:r(t),index:0,kind:e})}),(function(){var t=p(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,u(void 0,!0)):u("keys"==n?r:"values"==n?e[r]:[r,e[r]],!1)}),"values");var g=o.Arguments=o.Array;if(i("keys"),i("values"),i("entries"),!c&&h&&"values"!==g.name)try{s(g,"name",{value:"values"})}catch(v){}},e330:function(t,e,n){var r=n("40d5"),i=Function.prototype,o=i.bind,a=i.call,s=r&&o.bind(a,a);t.exports=r?function(t){return t&&s(t)}:function(t){return t&&function(){return a.apply(t,arguments)}}},e34a:function(t,e,n){var r=n("8b1a")("meta"),i=n("7a41"),o=n("9c0e"),a=n("1a14").f,s=0,l=Object.isExtensible||function(){return!0},u=!n("4b8b")((function(){return l(Object.preventExtensions({}))})),c=function(t){a(t,r,{value:{i:"O"+ ++s,w:{}}})},h=function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,r)){if(!l(t))return"F";if(!e)return"E";c(t)}return t[r].i},f=function(t,e){if(!o(t,r)){if(!l(t))return!0;if(!e)return!1;c(t)}return t[r].w},d=function(t){return u&&p.NEED&&l(t)&&!o(t,r)&&c(t),t},p=t.exports={KEY:r,NEED:!1,fastKey:h,getWeak:f,onFreeze:d}},e391:function(t,e,n){var r=n("577e");t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:r(t)}},e439:function(t,e,n){var r=n("23e7"),i=n("d039"),o=n("fc6a"),a=n("06cf").f,s=n("83ab"),l=i((function(){a(1)})),u=!s||l;r({target:"Object",stat:!0,forced:u,sham:!s},{getOwnPropertyDescriptor:function(t,e){return a(o(t),e)}})},e444:function(t,e){t.exports=!0},e507:function(t,e,n){var r=n("512c");r(r.S+r.F,"Object",{assign:n("072d")})},e50d:function(t,e,n){n("8172"),n("efec"),n("a4d3"),n("e01a"),n("d3b7"),n("d9e2"),n("a9e3");var r=n("7037")["default"];function i(t,e){if("object"!==r(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!==r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}t.exports=i,t.exports.__esModule=!0,t.exports["default"]=t.exports},e538:function(t,e,n){var r=n("b622");e.f=r},e5cb:function(t,e,n){"use strict";var r=n("d066"),i=n("1a2d"),o=n("9112"),a=n("3a9b"),s=n("d2bb"),l=n("e893"),u=n("aeb0"),c=n("7156"),h=n("e391"),f=n("ab36"),d=n("0d26"),p=n("b980"),g=n("83ab"),v=n("c430");t.exports=function(t,e,n,y){var m="stackTraceLimit",b=y?2:1,_=t.split("."),x=_[_.length-1],w=r.apply(null,_);if(w){var S=w.prototype;if(!v&&i(S,"cause")&&delete S.cause,!n)return w;var O=r("Error"),C=e((function(t,e){var n=h(y?e:t,void 0),r=y?new w(t):new w;return void 0!==n&&o(r,"message",n),p&&o(r,"stack",d(r.stack,2)),this&&a(S,this)&&c(r,this,C),arguments.length>b&&f(r,arguments[b]),r}));if(C.prototype=S,"Error"!==x?s?s(C,O):l(C,O,{name:!0}):g&&m in w&&(u(C,w,m),u(C,w,"prepareStackTrace")),l(C,w),!v)try{S.name!==x&&o(S,"name",x),S.constructor=C}catch(k){}return C}}},e667:function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}}},e683:function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},e6cf:function(t,e,n){n("5e7e"),n("14e5"),n("cc98"),n("3529"),n("f22b"),n("7149")},e7d0:function(t,e,n){"use strict";function r(t){if(!(this instanceof r))return new r(t);this.aliasToTopic={},this.max=t}r.prototype.put=function(t,e){return!(0===e||e>this.max)&&(this.aliasToTopic[e]=t,this.length=Object.keys(this.aliasToTopic).length,!0)},r.prototype.getTopicByAlias=function(t){return this.aliasToTopic[t]},r.prototype.clear=function(){this.aliasToTopic={}},t.exports=r},e7fc:function(t,e,n){"use strict";(function(e){const r=n("df86"),i=n("ea08"),o=n("0b16"),a=n("53a8"),s=n("34eb")("mqttjs"),l={};function u(t){let e;t.auth&&(e=t.auth.match(/^(.+):(.+)$/),e?(t.username=e[1],t.password=e[2]):t.username=t.auth)}function c(t,e){if(s("connecting to an MQTT broker..."),"object"!==typeof t||e||(e=t,t=null),e=e||{},t){const n=o.parse(t,!0);if(null!=n.port&&(n.port=Number(n.port)),e=a(n,e),null===e.protocol)throw new Error("Missing protocol");e.protocol=e.protocol.replace(/:$/,"")}if(u(e),e.query&&"string"===typeof e.query.clientId&&(e.clientId=e.query.clientId),e.cert&&e.key){if(!e.protocol)throw new Error("Missing secure protocol key");if(-1===["mqtts","wss","wxs","alis"].indexOf(e.protocol))switch(e.protocol){case"mqtt":e.protocol="mqtts";break;case"ws":e.protocol="wss";break;case"wx":e.protocol="wxs";break;case"ali":e.protocol="alis";break;default:throw new Error('Unknown protocol for secure connection: "'+e.protocol+'"!')}}if(!l[e.protocol]){const t=-1!==["mqtts","wss"].indexOf(e.protocol);e.protocol=["mqtt","mqtts","ws","wss","wx","wxs","ali","alis"].filter((function(e,n){return(!t||n%2!==0)&&"function"===typeof l[e]}))[0]}if(!1===e.clean&&!e.clientId)throw new Error("Missing clientId for unclean clients");function n(t){return e.servers&&(t._reconnectCount&&t._reconnectCount!==e.servers.length||(t._reconnectCount=0),e.host=e.servers[t._reconnectCount].host,e.port=e.servers[t._reconnectCount].port,e.protocol=e.servers[t._reconnectCount].protocol?e.servers[t._reconnectCount].protocol:e.defaultProtocol,e.hostname=e.host,t._reconnectCount++),s("calling streambuilder for",e.protocol),l[e.protocol](t,e)}e.protocol&&(e.defaultProtocol=e.protocol);const i=new r(n,e);return i.on("error",(function(){})),i}"undefined"!==typeof e&&"browser"!==e.title||"function"!==typeof n?(l.mqtt=n("05ee"),l.tcp=n("05ee"),l.ssl=n("fe3c"),l.tls=n("fe3c"),l.mqtts=n("fe3c")):(l.wx=n("8311"),l.wxs=n("8311"),l.ali=n("c4c7"),l.alis=n("c4c7")),l.ws=n("fcb9"),l.wss=n("fcb9"),t.exports=c,t.exports.connect=c,t.exports.MqttClient=r,t.exports.Store=i}).call(this,n("4362"))},e893:function(t,e,n){var r=n("1a2d"),i=n("56ef"),o=n("06cf"),a=n("9bf2");t.exports=function(t,e,n){for(var s=i(e),l=a.f,u=o.f,c=0;c<s.length;c++){var h=s[c];r(t,h)||n&&r(n,h)||l(t,h,u(e,h))}}},e8b5:function(t,e,n){var r=n("c6b6");t.exports=Array.isArray||function(t){return"Array"==r(t)}},e937:function(t,e,n){"use strict";function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),t}var u=n("1c35"),c=u.Buffer,h=n(5),f=h.inspect,d=f&&f.custom||"inspect";function p(t,e,n){c.prototype.copy.call(t,e,n)}t.exports=function(){function t(){a(this,t),this.head=null,this.tail=null,this.length=0}return l(t,[{key:"push",value:function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";var e=this.head,n=""+e.data;while(e=e.next)n+=t+e.data;return n}},{key:"concat",value:function(t){if(0===this.length)return c.alloc(0);var e=c.allocUnsafe(t>>>0),n=this.head,r=0;while(n)p(n.data,e,r),r+=n.data.length,n=n.next;return e}},{key:"consume",value:function(t,e){var n;return t<this.head.data.length?(n=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):n=t===this.head.data.length?this.shift():e?this._getString(t):this._getBuffer(t),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var e=this.head,n=1,r=e.data;t-=r.length;while(e=e.next){var i=e.data,o=t>i.length?i.length:t;if(o===i.length?r+=i:r+=i.slice(0,t),t-=o,0===t){o===i.length?(++n,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=i.slice(o));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(t){var e=c.allocUnsafe(t),n=this.head,r=1;n.data.copy(e),t-=n.data.length;while(n=n.next){var i=n.data,o=t>i.length?i.length:t;if(i.copy(e,e.length-t,0,o),t-=o,0===t){o===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(o));break}++r}return this.length-=r,e}},{key:d,value:function(t,e){return f(this,i({},e,{depth:0,customInspect:!1}))}}]),t}()},e95a:function(t,e,n){var r=n("b622"),i=n("3f8c"),o=r("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||a[o]===t)}},e9c4:function(t,e,n){var r=n("23e7"),i=n("d066"),o=n("2ba4"),a=n("c65b"),s=n("e330"),l=n("d039"),u=n("e8b5"),c=n("1626"),h=n("861d"),f=n("d9b5"),d=n("f36a"),p=n("04f8"),g=i("JSON","stringify"),v=s(/./.exec),y=s("".charAt),m=s("".charCodeAt),b=s("".replace),_=s(1..toString),x=/[\uD800-\uDFFF]/g,w=/^[\uD800-\uDBFF]$/,S=/^[\uDC00-\uDFFF]$/,O=!p||l((function(){var t=i("Symbol")();return"[null]"!=g([t])||"{}"!=g({a:t})||"{}"!=g(Object(t))})),C=l((function(){return'"\\udf06\\ud834"'!==g("\udf06\ud834")||'"\\udead"'!==g("\udead")})),k=function(t,e){var n=d(arguments),r=e;if((h(e)||void 0!==t)&&!f(t))return u(e)||(e=function(t,e){if(c(r)&&(e=a(r,this,t,e)),!f(e))return e}),n[1]=e,o(g,null,n)},A=function(t,e,n){var r=y(n,e-1),i=y(n,e+1);return v(w,t)&&!v(S,i)||v(S,t)&&!v(w,r)?"\\u"+_(m(t,0),16):t};g&&r({target:"JSON",stat:!0,arity:3,forced:O||C},{stringify:function(t,e,n){var r=d(arguments),i=o(O?k:g,null,r);return C&&"string"==typeof i?b(i,x,A):i}})},ea08:function(t,e,n){"use strict";const r=n("53a8"),i=n("035d").Readable,o={objectMode:!0},a={clean:!0};function s(t){if(!(this instanceof s))return new s(t);this.options=t||{},this.options=r(a,t),this._inflights=new Map}s.prototype.put=function(t,e){return this._inflights.set(t.messageId,t),e&&e(),this},s.prototype.createStream=function(){const t=new i(o),e=[];let n=!1,r=0;return this._inflights.forEach((function(t,n){e.push(t)})),t._read=function(){!n&&r<e.length?this.push(e[r++]):this.push(null)},t.destroy=function(){if(n)return;const t=this;n=!0,setTimeout((function(){t.emit("close")}),0)},t},s.prototype.del=function(t,e){return t=this._inflights.get(t.messageId),t?(this._inflights.delete(t.messageId),e(null,t)):e&&e(new Error("missing packet")),this},s.prototype.get=function(t,e){return t=this._inflights.get(t.messageId),t?e(null,t):e&&e(new Error("missing packet")),this},s.prototype.close=function(t){this.options.clean&&(this._inflights=null),t&&t()},t.exports=s},ea34:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},eb53:function(t,e,n){"use strict";var r=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=void 0;var i=r(n("a34a")),o=r(n("c973")),a=r(n("7037")),s=r(n("448a")),l=r(n("970b")),u=r(n("d0b5")),c=r(n("8f47")),h=n("5557"),f=function t(e,n){(0,l["default"])(this,t),n=(0,h.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({},e.shape,n.shape);Object.assign(r,n,i),Object.assign(this,e,r),this.shape=o,this.style=new u["default"](n.style),this.addedProcessor()};function d(t){return new Promise((function(e){setTimeout(e,t)}))}e["default"]=f,f.prototype.addedProcessor=function(){"function"===typeof this.setGraphCenter&&this.setGraphCenter(null,this),"function"===typeof this.added&&this.added(this)},f.prototype.drawProcessor=function(t,e){var n=t.ctx;e.style.initStyle(n),"function"===typeof this.beforeDraw&&this.beforeDraw(this,t),e.draw(t,e),"function"===typeof this.drawed&&this.drawed(this,t),e.style.restoreTransform(n)},f.prototype.hoverCheckProcessor=function(t,e){var n=e.hoverRect,r=e.style,i=e.hoverCheck,o=r.graphCenter,a=r.rotate,l=r.scale,u=r.translate;return o&&(a&&(t=(0,h.getRotatePointPos)(-a,t,o)),l&&(t=(0,h.getScalePointPos)(l.map((function(t){return 1/t})),t,o)),u&&(t=(0,h.getTranslatePointPos)(u.map((function(t){return-1*t})),t))),n?h.checkPointIsInRect.apply(void 0,[t].concat((0,s["default"])(n))):i(t,this)},f.prototype.moveProcessor=function(t){this.move(t,this),"function"===typeof this.beforeMove&&this.beforeMove(t,this),"function"===typeof this.setGraphCenter&&this.setGraphCenter(t,this),"function"===typeof this.moved&&this.moved(t,this)},f.prototype.attr=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(!t||void 0===e)return!1;var n="object"===(0,a["default"])(this[t]);n&&(e=(0,h.deepClone)(e,!0));var r=this.render;"style"===t?this.style.update(e):n?Object.assign(this[t],e):this[t]=e,"index"===t&&r.sortGraphsByIndex(),r.drawAllGraph()},f.prototype.animation=function(){var t=(0,o["default"])(i["default"].mark((function t(e,n){var r,a,s,l,u,f,p,g,v,y=arguments;return i["default"].wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(r=y.length>2&&void 0!==y[2]&&y[2],"shape"===e||"style"===e){t.next=4;break}return console.error("Only supported shape and style animation!"),t.abrupt("return");case 4:if(n=(0,h.deepClone)(n,!0),"style"===e&&this.style.colorProcessor(n),a=this[e],s=Object.keys(n),l={},s.forEach((function(t){return l[t]=a[t]})),u=this.animationFrame,f=this.animationCurve,p=this.animationDelay,g=(0,c["default"])(f,l,n,u,!0),this.animationRoot.push(a),this.animationKeys.push(s),this.animationFrameState.push(g),!r){t.next=17;break}return t.abrupt("return");case 17:if(!(p>0)){t.next=20;break}return t.next=20,d(p);case 20:return v=this.render,t.abrupt("return",new Promise(function(){var t=(0,o["default"])(i["default"].mark((function t(e){return i["default"].wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,v.launchAnimation();case 2:e();case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()));case 22:case"end":return t.stop()}}),t,this)})));return function(e,n){return t.apply(this,arguments)}}(),f.prototype.turnNextAnimationFrame=function(t){var e=this.animationDelay,n=this.animationRoot,r=this.animationKeys,i=this.animationFrameState,o=this.animationPause;o||Date.now()-t<e||(n.forEach((function(t,e){r[e].forEach((function(n){t[n]=i[e][0][n]}))})),i.forEach((function(t,e){t.shift();var i=0===t.length;i&&(n[e]=null),i&&(r[e]=null)})),this.animationFrameState=i.filter((function(t){return t.length})),this.animationRoot=n.filter((function(t){return t})),this.animationKeys=r.filter((function(t){return t})))},f.prototype.animationEnd=function(){var t=this.animationFrameState,e=this.animationKeys,n=this.animationRoot,r=this.render;return n.forEach((function(n,r){var i=e[r],o=t[r].pop();i.forEach((function(t){return n[t]=o[t]}))})),this.animationFrameState=[],this.animationKeys=[],this.animationRoot=[],r.drawAllGraph()},f.prototype.pauseAnimation=function(){this.attr("animationPause",!0)},f.prototype.playAnimation=function(){var t=this.render;return this.attr("animationPause",!1),new Promise(function(){var e=(0,o["default"])(i["default"].mark((function e(n){return i["default"].wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.launchAnimation();case 2:n();case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())},f.prototype.delProcessor=function(t){var e=this,n=t.graphs,r=n.findIndex((function(t){return t===e}));-1!==r&&("function"===typeof this.beforeDelete&&this.beforeDelete(this),n.splice(r,1,null),"function"===typeof this.deleted&&this.deleted(this))}},edb3:function(t,e,n){"use strict";(function(e){function n(t,n){var o=this,s=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return s||l?(n?n(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(a,this,t)):e.nextTick(a,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!n&&t?o._writableState?o._writableState.errorEmitted?e.nextTick(i,o):(o._writableState.errorEmitted=!0,e.nextTick(r,o,t)):e.nextTick(r,o,t):n?(e.nextTick(i,o),n(t)):e.nextTick(i,o)})),this)}function r(t,e){a(t,e),i(t)}function i(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function o(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function a(t,e){t.emit("error",e)}function s(t,e){var n=t._readableState,r=t._writableState;n&&n.autoDestroy||r&&r.autoDestroy?t.destroy(e):t.emit("error",e)}t.exports={destroy:n,undestroy:o,errorOrDestroy:s}}).call(this,n("4362"))},edd0:function(t,e,n){var r=n("13d2"),i=n("9bf2");t.exports=function(t,e,n){return n.get&&r(n.get,e,{getter:!0}),n.set&&r(n.set,e,{setter:!0}),i.f(t,e,n)}},ef08:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},efec:function(t,e,n){var r=n("1a2d"),i=n("cb2d"),o=n("51eb"),a=n("b622"),s=a("toPrimitive"),l=Date.prototype;r(l,s)||i(l,s,o)},f069:function(t,e,n){"use strict";var r=n("59ed"),i=TypeError,o=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw i("Bad Promise constructor");e=t,n=r})),this.resolve=r(e),this.reject=r(n)};t.exports.f=function(t){return new o(t)}},f0cb:function(t,e,n){(function(e){const n=65536,r={},i=e.isBuffer(e.from([1,2]).subarray(0,1));function o(t){const n=e.allocUnsafe(2);return n.writeUInt8(t>>8,0),n.writeUInt8(255&t,1),n}function a(){for(let t=0;t<n;t++)r[t]=o(t)}function s(t){const n=4;let r=0,o=0;const a=e.allocUnsafe(n);do{r=t%128|0,t=t/128|0,t>0&&(r|=128),a.writeUInt8(r,o++)}while(t>0&&o<n);return t>0&&(o=0),i?a.subarray(0,o):a.slice(0,o)}function l(t){const n=e.allocUnsafe(4);return n.writeUInt32BE(t,0),n}t.exports={cache:r,generateCache:a,generateNumber:o,genBufVariableByteInt:s,generate4ByteBuffer:l}}).call(this,n("1c35").Buffer)},f111:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.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};e.barConfig=r},f183:function(t,e,n){var r=n("23e7"),i=n("e330"),o=n("d012"),a=n("861d"),s=n("1a2d"),l=n("9bf2").f,u=n("241c"),c=n("057f"),h=n("4fad"),f=n("90e3"),d=n("bb2f"),p=!1,g=f("meta"),v=0,y=function(t){l(t,g,{value:{objectID:"O"+v++,weakData:{}}})},m=function(t,e){if(!a(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!s(t,g)){if(!h(t))return"F";if(!e)return"E";y(t)}return t[g].objectID},b=function(t,e){if(!s(t,g)){if(!h(t))return!0;if(!e)return!1;y(t)}return t[g].weakData},_=function(t){return d&&p&&h(t)&&!s(t,g)&&y(t),t},x=function(){w.enable=function(){},p=!0;var t=u.f,e=i([].splice),n={};n[g]=1,t(n).length&&(u.f=function(n){for(var r=t(n),i=0,o=r.length;i<o;i++)if(r[i]===g){e(r,i,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:c.f}))},w=t.exports={enable:x,fastKey:m,getWeakData:b,onFreeze:_};o[g]=!0},f214:function(t,e,n){e=t.exports=n("0e8b"),e.Stream=e,e.Readable=e,e.Writable=n("f6ba"),e.Duplex=n("a493"),e.Transform=n("fe34"),e.PassThrough=n("9d37"),e.finished=n("bf09"),e.pipeline=n("386b")},f22b:function(t,e,n){"use strict";var r=n("23e7"),i=n("c65b"),o=n("f069"),a=n("4738").CONSTRUCTOR;r({target:"Promise",stat:!0,forced:a},{reject:function(t){var e=o.f(this);return i(e.reject,void 0,t),e.promise}})},f36a:function(t,e,n){var r=n("e330");t.exports=r([].slice)},f3cb:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.colorConfig=void 0;var r=["#37a2da","#32c5e9","#67e0e3","#9fe6b8","#ffdb5c","#ff9f7f","#fb7293","#e062ae","#e690d1","#e7bcf3","#9d96f5","#8378ea","#96bfff"];e.colorConfig=r},f482:function(t,e,n){"use strict";(function(e){function n(t,n){var o=this,s=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return s||l?(n?n(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(a,this,t)):e.nextTick(a,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!n&&t?o._writableState?o._writableState.errorEmitted?e.nextTick(i,o):(o._writableState.errorEmitted=!0,e.nextTick(r,o,t)):e.nextTick(r,o,t):n?(e.nextTick(i,o),n(t)):e.nextTick(i,o)})),this)}function r(t,e){a(t,e),i(t)}function i(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function o(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function a(t,e){t.emit("error",e)}function s(t,e){var n=t._readableState,r=t._writableState;n&&n.autoDestroy||r&&r.autoDestroy?t.destroy(e):t.emit("error",e)}t.exports={destroy:n,undestroy:o,errorOrDestroy:s}}).call(this,n("4362"))},f5df:function(t,e,n){var r=n("00ee"),i=n("1626"),o=n("c6b6"),a=n("b622"),s=a("toStringTag"),l=Object,u="Arguments"==o(function(){return arguments}()),c=function(t,e){try{return t[e]}catch(n){}};t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=c(e=l(t),s))?n:u?o(e):"Object"==(r=o(e))&&i(e.callee)?"Arguments":r}},f688:function(t,e,n){"use strict";function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),t}var u=n("1c35"),c=u.Buffer,h=n(3),f=h.inspect,d=f&&f.custom||"inspect";function p(t,e,n){c.prototype.copy.call(t,e,n)}t.exports=function(){function t(){a(this,t),this.head=null,this.tail=null,this.length=0}return l(t,[{key:"push",value:function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";var e=this.head,n=""+e.data;while(e=e.next)n+=t+e.data;return n}},{key:"concat",value:function(t){if(0===this.length)return c.alloc(0);var e=c.allocUnsafe(t>>>0),n=this.head,r=0;while(n)p(n.data,e,r),r+=n.data.length,n=n.next;return e}},{key:"consume",value:function(t,e){var n;return t<this.head.data.length?(n=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):n=t===this.head.data.length?this.shift():e?this._getString(t):this._getBuffer(t),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var e=this.head,n=1,r=e.data;t-=r.length;while(e=e.next){var i=e.data,o=t>i.length?i.length:t;if(o===i.length?r+=i:r+=i.slice(0,t),t-=o,0===t){o===i.length?(++n,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=i.slice(o));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(t){var e=c.allocUnsafe(t),n=this.head,r=1;n.data.copy(e),t-=n.data.length;while(n=n.next){var i=n.data,o=t>i.length?i.length:t;if(i.copy(e,e.length-t,0,o),t-=o,0===t){o===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(o));break}++r}return this.length-=r,e}},{key:d,value:function(t,e){return f(this,i({},e,{depth:0,customInspect:!1}))}}]),t}()},f6b4:function(t,e,n){"use strict";var r=n("c532");function i(){this.handlers=[]}i.prototype.use=function(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},i.prototype.forEach=function(t){r.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=i},f6ba:function(t,e,n){"use strict";(function(e,r){function i(t){var e=this;this.next=null,this.entry=null,this.finish=function(){W(e,t)}}var o;t.exports=M,M.WritableState=A;var a={deprecate:n("b7d1")},s=n("b98b"),l=n("1c35").Buffer,u=e.Uint8Array||function(){};function c(t){return l.from(t)}function h(t){return l.isBuffer(t)||t instanceof u}var f,d=n("f482"),p=n("86c6"),g=p.getHighWaterMark,v=n("9bfc").codes,y=v.ERR_INVALID_ARG_TYPE,m=v.ERR_METHOD_NOT_IMPLEMENTED,b=v.ERR_MULTIPLE_CALLBACK,_=v.ERR_STREAM_CANNOT_PIPE,x=v.ERR_STREAM_DESTROYED,w=v.ERR_STREAM_NULL_VALUES,S=v.ERR_STREAM_WRITE_AFTER_END,O=v.ERR_UNKNOWN_ENCODING,C=d.errorOrDestroy;function k(){}function A(t,e,r){o=o||n("a493"),t=t||{},"boolean"!==typeof r&&(r=e instanceof o),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=g(this,t,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===t.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){R(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function M(t){o=o||n("a493");var e=this instanceof o;if(!e&&!f.call(M,this))return new M(t);this._writableState=new A(t,this,e),this.writable=!0,t&&("function"===typeof t.write&&(this._write=t.write),"function"===typeof t.writev&&(this._writev=t.writev),"function"===typeof t.destroy&&(this._destroy=t.destroy),"function"===typeof t.final&&(this._final=t.final)),s.call(this)}function T(t,e){var n=new S;C(t,n),r.nextTick(e,n)}function I(t,e,n,i){var o;return null===n?o=new w:"string"===typeof n||e.objectMode||(o=new y("chunk",["string","Buffer"],n)),!o||(C(t,o),r.nextTick(i,o),!1)}function E(t,e,n){return t.objectMode||!1===t.decodeStrings||"string"!==typeof e||(e=l.from(e,n)),e}function P(t,e,n,r,i,o){if(!n){var a=E(e,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=e.objectMode?1:r.length;e.length+=s;var l=e.length<e.highWaterMark;if(l||(e.needDrain=!0),e.writing||e.corked){var u=e.lastBufferedRequest;e.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},u?u.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else j(t,e,!1,s,r,i,o);return l}function j(t,e,n,r,i,o,a){e.writelen=r,e.writecb=a,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new x("write")):n?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function L(t,e,n,i,o){--e.pendingcb,n?(r.nextTick(o,i),r.nextTick(G,t,e),t._writableState.errorEmitted=!0,C(t,i)):(o(i),t._writableState.errorEmitted=!0,C(t,i),G(t,e))}function D(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function R(t,e){var n=t._writableState,i=n.sync,o=n.writecb;if("function"!==typeof o)throw new b;if(D(n),e)L(t,n,i,e,o);else{var a=z(n)||t.destroyed;a||n.corked||n.bufferProcessing||!n.bufferedRequest||F(t,n),i?r.nextTick(N,t,n,a,o):N(t,n,a,o)}}function N(t,e,n,r){n||B(t,e),e.pendingcb--,r(),G(t,e)}function B(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function F(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var r=e.bufferedRequestCount,o=new Array(r),a=e.corkedRequestsFree;a.entry=n;var s=0,l=!0;while(n)o[s]=n,n.isBuf||(l=!1),n=n.next,s+=1;o.allBuffers=l,j(t,e,!0,e.length,o,"",a.finish),e.pendingcb++,e.lastBufferedRequest=null,a.next?(e.corkedRequestsFree=a.next,a.next=null):e.corkedRequestsFree=new i(e),e.bufferedRequestCount=0}else{while(n){var u=n.chunk,c=n.encoding,h=n.callback,f=e.objectMode?1:u.length;if(j(t,e,!1,f,u,c,h),n=n.next,e.bufferedRequestCount--,e.writing)break}null===n&&(e.lastBufferedRequest=null)}e.bufferedRequest=n,e.bufferProcessing=!1}function z(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function V(t,e){t._final((function(n){e.pendingcb--,n&&C(t,n),e.prefinished=!0,t.emit("prefinish"),G(t,e)}))}function q(t,e){e.prefinished||e.finalCalled||("function"!==typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.pendingcb++,e.finalCalled=!0,r.nextTick(V,t,e)))}function G(t,e){var n=z(e);if(n&&(q(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var r=t._readableState;(!r||r.autoDestroy&&r.endEmitted)&&t.destroy()}return n}function H(t,e,n){e.ending=!0,G(t,e),n&&(e.finished?r.nextTick(n):t.once("finish",n)),e.ended=!0,t.writable=!1}function W(t,e,n){var r=t.entry;t.entry=null;while(r){var i=r.callback;e.pendingcb--,i(n),r=r.next}e.corkedRequestsFree.next=t}n("3fb5")(M,s),A.prototype.getBuffer=function(){var t=this.bufferedRequest,e=[];while(t)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(A.prototype,"buffer",{get:a.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"===typeof Symbol&&Symbol.hasInstance&&"function"===typeof Function.prototype[Symbol.hasInstance]?(f=Function.prototype[Symbol.hasInstance],Object.defineProperty(M,Symbol.hasInstance,{value:function(t){return!!f.call(this,t)||this===M&&(t&&t._writableState instanceof A)}})):f=function(t){return t instanceof this},M.prototype.pipe=function(){C(this,new _)},M.prototype.write=function(t,e,n){var r=this._writableState,i=!1,o=!r.objectMode&&h(t);return o&&!l.isBuffer(t)&&(t=c(t)),"function"===typeof e&&(n=e,e=null),o?e="buffer":e||(e=r.defaultEncoding),"function"!==typeof n&&(n=k),r.ending?T(this,n):(o||I(this,r,t,n))&&(r.pendingcb++,i=P(this,r,o,t,e,n)),i},M.prototype.cork=function(){this._writableState.corked++},M.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||F(this,t))},M.prototype.setDefaultEncoding=function(t){if("string"===typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new O(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(M.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(M.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),M.prototype._write=function(t,e,n){n(new m("_write()"))},M.prototype._writev=null,M.prototype.end=function(t,e,n){var r=this._writableState;return"function"===typeof t?(n=t,t=null,e=null):"function"===typeof e&&(n=e,e=null),null!==t&&void 0!==t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||H(this,r,n),this},Object.defineProperty(M.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(M.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),M.prototype.destroy=d.destroy,M.prototype._undestroy=d.undestroy,M.prototype._destroy=function(t,e){e(t)}}).call(this,n("c8ba"),n("4362"))},f772:function(t,e,n){var r=n("5692"),i=n("90e3"),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},f893:function(t,e,n){t.exports={default:n("8119"),__esModule:!0}},f9c1:function(t,e){function n(t){var e=t._readableState;return e?e.objectMode||"number"===typeof t._duplexState?t.read():t.read(r(e)):null}function r(t){return t.buffer.length?t.buffer.head?t.buffer.head.data.length:t.buffer[0].length:t.length}t.exports=n},fa10:function(t,e,n){},faa1:function(t,e,n){"use strict";var r,i="object"===typeof Reflect?Reflect:null,o=i&&"function"===typeof i.apply?i.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)};function a(t){console&&console.warn&&console.warn(t)}r=i&&"function"===typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var s=Number.isNaN||function(t){return t!==t};function l(){l.init.call(this)}t.exports=l,t.exports.once=_,l.EventEmitter=l,l.prototype._events=void 0,l.prototype._eventsCount=0,l.prototype._maxListeners=void 0;var u=10;function c(t){if("function"!==typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function h(t){return void 0===t._maxListeners?l.defaultMaxListeners:t._maxListeners}function f(t,e,n,r){var i,o,s;if(c(n),o=t._events,void 0===o?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),o=t._events),s=o[e]),void 0===s)s=o[e]=n,++t._eventsCount;else if("function"===typeof s?s=o[e]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),i=h(t),i>0&&s.length>i&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=t,l.type=e,l.count=s.length,a(l)}return t}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},i=d.bind(r);return i.listener=n,r.wrapFn=i,i}function g(t,e,n){var r=t._events;if(void 0===r)return[];var i=r[e];return void 0===i?[]:"function"===typeof i?n?[i.listener||i]:[i]:n?b(i):y(i,i.length)}function v(t){var e=this._events;if(void 0!==e){var n=e[t];if("function"===typeof n)return 1;if(void 0!==n)return n.length}return 0}function y(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t[r];return n}function m(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}function b(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}function _(t,e){return new Promise((function(n,r){function i(n){t.removeListener(e,o),r(n)}function o(){"function"===typeof t.removeListener&&t.removeListener("error",i),n([].slice.call(arguments))}w(t,e,o,{once:!0}),"error"!==e&&x(t,i,{once:!0})}))}function x(t,e,n){"function"===typeof t.on&&w(t,"error",e,n)}function w(t,e,n,r){if("function"===typeof t.on)r.once?t.once(e,n):t.on(e,n);else{if("function"!==typeof t.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t);t.addEventListener(e,(function i(o){r.once&&t.removeEventListener(e,i),n(o)}))}}Object.defineProperty(l,"defaultMaxListeners",{enumerable:!0,get:function(){return u},set:function(t){if("number"!==typeof t||t<0||s(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");u=t}}),l.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},l.prototype.setMaxListeners=function(t){if("number"!==typeof t||t<0||s(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},l.prototype.getMaxListeners=function(){return h(this)},l.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e.push(arguments[n]);var r="error"===t,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var a;if(e.length>0&&(a=e[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=i[t];if(void 0===l)return!1;if("function"===typeof l)o(l,this,e);else{var u=l.length,c=y(l,u);for(n=0;n<u;++n)o(c[n],this,e)}return!0},l.prototype.addListener=function(t,e){return f(this,t,e,!1)},l.prototype.on=l.prototype.addListener,l.prototype.prependListener=function(t,e){return f(this,t,e,!0)},l.prototype.once=function(t,e){return c(e),this.on(t,p(this,t,e)),this},l.prototype.prependOnceListener=function(t,e){return c(e),this.prependListener(t,p(this,t,e)),this},l.prototype.removeListener=function(t,e){var n,r,i,o,a;if(c(e),r=this._events,void 0===r)return this;if(n=r[t],void 0===n)return this;if(n===e||n.listener===e)0===--this._eventsCount?this._events=Object.create(null):(delete r[t],r.removeListener&&this.emit("removeListener",t,n.listener||e));else if("function"!==typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===e||n[o].listener===e){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():m(n,i),1===n.length&&(r[t]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",t,a||e)}return this},l.prototype.off=l.prototype.removeListener,l.prototype.removeAllListeners=function(t){var e,n,r;if(n=this._events,void 0===n)return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[t]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[t]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)i=o[r],"removeListener"!==i&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(e=n[t],"function"===typeof e)this.removeListener(t,e);else if(void 0!==e)for(r=e.length-1;r>=0;r--)this.removeListener(t,e[r]);return this},l.prototype.listeners=function(t){return g(this,t,!0)},l.prototype.rawListeners=function(t){return g(this,t,!1)},l.listenerCount=function(t,e){return"function"===typeof t.listenerCount?t.listenerCount(e):v.call(t,e)},l.prototype.listenerCount=v,l.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},faf5:function(t,e,n){t.exports=!n("0bad")&&!n("4b8b")((function(){return 7!=Object.defineProperty(n("05f5")("div"),"a",{get:function(){return 7}}).a}))},fb12:function(t,e,n){(function(e,r){var i=n("b4de"),o=n("ab52"),a=n("3fb5"),s=n("f9c1"),l=e.from&&e.from!==Uint8Array.from?e.from([0]):new e([0]),u=function(t,e){t._corked?t.once("uncork",e):e()},c=function(t,e){t._autoDestroy&&t.destroy(e)},h=function(t,e){return function(n){n?c(t,"premature close"===n.message?null:n):e&&!t._ended&&t.end()}},f=function(t,e){return t?t._writableState&&t._writableState.finished?e():t._writableState?t.end(e):(t.end(),void e()):e()},d=function(){},p=function(t){return new i.Readable({objectMode:!0,highWaterMark:16}).wrap(t)},g=function(t,e,n){if(!(this instanceof g))return new g(t,e,n);i.Duplex.call(this,n),this._writable=null,this._readable=null,this._readable2=null,this._autoDestroy=!n||!1!==n.autoDestroy,this._forwardDestroy=!n||!1!==n.destroy,this._forwardEnd=!n||!1!==n.end,this._corked=1,this._ondrain=null,this._drained=!1,this._forwarding=!1,this._unwrite=null,this._unread=null,this._ended=!1,this.destroyed=!1,t&&this.setWritable(t),e&&this.setReadable(e)};a(g,i.Duplex),g.obj=function(t,e,n){return n||(n={}),n.objectMode=!0,n.highWaterMark=16,new g(t,e,n)},g.prototype.cork=function(){1===++this._corked&&this.emit("cork")},g.prototype.uncork=function(){this._corked&&0===--this._corked&&this.emit("uncork")},g.prototype.setWritable=function(t){if(this._unwrite&&this._unwrite(),this.destroyed)t&&t.destroy&&t.destroy();else if(null!==t&&!1!==t){var e=this,n=o(t,{writable:!0,readable:!1},h(this,this._forwardEnd)),i=function(){var t=e._ondrain;e._ondrain=null,t&&t()},a=function(){e._writable.removeListener("drain",i),n()};this._unwrite&&r.nextTick(i),this._writable=t,this._writable.on("drain",i),this._unwrite=a,this.uncork()}else this.end()},g.prototype.setReadable=function(t){if(this._unread&&this._unread(),this.destroyed)t&&t.destroy&&t.destroy();else{if(null===t||!1===t)return this.push(null),void this.resume();var e=this,n=o(t,{writable:!1,readable:!0},h(this)),r=function(){e._forward()},i=function(){e.push(null)},a=function(){e._readable2.removeListener("readable",r),e._readable2.removeListener("end",i),n()};this._drained=!0,this._readable=t,this._readable2=t._readableState?t:p(t),this._readable2.on("readable",r),this._readable2.on("end",i),this._unread=a,this._forward()}},g.prototype._read=function(){this._drained=!0,this._forward()},g.prototype._forward=function(){if(!this._forwarding&&this._readable2&&this._drained){var t;this._forwarding=!0;while(this._drained&&null!==(t=s(this._readable2)))this.destroyed||(this._drained=this.push(t));this._forwarding=!1}},g.prototype.destroy=function(t,e){if(e||(e=d),this.destroyed)return e(null);this.destroyed=!0;var n=this;r.nextTick((function(){n._destroy(t),e(null)}))},g.prototype._destroy=function(t){if(t){var e=this._ondrain;this._ondrain=null,e?e(t):this.emit("error",t)}this._forwardDestroy&&(this._readable&&this._readable.destroy&&this._readable.destroy(),this._writable&&this._writable.destroy&&this._writable.destroy()),this.emit("close")},g.prototype._write=function(t,e,n){if(!this.destroyed)return this._corked?u(this,this._write.bind(this,t,e,n)):t===l?this._finish(n):this._writable?void(!1===this._writable.write(t)?this._ondrain=n:this.destroyed||n()):n()},g.prototype._finish=function(t){var e=this;this.emit("preend"),u(this,(function(){f(e._forwardEnd&&e._writable,(function(){!1===e._writableState.prefinished&&(e._writableState.prefinished=!0),e.emit("prefinish"),u(e,t)}))}))},g.prototype.end=function(t,e,n){return"function"===typeof t?this.end(null,null,t):"function"===typeof e?this.end(t,null,e):(this._ended=!0,t&&this.write(t),this._writableState.ending||this._writableState.destroyed||this.write(l),i.Writable.prototype.end.call(this,n))},t.exports=g}).call(this,n("1c35").Buffer,n("4362"))},fb6a:function(t,e,n){"use strict";var r=n("23e7"),i=n("e8b5"),o=n("68ee"),a=n("861d"),s=n("23cb"),l=n("07fa"),u=n("fc6a"),c=n("8418"),h=n("b622"),f=n("1dde"),d=n("f36a"),p=f("slice"),g=h("species"),v=Array,y=Math.max;r({target:"Array",proto:!0,forced:!p},{slice:function(t,e){var n,r,h,f=u(this),p=l(f),m=s(t,p),b=s(void 0===e?p:e,p);if(i(f)&&(n=f.constructor,o(n)&&(n===v||i(n.prototype))?n=void 0:a(n)&&(n=n[g],null===n&&(n=void 0)),n===v||void 0===n))return d(f,m,b);for(r=new(void 0===n?v:n)(y(b-m,0)),h=0;m<b;m++,h++)m in f&&c(r,h,f[m]);return r.length=h,r}})},fbd7:function(t,e,n){"use strict";function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var i={};function o(t,e,n){function o(t,n,r){return"string"===typeof e?e:e(t,n,r)}n||(n=Error);var a=function(t){function e(e,n,r){return t.call(this,o(e,n,r))||this}return r(e,t),e}(n);a.prototype.name=n.name,a.prototype.code=t,i[t]=a}function a(t,e){if(Array.isArray(t)){var n=t.length;return t=t.map((function(t){return String(t)})),n>2?"one of ".concat(e," ").concat(t.slice(0,n-1).join(", "),", or ")+t[n-1]:2===n?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}function s(t,e,n){return t.substr(!n||n<0?0:+n,e.length)===e}function l(t,e,n){return(void 0===n||n>t.length)&&(n=t.length),t.substring(n-e.length,n)===e}function u(t,e,n){return"number"!==typeof n&&(n=0),!(n+e.length>t.length)&&-1!==t.indexOf(e,n)}o("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'}),TypeError),o("ERR_INVALID_ARG_TYPE",(function(t,e,n){var r,i;if("string"===typeof e&&s(e,"not ")?(r="must not be",e=e.replace(/^not /,"")):r="must be",l(t," argument"))i="The ".concat(t," ").concat(r," ").concat(a(e,"type"));else{var o=u(t,".")?"property":"argument";i='The "'.concat(t,'" ').concat(o," ").concat(r," ").concat(a(e,"type"))}return i+=". Received type ".concat(typeof n),i}),TypeError),o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),o("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),o("ERR_STREAM_PREMATURE_CLOSE","Premature close"),o("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),o("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),o("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),o("ERR_STREAM_WRITE_AFTER_END","write after end"),o("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),o("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=i},fc5e:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},fc6a:function(t,e,n){var r=n("44ad"),i=n("1d80");t.exports=function(t){return r(i(t))}},fcb9:function(t,e,n){"use strict";(function(e){const{Buffer:r}=n("1c35"),i=n("7f73"),o=n("34eb")("mqttjs:ws"),a=n("fb12"),s=n("035d").Transform,l=["rejectUnauthorized","ca","cert","key","pfx","passphrase"],u="undefined"!==typeof e&&"browser"===e.title||"function"===typeof n;function c(t,e){let n=t.protocol+"://"+t.hostname+":"+t.port+t.path;return"function"===typeof t.transformWsUrl&&(n=t.transformWsUrl(n,t,e)),n}function h(t){const e=t;return t.hostname||(e.hostname="localhost"),t.port||("wss"===t.protocol?e.port=443:e.port=80),t.path||(e.path="/"),t.wsOptions||(e.wsOptions={}),u||"wss"!==t.protocol||l.forEach((function(n){Object.prototype.hasOwnProperty.call(t,n)&&!Object.prototype.hasOwnProperty.call(t.wsOptions,n)&&(e.wsOptions[n]=t[n])})),e}function f(t){const e=h(t);if(e.hostname||(e.hostname=e.host),!e.hostname){if("undefined"===typeof document)throw new Error("Could not determine host. Specify host manually.");const t=new URL(document.URL);e.hostname=t.hostname,e.port||(e.port=t.port)}return void 0===e.objectMode&&(e.objectMode=!(!0===e.binary||void 0===e.binary)),e}function d(t,e,n){o("createWebSocket"),o("protocol: "+n.protocolId+" "+n.protocolVersion);const r="MQIsdp"===n.protocolId&&3===n.protocolVersion?"mqttv3.1":"mqtt";o("creating new Websocket for url: "+e+" and protocol: "+r);const a=new i(e,[r],n.wsOptions);return a}function p(t,e){const n="MQIsdp"===e.protocolId&&3===e.protocolVersion?"mqttv3.1":"mqtt",r=c(e,t),i=new WebSocket(r,[n]);return i.binaryType="arraybuffer",i}function g(t,e){o("streamBuilder");const n=h(e),r=c(n,t),a=d(t,r,n),s=i.createWebSocketStream(a,n.wsOptions);return s.url=r,a.on("close",()=>{s.destroy()}),s}function v(t,e){let n;o("browserStreamBuilder");const i=f(e),l=i.browserBufferSize||524288,u=e.browserBufferTimeout||1e3,c=!e.objectMode,h=p(t,e),d=v(e,w,S);e.objectMode||(d._writev=x),d.on("close",()=>{h.close()});const g="undefined"!==typeof h.addEventListener;function v(t,e,n){const r=new s({objectModeMode:t.objectMode});return r._write=e,r._flush=n,r}function y(){n.setReadable(d),n.setWritable(d),n.emit("connect")}function m(){n.end(),n.destroy()}function b(t){n.destroy(t)}function _(t){let e=t.data;e=e instanceof ArrayBuffer?r.from(e):r.from(e,"utf8"),d.push(e)}function x(t,e){const n=new Array(t.length);for(let i=0;i<t.length;i++)"string"===typeof t[i].chunk?n[i]=r.from(t[i],"utf8"):n[i]=t[i].chunk;this._write(r.concat(n),"binary",e)}function w(t,e,n){h.bufferedAmount>l&&setTimeout(w,u,t,e,n),c&&"string"===typeof t&&(t=r.from(t,"utf8"));try{h.send(t)}catch(i){return n(i)}n()}function S(t){h.close(),t()}return h.readyState===h.OPEN?n=d:(n=n=a(void 0,void 0,e),e.objectMode||(n._writev=x),g?h.addEventListener("open",y):h.onopen=y),n.socket=h,g?(h.addEventListener("close",m),h.addEventListener("error",b),h.addEventListener("message",_)):(h.onclose=m,h.onerror=b,h.onmessage=_),n}t.exports=u?v:g}).call(this,n("4362"))},fcd4:function(t,e,n){e.f=n("cc15")},fce3:function(t,e,n){var r=n("d039"),i=n("da84"),o=i.RegExp;t.exports=r((function(){var t=o(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},fdbc:function(t,e){t.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(t,e,n){var r=n("04f8");t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},fe34:function(t,e,n){"use strict";t.exports=c;var r=n("9bfc").codes,i=r.ERR_METHOD_NOT_IMPLEMENTED,o=r.ERR_MULTIPLE_CALLBACK,a=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=r.ERR_TRANSFORM_WITH_LENGTH_0,l=n("a493");function u(t,e){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(null===r)return this.emit("error",new o);n.writechunk=null,n.writecb=null,null!=e&&this.push(e),r(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function c(t){if(!(this instanceof c))return new c(t);l.call(this,t),this._transformState={afterTransform:u.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"===typeof t.transform&&(this._transform=t.transform),"function"===typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",h)}function h(){var t=this;"function"!==typeof this._flush||this._readableState.destroyed?f(this,null,null):this._flush((function(e,n){f(t,e,n)}))}function f(t,e,n){if(e)return t.emit("error",e);if(null!=n&&t.push(n),t._writableState.length)throw new s;if(t._transformState.transforming)throw new a;return t.push(null)}n("3fb5")(c,l),c.prototype.push=function(t,e){return this._transformState.needTransform=!1,l.prototype.push.call(this,t,e)},c.prototype._transform=function(t,e,n){n(new i("_transform()"))},c.prototype._write=function(t,e,n){var r=this._transformState;if(r.writecb=n,r.writechunk=t,r.writeencoding=e,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},c.prototype._read=function(t){var e=this._transformState;null===e.writechunk||e.transforming?e.needTransform=!0:(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform))},c.prototype._destroy=function(t,e){l.prototype._destroy.call(this,t,(function(t){e(t)}))}},fe3c:function(t,e,n){"use strict";const r=n(6),i=n(0),o=n("34eb")("mqttjs:tls");function a(t,e){e.port=e.port||8883,e.host=e.hostname||e.host||"localhost",0===i.isIP(e.host)&&(e.servername=e.host),e.rejectUnauthorized=!1!==e.rejectUnauthorized,delete e.path,o("port %d host %s rejectUnauthorized %b",e.port,e.host,e.rejectUnauthorized);const n=r.connect(e);function a(r){e.rejectUnauthorized&&t.emit("error",r),n.end()}return n.on("secureConnect",(function(){e.rejectUnauthorized&&!n.authorized?n.emit("error",new Error("TLS not authorized")):n.removeListener("error",a)})),n.on("error",a),n}t.exports=a},fe7b:function(t,e,n){},fed5:function(t,e){e.f=Object.getOwnPropertySymbols}}]); |