g2.min.js 865 KB

123456789101112131415161718192021222324252627282930
  1. !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.G2=e():t.G2=e()}(window,(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,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return 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=232)}([function(t,e,n){"use strict";
  2. /*! *****************************************************************************
  3. Copyright (c) Microsoft Corporation.
  4. Permission to use, copy, modify, and/or distribute this software for any
  5. purpose with or without fee is hereby granted.
  6. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  7. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  8. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  9. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  10. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  11. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  12. PERFORMANCE OF THIS SOFTWARE.
  13. ***************************************************************************** */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})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.__classPrivateFieldSet=e.__classPrivateFieldGet=e.__importDefault=e.__importStar=e.__makeTemplateObject=e.__asyncValues=e.__asyncDelegator=e.__asyncGenerator=e.__await=e.__spreadArray=e.__spreadArrays=e.__spread=e.__read=e.__values=e.__exportStar=e.__createBinding=e.__generator=e.__awaiter=e.__metadata=e.__param=e.__decorate=e.__rest=e.__assign=e.__extends=void 0;var i=function(t,e){return(i=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)};e.__extends=function(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}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)};function a(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.")}function o(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,a=n.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function s(t){return this instanceof s?(this.v=t,this):new s(t)}e.__assign=function(){return e.__assign=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},e.__assign.apply(this,arguments)},e.__rest=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},e.__decorate=function(t,e,n,i){var a,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===("undefined"==typeof Reflect?"undefined":r(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(e,n,s):a(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},e.__param=function(t,e){return function(n,r){e(n,r,t)}},e.__metadata=function(t,e){if("object"===("undefined"==typeof Reflect?"undefined":r(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},e.__awaiter=function(t,e,n,r){return new(n||(n=Promise))((function(i,a){function o(t){try{l(r.next(t))}catch(t){a(t)}}function s(t){try{l(r.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}l((r=r.apply(t,e||[])).next())}))},e.__generator=function(t,e){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=e.call(t,o)}catch(t){a=[6,t],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},e.__createBinding=Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]},e.__exportStar=function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||(0,e.__createBinding)(n,t,r)},e.__values=a,e.__read=o,e.__spread=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(o(arguments[e]));return t},e.__spreadArrays=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var a=arguments[e],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r},e.__spreadArray=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,a=e.length;i<a;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))},e.__await=s,e.__asyncGenerator=function(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(t,e||[]),a=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(t){i[t]&&(r[t]=function(e){return new Promise((function(n,r){a.push([t,e,n,r])>1||l(t,e)}))})}function l(t,e){try{(n=i[t](e)).value instanceof s?Promise.resolve(n.value.v).then(u,c):f(a[0][2],n)}catch(t){f(a[0][3],t)}var n}function u(t){l("next",t)}function c(t){l("throw",t)}function f(t,e){t(e),a.shift(),a.length&&l(a[0][0],a[0][1])}},e.__asyncDelegator=function(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:s(t[r](e)),done:"return"===r}:i?i(e):e}:i}},e.__asyncValues=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=a(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,i){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,i,(e=t[n](e)).done,e.value)}))}}},e.__makeTemplateObject=function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t};var l=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};e.__importStar=function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&(0,e.__createBinding)(n,t,r);return l(n,t),n},e.__importDefault=function(t){return t&&t.__esModule?t:{default:t}},e.__classPrivateFieldGet=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)},e.__classPrivateFieldSet=function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n}},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.has=e.forIn=e.toRadian=e.toInteger=e.toDegree=e.mod=e.minBy=e.min=e.maxBy=e.max=e.isPositive=e.isOdd=e.isNumberEqual=e.isNegative=e.isInteger=e.isEven=e.isDecimal=e.fixedBase=e.clamp=e.parseRadius=e.number2color=e.wrapBehavior=e.getWrapBehavior=e.groupToMap=e.groupBy=e.group=e.some=e.every=e.filter=e.endsWith=e.startsWith=e.last=e.head=e.valuesOfKey=e.uniq=e.union=e.sortBy=e.remove=e.reduce=e.pullAt=e.pull=e.getRange=e.flattenDeep=e.flatten=e.firstValue=e.findIndex=e.find=e.difference=e.includes=e.contains=void 0,e.set=e.get=e.assign=e.mix=e.mapValues=e.map=e.isEqualWith=e.isEqual=e.isEmpty=e.indexOf=e.extend=e.each=e.deepMix=e.memoize=e.debounce=e.clone=e.augment=e.clearAnimationFrame=e.requestAnimationFrame=e.isElement=e.isUndefined=e.isType=e.isString=e.isRegExp=e.isPrototype=e.isPlainObject=e.isObjectLike=e.isObject=e.isNumber=e.isNull=e.isNil=e.isFinite=e.isFunction=e.isError=e.isDate=e.isBoolean=e.isArrayLike=e.isArray=e.isArguments=e.getType=e.upperFirst=e.upperCase=e.substitute=e.lowerFirst=e.lowerCase=e.values=e.isMatch=e.keys=e.hasValue=e.hasKey=void 0,e.Cache=e.getEllipsisText=e.measureTextWidth=e.size=e.identity=e.noop=e.uniqueId=e.toString=e.toArray=e.throttle=e.omit=e.pick=void 0;var i=n(84);Object.defineProperty(e,"contains",{enumerable:!0,get:function(){return r(i).default}}),Object.defineProperty(e,"includes",{enumerable:!0,get:function(){return r(i).default}});var a=n(234);Object.defineProperty(e,"difference",{enumerable:!0,get:function(){return r(a).default}});var o=n(235);Object.defineProperty(e,"find",{enumerable:!0,get:function(){return r(o).default}});var s=n(236);Object.defineProperty(e,"findIndex",{enumerable:!0,get:function(){return r(s).default}});var l=n(237);Object.defineProperty(e,"firstValue",{enumerable:!0,get:function(){return r(l).default}});var u=n(238);Object.defineProperty(e,"flatten",{enumerable:!0,get:function(){return r(u).default}});var c=n(239);Object.defineProperty(e,"flattenDeep",{enumerable:!0,get:function(){return r(c).default}});var f=n(240);Object.defineProperty(e,"getRange",{enumerable:!0,get:function(){return r(f).default}});var h=n(241);Object.defineProperty(e,"pull",{enumerable:!0,get:function(){return r(h).default}});var p=n(139);Object.defineProperty(e,"pullAt",{enumerable:!0,get:function(){return r(p).default}});var d=n(140);Object.defineProperty(e,"reduce",{enumerable:!0,get:function(){return r(d).default}});var g=n(242);Object.defineProperty(e,"remove",{enumerable:!0,get:function(){return r(g).default}});var y=n(243);Object.defineProperty(e,"sortBy",{enumerable:!0,get:function(){return r(y).default}});var v=n(244);Object.defineProperty(e,"union",{enumerable:!0,get:function(){return r(v).default}});var m=n(141);Object.defineProperty(e,"uniq",{enumerable:!0,get:function(){return r(m).default}});var _=n(245);Object.defineProperty(e,"valuesOfKey",{enumerable:!0,get:function(){return r(_).default}});var x=n(246);Object.defineProperty(e,"head",{enumerable:!0,get:function(){return r(x).default}});var b=n(247);Object.defineProperty(e,"last",{enumerable:!0,get:function(){return r(b).default}});var M=n(248);Object.defineProperty(e,"startsWith",{enumerable:!0,get:function(){return r(M).default}});var C=n(249);Object.defineProperty(e,"endsWith",{enumerable:!0,get:function(){return r(C).default}});var P=n(134);Object.defineProperty(e,"filter",{enumerable:!0,get:function(){return r(P).default}});var S=n(250);Object.defineProperty(e,"every",{enumerable:!0,get:function(){return r(S).default}});var O=n(251);Object.defineProperty(e,"some",{enumerable:!0,get:function(){return r(O).default}});var w=n(252);Object.defineProperty(e,"group",{enumerable:!0,get:function(){return r(w).default}});var A=n(143);Object.defineProperty(e,"groupBy",{enumerable:!0,get:function(){return r(A).default}});var T=n(142);Object.defineProperty(e,"groupToMap",{enumerable:!0,get:function(){return r(T).default}});var E=n(253);Object.defineProperty(e,"getWrapBehavior",{enumerable:!0,get:function(){return r(E).default}});var I=n(254);Object.defineProperty(e,"wrapBehavior",{enumerable:!0,get:function(){return r(I).default}});var L=n(255);Object.defineProperty(e,"number2color",{enumerable:!0,get:function(){return r(L).default}});var D=n(256);Object.defineProperty(e,"parseRadius",{enumerable:!0,get:function(){return r(D).default}});var B=n(257);Object.defineProperty(e,"clamp",{enumerable:!0,get:function(){return r(B).default}});var j=n(258);Object.defineProperty(e,"fixedBase",{enumerable:!0,get:function(){return r(j).default}});var R=n(259);Object.defineProperty(e,"isDecimal",{enumerable:!0,get:function(){return r(R).default}});var k=n(260);Object.defineProperty(e,"isEven",{enumerable:!0,get:function(){return r(k).default}});var F=n(261);Object.defineProperty(e,"isInteger",{enumerable:!0,get:function(){return r(F).default}});var N=n(262);Object.defineProperty(e,"isNegative",{enumerable:!0,get:function(){return r(N).default}});var G=n(263);Object.defineProperty(e,"isNumberEqual",{enumerable:!0,get:function(){return r(G).default}});var Y=n(264);Object.defineProperty(e,"isOdd",{enumerable:!0,get:function(){return r(Y).default}});var V=n(265);Object.defineProperty(e,"isPositive",{enumerable:!0,get:function(){return r(V).default}});var H=n(137);Object.defineProperty(e,"max",{enumerable:!0,get:function(){return r(H).default}});var z=n(266);Object.defineProperty(e,"maxBy",{enumerable:!0,get:function(){return r(z).default}});var X=n(138);Object.defineProperty(e,"min",{enumerable:!0,get:function(){return r(X).default}});var W=n(267);Object.defineProperty(e,"minBy",{enumerable:!0,get:function(){return r(W).default}});var q=n(268);Object.defineProperty(e,"mod",{enumerable:!0,get:function(){return r(q).default}});var U=n(269);Object.defineProperty(e,"toDegree",{enumerable:!0,get:function(){return r(U).default}});var Z=n(270);Object.defineProperty(e,"toInteger",{enumerable:!0,get:function(){return r(Z).default}});var Q=n(271);Object.defineProperty(e,"toRadian",{enumerable:!0,get:function(){return r(Q).default}});var K=n(272);Object.defineProperty(e,"forIn",{enumerable:!0,get:function(){return r(K).default}});var $=n(144);Object.defineProperty(e,"has",{enumerable:!0,get:function(){return r($).default}});var J=n(273);Object.defineProperty(e,"hasKey",{enumerable:!0,get:function(){return r(J).default}});var tt=n(274);Object.defineProperty(e,"hasValue",{enumerable:!0,get:function(){return r(tt).default}});var et=n(136);Object.defineProperty(e,"keys",{enumerable:!0,get:function(){return r(et).default}});var nt=n(135);Object.defineProperty(e,"isMatch",{enumerable:!0,get:function(){return r(nt).default}});var rt=n(86);Object.defineProperty(e,"values",{enumerable:!0,get:function(){return r(rt).default}});var it=n(275);Object.defineProperty(e,"lowerCase",{enumerable:!0,get:function(){return r(it).default}});var at=n(276);Object.defineProperty(e,"lowerFirst",{enumerable:!0,get:function(){return r(at).default}});var ot=n(277);Object.defineProperty(e,"substitute",{enumerable:!0,get:function(){return r(ot).default}});var st=n(278);Object.defineProperty(e,"upperCase",{enumerable:!0,get:function(){return r(st).default}});var lt=n(279);Object.defineProperty(e,"upperFirst",{enumerable:!0,get:function(){return r(lt).default}});var ut=n(145);Object.defineProperty(e,"getType",{enumerable:!0,get:function(){return r(ut).default}});var ct=n(280);Object.defineProperty(e,"isArguments",{enumerable:!0,get:function(){return r(ct).default}});var ft=n(7);Object.defineProperty(e,"isArray",{enumerable:!0,get:function(){return r(ft).default}});var ht=n(17);Object.defineProperty(e,"isArrayLike",{enumerable:!0,get:function(){return r(ht).default}});var pt=n(281);Object.defineProperty(e,"isBoolean",{enumerable:!0,get:function(){return r(pt).default}});var dt=n(282);Object.defineProperty(e,"isDate",{enumerable:!0,get:function(){return r(dt).default}});var gt=n(283);Object.defineProperty(e,"isError",{enumerable:!0,get:function(){return r(gt).default}});var yt=n(18);Object.defineProperty(e,"isFunction",{enumerable:!0,get:function(){return r(yt).default}});var vt=n(284);Object.defineProperty(e,"isFinite",{enumerable:!0,get:function(){return r(vt).default}});var mt=n(35);Object.defineProperty(e,"isNil",{enumerable:!0,get:function(){return r(mt).default}});var _t=n(285);Object.defineProperty(e,"isNull",{enumerable:!0,get:function(){return r(_t).default}});var xt=n(31);Object.defineProperty(e,"isNumber",{enumerable:!0,get:function(){return r(xt).default}});var bt=n(66);Object.defineProperty(e,"isObject",{enumerable:!0,get:function(){return r(bt).default}});var Mt=n(85);Object.defineProperty(e,"isObjectLike",{enumerable:!0,get:function(){return r(Mt).default}});var Ct=n(57);Object.defineProperty(e,"isPlainObject",{enumerable:!0,get:function(){return r(Ct).default}});var Pt=n(146);Object.defineProperty(e,"isPrototype",{enumerable:!0,get:function(){return r(Pt).default}});var St=n(286);Object.defineProperty(e,"isRegExp",{enumerable:!0,get:function(){return r(St).default}});var Ot=n(30);Object.defineProperty(e,"isString",{enumerable:!0,get:function(){return r(Ot).default}});var wt=n(24);Object.defineProperty(e,"isType",{enumerable:!0,get:function(){return r(wt).default}});var At=n(287);Object.defineProperty(e,"isUndefined",{enumerable:!0,get:function(){return r(At).default}});var Tt=n(288);Object.defineProperty(e,"isElement",{enumerable:!0,get:function(){return r(Tt).default}});var Et=n(289);Object.defineProperty(e,"requestAnimationFrame",{enumerable:!0,get:function(){return r(Et).default}});var It=n(290);Object.defineProperty(e,"clearAnimationFrame",{enumerable:!0,get:function(){return r(It).default}});var Lt=n(291);Object.defineProperty(e,"augment",{enumerable:!0,get:function(){return r(Lt).default}});var Dt=n(292);Object.defineProperty(e,"clone",{enumerable:!0,get:function(){return r(Dt).default}});var Bt=n(293);Object.defineProperty(e,"debounce",{enumerable:!0,get:function(){return r(Bt).default}});var jt=n(147);Object.defineProperty(e,"memoize",{enumerable:!0,get:function(){return r(jt).default}});var Rt=n(294);Object.defineProperty(e,"deepMix",{enumerable:!0,get:function(){return r(Rt).default}});var kt=n(45);Object.defineProperty(e,"each",{enumerable:!0,get:function(){return r(kt).default}});var Ft=n(295);Object.defineProperty(e,"extend",{enumerable:!0,get:function(){return r(Ft).default}});var Nt=n(296);Object.defineProperty(e,"indexOf",{enumerable:!0,get:function(){return r(Nt).default}});var Gt=n(297);Object.defineProperty(e,"isEmpty",{enumerable:!0,get:function(){return r(Gt).default}});var Yt=n(148);Object.defineProperty(e,"isEqual",{enumerable:!0,get:function(){return r(Yt).default}});var Vt=n(298);Object.defineProperty(e,"isEqualWith",{enumerable:!0,get:function(){return r(Vt).default}});var Ht=n(299);Object.defineProperty(e,"map",{enumerable:!0,get:function(){return r(Ht).default}});var zt=n(300);Object.defineProperty(e,"mapValues",{enumerable:!0,get:function(){return r(zt).default}});var Xt=n(87);Object.defineProperty(e,"mix",{enumerable:!0,get:function(){return r(Xt).default}}),Object.defineProperty(e,"assign",{enumerable:!0,get:function(){return r(Xt).default}});var Wt=n(301);Object.defineProperty(e,"get",{enumerable:!0,get:function(){return r(Wt).default}});var qt=n(302);Object.defineProperty(e,"set",{enumerable:!0,get:function(){return r(qt).default}});var Ut=n(303);Object.defineProperty(e,"pick",{enumerable:!0,get:function(){return r(Ut).default}});var Zt=n(304);Object.defineProperty(e,"omit",{enumerable:!0,get:function(){return r(Zt).default}});var Qt=n(305);Object.defineProperty(e,"throttle",{enumerable:!0,get:function(){return r(Qt).default}});var Kt=n(306);Object.defineProperty(e,"toArray",{enumerable:!0,get:function(){return r(Kt).default}});var $t=n(46);Object.defineProperty(e,"toString",{enumerable:!0,get:function(){return r($t).default}});var Jt=n(307);Object.defineProperty(e,"uniqueId",{enumerable:!0,get:function(){return r(Jt).default}});var te=n(308);Object.defineProperty(e,"noop",{enumerable:!0,get:function(){return r(te).default}});var ee=n(309);Object.defineProperty(e,"identity",{enumerable:!0,get:function(){return r(ee).default}});var ne=n(310);Object.defineProperty(e,"size",{enumerable:!0,get:function(){return r(ne).default}});var re=n(149);Object.defineProperty(e,"measureTextWidth",{enumerable:!0,get:function(){return r(re).default}});var ie=n(311);Object.defineProperty(e,"getEllipsisText",{enumerable:!0,get:function(){return r(ie).default}});var ae=n(312);Object.defineProperty(e,"Cache",{enumerable:!0,get:function(){return r(ae).default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.COMPONENT_MAX_VIEW_PERCENTAGE=e.MIN_CHART_HEIGHT=e.MIN_CHART_WIDTH=e.FIELD_ORIGIN=e.GROUP_ATTRS=e.ELEMENT_STATE=e.PLOT_EVENTS=e.GEOMETRY_LIFE_CIRCLE=e.VIEW_LIFE_CIRCLE=e.GROUP_Z_INDEX=e.COMPONENT_TYPE=e.DIRECTION=e.LAYER=void 0,function(t){t.FORE="fore",t.MID="mid",t.BG="bg"}(e.LAYER||(e.LAYER={})),function(t){t.TOP="top",t.TOP_LEFT="top-left",t.TOP_RIGHT="top-right",t.RIGHT="right",t.RIGHT_TOP="right-top",t.RIGHT_BOTTOM="right-bottom",t.LEFT="left",t.LEFT_TOP="left-top",t.LEFT_BOTTOM="left-bottom",t.BOTTOM="bottom",t.BOTTOM_LEFT="bottom-left",t.BOTTOM_RIGHT="bottom-right",t.RADIUS="radius",t.CIRCLE="circle",t.NONE="none"}(e.DIRECTION||(e.DIRECTION={})),function(t){t.AXIS="axis",t.GRID="grid",t.LEGEND="legend",t.TOOLTIP="tooltip",t.ANNOTATION="annotation",t.SLIDER="slider",t.SCROLLBAR="scrollbar",t.OTHER="other"}(e.COMPONENT_TYPE||(e.COMPONENT_TYPE={})),e.GROUP_Z_INDEX={FORE:3,MID:2,BG:1},function(t){t.BEFORE_RENDER="beforerender",t.AFTER_RENDER="afterrender",t.BEFORE_PAINT="beforepaint",t.AFTER_PAINT="afterpaint",t.BEFORE_CHANGE_DATA="beforechangedata",t.AFTER_CHANGE_DATA="afterchangedata",t.BEFORE_CLEAR="beforeclear",t.AFTER_CLEAR="afterclear",t.BEFORE_DESTROY="beforedestroy",t.BEFORE_CHANGE_SIZE="beforechangesize",t.AFTER_CHANGE_SIZE="afterchangesize"}(e.VIEW_LIFE_CIRCLE||(e.VIEW_LIFE_CIRCLE={})),function(t){t.BEFORE_DRAW_ANIMATE="beforeanimate",t.AFTER_DRAW_ANIMATE="afteranimate",t.BEFORE_RENDER_LABEL="beforerenderlabel",t.AFTER_RENDER_LABEL="afterrenderlabel"}(e.GEOMETRY_LIFE_CIRCLE||(e.GEOMETRY_LIFE_CIRCLE={})),function(t){t.MOUSE_ENTER="plot:mouseenter",t.MOUSE_DOWN="plot:mousedown",t.MOUSE_MOVE="plot:mousemove",t.MOUSE_UP="plot:mouseup",t.MOUSE_LEAVE="plot:mouseleave",t.TOUCH_START="plot:touchstart",t.TOUCH_MOVE="plot:touchmove",t.TOUCH_END="plot:touchend",t.TOUCH_CANCEL="plot:touchcancel",t.CLICK="plot:click",t.DBLCLICK="plot:dblclick",t.CONTEXTMENU="plot:contextmenu",t.LEAVE="plot:leave",t.ENTER="plot:enter"}(e.PLOT_EVENTS||(e.PLOT_EVENTS={})),function(t){t.ACTIVE="active",t.INACTIVE="inactive",t.SELECTED="selected",t.DEFAULT="default"}(e.ELEMENT_STATE||(e.ELEMENT_STATE={})),e.GROUP_ATTRS=["color","shape","size"],e.FIELD_ORIGIN="_origin",e.MIN_CHART_WIDTH=1,e.MIN_CHART_HEIGHT=1,e.COMPONENT_MAX_VIEW_PERCENTAGE=.25},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getShapeFactory=e.registerShape=e.registerShapeFactory=void 0;var r=n(0),i=n(50),a=n(1),o=n(52),s={coordinate:null,defaultShapeType:null,theme:null,getShapePoints:function(t,e){var n=this.getShape(t);return n.getPoints?n.getPoints(e):this.getDefaultPoints(e)},getShape:function(t){var e=this[t]||this[this.defaultShapeType];return e.coordinate=this.coordinate,e},getDefaultPoints:function(){return[]},getDefaultStyle:function(t){return(0,a.get)(t,[this.defaultShapeType,"default","style"],{})},getMarker:function(t,e){var n=this.getShape(t);if(!n.getMarker){var r=this.defaultShapeType;n=this.getShape(r)}var i=this.theme,o=(0,a.get)(i,[t,"default"],{}),s=n.getMarker(e);return(0,a.deepMix)({},o,s)},drawShape:function(t,e,n){return this.getShape(t).draw(e,n)}},l={coordinate:null,parsePath:function(t){var e=this.coordinate,n=(0,i.parsePathString)(t);return n=e.isPolar?(0,o.convertPolarPath)(e,n):(0,o.convertNormalPath)(e,n)},parsePoint:function(t){return this.coordinate.convert(t)},parsePoints:function(t){var e=this.coordinate;return t.map((function(t){return e.convert(t)}))},draw:function(t,e){}},u={};e.registerShapeFactory=function(t,e){var n=(0,a.upperFirst)(t),i=r.__assign(r.__assign(r.__assign({},s),e),{geometryType:t});return u[n]=i,i},e.registerShape=function(t,e,n){var i=(0,a.upperFirst)(t),o=u[i],s=r.__assign(r.__assign({},l),n);return o[e]=s,s},e.getShapeFactory=function(t){var e=(0,a.upperFirst)(t);return u[e]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getScaleByField=e.isInRecords=e.getSiblingPoint=e.getSilbings=e.isInBox=e.getSpline=e.distance=e.getComponents=e.getElementsByPath=e.getIntersectElements=e.intersectRect=e.getElementValue=e.getElementsByState=e.getElementsByField=e.getElements=e.getSiblingMaskElements=e.getMaskedElements=e.isMask=e.isSlider=e.isList=e.isElementChange=e.getDelegationObject=e.getCurrentElement=void 0;var r=n(1),i=n(52),a=n(29),o=n(50);function s(t,e){var n=t.event.target.getCanvasBBox();return n.width>=e||n.height>=e?n:null}function l(t){var e=t.geometries,n=[];return(0,r.each)(e,(function(t){var e=t.elements;n=n.concat(e)})),t.views&&t.views.length&&(0,r.each)(t.views,(function(t){n=n.concat(l(t))})),n}function u(t,e){var n=t.getModel().data;return(0,r.isArray)(n)?n[0][e]:n[e]}function c(t,e){return!(e.minX>t.maxX||e.maxX<t.minX||e.minY>t.maxY||e.maxY<t.minY)}function f(t,e){var n=l(t),i=[];return(0,r.each)(n,(function(t){var n=t.shape.getCanvasBBox();c(e,n)&&i.push(t)})),i}function h(t){var e=[];return(0,r.each)(t,(function(t){if("A"!==t[0])for(var n=1;n<t.length;n+=2)e.push([t[n],t[n+1]]);else{var r=t.length;e.push([t[r-2],t[r-1]])}})),e}function p(t,e){var n=l(t),r=h(e);return n.filter((function(t){var e,n=t.shape;if("path"===n.get("type"))e=h(n.attr("path"));else{var i=n.getCanvasBBox();e=(0,a.toPoints)(i)}return(0,o.isPolygonsIntersect)(r,e)}))}function d(t,e,n){var r=function(t,e){return t.getCoordinate().invert(e)}(t,n);return e.getCoordinate().convert(r)}e.getCurrentElement=function(t){var e,n=t.event.target;return n&&(e=n.get("element")),e},e.getDelegationObject=function(t){var e,n=t.event.target;return n&&(e=n.get("delegateObject")),e},e.isElementChange=function(t){var e=t.event.gEvent;return!(e&&e.fromShape&&e.toShape&&e.fromShape.get("element")===e.toShape.get("element"))},e.isList=function(t){return t&&t.component&&t.component.isList()},e.isSlider=function(t){return t&&t.component&&t.component.isSlider()},e.isMask=function(t){var e=t.event.target;return e&&"mask"===e.get("name")},e.getMaskedElements=function(t,e){if("path"===t.event.target.get("type")){var n=function(t,e){var n=t.event.target,r=n.getCanvasBBox();return r.width>=e||r.height>=e?n.attr("path"):null}(t,e);if(!n)return;return p(t.view,n)}var r=s(t,e);return r?f(t.view,r):null},e.getSiblingMaskElements=function(t,e,n){var r=s(t,n);if(!r)return null;var i=t.view,a=d(i,e,{x:r.x,y:r.y}),o=d(i,e,{x:r.maxX,y:r.maxY});return f(e,{minX:a.x,minY:a.y,maxX:o.x,maxY:o.y})},e.getElements=l,e.getElementsByField=function(t,e,n){return l(t).filter((function(t){return u(t,e)===n}))},e.getElementsByState=function(t,e){var n=t.geometries,i=[];return(0,r.each)(n,(function(t){var n=t.getElementsBy((function(t){return t.hasState(e)}));i=i.concat(n)})),i},e.getElementValue=u,e.intersectRect=c,e.getIntersectElements=f,e.getElementsByPath=p,e.getComponents=function(t){return t.getComponents().map((function(t){return t.component}))},e.distance=function(t,e){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)},e.getSpline=function(t,e){if(t.length<=2)return(0,i.getLinePath)(t,!1);var n=t[0],a=[];(0,r.each)(t,(function(t){a.push(t.x),a.push(t.y)}));var o=(0,i.catmullRom2bezier)(a,e,null);return o.unshift(["M",n.x,n.y]),o},e.isInBox=function(t,e){return t.x<=e.x&&t.maxX>=e.x&&t.y<=e.y&&t.maxY>e.y},e.getSilbings=function(t){var e=t.parent,n=null;return e&&(n=e.views.filter((function(e){return e!==t}))),n},e.getSiblingPoint=d,e.isInRecords=function(t,e,n,i){var a=!1;return(0,r.each)(t,(function(t){if(t[n]===e[n]&&t[i]===e[i])return a=!0,!1})),a},e.getScaleByField=function t(e,n){var i=e.getScaleByField(n);return!i&&e.views&&(0,r.each)(e.views,(function(e){if(i=t(e,n))return!1})),i}},function(t,e,n){"use strict";
  14. /*! *****************************************************************************
  15. Copyright (c) Microsoft Corporation.
  16. Permission to use, copy, modify, and/or distribute this software for any
  17. purpose with or without fee is hereby granted.
  18. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  19. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  20. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  21. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  22. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  23. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  24. PERFORMANCE OF THIS SOFTWARE.
  25. ***************************************************************************** */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})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.__classPrivateFieldSet=e.__classPrivateFieldGet=e.__importDefault=e.__importStar=e.__makeTemplateObject=e.__asyncValues=e.__asyncDelegator=e.__asyncGenerator=e.__await=e.__spreadArrays=e.__spread=e.__read=e.__values=e.__exportStar=e.__createBinding=e.__generator=e.__awaiter=e.__metadata=e.__param=e.__decorate=e.__rest=e.__assign=e.__extends=void 0;var i=function(t,e){return(i=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])})(t,e)};e.__extends=function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)};function a(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.")}function o(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,a=n.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function s(t){return this instanceof s?(this.v=t,this):new s(t)}e.__assign=function(){return e.__assign=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},e.__assign.apply(this,arguments)},e.__rest=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},e.__decorate=function(t,e,n,i){var a,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===("undefined"==typeof Reflect?"undefined":r(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(e,n,s):a(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},e.__param=function(t,e){return function(n,r){e(n,r,t)}},e.__metadata=function(t,e){if("object"===("undefined"==typeof Reflect?"undefined":r(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},e.__awaiter=function(t,e,n,r){return new(n||(n=Promise))((function(i,a){function o(t){try{l(r.next(t))}catch(t){a(t)}}function s(t){try{l(r.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}l((r=r.apply(t,e||[])).next())}))},e.__generator=function(t,e){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=e.call(t,o)}catch(t){a=[6,t],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},e.__createBinding=function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]},e.__exportStar=function(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||(e[n]=t[n])},e.__values=a,e.__read=o,e.__spread=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(o(arguments[e]));return t},e.__spreadArrays=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var a=arguments[e],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r},e.__await=s,e.__asyncGenerator=function(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(t,e||[]),a=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(t){i[t]&&(r[t]=function(e){return new Promise((function(n,r){a.push([t,e,n,r])>1||l(t,e)}))})}function l(t,e){try{(n=i[t](e)).value instanceof s?Promise.resolve(n.value.v).then(u,c):f(a[0][2],n)}catch(t){f(a[0][3],t)}var n}function u(t){l("next",t)}function c(t){l("throw",t)}function f(t,e){t(e),a.shift(),a.length&&l(a[0][0],a[0][1])}},e.__asyncDelegator=function(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:s(t[r](e)),done:"return"===r}:i?i(e):e}:i}},e.__asyncValues=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=a(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,i){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,i,(e=t[n](e)).done,e.value)}))}}},e.__makeTemplateObject=function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t},e.__importStar=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e},e.__importDefault=function(t){return t&&t.__esModule?t:{default:t}},e.__classPrivateFieldGet=function(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)},e.__classPrivateFieldSet=function(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getBackgroundRectStyle=e.getStyle=void 0;var r=n(0),i=n(1);e.getStyle=function(t,e,n,a){void 0===a&&(a="");var o=t.style,s=void 0===o?{}:o,l=t.defaultStyle,u=t.color,c=t.size,f=r.__assign(r.__assign({},l),s);return u&&(e&&(s.stroke||(f.stroke=u)),n&&(s.fill||(f.fill=u))),a&&(0,i.isNil)(s[a])&&!(0,i.isNil)(c)&&(f[a]=c),f},e.getBackgroundRectStyle=function(t){return(0,i.deepMix)({},{fill:"#CCD6EC",fillOpacity:.3},(0,i.get)(t,["background","style"]))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(24));e.default=function(t){return Array.isArray?Array.isArray(t):(0,r.default)(t,"Array")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ext=e.vec3=e.vec2=e.mat3=void 0;var r=n(0),i=n(67);Object.defineProperty(e,"mat3",{enumerable:!0,get:function(){return i.mat3}}),Object.defineProperty(e,"vec2",{enumerable:!0,get:function(){return i.vec2}}),Object.defineProperty(e,"vec3",{enumerable:!0,get:function(){return i.vec3}});var a=r.__importStar(n(327));e.ext=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(199),s=n(33),l=n(10),u=r.__importDefault(n(106)),c=["visible","tip","delegateObject"],f=["container","group","shapesMap","isRegister","isUpdating","destroyed"],h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{container:null,shapesMap:{},group:null,capture:!0,isRegister:!1,isUpdating:!1,isInit:!0})},e.prototype.remove=function(){this.clear(),this.get("group").remove()},e.prototype.clear=function(){this.get("group").clear(),this.set("shapesMap",{}),this.clearOffScreenCache(),this.set("isInit",!0)},e.prototype.getChildComponentById=function(t){var e=this.getElementById(t);return e&&e.get("component")},e.prototype.getElementById=function(t){return this.get("shapesMap")[t]},e.prototype.getElementByLocalId=function(t){var e=this.getElementId(t);return this.getElementById(e)},e.prototype.getElementsByName=function(t){var e=[];return(0,a.each)(this.get("shapesMap"),(function(n){n.get("name")===t&&e.push(n)})),e},e.prototype.getContainer=function(){return this.get("container")},e.prototype.updateInner=function(t){this.offScreenRender(),this.get("updateAutoRender")&&this.render()},e.prototype.render=function(){var t=this.get("offScreenGroup");t||(t=this.offScreenRender());var e=this.get("group");this.updateElements(t,e),this.deleteElements(),this.applyOffset(),this.get("eventInitted")||(this.initEvent(),this.set("eventInitted",!0)),this.set("isInit",!1)},e.prototype.show=function(){this.get("group").show(),this.set("visible",!0)},e.prototype.hide=function(){this.get("group").hide(),this.set("visible",!1)},e.prototype.setCapture=function(t){this.get("group").set("capture",t),this.set("capture",t)},e.prototype.destroy=function(){this.removeEvent(),this.remove(),t.prototype.destroy.call(this)},e.prototype.getBBox=function(){return this.get("group").getCanvasBBox()},e.prototype.getLayoutBBox=function(){var t=this.get("group"),e=this.getInnerLayoutBBox(),n=t.getTotalMatrix();return n&&(e=(0,s.applyMatrix2BBox)(n,e)),e},e.prototype.on=function(t,e,n){return this.get("group").on(t,e,n),this},e.prototype.off=function(t,e){var n=this.get("group");return n&&n.off(t,e),this},e.prototype.emit=function(t,e){this.get("group").emit(t,e)},e.prototype.init=function(){t.prototype.init.call(this),this.get("group")||this.initGroup(),this.offScreenRender()},e.prototype.getInnerLayoutBBox=function(){return this.get("offScreenBBox")||this.get("group").getBBox()},e.prototype.delegateEmit=function(t,e){var n=this.get("group");e.target=n,n.emit(t,e),(0,o.propagationDelegate)(n,t,e)},e.prototype.createOffScreenGroup=function(){return new(this.get("group").getGroupBase())({delegateObject:this.getDelegateObject()})},e.prototype.applyOffset=function(){var t=this.get("offsetX"),e=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t,y:e})},e.prototype.initGroup=function(){var t=this.get("container");this.set("group",t.addGroup({id:this.get("id"),name:this.get("name"),capture:this.get("capture"),visible:this.get("visible"),isComponent:!0,component:this,delegateObject:this.getDelegateObject()}))},e.prototype.offScreenRender=function(){this.clearOffScreenCache();var t=this.createOffScreenGroup();return this.renderInner(t),this.set("offScreenGroup",t),this.set("offScreenBBox",(0,l.getBBoxWithClip)(t)),t},e.prototype.addGroup=function(t,e){this.appendDelegateObject(t,e);var n=t.addGroup(e);return this.get("isRegister")&&this.registerElement(n),n},e.prototype.addShape=function(t,e){this.appendDelegateObject(t,e);var n=t.addShape(e);return this.get("isRegister")&&this.registerElement(n),n},e.prototype.addComponent=function(t,e){var n=e.id,r=e.component,a=(0,i.__rest)(e,["id","component"]),o=new r((0,i.__assign)((0,i.__assign)({},a),{id:n,container:t,updateAutoRender:this.get("updateAutoRender")}));return o.init(),o.render(),this.get("isRegister")&&this.registerElement(o.get("group")),o},e.prototype.initEvent=function(){},e.prototype.removeEvent=function(){this.get("group").off()},e.prototype.getElementId=function(t){return this.get("id")+"-"+this.get("name")+"-"+t},e.prototype.registerElement=function(t){var e=t.get("id");this.get("shapesMap")[e]=t},e.prototype.unregisterElement=function(t){var e=t.get("id");delete this.get("shapesMap")[e]},e.prototype.moveElementTo=function(t,e){var n=(0,s.getMatrixByTranslate)(e);t.attr("matrix",n)},e.prototype.addAnimation=function(t,e,n){var r=e.attr("opacity");(0,a.isNil)(r)&&(r=1),e.attr("opacity",0),e.animate({opacity:r},n)},e.prototype.removeAnimation=function(t,e,n){e.animate({opacity:0},n)},e.prototype.updateAnimation=function(t,e,n,r){e.animate(n,r)},e.prototype.updateElements=function(t,e){var n,r=this,i=this.get("animate"),o=this.get("animateOption"),s=t.getChildren().slice(0);(0,a.each)(s,(function(t){var s=t.get("id"),u=r.getElementById(s),h=t.get("name");if(u)if(t.get("isComponent")){var p=t.get("component"),d=u.get("component"),g=(0,a.pick)(p.cfg,(0,a.difference)((0,a.keys)(p.cfg),f));d.update(g),u.set("update_status","update")}else{var y=r.getReplaceAttrs(u,t);i&&o.update?r.updateAnimation(h,u,y,o.update):u.attr(y),t.isGroup()&&r.updateElements(t,u),(0,a.each)(c,(function(e){u.set(e,t.get(e))})),(0,l.updateClip)(u,t),n=u,u.set("update_status","update")}else{e.add(t);var v=e.getChildren();if(v.splice(v.length-1,1),n){var m=v.indexOf(n);v.splice(m+1,0,t)}else v.unshift(t);if(r.registerElement(t),t.set("update_status","add"),t.get("isComponent"))(p=t.get("component")).set("container",e);else t.isGroup()&&r.registerNewGroup(t);if(n=t,i){var _=r.get("isInit")?o.appear:o.enter;_&&r.addAnimation(h,t,_)}}}))},e.prototype.clearUpdateStatus=function(t){var e=t.getChildren();(0,a.each)(e,(function(t){t.set("update_status",null)}))},e.prototype.clearOffScreenCache=function(){var t=this.get("offScreenGroup");t&&t.destroy(),this.set("offScreenGroup",null),this.set("offScreenBBox",null)},e.prototype.getDelegateObject=function(){var t;return(t={})[this.get("name")]=this,t.component=this,t},e.prototype.appendDelegateObject=function(t,e){var n=t.get("delegateObject");e.delegateObject||(e.delegateObject={}),(0,a.mix)(e.delegateObject,n)},e.prototype.getReplaceAttrs=function(t,e){var n=t.attr(),r=e.attr();return(0,a.each)(n,(function(t,e){void 0===r[e]&&(r[e]=void 0)})),r},e.prototype.registerNewGroup=function(t){var e=this,n=t.getChildren();(0,a.each)(n,(function(t){e.registerElement(t),t.set("update_status","add"),t.isGroup()&&e.registerNewGroup(t)}))},e.prototype.deleteElements=function(){var t=this,e=this.get("shapesMap"),n=[];(0,a.each)(e,(function(t,e){!t.get("update_status")||t.destroyed?n.push([e,t]):t.set("update_status",null)}));var r=this.get("animate"),i=this.get("animateOption");(0,a.each)(n,(function(n){var o=n[0],s=n[1];if(!s.destroyed){var l=s.get("name");if(r&&i.leave){var u=(0,a.mix)({callback:function(){t.removeElement(s)}},i.leave);t.removeAnimation(l,s,u)}else t.removeElement(s)}delete e[o]}))},e.prototype.removeElement=function(t){if(t.get("isGroup")){var e=t.get("component");e&&e.destroy()}t.remove()},e}(u.default);e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getTextPoint=e.toPx=e.updateClip=e.getBBoxWithClip=e.mergeBBox=e.intersectBBox=e.near=e.wait=e.distance=e.getCirclePoint=e.getValueByPercent=e.createBBox=e.pointsToBBox=e.regionToBBox=e.hasClass=e.clearDom=e.formatPadding=void 0;var r=n(1);function i(t,e,n,r){var i=t+n,a=e+r;return{x:t,y:e,width:n,height:r,minX:t,minY:e,maxX:isNaN(i)?0:i,maxY:isNaN(a)?0:a}}function a(t,e,n){return(1-n)*t+e*n}function o(t,e){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}e.formatPadding=function(t){var e=0,n=0,i=0,a=0;return(0,r.isNumber)(t)?e=n=i=a=t:(0,r.isArray)(t)&&(e=t[0],i=(0,r.isNil)(t[1])?t[0]:t[1],a=(0,r.isNil)(t[2])?t[0]:t[2],n=(0,r.isNil)(t[3])?i:t[3]),[e,i,a,n]},e.clearDom=function(t){for(var e=t.childNodes,n=e.length-1;n>=0;n--)t.removeChild(e[n])},e.hasClass=function(t,e){return!!t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))},e.regionToBBox=function(t){var e=t.start,n=t.end,r=Math.min(e.x,n.x),i=Math.min(e.y,n.y),a=Math.max(e.x,n.x),o=Math.max(e.y,n.y);return{x:r,y:i,minX:r,minY:i,maxX:a,maxY:o,width:a-r,height:o-i}},e.pointsToBBox=function(t){var e=t.map((function(t){return t.x})),n=t.map((function(t){return t.y})),r=Math.min.apply(Math,e),i=Math.min.apply(Math,n),a=Math.max.apply(Math,e),o=Math.max.apply(Math,n);return{x:r,y:i,minX:r,minY:i,maxX:a,maxY:o,width:a-r,height:o-i}},e.createBBox=i,e.getValueByPercent=a,e.getCirclePoint=function(t,e,n){return{x:t.x+Math.cos(n)*e,y:t.y+Math.sin(n)*e}},e.distance=o;e.wait=function(t){return new Promise((function(e){setTimeout(e,t)}))};function s(t,e){var n=Math.max(t.minX,e.minX),r=Math.max(t.minY,e.minY);return i(n,r,Math.min(t.maxX,e.maxX)-n,Math.min(t.maxY,e.maxY)-r)}e.near=function(t,e,n){return void 0===n&&(n=Math.pow(Number.EPSILON,.5)),[t,e].includes(1/0)?Math.abs(t)===Math.abs(e):Math.abs(t-e)<n},e.intersectBBox=s,e.mergeBBox=function(t,e){var n=Math.min(t.minX,e.minX),r=Math.min(t.minY,e.minY);return i(n,r,Math.max(t.maxX,e.maxX)-n,Math.max(t.maxY,e.maxY)-r)},e.getBBoxWithClip=function t(e){var n,a=e.getClip(),o=a&&a.getBBox();if(e.isGroup()){var l=1/0,u=-1/0,c=1/0,f=-1/0,h=e.getChildren();h.length>0?(0,r.each)(h,(function(e){if(e.get("visible")){if(e.isGroup()&&0===e.get("children").length)return!0;var n=t(e),r=e.applyToMatrix([n.minX,n.minY,1]),i=e.applyToMatrix([n.minX,n.maxY,1]),a=e.applyToMatrix([n.maxX,n.minY,1]),o=e.applyToMatrix([n.maxX,n.maxY,1]),s=Math.min(r[0],i[0],a[0],o[0]),h=Math.max(r[0],i[0],a[0],o[0]),p=Math.min(r[1],i[1],a[1],o[1]),d=Math.max(r[1],i[1],a[1],o[1]);s<l&&(l=s),h>u&&(u=h),p<c&&(c=p),d>f&&(f=d)}})):(l=0,u=0,c=0,f=0),n=i(l,c,u-l,f-c)}else n=e.getBBox();return o?s(n,o):n},e.updateClip=function(t,e){if(t.getClip()||e.getClip()){var n=e.getClip();if(n){var r={type:n.get("type"),attrs:n.attr()};t.setClip(r)}else t.setClip(null)}},e.toPx=function(t){return t+"px"},e.getTextPoint=function(t,e,n,r){var i=r/o(t,e),s=0;return"start"===n?s=0-i:"end"===n&&(s=1+i),{x:a(t.x,e.x,s),y:a(t.y,e.y,s)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=function(){function t(t,e){this.context=t,this.cfg=e,t.addAction(this)}return t.prototype.applyCfg=function(t){(0,r.assign)(this,t)},t.prototype.init=function(){this.applyCfg(this.cfg)},t.prototype.destroy=function(){this.context.removeAction(this),this.context=null},t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.version=e.registerEasing=e.getOffScreenContext=e.invert=e.multiplyVec2=e.isAllowCapture=e.assembleFont=e.getTextHeight=e.registerBBox=e.getBBoxMethod=e.PathUtil=e.AbstractShape=e.AbstractGroup=e.AbstractCanvas=e.Base=e.Event=void 0;var r=n(0),i=r.__importStar(n(155));e.PathUtil=i,r.__exportStar(n(320),e),r.__exportStar(n(321),e);var a=n(156);Object.defineProperty(e,"Event",{enumerable:!0,get:function(){return r.__importDefault(a).default}});var o=n(157);Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return r.__importDefault(o).default}});var s=n(322);Object.defineProperty(e,"AbstractCanvas",{enumerable:!0,get:function(){return r.__importDefault(s).default}});var l=n(361);Object.defineProperty(e,"AbstractGroup",{enumerable:!0,get:function(){return r.__importDefault(l).default}});var u=n(362);Object.defineProperty(e,"AbstractShape",{enumerable:!0,get:function(){return r.__importDefault(u).default}});var c=n(363);Object.defineProperty(e,"getBBoxMethod",{enumerable:!0,get:function(){return c.getBBoxMethod}}),Object.defineProperty(e,"registerBBox",{enumerable:!0,get:function(){return c.registerBBox}});var f=n(179);Object.defineProperty(e,"getTextHeight",{enumerable:!0,get:function(){return f.getTextHeight}}),Object.defineProperty(e,"assembleFont",{enumerable:!0,get:function(){return f.assembleFont}});var h=n(39);Object.defineProperty(e,"isAllowCapture",{enumerable:!0,get:function(){return h.isAllowCapture}});var p=n(92);Object.defineProperty(e,"multiplyVec2",{enumerable:!0,get:function(){return p.multiplyVec2}}),Object.defineProperty(e,"invert",{enumerable:!0,get:function(){return p.invert}});var d=n(180);Object.defineProperty(e,"getOffScreenContext",{enumerable:!0,get:function(){return d.getOffScreenContext}});var g=n(174);Object.defineProperty(e,"registerEasing",{enumerable:!0,get:function(){return g.registerEasing}}),e.version="0.5.11"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getReplaceAttrs=e.getPolygonCentroid=e.getAngle=e.getArcPath=e.getSectorPath=e.polarToCartesian=void 0;var r=n(1);function i(t){return 1===Array.from(new Set(t)).length}function a(t){return((0,r.min)(t)+(0,r.max)(t))/2}function o(t,e,n,r){return{x:t+n*Math.cos(r),y:e+n*Math.sin(r)}}e.polarToCartesian=o,e.getSectorPath=function(t,e,n,r,i,a){void 0===a&&(a=0);var s=o(t,e,n,r),l=o(t,e,n,i),u=o(t,e,a,r),c=o(t,e,a,i);if(i-r==2*Math.PI){var f=o(t,e,n,r+Math.PI),h=o(t,e,a,r+Math.PI),p=[["M",s.x,s.y],["A",n,n,0,1,1,f.x,f.y],["A",n,n,0,1,1,l.x,l.y],["M",u.x,u.y]];return a&&(p.push(["A",a,a,0,1,0,h.x,h.y]),p.push(["A",a,a,0,1,0,c.x,c.y])),p.push(["M",s.x,s.y]),p.push(["Z"]),p}var d=i-r<=Math.PI?0:1,g=[["M",s.x,s.y],["A",n,n,0,d,1,l.x,l.y],["L",c.x,c.y]];return a&&g.push(["A",a,a,0,d,0,u.x,u.y]),g.push(["L",s.x,s.y]),g.push(["Z"]),g},e.getArcPath=function(t,e,n,i,a){var s=o(t,e,n,i),l=o(t,e,n,a);if((0,r.isNumberEqual)(a-i,2*Math.PI)){var u=o(t,e,n,i+Math.PI);return[["M",s.x,s.y],["A",n,n,0,1,1,u.x,u.y],["A",n,n,0,1,1,s.x,s.y],["A",n,n,0,1,0,u.x,u.y],["A",n,n,0,1,0,s.x,s.y],["Z"]]}var c=a-i<=Math.PI?0:1;return[["M",s.x,s.y],["A",n,n,0,c,1,l.x,l.y]]},e.getAngle=function(t,e){var n,i,a=function(t){if((0,r.isEmpty)(t))return null;var e=t[0].x,n=t[0].x,i=t[0].y,a=t[0].y;return(0,r.each)(t,(function(t){e=e>t.x?t.x:e,n=n<t.x?t.x:n,i=i>t.y?t.y:i,a=a<t.y?t.y:a})),{minX:e,maxX:n,minY:i,maxY:a,centerX:(e+n)/2,centerY:(i+a)/2}}(t.points),o=e.startAngle,s=e.endAngle-o;return e.isTransposed?(n=a.maxY*s,i=a.minY*s):(n=a.maxX*s,i=a.minX*s),{startAngle:i+=o,endAngle:n+=o}},e.getPolygonCentroid=function(t,e){if((0,r.isNumber)(t)&&(0,r.isNumber)(e))return[t,e];if(e=e,i(t=t)||i(e))return[a(t),a(e)];for(var n,o,s=-1,l=0,u=0,c=t.length-1,f=0;++s<t.length;)n=c,c=s,f+=o=t[n]*e[c]-t[c]*e[n],l+=(t[n]+t[c])*o,u+=(e[n]+e[c])*o;return[l/(f*=3),u/f]},e.getReplaceAttrs=function(t,e){var n=t.attr(),i=e.attr();return(0,r.each)(n,(function(t,e){void 0===i[e]&&(i[e]=void 0)})),i}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getCoordinateBBox=e.getCoordinateClipCfg=e.getAngleByPoint=e.isPointInCoordinate=e.getDistanceToCenter=e.isFullCircle=e.getXDimensionLength=void 0;var r=n(13),i=n(25),a=n(29);e.getXDimensionLength=function(t){if(t.isPolar&&!t.isTransposed)return(t.endAngle-t.startAngle)*t.getRadius();var e=t.convert({x:0,y:0}),n=t.convert({x:1,y:0});return Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))},e.isFullCircle=function(t){if(t.isPolar){var e=t.startAngle;return t.endAngle-e==2*Math.PI}return!1},e.getDistanceToCenter=function(t,e){var n=t.getCenter();return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))},e.isPointInCoordinate=function(t,e){var n=!1;if(t)if("theta"===t.type){var r=t.start,a=t.end;n=(0,i.isBetween)(e.x,r.x,a.x)&&(0,i.isBetween)(e.y,r.y,a.y)}else{var o=t.invert(e);n=(0,i.isBetween)(o.x,0,1)&&(0,i.isBetween)(o.y,0,1)}return n},e.getAngleByPoint=function(t,e){var n=t.getCenter();return Math.atan2(e.y-n.y,e.x-n.x)},e.getCoordinateClipCfg=function(t,e){void 0===e&&(e=0);var n,i=t.start,a=t.end,o=t.getWidth(),s=t.getHeight();if(t.isPolar){var l=t.startAngle,u=t.endAngle,c=t.getCenter(),f=t.getRadius();return{type:"path",startState:{path:(0,r.getSectorPath)(c.x,c.y,f+e,l,l)},endState:function(t){var n=(u-l)*t+l;return{path:(0,r.getSectorPath)(c.x,c.y,f+e,l,n)}},attrs:{path:(0,r.getSectorPath)(c.x,c.y,f+e,l,u)}}}return n=t.isTransposed?{height:s+2*e}:{width:o+2*e},{type:"rect",startState:{x:i.x-e,y:a.y-e,width:t.isTransposed?o+2*e:0,height:t.isTransposed?0:s+2*e},endState:n,attrs:{x:i.x-e,y:a.y-e,width:o+2*e,height:s+2*e}}},e.getCoordinateBBox=function(t,e){void 0===e&&(e=0);var n=t.start,r=t.end,i=t.getWidth(),o=t.getHeight(),s=Math.min(n.x,r.x),l=Math.min(n.y,r.y);return a.BBox.fromRange(s-e,l-e,s+i+e,l+o+e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.clearAnimationFrame=e.requestAnimationFrame=e.isNumberEqual=e.mod=e.toRadian=e.each=e.isArray=e.isFunction=e.isString=e.isNil=e.isSamePoint=e.mergeRegion=e.intersectRect=e.inBox=e.distance=e.getPixelRatio=void 0,e.getPixelRatio=function(){return window?window.devicePixelRatio:1},e.distance=function(t,e,n,r){var i=t-n,a=e-r;return Math.sqrt(i*i+a*a)},e.inBox=function(t,e,n,r,i,a){return i>=t&&i<=t+n&&a>=e&&a<=e+r},e.intersectRect=function(t,e){return!(e.minX>t.maxX||e.maxX<t.minX||e.minY>t.maxY||e.maxY<t.minY)},e.mergeRegion=function(t,e){return t&&e?{minX:Math.min(t.minX,e.minX),minY:Math.min(t.minY,e.minY),maxX:Math.max(t.maxX,e.maxX),maxY:Math.max(t.maxY,e.maxY)}:t||e},e.isSamePoint=function(t,e){return t[0]===e[0]&&t[1]===e[1]};var r=n(1);Object.defineProperty(e,"isNil",{enumerable:!0,get:function(){return r.isNil}}),Object.defineProperty(e,"isString",{enumerable:!0,get:function(){return r.isString}}),Object.defineProperty(e,"isFunction",{enumerable:!0,get:function(){return r.isFunction}}),Object.defineProperty(e,"isArray",{enumerable:!0,get:function(){return r.isArray}}),Object.defineProperty(e,"each",{enumerable:!0,get:function(){return r.each}}),Object.defineProperty(e,"toRadian",{enumerable:!0,get:function(){return r.toRadian}}),Object.defineProperty(e,"mod",{enumerable:!0,get:function(){return r.mod}}),Object.defineProperty(e,"isNumberEqual",{enumerable:!0,get:function(){return r.isNumberEqual}}),Object.defineProperty(e,"requestAnimationFrame",{enumerable:!0,get:function(){return r.requestAnimationFrame}}),Object.defineProperty(e,"clearAnimationFrame",{enumerable:!0,get:function(){return r.clearAnimationFrame}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EVENTS=e.SVG_ATTR_MAP=e.SHAPE_TO_TAGS=void 0,e.SHAPE_TO_TAGS={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polyline:"polyline",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject"},e.SVG_ATTR_MAP={opacity:"opacity",fillStyle:"fill",fill:"fill",fillOpacity:"fill-opacity",strokeStyle:"stroke",strokeOpacity:"stroke-opacity",stroke:"stroke",x:"x",y:"y",r:"r",rx:"rx",ry:"ry",width:"width",height:"height",x1:"x1",x2:"x2",y1:"y1",y2:"y2",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",lineDashOffset:"stroke-dashoffset",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",startArrow:"marker-start",endArrow:"marker-end",path:"d",class:"class",id:"id",style:"style",preserveAspectRatio:"preserveAspectRatio"},e.EVENTS=["click","mousedown","mouseup","dblclick","contextmenu","mouseenter","mouseleave","mouseover","mouseout","mousemove","wheel"]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){return null!==t&&"function"!=typeof t&&isFinite(t.length)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(24));e.default=function(t){return(0,r.default)(t,"Function")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CrosshairTextCfg=e.CrosshairLineCfg=e.ContinueLegendHandlerCfg=e.ContinueLegendLabelCfg=e.ContinueLegendRailCfg=e.ContinueLegendTrackCfg=e.ContinueLegendCfg=e.LegendPageNavigatorCfg=e.LegendItemValueCfg=e.LegendItemNameCfg=e.LegendBackgroundCfg=e.LegendTitleCfg=e.LegendMarkerCfg=e.GridLineCfg=e.AxisLabelCfg=e.AxisTitleCfg=e.AxisSubTickLineCfg=e.AxisTickLineCfg=e.AxisLineCfg=e.ListItem=e.GroupComponentCfg=e.LineAxisCfg=e.CircleAxisCfg=e.CategoryLegendCfg=e.Tick=e.ScaleConfig=e.Scale=e.registerScale=e.getScale=e.CoordinateCfg=e.Coordinate=e.registerCoordinate=e.getCoordinate=e.Color=e.Attribute=e.getAttribute=e.Adjust=e.getAdjust=e.registerAdjust=e.AbstractShape=e.AbstractGroup=e.Event=e.ShapeAttrs=e.Point=e.BBox=e.PathCommand=e.IShape=e.IGroup=e.IElement=e.ICanvas=void 0,e.Scrollbar=e.Slider=e.HtmlTooltip=e.ContinuousLegend=e.CategoryLegend=e.CircleGrid=e.LineGrid=e.CircleAxis=e.LineAxis=e.Annotation=e.Crosshair=e.Component=e.GroupComponent=e.HtmlComponent=e.IList=e.IComponent=e.LineAnnotationTextCfg=e.EnhancedTextCfg=e.TrendCfg=e.SliderCfg=e.CrosshairTextBackgroundCfg=void 0;var r=n(12);Object.defineProperty(e,"ICanvas",{enumerable:!0,get:function(){return r.ICanvas}}),Object.defineProperty(e,"IElement",{enumerable:!0,get:function(){return r.IElement}}),Object.defineProperty(e,"IGroup",{enumerable:!0,get:function(){return r.IGroup}}),Object.defineProperty(e,"IShape",{enumerable:!0,get:function(){return r.IShape}}),Object.defineProperty(e,"PathCommand",{enumerable:!0,get:function(){return r.PathCommand}}),Object.defineProperty(e,"BBox",{enumerable:!0,get:function(){return r.BBox}}),Object.defineProperty(e,"Point",{enumerable:!0,get:function(){return r.Point}}),Object.defineProperty(e,"ShapeAttrs",{enumerable:!0,get:function(){return r.ShapeAttrs}}),Object.defineProperty(e,"Event",{enumerable:!0,get:function(){return r.Event}}),Object.defineProperty(e,"AbstractGroup",{enumerable:!0,get:function(){return r.AbstractGroup}}),Object.defineProperty(e,"AbstractShape",{enumerable:!0,get:function(){return r.AbstractShape}});var i=n(188);Object.defineProperty(e,"registerAdjust",{enumerable:!0,get:function(){return i.registerAdjust}}),Object.defineProperty(e,"getAdjust",{enumerable:!0,get:function(){return i.getAdjust}}),Object.defineProperty(e,"Adjust",{enumerable:!0,get:function(){return i.Adjust}});var a=n(102);Object.defineProperty(e,"getAttribute",{enumerable:!0,get:function(){return a.getAttribute}}),Object.defineProperty(e,"Attribute",{enumerable:!0,get:function(){return a.Attribute}});var o=n(102);Object.defineProperty(e,"Color",{enumerable:!0,get:function(){return o.Color}});var s=n(423);Object.defineProperty(e,"getCoordinate",{enumerable:!0,get:function(){return s.getCoordinate}}),Object.defineProperty(e,"registerCoordinate",{enumerable:!0,get:function(){return s.registerCoordinate}}),Object.defineProperty(e,"Coordinate",{enumerable:!0,get:function(){return s.Coordinate}}),Object.defineProperty(e,"CoordinateCfg",{enumerable:!0,get:function(){return s.CoordinateCfg}});var l=n(103);Object.defineProperty(e,"getScale",{enumerable:!0,get:function(){return l.getScale}}),Object.defineProperty(e,"registerScale",{enumerable:!0,get:function(){return l.registerScale}}),Object.defineProperty(e,"Scale",{enumerable:!0,get:function(){return l.Scale}}),Object.defineProperty(e,"ScaleConfig",{enumerable:!0,get:function(){return l.ScaleConfig}}),Object.defineProperty(e,"Tick",{enumerable:!0,get:function(){return l.Tick}});var u=n(41);Object.defineProperty(e,"Annotation",{enumerable:!0,get:function(){return u.Annotation}}),Object.defineProperty(e,"Component",{enumerable:!0,get:function(){return u.Component}}),Object.defineProperty(e,"Crosshair",{enumerable:!0,get:function(){return u.Crosshair}}),Object.defineProperty(e,"GroupComponent",{enumerable:!0,get:function(){return u.GroupComponent}}),Object.defineProperty(e,"HtmlComponent",{enumerable:!0,get:function(){return u.HtmlComponent}}),Object.defineProperty(e,"Slider",{enumerable:!0,get:function(){return u.Slider}}),Object.defineProperty(e,"Scrollbar",{enumerable:!0,get:function(){return u.Scrollbar}});var c=n(41);Object.defineProperty(e,"CategoryLegendCfg",{enumerable:!0,get:function(){return c.CategoryLegendCfg}}),Object.defineProperty(e,"CircleAxisCfg",{enumerable:!0,get:function(){return c.CircleAxisCfg}}),Object.defineProperty(e,"LineAxisCfg",{enumerable:!0,get:function(){return c.LineAxisCfg}}),Object.defineProperty(e,"GroupComponentCfg",{enumerable:!0,get:function(){return c.GroupComponentCfg}}),Object.defineProperty(e,"ListItem",{enumerable:!0,get:function(){return c.ListItem}}),Object.defineProperty(e,"AxisLineCfg",{enumerable:!0,get:function(){return c.AxisLineCfg}}),Object.defineProperty(e,"AxisTickLineCfg",{enumerable:!0,get:function(){return c.AxisTickLineCfg}}),Object.defineProperty(e,"AxisSubTickLineCfg",{enumerable:!0,get:function(){return c.AxisSubTickLineCfg}}),Object.defineProperty(e,"AxisTitleCfg",{enumerable:!0,get:function(){return c.AxisTitleCfg}}),Object.defineProperty(e,"AxisLabelCfg",{enumerable:!0,get:function(){return c.AxisLabelCfg}}),Object.defineProperty(e,"GridLineCfg",{enumerable:!0,get:function(){return c.GridLineCfg}}),Object.defineProperty(e,"LegendMarkerCfg",{enumerable:!0,get:function(){return c.LegendMarkerCfg}}),Object.defineProperty(e,"LegendTitleCfg",{enumerable:!0,get:function(){return c.LegendTitleCfg}}),Object.defineProperty(e,"LegendBackgroundCfg",{enumerable:!0,get:function(){return c.LegendBackgroundCfg}}),Object.defineProperty(e,"LegendItemNameCfg",{enumerable:!0,get:function(){return c.LegendItemNameCfg}}),Object.defineProperty(e,"LegendItemValueCfg",{enumerable:!0,get:function(){return c.LegendItemValueCfg}}),Object.defineProperty(e,"LegendPageNavigatorCfg",{enumerable:!0,get:function(){return c.LegendPageNavigatorCfg}}),Object.defineProperty(e,"ContinueLegendCfg",{enumerable:!0,get:function(){return c.ContinueLegendCfg}}),Object.defineProperty(e,"ContinueLegendTrackCfg",{enumerable:!0,get:function(){return c.ContinueLegendTrackCfg}}),Object.defineProperty(e,"ContinueLegendRailCfg",{enumerable:!0,get:function(){return c.ContinueLegendRailCfg}}),Object.defineProperty(e,"ContinueLegendLabelCfg",{enumerable:!0,get:function(){return c.ContinueLegendLabelCfg}}),Object.defineProperty(e,"ContinueLegendHandlerCfg",{enumerable:!0,get:function(){return c.ContinueLegendHandlerCfg}}),Object.defineProperty(e,"CrosshairLineCfg",{enumerable:!0,get:function(){return c.CrosshairLineCfg}}),Object.defineProperty(e,"CrosshairTextCfg",{enumerable:!0,get:function(){return c.CrosshairTextCfg}}),Object.defineProperty(e,"CrosshairTextBackgroundCfg",{enumerable:!0,get:function(){return c.CrosshairTextBackgroundCfg}}),Object.defineProperty(e,"SliderCfg",{enumerable:!0,get:function(){return c.SliderCfg}}),Object.defineProperty(e,"TrendCfg",{enumerable:!0,get:function(){return c.TrendCfg}}),Object.defineProperty(e,"EnhancedTextCfg",{enumerable:!0,get:function(){return c.EnhancedTextCfg}}),Object.defineProperty(e,"LineAnnotationTextCfg",{enumerable:!0,get:function(){return c.LineAnnotationTextCfg}}),Object.defineProperty(e,"IComponent",{enumerable:!0,get:function(){return c.IComponent}}),Object.defineProperty(e,"IList",{enumerable:!0,get:function(){return c.IList}});var f=u.Axis.Line,h=u.Axis.Circle;e.LineAxis=f,e.CircleAxis=h;var p=u.Grid.Line,d=u.Grid.Circle;e.LineGrid=p,e.CircleGrid=d;var g=u.Legend.Category,y=u.Legend.Continuous;e.CategoryLegend=g,e.ContinuousLegend=y;var v=u.Tooltip.Html;e.HtmlTooltip=v},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Util=e.Polyline=e.Polygon=e.Line=e.Arc=e.Cubic=e.Quad=void 0;var r=n(0),i=r.__importDefault(n(368));e.Quad=i.default;var a=r.__importDefault(n(369));e.Cubic=a.default;var o=r.__importDefault(n(370));e.Arc=o.default;var s=r.__importDefault(n(69));e.Line=s.default;var l=r.__importDefault(n(372));e.Polygon=l.default;var u=r.__importDefault(n(178));e.Polyline=u.default;var c=r.__importStar(n(32));e.Util=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={fontFamily:'\n BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue",\n Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",\n SimSun, "sans-serif"',textColor:"#2C3542",activeTextColor:"#333333",uncheckedColor:"#D8D8D8",lineColor:"#416180",regionColor:"#CCD7EB",verticalAxisRotate:-Math.PI/4,horizontalAxisRotate:Math.PI/4,descriptionIconStroke:"#fff",descriptionIconFill:"rgba(58, 73, 101, .25)"}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(12),o=n(64),s=n(27),l=n(121),u=n(16),c=r.__importStar(n(82)),f=r.__importDefault(n(122)),h=n(12),p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="svg",e.canFill=!1,e.canStroke=!1,e}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e);var n=this.get("canvas");if(n&&n.get("autoDraw")){var r=n.get("context");this.draw(r,e)}},e.prototype.getShapeBase=function(){return c},e.prototype.getGroupBase=function(){return f.default},e.prototype.onCanvasChange=function(t){(0,l.refreshElement)(this,t)},e.prototype.calculateBBox=function(){var t=this.get("el"),e=null;if(t)e=t.getBBox();else{var n=(0,h.getBBoxMethod)(this.get("type"));n&&(e=n(this))}if(e){var r=e.x,i=e.y,a=e.width,o=e.height,s=this.getHitLineWidth(),l=s/2,u=r-l,c=i-l;return{x:u,y:c,minX:u,minY:c,maxX:r+a+l,maxY:i+o+l,width:a+s,height:o+s}}return{x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0}},e.prototype.isFill=function(){var t=this.attr(),e=t.fill,n=t.fillStyle;return(e||n||this.isClipShape())&&this.canFill},e.prototype.isStroke=function(){var t=this.attr(),e=t.stroke,n=t.strokeStyle;return(e||n)&&this.canStroke},e.prototype.draw=function(t,e){var n=this.get("el");this.get("destroyed")?n&&n.parentNode.removeChild(n):(n||(0,s.createDom)(this),(0,o.setClip)(this,t),this.createPath(t,e),this.shadow(t,e),this.strokeAndFill(t,e),this.transform(e))},e.prototype.createPath=function(t,e){},e.prototype.strokeAndFill=function(t,e){var n=e||this.attr(),r=n.fill,i=n.fillStyle,a=n.stroke,o=n.strokeStyle,s=n.fillOpacity,l=n.strokeOpacity,c=n.lineWidth,f=this.get("el");this.canFill&&(e?"fill"in n?this._setColor(t,"fill",r):"fillStyle"in n&&this._setColor(t,"fill",i):this._setColor(t,"fill",r||i),s&&f.setAttribute(u.SVG_ATTR_MAP.fillOpacity,s)),this.canStroke&&c>0&&(e?"stroke"in n?this._setColor(t,"stroke",a):"strokeStyle"in n&&this._setColor(t,"stroke",o):this._setColor(t,"stroke",a||o),l&&f.setAttribute(u.SVG_ATTR_MAP.strokeOpacity,l),c&&f.setAttribute(u.SVG_ATTR_MAP.lineWidth,c))},e.prototype._setColor=function(t,e,n){var r=this.get("el");if(n)if(n=n.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(n))(i=t.find("gradient",n))||(i=t.addGradient(n)),r.setAttribute(u.SVG_ATTR_MAP[e],"url(#"+i+")");else if(/^[p,P]{1}[\s]*\(/.test(n)){var i;(i=t.find("pattern",n))||(i=t.addPattern(n)),r.setAttribute(u.SVG_ATTR_MAP[e],"url(#"+i+")")}else r.setAttribute(u.SVG_ATTR_MAP[e],n);else r.setAttribute(u.SVG_ATTR_MAP[e],"none")},e.prototype.shadow=function(t,e){var n=this.attr(),r=e||n,i=r.shadowOffsetX,a=r.shadowOffsetY,s=r.shadowBlur,l=r.shadowColor;(i||a||s||l)&&(0,o.setShadow)(this,t)},e.prototype.transform=function(t){var e=this.attr();(t||e).matrix&&(0,o.setTransform)(this)},e.prototype.isInShape=function(t,e){return this.isPointInPath(t,e)},e.prototype.isPointInPath=function(t,e){var n=this.get("el"),r=this.get("canvas").get("el").getBoundingClientRect(),i=t+r.left,a=e+r.top,o=document.elementFromPoint(i,a);return!(!o||!o.isEqualNode(n))},e.prototype.getHitLineWidth=function(){var t=this.attrs,e=t.lineWidth,n=t.lineAppendWidth;return this.isStroke()?e+n:0},e}(a.AbstractShape);e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Util=e.ScaleConfig=e.Scale=e.Coordinate=e.ShapeAttrs=e.IGroup=e.DIRECTION=e.LAYER=e.getAnimation=e.registerAnimation=e.getEngine=e.registerEngine=e.registerTheme=e.getTheme=e.registerFacet=e.getFacet=e.getActionClass=e.registerAction=e.registerInteraction=e.getInteraction=e.getGeometryLabelLayout=e.getGeometryLabel=e.registerGeometryLabelLayout=e.registerGeometryLabel=e.getShapeFactory=e.registerShapeFactory=e.registerShape=e.registerGeometry=e.registerComponentController=e.InteractionAction=e.Facet=e.Action=e.Interaction=e.GeometryLabel=e.Element=e.Geometry=e.TooltipController=e.ComponentController=e.Event=e.View=e.Chart=e.VERSION=void 0;var r=n(0);e.VERSION="4.2.0";var i=n(56);Object.defineProperty(e,"Chart",{enumerable:!0,get:function(){return i.Chart}}),Object.defineProperty(e,"View",{enumerable:!0,get:function(){return i.View}}),Object.defineProperty(e,"Event",{enumerable:!0,get:function(){return i.Event}});var a=n(42);Object.defineProperty(e,"ComponentController",{enumerable:!0,get:function(){return a.Controller}});var o=n(210);Object.defineProperty(e,"TooltipController",{enumerable:!0,get:function(){return r.__importDefault(o).default}});var s=n(34);Object.defineProperty(e,"Geometry",{enumerable:!0,get:function(){return r.__importDefault(s).default}});var l=n(115);Object.defineProperty(e,"Element",{enumerable:!0,get:function(){return r.__importDefault(l).default}});var u=n(79);Object.defineProperty(e,"GeometryLabel",{enumerable:!0,get:function(){return r.__importDefault(u).default}});var c=n(112);Object.defineProperty(e,"Interaction",{enumerable:!0,get:function(){return c.Interaction}}),Object.defineProperty(e,"Action",{enumerable:!0,get:function(){return c.Action}});var f=n(89);Object.defineProperty(e,"Facet",{enumerable:!0,get:function(){return f.Facet}});var h=n(11);Object.defineProperty(e,"InteractionAction",{enumerable:!0,get:function(){return r.__importDefault(h).default}});var p=n(56);Object.defineProperty(e,"registerComponentController",{enumerable:!0,get:function(){return p.registerComponentController}});var d=n(56);Object.defineProperty(e,"registerGeometry",{enumerable:!0,get:function(){return d.registerGeometry}});var g=n(3);Object.defineProperty(e,"registerShape",{enumerable:!0,get:function(){return g.registerShape}}),Object.defineProperty(e,"registerShapeFactory",{enumerable:!0,get:function(){return g.registerShapeFactory}}),Object.defineProperty(e,"getShapeFactory",{enumerable:!0,get:function(){return g.getShapeFactory}});var y=n(117);Object.defineProperty(e,"registerGeometryLabel",{enumerable:!0,get:function(){return y.registerGeometryLabel}}),Object.defineProperty(e,"registerGeometryLabelLayout",{enumerable:!0,get:function(){return y.registerGeometryLabelLayout}}),Object.defineProperty(e,"getGeometryLabel",{enumerable:!0,get:function(){return y.getGeometryLabel}}),Object.defineProperty(e,"getGeometryLabelLayout",{enumerable:!0,get:function(){return y.getGeometryLabelLayout}});var v=n(112);Object.defineProperty(e,"getInteraction",{enumerable:!0,get:function(){return v.getInteraction}}),Object.defineProperty(e,"registerInteraction",{enumerable:!0,get:function(){return v.registerInteraction}}),Object.defineProperty(e,"registerAction",{enumerable:!0,get:function(){return v.registerAction}}),Object.defineProperty(e,"getActionClass",{enumerable:!0,get:function(){return v.getActionClass}});var m=n(89);Object.defineProperty(e,"getFacet",{enumerable:!0,get:function(){return m.getFacet}}),Object.defineProperty(e,"registerFacet",{enumerable:!0,get:function(){return m.registerFacet}});var _=n(205);Object.defineProperty(e,"getTheme",{enumerable:!0,get:function(){return _.getTheme}}),Object.defineProperty(e,"registerTheme",{enumerable:!0,get:function(){return _.registerTheme}});var x=n(150);Object.defineProperty(e,"registerEngine",{enumerable:!0,get:function(){return x.registerEngine}}),Object.defineProperty(e,"getEngine",{enumerable:!0,get:function(){return x.getEngine}});var b=n(211);Object.defineProperty(e,"registerAnimation",{enumerable:!0,get:function(){return b.registerAnimation}}),Object.defineProperty(e,"getAnimation",{enumerable:!0,get:function(){return b.getAnimation}});var M=n(2);Object.defineProperty(e,"LAYER",{enumerable:!0,get:function(){return M.LAYER}}),Object.defineProperty(e,"DIRECTION",{enumerable:!0,get:function(){return M.DIRECTION}});r.__importStar(n(487));var C=n(19);Object.defineProperty(e,"IGroup",{enumerable:!0,get:function(){return C.IGroup}}),Object.defineProperty(e,"ShapeAttrs",{enumerable:!0,get:function(){return C.ShapeAttrs}}),Object.defineProperty(e,"Coordinate",{enumerable:!0,get:function(){return C.Coordinate}}),Object.defineProperty(e,"Scale",{enumerable:!0,get:function(){return C.Scale}}),Object.defineProperty(e,"ScaleConfig",{enumerable:!0,get:function(){return C.ScaleConfig}});var P=n(214),S=n(215),O=n(13),w=n(54),A=n(78),T=n(4),E=n(43),I=n(118);e.Util={getLegendItems:S.getLegendItems,translate:w.translate,rotate:w.rotate,zoom:w.zoom,transform:w.transform,getAngle:O.getAngle,getSectorPath:O.getSectorPath,polarToCartesian:O.polarToCartesian,getDelegationObject:T.getDelegationObject,getTooltipItems:A.getTooltipItems,getMappingValue:P.getMappingValue,getPath:I.getPath,getPathPoints:E.getPathPoints}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={}.toString;e.default=function(t,e){return r.call(t)==="[object "+e+"]"}},function(t,e,n){"use strict";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})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.uniq=e.omit=e.padEnd=e.isBetween=void 0;var i=n(0),a=n(1);e.isBetween=function(t,e,n){var r=Math.min(e,n),i=Math.max(e,n);return t>=r&&t<=i},e.padEnd=function(t,e,n){if((0,a.isString)(t))return t.padEnd(e,n);if((0,a.isArray)(t)){var r=t.length;if(r<e)for(var i=e-r,o=0;o<i;o++)t.push(n)}return t},e.omit=function(t,e){return"object"===r(t)&&e.forEach((function(e){delete t[e]})),t},e.uniq=function(t,e,n){var r,a;void 0===e&&(e=[]),void 0===n&&(n=new Map);try{for(var o=i.__values(t),s=o.next();!s.done;s=o.next()){var l=s.value;n.has(l)||(e.push(l),n.set(l,!0))}}catch(t){r={error:t}}finally{try{s&&!s.done&&(a=o.return)&&a.call(o)}finally{if(r)throw r.error}}return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(12),o=n(15),s=n(63),l=n(12),u=r.__importStar(n(62)),c=r.__importDefault(n(120)),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.getShapeBase=function(){return u},e.prototype.getGroupBase=function(){return c.default},e.prototype.onCanvasChange=function(t){(0,s.refreshElement)(this,t)},e.prototype.calculateBBox=function(){var t=this.get("type"),e=this.getHitLineWidth(),n=(0,l.getBBoxMethod)(t)(this),r=e/2,i=n.x-r,a=n.y-r,o=n.x+n.width+r,s=n.y+n.height+r;return{x:i,minX:i,y:a,minY:a,width:n.width+e,height:n.height+e,maxX:o,maxY:s}},e.prototype.isFill=function(){return!!this.attrs.fill||this.isClipShape()},e.prototype.isStroke=function(){return!!this.attrs.stroke},e.prototype._applyClip=function(t,e){e&&(t.save(),(0,s.applyAttrsToContext)(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},e.prototype.draw=function(t,e){var n=this.cfg.clipShape;if(e){if(!1===this.cfg.refresh)return void this.set("hasChanged",!1);var r=this.getCanvasBBox();if(!(0,o.intersectRect)(e,r))return this.set("hasChanged",!1),void(this.cfg.isInView&&this._afterDraw())}t.save(),(0,s.applyAttrsToContext)(t,this),this._applyClip(t,n),this.drawPath(t),t.restore(),this._afterDraw()},e.prototype.getCanvasViewBox=function(){var t=this.cfg.canvas;return t?t.getViewRange():null},e.prototype.cacheCanvasBBox=function(){var t=this.getCanvasViewBox();if(t){var e=this.getCanvasBBox(),n=(0,o.intersectRect)(e,t);this.set("isInView",n),n?this.set("cacheCanvasBBox",e):this.set("cacheCanvasBBox",null)}},e.prototype._afterDraw=function(){this.cacheCanvasBBox(),this.set("hasChanged",!1),this.set("refresh",null)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("isInView",null),this.set("hasChanged",!1)},e.prototype.drawPath=function(t){this.createPath(t),this.strokeAndFill(t),this.afterDrawPath(t)},e.prototype.fill=function(t){t.fill()},e.prototype.stroke=function(t){t.stroke()},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,r=e.opacity,i=e.strokeOpacity,a=e.fillOpacity;this.isFill()&&((0,o.isNil)(a)||1===a?this.fill(t):(t.globalAlpha=a,this.fill(t),t.globalAlpha=r)),this.isStroke()&&n>0&&((0,o.isNil)(i)||1===i||(t.globalAlpha=i),this.stroke(t)),this.afterDrawPath(t)},e.prototype.createPath=function(t){},e.prototype.afterDrawPath=function(t){},e.prototype.isInShape=function(t,e){var n=this.isStroke(),r=this.isFill(),i=this.getHitLineWidth();return this.isInStrokeOrPath(t,e,n,r,i)},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){return!1},e.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var t=this.attrs;return t.lineWidth+t.lineAppendWidth},e}(a.AbstractShape);e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.moveTo=e.sortDom=e.createDom=e.createSVGElement=void 0;var r=n(1),i=n(16);function a(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}e.createSVGElement=a,e.createDom=function(t){var e=i.SHAPE_TO_TAGS[t.type],n=t.getParent();if(!e)throw new Error("the type "+t.type+" is not supported by svg");var r=a(e);if(t.get("id")&&(r.id=t.get("id")),t.set("el",r),t.set("attrs",{}),n){var o=n.get("el");o||(o=n.createDom(),n.set("el",o)),o.appendChild(r)}return r},e.sortDom=function(t,e){var n=t.get("el"),i=(0,r.toArray)(n.children).sort(e),a=document.createDocumentFragment();i.forEach((function(t){a.appendChild(t)})),n.appendChild(a)},e.moveTo=function(t,e){var n=t.parentNode,r=Array.from(n.childNodes).filter((function(t){return 1===t.nodeType&&"defs"!==t.nodeName.toLowerCase()})),i=r[e],a=r.indexOf(t);if(i){if(a>e)n.insertBefore(t,i);else if(a<e){var o=r[e+1];o?n.insertBefore(t,o):n.appendChild(t)}}else n.appendChild(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.equals=e.toRadian=e.setMatrixArrayType=e.RANDOM=e.ARRAY_TYPE=e.EPSILON=void 0,e.EPSILON=1e-6,e.ARRAY_TYPE="undefined"!=typeof Float32Array?Float32Array:Array,e.RANDOM=Math.random,e.setMatrixArrayType=function(t){e.ARRAY_TYPE=t};var r=Math.PI/180;e.toRadian=function(t){return t*r},e.equals=function(t,n){return Math.abs(t-n)<=e.EPSILON*Math.max(1,Math.abs(t),Math.abs(n))},Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toPoints=e.getRegionBBox=e.BBox=void 0;var r=n(0),i=n(1),a=n(2),o=function(){function t(t,e,n,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),this.x=t,this.y=e,this.height=r,this.width=n}return t.fromRange=function(e,n,r,i){return new t(e,n,r-e,i-n)},t.fromObject=function(e){return new t(e.minX,e.minY,e.width,e.height)},Object.defineProperty(t.prototype,"minX",{get:function(){return this.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxX",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minY",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxY",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tl",{get:function(){return{x:this.x,y:this.y}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tr",{get:function(){return{x:this.maxX,y:this.y}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bl",{get:function(){return{x:this.x,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"br",{get:function(){return{x:this.maxX,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return{x:this.x+this.width/2,y:this.minY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return{x:this.maxX,y:this.y+this.height/2}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return{x:this.x+this.width/2,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){return{x:this.minX,y:this.y+this.height/2}},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(t){return this.x===t.x&&this.y===t.y&&this.width===t.width&&this.height===t.height},t.prototype.contains=function(t){return t.minX>=this.minX&&t.maxX<=this.maxX&&t.minY>=this.minY&&t.maxY<=this.maxY},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.add=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this.clone();return(0,i.each)(t,(function(t){n.x=Math.min(t.x,n.x),n.y=Math.min(t.y,n.y),n.width=Math.max(t.maxX,n.maxX)-n.x,n.height=Math.max(t.maxY,n.maxY)-n.y})),n},t.prototype.merge=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this.clone();return(0,i.each)(t,(function(t){n.x=Math.max(t.x,n.x),n.y=Math.max(t.y,n.y),n.width=Math.min(t.maxX,n.maxX)-n.x,n.height=Math.min(t.maxY,n.maxY)-n.y})),n},t.prototype.cut=function(e,n){var r=e.width,i=e.height;switch(n){case a.DIRECTION.TOP:case a.DIRECTION.TOP_LEFT:case a.DIRECTION.TOP_RIGHT:return t.fromRange(this.minX,this.minY+i,this.maxX,this.maxY);case a.DIRECTION.RIGHT:case a.DIRECTION.RIGHT_TOP:case a.DIRECTION.RIGHT_BOTTOM:return t.fromRange(this.minX,this.minY,this.maxX-r,this.maxY);case a.DIRECTION.BOTTOM:case a.DIRECTION.BOTTOM_LEFT:case a.DIRECTION.BOTTOM_RIGHT:return t.fromRange(this.minX,this.minY,this.maxX,this.maxY-i);case a.DIRECTION.LEFT:case a.DIRECTION.LEFT_TOP:case a.DIRECTION.LEFT_BOTTOM:return t.fromRange(this.minX+r,this.minY,this.maxX,this.maxY);default:return this}},t.prototype.shrink=function(e){var n=r.__read(e,4),i=n[0],a=n[1],o=n[2],s=n[3];return new t(this.x+s,this.y+i,this.width-s-a,this.height-i-o)},t.prototype.expand=function(e){var n=r.__read(e,4),i=n[0],a=n[1],o=n[2],s=n[3];return new t(this.x-s,this.y-i,this.width+s+a,this.height+i+o)},t.prototype.exceed=function(t){return[Math.max(-this.minY+t.minY,0),Math.max(this.maxX-t.maxX,0),Math.max(this.maxY-t.maxY,0),Math.max(-this.minX+t.minX,0)]},t.prototype.collide=function(t){return this.minX<t.maxX&&this.maxX>t.minX&&this.minY<t.maxY&&this.maxY>t.minY},t.prototype.size=function(){return this.width*this.height},t.prototype.isPointIn=function(t){return t.x>=this.minX&&t.x<=this.maxX&&t.y>=this.minY&&t.y<=this.maxY},t}();e.BBox=o;e.getRegionBBox=function(t,e){var n=e.start,r=e.end;return new o(t.x+t.width*n.x,t.y+t.height*n.y,t.width*Math.abs(r.x-n.x),t.height*Math.abs(r.y-n.y))},e.toPoints=function(t){return[[t.minX,t.minY],[t.maxX,t.minY],[t.maxX,t.maxY],[t.minX,t.maxY]]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(24));e.default=function(t){return(0,r.default)(t,"String")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(24));e.default=function(t){return(0,r.default)(t,"Number")}},function(t,e,n){"use strict";function r(t){return Math.min.apply(null,t)}function i(t){return Math.max.apply(null,t)}Object.defineProperty(e,"__esModule",{value:!0}),e.piMod=e.getBBoxRange=e.getBBoxByArray=e.isNumberEqual=e.distance=void 0,e.distance=function(t,e,n,r){var i=t-n,a=e-r;return Math.sqrt(i*i+a*a)},e.isNumberEqual=function(t,e){return Math.abs(t-e)<.001},e.getBBoxByArray=function(t,e){var n=r(t),a=r(e);return{x:n,y:a,width:i(t)-n,height:i(e)-a}},e.getBBoxRange=function(t,e,n,a){return{minX:r([t,n]),maxX:i([t,n]),minY:r([e,a]),maxY:i([e,a])}},e.piMod=function(t){return(t+2*Math.PI)%(2*Math.PI)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.applyTranslate=e.applyRotate=e.applyMatrix2BBox=e.getAngleByMatrix=e.getMatrixByTranslate=e.getMatrixByAngle=void 0;var r=n(8),i=[1,0,0,0,1,0,0,0,1];function a(t,e,n){return void 0===n&&(n=i),e?r.ext.transform(n,[["t",-t.x,-t.y],["r",e],["t",t.x,t.y]]):null}function o(t,e){return t.x||t.y?r.ext.transform(e||i,[["t",t.x,t.y]]):null}function s(t,e){var n=[0,0];return r.vec2.transformMat3(n,e,t),n}e.getMatrixByAngle=a,e.getMatrixByTranslate=o,e.getAngleByMatrix=function(t){var e=[0,0,0];return r.vec3.transformMat3(e,[1,0,0],t),Math.atan2(e[1],e[0])},e.applyMatrix2BBox=function(t,e){var n=s(t,[e.minX,e.minY]),r=s(t,[e.maxX,e.minY]),i=s(t,[e.minX,e.maxY]),a=s(t,[e.maxX,e.maxY]),o=Math.min(n[0],r[0],i[0],a[0]),l=Math.max(n[0],r[0],i[0],a[0]),u=Math.min(n[1],r[1],i[1],a[1]),c=Math.max(n[1],r[1],i[1],a[1]);return{x:o,y:u,minX:o,minY:u,maxX:l,maxY:c,width:l-o,height:c-u}},e.applyRotate=function(t,e,n,r){if(e){var i=a({x:n,y:r},e,t.getMatrix());t.setMatrix(i)}},e.applyTranslate=function(t,e,n){var r=o({x:e,y:n});t.attr("matrix",r)}},function(t,e,n){"use strict";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})(t)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),a=n(188),o=n(102),s=n(1),l=n(36),u=i.__importDefault(n(88)),c=n(2),f=n(25),h=i.__importDefault(n(115)),p=n(117),d=n(3),g=n(483),y=n(212),v=n(484),m=n(213),_=n(38),x=n(14),b=function(t){function e(e){var n=t.call(this,e)||this;n.type="base",n.attributes={},n.elements=[],n.elementsMap={},n.animateOption=!0,n.attributeOption={},n.lastElementsMap={},n.generatePoints=!1,n.beforeMappingData=null,n.adjusts={},n.idFields=[],n.hasSorted=!1,n.isCoordinateChanged=!1;var r=e.container,i=e.labelsContainer,a=e.coordinate,o=e.data,s=e.sortable,l=void 0!==s&&s,u=e.visible,c=void 0===u||u,f=e.theme,h=e.scales,p=void 0===h?{}:h,d=e.scaleDefs,g=void 0===d?{}:d,y=e.intervalPadding,v=e.dodgePadding,m=e.maxColumnWidth,_=e.minColumnWidth,x=e.columnWidthRatio,b=e.roseWidthRatio,M=e.multiplePieWidthRatio,C=e.zIndexReversed,P=e.sortZIndex,S=e.useDeferredLabel;return n.container=r,n.labelsContainer=i,n.coordinate=a,n.data=o,n.sortable=l,n.visible=c,n.userTheme=f,n.scales=p,n.scaleDefs=g,n.intervalPadding=y,n.dodgePadding=v,n.maxColumnWidth=m,n.minColumnWidth=_,n.columnWidthRatio=x,n.roseWidthRatio=b,n.multiplePieWidthRatio=M,n.zIndexReversed=C,n.sortZIndex=P,n.useDeferredLabel=S?"number"==typeof S?S:1/0:null,n}return i.__extends(e,t),e.prototype.position=function(t){var e=t;(0,s.isPlainObject)(t)||(e={fields:(0,v.parseFields)(t)});var n=(0,s.get)(e,"fields");return 1===n.length&&(n.unshift("1"),(0,s.set)(e,"fields",n)),(0,s.set)(this.attributeOption,"position",e),this},e.prototype.color=function(t,e){return this.createAttrOption("color",t,e),this},e.prototype.shape=function(t,e){return this.createAttrOption("shape",t,e),this},e.prototype.size=function(t,e){return this.createAttrOption("size",t,e),this},e.prototype.adjust=function(t){var e=t;return((0,s.isString)(t)||(0,s.isPlainObject)(t))&&(e=[t]),(0,s.each)(e,(function(t,n){(0,s.isObject)(t)||(e[n]={type:t})})),this.adjustOption=e,this},e.prototype.style=function(t,e){if((0,s.isString)(t)){var n=(0,v.parseFields)(t);this.styleOption={fields:n,callback:e}}else{var r=t,i=(n=r.fields,r.callback),a=r.cfg;this.styleOption=n||i||a?t:{cfg:t}}return this},e.prototype.tooltip=function(t,e){if((0,s.isString)(t)){var n=(0,v.parseFields)(t);this.tooltipOption={fields:n,callback:e}}else this.tooltipOption=t;return this},e.prototype.animate=function(t){return this.animateOption=t,this},e.prototype.label=function(t,e,n){if((0,s.isString)(t)){var r={},i=(0,v.parseFields)(t);r.fields=i,(0,s.isFunction)(e)?r.callback=e:(0,s.isPlainObject)(e)&&(r.cfg=e),n&&(r.cfg=n),this.labelOption=r}else this.labelOption=t;return this},e.prototype.state=function(t){return this.stateOption=t,this},e.prototype.customInfo=function(t){return this.customOption=t,this},e.prototype.init=function(t){void 0===t&&(t={}),this.setCfg(t),this.initAttributes(),this.processData(this.data),this.adjustScale()},e.prototype.update=function(t){void 0===t&&(t={});var e=t.data,n=t.isDataChanged,r=t.isCoordinateChanged,i=this.attributeOption,a=this.lastAttributeOption;(0,s.isEqual)(i,a)?!e||!n&&(0,s.isEqual)(e,this.data)?this.setCfg(t):(this.setCfg(t),this.initAttributes(),this.processData(e)):this.init(t),this.adjustScale(),this.isCoordinateChanged=r},e.prototype.paint=function(t){var e=this;void 0===t&&(t=!1),this.animateOption&&(this.animateOption=(0,s.deepMix)({},(0,l.getDefaultAnimateCfg)(this.type,this.coordinate),this.animateOption)),this.defaultSize=void 0,this.elementsMap={},this.elements=[],this.getOffscreenGroup().clear();var n=this.beforeMappingData,r=this.beforeMapping(n);this.dataArray=new Array(r.length);for(var a=0;a<r.length;a++){var o=r[a];this.dataArray[a]=this.mapping(o)}if(this.updateElements(this.dataArray,t),this.lastElementsMap=this.elementsMap,this.canDoGroupAnimation(t)){var u=this.container,c=this.type,f=this.coordinate,h=(0,s.get)(this.animateOption,"appear"),p=this.getYScale(),d=f.convert({x:0,y:p.scale(this.getYMinValue())});(0,l.doGroupAppearAnimate)(u,h,c,f,d)}if(this.labelOption){var g=this.useDeferredLabel,y=function(){return e.renderLabels((0,s.flatten)(e.dataArray),t)}.bind(this);if("number"==typeof g){var v="number"==typeof g&&g!==1/0?g:0;if(window.requestIdleCallback){var m=v&&v!==1/0?{timeout:v}:void 0;window.requestIdleCallback(y,m)}else setTimeout(y,v)}else y()}this.lastAttributeOption=i.__assign({},this.attributeOption),!1===this.visible&&this.changeVisible(!1)},e.prototype.clear=function(){var t=this.container,e=this.geometryLabel,n=this.offscreenGroup;t&&t.clear(),e&&e.clear(),n&&n.clear(),this.scaleDefs=void 0,this.attributes={},this.scales={},this.elementsMap={},this.lastElementsMap={},this.elements=[],this.adjusts={},this.dataArray=null,this.beforeMappingData=null,this.lastAttributeOption=void 0,this.defaultSize=void 0,this.idFields=[],this.groupScales=void 0,this.hasSorted=!1,this.isCoordinateChanged=!1},e.prototype.destroy=function(){this.clear(),this.container.remove(!0),this.offscreenGroup&&(this.offscreenGroup.remove(!0),this.offscreenGroup=null),this.geometryLabel&&(this.geometryLabel.destroy(),this.geometryLabel=null),this.theme=void 0,this.shapeFactory=void 0,t.prototype.destroy.call(this)},e.prototype.getGroupScales=function(){return this.groupScales},e.prototype.getAttribute=function(t){return this.attributes[t]},e.prototype.getXScale=function(){return this.getAttribute("position").scales[0]},e.prototype.getYScale=function(){return this.getAttribute("position").scales[1]},e.prototype.getGroupAttributes=function(){var t=[];return(0,s.each)(this.attributes,(function(e){c.GROUP_ATTRS.includes(e.type)&&t.push(e)})),t},e.prototype.getDefaultValue=function(t){var e,n=this.getAttribute(t);return n&&(0,s.isEmpty)(n.scales)&&(e=n.values[0]),e},e.prototype.getAttributeValues=function(t,e){for(var n=[],r=t.scales,a=0,o=r.length;a<o;a++){var s=r[a],l=s.field;s.isIdentity?n.push(s.values):n.push(e[l])}return t.mapping.apply(t,i.__spreadArray([],i.__read(n),!1))},e.prototype.getAdjust=function(t){return this.adjusts[t]},e.prototype.getCoordinate=function(){return this.coordinate},e.prototype.getData=function(){return this.data},e.prototype.getShapeMarker=function(t,e){return this.getShapeFactory().getMarker(t,e)},e.prototype.getElementsBy=function(t){return this.elements.filter((function(e){return t(e)}))},e.prototype.getElements=function(){return this.elements},e.prototype.getElementId=function(t){var e=(t=(0,s.isArray)(t)?t[0]:t)[c.FIELD_ORIGIN];if(this.idFields.length){for(var n=e[this.idFields[0]],r=1;r<this.idFields.length;r++)n+="-"+e[this.idFields[r]];return n}var i,a,o=this.type,l=this.getXScale(),u=this.getYScale(),f=l.field||"x",h=e[u.field||"y"];i="identity"===l.type?l.values[0]:e[f],a="interval"===o||"schema"===o?"".concat(i):"line"===o||"area"===o||"path"===o?o:"".concat(i,"-").concat(h);for(var p=this.groupScales,d=(r=0,p.length);r<d;r++){var g=p[r].field;a="".concat(a,"-").concat(e[g])}var y=this.getAdjust("dodge");if(y){var v=y.dodgeBy;v&&(a="".concat(a,"-").concat(e[v]))}return this.getAdjust("jitter")&&(a="".concat(a,"-").concat(t.x,"-").concat(t.y)),a},e.prototype.getScaleFields=function(){var t=[],e=new Map,n=this.attributeOption,r=this.labelOption,i=this.tooltipOption;for(var a in n)if(n.hasOwnProperty(a)){var o=n[a];o.fields?(0,f.uniq)(o.fields,t,e):o.values&&(0,f.uniq)(o.values,t,e)}return r&&r.fields&&(0,f.uniq)(r.fields,t,e),(0,s.isObject)(i)&&i.fields&&(0,f.uniq)(i.fields,t,e),t},e.prototype.changeVisible=function(e){t.prototype.changeVisible.call(this,e);for(var n=this.elements,r=0,i=n.length;r<i;r++){n[r].changeVisible(e)}e?(this.container&&this.container.show(),this.labelsContainer&&this.labelsContainer.show()):(this.container&&this.container.hide(),this.labelsContainer&&this.labelsContainer.hide())},e.prototype.getFields=function(){var t=new Map,e=[];return Object.values(this.attributeOption).forEach((function(n){((null==n?void 0:n.fields)||[]).forEach((function(n){t.has(n)||e.push(n),t.set(n,!0)}))}),[]),e},e.prototype.getGroupFields=function(){for(var t=[],e=new Map,n=0,r=c.GROUP_ATTRS.length;n<r;n++){var i=c.GROUP_ATTRS[n],a=this.attributeOption[i];a&&a.fields&&(0,f.uniq)(a.fields,t,e)}return t},e.prototype.getXYFields=function(){var t=i.__read(this.attributeOption.position.fields,2);return[t[0],t[1]]},e.prototype.getXField=function(){return(0,s.get)(this.getXYFields(),[0])},e.prototype.getYField=function(){return(0,s.get)(this.getXYFields(),[1])},e.prototype.getShapes=function(){return this.elements.map((function(t){return t.shape}))},e.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var t=this.container.getGroupBase();this.offscreenGroup=new t({})}return this.offscreenGroup},e.prototype.sort=function(t){if(!this.hasSorted)for(var e=this.getXScale(),n=e.field,r=0;r<t.length;r++){t[r].sort((function(t,r){return e.translate(t[c.FIELD_ORIGIN][n])-e.translate(r[c.FIELD_ORIGIN][n])}))}this.hasSorted=!0},e.prototype.adjustScale=function(){var t=this.getYScale();t&&this.getAdjust("stack")&&this.updateStackRange(t,this.beforeMappingData)},e.prototype.getShapeFactory=function(){var t=this.shapeType;if((0,d.getShapeFactory)(t))return this.shapeFactory||(this.shapeFactory=(0,s.clone)((0,d.getShapeFactory)(t))),this.shapeFactory.coordinate=this.coordinate,this.shapeFactory.theme=this.theme.geometries[t]||{},this.shapeFactory},e.prototype.createShapePointsCfg=function(t){var e=this.getXScale(),n=this.getYScale();return{x:this.normalizeValues(t[e.field],e),y:n?this.normalizeValues(t[n.field],n):t.y?t.y:.1,y0:n?n.scale(this.getYMinValue()):void 0}},e.prototype.createElement=function(t,e,n){void 0===n&&(n=!1);var r=this.container,i=this.getDrawCfg(t),a=this.getShapeFactory(),o=new h.default({shapeFactory:a,container:r,offscreenGroup:this.getOffscreenGroup(),elementIndex:e});return o.animate=this.animateOption,o.geometry=this,o.draw(i,n),o},e.prototype.getDrawCfg=function(t){var e=t[c.FIELD_ORIGIN],n={mappingData:t,data:e,x:t.x,y:t.y,color:t.color,size:t.size,isInCircle:this.coordinate.isPolar,customInfo:this.customOption},r=t.shape;!r&&this.getShapeFactory()&&(r=this.getShapeFactory().defaultShapeType),n.shape=r;var i=this.theme.geometries[this.shapeType];n.defaultStyle=(0,s.get)(i,[r,"default"],{}).style,!n.defaultStyle&&this.getShapeFactory()&&(n.defaultStyle=this.getShapeFactory().getDefaultStyle(i));var a=this.styleOption;return a&&(n.style=this.getStyleCfg(a,e)),this.generatePoints&&(n.points=t.points,n.nextPoints=t.nextPoints),n},e.prototype.updateElements=function(t,e){var n,r,a,o,s,l;void 0===e&&(e=!1);for(var u=new Map,c=[],f=new Map,h=0,p=0;p<t.length;p++)for(var d=t[p],g=0;g<d.length;g++){var v=d[g],_=this.getElementId(v),x=u.has(_)?"".concat(_,"-").concat(p,"-").concat(g):_;c.push(x),u.set(x,v),f.set(x,h),h++}this.elements=new Array(h);var b=(0,m.diff)(this.lastElementsMap,c),M=b.added,C=b.updated,P=b.removed;try{for(var S=i.__values(M),O=S.next();!O.done;O=S.next()){_=O.value,v=u.get(_),p=f.get(_);var w=this.createElement(v,p,e);this.elements[p]=w,this.elementsMap[_]=w,w.shape&&w.shape.set("zIndex",this.zIndexReversed?this.elements.length-p:p)}}catch(t){n={error:t}}finally{try{O&&!O.done&&(r=S.return)&&r.call(S)}finally{if(n)throw n.error}}try{for(var A=i.__values(C),T=A.next();!T.done;T=A.next()){_=T.value,w=this.lastElementsMap[_],v=u.get(_);var E=this.getDrawCfg(v),I=w.getModel();p=f.get(_);(this.isCoordinateChanged||(0,y.isModelChange)(E,I))&&(w.animate=this.animateOption,w.update(E)),this.elements[p]=w,this.elementsMap[_]=w,w.shape&&w.shape.set("zIndex",this.zIndexReversed?this.elements.length-p:p)}}catch(t){a={error:t}}finally{try{T&&!T.done&&(o=A.return)&&o.call(A)}finally{if(a)throw a.error}}this.container&&this.container.sort();try{for(var L=i.__values(P),D=L.next();!D.done;D=L.next()){_=D.value;(w=this.lastElementsMap[_]).animate=this.animateOption,w.destroy()}}catch(t){s={error:t}}finally{try{D&&!D.done&&(l=L.return)&&l.call(L)}finally{if(s)throw s.error}}},e.prototype.getLabelType=function(){var t=this.labelOption,e=this.coordinate,n=this.type,r=e.type,i=e.isTransposed,a=(0,s.get)(t,["cfg","type"]);return a||(a="polar"===r?i?"pie":"polar":"theta"===r?"pie":"interval"===n||"polygon"===n?"interval":"base"),a},e.prototype.getYMinValue=function(){var t=this.getYScale(),e=t.min,n=t.max;return e>=0?e:n<=0?n:0},e.prototype.createAttrOption=function(t,e,n){if((0,s.isNil)(e)||(0,s.isObject)(e))(0,s.isObject)(e)&&(0,s.isEqual)(Object.keys(e),["values"])?(0,s.set)(this.attributeOption,t,{fields:e.values}):(0,s.set)(this.attributeOption,t,e);else{var r={};(0,s.isNumber)(e)?r.values=[e]:r.fields=(0,v.parseFields)(e),n&&((0,s.isFunction)(n)?r.callback=n:r.values=n),(0,s.set)(this.attributeOption,t,r)}},e.prototype.initAttributes=function(){var t=this,e=this.attributes,n=this.attributeOption,a=this.theme,l=this.shapeType;this.groupScales=[];var u={},f=function(r){if(n.hasOwnProperty(r)){var f=n[r];if(!f)return{value:void 0};var h=i.__assign({},f),p=h.callback,d=h.values,g=h.fields,y=(void 0===g?[]:g).map((function(e){var n=t.scales[e];!u[e]&&c.GROUP_ATTRS.includes(r)&&("cat"===(0,_.inferScaleType)(n,(0,s.get)(t.scaleDefs,e),r,t.type)&&(t.groupScales.push(n),u[e]=!0));return n}));h.scales=y,"position"!==r&&1===y.length&&"identity"===y[0].type?h.values=y[0].values:p||d||("size"===r?h.values=a.sizes:"shape"===r?h.values=a.shapes[l]||[]:"color"===r&&(y.length?h.values=y[0].values.length<=10?a.colors10:a.colors20:h.values=a.colors10));var v=(0,o.getAttribute)(r);e[r]=new v(h)}};for(var h in n){var p=f(h);if("object"===r(p))return p.value}},e.prototype.processData=function(t){var e,n;this.hasSorted=!1;for(var r=this.getAttribute("position").scales.filter((function(t){return t.isCategory})),a=this.groupData(t),o=[],s=0,l=a.length;s<l;s++){for(var u=a[s],f=[],h=0,p=u.length;h<p;h++){var d=u[h],g={};for(var y in d)g[y]=d[y];g[c.FIELD_ORIGIN]=d;try{for(var v=(e=void 0,i.__values(r)),m=v.next();!m.done;m=v.next()){var _=m.value,x=_.field;g[x]=_.translate(g[x])}}catch(t){e={error:t}}finally{try{m&&!m.done&&(n=v.return)&&n.call(v)}finally{if(e)throw e.error}}f.push(g)}o.push(f)}var b=this.adjustData(o);return this.beforeMappingData=b,b},e.prototype.adjustData=function(t){var e=this.adjustOption,n=this.intervalPadding,r=this.dodgePadding,o=this.theme,l=this.maxColumnWidth||o.maxColumnWidth,u=this.minColumnWidth||o.minColumnWidth,c=this.columnWidthRatio||o.columnWidthRatio,f=t;if(e){var h=this.getXScale(),p=this.getYScale(),d=h.field,g=p?p.field:null,y=(0,x.getXDimensionLength)(this.coordinate),v=h.values.length,m=this.getAttribute("size"),_=void 0;m&&(_=m.values[0]);for(var b=0,M=e.length;b<M;b++){var C=e[b],P=i.__assign({xField:d,yField:g,intervalPadding:n,dodgePadding:r,xDimensionLength:y,groupNum:v,defaultSize:_,maxColumnWidth:l,minColumnWidth:u,columnWidthRatio:c},C),S=C.type;if("dodge"===S){var O=[];if(h.isCategory||"identity"===h.type)O.push("x");else{if(p)throw new Error("dodge is not support linear attribute, please use category attribute!");O.push("y")}P.adjustNames=O,P.dodgeRatio=c}else if("stack"===S){var w=this.coordinate;if(!p){P.height=w.getHeight();var A=this.getDefaultValue("size")||3;P.size=A}!w.isTransposed&&(0,s.isNil)(P.reverseOrder)&&(P.reverseOrder=!0)}var T=(0,a.getAdjust)(S);P.dimValuesMap={},h&&h.values&&(P.dimValuesMap[h.field]=h.values.map((function(t){return h.translate(t)})));var E=new T(P);f=E.process(f),this.adjusts[S]=E}}return f},e.prototype.groupData=function(t){for(var e=this.getGroupScales(),n=this.scaleDefs,r={},i=[],a=0;a<e.length;a++){var o=e[a].field;i.push(o),(0,s.get)(n,[o,"values"])&&(r[o]=n[o].values)}return(0,g.group)(t,i,r)},e.prototype.updateStackRange=function(t,e){for(var n=(0,s.flatten)(e),r=t.field,i=t.min,a=t.max,o=0;o<n.length;o++){var l=n[o],u=Math.min.apply(null,l[r]),c=Math.max.apply(null,l[r]);u<i&&(i=u),c>a&&(a=c)}var f=this.scaleDefs,h={};i<t.min&&!(0,s.get)(f,[r,"min"])&&(h.min=i),a>t.max&&!(0,s.get)(f,[r,"max"])&&(h.max=a),t.change(h)},e.prototype.beforeMapping=function(t){var e=t;if(this.sortable&&this.sort(e),this.generatePoints)for(var n=0,r=e.length;n<r;n++){var i=e[n];this.generateShapePoints(i);var a=e[n+1];a&&(this.generateShapePoints(a),i[0].nextPoints=a[0].points)}return e},e.prototype.generateShapePoints=function(t){for(var e=this.getShapeFactory(),n=this.getAttribute("shape"),r=0;r<t.length;r++){var i=t[r],a=this.createShapePointsCfg(i),o=n?this.getAttributeValues(n,i):null,s=e.getShapePoints(o,a);i.points=s}},e.prototype.normalizeValues=function(t,e){var n=[];if((0,s.isArray)(t))for(var r=0;r<t.length;r++){var i=t[r];n.push(e.scale(i))}else n=e.scale(t);return n},e.prototype.mapping=function(t){for(var e=this.attributes,n=[],r=0;r<t.length;r++){var i=t[r],a={_origin:i[c.FIELD_ORIGIN],points:i.points,nextPoints:i.nextPoints};for(var o in e)if(e.hasOwnProperty(o)){var l=e[o],u=l.names,f=this.getAttributeValues(l,i);if(u.length>1)for(var h=0;h<f.length;h+=1){var p=f[h];a[u[h]]=(0,s.isArray)(p)&&1===p.length?p[0]:p}else a[u[0]]=1===f.length?f[0]:f}this.convertPoint(a),n.push(a)}return n},e.prototype.convertPoint=function(t){var e,n,r,i=t.x,a=t.y,o=this.coordinate;if((0,s.isArray)(i)&&(0,s.isArray)(a)){e=[],n=[];for(var l=0,u=0,c=i.length,f=a.length;l<c&&u<f;l+=1,u+=1)r=o.convert({x:i[l],y:a[u]}),e.push(r.x),n.push(r.y)}else if((0,s.isArray)(a)){n=[];for(var h=0;h<a.length;h++){var p=a[h];r=o.convert({x:i,y:p}),e&&e!==r.x?((0,s.isArray)(e)||(e=[e]),e.push(r.x)):e=r.x,n.push(r.y)}}else if((0,s.isArray)(i)){e=[];for(h=0;h<i.length;h++){var d=i[h];r=o.convert({x:d,y:a}),n&&n!==r.y?((0,s.isArray)(n)||(n=[n]),n.push(r.y)):n=r.y,e.push(r.x)}}else{var g=o.convert({x:i,y:a});e=g.x,n=g.y}t.x=e,t.y=n},e.prototype.getStyleCfg=function(t,e){var n=t.fields,r=void 0===n?[]:n,a=t.callback,o=t.cfg;if(o)return o;var s=r.map((function(t){return e[t]}));return a.apply(void 0,i.__spreadArray([],i.__read(s),!1))},e.prototype.setCfg=function(t){var e=this,n=t.coordinate,r=t.data,i=t.theme,a=t.scaleDefs;n&&(this.coordinate=n),r&&(this.data=r),a&&(this.scaleDefs=a,this.idFields=[],(0,s.each)(a,(function(t,n){t&&t.key&&e.idFields.push(n)}))),i&&(this.theme=this.userTheme?(0,s.deepMix)({},i,this.userTheme):i)},e.prototype.renderLabels=function(t,e){return void 0===e&&(e=!1),i.__awaiter(this,void 0,void 0,(function(){var n,r,a,o,l,u,f,h,d,g,y,v,m=this;return i.__generator(this,(function(_){switch(_.label){case 0:return n=this.geometryLabel,this.emit(c.GEOMETRY_LIFE_CIRCLE.BEFORE_RENDER_LABEL),n||(r=this.getLabelType(),a=(0,p.getGeometryLabel)(r),n=new a(this),this.geometryLabel=n),[4,n.render(t,e)];case 1:_.sent(),o=n.labelsRenderer.shapesMap,l=new Map,(0,s.each)(o,(function(t,e){for(var n=t.getChildren()||[],r=0;r<n.length;r++){var i=n[r],a=m.elementsMap[i.get("elementId")||e.split(" ")[0]];if(a){i.cfg.name=["element","label"],i.cfg.element=a;var o=l.get(a)||new Set;o.add(t),l.set(a,o)}}}));try{for(u=i.__values(l.entries()),f=u.next();!f.done;f=u.next())h=i.__read(f.value,2),d=h[0],g=h[1],d.labelShape=i.__spreadArray([],i.__read(g),!1)}catch(t){y={error:t}}finally{try{f&&!f.done&&(v=u.return)&&v.call(u)}finally{if(y)throw y.error}}return this.emit(c.GEOMETRY_LIFE_CIRCLE.AFTER_RENDER_LABEL),[2]}}))}))},e.prototype.canDoGroupAnimation=function(t){return!t&&this.animateOption&&(void 0===(0,s.get)(this.animateOption,"appear")||(0,s.get)(this.animateOption,"appear")&&void 0===(0,s.get)(this.animateOption,["appear","animation"]))},e}(u.default);e.default=b},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){return null==t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.doGroupAppearAnimate=e.doAnimate=e.getDefaultAnimateCfg=e.DEFAULT_ANIMATE_CFG=void 0;var r=n(0),i=n(1),a=n(2),o=n(211);e.DEFAULT_ANIMATE_CFG={appear:{duration:450,easing:"easeQuadOut"},update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}};var s={interval:function(t){return{enter:{animation:t.isRect?t.isTransposed?"scale-in-x":"scale-in-y":"fade-in"},update:{animation:t.isPolar&&t.isTransposed?"sector-path-update":null},leave:{animation:"fade-out"}}},line:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},path:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},point:{appear:{animation:"zoom-in"},enter:{animation:"zoom-in"},leave:{animation:"zoom-out"}},area:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},polygon:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},schema:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},edge:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},label:{appear:{animation:"fade-in",delay:450},enter:{animation:"fade-in"},update:{animation:"position-update"},leave:{animation:"fade-out"}}},l={line:function(){return{animation:"wave-in"}},area:function(){return{animation:"wave-in"}},path:function(){return{animation:"fade-in"}},interval:function(t){var e;return t.isRect?e=t.isTransposed?"grow-in-x":"grow-in-y":(e="grow-in-xy",t.isPolar&&t.isTransposed&&(e="wave-in")),{animation:e}},schema:function(t){return{animation:t.isRect?t.isTransposed?"grow-in-x":"grow-in-y":"grow-in-xy"}},polygon:function(){return{animation:"fade-in",duration:500}},edge:function(){return{animation:"fade-in"}}};e.getDefaultAnimateCfg=function(t,n,r){var a=s[t];return a&&((0,i.isFunction)(a)&&(a=a(n)),a=(0,i.deepMix)({},e.DEFAULT_ANIMATE_CFG,a),r)?a[r]:a},e.doAnimate=function(t,e,n){var r=(0,i.get)(t.get("origin"),"data",a.FIELD_ORIGIN),s=e.animation,l=function(t,e){return{delay:(0,i.isFunction)(t.delay)?t.delay(e):t.delay,easing:(0,i.isFunction)(t.easing)?t.easing(e):t.easing,duration:(0,i.isFunction)(t.duration)?t.duration(e):t.duration,callback:t.callback,repeat:t.repeat}}(e,r);if(s){var u=(0,o.getAnimation)(s);u&&u(t,l,n)}else t.animate(n.toAttrs,l)},e.doGroupAppearAnimate=function(t,n,a,s,u){if(l[a]){var c=l[a](s),f=(0,o.getAnimation)((0,i.get)(c,"animation",""));if(f){var h=r.__assign(r.__assign(r.__assign({},e.DEFAULT_ANIMATE_CFG.appear),c),n);t.stopAnimate(),f(t,h,{coordinate:s,minYPoint:u,toAttrs:null})}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Facet=void 0;var r=n(0),i=n(1),a=n(2),o=n(90),s=function(){function t(t,e){this.destroyed=!1,this.facets=[],this.view=t,this.cfg=(0,i.deepMix)({},this.getDefaultCfg(),e)}return t.prototype.init=function(){this.container||(this.container=this.createContainer());var t=this.view.getData();this.facets=this.generateFacets(t)},t.prototype.render=function(){this.renderViews()},t.prototype.update=function(){},t.prototype.clear=function(){this.clearFacetViews()},t.prototype.destroy=function(){this.clear(),this.container&&(this.container.remove(!0),this.container=void 0),this.destroyed=!0,this.view=void 0,this.facets=[]},t.prototype.facetToView=function(t){var e=t.region,n=t.data,r=t.padding,i=void 0===r?this.cfg.padding:r,a=this.view.createView({region:e,padding:i});a.data(n||[]),t.view=a,this.beforeEachView(a,t);var o=this.cfg.eachView;return o&&o(a,t),this.afterEachView(a,t),a},t.prototype.createContainer=function(){return this.view.getLayer(a.LAYER.FORE).addGroup()},t.prototype.renderViews=function(){this.createFacetViews()},t.prototype.createFacetViews=function(){var t=this;return this.facets.map((function(e){return t.facetToView(e)}))},t.prototype.clearFacetViews=function(){var t=this;(0,i.each)(this.facets,(function(e){e.view&&(t.view.removeView(e.view),e.view=void 0)}))},t.prototype.parseSpacing=function(){var t=this.view.viewBBox,e=t.width,n=t.height;return this.cfg.spacing.map((function(t,r){return(0,i.isNumber)(t)?t/(0===r?e:n):parseFloat(t)/100}))},t.prototype.getFieldValues=function(t,e){var n=[],r={};return(0,i.each)(t,(function(t){var a=t[e];(0,i.isNil)(a)||r[a]||(n.push(a),r[a]=!0)})),n},t.prototype.getRegion=function(t,e,n,i){var a=r.__read(this.parseSpacing(),2),o=a[0],s=a[1],l=(1+o)/(0===e?1:e)-o,u=(1+s)/(0===t?1:t)-s,c={x:(l+o)*n,y:(u+s)*i};return{start:c,end:{x:c.x+l,y:c.y+u}}},t.prototype.getDefaultCfg=function(){return{eachView:void 0,showTitle:!0,spacing:[0,0],padding:10,fields:[]}},t.prototype.getDefaultTitleCfg=function(){return{style:{fontSize:14,fill:"#666",fontFamily:this.view.getTheme().fontFamily}}},t.prototype.processAxis=function(t,e){var n=t.getOptions(),a=n.coordinate,s=t.geometries;if("rect"===(0,i.get)(a,"type","rect")&&s.length){(0,i.isNil)(n.axes)&&(n.axes={});var l=n.axes,u=r.__read(s[0].getXYFields(),2),c=u[0],f=u[1],h=(0,o.getAxisOption)(l,c),p=(0,o.getAxisOption)(l,f);!1!==h&&(n.axes[c]=this.getXAxisOption(c,l,h,e)),!1!==p&&(n.axes[f]=this.getYAxisOption(f,l,p,e))}},t.prototype.getFacetDataFilter=function(t){return function(e){return(0,i.every)(t,(function(t){var n=t.field,r=t.value;return!(!(0,i.isNil)(r)&&n)||e[n]===r}))}},t}();e.Facet=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getMaxScale=e.getDefaultCategoryScaleRange=e.getName=e.syncScale=e.createScaleByField=e.inferScaleType=void 0;var r=n(0),i=n(1),a=n(2),o=n(19),s=n(14),l=/^(?:(?!0000)[0-9]{4}([-/.]+)(?:(?:0?[1-9]|1[0-2])\1(?:0?[1-9]|1[0-9]|2[0-8])|(?:0?[13-9]|1[0-2])\1(?:29|30)|(?:0?[13578]|1[02])\1(?:31))|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)([-/.]+)0?2\2(?:29))(\s+([01]|([01][0-9]|2[0-3])):([0-9]|[0-5][0-9]):([0-9]|[0-5][0-9]))?$/;e.inferScaleType=function(t,e,n,r){return void 0===e&&(e={}),e.type?e.type:"identity"!==t.type&&a.GROUP_ATTRS.includes(n)&&["interval"].includes(r)||t.isCategory?"cat":t.type},e.createScaleByField=function(t,e,n){var a=e||[];if((0,i.isNumber)(t)||(0,i.isNil)((0,i.firstValue)(a,t))&&(0,i.isEmpty)(n))return new((0,o.getScale)("identity"))({field:t.toString(),values:[t]});var s=(0,i.valuesOfKey)(a,t),u=(0,i.get)(n,"type",function(t){var e="linear";return l.test(t)?e="timeCat":(0,i.isString)(t)&&(e="cat"),e}(s[0]));return new((0,o.getScale)(u))(r.__assign({field:t,values:s},n))},e.syncScale=function(t,e){if("identity"!==t.type&&"identity"!==e.type){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);t.change(n)}},e.getName=function(t){return t.alias||t.field},e.getDefaultCategoryScaleRange=function(t,e,n){var r,a=t.values.length;if(1===a)r=[.5,1];else{var o=0;r=(0,s.isFullCircle)(e)?e.isTransposed?[(o=1/a*(0,i.get)(n,"widthRatio.multiplePie",1/1.3))/2,1-o/2]:[0,1-1/a]:[o=1/a/2,1-o]}return r},e.getMaxScale=function(t){var e=t.values.filter((function(t){return!(0,i.isNil)(t)&&!isNaN(t)}));return Math.max.apply(Math,r.__spreadArray(r.__spreadArray([],r.__read(e),!1),[(0,i.isNil)(t.max)?-1/0:t.max],!1))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isAllowCapture=e.isParent=e.upperFirst=e.each=e.mix=e.isArray=e.isObject=e.isString=e.isFunction=e.isNil=e.isBrowser=e.removeFromArray=void 0,e.removeFromArray=function(t,e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)},e.isBrowser="undefined"!=typeof window&&void 0!==window.document;var r=n(1);Object.defineProperty(e,"isNil",{enumerable:!0,get:function(){return r.isNil}}),Object.defineProperty(e,"isFunction",{enumerable:!0,get:function(){return r.isFunction}}),Object.defineProperty(e,"isString",{enumerable:!0,get:function(){return r.isString}}),Object.defineProperty(e,"isObject",{enumerable:!0,get:function(){return r.isObject}}),Object.defineProperty(e,"isArray",{enumerable:!0,get:function(){return r.isArray}}),Object.defineProperty(e,"mix",{enumerable:!0,get:function(){return r.mix}}),Object.defineProperty(e,"each",{enumerable:!0,get:function(){return r.each}}),Object.defineProperty(e,"upperFirst",{enumerable:!0,get:function(){return r.upperFirst}}),e.isParent=function(t,e){if(t.isCanvas())return!0;for(var n=e.getParent(),r=!1;n;){if(n===t){r=!0;break}n=n.getParent()}return r},e.isAllowCapture=function(t){return t.cfg.visible&&t.cfg.capture}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=function(t,e){return(0,r.isString)(e)?e:t.invert(t.scale(e))},a=function(){function t(t){this.names=[],this.scales=[],this.linear=!1,this.values=[],this.callback=function(){return[]},this._parseCfg(t)}return t.prototype.mapping=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e.map((function(e,n){return t._toOriginParam(e,t.scales[n])}));return this.callback.apply(this,r)},t.prototype.getLinearValue=function(t){var e=this.values.length-1,n=Math.floor(e*t),r=e*t-n,i=this.values[n];return i+((n===e?i:this.values[n+1])-i)*r},t.prototype.getNames=function(){for(var t=this.scales,e=this.names,n=Math.min(t.length,e.length),r=[],i=0;i<n;i+=1)r.push(e[i]);return r},t.prototype.getFields=function(){return this.scales.map((function(t){return t.field}))},t.prototype.getScale=function(t){return this.scales[this.names.indexOf(t)]},t.prototype.defaultCallback=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 0===e.length?this.values:e.map((function(e,n){var r=t.scales[n];return"identity"===r.type?r.values[0]:t._getAttributeValue(r,e)}))},t.prototype._parseCfg=function(t){var e=this,n=t.type,i=void 0===n?"base":n,a=t.names,o=void 0===a?[]:a,s=t.scales,l=void 0===s?[]:s,u=t.values,c=void 0===u?[]:u,f=t.callback;this.type=i,this.scales=l,this.values=c,this.names=o,this.callback=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(f){var i=f.apply(void 0,t);if(!(0,r.isNil)(i))return[i]}return e.defaultCallback.apply(e,t)}},t.prototype._getAttributeValue=function(t,e){if(t.isCategory&&!this.linear){var n=t.translate(e);return this.values[n%this.values.length]}var r=t.scale(e);return this.getLinearValue(r)},t.prototype._toOriginParam=function(t,e){return e.isLinear?t:(0,r.isArray)(t)?t.map((function(t){return i(e,t)})):i(e,t)},t}();e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TOOLTIP_CSS_CONST=e.propagationDelegate=e.Scrollbar=e.Slider=e.Crosshair=e.Tooltip=e.Legend=e.Grid=e.Annotation=e.Axis=e.HtmlComponent=e.GroupComponent=e.Component=void 0;var r=n(0),i=r.__importStar(n(429));e.Annotation=i;var a=r.__importStar(n(441));e.Axis=a;var o=r.__importStar(n(447));e.Crosshair=o;var s=r.__importStar(n(452));e.Grid=s;var l=r.__importStar(n(455));e.Legend=l;var u=r.__importStar(n(458));e.Tooltip=u;var c=n(106);Object.defineProperty(e,"Component",{enumerable:!0,get:function(){return r.__importDefault(c).default}});var f=n(9);Object.defineProperty(e,"GroupComponent",{enumerable:!0,get:function(){return r.__importDefault(f).default}});var h=n(76);Object.defineProperty(e,"HtmlComponent",{enumerable:!0,get:function(){return r.__importDefault(h).default}});var p=n(462);Object.defineProperty(e,"Slider",{enumerable:!0,get:function(){return p.Slider}});var d=n(469);Object.defineProperty(e,"Scrollbar",{enumerable:!0,get:function(){return d.Scrollbar}}),r.__exportStar(n(471),e),r.__exportStar(n(472),e);var g=n(199);Object.defineProperty(e,"propagationDelegate",{enumerable:!0,get:function(){return g.propagationDelegate}});var y=r.__importStar(n(111));e.TOOLTIP_CSS_CONST=y},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Controller=void 0;var r=n(1),i=function(){function t(t){this.visible=!0,this.components=[],this.view=t}return t.prototype.clear=function(t){(0,r.each)(this.components,(function(t){t.component.destroy()})),this.components=[]},t.prototype.destroy=function(){this.clear()},t.prototype.getComponents=function(){return this.components},t.prototype.changeVisible=function(t){this.visible!==t&&(this.components.forEach((function(e){t?e.component.show():e.component.hide()})),this.visible=t)},t}();e.Controller=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getSmoothViolinPath=e.getViolinPath=e.getPathPoints=void 0;var r=n(1),i=n(52);function a(t){return!t&&(null==t||isNaN(t))}function o(t){if((0,r.isArray)(t))return a(t[1].y);var e=t.y;return(0,r.isArray)(e)?a(e[0]):a(e)}e.getPathPoints=function(t,e,n){if(void 0===e&&(e=!1),void 0===n&&(n=!0),!t.length||1===t.length&&!n)return[];if(e){for(var r=[],i=0,a=t.length;i<a;i++){o(u=t[i])||r.push(u)}return[r]}var s=[],l=[];for(i=0,a=t.length;i<a;i++){var u;o(u=t[i])?l.length&&((1!==l.length||n)&&s.push(l),l=[]):l.push(u)}return l.length&&s.push(l),s},e.getViolinPath=function(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(r){var i=0===n?"M":"L";e.push([i,r.x,r.y])}}var a=t[0];return a&&(e.push(["L",a.x,a.y]),e.push(["z"])),e},e.getSmoothViolinPath=function(t){for(var e=t.length/2,n=[],r=[],a=0;a<t.length;a++)a<e?n.push(t[a]):r.push(t[a]);var o=(0,i.getSplinePath)(n,!1),s=(0,i.getSplinePath)(r,!1);r.length&&o.push(["L",r[0].x,r[0].y]),s.shift();var l=o.concat(s);return n.length&&l.push(["L",n[0].x,n[0].y]),l.push(["z"]),l}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=r.__importDefault(n(11)),o=n(4),s=n(4),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="",e.ignoreItemStates=[],e}return r.__extends(e,t),e.prototype.getTriggerListInfo=function(){var t=(0,s.getDelegationObject)(this.context),e=null;return(0,s.isList)(t)&&(e={item:t.item,list:t.component}),e},e.prototype.getAllowComponents=function(){var t=this,e=this.context.view,n=(0,o.getComponents)(e),r=[];return(0,i.each)(n,(function(e){e.isList()&&t.allowSetStateByElement(e)&&r.push(e)})),r},e.prototype.hasState=function(t,e){return t.hasState(e,this.stateName)},e.prototype.clearAllComponentsState=function(){var t=this,e=this.getAllowComponents();(0,i.each)(e,(function(e){e.clearItemsState(t.stateName)}))},e.prototype.allowSetStateByElement=function(t){var e=t.get("field");if(!e)return!1;if(this.cfg&&this.cfg.componentNames){var n=t.get("name");if(-1===this.cfg.componentNames.indexOf(n))return!1}var r=this.context.view,i=(0,s.getScaleByField)(r,e);return i&&i.isCategory},e.prototype.allowSetStateByItem=function(t,e){var n=this.ignoreItemStates;return!n.length||0===n.filter((function(n){return e.hasState(t,n)})).length},e.prototype.setStateByElement=function(t,e,n){var r=t.get("field"),i=this.context.view,a=(0,s.getScaleByField)(i,r),o=(0,s.getElementValue)(e,r),l=a.getText(o);this.setItemsState(t,l,n)},e.prototype.setStateEnable=function(t){var e=this,n=(0,s.getCurrentElement)(this.context);if(n){var r=this.getAllowComponents();(0,i.each)(r,(function(r){e.setStateByElement(r,n,t)}))}else{var a=(0,s.getDelegationObject)(this.context);if((0,s.isList)(a)){var o=a.item,l=a.component;this.allowSetStateByElement(l)&&this.allowSetStateByItem(o,l)&&this.setItemState(l,o,t)}}},e.prototype.setItemsState=function(t,e,n){var r=this,a=t.getItems();(0,i.each)(a,(function(i){i.name===e&&r.setItemState(t,i,n)}))},e.prototype.setItemState=function(t,e,n){t.setItemState(e,this.stateName,n)},e.prototype.setState=function(){this.setStateEnable(!0)},e.prototype.reset=function(){this.setStateEnable(!1)},e.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var e=t.list,n=t.item,r=this.hasState(e,n);this.setItemState(e,n,!r)}},e.prototype.clear=function(){var t=this.getTriggerListInfo();t?t.list.clearItemsState(this.stateName):this.clearAllComponentsState()},e}(a.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(7)),a=r.__importDefault(n(66));e.default=function(t,e){if(t)if((0,i.default)(t))for(var n=0,r=t.length;n<r&&!1!==e(t[n],n);n++);else if((0,a.default)(t))for(var o in t)if(t.hasOwnProperty(o)&&!1===e(t[o],o))break}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(35));e.default=function(t){return(0,r.default)(t)?"":t.toString()}},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.modifyCSS=e.getWidth=e.getStyle=e.getRatio=e.getOuterWidth=e.getOuterHeight=e.getHeight=e.createDom=e.addEventListener=void 0;var i=n(314);Object.defineProperty(e,"addEventListener",{enumerable:!0,get:function(){return r(i).default}});var a=n(315);Object.defineProperty(e,"createDom",{enumerable:!0,get:function(){return r(a).default}});var o=n(151);Object.defineProperty(e,"getHeight",{enumerable:!0,get:function(){return r(o).default}});var s=n(316);Object.defineProperty(e,"getOuterHeight",{enumerable:!0,get:function(){return r(s).default}});var l=n(317);Object.defineProperty(e,"getOuterWidth",{enumerable:!0,get:function(){return r(l).default}});var u=n(318);Object.defineProperty(e,"getRatio",{enumerable:!0,get:function(){return r(u).default}});var c=n(58);Object.defineProperty(e,"getStyle",{enumerable:!0,get:function(){return r(c).default}});var f=n(152);Object.defineProperty(e,"getWidth",{enumerable:!0,get:function(){return r(f).default}});var h=n(319);Object.defineProperty(e,"modifyCSS",{enumerable:!0,get:function(){return r(h).default}})},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.cubehelix=e.gray=e.lch=e.hcl=e.lab=e.hsl=e.rgb=e.color=void 0;var i=n(95);Object.defineProperty(e,"color",{enumerable:!0,get:function(){return r(i).default}}),Object.defineProperty(e,"rgb",{enumerable:!0,get:function(){return i.rgb}}),Object.defineProperty(e,"hsl",{enumerable:!0,get:function(){return i.hsl}});var a=n(333);Object.defineProperty(e,"lab",{enumerable:!0,get:function(){return r(a).default}}),Object.defineProperty(e,"hcl",{enumerable:!0,get:function(){return a.hcl}}),Object.defineProperty(e,"lch",{enumerable:!0,get:function(){return a.lch}}),Object.defineProperty(e,"gray",{enumerable:!0,get:function(){return a.gray}});var o=n(334);Object.defineProperty(e,"cubehelix",{enumerable:!0,get:function(){return r(o).default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.gamma=e.hue=void 0;var r=n(0).__importDefault(n(169));function i(t,e){return function(n){return t+n*e}}function a(t,e){var n=e-t;return n?i(t,n):(0,r.default)(isNaN(t)?e:t)}e.hue=function(t,e){var n=e-t;return n?i(t,n>180||n<-180?n-360*Math.round(n/360):n):(0,r.default)(isNaN(t)?e:t)},e.gamma=function(t){return 1==(t=+t)?a:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):(0,r.default)(isNaN(e)?n:e)}},e.default=a},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.isPointInPolygon=e.isPolygonsIntersect=e.getLineIntersect=e.path2Segments=e.getArcParams=e.reactPath=e.path2Absolute=e.path2Curve=e.parsePathString=e.parsePathArray=e.pathIntersection=e.formatPath=e.fillPathByDiff=e.fillPath=e.catmullRom2Bezier=e.parsePath=void 0;var i=n(181);Object.defineProperty(e,"parsePath",{enumerable:!0,get:function(){return r(i).default}});var a=n(376);Object.defineProperty(e,"catmullRom2Bezier",{enumerable:!0,get:function(){return r(a).default}});var o=n(379);Object.defineProperty(e,"fillPath",{enumerable:!0,get:function(){return r(o).default}});var s=n(380);Object.defineProperty(e,"fillPathByDiff",{enumerable:!0,get:function(){return r(s).default}});var l=n(381);Object.defineProperty(e,"formatPath",{enumerable:!0,get:function(){return r(l).default}});var u=n(382);Object.defineProperty(e,"pathIntersection",{enumerable:!0,get:function(){return r(u).default}});var c=n(387);Object.defineProperty(e,"parsePathArray",{enumerable:!0,get:function(){return r(c).default}});var f=n(185);Object.defineProperty(e,"parsePathString",{enumerable:!0,get:function(){return r(f).default}});var h=n(183);Object.defineProperty(e,"path2Curve",{enumerable:!0,get:function(){return r(h).default}});var p=n(184);Object.defineProperty(e,"path2Absolute",{enumerable:!0,get:function(){return r(p).default}});var d=n(182);Object.defineProperty(e,"reactPath",{enumerable:!0,get:function(){return r(d).default}});var g=n(100);Object.defineProperty(e,"getArcParams",{enumerable:!0,get:function(){return r(g).default}});var y=n(388);Object.defineProperty(e,"path2Segments",{enumerable:!0,get:function(){return r(y).default}});var v=n(186);Object.defineProperty(e,"getLineIntersect",{enumerable:!0,get:function(){return r(v).default}});var m=n(389);Object.defineProperty(e,"isPolygonsIntersect",{enumerable:!0,get:function(){return r(m).default}});var _=n(187);Object.defineProperty(e,"isPointInPolygon",{enumerable:!0,get:function(){return r(_).default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(5).__importStar(n(1)),i=n(101),a=function(){function t(t){var e=t.xField,n=t.yField,r=t.adjustNames,i=void 0===r?["x","y"]:r,a=t.dimValuesMap;this.adjustNames=i,this.xField=e,this.yField=n,this.dimValuesMap=a}return t.prototype.isAdjust=function(t){return this.adjustNames.indexOf(t)>=0},t.prototype.getAdjustRange=function(t,e,n){var r,i,a=this.yField,o=n.indexOf(e),s=n.length;return!a&&this.isAdjust("y")?(r=0,i=1):s>1?(r=n[0===o?0:o-1],i=n[o===s-1?s-1:o+1],0!==o?r+=(e-r)/2:r-=(i-e)/2,o!==s-1?i-=(i-e)/2:i+=(e-n[s-2])/2):(r=0===e?0:e-.5,i=0===e?1:e+.5),{pre:r,next:i}},t.prototype.adjustData=function(t,e){var n=this,i=this.getDimValues(e);r.each(t,(function(t,e){r.each(i,(function(r,i){n.adjustDim(i,r,t,e)}))}))},t.prototype.groupData=function(t,e){return r.each(t,(function(t){void 0===t[e]&&(t[e]=i.DEFAULT_Y)})),r.groupBy(t,e)},t.prototype.adjustDim=function(t,e,n,r){},t.prototype.getDimValues=function(t){var e=this.xField,n=this.yField,a=r.assign({},this.dimValuesMap),o=[];if(e&&this.isAdjust("x")&&o.push(e),n&&this.isAdjust("y")&&o.push(n),o.forEach((function(e){a&&a[e]||(a[e]=r.valuesOfKey(t,e).sort((function(t,e){return t-e})))})),!n&&this.isAdjust("y")){a.y=[i.DEFAULT_Y,1]}return a},t}();e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.convertPolarPath=e.convertNormalPath=e.getSplinePath=e.getLinePath=e.catmullRom2bezier=e.smoothBezier=void 0;var r=n(0),i=n(8),a=n(1),o=n(14);function s(t,e){for(var n=[t[0]],r=1,i=t.length;r<i;r+=2){var a=e.convert({x:t[r],y:t[r+1]});n.push(a.x,a.y)}return n}function l(t,e){var n=e.isTransposed,r=t[1],i=t[6],a=t[7],o=e.convert({x:i,y:a});return["A",r,r,0,0,n?0:1,o.x,o.y]}function u(t,n,r){for(var i=!!n,a=[],o=0,s=t.length;o<s;o+=2)a.push([t[o],t[o+1]]);var l,u,c,f=(0,e.smoothBezier)(a,.4,i,r),h=a.length,p=[];for(o=0;o<h-1;o++)l=f[2*o],u=f[2*o+1],c=a[o+1],p.push(["C",l[0],l[1],u[0],u[1],c[0],c[1]]);return i&&(l=f[h],u=f[h+1],c=a[0],p.push(["C",l[0],l[1],u[0],u[1],c[0],c[1]])),p}function c(t,e){return function(t,e){var n=[];if(t.length){n.push(["M",t[0].x,t[0].y]);for(var r=1,i=t.length;r<i;r+=1){var a=t[r];n.push(["L",a.x,a.y])}e&&n.push(["Z"])}return n}(t,e)}e.smoothBezier=function(t,e,n,a){var o,s,l,u,c,f,h,p,d=[],g=!!a;if(g){u=(o=r.__read(a,2))[0],c=o[1];for(var y=0,v=t.length;y<v;y++){var m=t[y];u=i.vec2.min([0,0],u,m),c=i.vec2.max([0,0],c,m)}}y=0;for(var _=t.length;y<_;y++){m=t[y];if(0!==y||n)if(y!==_-1||n){s=t[n?y?y-1:_-1:y-1],l=t[n?(y+1)%_:y+1];var x=[0,0];x=i.vec2.sub(x,l,s),x=i.vec2.scale(x,x,e);var b=i.vec2.distance(m,s),M=i.vec2.distance(m,l),C=b+M;0!==C&&(b/=C,M/=C);var P=i.vec2.scale([0,0],x,-b),S=i.vec2.scale([0,0],x,M);h=i.vec2.add([0,0],m,P),f=i.vec2.add([0,0],m,S),f=i.vec2.min([0,0],f,i.vec2.max([0,0],l,m)),f=i.vec2.max([0,0],f,i.vec2.min([0,0],l,m)),P=i.vec2.sub([0,0],f,m),P=i.vec2.scale([0,0],P,-b/M),h=i.vec2.add([0,0],m,P),h=i.vec2.min([0,0],h,i.vec2.max([0,0],s,m)),h=i.vec2.max([0,0],h,i.vec2.min([0,0],s,m)),S=i.vec2.sub([0,0],m,h),S=i.vec2.scale([0,0],S,M/b),f=i.vec2.add([0,0],m,S),g&&(h=i.vec2.max([0,0],h,u),h=i.vec2.min([0,0],h,c),f=i.vec2.max([0,0],f,u),f=i.vec2.min([0,0],f,c)),d.push(p),d.push(h),p=f}else h=m,d.push(p),d.push(h);else p=m}return n&&d.push(d.shift()),d},e.catmullRom2bezier=u,e.getLinePath=c,e.getSplinePath=function(t,e,n){var r=[],i=t[0],a=null;if(t.length<=2)return c(t,e);for(var o=0,s=t.length;o<s;o++){var l=t[o];a&&a.x===l.x&&a.y===l.y||(r.push(l.x),r.push(l.y),a=l)}var f=u(r,e,n||[[0,0],[1,1]]);return f.unshift(["M",i.x,i.y]),f},e.convertNormalPath=function(t,e){var n=[];return(0,a.each)(e,(function(e){switch(e[0].toLowerCase()){case"m":case"l":case"c":n.push(s(e,t));break;case"a":n.push(l(e,t));break;case"z":default:n.push(e)}})),n},e.convertPolarPath=function(t,e){var n,r,i,u=[];return(0,a.each)(e,(function(a,c){switch(a[0].toLowerCase()){case"m":case"c":case"q":u.push(s(a,t));break;case"l":n=e[c-1],r=a,i=t.isTransposed,(i?n[n.length-2]===r[1]:n[n.length-1]===r[2])?u=u.concat(function(t,e,n){var r=n.isTransposed,i=n.startAngle,a=n.endAngle,s="a"===t[0].toLowerCase()?{x:t[6],y:t[7]}:{x:t[1],y:t[2]},l={x:e[1],y:e[2]},u=[],c=r?"y":"x",f=Math.abs(l[c]-s[c])*(a-i),h=l[c]>=s[c]?1:0,p=f>Math.PI?1:0,d=n.convert(l),g=(0,o.getDistanceToCenter)(n,d);if(g>=.5)if(f===2*Math.PI){var y={x:(l.x+s.x)/2,y:(l.y+s.y)/2},v=n.convert(y);u.push(["A",g,g,0,p,h,v.x,v.y]),u.push(["A",g,g,0,p,h,d.x,d.y])}else u.push(["A",g,g,0,p,h,d.x,d.y]);return u}(n,r,t)):u.push(s(a,t));break;case"a":u.push(l(a,t));break;case"z":default:u.push(a)}})),function(t){(0,a.each)(t,(function(e,n){if("a"===e[0].toLowerCase()){var r=t[n-1],i=t[n+1];i&&"a"===i[0].toLowerCase()?r&&"l"===r[0].toLowerCase()&&(r[0]="M"):r&&"a"===r[0].toLowerCase()&&i&&"l"===i[0].toLowerCase()&&(i[0]="M")}}))}(u),u}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.checkShapeOverlap=e.getOverlapArea=e.getLabelBackgroundInfo=e.findLabelTextShape=void 0;var r=n(1),i=n(54);function a(t,e,n){return void 0===n&&(n=0),Math.max(0,Math.min(t.x+t.width+n,e.x+e.width+n)-Math.max(t.x-n,e.x-n))*Math.max(0,Math.min(t.y+t.height+n,e.y+e.height+n)-Math.max(t.y-n,e.y-n))}e.findLabelTextShape=function(t){return t.find((function(t){return"text"===t.get("type")}))},e.getLabelBackgroundInfo=function(t,e,n){void 0===n&&(n=[0,0,0,0]);var a=t&&t.getChildren()[0];if(a){var o=a.clone();(null==e?void 0:e.rotate)&&(0,i.rotate)(o,-e.rotate);var s=o.getCanvasBBox(),l=s.x,u=s.y,c=s.width,f=s.height;o.destroy();var h=n;return(0,r.isNil)(h)?h=[2,2,2,2]:(0,r.isNumber)(h)&&(h=new Array(4).fill(h)),{x:l-h[3],y:u-h[0],width:c+h[1]+h[3],height:f+h[0]+h[2],rotation:(null==e?void 0:e.rotate)||0}}return{x:0,y:0,width:0,height:0,rotation:0}},e.getOverlapArea=a,e.checkShapeOverlap=function(t,e){var n=t.getBBox();return(0,r.some)(e,(function(t){var e=t.getBBox();return a(n,e,2)>0}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.zoom=e.getIdentityMatrix=e.rotate=e.getRotateMatrix=e.translate=e.transform=void 0;var r=n(8).ext.transform;function i(t,e){var n=t.attr(),i=n.x,a=n.y;return r(t.getMatrix(),[["t",-i,-a],["r",e],["t",i,a]])}e.transform=r,e.translate=function(t,e,n){var i=r(t.getMatrix(),[["t",e,n]]);t.setMatrix(i)},e.getRotateMatrix=i,e.rotate=function(t,e){var n=i(t,e);t.setMatrix(n)},e.getIdentityMatrix=function(){return[1,0,0,0,1,0,0,0,1]},e.zoom=function(t,e){var n=t.getBBox(),i=(n.minX+n.maxX)/2,a=(n.minY+n.maxY)/2;t.applyToMatrix([i,a,1]);var o=r(t.getMatrix(),[["t",-i,-a],["s",e,e],["t",i,a]]);t.setMatrix(o)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getAnglePoint=e.getFactTitleConfig=void 0;var r=n(2);e.getFactTitleConfig=function(t){return[r.DIRECTION.TOP,r.DIRECTION.BOTTOM].includes(t)?{offsetX:0,offsetY:t===r.DIRECTION.TOP?-8:8,style:{textAlign:"center",textBaseline:t===r.DIRECTION.TOP?"bottom":"top"}}:[r.DIRECTION.LEFT,r.DIRECTION.RIGHT].includes(t)?{offsetX:t===r.DIRECTION.LEFT?-8:8,offsetY:0,style:{textAlign:t===r.DIRECTION.LEFT?"right":"left",textBaseline:"middle",rotate:Math.PI/2}}:{}},e.getAnglePoint=function(t,e,n){return{x:t.x+e*Math.cos(n),y:t.y+e*Math.sin(n)}}},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.registerComponentController=e.Event=e.registerGeometry=e.View=e.Chart=void 0;var i=n(233);Object.defineProperty(e,"Chart",{enumerable:!0,get:function(){return r(i).default}});var a=n(153);Object.defineProperty(e,"View",{enumerable:!0,get:function(){return r(a).default}}),Object.defineProperty(e,"registerGeometry",{enumerable:!0,get:function(){return a.registerGeometry}});var o=n(114);Object.defineProperty(e,"Event",{enumerable:!0,get:function(){return r(o).default}});var s=n(208);Object.defineProperty(e,"registerComponentController",{enumerable:!0,get:function(){return s.registerComponentController}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(85)),a=r.__importDefault(n(24));e.default=function(t){if(!(0,i.default)(t)||!(0,a.default)(t,"Object"))return!1;if(null===Object.getPrototypeOf(t))return!0;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){var r;try{r=window.getComputedStyle?window.getComputedStyle(t,null)[e]:t.style[e]}catch(t){}finally{r=void 0===r?n:r}return r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(191),a=function(){function t(t){this.type="base",this.isCategory=!1,this.isLinear=!1,this.isContinuous=!1,this.isIdentity=!1,this.values=[],this.range=[0,1],this.ticks=[],this.__cfg__=t,this.initCfg(),this.init()}return t.prototype.translate=function(t){return t},t.prototype.change=function(t){(0,r.assign)(this.__cfg__,t),this.init()},t.prototype.clone=function(){return this.constructor(this.__cfg__)},t.prototype.getTicks=function(){var t=this;return(0,r.map)(this.ticks,(function(e,n){return(0,r.isObject)(e)?e:{text:t.getText(e,n),tickValue:e,value:t.scale(e)}}))},t.prototype.getText=function(t,e){var n=this.formatter,i=n?n(t,e):t;return(0,r.isNil)(i)||!(0,r.isFunction)(i.toString)?"":i.toString()},t.prototype.getConfig=function(t){return this.__cfg__[t]},t.prototype.init=function(){(0,r.assign)(this,this.__cfg__),this.setDomain(),(0,r.isEmpty)(this.getConfig("ticks"))&&(this.ticks=this.calculateTicks())},t.prototype.initCfg=function(){},t.prototype.setDomain=function(){},t.prototype.calculateTicks=function(){var t=this.tickMethod,e=[];if((0,r.isString)(t)){var n=(0,i.getTickMethod)(t);if(!n)throw new Error("There is no method to to calculate ticks!");e=n(this)}else(0,r.isFunction)(t)&&(e=t(this));return e},t.prototype.rangeMin=function(){return this.range[0]},t.prototype.rangeMax=function(){return this.range[1]},t.prototype.calcPercent=function(t,e,n){return(0,r.isNumber)(t)?(t-e)/(n-e):NaN},t.prototype.calcValue=function(t,e,n){return e+t*(n-e)},t}();e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ellipsisLabel=e.testLabel=e.getLabelLength=e.getMaxLabelWidth=void 0;var r=n(1),i=n(431);function a(t,e){var n=e.getCanvasBBox();return t?n.width:n.height}e.getMaxLabelWidth=function(t){if(t.length>400)return function(t){for(var e=t.map((function(t){var e=t.attr("text");return(0,r.isNil)(e)?"":""+e})),n=0,i=0,a=0;a<e.length;a+=1){for(var o=0,s=0;s<=e[a].length;s+=1){var l=e[a].charCodeAt(s);o+=l>=19968&&l<=40869?2:1}o>n&&(n=o,i=a)}return t[i].getBBox().width}(t);var e=0;return(0,r.each)(t,(function(t){var n=t.getBBox().width;e<n&&(e=n)})),e},e.getLabelLength=a,e.testLabel=function(t,e){return t.getBBox().width<e},e.ellipsisLabel=function(t,e,n,o){var s;void 0===o&&(o="tail");var l=null!==(s=e.attr("text"))&&void 0!==s?s:"";if("tail"===o){var u=(0,r.pick)(e.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),c=(0,r.getEllipsisText)(l,n,u,"…");return l!==c?(e.attr("text",c),e.set("tip",l),!0):(e.set("tip",null),!1)}var f=a(t,e),h=(0,i.strLen)(l),p=!1;if(n<f){var d=Math.floor(n/f*h)-2,g=void 0;(g=d>=0?(0,i.ellipsisString)(l,d,o):"…")&&(e.attr("text",g),p=!0)}return p?e.set("tip",l):e.set("tip",null),p}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MarkerSymbols=void 0,e.MarkerSymbols={hexagon:function(t,e,n){var r=n/2*Math.sqrt(3);return[["M",t,e-n],["L",t+r,e-n/2],["L",t+r,e+n/2],["L",t,e+n],["L",t-r,e+n/2],["L",t-r,e-n/2],["Z"]]},bowtie:function(t,e,n){var r=n-1.5;return[["M",t-n,e-r],["L",t+n,e+r],["L",t+n,e-r],["L",t-n,e+r],["Z"]]},cross:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e+n],["M",t+n,e-n],["L",t-n,e+n]]},tick:function(t,e,n){return[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]]},plus:function(t,e,n){return[["M",t-n,e],["L",t+n,e],["M",t,e-n],["L",t,e+n]]},hyphen:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},line:function(t,e,n){return[["M",t,e-n],["L",t,e+n]]}}},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Text=e.Rect=e.Polyline=e.Polygon=e.Path=e.Marker=e.Line=e.Image=e.Ellipse=e.Circle=e.Base=void 0;var i=n(26);Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return r(i).default}});var a=n(489);Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return r(a).default}});var o=n(490);Object.defineProperty(e,"Ellipse",{enumerable:!0,get:function(){return r(o).default}});var s=n(491);Object.defineProperty(e,"Image",{enumerable:!0,get:function(){return r(s).default}});var l=n(492);Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return r(l).default}});var u=n(493);Object.defineProperty(e,"Marker",{enumerable:!0,get:function(){return r(u).default}});var c=n(494);Object.defineProperty(e,"Path",{enumerable:!0,get:function(){return r(c).default}});var f=n(496);Object.defineProperty(e,"Polygon",{enumerable:!0,get:function(){return r(f).default}});var h=n(497);Object.defineProperty(e,"Polyline",{enumerable:!0,get:function(){return r(h).default}});var p=n(498);Object.defineProperty(e,"Rect",{enumerable:!0,get:function(){return r(p).default}});var d=n(501);Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return r(d).default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mergeView=e.getMergedRegion=e.getRefreshRegion=e.refreshElement=e.drawPath=e.clearChanged=e.checkChildrenRefresh=e.checkRefresh=e.drawChildren=e.applyAttrsToContext=void 0;var r=n(0),i=n(1),a=n(218),o=r.__importDefault(n(219)),s=n(15),l=r.__importStar(n(80)),u={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function c(t,e){for(var n=0;n<t.length;n++){var r=t[n];if(r.cfg.visible)if(r.cfg.hasChanged)r.cfg.refresh=!0,r.isGroup()&&f(r.cfg.children,e);else if(r.cfg.refresh)r.isGroup()&&c(r.cfg.children,e);else{var i=h(r,e);r.cfg.refresh=i,i&&r.isGroup()&&c(r.cfg.children,e)}}}function f(t,e){for(var n=0;n<t.length;n++){var r=t[n];r.cfg.refresh=!0,r.isGroup()&&f(r.get("children"),e)}}function h(t,e){var n=t.cfg.cacheCanvasBBox;return t.cfg.isInView&&n&&(0,s.intersectRect)(n,e)}function p(t){var e;if(t.destroyed)e=t._cacheCanvasBBox;else{var n=t.get("cacheCanvasBBox"),r=n&&!(!n.width||!n.height),i=t.getCanvasBBox(),a=i&&!(!i.width||!i.height);r&&a?e=(0,s.mergeRegion)(n,i):r?e=n:a&&(e=i)}return e}e.applyAttrsToContext=function(t,e){var n=e.attr();for(var r in n){var o=n[r],s=u[r]?u[r]:r;"matrix"===s&&o?t.transform(o[0],o[1],o[3],o[4],o[6],o[7]):"lineDash"===s&&t.setLineDash?(0,i.isArray)(o)&&t.setLineDash(o):("strokeStyle"===s||"fillStyle"===s?o=(0,a.parseStyle)(t,e,o):"globalAlpha"===s&&(o*=t.globalAlpha),t[s]=o)}},e.drawChildren=function(t,e,n){for(var r=0;r<e.length;r++){var i=e[r];i.cfg.visible?i.draw(t,n):i.skipDraw()}},e.checkRefresh=function(t,e,n){var r=t.get("refreshElements");(0,i.each)(r,(function(e){if(e!==t)for(var n=e.cfg.parent;n&&n!==t&&!n.cfg.refresh;)n.cfg.refresh=!0,n=n.cfg.parent})),r[0]===t?f(e,n):c(e,n)},e.checkChildrenRefresh=c,e.clearChanged=function t(e){for(var n=0;n<e.length;n++){var r=e[n];r.cfg.hasChanged=!1,r.isGroup()&&!r.destroyed&&t(r.cfg.children)}},e.drawPath=function(t,e,n,r){var i=n.path,a=n.startArrow,s=n.endArrow;if(i){var u=[0,0],c=[0,0],f={dx:0,dy:0};e.beginPath();for(var h=0;h<i.length;h++){var p=i[h],d=p[0];if(0===h&&a&&a.d){var g=t.getStartTangent();f=l.getShortenOffset(g[0][0],g[0][1],g[1][0],g[1][1],a.d)}else if(h===i.length-2&&"Z"===i[h+1][0]&&s&&s.d){if("Z"===i[h+1][0]){g=t.getEndTangent();f=l.getShortenOffset(g[0][0],g[0][1],g[1][0],g[1][1],s.d)}}else if(h===i.length-1&&s&&s.d&&"Z"!==i[0]){g=t.getEndTangent();f=l.getShortenOffset(g[0][0],g[0][1],g[1][0],g[1][1],s.d)}var y=f.dx,v=f.dy;switch(d){case"M":e.moveTo(p[1]-y,p[2]-v),c=[p[1],p[2]];break;case"L":e.lineTo(p[1]-y,p[2]-v);break;case"Q":e.quadraticCurveTo(p[1],p[2],p[3]-y,p[4]-v);break;case"C":e.bezierCurveTo(p[1],p[2],p[3],p[4],p[5]-y,p[6]-v);break;case"A":var m=void 0;r?(m=r[h])||(m=(0,o.default)(u,p),r[h]=m):m=(0,o.default)(u,p);var _=m.cx,x=m.cy,b=m.rx,M=m.ry,C=m.startAngle,P=m.endAngle,S=m.xRotation,O=m.sweepFlag;if(e.ellipse)e.ellipse(_,x,b,M,S,C,P,1-O);else{var w=b>M?b:M,A=b>M?1:b/M,T=b>M?M/b:1;e.translate(_,x),e.rotate(S),e.scale(A,T),e.arc(0,0,w,C,P,1-O),e.scale(1/A,1/T),e.rotate(-S),e.translate(-_,-x)}break;case"Z":e.closePath()}if("Z"===d)u=c;else{var E=p.length;u=[p[E-2],p[E-1]]}}}},e.refreshElement=function(t,e){var n=t.get("canvas");n&&("remove"===e&&(t._cacheCanvasBBox=t.get("cacheCanvasBBox")),t.get("hasChanged")||(t.set("hasChanged",!0),t.cfg.parent&&t.cfg.parent.get("hasChanged")||(n.refreshElement(t,e,n),n.get("autoDraw")&&n.draw())))},e.getRefreshRegion=p,e.getMergedRegion=function(t){if(!t.length)return null;var e=[],n=[],r=[],a=[];return(0,i.each)(t,(function(t){var i=p(t);i&&(e.push(i.minX),n.push(i.minY),r.push(i.maxX),a.push(i.maxY))})),{minX:(0,i.min)(e),minY:(0,i.min)(n),maxX:(0,i.max)(r),maxY:(0,i.max)(a)}},e.mergeView=function(t,e){return t&&e&&(0,s.intersectRect)(t,e)?{minX:Math.max(t.minX,e.minX),minY:Math.max(t.minY,e.minY),maxX:Math.min(t.maxX,e.maxX),maxY:Math.min(t.maxY,e.maxY)}:null}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setClip=e.setTransform=e.setShadow=void 0;var r=n(27);e.setShadow=function(t,e){var n=t.cfg.el,r=t.attr(),i={dx:r.shadowOffsetX,dy:r.shadowOffsetY,blur:r.shadowBlur,color:r.shadowColor};if(i.dx||i.dy||i.blur||i.color){var a=e.find("filter",i);a||(a=e.addShadow(i)),n.setAttribute("filter","url(#"+a+")")}else n.removeAttribute("filter")},e.setTransform=function(t){var e=t.attr().matrix;if(e){for(var n=t.cfg.el,r=[],i=0;i<9;i+=3)r.push(e[i]+","+e[i+1]);-1===(r=r.join(",")).indexOf("NaN")?n.setAttribute("transform","matrix("+r+")"):console.warn("invalid matrix:",e)}},e.setClip=function(t,e){var n=t.getClip(),i=t.get("el");if(n){if(n&&!i.hasAttribute("clip-path")){(0,r.createDom)(n),n.createPath(e);var a=e.addClip(n);i.setAttribute("clip-path","url(#"+a+")")}}else i.removeAttribute("clip-path")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getRectWithCornerRadius=e.getFunnelPath=e.getIntervalRectPath=e.getBackgroundRectPath=e.parseRadius=e.getRectPath=e.getRectPoints=void 0;var r=n(0),i=n(1),a=n(13);function o(t,e){void 0===e&&(e=!0);var n=[],r=t[0];n.push(["M",r.x,r.y]);for(var i=1,a=t.length;i<a;i++)n.push(["L",t[i].x,t[i].y]);return e&&(n.push(["L",r.x,r.y]),n.push(["z"])),n}function s(t,e){var n=0,r=0,a=0,o=0;return(0,i.isArray)(t)?1===t.length?n=r=a=o=t[0]:2===t.length?(n=a=t[0],r=o=t[1]):3===t.length?(n=t[0],r=o=t[1],a=t[2]):(n=t[0],r=t[1],a=t[2],o=t[3]):n=r=a=o=t,n+r>e&&(r=e-(n=n?e/(1+r/n):0)),a+o>e&&(o=e-(a=a?e/(1+o/a):0)),[n||0,r||0,a||0,o||0]}function l(t,e){return[e,t]}e.getRectPoints=function(t){var e,n,a,o,s,l,u=t.x,c=t.y,f=t.y0,h=t.size;(0,i.isArray)(c)?(a=(e=r.__read(c,2))[0],o=e[1]):(a=f,o=c),(0,i.isArray)(u)?(s=(n=r.__read(u,2))[0],l=n[1]):(s=u-h/2,l=u+h/2);var p=[{x:s,y:a},{x:s,y:o}];return p.push({x:l,y:o},{x:l,y:a}),p},e.getRectPath=o,e.parseRadius=s,e.getBackgroundRectPath=function(t,e,n){var o=[];if(n.isRect){var l=n.isTransposed?{x:n.start.x,y:e[0].y}:{x:e[0].x,y:n.start.y},u=n.isTransposed?{x:n.end.x,y:e[2].y}:{x:e[3].x,y:n.end.y},c=(0,i.get)(t,["background","style","radius"]);if(c){var f=n.isTransposed?Math.abs(e[0].y-e[2].y):e[2].x-e[1].x,h=n.isTransposed?n.getWidth():n.getHeight(),p=r.__read(s(c,Math.min(f,h)),4),d=p[0],g=p[1],y=p[2],v=p[3];o.push(["M",l.x,u.y+d]),0!==d&&o.push(["A",d,d,0,0,1,l.x+d,u.y]),o.push(["L",u.x-g,u.y]),0!==g&&o.push(["A",g,g,0,0,1,u.x,u.y+g]),o.push(["L",u.x,l.y-y]),0!==y&&o.push(["A",y,y,0,0,1,u.x-y,l.y]),o.push(["L",l.x+v,l.y]),0!==v&&o.push(["A",v,v,0,0,1,l.x,l.y-v])}else o.push(["M",l.x,l.y]),o.push(["L",u.x,l.y]),o.push(["L",u.x,u.y]),o.push(["L",l.x,u.y]),o.push(["L",l.x,l.y]);o.push(["z"])}if(n.isPolar){var m=n.getCenter(),_=(0,a.getAngle)(t,n),x=_.startAngle,b=_.endAngle;if("theta"===n.type||n.isTransposed){var M=function(t){return Math.pow(t,2)};d=Math.sqrt(M(m.x-e[0].x)+M(m.y-e[0].y)),g=Math.sqrt(M(m.x-e[2].x)+M(m.y-e[2].y));o=(0,a.getSectorPath)(m.x,m.y,d,n.startAngle,n.endAngle,g)}else o=(0,a.getSectorPath)(m.x,m.y,n.getRadius(),x,b)}return o},e.getIntervalRectPath=function(t,e,n){var r=n.getWidth(),i=n.getHeight(),a="rect"===n.type,s=[],l=(t[2].x-t[1].x)/2,u=n.isTransposed?l*i/r:l*r/i;return"round"===e?(a?(s.push(["M",t[0].x,t[0].y+u]),s.push(["L",t[1].x,t[1].y-u]),s.push(["A",l,l,0,0,1,t[2].x,t[2].y-u]),s.push(["L",t[3].x,t[3].y+u]),s.push(["A",l,l,0,0,1,t[0].x,t[0].y+u])):(s.push(["M",t[0].x,t[0].y]),s.push(["L",t[1].x,t[1].y]),s.push(["A",l,l,0,0,1,t[2].x,t[2].y]),s.push(["L",t[3].x,t[3].y]),s.push(["A",l,l,0,0,1,t[0].x,t[0].y])),s.push(["z"])):s=o(t),s},e.getFunnelPath=function(t,e,n){var r=[];return(0,i.isNil)(e)?n?r.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",(t[2].x+t[3].x)/2,(t[2].y+t[3].y)/2],["Z"]):r.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",t[2].x,t[2].y],["L",t[3].x,t[3].y],["Z"]):r.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",e[1].x,e[1].y],["L",e[0].x,e[0].y],["Z"]),r},e.getRectWithCornerRadius=function(t,e,n){var i,a,o,u,c,f,h,p=r.__read(r.__spreadArray([],r.__read(t),!1),4),d=p[0],g=p[1],y=p[2],v=p[3],m=r.__read("number"==typeof n?Array(4).fill(n):n,4),_=m[0],x=m[1],b=m[2],M=m[3];e.isTransposed&&(g=(i=r.__read(l(g,v),2))[0],v=i[1]),e.isReflect("y")&&(d=(a=r.__read(l(d,g),2))[0],g=a[1],y=(o=r.__read(l(y,v),2))[0],v=o[1]),e.isReflect("x")&&(d=(u=r.__read(l(d,v),2))[0],v=u[1],g=(c=r.__read(l(g,y),2))[0],y=c[1]);var C=[],P=function(t){return Math.abs(t)};return _=(f=r.__read(s([_,x,b,M],Math.min(P(v.x-d.x),P(g.y-d.y))).map((function(t){return P(t)})),4))[0],x=f[1],b=f[2],M=f[3],e.isTransposed&&(_=(h=r.__read([M,_,x,b],4))[0],x=h[1],b=h[2],M=h[3]),d.y<g.y?(C.push(["M",v.x,v.y+b]),0!==b&&C.push(["A",b,b,0,0,0,v.x-b,v.y]),C.push(["L",d.x+M,d.y]),0!==M&&C.push(["A",M,M,0,0,0,d.x,d.y+M]),C.push(["L",g.x,g.y-_]),0!==_&&C.push(["A",_,_,0,0,0,g.x+_,g.y]),C.push(["L",y.x-x,y.y]),0!==x&&C.push(["A",x,x,0,0,0,y.x,y.y-x]),C.push(["L",v.x,v.y+b]),C.push(["z"])):v.x<d.x?(C.push(["M",y.x+x,y.y]),0!==x&&C.push(["A",x,x,0,0,0,y.x,y.y+x]),C.push(["L",v.x,v.y-b]),0!==b&&C.push(["A",b,b,0,0,0,v.x+b,v.y]),C.push(["L",d.x-M,d.y]),0!==M&&C.push(["A",M,M,0,0,0,d.x,d.y-M]),C.push(["L",g.x,g.y+_]),0!==_&&C.push(["A",_,_,0,0,0,g.x-_,g.y]),C.push(["L",y.x+x,y.y]),C.push(["z"])):(C.push(["M",g.x,g.y+_]),0!==_&&C.push(["A",_,_,0,0,1,g.x+_,g.y]),C.push(["L",y.x-x,y.y]),0!==x&&C.push(["A",x,x,0,0,1,y.x,y.y+x]),C.push(["L",v.x,v.y-b]),0!==b&&C.push(["A",b,b,0,0,1,v.x-b,v.y]),C.push(["L",d.x+M,d.y]),0!==M&&C.push(["A",M,M,0,0,1,d.x,d.y-M]),C.push(["L",g.x,g.y+_]),C.push(["z"])),C}},function(t,e,n){"use strict";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})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=r(t);return null!==t&&"object"===e||"function"===e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.vec4=e.vec3=e.vec2=e.quat2=e.quat=e.mat4=e.mat3=e.mat2d=e.mat2=e.glMatrix=void 0;var r=n(0),i=r.__importStar(n(28));e.glMatrix=i;var a=r.__importStar(n(324));e.mat2=a;var o=r.__importStar(n(325));e.mat2d=o;var s=r.__importStar(n(161));e.mat3=s;var l=r.__importStar(n(162));e.mat4=l;var u=r.__importStar(n(163));e.quat=u;var c=r.__importStar(n(326));e.quat2=c;var f=r.__importStar(n(165));e.vec2=f;var h=r.__importStar(n(91));e.vec3=h;var p=r.__importStar(n(164));e.vec4=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(32),a=r.__importStar(n(165));e.default={box:function(t,e,n,r){return(0,i.getBBoxByArray)([t,n],[e,r])},length:function(t,e,n,r){return(0,i.distance)(t,e,n,r)},pointAt:function(t,e,n,r,i){return{x:(1-i)*t+i*n,y:(1-i)*e+i*r}},pointDistance:function(t,e,n,r,a,o){var s=(n-t)*(a-t)+(r-e)*(o-e);return s<0?(0,i.distance)(t,e,a,o):s>(n-t)*(n-t)+(r-e)*(r-e)?(0,i.distance)(n,r,a,o):this.pointToLine(t,e,n,r,a,o)},pointToLine:function(t,e,n,r,i,o){var s=[n-t,r-e];if(a.exactEquals(s,[0,0]))return Math.sqrt((i-t)*(i-t)+(o-e)*(o-e));var l=[-s[1],s[0]];a.normalize(l,l);var u=[i-t,o-e];return Math.abs(a.dot(u,l))},tangentAngle:function(t,e,n,r){return Math.atan2(r-e,n-t)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=/rgba?\(([\s.,0-9]+)\)/,a=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,o=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,s=/[\d.]+:(#[^\s]+|[^\)]+\))/gi,l=function(t,e,n,r){return t[r]+(e[r]-t[r])*n};function u(t){return"#"+h(t[0])+h(t[1])+h(t[2])}var c,f=function(t){return[parseInt(t.substr(1,2),16),parseInt(t.substr(3,2),16),parseInt(t.substr(5,2),16)]},h=function(t){var e=Math.round(t).toString(16);return 1===e.length?"0"+e:e},p=function(t){if("#"===t[0]&&7===t.length)return t;var e;c||((e=document.createElement("i")).title="Web Colour Picker",e.style.display="none",document.body.appendChild(e),c=e),c.style.color=t;var n=document.defaultView.getComputedStyle(c,"").getPropertyValue("color");return n=u(i.exec(n)[1].split(/\s*,\s*/).map((function(t){return Number(t)})))};e.default={rgb2arr:f,gradient:function(t){var e=(0,r.isString)(t)?t.split("-"):t,n=(0,r.map)(e,(function(t){return f(-1===t.indexOf("#")?p(t):t)}));return function(t){return function(t,e){var n=isNaN(Number(e))||e<0?0:e>1?1:Number(e),r=t.length-1,i=Math.floor(r*n),a=r*n-i,o=t[i],s=i===r?o:t[i+1];return u([l(o,s,a,0),l(o,s,a,1),l(o,s,a,2)])}(n,t)}},toRGB:(0,r.memoize)(p),toCSSGradient:function(t){if(/^[r,R,L,l]{1}[\s]*\(/.test(t)){var e,n=void 0;if("l"===t[0]){var i=+(l=a.exec(t))[1]+90;n=l[2],e="linear-gradient("+i+"deg, "}else if("r"===t[0]){var l;e="radial-gradient(",n=(l=o.exec(t))[4]}var u=n.match(s);return(0,r.each)(u,(function(t,n){var r=t.split(":");e+=r[1]+" "+100*r[0]+"%",n!==u.length-1&&(e+=", ")})),e+=")"}return t}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getTickInterval=e.YEAR=e.MONTH=e.DAY=e.HOUR=e.MINUTE=e.SECOND=e.toTimeStamp=e.timeFormat=void 0;var r=n(0),i=n(1),a=r.__importDefault(n(193)),o=r.__importStar(n(193)),s=r.__importDefault(n(404));e.timeFormat=function(t,e){return(o.format||a.default.format)(t,e)},e.toTimeStamp=function(t){return(0,i.isString)(t)&&(t=t.indexOf("T")>0?new Date(t).getTime():new Date(t.replace(/-/gi,"/")).getTime()),(0,i.isDate)(t)&&(t=t.getTime()),t};e.SECOND=1e3;e.MINUTE=6e4;var l=36e5;e.HOUR=l;var u=24*l;e.DAY=u;var c=31*u;e.MONTH=c;e.YEAR=31536e6;var f=[["HH:mm:ss",1e3],["HH:mm:ss",1e4],["HH:mm:ss",3e4],["HH:mm",6e4],["HH:mm",6e5],["HH:mm",18e5],["HH",l],["HH",6*l],["HH",12*l],["YYYY-MM-DD",u],["YYYY-MM-DD",4*u],["YYYY-WW",7*u],["YYYY-MM",c],["YYYY-MM",4*c],["YYYY-MM",6*c],["YYYY",380*u]];e.getTickInterval=function(t,e,n){var r=(e-t)/n,a=(0,s.default)((function(t){return t[1]}))(f,r)-1,o=f[a];return a<0?o=f[0]:a>=f.length&&(o=(0,i.last)(f)),o}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isContinuous=!0,e}return(0,i.__extends)(e,t),e.prototype.scale=function(t){if((0,a.isNil)(t))return NaN;var e=this.rangeMin(),n=this.rangeMax();return this.max===this.min?e:e+this.getScalePercent(t)*(n-e)},e.prototype.init=function(){t.prototype.init.call(this);var e=this.ticks,n=(0,a.head)(e),r=(0,a.last)(e);n<this.min&&(this.min=n),r>this.max&&(this.max=r),(0,a.isNil)(this.minLimit)||(this.min=n),(0,a.isNil)(this.maxLimit)||(this.max=r)},e.prototype.setDomain=function(){var t=(0,a.getRange)(this.values),e=t.min,n=t.max;(0,a.isNil)(this.min)&&(this.min=e),(0,a.isNil)(this.max)&&(this.max=n),this.min>this.max&&(this.min=e,this.max=n)},e.prototype.calculateTicks=function(){var e=this,n=t.prototype.calculateTicks.call(this);return this.nice||(n=(0,a.filter)(n,(function(t){return t>=e.min&&t<=e.max}))),n},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;return(t-n)/(e-n)},e.prototype.getInvertPercent=function(t){return(t-this.rangeMin())/(this.rangeMax()-this.rangeMin())},e}(r.__importDefault(n(59)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.precisionAdd=e.getLogPositiveMin=e.log=e.calBase=void 0;var r=n(1);function i(t){var e=t.toString().split(/[eE]/),n=(e[0].split(".")[1]||"").length-+(e[1]||0);return n>0?n:0}e.calBase=function(t,e){var n=Math.E;return e>=0?Math.pow(n,Math.log(e)/t):-1*Math.pow(n,Math.log(-e)/t)},e.log=function(t,e){return 1===t?1:Math.log(e)/Math.log(t)},e.getLogPositiveMin=function(t,e,n){(0,r.isNil)(n)&&(n=Math.max.apply(null,t));var i=n;return(0,r.each)(t,(function(t){t>0&&t<i&&(i=t)})),i===n&&(i=n/e),i>1&&(i=1),i},e.precisionAdd=function(t,e){var n=i(t),r=i(e),a=Math.pow(10,Math.max(n,r));return(t*a+e*a)/a}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(8),a=n(1),o=function(){function t(t){this.type="coordinate",this.isRect=!1,this.isHelix=!1,this.isPolar=!1,this.isReflectX=!1,this.isReflectY=!1;var e=t.start,n=t.end,i=t.matrix,a=void 0===i?[1,0,0,0,1,0,0,0,1]:i,o=t.isTransposed,s=void 0!==o&&o;this.start=e,this.end=n,this.matrix=a,this.originalMatrix=(0,r.__spreadArray)([],a),this.isTransposed=s}return t.prototype.initial=function(){this.center={x:(this.start.x+this.end.x)/2,y:(this.start.y+this.end.y)/2},this.width=Math.abs(this.end.x-this.start.x),this.height=Math.abs(this.end.y-this.start.y)},t.prototype.update=function(t){(0,a.assign)(this,t),this.initial()},t.prototype.convertDim=function(t,e){var n,r=this[e],i=r.start,a=r.end;return this.isReflect(e)&&(i=(n=[a,i])[0],a=n[1]),i+t*(a-i)},t.prototype.invertDim=function(t,e){var n,r=this[e],i=r.start,a=r.end;return this.isReflect(e)&&(i=(n=[a,i])[0],a=n[1]),(t-i)/(a-i)},t.prototype.applyMatrix=function(t,e,n){void 0===n&&(n=0);var r=this.matrix,a=[t,e,n];return i.vec3.transformMat3(a,a,r),a},t.prototype.invertMatrix=function(t,e,n){void 0===n&&(n=0);var r=this.matrix,a=i.mat3.invert([0,0,0,0,0,0,0,0,0],r),o=[t,e,n];return a&&i.vec3.transformMat3(o,o,a),o},t.prototype.convert=function(t){var e=this.convertPoint(t),n=e.x,r=e.y,i=this.applyMatrix(n,r,1);return{x:i[0],y:i[1]}},t.prototype.invert=function(t){var e=this.invertMatrix(t.x,t.y,1);return this.invertPoint({x:e[0],y:e[1]})},t.prototype.rotate=function(t){var e=this.matrix,n=this.center;return i.ext.leftTranslate(e,e,[-n.x,-n.y]),i.ext.leftRotate(e,e,t),i.ext.leftTranslate(e,e,[n.x,n.y]),this},t.prototype.reflect=function(t){return"x"===t?this.isReflectX=!this.isReflectX:this.isReflectY=!this.isReflectY,this},t.prototype.scale=function(t,e){var n=this.matrix,r=this.center;return i.ext.leftTranslate(n,n,[-r.x,-r.y]),i.ext.leftScale(n,n,[t,e]),i.ext.leftTranslate(n,n,[r.x,r.y]),this},t.prototype.translate=function(t,e){var n=this.matrix;return i.ext.leftTranslate(n,n,[t,e]),this},t.prototype.transpose=function(){return this.isTransposed=!this.isTransposed,this},t.prototype.getCenter=function(){return this.center},t.prototype.getWidth=function(){return this.width},t.prototype.getHeight=function(){return this.height},t.prototype.getRadius=function(){return this.radius},t.prototype.isReflect=function(t){return"x"===t?this.isReflectX:this.isReflectY},t.prototype.resetMatrix=function(t){this.matrix=t||(0,r.__spreadArray)([],this.originalMatrix)},t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.renderTag=void 0;var r=n(0),i=n(1),a=n(60),o=n(33),s=n(10);e.renderTag=function(t,e){var n=e.x,l=e.y,u=e.content,c=e.style,f=e.id,h=e.name,p=e.rotate,d=e.maxLength,g=e.autoEllipsis,y=e.isVertical,v=e.ellipsisPosition,m=e.background,_=t.addGroup({id:f+"-group",name:h+"-group",attrs:{x:n,y:l}}),x=_.addShape({type:"text",id:f,name:h,attrs:(0,r.__assign)({x:0,y:0,text:u},c)}),b=(0,s.formatPadding)((0,i.get)(m,"padding",0));if(d&&g){var M=d-(b[1]+b[3]);(0,a.ellipsisLabel)(!y,x,M,v)}if(m){var C=(0,i.get)(m,"style",{}),P=x.getCanvasBBox(),S=P.minX,O=P.minY,w=P.width,A=P.height;_.addShape("rect",{id:f+"-bg",name:f+"-bg",attrs:(0,r.__assign)({x:S-b[3],y:O-b[0],width:w+b[1]+b[3],height:A+b[0]+b[2]},C)}).toBack()}(0,o.applyTranslate)(_,n,l),(0,o.applyRotate)(_,p,n,l)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(47),o=n(1),s=n(10),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{container:null,containerTpl:"<div></div>",updateAutoRender:!0,containerClassName:"",parent:null})},e.prototype.getContainer=function(){return this.get("container")},e.prototype.show=function(){this.get("container").style.display="",this.set("visible",!0)},e.prototype.hide=function(){this.get("container").style.display="none",this.set("visible",!1)},e.prototype.setCapture=function(t){var e=t?"auto":"none";this.getContainer().style.pointerEvents=e,this.set("capture",t)},e.prototype.getBBox=function(){var t=this.getContainer(),e=parseFloat(t.style.left)||0,n=parseFloat(t.style.top)||0;return(0,s.createBBox)(e,n,t.clientWidth,t.clientHeight)},e.prototype.clear=function(){var t=this.get("container");(0,s.clearDom)(t)},e.prototype.destroy=function(){this.removeEvent(),this.removeDom(),t.prototype.destroy.call(this)},e.prototype.init=function(){t.prototype.init.call(this),this.initContainer(),this.initDom(),this.resetStyles(),this.applyStyles(),this.initEvent(),this.initCapture(),this.initVisible()},e.prototype.initCapture=function(){this.setCapture(this.get("capture"))},e.prototype.initVisible=function(){this.get("visible")?this.show():this.hide()},e.prototype.initDom=function(){},e.prototype.initContainer=function(){var t=this.get("container");if((0,o.isNil)(t)){t=this.createDom();var e=this.get("parent");(0,o.isString)(e)&&(e=document.getElementById(e),this.set("parent",e)),e.appendChild(t),this.get("containerId")&&t.setAttribute("id",this.get("containerId")),this.set("container",t)}else(0,o.isString)(t)&&(t=document.getElementById(t),this.set("container",t));this.get("parent")||this.set("parent",t.parentNode)},e.prototype.resetStyles=function(){var t=this.get("domStyles"),e=this.get("defaultStyles");t=t?(0,o.deepMix)({},e,t):e,this.set("domStyles",t)},e.prototype.applyStyles=function(){var t=this.get("domStyles");if(t){var e=this.getContainer();this.applyChildrenStyles(e,t);var n=this.get("containerClassName");if(n&&(0,s.hasClass)(e,n)){var r=t[n];(0,a.modifyCSS)(e,r)}}},e.prototype.applyChildrenStyles=function(t,e){(0,o.each)(e,(function(e,n){var r=t.getElementsByClassName(n);(0,o.each)(r,(function(t){(0,a.modifyCSS)(t,e)}))}))},e.prototype.applyStyle=function(t,e){var n=this.get("domStyles");(0,a.modifyCSS)(e,n[t])},e.prototype.createDom=function(){var t=this.get("containerTpl");return(0,a.createDom)(t)},e.prototype.initEvent=function(){},e.prototype.removeDom=function(){var t=this.get("container");t&&t.parentNode&&t.parentNode.removeChild(t)},e.prototype.removeEvent=function(){},e.prototype.updateInner=function(t){(0,o.hasKey)(t,"domStyles")&&(this.resetStyles(),this.applyStyles()),this.resetPosition()},e.prototype.resetPosition=function(){},e}(r.__importDefault(n(106)).default);e.default=l},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.getActionClass=e.registerAction=e.createAction=e.Action=void 0;var i=n(11);Object.defineProperty(e,"Action",{enumerable:!0,get:function(){return r(i).default}});var a=n(203);Object.defineProperty(e,"createAction",{enumerable:!0,get:function(){return a.createAction}}),Object.defineProperty(e,"registerAction",{enumerable:!0,get:function(){return a.registerAction}}),Object.defineProperty(e,"getActionClass",{enumerable:!0,get:function(){return a.getActionClass}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.findItemsFromViewRecurisive=e.findItemsFromView=e.getTooltipItems=e.findDataByPoint=void 0;var r=n(0),i=n(1),a=n(2),o=n(38);function s(t,e,n){var r=n.translate(t),a=n.translate(e);return(0,i.isNumberEqual)(r,a)}function l(t,e,n){var r=n.coordinate,o=n.getYScale(),s=o.field,l=r.invert(e),u=o.invert(l.y);return(0,i.find)(t,(function(t){var e=t[a.FIELD_ORIGIN];return e[s][0]<=u&&e[s][1]>=u}))||t[t.length-1]}var u=(0,i.memoize)((function(t){if(t.isCategory)return 1;for(var e=t.values,n=e.length,r=t.translate(e[0]),i=r,a=0;a<n;a++){var o=e[a],s=t.translate(o);s<r&&(r=s),s>i&&(i=s)}return(i-r)/(n-1)}));function c(t){var e,n,s,l=function(t){var e=(0,i.values)(t.attributes);return(0,i.filter)(e,(function(t){return(0,i.contains)(a.GROUP_ATTRS,t.type)}))}(t);try{for(var u=r.__values(l),c=u.next();!c.done;c=u.next()){var f=c.value,h=f.getScale(f.type);if(h&&h.isLinear){var p=(0,i.get)(t.scaleDefs,h.field);if("cat"!==(0,o.inferScaleType)(h,p,f.type,t.type)){s=h;break}}}}catch(t){e={error:t}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(e)throw e.error}}var d=t.getXScale(),g=t.getYScale();return s||g||d}function f(t,e,n){if(0===e.length)return null;var r=n.type,o=n.getXScale(),c=n.getYScale(),f=o.field,h=c.field,p=null;if("heatmap"===r||"point"===r){for(var d=n.coordinate.invert(t),g=o.invert(d.x),y=c.invert(d.y),v=1/0,m=0;m<e.length;m++){var _=e[m],x=_[a.FIELD_ORIGIN],b=Math.pow(x[f]-g,2)+Math.pow(x[h]-y,2);b<v&&(v=b,p=_)}return p}var M=e[0],C=e[e.length-1],P=function(t,e){var n=e.coordinate,r=e.getXScale(),i=r.range,a=i[i.length-1],o=i[0],s=n.invert(t).x;return n.isPolar&&s>(1+a)/2&&(s=o),r.translate(r.invert(s))}(t,n),S=M[a.FIELD_ORIGIN][f],O=M[a.FIELD_ORIGIN][h],w=C[a.FIELD_ORIGIN][f],A=c.isLinear&&(0,i.isArray)(O);if((0,i.isArray)(S)){for(m=0;m<e.length;m++){x=(B=e[m])[a.FIELD_ORIGIN];if(o.translate(x[f][0])<=P&&o.translate(x[f][1])>=P){if(!A){p=B;break}(0,i.isArray)(p)||(p=[]),p.push(B)}}(0,i.isArray)(p)&&(p=l(p,t,n))}else{var T=void 0;if(o.isLinear||"timeCat"===o.type){if((P>o.translate(w)||P<o.translate(S))&&(P>o.max||P<o.min))return null;for(var E=0,I=e.length-1,L=void 0;E<=I;){var D=e[L=Math.floor((E+I)/2)][a.FIELD_ORIGIN][f];if(s(D,P,o))return e[L];o.translate(D)<=o.translate(P)?(E=L+1,C=e[L],T=e[L+1]):(0===I&&(C=e[0]),I=L-1)}}else{for(m=0;m<e.length;m++){var B;if(s((x=(B=e[m])[a.FIELD_ORIGIN])[f],P,o)){if(!A){p=B;break}(0,i.isArray)(p)||(p=[]),p.push(B)}else o.translate(x[f])<=P&&(C=B,T=e[m+1])}(0,i.isArray)(p)&&(p=l(p,t,n))}C&&T&&Math.abs(o.translate(C[a.FIELD_ORIGIN][f])-P)>Math.abs(o.translate(T[a.FIELD_ORIGIN][f])-P)&&(C=T)}var j=u(n.getXScale());return!p&&Math.abs(o.translate(C[a.FIELD_ORIGIN][f])-P)<=j/2&&(p=C),p}function h(t,e,n,s){var l,u;void 0===n&&(n=""),void 0===s&&(s=!1);var f,h=t[a.FIELD_ORIGIN],p=function(t,e,n){var r=e.getAttribute("position").getFields(),a=e.scales,o=(0,i.isFunction)(n)||!n?r[0]:n,s=a[o],l=s?s.getText(t[o]):t[o]||o;return(0,i.isFunction)(n)?n(l,t):l}(h,e,n),d=e.tooltipOption,g=e.theme.defaultColor,y=[];function v(e,n){if(s||!(0,i.isNil)(n)&&""!==n){var r={title:p,data:h,mappingData:t,name:e,value:n,color:t.color||g,marker:!0};y.push(r)}}if((0,i.isObject)(d)){var m=d.fields,_=d.callback;if(_){var x=m.map((function(e){return t[a.FIELD_ORIGIN][e]})),b=_.apply(void 0,r.__spreadArray([],r.__read(x),!1)),M=r.__assign({data:t[a.FIELD_ORIGIN],mappingData:t,title:p,color:t.color||g,marker:!0},b);y.push(M)}else{var C=e.scales;try{for(var P=r.__values(m),S=P.next();!S.done;S=P.next()){var O=S.value;if(!(0,i.isNil)(h[O])){var w=C[O];v((0,o.getName)(w),f=w.getText(h[O]))}}}catch(t){l={error:t}}finally{try{S&&!S.done&&(u=P.return)&&u.call(P)}finally{if(l)throw l.error}}}}else{var A=c(e);f=function(t,e){var n=t[e.field];return(0,i.isArray)(n)?n.map((function(t){return e.getText(t)})).join("-"):e.getText(n)}(h,A),v(function(t,e){var n,r=e.getGroupScales();if(r.length&&(n=r[0]),n){var i=n.field;return n.getText(t[i])}var a=c(e);return(0,o.getName)(a)}(h,e),f)}return y}function p(t,e,n,a){var o,s,l=a.showNil,u=[],c=t.dataArray;if(!(0,i.isEmpty)(c)){t.sort(c);try{for(var p=r.__values(c),d=p.next();!d.done;d=p.next()){var g=f(e,d.value,t);if(g){var y=t.getElementId(g),v=t.elementsMap[y];if("heatmap"===t.type||v.visible){var m=h(g,t,n,l);m.length&&u.push(m)}}}}catch(t){o={error:t}}finally{try{d&&!d.done&&(s=p.return)&&s.call(p)}finally{if(o)throw o.error}}}return u}function d(t,e,n,r){var i=r.showNil,a=[],o=t.container.getShape(e.x,e.y);if(o&&o.get("visible")&&o.get("origin")){var s=h(o.get("origin").mappingData,t,n,i);s.length&&a.push(s)}return a}function g(t,e,n){var i,a,o=[],s=t.geometries,l=n.shared,u=n.title,c=n.reversed;try{for(var f=r.__values(s),h=f.next();!h.done;h=f.next()){var g=h.value;if(g.visible&&!1!==g.tooltipOption){var y=g.type,v=void 0;(v=["point","edge","polygon"].includes(y)?d(g,e,u,n):["area","line","path","heatmap"].includes(y)||!1!==l?p(g,e,u,n):d(g,e,u,n)).length&&(c&&v.reverse(),o.push(v))}}}catch(t){i={error:t}}finally{try{h&&!h.done&&(a=f.return)&&a.call(f)}finally{if(i)throw i.error}}return o}e.findDataByPoint=f,e.getTooltipItems=h,e.findItemsFromView=g,e.findItemsFromViewRecurisive=function(t,e,n){var i,a,o=g(t,e,n);try{for(var s=r.__values(t.views),l=s.next();!l.done;l=s.next()){var u=l.value;o=o.concat(g(u,e,n))}}catch(t){i={error:t}}finally{try{l&&!l.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}return o}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(2),o=n(36),s=n(13),l=r.__importDefault(n(485));function u(t){var e=0;return(0,i.each)(t,(function(t){e+=t})),e/t.length}var c=function(){function t(t){this.geometry=t}return t.prototype.getLabelItems=function(t){var e=this,n=[],a=this.getLabelCfgs(t);return(0,i.each)(t,(function(t,o){var s=a[o];if(!s||(0,i.isNil)(t.x)||(0,i.isNil)(t.y))n.push(null);else{var l=(0,i.isArray)(s.content)?s.content:[s.content];s.content=l;var u=l.length;(0,i.each)(l,(function(a,o){if((0,i.isNil)(a)||""===a)n.push(null);else{var l=r.__assign(r.__assign({},s),e.getLabelPoint(s,t,o));l.textAlign||(l.textAlign=e.getLabelAlign(l,o,u)),l.offset<=0&&(l.labelLine=null),n.push(l)}}))}})),n},t.prototype.render=function(t,e){return void 0===e&&(e=!1),r.__awaiter(this,void 0,void 0,(function(){var n,i,a;return r.__generator(this,(function(r){switch(r.label){case 0:return n=this.getLabelItems(t),i=this.getLabelsRenderer(),a=this.getGeometryShapes(),[4,i.render(n,a,e)];case 1:return r.sent(),[2]}}))}))},t.prototype.clear=function(){var t=this.labelsRenderer;t&&t.clear()},t.prototype.destroy=function(){var t=this.labelsRenderer;t&&t.destroy(),this.labelsRenderer=null},t.prototype.getCoordinate=function(){return this.geometry.coordinate},t.prototype.getDefaultLabelCfg=function(t,e){var n=this.geometry,r=n.type,a=n.theme;return"polygon"===r||"interval"===r&&"middle"===e||t<0&&!["line","point","path"].includes(r)?(0,i.get)(a,"innerLabels",{}):(0,i.get)(a,"labels",{})},t.prototype.getThemedLabelCfg=function(t){var e=this.geometry,n=this.getDefaultLabelCfg(),r=e.type,a=e.theme;return"polygon"===r||t.offset<0&&!["line","point","path"].includes(r)?(0,i.deepMix)({},n,a.innerLabels,t):(0,i.deepMix)({},n,a.labels,t)},t.prototype.setLabelPosition=function(t,e,n,r){},t.prototype.getLabelOffset=function(t){var e=this.getCoordinate(),n=this.getOffsetVector(t);return e.isTransposed?n[0]:n[1]},t.prototype.getLabelOffsetPoint=function(t,e,n){var r=t.offset,i=this.getCoordinate().isTransposed,a=i?"x":"y",o=i?1:-1,s={x:0,y:0};return s[a]=e>0||1===n?r*o:r*o*-1,s},t.prototype.getLabelPoint=function(t,e,n){var r=this.getCoordinate(),a=t.content.length;function o(e,n,r){void 0===r&&(r=!1);var a=e;return(0,i.isArray)(a)&&(a=1===t.content.length?r?u(a):a.length<=2?a[e.length-1]:u(a):a[n]),a}var l={content:t.content[n],x:0,y:0,start:{x:0,y:0},color:"#fff"},c=(0,i.isArray)(e.shape)?e.shape[0]:e.shape,f="funnel"===c||"pyramid"===c;if("polygon"===this.geometry.type){var h=(0,s.getPolygonCentroid)(e.x,e.y);l.x=h[0],l.y=h[1]}else"interval"!==this.geometry.type||f?(l.x=o(e.x,n),l.y=o(e.y,n)):(l.x=o(e.x,n,!0),l.y=o(e.y,n));if(f){var p=(0,i.get)(e,"nextPoints"),d=(0,i.get)(e,"points");if(p){var g=r.convert(d[1]),y=r.convert(p[1]);l.x=(g.x+y.x)/2,l.y=(g.y+y.y)/2}else if("pyramid"===c){g=r.convert(d[1]),y=r.convert(d[2]);l.x=(g.x+y.x)/2,l.y=(g.y+y.y)/2}}t.position&&this.setLabelPosition(l,e,n,t.position);var v=this.getLabelOffsetPoint(t,n,a);return l.start={x:l.x,y:l.y},l.x+=v.x,l.y+=v.y,l.color=e.color,l},t.prototype.getLabelAlign=function(t,e,n){var r="center";if(this.getCoordinate().isTransposed){var i=t.offset;r=i<0?"right":0===i?"center":"left",n>1&&0===e&&("right"===r?r="left":"left"===r&&(r="right"))}return r},t.prototype.getLabelId=function(t){var e=this.geometry,n=e.type,r=e.getXScale(),i=e.getYScale(),o=t[a.FIELD_ORIGIN],s=e.getElementId(t);return"line"===n||"area"===n?s+=" ".concat(o[r.field]):"path"===n&&(s+=" ".concat(o[r.field],"-").concat(o[i.field])),s},t.prototype.getLabelsRenderer=function(){var t=this.geometry,e=t.labelsContainer,n=t.labelOption,r=t.canvasRegion,a=t.animateOption,s=this.geometry.coordinate,u=this.labelsRenderer;return u||(u=new l.default({container:e,layout:(0,i.get)(n,["cfg","layout"],{type:this.defaultLayout})}),this.labelsRenderer=u),u.region=r,u.animate=!!a&&(0,o.getDefaultAnimateCfg)("label",s),u},t.prototype.getLabelCfgs=function(t){var e=this,n=this.geometry,o=n.labelOption,s=n.scales,l=n.coordinate,u=o,c=u.fields,f=u.callback,h=u.cfg,p=c.map((function(t){return s[t]})),d=[];return(0,i.each)(t,(function(t,n){var o,s=t[a.FIELD_ORIGIN],u=e.getLabelText(s,p);if(f){var g=c.map((function(t){return s[t]}));if(o=f.apply(void 0,r.__spreadArray([],r.__read(g),!1)),(0,i.isNil)(o))return void d.push(null)}var y=r.__assign(r.__assign({id:e.getLabelId(t),elementId:e.geometry.getElementId(t),data:s,mappingData:t,coordinate:l},h),o);(0,i.isFunction)(y.position)&&(y.position=y.position(s,t,n));var v=e.getLabelOffset(y.offset||0),m=e.getDefaultLabelCfg(v,y.position);(y=(0,i.deepMix)({},m,y)).offset=e.getLabelOffset(y.offset||0);var _=y.content;(0,i.isFunction)(_)?y.content=_(s,t,n):(0,i.isUndefined)(_)&&(y.content=u[0]),d.push(y)})),d},t.prototype.getLabelText=function(t,e){var n=[];return(0,i.each)(e,(function(e){var r=t[e.field];r=(0,i.isArray)(r)?r.map((function(t){return e.getText(t)})):e.getText(r),(0,i.isNil)(r)||""===r?n.push(null):n.push(r)})),n},t.prototype.getOffsetVector=function(t){void 0===t&&(t=0);var e=this.getCoordinate(),n=0;return(0,i.isNumber)(t)&&(n=t),e.isTransposed?e.applyMatrix(n,0):e.applyMatrix(0,n)},t.prototype.getGeometryShapes=function(){var t=this.geometry,e={};return(0,i.each)(t.elementsMap,(function(t,n){e[n]=t.shape})),(0,i.each)(t.getOffscreenGroup().getChildren(),(function(n){var r=t.getElementId(n.get("origin").mappingData);e[r]=n})),e},t}();e.default=c},function(t,e,n){"use strict";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})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.addEndArrow=e.addStartArrow=e.getShortenOffset=void 0;var i=n(0),a=n(62),o=Math.sin,s=Math.cos,l=Math.atan2,u=Math.PI;function c(t,e,n,r,i,c,f){var h=e.stroke,p=e.lineWidth,d=l(r-c,n-i),g=new a.Path({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*s(u/6)+","+10*o(u/6)+" L0,0 L"+10*s(u/6)+",-"+10*o(u/6),stroke:h,lineWidth:p}});g.translate(i,c),g.rotateAtPoint(i,c,d),t.set(f?"startArrowShape":"endArrowShape",g)}function f(t,e,n,r,u,c,f){var h=e.startArrow,p=e.endArrow,d=e.stroke,g=e.lineWidth,y=f?h:p,v=y.d,m=y.fill,_=y.stroke,x=y.lineWidth,b=(0,i.__rest)(y,["d","fill","stroke","lineWidth"]),M=l(r-c,n-u);v&&(u-=s(M)*v,c-=o(M)*v);var C=new a.Path({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:(0,i.__assign)((0,i.__assign)({},b),{stroke:_||d,lineWidth:x||g,fill:m})});C.translate(u,c),C.rotateAtPoint(u,c,M),t.set(f?"startArrowShape":"endArrowShape",C)}e.getShortenOffset=function(t,e,n,r,i){var a=l(r-e,n-t);return{dx:s(a)*i,dy:o(a)*i}},e.addStartArrow=function(t,e,n,i,a,o){"object"===r(e.startArrow)?f(t,e,n,i,a,o,!0):e.startArrow?c(t,e,n,i,a,o,!0):t.set("startArrowShape",null)},e.addEndArrow=function(t,e,n,i,a,o){"object"===r(e.endArrow)?f(t,e,n,i,a,o,!1):e.endArrow?c(t,e,n,i,a,o,!1):t.set("startArrowShape",null)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(20);e.default=function(t,e,n,i,a,o,s){var l=Math.min(t,n),u=Math.max(t,n),c=Math.min(e,i),f=Math.max(e,i),h=a/2;return o>=l-h&&o<=u+h&&s>=c-h&&s<=f+h&&r.Line.pointToLine(t,e,n,i,o,s)<=a/2}},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Text=e.Rect=e.Polyline=e.Polygon=e.Path=e.Marker=e.Line=e.Image=e.Ellipse=e.Dom=e.Circle=e.Base=void 0;var i=n(22);Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return r(i).default}});var a=n(505);Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return r(a).default}});var o=n(506);Object.defineProperty(e,"Dom",{enumerable:!0,get:function(){return r(o).default}});var s=n(507);Object.defineProperty(e,"Ellipse",{enumerable:!0,get:function(){return r(s).default}});var l=n(508);Object.defineProperty(e,"Image",{enumerable:!0,get:function(){return r(l).default}});var u=n(509);Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return r(u).default}});var c=n(510);Object.defineProperty(e,"Marker",{enumerable:!0,get:function(){return r(c).default}});var f=n(512);Object.defineProperty(e,"Path",{enumerable:!0,get:function(){return r(f).default}});var h=n(513);Object.defineProperty(e,"Polygon",{enumerable:!0,get:function(){return r(h).default}});var p=n(514);Object.defineProperty(e,"Polyline",{enumerable:!0,get:function(){return r(p).default}});var d=n(515);Object.defineProperty(e,"Rect",{enumerable:!0,get:function(){return r(d).default}});var g=n(517);Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return r(g).default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getConstraint=e.getShapeAttrs=void 0;var r=n(1),i=n(43),a=n(6),o=n(52);function s(t,e,n,i,a){var s=[];if(t.length){for(var l=[],u=[],c=0,f=t.length;c<f;c++){var h=t[c];l.push(h[1]),u.push(h[0])}u=u.reverse(),(0,r.each)([l,u],(function(t,r){var c=[],f=i.parsePoints(t),h=f[0];1===l.length&&1===u.length?c=0===r?[["M",h.x-.5,h.y],["L",h.x+.5,h.y]]:[["L",h.x+.5,h.y],["L",h.x-.5,h.y]]:(e&&f.push({x:h.x,y:h.y}),c=n?(0,o.getSplinePath)(f,!1,a):(0,o.getLinePath)(f,!1),r>0&&(c[0][0]="L")),s=s.concat(c)})),s.push(["Z"])}return s}e.getShapeAttrs=function(t,e,n,r,o){for(var l=(0,a.getStyle)(t,e,!e,"lineWidth"),u=t.connectNulls,c=t.isInCircle,f=t.points,h=t.showSinglePoint,p=(0,i.getPathPoints)(f,u,h),d=[],g=0,y=p.length;g<y;g++){var v=p[g];d=d.concat(s(v,c,n,r,o))}return l.path=d,l},e.getConstraint=function(t){var e=t.start,n=t.end;return[[e.x,n.y],[n.x,e.y]]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(17));e.default=function(t,e){return!!(0,r.default)(t)&&t.indexOf(e)>-1}},function(t,e,n){"use strict";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})(t)}Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){return"object"===r(t)&&null!==t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(45)),a=r.__importDefault(n(18)),o=Object.values?function(t){return Object.values(t)}:function(t){var e=[];return(0,i.default)(t,(function(n,r){(0,a.default)(t)&&"prototype"===r||e.push(n)})),e};e.default=o},function(t,e,n){"use strict";function r(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,i){return e&&r(t,e),n&&r(t,n),i&&r(t,i),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){function e(e){var n=t.call(this)||this;n.destroyed=!1;var r=e.visible,i=void 0===r||r;return n.visible=i,n}return r.__extends(e,t),e.prototype.show=function(){this.visible||this.changeVisible(!0)},e.prototype.hide=function(){this.visible&&this.changeVisible(!1)},e.prototype.destroy=function(){this.off(),this.destroyed=!0},e.prototype.changeVisible=function(t){this.visible!==t&&(this.visible=t)},e}(r.__importDefault(n(154)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerFacet=e.getFacet=e.Facet=void 0;var r=n(1),i=n(37);Object.defineProperty(e,"Facet",{enumerable:!0,get:function(){return i.Facet}});var a={};e.getFacet=function(t){return a[(0,r.lowerCase)(t)]};e.registerFacet=function(t,e){a[(0,r.lowerCase)(t)]=e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getAxisTitleText=e.getAxisDirection=e.getAxisOption=e.getCircleAxisCenterRadius=e.getAxisTitleOptions=e.getAxisThemeCfg=e.getAxisFactorByRegion=e.isVertical=e.getAxisFactor=e.getAxisRegion=e.getCircleAxisRelativeRegion=e.getLineAxisRelativeRegion=void 0;var r=n(1),i=n(2),a=n(38),o=n(8);function s(t){var e,n;switch(t){case i.DIRECTION.TOP:e={x:0,y:1},n={x:1,y:1};break;case i.DIRECTION.RIGHT:e={x:1,y:0},n={x:1,y:1};break;case i.DIRECTION.BOTTOM:e={x:0,y:0},n={x:1,y:0};break;case i.DIRECTION.LEFT:e={x:0,y:0},n={x:0,y:1};break;default:e=n={x:0,y:0}}return{start:e,end:n}}function l(t){var e,n;return t.isTransposed?(e={x:0,y:0},n={x:1,y:0}):(e={x:0,y:0},n={x:0,y:1}),{start:e,end:n}}function u(t){var e=t.start,n=t.end;return e.x===n.x}e.getLineAxisRelativeRegion=s,e.getCircleAxisRelativeRegion=l,e.getAxisRegion=function(t,e){var n={start:{x:0,y:0},end:{x:0,y:0}};t.isRect?n=s(e):t.isPolar&&(n=l(t));var r=n.start,i=n.end;return{start:t.convert(r),end:t.convert(i)}},e.getAxisFactor=function(t,e){return t.isRect?t.isTransposed?[i.DIRECTION.RIGHT,i.DIRECTION.BOTTOM].includes(e)?1:-1:[i.DIRECTION.BOTTOM,i.DIRECTION.RIGHT].includes(e)?-1:1:t.isPolar&&t.x.start<0?-1:1},e.isVertical=u,e.getAxisFactorByRegion=function(t,e){var n=t.start,r=t.end;return u(t)?(n.y-r.y)*(e.x-n.x)>0?1:-1:(r.x-n.x)*(n.y-e.y)>0?-1:1},e.getAxisThemeCfg=function(t,e){var n=(0,r.get)(t,["components","axis"],{});return(0,r.deepMix)({},(0,r.get)(n,["common"],{}),(0,r.deepMix)({},(0,r.get)(n,[e],{})))},e.getAxisTitleOptions=function(t,e,n){var i=(0,r.get)(t,["components","axis"],{});return(0,r.deepMix)({},(0,r.get)(i,["common","title"],{}),(0,r.deepMix)({},(0,r.get)(i,[e,"title"],{})),n)},e.getCircleAxisCenterRadius=function(t){var e=t.x,n=t.y,r=t.circleCenter,i=n.start>n.end,a=t.isTransposed?t.convert({x:i?0:1,y:0}):t.convert({x:0,y:i?0:1}),s=[a.x-r.x,a.y-r.y],l=[1,0],u=a.y>r.y?o.vec2.angle(s,l):-1*o.vec2.angle(s,l),c=u+(e.end-e.start);return{center:r,radius:Math.sqrt(Math.pow(a.x-r.x,2)+Math.pow(a.y-r.y,2)),startAngle:u,endAngle:c}},e.getAxisOption=function(t,e){return(0,r.isBoolean)(t)?!1!==t&&{}:(0,r.get)(t,[e])},e.getAxisDirection=function(t,e){return(0,r.get)(t,"position",e)},e.getAxisTitleText=function(t,e){return(0,r.get)(e,["title","text"],(0,a.getName)(t))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.forEach=e.sqrLen=e.len=e.sqrDist=e.dist=e.div=e.mul=e.sub=e.equals=e.exactEquals=e.str=e.zero=e.angle=e.rotateZ=e.rotateY=e.rotateX=e.transformQuat=e.transformMat3=e.transformMat4=e.random=e.bezier=e.hermite=e.lerp=e.cross=e.dot=e.normalize=e.inverse=e.negate=e.squaredLength=e.squaredDistance=e.distance=e.scaleAndAdd=e.scale=e.round=e.max=e.min=e.floor=e.ceil=e.divide=e.multiply=e.subtract=e.add=e.set=e.copy=e.fromValues=e.length=e.clone=e.create=void 0;var r,i=n(0).__importStar(n(28));function a(){var t=new i.ARRAY_TYPE(3);return i.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function o(t){var e=t[0],n=t[1],r=t[2];return Math.hypot(e,n,r)}function s(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function l(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function u(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function c(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return Math.hypot(n,r,i)}function f(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return n*n+r*r+i*i}function h(t){var e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function p(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}e.create=a,e.clone=function(t){var e=new i.ARRAY_TYPE(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},e.length=o,e.fromValues=function(t,e,n){var r=new i.ARRAY_TYPE(3);return r[0]=t,r[1]=e,r[2]=n,r},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},e.set=function(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t},e.subtract=s,e.multiply=l,e.divide=u,e.ceil=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},e.floor=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},e.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t},e.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t},e.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},e.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t},e.scaleAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t},e.distance=c,e.squaredDistance=f,e.squaredLength=h,e.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t},e.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t},e.normalize=function(t,e){var n=e[0],r=e[1],i=e[2],a=n*n+r*r+i*i;return a>0&&(a=1/Math.sqrt(a)),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a,t},e.dot=p,e.cross=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=n[0],s=n[1],l=n[2];return t[0]=i*l-a*s,t[1]=a*o-r*l,t[2]=r*s-i*o,t},e.lerp=function(t,e,n,r){var i=e[0],a=e[1],o=e[2];return t[0]=i+r*(n[0]-i),t[1]=a+r*(n[1]-a),t[2]=o+r*(n[2]-o),t},e.hermite=function(t,e,n,r,i,a){var o=a*a,s=o*(2*a-3)+1,l=o*(a-2)+a,u=o*(a-1),c=o*(3-2*a);return t[0]=e[0]*s+n[0]*l+r[0]*u+i[0]*c,t[1]=e[1]*s+n[1]*l+r[1]*u+i[1]*c,t[2]=e[2]*s+n[2]*l+r[2]*u+i[2]*c,t},e.bezier=function(t,e,n,r,i,a){var o=1-a,s=o*o,l=a*a,u=s*o,c=3*a*s,f=3*l*o,h=l*a;return t[0]=e[0]*u+n[0]*c+r[0]*f+i[0]*h,t[1]=e[1]*u+n[1]*c+r[1]*f+i[1]*h,t[2]=e[2]*u+n[2]*c+r[2]*f+i[2]*h,t},e.random=function(t,e){e=e||1;var n=2*i.RANDOM()*Math.PI,r=2*i.RANDOM()-1,a=Math.sqrt(1-r*r)*e;return t[0]=Math.cos(n)*a,t[1]=Math.sin(n)*a,t[2]=r*e,t},e.transformMat4=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=n[3]*r+n[7]*i+n[11]*a+n[15];return o=o||1,t[0]=(n[0]*r+n[4]*i+n[8]*a+n[12])/o,t[1]=(n[1]*r+n[5]*i+n[9]*a+n[13])/o,t[2]=(n[2]*r+n[6]*i+n[10]*a+n[14])/o,t},e.transformMat3=function(t,e,n){var r=e[0],i=e[1],a=e[2];return t[0]=r*n[0]+i*n[3]+a*n[6],t[1]=r*n[1]+i*n[4]+a*n[7],t[2]=r*n[2]+i*n[5]+a*n[8],t},e.transformQuat=function(t,e,n){var r=n[0],i=n[1],a=n[2],o=n[3],s=e[0],l=e[1],u=e[2],c=i*u-a*l,f=a*s-r*u,h=r*l-i*s,p=i*h-a*f,d=a*c-r*h,g=r*f-i*c,y=2*o;return c*=y,f*=y,h*=y,p*=2,d*=2,g*=2,t[0]=s+c+p,t[1]=l+f+d,t[2]=u+h+g,t},e.rotateX=function(t,e,n,r){var i=[],a=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],a[0]=i[0],a[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),a[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},e.rotateY=function(t,e,n,r){var i=[],a=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],a[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),a[1]=i[1],a[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},e.rotateZ=function(t,e,n,r){var i=[],a=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],a[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),a[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),a[2]=i[2],t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},e.angle=function(t,e){var n=t[0],r=t[1],i=t[2],a=e[0],o=e[1],s=e[2],l=Math.sqrt(n*n+r*r+i*i)*Math.sqrt(a*a+o*o+s*s),u=l&&p(t,e)/l;return Math.acos(Math.min(Math.max(u,-1),1))},e.zero=function(t){return t[0]=0,t[1]=0,t[2]=0,t},e.str=function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]},e.equals=function(t,e){var n=t[0],r=t[1],a=t[2],o=e[0],s=e[1],l=e[2];return Math.abs(n-o)<=i.EPSILON*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-s)<=i.EPSILON*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(a-l)<=i.EPSILON*Math.max(1,Math.abs(a),Math.abs(l))},e.sub=s,e.mul=l,e.div=u,e.dist=c,e.sqrDist=f,e.len=o,e.sqrLen=h,e.forEach=(r=a(),function(t,e,n,i,a,o){var s,l;for(e||(e=3),n||(n=0),l=i?Math.min(i*e+n,t.length):t.length,s=n;s<l;s+=e)r[0]=t[s],r[1]=t[s+1],r[2]=t[s+2],a(r,r,o),t[s]=r[0],t[s+1]=r[1],t[s+2]=r[2];return t})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.invert=e.multiplyVec2=e.multiplyMatrix=void 0,e.multiplyMatrix=function(t,e){var n=[],r=t[0],i=t[1],a=t[2],o=t[3],s=t[4],l=t[5],u=t[6],c=t[7],f=t[8],h=e[0],p=e[1],d=e[2],g=e[3],y=e[4],v=e[5],m=e[6],_=e[7],x=e[8];return n[0]=h*r+p*o+d*u,n[1]=h*i+p*s+d*c,n[2]=h*a+p*l+d*f,n[3]=g*r+y*o+v*u,n[4]=g*i+y*s+v*c,n[5]=g*a+y*l+v*f,n[6]=m*r+_*o+x*u,n[7]=m*i+_*s+x*c,n[8]=m*a+_*l+x*f,n},e.multiplyVec2=function(t,e){var n=[],r=e[0],i=e[1];return n[0]=t[0]*r+t[3]*i+t[6],n[1]=t[1]*r+t[4]*i+t[7],n},e.invert=function(t){var e=[],n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s=t[5],l=t[6],u=t[7],c=t[8],f=c*o-s*u,h=-c*a+s*l,p=u*a-o*l,d=n*f+r*h+i*p;return d?(d=1/d,e[0]=f*d,e[1]=(-c*r+i*u)*d,e[2]=(s*r-i*o)*d,e[3]=h*d,e[4]=(c*n-i*l)*d,e[5]=(-s*n+i*a)*d,e[6]=p*d,e[7]=(-u*n+r*l)*d,e[8]=(o*n-r*a)*d,e):null}},function(t,e,n){"use strict";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})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.timerFlush=e.timer=e.Timer=e.now=void 0;var i,a,o=0,s=0,l=0,u=0,c=0,f=0,h="object"===("undefined"==typeof performance?"undefined":r(performance))&&performance.now?performance:Date,p="object"===("undefined"==typeof window?"undefined":r(window))&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function d(){return c||(p(g),c=h.now()+f)}function g(){c=0}function y(){this._call=this._time=this._next=null}function v(t,e,n){var r=new y;return r.restart(t,e,n),r}function m(){d(),++o;for(var t,e=i;e;)(t=c-e._time)>=0&&e._call.call(null,t),e=e._next;--o}function _(){c=(u=h.now())+f,o=s=0;try{m()}finally{o=0,function(){var t,e,n=i,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:i=e);a=t,b(r)}(),c=0}}function x(){var t=h.now(),e=t-u;e>1e3&&(f-=e,u=t)}function b(t){o||(s&&(s=clearTimeout(s)),t-c>24?(t<1/0&&(s=setTimeout(_,t-h.now()-f)),l&&(l=clearInterval(l))):(l||(u=h.now(),l=setInterval(x,1e3)),o=1,p(_)))}e.now=d,e.Timer=y,y.prototype=v.prototype={constructor:y,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?d():+n)+(null==e?0:+e),this._next||a===this||(a?a._next=this:i=this,a=this),this._call=t,this._time=n,b()},stop:function(){this._call&&(this._call=null,this._time=1/0,b())}},e.timer=v,e.timerFlush=m},function(t,e,n){"use strict";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})(t)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),a=n(48),o=i.__importDefault(n(167)),s=n(170),l=i.__importDefault(n(171)),u=i.__importDefault(n(68)),c=i.__importDefault(n(172)),f=i.__importDefault(n(173)),h=i.__importDefault(n(169)),p=i.__importStar(n(98));e.default=function(t,e){var n,i=r(e);return null==e||"boolean"===i?(0,h.default)(e):("number"===i?u.default:"string"===i?(n=(0,a.color)(e))?(e=n,o.default):f.default:e instanceof a.color?o.default:e instanceof Date?l.default:(0,p.isNumberArray)(e)?p.default:Array.isArray(e)?s.genericArray:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?c.default:u.default)(t,e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hsl=e.hslConvert=e.Rgb=e.rgb=e.rgbConvert=e.brighter=e.darker=e.Color=void 0;var r=n(0).__importStar(n(96));function i(){}e.Color=i,e.darker=.7,e.brighter=1/e.darker;var a="\\s*([+-]?\\d+)\\s*",o="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",s="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",l=/^#([0-9a-f]{3,8})$/,u=new RegExp("^rgb\\("+[a,a,a]+"\\)$"),c=new RegExp("^rgb\\("+[s,s,s]+"\\)$"),f=new RegExp("^rgba\\("+[a,a,a,o]+"\\)$"),h=new RegExp("^rgba\\("+[s,s,s,o]+"\\)$"),p=new RegExp("^hsl\\("+[o,s,s]+"\\)$"),d=new RegExp("^hsla\\("+[o,s,s,o]+"\\)$"),g={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function y(){return this.rgb().formatHex()}function v(){return this.rgb().formatRgb()}function m(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=l.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?_(e):3===n?new C(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?x(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?x(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=u.exec(t))?new C(e[1],e[2],e[3],1):(e=c.exec(t))?new C(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=f.exec(t))?x(e[1],e[2],e[3],e[4]):(e=h.exec(t))?x(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=p.exec(t))?w(e[1],e[2]/100,e[3]/100,1):(e=d.exec(t))?w(e[1],e[2]/100,e[3]/100,e[4]):g.hasOwnProperty(t)?_(g[t]):"transparent"===t?new C(NaN,NaN,NaN,0):null}function _(t){return new C(t>>16&255,t>>8&255,255&t,1)}function x(t,e,n,r){return r<=0&&(t=e=n=NaN),new C(t,e,n,r)}function b(t){return t instanceof i||(t=m(t)),t?new C((t=t.rgb()).r,t.g,t.b,t.opacity):new C}function M(t,e,n,r){return 1===arguments.length?b(t):new C(t,e,n,null==r?1:r)}function C(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function P(){return"#"+O(this.r)+O(this.g)+O(this.b)}function S(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function O(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function w(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new E(t,e,n,r)}function A(t){if(t instanceof E)return new E(t.h,t.s,t.l,t.opacity);if(t instanceof i||(t=m(t)),!t)return new E;if(t instanceof E)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,a=Math.min(e,n,r),o=Math.max(e,n,r),s=NaN,l=o-a,u=(o+a)/2;return l?(s=e===o?(n-r)/l+6*(n<r):n===o?(r-e)/l+2:(e-n)/l+4,l/=u<.5?o+a:2-o-a,s*=60):l=u>0&&u<1?0:s,new E(s,l,u,t.opacity)}function T(t,e,n,r){return 1===arguments.length?A(t):new E(t,e,n,null==r?1:r)}function E(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function I(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}(0,r.default)(i,m,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:y,formatHex:y,formatHsl:function(){return A(this).formatHsl()},formatRgb:v,toString:v}),e.default=m,e.rgbConvert=b,e.rgb=M,e.Rgb=C,(0,r.default)(C,M,(0,r.extend)(i,{brighter:function(t){return t=null==t?e.brighter:Math.pow(e.brighter,t),new C(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?e.darker:Math.pow(e.darker,t),new C(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:P,formatHex:P,formatRgb:S,toString:S})),e.hslConvert=A,e.hsl=T,(0,r.default)(E,T,(0,r.extend)(i,{brighter:function(t){return t=null==t?e.brighter:Math.pow(e.brighter,t),new E(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?e.darker:Math.pow(e.darker,t),new E(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new C(I(t>=240?t-240:t+120,i,r),I(t,i,r),I(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.extend=void 0,e.default=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t},e.extend=function(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}},function(t,e,n){"use strict";function r(t,e,n,r,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*r+o*i)/6}Object.defineProperty(e,"__esModule",{value:!0}),e.basis=void 0,e.basis=r,e.default=function(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),a=t[i],o=t[i+1],s=i>0?t[i-1]:2*a-o,l=i<e-1?t[i+2]:2*o-a;return r((n-i/e)*e,s,a,o,l)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isNumberArray=void 0,e.default=function(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(a){for(n=0;n<r;++n)i[n]=t[n]*(1-a)+e[n]*a;return i}},e.isNumberArray=function(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}},function(t,e,n){"use strict";function r(t,e){return t&&e?{minX:Math.min(t.minX,e.minX),minY:Math.min(t.minY,e.minY),maxX:Math.max(t.maxX,e.maxX),maxY:Math.max(t.maxY,e.maxY)}:t||e}Object.defineProperty(e,"__esModule",{value:!0}),e.mergeArrowBBox=e.mergeBBox=void 0,e.mergeBBox=r,e.mergeArrowBBox=function(t,e){var n=t.get("startArrowShape"),i=t.get("endArrowShape");return n&&(e=r(e,n.getCanvasBBox())),i&&(e=r(e,i.getCanvasBBox())),e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isSamePoint=void 0;var r=n(1);function i(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function a(t,e){return i(t)*i(e)?(t[0]*e[0]+t[1]*e[1])/(i(t)*i(e)):1}function o(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(a(t,e))}function s(t,e){return t[0]===e[0]&&t[1]===e[1]}e.isSamePoint=s,e.default=function(t,e){var n=e[1],i=e[2],l=(0,r.mod)((0,r.toRadian)(e[3]),2*Math.PI),u=e[4],c=e[5],f=t[0],h=t[1],p=e[6],d=e[7],g=Math.cos(l)*(f-p)/2+Math.sin(l)*(h-d)/2,y=-1*Math.sin(l)*(f-p)/2+Math.cos(l)*(h-d)/2,v=g*g/(n*n)+y*y/(i*i);v>1&&(n*=Math.sqrt(v),i*=Math.sqrt(v));var m=n*n*(y*y)+i*i*(g*g),_=m?Math.sqrt((n*n*(i*i)-m)/m):1;u===c&&(_*=-1),isNaN(_)&&(_=0);var x=i?_*n*y/i:0,b=n?_*-i*g/n:0,M=(f+p)/2+Math.cos(l)*x-Math.sin(l)*b,C=(h+d)/2+Math.sin(l)*x+Math.cos(l)*b,P=[(g-x)/n,(y-b)/i],S=[(-1*g-x)/n,(-1*y-b)/i],O=o([1,0],P),w=o(P,S);return a(P,S)<=-1&&(w=Math.PI),a(P,S)>=1&&(w=0),0===c&&w>0&&(w-=2*Math.PI),1===c&&w<0&&(w+=2*Math.PI),{cx:M,cy:C,rx:s(t,[p,d])?0:n,ry:s(t,[p,d])?0:i,startAngle:O,endAngle:O+w,xRotation:l,arcFlag:u,sweepFlag:c}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GAP=e.DODGE_RATIO=e.MARGIN_RATIO=e.DEFAULT_Y=void 0,e.DEFAULT_Y=0,e.MARGIN_RATIO=.5,e.DODGE_RATIO=.5,e.GAP=.05},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Size=e.Shape=e.Position=e.Opacity=e.Color=e.Attribute=e.getAttribute=e.registerAttribute=void 0;var r=n(5),i=r.__importDefault(n(40));e.Attribute=i.default;var a=r.__importDefault(n(397));e.Color=a.default;var o=r.__importDefault(n(398));e.Opacity=o.default;var s=r.__importDefault(n(399));e.Position=s.default;var l=r.__importDefault(n(400));e.Shape=l.default;var u=r.__importDefault(n(401));e.Size=u.default;var c=n(402);Object.defineProperty(e,"getAttribute",{enumerable:!0,get:function(){return c.getAttribute}}),Object.defineProperty(e,"registerAttribute",{enumerable:!0,get:function(){return c.registerAttribute}}),(0,c.registerAttribute)("Color",a.default),(0,c.registerAttribute)("Opacity",o.default),(0,c.registerAttribute)("Position",s.default),(0,c.registerAttribute)("Shape",l.default),(0,c.registerAttribute)("Size",u.default),r.__exportStar(n(190),e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerTickMethod=e.getTickMethod=e.registerScale=e.getScale=e.Scale=e.Quantize=e.Quantile=e.TimeCat=e.Time=e.Pow=e.Log=e.Linear=e.Identity=e.Category=void 0;var r=n(0),i=r.__importDefault(n(59));e.Scale=i.default;var a=r.__importDefault(n(192));e.Category=a.default;var o=r.__importDefault(n(403));e.TimeCat=o.default;var s=r.__importDefault(n(194));e.Linear=s.default;var l=r.__importDefault(n(405));e.Log=l.default;var u=r.__importDefault(n(406));e.Pow=u.default;var c=r.__importDefault(n(407));e.Time=c.default;var f=r.__importDefault(n(195));e.Quantize=f.default;var h=r.__importDefault(n(408));e.Quantile=h.default;var p=n(409);Object.defineProperty(e,"getScale",{enumerable:!0,get:function(){return p.getScale}}),Object.defineProperty(e,"registerScale",{enumerable:!0,get:function(){return p.registerScale}});var d=r.__importDefault(n(410));e.Identity=d.default;var g=n(411);Object.defineProperty(e,"getTickMethod",{enumerable:!0,get:function(){return g.getTickMethod}}),Object.defineProperty(e,"registerTickMethod",{enumerable:!0,get:function(){return g.registerTickMethod}}),(0,p.registerScale)("cat",a.default),(0,p.registerScale)("category",a.default),(0,p.registerScale)("identity",d.default),(0,p.registerScale)("linear",s.default),(0,p.registerScale)("log",l.default),(0,p.registerScale)("pow",u.default),(0,p.registerScale)("time",c.default),(0,p.registerScale)("timeCat",o.default),(0,p.registerScale)("quantize",f.default),(0,p.registerScale)("quantile",h.default)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1);function i(t,e,n){return("ceil"===n?Math.ceil(t/e):"floor"===n?Math.floor(t/e):Math.round(t/e))*e}e.default=function(t,e,n){var a=i(t,n,"floor"),o=i(e,n,"ceil");a=(0,r.fixedBase)(a,n),o=(0,r.fixedBase)(o,n);for(var s=[],l=Math.max((o-a)/(Math.pow(2,12)-1),n),u=a;u<=o;u+=l){var c=(0,r.fixedBase)(u,l);s.push(c)}return{min:a,max:o,ticks:s}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1);e.default=function(t,e,n){var i,a=t.minLimit,o=t.maxLimit,s=t.min,l=t.max,u=t.tickCount,c=void 0===u?5:u,f=(0,r.isNil)(a)?(0,r.isNil)(e)?s:e:a,h=(0,r.isNil)(o)?(0,r.isNil)(n)?l:n:o;if(f>h&&(h=(i=[f,h])[0],f=i[1]),c<=2)return[f,h];for(var p=(h-f)/(c-1),d=[],g=0;g<c;g++)d.push(f+p*g);return d}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(12),a=n(1),o={none:[],point:["x","y"],region:["start","end"],points:["points"],circle:["center","radius","startAngle","endAngle"]},s=function(t){function e(e){var n=t.call(this,e)||this;return n.initCfg(),n}return(0,r.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{id:"",name:"",type:"",locationType:"none",offsetX:0,offsetY:0,animate:!1,capture:!0,updateAutoRender:!1,animateOption:{appear:null,update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},events:null,defaultCfg:{},visible:!0}},e.prototype.clear=function(){},e.prototype.update=function(t){var e=this,n=this.get("defaultCfg")||{};(0,a.each)(t,(function(t,r){var i=t;e.get(r)!==t&&((0,a.isObject)(t)&&n[r]&&(i=(0,a.deepMix)({},n[r],t)),e.set(r,i))})),this.updateInner(t),this.afterUpdate(t)},e.prototype.updateInner=function(t){},e.prototype.afterUpdate=function(t){(0,a.hasKey)(t,"visible")&&(t.visible?this.show():this.hide()),(0,a.hasKey)(t,"capture")&&this.setCapture(t.capture)},e.prototype.getLayoutBBox=function(){return this.getBBox()},e.prototype.getLocationType=function(){return this.get("locationType")},e.prototype.getOffset=function(){return{offsetX:this.get("offsetX"),offsetY:this.get("offsetY")}},e.prototype.setOffset=function(t,e){this.update({offsetX:t,offsetY:e})},e.prototype.setLocation=function(t){var e=(0,r.__assign)({},t);this.update(e)},e.prototype.getLocation=function(){var t=this,e={},n=this.get("locationType"),r=o[n];return(0,a.each)(r,(function(n){e[n]=t.get(n)})),e},e.prototype.isList=function(){return!1},e.prototype.isSlider=function(){return!1},e.prototype.init=function(){},e.prototype.initCfg=function(){var t=this,e=this.get("defaultCfg");(0,a.each)(e,(function(e,n){var r=t.get(n);if((0,a.isObject)(r)){var i=(0,a.deepMix)({},e,r);t.set(n,i)}}))},e}(i.Base);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(8),o=n(1),s=r.__importDefault(n(9)),l=n(33),u=n(200),c=r.__importDefault(n(21)),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"axis",ticks:[],line:{},tickLine:{},subTickLine:null,title:null,label:{},verticalFactor:1,verticalLimitLength:null,overlapOrder:["autoRotate","autoEllipsis","autoHide"],tickStates:{},optimize:{},defaultCfg:{line:{style:{lineWidth:1,stroke:c.default.lineColor}},tickLine:{style:{lineWidth:1,stroke:c.default.lineColor},alignTick:!0,length:5,displayWithLabel:!0},subTickLine:{style:{lineWidth:1,stroke:c.default.lineColor},count:4,length:2},label:{autoRotate:!0,autoHide:!1,autoEllipsis:!1,style:{fontSize:12,fill:c.default.textColor,fontFamily:c.default.fontFamily,fontWeight:"normal"},offset:10,offsetX:0,offsetY:0},title:{autoRotate:!0,spacing:5,position:"center",style:{fontSize:12,fill:c.default.textColor,textBaseline:"middle",fontFamily:c.default.fontFamily,textAlign:"center"},iconStyle:{fill:c.default.descriptionIconFill,stroke:c.default.descriptionIconStroke},description:""},tickStates:{active:{labelStyle:{fontWeight:500},tickLineStyle:{lineWidth:2}},inactive:{labelStyle:{fill:c.default.uncheckedColor}}},optimize:{enable:!0,threshold:400}},theme:{}})},e.prototype.renderInner=function(t){this.get("line")&&this.drawLine(t),this.drawTicks(t),this.get("title")&&this.drawTitle(t)},e.prototype.isList=function(){return!0},e.prototype.getItems=function(){return this.get("ticks")},e.prototype.setItems=function(t){this.update({ticks:t})},e.prototype.updateItem=function(t,e){(0,o.mix)(t,e),this.clear(),this.render()},e.prototype.clearItems=function(){var t=this.getElementByLocalId("label-group");t&&t.clear()},e.prototype.setItemState=function(t,e,n){t[e]=n,this.updateTickStates(t)},e.prototype.hasState=function(t,e){return!!t[e]},e.prototype.getItemStates=function(t){var e=this.get("tickStates"),n=[];return(0,o.each)(e,(function(e,r){t[r]&&n.push(r)})),n},e.prototype.clearItemsState=function(t){var e=this,n=this.getItemsByState(t);(0,o.each)(n,(function(n){e.setItemState(n,t,!1)}))},e.prototype.getItemsByState=function(t){var e=this,n=this.getItems();return(0,o.filter)(n,(function(n){return e.hasState(n,t)}))},e.prototype.getSidePoint=function(t,e){var n=this.getSideVector(e,t);return{x:t.x+n[0],y:t.y+n[1]}},e.prototype.getTextAnchor=function(t){var e;return(0,o.isNumberEqual)(t[0],0)?e="center":t[0]>0?e="start":t[0]<0&&(e="end"),e},e.prototype.getTextBaseline=function(t){var e;return(0,o.isNumberEqual)(t[1],0)?e="middle":t[1]>0?e="top":t[1]<0&&(e="bottom"),e},e.prototype.processOverlap=function(t){},e.prototype.drawLine=function(t){var e=this.getLinePath(),n=this.get("line");this.addShape(t,{type:"path",id:this.getElementId("line"),name:"axis-line",attrs:(0,o.mix)({path:e},n.style)})},e.prototype.getTickLineItems=function(t){var e=this,n=[],r=this.get("tickLine"),i=r.alignTick,a=r.length,s=1;return t.length>=2&&(s=t[1].value-t[0].value),(0,o.each)(t,(function(t){var r=t.point;i||(r=e.getTickPoint(t.value-s/2));var o=e.getSidePoint(r,a);n.push({startPoint:r,tickValue:t.value,endPoint:o,tickId:t.id,id:"tickline-"+t.id})})),n},e.prototype.getSubTickLineItems=function(t){var e=[],n=this.get("subTickLine"),r=n.count,i=t.length;if(i>=2)for(var a=0;a<i-1;a++)for(var o=t[a],s=t[a+1],l=0;l<r;l++){var u=(l+1)/(r+1),c=(1-u)*o.tickValue+u*s.tickValue,f=this.getTickPoint(c),h=this.getSidePoint(f,n.length);e.push({startPoint:f,endPoint:h,tickValue:c,id:"sub-"+o.id+"-"+l})}return e},e.prototype.getTickLineAttrs=function(t,e,n,r){var a=this.get(e).style,s={points:[t.startPoint,t.endPoint]},l=(0,o.get)(this.get("theme"),["tickLine","style"],{});a=(0,o.isFunction)(a)?(0,o.mix)({},l,a(s,n,r)):a;var u=t.startPoint,c=t.endPoint;return(0,i.__assign)({x1:u.x,y1:u.y,x2:c.x,y2:c.y},a)},e.prototype.drawTick=function(t,e,n,r,i){this.addShape(e,{type:"line",id:this.getElementId(t.id),name:"axis-"+n,attrs:this.getTickLineAttrs(t,n,r,i)})},e.prototype.drawTickLines=function(t){var e=this,n=this.get("ticks"),r=this.get("subTickLine"),i=this.getTickLineItems(n),a=this.addGroup(t,{name:"axis-tickline-group",id:this.getElementId("tickline-group")}),s=this.get("tickLine");if((0,o.each)(i,(function(n,r){if(s.displayWithLabel){var o=e.getElementId("label-"+n.tickId);t.findById(o)&&e.drawTick(n,a,"tickLine",r,i)}else e.drawTick(n,a,"tickLine",r,i)})),r){var l=this.getSubTickLineItems(i);(0,o.each)(l,(function(t,n){e.drawTick(t,a,"subTickLine",n,l)}))}},e.prototype.processTicks=function(){var t=this,e=this.get("ticks");(0,o.each)(e,(function(e){e.point=t.getTickPoint(e.value),(0,o.isNil)(e.id)&&(e.id=e.name)}))},e.prototype.drawTicks=function(t){var e=this;this.optimizeTicks(),this.processTicks(),this.get("label")&&this.drawLabels(t),this.get("tickLine")&&this.drawTickLines(t);var n=this.get("ticks");(0,o.each)(n,(function(n){e.applyTickStates(n,t)}))},e.prototype.optimizeTicks=function(){var t=this.get("optimize"),e=this.get("ticks");if(t&&t.enable&&t.threshold>0){var n=(0,o.size)(e);if(n>t.threshold){var r=Math.ceil(n/t.threshold),i=e.filter((function(t,e){return e%r==0}));this.set("ticks",i),this.set("originalTicks",e)}}},e.prototype.getLabelAttrs=function(t,e,n){var r=this.get("label"),i=r.offset,a=r.offsetX,s=r.offsetY,u=r.rotate,c=r.formatter,f=this.getSidePoint(t.point,i),h=this.getSideVector(i,f),p=c?c(t.name,t,e):t.name,d=r.style;d=(0,o.isFunction)(d)?(0,o.get)(this.get("theme"),["label","style"],{}):d;var g=(0,o.mix)({x:f.x+a,y:f.y+s,text:p,textAlign:this.getTextAnchor(h),textBaseline:this.getTextBaseline(h)},d);return u&&(g.matrix=(0,l.getMatrixByAngle)(f,u)),g},e.prototype.drawLabels=function(t){var e=this,n=this.get("ticks"),r=this.addGroup(t,{name:"axis-label-group",id:this.getElementId("label-group")});(0,o.each)(n,(function(t,i){e.addShape(r,{type:"text",name:"axis-label",id:e.getElementId("label-"+t.id),attrs:e.getLabelAttrs(t,i,n),delegateObject:{tick:t,item:t,index:i}})})),this.processOverlap(r);var i=r.getChildren(),a=(0,o.get)(this.get("theme"),["label","style"],{}),s=this.get("label"),l=s.style,u=s.formatter;if((0,o.isFunction)(l)){var c=i.map((function(t){return(0,o.get)(t.get("delegateObject"),"tick")}));(0,o.each)(i,(function(t,e){var n=t.get("delegateObject").tick,r=u?u(n.name,n,e):n.name,i=(0,o.mix)({},a,l(r,e,c));t.attr(i)}))}},e.prototype.getTitleAttrs=function(){var t=this.get("title"),e=t.style,n=t.position,r=t.offset,i=t.spacing,s=void 0===i?0:i,u=t.autoRotate,c=e.fontSize,f=.5;"start"===n?f=0:"end"===n&&(f=1);var h=this.getTickPoint(f),p=this.getSidePoint(h,r||s+c/2),d=(0,o.mix)({x:p.x,y:p.y,text:t.text},e),g=t.rotate,y=g;if((0,o.isNil)(g)&&u){var v=this.getAxisVector(h);y=a.ext.angleTo(v,[1,0],!0)}if(y){var m=(0,l.getMatrixByAngle)(p,y);d.matrix=m}return d},e.prototype.drawTitle=function(t){var e,n=this.getTitleAttrs(),r=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"axis-title",attrs:n});(null===(e=this.get("title"))||void 0===e?void 0:e.description)&&this.drawDescriptionIcon(t,r,n.matrix)},e.prototype.drawDescriptionIcon=function(t,e,n){var r=this.addGroup(t,{name:"axis-description",id:this.getElementById("description")}),a=e.getBBox(),o=a.maxX,s=a.maxY,l=a.height,u=this.get("title").iconStyle,c=l/2,f=c/6,h=o+4,p=s-l/2,d=[h+c,p-c],g=d[0],y=d[1],v=[g+c,y+c],m=v[0],_=v[1],x=[g,_+c],b=x[0],M=x[1],C=[h,y+c],P=C[0],S=C[1],O=[h+c,p-l/4],w=O[0],A=O[1],T=[w,A+f],E=T[0],I=T[1],L=[E,I+f],D=L[0],B=L[1],j=[D,B+3*c/4],R=j[0],k=j[1];this.addShape(r,{type:"path",id:this.getElementId("title-description-icon"),name:"axis-title-description-icon",attrs:(0,i.__assign)({path:[["M",g,y],["A",c,c,0,0,1,m,_],["A",c,c,0,0,1,b,M],["A",c,c,0,0,1,P,S],["A",c,c,0,0,1,g,y],["M",w,A],["L",E,I],["M",D,B],["L",R,k]],lineWidth:f,matrix:n},u)}),this.addShape(r,{type:"rect",id:this.getElementId("title-description-rect"),name:"axis-title-description-rect",attrs:{x:h,y:p-l/2,width:l,height:l,stroke:"#000",fill:"#000",opacity:0,matrix:n,cursor:"pointer"}})},e.prototype.applyTickStates=function(t,e){if(this.getItemStates(t).length){var n=this.get("tickStates"),r=this.getElementId("label-"+t.id),i=e.findById(r);if(i){var a=(0,u.getStatesStyle)(t,"label",n);a&&i.attr(a)}var o=this.getElementId("tickline-"+t.id),s=e.findById(o);if(s){var l=(0,u.getStatesStyle)(t,"tickLine",n);l&&s.attr(l)}}},e.prototype.updateTickStates=function(t){var e=this.getItemStates(t),n=this.get("tickStates"),r=this.get("label"),i=this.getElementByLocalId("label-"+t.id),a=this.get("tickLine"),o=this.getElementByLocalId("tickline-"+t.id);if(e.length){if(i){var s=(0,u.getStatesStyle)(t,"label",n);s&&i.attr(s)}if(o){var l=(0,u.getStatesStyle)(t,"tickLine",n);l&&o.attr(l)}}else i&&i.attr(r.style),o&&o.attr(a.style)},e}(s.default);e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=r.__importDefault(n(9)),s=n(33),l=r.__importDefault(n(21)),u=n(10),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"crosshair",type:"base",line:{},text:null,textBackground:{},capture:!1,defaultCfg:{line:{style:{lineWidth:1,stroke:l.default.lineColor}},text:{position:"start",offset:10,autoRotate:!1,content:null,style:{fill:l.default.textColor,textAlign:"center",textBaseline:"middle",fontFamily:l.default.fontFamily}},textBackground:{padding:5,style:{stroke:l.default.lineColor}}}})},e.prototype.renderInner=function(t){this.get("line")&&this.renderLine(t),this.get("text")&&(this.renderText(t),this.renderBackground(t))},e.prototype.renderText=function(t){var e=this.get("text"),n=e.style,r=e.autoRotate,o=e.content;if(!(0,a.isNil)(o)){var l=this.getTextPoint(),u=null;if(r){var c=this.getRotateAngle();u=(0,s.getMatrixByAngle)(l,c)}this.addShape(t,{type:"text",name:"crosshair-text",id:this.getElementId("text"),attrs:(0,i.__assign)((0,i.__assign)((0,i.__assign)({},l),{text:o,matrix:u}),n)})}},e.prototype.renderLine=function(t){var e=this.getLinePath(),n=this.get("line").style;this.addShape(t,{type:"path",name:"crosshair-line",id:this.getElementId("line"),attrs:(0,i.__assign)({path:e},n)})},e.prototype.renderBackground=function(t){var e=this.getElementId("text"),n=t.findById(e),r=this.get("textBackground");if(r&&n){var a=n.getBBox(),o=(0,u.formatPadding)(r.padding),s=r.style;this.addShape(t,{type:"rect",name:"crosshair-text-background",id:this.getElementId("text-background"),attrs:(0,i.__assign)({x:a.x-o[3],y:a.y-o[0],width:a.width+o[1]+o[3],height:a.height+o[0]+o[2],matrix:n.attr("matrix")},s)}).toBack()}},e}(o.default);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=r.__importDefault(n(9)),s=r.__importDefault(n(21)),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"grid",line:{},alternateColor:null,capture:!1,items:[],closed:!1,defaultCfg:{line:{type:"line",style:{lineWidth:1,stroke:s.default.lineColor}}}})},e.prototype.getLineType=function(){return(this.get("line")||this.get("defaultCfg").line).type},e.prototype.renderInner=function(t){this.drawGrid(t)},e.prototype.getAlternatePath=function(t,e){var n=this.getGridPath(t),r=e.slice(0).reverse(),i=this.getGridPath(r,!0);return this.get("closed")?n=n.concat(i):(i[0][0]="L",(n=n.concat(i)).push(["Z"])),n},e.prototype.getPathStyle=function(){return this.get("line").style},e.prototype.drawGrid=function(t){var e=this,n=this.get("line"),r=this.get("items"),i=this.get("alternateColor"),o=null;(0,a.each)(r,(function(s,l){var u=s.id||l;if(n){var c=e.getPathStyle();c=(0,a.isFunction)(c)?c(s,l,r):c;var f=e.getElementId("line-"+u),h=e.getGridPath(s.points);e.addShape(t,{type:"path",name:"grid-line",id:f,attrs:(0,a.mix)({path:h},c)})}if(i&&l>0){var p=e.getElementId("region-"+u),d=l%2==0;if((0,a.isString)(i))d&&e.drawAlternateRegion(p,t,o.points,s.points,i);else{var g=d?i[1]:i[0];e.drawAlternateRegion(p,t,o.points,s.points,g)}}o=s}))},e.prototype.drawAlternateRegion=function(t,e,n,r,i){var a=this.getAlternatePath(n,r);this.addShape(e,{type:"path",id:t,name:"grid-region",attrs:{path:a,fill:i}})},e}(o.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=r.__importDefault(n(9)),o=n(10),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"legend",layout:"horizontal",locationType:"point",x:0,y:0,offsetX:0,offsetY:0,title:null,background:null})},e.prototype.getLayoutBBox=function(){var e=t.prototype.getLayoutBBox.call(this),n=this.get("maxWidth"),r=this.get("maxHeight"),i=e.width,a=e.height;return n&&(i=Math.min(i,n)),r&&(a=Math.min(a,r)),(0,o.createBBox)(e.minX,e.minY,i,a)},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetLocation()},e.prototype.resetLocation=function(){var t=this.get("x"),e=this.get("y"),n=this.get("offsetX"),r=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t+n,y:e+r})},e.prototype.applyOffset=function(){this.resetLocation()},e.prototype.getDrawPoint=function(){return this.get("currentPoint")},e.prototype.setDrawPoint=function(t){return this.set("currentPoint",t)},e.prototype.renderInner=function(t){this.resetDraw(),this.get("title")&&this.drawTitle(t),this.drawLegendContent(t),this.get("background")&&this.drawBackground(t)},e.prototype.drawBackground=function(t){var e=this.get("background"),n=t.getBBox(),r=(0,o.formatPadding)(e.padding),a=(0,i.__assign)({x:0,y:0,width:n.width+r[1]+r[3],height:n.height+r[0]+r[2]},e.style);this.addShape(t,{type:"rect",id:this.getElementId("background"),name:"legend-background",attrs:a}).toBack()},e.prototype.drawTitle=function(t){var e=this.get("currentPoint"),n=this.get("title"),r=n.spacing,a=n.style,o=n.text,s=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"legend-title",attrs:(0,i.__assign)({text:o,x:e.x,y:e.y},a)}).getBBox();this.set("currentPoint",{x:e.x,y:s.maxY+r})},e.prototype.resetDraw=function(){var t=this.get("background"),e={x:0,y:0};if(t){var n=(0,o.formatPadding)(t.padding);e.x=n[3],e.y=n[0]}this.set("currentPoint",e)},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CROSSHAIR_Y=e.CROSSHAIR_X=e.NAME_CLASS=e.VALUE_CLASS=e.MARKER_CLASS=e.LIST_ITEM_CLASS=e.LIST_CLASS=e.TITLE_CLASS=e.CONTAINER_CLASS=void 0,e.CONTAINER_CLASS="g2-tooltip",e.TITLE_CLASS="g2-tooltip-title",e.LIST_CLASS="g2-tooltip-list",e.LIST_ITEM_CLASS="g2-tooltip-list-item",e.MARKER_CLASS="g2-tooltip-marker",e.VALUE_CLASS="g2-tooltip-value",e.NAME_CLASS="g2-tooltip-name",e.CROSSHAIR_X="g2-tooltip-crosshair-x",e.CROSSHAIR_Y="g2-tooltip-crosshair-y"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getActionClass=e.registerAction=e.Action=e.Interaction=e.createInteraction=e.registerInteraction=e.getInteraction=void 0;var r=n(0),i=n(1),a=r.__importDefault(n(473)),o={};function s(t){return o[(0,i.lowerCase)(t)]}e.getInteraction=s,e.registerInteraction=function(t,e){o[(0,i.lowerCase)(t)]=e},e.createInteraction=function(t,e,n){var r=s(t);if(!r)return null;if((0,i.isPlainObject)(r)){var o=(0,i.mix)((0,i.clone)(r),n);return new a.default(e,o)}return new r(e,n)};var l=n(204);Object.defineProperty(e,"Interaction",{enumerable:!0,get:function(){return r.__importDefault(l).default}});var u=n(77);Object.defineProperty(e,"Action",{enumerable:!0,get:function(){return u.Action}}),Object.defineProperty(e,"registerAction",{enumerable:!0,get:function(){return u.registerAction}}),Object.defineProperty(e,"getActionClass",{enumerable:!0,get:function(){return u.getActionClass}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parsePadding=e.isAutoPadding=void 0;var r=n(0),i=n(1);e.isAutoPadding=function(t){return!(0,i.isNumber)(t)&&!(0,i.isArray)(t)},e.parsePadding=function(t){void 0===t&&(t=0);var e=(0,i.isArray)(t)?t:[t];switch(e.length){case 0:e=[0,0,0,0];break;case 1:e=new Array(4).fill(e[0]);break;case 2:e=r.__spreadArray(r.__spreadArray([],r.__read(e),!1),r.__read(e),!1);break;case 3:e=r.__spreadArray(r.__spreadArray([],r.__read(e),!1),[e[1]],!1);break;default:e=e.slice(0,4)}return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(19),i=function(){function t(t,e,n){this.view=t,this.gEvent=e,this.data=n,this.type=e.type}return t.fromData=function(e,n,i){return new t(e,new r.Event(n,{}),i)},Object.defineProperty(t.prototype,"target",{get:function(){return this.gEvent.target},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"event",{get:function(){return this.gEvent.originalEvent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"x",{get:function(){return this.gEvent.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this.gEvent.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clientX",{get:function(){return this.gEvent.clientX},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clientY",{get:function(){return this.gEvent.clientY},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"[Event (type=".concat(this.type,")]")},t.prototype.clone=function(){return new t(this.view,this.gEvent,this.data)},t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(41),o=n(36),s=r.__importDefault(n(88)),l=n(13),u=n(2),c=n(116),f=function(t){function e(e){var n=t.call(this,e)||this;n.labelShape=[],n.states=[];var r=e.shapeFactory,i=e.container,a=e.offscreenGroup,o=e.elementIndex,s=e.visible,l=void 0===s||s;return n.shapeFactory=r,n.container=i,n.offscreenGroup=a,n.visible=l,n.elementIndex=o,n}return r.__extends(e,t),e.prototype.draw=function(t,e){void 0===e&&(e=!1),this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.drawShape(t,e),!1===this.visible&&this.changeVisible(!1)},e.prototype.update=function(t){var e=this.shapeFactory,n=this.shape;if(n){this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.setShapeInfo(n,t);var r=this.getOffscreenGroup(),i=e.drawShape(this.shapeType,t,r);i.cfg.data=this.data,i.cfg.origin=t,i.cfg.element=this,this.syncShapeStyle(n,i,this.getStates(),this.getAnimateCfg("update"))}},e.prototype.destroy=function(){var e=this.shapeFactory,n=this.shape;if(n){var i=this.getAnimateCfg("leave");i?(0,o.doAnimate)(n,i,{coordinate:e.coordinate,toAttrs:r.__assign({},n.attr())}):n.remove(!0)}this.states=[],this.shapeFactory=void 0,this.container=void 0,this.shape=void 0,this.animate=void 0,this.geometry=void 0,this.labelShape=[],this.model=void 0,this.data=void 0,this.offscreenGroup=void 0,this.statesStyle=void 0,t.prototype.destroy.call(this)},e.prototype.changeVisible=function(e){t.prototype.changeVisible.call(this,e),e?(this.shape&&this.shape.show(),this.labelShape&&this.labelShape.forEach((function(t){t.show()}))):(this.shape&&this.shape.hide(),this.labelShape&&this.labelShape.forEach((function(t){t.hide()})))},e.prototype.setState=function(t,e){var n=this,r=n.states,i=n.shapeFactory,o=n.model,s=n.shape,l=n.shapeType,u=r.indexOf(t);if(e){if(u>-1)return;r.push(t),"active"!==t&&"selected"!==t||null==s||s.toFront()}else{if(-1===u)return;if(r.splice(u,1),"active"===t||"selected"===t){var c=this.geometry,f=c.sortZIndex,h=c.zIndexReversed?this.geometry.elements.length-this.elementIndex:this.elementIndex;f?s.setZIndex(h):s.set("zIndex",h)}}var p=i.drawShape(l,o,this.getOffscreenGroup());r.length?this.syncShapeStyle(s,p,r,null):this.syncShapeStyle(s,p,["reset"],null),p.remove(!0);var d={state:t,stateStatus:e,element:this,target:this.container};this.container.emit("statechange",d),(0,a.propagationDelegate)(this.shape,"statechange",d)},e.prototype.clearStates=function(){var t=this,e=this.states;(0,i.each)(e,(function(e){t.setState(e,!1)})),this.states=[]},e.prototype.hasState=function(t){return this.states.includes(t)},e.prototype.getStates=function(){return this.states},e.prototype.getData=function(){return this.data},e.prototype.getModel=function(){return this.model},e.prototype.getBBox=function(){var t=this.shape,e=this.labelShape,n={x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0};return t&&(n=t.getCanvasBBox()),e&&e.forEach((function(t){var e=t.getCanvasBBox();n.x=Math.min(e.x,n.x),n.y=Math.min(e.y,n.y),n.minX=Math.min(e.minX,n.minX),n.minY=Math.min(e.minY,n.minY),n.maxX=Math.max(e.maxX,n.maxX),n.maxY=Math.max(e.maxY,n.maxY)})),n.width=n.maxX-n.minX,n.height=n.maxY-n.minY,n},e.prototype.getStatesStyle=function(){if(!this.statesStyle){var t=this.shapeType,e=this.geometry,n=this.shapeFactory,r=e.stateOption,a=n.defaultShapeType,o=n.theme[t]||n.theme[a];this.statesStyle=(0,i.deepMix)({},o,r)}return this.statesStyle},e.prototype.getStateStyle=function(t,e){var n=this.getStatesStyle(),r=(0,i.get)(n,[t,"style"],{}),a=r[e]||r;return(0,i.isFunction)(a)?a(this):a},e.prototype.getAnimateCfg=function(t){var e=this,n=this.animate;if(n){var a=n[t];return a?r.__assign(r.__assign({},a),{callback:function(){var t;(0,i.isFunction)(a.callback)&&a.callback(),null===(t=e.geometry)||void 0===t||t.emit(u.GEOMETRY_LIFE_CIRCLE.AFTER_DRAW_ANIMATE)}}):a}return null},e.prototype.drawShape=function(t,e){var n;void 0===e&&(e=!1);var a=this.shapeFactory,s=this.container,l=this.shapeType;if(this.shape=a.drawShape(l,t,s),this.shape){this.setShapeInfo(this.shape,t);var c=this.shape.cfg.name;c?(0,i.isString)(c)&&(this.shape.cfg.name=["element",c]):this.shape.cfg.name=["element",this.shapeFactory.geometryType];var f=e?"enter":"appear",h=this.getAnimateCfg(f);h&&(null===(n=this.geometry)||void 0===n||n.emit(u.GEOMETRY_LIFE_CIRCLE.BEFORE_DRAW_ANIMATE),(0,o.doAnimate)(this.shape,h,{coordinate:a.coordinate,toAttrs:r.__assign({},this.shape.attr())}))}},e.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var t=this.container.getGroupBase();this.offscreenGroup=new t({})}return this.offscreenGroup},e.prototype.setShapeInfo=function(t,e){var n=this;(t.cfg.origin=e,t.cfg.element=this,t.isGroup())&&t.get("children").forEach((function(t){n.setShapeInfo(t,e)}))},e.prototype.syncShapeStyle=function(t,e,n,r,a){var s,f=this;if(void 0===n&&(n=[]),void 0===a&&(a=0),t&&e){var h=t.get("clipShape"),p=e.get("clipShape");if(this.syncShapeStyle(h,p,n,r),t.isGroup())for(var d=t.get("children"),g=e.get("children"),y=0;y<d.length;y++)this.syncShapeStyle(d[y],g[y],n,r,a+y);else{if(!(0,i.isEmpty)(n)&&!(0,i.isEqual)(n,["reset"])){var v=t.get("name");(0,i.isArray)(v)&&(v=v[1]),(0,i.each)(n,(function(t){if(e.get("name")!==c.BACKGROUND_SHAPE){var n=f.getStateStyle(t,v||a);e.attr(n)}}))}var m=(0,l.getReplaceAttrs)(t,e);this.animate?r?(null===(s=this.geometry)||void 0===s||s.emit(u.GEOMETRY_LIFE_CIRCLE.BEFORE_DRAW_ANIMATE),(0,o.doAnimate)(t,r,{coordinate:this.shapeFactory.coordinate,toAttrs:m,shapeModel:this.model})):(0,i.isEmpty)(n)?t.attr(m):(t.stopAnimate(),t.animate(m,{duration:300})):t.attr(m)}}},e.prototype.getShapeType=function(t){var e=(0,i.get)(t,"shape");return(0,i.isArray)(e)?e[0]:e},e}(s.default);e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BACKGROUND_SHAPE=void 0,e.BACKGROUND_SHAPE="element-background"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerGeometryLabelLayout=e.getGeometryLabelLayout=e.registerGeometryLabel=e.getGeometryLabel=void 0;var r={},i={};e.getGeometryLabel=function(t){return r[t.toLowerCase()]},e.registerGeometryLabel=function(t,e){r[t.toLowerCase()]=e},e.getGeometryLabelLayout=function(t){return i[t.toLowerCase()]},e.registerGeometryLabelLayout=function(t,e){i[t.toLowerCase()]=e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getPath=void 0;var r=n(1),i=n(3),a=n(43),o=n(6),s=n(52),l=n(119),u=n(216);function c(t,e,n,r,i){return 1===t.length?[["M",t[0].x,t[0].y-i.lineWidth/2],["L",t[0].x,t[0].y],["L",t[0].x,t[0].y+i.lineWidth/2]]:(n?(e&&t.length&&t.push({x:t[0].x,y:t[0].y}),a=(0,s.getSplinePath)(t,!1,r)):(a=(0,s.getLinePath)(t,!1),e&&a.push(["Z"])),a);var a}function f(t,e,n,i,a,o){if(t.length){var s=t[0];return(0,r.isArray)(s.y)?function(t,e,n,i,a,o){var s=[],u=[];(0,r.each)(t,(function(t){var e=(0,l.splitPoints)(t);s.push(e[1]),u.push(e[0])}));var f=c(s,e,i,a,o),h=c(u,e,i,a,o);return n?f:f.concat(h)}(t,e,n,i,a,o):c(t,e,i,a,o)}return[]}e.getPath=f;var h=(0,i.registerShapeFactory)("line",{defaultShapeType:"line"});(0,r.each)(["line","dot","dash","smooth"],(function(t){(0,i.registerShape)("line",t,{draw:function(e,n){var r,i="smooth"===t;if(i){var s=this.coordinate,l=s.start,u=s.end;r=[[l.x,u.y],[u.x,l.y]]}var c=function(t,e,n){for(var r=t.isStack,i=t.connectNulls,s=t.isInCircle,l=t.showSinglePoint,u=(0,o.getStyle)(t,!0,!1,"lineWidth"),c=(0,a.getPathPoints)(t.points,i,l),h=[],p=0,d=c.length;p<d;p++){var g=c[p];h=h.concat(f(g,s,r,e,n,u))}return u.path=h,u}(e,i,r);return n.addShape({type:"path",attrs:c,name:"line",capture:!i})},getMarker:function(e){return(0,u.getLineMarker)(e,t)}})})),e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.splitPoints=void 0;var r=n(1);e.splitPoints=function(t){var e=t.x;return((0,r.isArray)(t.y)?t.y:[t.y]).map((function(t,n){return{x:(0,r.isArray)(e)?e[n]:e,y:t}}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(12),o=r.__importStar(n(62)),s=n(63),l=n(1),u=n(15),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.onCanvasChange=function(t){(0,s.refreshElement)(this,t)},e.prototype.getShapeBase=function(){return o},e.prototype.getGroupBase=function(){return e},e.prototype._applyClip=function(t,e){e&&(t.save(),(0,s.applyAttrsToContext)(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},e.prototype.cacheCanvasBBox=function(){var t=this.cfg.children,e=[],n=[];(0,l.each)(t,(function(t){var r=t.cfg.cacheCanvasBBox;r&&t.cfg.isInView&&(e.push(r.minX,r.maxX),n.push(r.minY,r.maxY))}));var r=null;if(e.length){var i=(0,l.min)(e),a=(0,l.max)(e),o=(0,l.min)(n),s=(0,l.max)(n);r={minX:i,minY:o,x:i,y:o,maxX:a,maxY:s,width:a-i,height:s-o};var c=this.cfg.canvas;if(c){var f=c.getViewRange();this.set("isInView",(0,u.intersectRect)(r,f))}}else this.set("isInView",!1);this.set("cacheCanvasBBox",r)},e.prototype.draw=function(t,e){var n=this.cfg.children,r=!e||this.cfg.refresh;n.length&&r&&(t.save(),(0,s.applyAttrsToContext)(t,this),this._applyClip(t,this.getClip()),(0,s.drawChildren)(t,n,e),t.restore(),this.cacheCanvasBBox()),this.cfg.refresh=null,this.set("hasChanged",!1)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("hasChanged",!1)},e}(a.AbstractGroup);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.refreshElement=e.drawChildren=void 0;var r=n(64),i=n(27);e.drawChildren=function(t,e){e.forEach((function(e){e.draw(t)}))},e.refreshElement=function(t,e){var n=t.get("canvas");if(n&&n.get("autoDraw")){var a=n.get("context"),o=t.getParent(),s=o?o.getChildren():[n],l=t.get("el");if("remove"===e)if(t.get("isClipShape")){var u=l&&l.parentNode,c=u&&u.parentNode;u&&c&&c.removeChild(u)}else l&&l.parentNode&&l.parentNode.removeChild(l);else if("show"===e)l.setAttribute("visibility","visible");else if("hide"===e)l.setAttribute("visibility","hidden");else if("zIndex"===e)(0,i.moveTo)(l,s.indexOf(t));else if("sort"===e){var f=t.get("children");f&&f.length&&(0,i.sortDom)(t,(function(t,e){return f.indexOf(t)-f.indexOf(e)?1:0}))}else"clear"===e?l&&(l.innerHTML=""):"matrix"===e?(0,r.setTransform)(t):"clip"===e?(0,r.setClip)(t,a):"attr"===e||"add"===e&&t.draw(a)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(12),o=n(1),s=r.__importStar(n(82)),l=n(121),u=n(64),c=n(16),f=n(27),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.isEntityGroup=function(){return!0},e.prototype.createDom=function(){var t=(0,f.createSVGElement)("g");this.set("el",t);var e=this.getParent();if(e){var n=e.get("el");n||(n=e.createDom(),e.set("el",n)),n.appendChild(t)}return t},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e);var n=this.get("canvas");if(n&&n.get("autoDraw")){var r=n.get("context");this.createPath(r,e)}},e.prototype.onCanvasChange=function(t){(0,l.refreshElement)(this,t)},e.prototype.getShapeBase=function(){return s},e.prototype.getGroupBase=function(){return e},e.prototype.draw=function(t){var e=this.getChildren(),n=this.get("el");this.get("destroyed")?n&&n.parentNode.removeChild(n):(n||this.createDom(),(0,u.setClip)(this,t),this.createPath(t),e.length&&(0,l.drawChildren)(t,e))},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");(0,o.each)(e||n,(function(t,e){c.SVG_ATTR_MAP[e]&&r.setAttribute(c.SVG_ATTR_MAP[e],t)})),(0,u.setTransform)(this)},e}(a.AbstractGroup);e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(2),a=r.__importDefault(n(34)),o=r.__importDefault(n(115));n(118);var s=n(212),l=n(213),u=function(t){function e(e){var n=t.call(this,e)||this;n.type="path",n.shapeType="line";var r=e.connectNulls,i=void 0!==r&&r,a=e.showSinglePoint,o=void 0===a||a;return n.connectNulls=i,n.showSinglePoint=o,n}return r.__extends(e,t),e.prototype.updateElements=function(t,e){var n,i,a,u,c,f;void 0===e&&(e=!1);for(var h=new Map,p=new Map,d=[],g=0,y=0;y<t.length;y++){var v=t[y],m=this.getElementId(v);d.push(m),h.set(m,v),p.set(m,g),g++}this.elements=new Array(g);var _=(0,l.diff)(this.lastElementsMap,d),x=_.added,b=_.updated,M=_.removed;try{for(var C=r.__values(x),P=C.next();!P.done;P=C.next()){m=P.value,v=h.get(m);var S=this.getShapeFactory(),O=this.getShapeInfo(v);y=p.get(m);(T=new o.default({shapeFactory:S,container:this.container,offscreenGroup:this.getOffscreenGroup(),elementIndex:y})).geometry=this,T.animate=this.animateOption,T.draw(O,e),this.elementsMap[m]=T,this.elements[y]=T}}catch(t){n={error:t}}finally{try{P&&!P.done&&(i=C.return)&&i.call(C)}finally{if(n)throw n.error}}try{for(var w=r.__values(b),A=w.next();!A.done;A=w.next()){m=A.value,v=h.get(m);var T=this.lastElementsMap[m],E=(y=p.get(m),O=this.getShapeInfo(v),T.getModel());(this.isCoordinateChanged||(0,s.isModelChange)(E,O))&&(T.animate=this.animateOption,T.update(O)),this.elementsMap[m]=T,this.elements[y]=T}}catch(t){a={error:t}}finally{try{A&&!A.done&&(u=w.return)&&u.call(w)}finally{if(a)throw a.error}}try{for(var I=r.__values(M),L=I.next();!L.done;L=I.next()){m=L.value;(T=this.lastElementsMap[m]).animate=this.animateOption,T.destroy()}}catch(t){c={error:t}}finally{try{L&&!L.done&&(f=I.return)&&f.call(I)}finally{if(c)throw c.error}}},e.prototype.getPointsAndData=function(t){for(var e=[],n=[],r=0,a=t.length;r<a;r++){var o=t[r];e.push({x:o.x,y:o.y}),n.push(o[i.FIELD_ORIGIN])}return{points:e,data:n}},e.prototype.getShapeInfo=function(t){var e=this.getDrawCfg(t[0]),n=this.getPointsAndData(t),r=n.points,i=n.data;return e.mappingData=t,e.data=i,e.isStack=!!this.getAdjust("stack"),e.points=r,e.connectNulls=this.connectNulls,e.showSinglePoint=this.showSinglePoint,e},e}(a.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getDefaultSize=void 0;var r=n(1),i=n(14);e.getDefaultSize=function(t){var e=t.theme,n=t.coordinate,a=t.getXScale(),o=a.values,s=t.beforeMappingData,l=o.length,u=(0,i.getXDimensionLength)(t.coordinate),c=t.intervalPadding,f=t.dodgePadding,h=t.maxColumnWidth||e.maxColumnWidth,p=t.minColumnWidth||e.minColumnWidth,d=t.columnWidthRatio||e.columnWidthRatio,g=t.multiplePieWidthRatio||e.multiplePieWidthRatio,y=t.roseWidthRatio||e.roseWidthRatio;if(a.isLinear&&o.length>1){o.sort();var v=function(t,e){var n=t.length,i=t;(0,r.isString)(i[0])&&(i=t.map((function(t){return e.translate(t)})));for(var a=i[1]-i[0],o=2;o<n;o++){var s=i[o]-i[o-1];a>s&&(a=s)}return a}(o,a);l=(a.max-a.min)/v,o.length>l&&(l=o.length)}var m=a.range,_=1/l,x=1;if(n.isPolar?x=n.isTransposed&&l>1?g:y:(a.isLinear&&(_*=m[1]-m[0]),x=d),!(0,r.isNil)(c)&&c>=0?_=(1-(l-1)*(c/u))/l:_*=x,t.getAdjust("dodge")){var b=function(t,e){if(e){var n=(0,r.flatten)(t);return(0,r.valuesOfKey)(n,e).length}return t.length}(s,t.getAdjust("dodge").dodgeBy);if(!(0,r.isNil)(f)&&f>=0)_=(_-f/u*(b-1))/b;else!(0,r.isNil)(c)&&c>=0?(_*=x,_/=b):_/=b;_=_>=0?_:0}if(!(0,r.isNil)(h)&&h>=0){var M=h/u;_>M&&(_=M)}if(!(0,r.isNil)(p)&&p>=0){var C=p/u;_<C&&(_=C)}return _}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.drawPoints=e.HOLLOW_SHAPES=e.SHAPES=void 0;var r=n(0),i=n(61),a=n(6);e.SHAPES=["circle","square","bowtie","diamond","hexagon","triangle","triangle-down"],e.HOLLOW_SHAPES=["cross","tick","plus","hyphen","line"],e.drawPoints=function(t,e,n,o,s){var l,u,c=(0,a.getStyle)(e,s,!s,"r"),f=t.parsePoints(e.points),h=f[0];if(e.isStack)h=f[1];else if(f.length>1){var p=n.addGroup();try{for(var d=r.__values(f),g=d.next();!g.done;g=d.next()){var y=g.value;p.addShape({type:"marker",attrs:r.__assign(r.__assign(r.__assign({},c),{symbol:i.MarkerSymbols[o]||o}),y)})}}catch(t){l={error:t}}finally{try{g&&!g.done&&(u=d.return)&&u.call(d)}finally{if(l)throw l.error}}return p}return n.addShape({type:"marker",attrs:r.__assign(r.__assign(r.__assign({},c),{symbol:i.MarkerSymbols[o]||o}),h)})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getTranslateDirection=e.directionToPosition=void 0;var r=n(2);function i(t){return t===r.DIRECTION.LEFT?r.DIRECTION.RIGHT:t===r.DIRECTION.RIGHT?r.DIRECTION.LEFT:t}function a(t){return t===r.DIRECTION.TOP?r.DIRECTION.BOTTOM:t===r.DIRECTION.BOTTOM?r.DIRECTION.TOP:t}e.directionToPosition=function(t,e,n){return n===r.DIRECTION.TOP?[t.minX+t.width/2-e.width/2,t.minY]:n===r.DIRECTION.BOTTOM?[t.minX+t.width/2-e.width/2,t.maxY-e.height]:n===r.DIRECTION.LEFT?[t.minX,t.minY+t.height/2-e.height/2]:n===r.DIRECTION.RIGHT?[t.maxX-e.width,t.minY+t.height/2-e.height/2]:n===r.DIRECTION.TOP_LEFT||n===r.DIRECTION.LEFT_TOP?[t.tl.x,t.tl.y]:n===r.DIRECTION.TOP_RIGHT||n===r.DIRECTION.RIGHT_TOP?[t.tr.x-e.width,t.tr.y]:n===r.DIRECTION.BOTTOM_LEFT||n===r.DIRECTION.LEFT_BOTTOM?[t.bl.x,t.bl.y-e.height]:n===r.DIRECTION.BOTTOM_RIGHT||n===r.DIRECTION.RIGHT_BOTTOM?[t.br.x-e.width,t.br.y-e.height]:[0,0]},e.getTranslateDirection=function(t,e){var n=t;return n=function(t,e){var n=t;return e.isReflect("x")&&(n=i(n)),e.isReflect("y")&&(n=a(n)),n}(n=function(t,e){var n=e.matrix[0],r=e.matrix[4],o=t;return n<0&&(o=i(o)),r<0&&(o=a(o)),o}(n=function(t,e){if(e.isTransposed)switch(t){case r.DIRECTION.BOTTOM:return r.DIRECTION.LEFT;case r.DIRECTION.LEFT:return r.DIRECTION.BOTTOM;case r.DIRECTION.RIGHT:return r.DIRECTION.TOP;case r.DIRECTION.TOP:return r.DIRECTION.RIGHT}return t}(n,e),e),e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(4);function o(t){return(0,i.get)(t.get("delegateObject"),"item")}var s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreListItemStates=["unchecked"],e}return r.__extends(e,t),e.prototype.isItemIgnore=function(t,e){return!!this.ignoreListItemStates.filter((function(n){return e.hasState(t,n)})).length},e.prototype.setStateByComponent=function(t,e,n){var r=this.context.view,i=t.get("field"),o=(0,a.getElements)(r);this.setElementsStateByItem(o,i,e,n)},e.prototype.setStateByElement=function(t,e){this.setElementState(t,e)},e.prototype.isMathItem=function(t,e,n){var r=this.context.view,o=(0,a.getScaleByField)(r,e),s=(0,a.getElementValue)(t,e);return!(0,i.isNil)(s)&&n.name===o.getText(s)},e.prototype.setElementsStateByItem=function(t,e,n,r){var a=this;(0,i.each)(t,(function(t){a.isMathItem(t,e,n)&&t.setState(a.stateName,r)}))},e.prototype.setStateEnable=function(t){var e=(0,a.getCurrentElement)(this.context);if(e)(0,a.isElementChange)(this.context)&&this.setStateByElement(e,t);else{var n=(0,a.getDelegationObject)(this.context);if((0,a.isList)(n)){var r=n.item,i=n.component;if(r&&i&&!this.isItemIgnore(r,i)){var s=this.context.event.gEvent;if(s&&s.fromShape&&s.toShape&&o(s.fromShape)===o(s.toShape))return;this.setStateByComponent(i,r,t)}}}},e.prototype.toggle=function(){var t=(0,a.getCurrentElement)(this.context);if(t){var e=t.hasState(this.stateName);this.setElementState(t,!e)}},e.prototype.reset=function(){this.setStateEnable(!1)},e}(r.__importDefault(n(128)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=r.__importDefault(n(11)),o=n(4),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="",e}return r.__extends(e,t),e.prototype.hasState=function(t){return t.hasState(this.stateName)},e.prototype.setElementState=function(t,e){t.setState(this.stateName,e)},e.prototype.setState=function(){this.setStateEnable(!0)},e.prototype.clear=function(){var t=this.context.view;this.clearViewState(t)},e.prototype.clearViewState=function(t){var e=this,n=(0,o.getElementsByState)(t,this.stateName);(0,i.each)(n,(function(t){e.setElementState(t,!1)}))},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(4),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.startPoint=null,e.endPoint=null,e.isStarted=!1,e.effectSiblings=!1,e.effectByRecord=!1,e}return r.__extends(e,t),e.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},e.prototype.start=function(){this.clear(),this.startPoint=this.getCurrentPoint(),this.isStarted=!0},e.prototype.getIntersectElements=function(){var t=null;if((0,a.isMask)(this.context))t=(0,a.getMaskedElements)(this.context,10);else{var e=this.startPoint,n=this.isStarted?this.getCurrentPoint():this.endPoint;if(!e||!n)return;var r={minX:Math.min(e.x,n.x),minY:Math.min(e.y,n.y),maxX:Math.max(e.x,n.x),maxY:Math.max(e.y,n.y)},i=this.context.view;t=(0,a.getIntersectElements)(i,r)}return t},e.prototype.setStateEnable=function(t){if(this.effectSiblings&&!this.effectByRecord)this.setSiblingsState(t);else{var e=(0,a.getElements)(this.context.view),n=this.getIntersectElements();n&&n.length?this.effectByRecord?this.setSiblingsStateByRecord(n,t):this.setElementsState(n,t,e):this.clear()}},e.prototype.setSiblingsStateByRecord=function(t,e){var n=this,r=this.context.view,o=(0,a.getSilbings)(r),s=t.map((function(t){return t.getModel().data})),l=r.getXScale().field,u=r.getYScales()[0].field;(0,i.each)(o,(function(t){var r=(0,a.getElements)(t),i=r.filter((function(t){var e=t.getModel().data;return(0,a.isInRecords)(s,e,l,u)}));n.setElementsState(i,e,r)}))},e.prototype.setSiblingsState=function(t){var e=this,n=this.context.view,r=(0,a.getSilbings)(n);(0,a.isMask)(this.context)&&(0,i.each)(r,(function(n){var r=(0,a.getElements)(n),i=(0,a.getSiblingMaskElements)(e.context,n,10);i&&i.length?e.setElementsState(i,t,r):e.clearViewState(n)}))},e.prototype.setElementsState=function(t,e,n){var r=this;(0,i.each)(n,(function(n){t.includes(n)?r.setElementState(n,e):r.setElementState(n,!1)}))},e.prototype.end=function(){this.isStarted=!1,this.endPoint=this.getCurrentPoint()},e.prototype.clear=function(){var t=this,e=this.context.view;if(this.effectSiblings){var n=(0,a.getSilbings)(e);(0,i.each)(n,(function(e){t.clearViewState(e)}))}else this.clearViewState(e)},e}(r.__importDefault(n(128)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(4),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.setStateEnable=function(t){var e=(0,i.getCurrentElement)(this.context);if(e){if(!(0,i.isElementChange)(this.context))return;t?(this.clear(),this.setElementState(e,!0)):this.hasState(e)&&this.setElementState(e,!1)}},e.prototype.toggle=function(){var t=(0,i.getCurrentElement)(this.context);if(t){var e=this.hasState(t);e||this.clear(),this.setElementState(t,!e)}},e.prototype.reset=function(){this.setStateEnable(!1)},e}(r.__importDefault(n(128)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.STATUS_ACTIVE=e.STATUS_UNACTIVE=void 0;var r=n(0),i=n(1),a=n(4),o=n(132),s=r.__importDefault(n(127)),l=n(2);e.STATUS_UNACTIVE=l.ELEMENT_STATE.INACTIVE,e.STATUS_ACTIVE=l.ELEMENT_STATE.ACTIVE;var u=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.stateName=e.STATUS_ACTIVE,n}return r.__extends(n,t),n.prototype.setElementsStateByItem=function(t,e,n,r){var i=this;this.setHighlightBy(t,(function(t){return i.isMathItem(t,e,n)}),r)},n.prototype.setElementHighlight=function(t,n){n(t)?(t.hasState(e.STATUS_UNACTIVE)&&t.setState(e.STATUS_UNACTIVE,!1),t.setState(e.STATUS_ACTIVE,!0)):t.hasState(e.STATUS_ACTIVE)||t.setState(e.STATUS_UNACTIVE,!0)},n.prototype.setHighlightBy=function(t,n,r){var o=this;if(r)(0,i.each)(t,(function(t){o.setElementHighlight(t,n)}));else{var s=(0,a.getElementsByState)(this.context.view,e.STATUS_ACTIVE),l=!0;(0,i.each)(s,(function(t){if(!n(t))return l=!1,!1})),l?this.clear():(0,i.each)(t,(function(t){n(t)&&(t.hasState(e.STATUS_ACTIVE)&&t.setState(e.STATUS_ACTIVE,!1),t.setState(e.STATUS_UNACTIVE,!0))}))}},n.prototype.setElementState=function(t,e){var n=this.context.view,r=(0,a.getElements)(n);this.setHighlightBy(r,(function(e){return t===e}),e)},n.prototype.highlight=function(){this.setState()},n.prototype.clear=function(){var t=this.context.view;(0,o.clearHighlight)(t)},n}(s.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setHighlightBy=e.clearHighlight=void 0;var r=n(1),i=n(4);e.clearHighlight=function(t){var e=(0,i.getElements)(t);(0,r.each)(e,(function(t){t.hasState("active")&&t.setState("active",!1),t.hasState("inactive")&&t.setState("inactive",!1)}))},e.setHighlightBy=function(t,e,n){(0,r.each)(t,(function(t){e(t)?(t.hasState("inactive")&&t.setState("inactive",!1),t.setState("active",n)):(t.hasState("active")&&t.setState("active",!1),t.setState("inactive",n))}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.maskShape=null,e.points=[],e.starting=!1,e.moving=!1,e.preMovePoint=null,e.shapeType="path",e}return r.__extends(e,t),e.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},e.prototype.emitEvent=function(t){var e="mask:".concat(t),n=this.context.view,r=this.context.event;n.emit(e,{target:this.maskShape,shape:this.maskShape,points:this.points,x:r.x,y:r.y})},e.prototype.createMask=function(){var t=this.context.view,e=this.getMaskAttrs();return t.foregroundGroup.addShape({type:this.shapeType,name:"mask",draggable:!0,attrs:r.__assign({fill:"#C5D4EB",opacity:.3},e)})},e.prototype.getMaskPath=function(){return[]},e.prototype.show=function(){this.maskShape&&(this.maskShape.show(),this.emitEvent("show"))},e.prototype.start=function(t){this.starting=!0,this.moving=!1,this.points=[this.getCurrentPoint()],this.maskShape||(this.maskShape=this.createMask(),this.maskShape.set("capture",!1)),this.updateMask(null==t?void 0:t.maskStyle),this.emitEvent("start")},e.prototype.moveStart=function(){this.moving=!0,this.preMovePoint=this.getCurrentPoint()},e.prototype.move=function(){if(this.moving&&this.maskShape){var t=this.getCurrentPoint(),e=this.preMovePoint,n=t.x-e.x,r=t.y-e.y,a=this.points;(0,i.each)(a,(function(t){t.x+=n,t.y+=r})),this.updateMask(),this.emitEvent("change"),this.preMovePoint=t}},e.prototype.updateMask=function(t){var e=(0,i.deepMix)({},this.getMaskAttrs(),t);this.maskShape.attr(e)},e.prototype.moveEnd=function(){this.moving=!1,this.preMovePoint=null},e.prototype.end=function(){this.starting=!1,this.emitEvent("end"),this.maskShape&&this.maskShape.set("capture",!0)},e.prototype.hide=function(){this.maskShape&&(this.maskShape.hide(),this.emitEvent("hide"))},e.prototype.resize=function(){this.starting&&this.maskShape&&(this.points.push(this.getCurrentPoint()),this.updateMask(),this.emitEvent("change"))},e.prototype.destroy=function(){this.points=[],this.maskShape&&this.maskShape.remove(),this.maskShape=null,this.preMovePoint=null,t.prototype.destroy.call(this)},e}(r.__importDefault(n(11)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(17));e.default=function(t,e){if(!(0,r.default)(t))return t;for(var n=[],i=0;i<t.length;i++){var a=t[i];e(a,i)&&n.push(a)}return n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(35)),a=r.__importDefault(n(136));e.default=function(t,e){var n=(0,a.default)(e),r=n.length;if((0,i.default)(t))return!r;for(var o=0;o<r;o+=1){var s=n[o];if(e[s]!==t[s]||!(s in t))return!1}return!0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(45)),a=r.__importDefault(n(18)),o=Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];return(0,i.default)(t,(function(n,r){(0,a.default)(t)&&"prototype"===r||e.push(r)})),e};e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(7));e.default=function(t){if((0,r.default)(t))return t.reduce((function(t,e){return Math.max(t,e)}),t[0])}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(7));e.default=function(t){if((0,r.default)(t))return t.reduce((function(t,e){return Math.min(t,e)}),t[0])}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(17)),i=Array.prototype.splice;e.default=function(t,e){if(!(0,r.default)(t))return[];for(var n=t?e.length:0,a=n-1;n--;){var o=void 0,s=e[n];n!==a&&s===o||(o=s,i.call(t,s,1))}return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(45)),a=r.__importDefault(n(7)),o=r.__importDefault(n(57));e.default=function(t,e,n){if(!(0,a.default)(t)&&!(0,o.default)(t))return t;var r=n;return(0,i.default)(t,(function(t,n){r=e(r,t,n)})),r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){void 0===e&&(e=new Map);var n=[];if(Array.isArray(t))for(var r=0,i=t.length;r<i;r++){var a=t[r];e.has(a)||(n.push(a),e.set(a,!0))}return n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(7)),a=r.__importDefault(n(18)),o=r.__importDefault(n(143));e.default=function(t,e){if(!e)return{0:t};if(!(0,a.default)(e)){var n=(0,i.default)(e)?e:e.replace(/\s+/g,"").split("*");e=function(t){for(var e="_",r=0,i=n.length;r<i;r++)e+=t[n[r]]&&t[n[r]].toString();return e}}return(0,o.default)(t,e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(7)),a=r.__importDefault(n(18)),o=Object.prototype.hasOwnProperty;e.default=function(t,e){if(!e||!(0,i.default)(t))return{};for(var n,r={},s=(0,a.default)(e)?e:function(t){return t[e]},l=0;l<t.length;l++){var u=t[l];n=s(u),o.call(r,n)?r[n].push(u):r[n]=[u]}return r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return t.hasOwnProperty(e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={}.toString;e.default=function(t){return r.call(t).replace(/^\[object /,"").replace(/]$/,"")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.prototype;e.default=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(18));e.default=function(t,e){if(!(0,r.default)(t))throw new TypeError("Expected a function");var n=function n(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var a=e?e.apply(this,r):r[0],o=n.cache;if(o.has(a))return o.get(a);var s=t.apply(this,r);return o.set(a,s),s};return n.cache=new Map,n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(85)),a=r.__importDefault(n(17)),o=r.__importDefault(n(30));e.default=function t(e,n){if(e===n)return!0;if(!e||!n)return!1;if((0,o.default)(e)||(0,o.default)(n))return!1;if((0,a.default)(e)||(0,a.default)(n)){if(e.length!==n.length)return!1;for(var r=!0,s=0;s<e.length&&(r=t(e[s],n[s]));s++);return r}if((0,i.default)(e)||(0,i.default)(n)){var l=Object.keys(e),u=Object.keys(n);if(l.length!==u.length)return!1;for(r=!0,s=0;s<l.length&&(r=t(e[l[s]],n[l[s]]));s++);return r}return!1}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(0),a=n(0),o=i.__importDefault(n(86)),s=i.__importDefault(n(147)),l=i.__importDefault(n(30));e.default=(0,s.default)((function(t,e){void 0===e&&(e={});var n=e.fontSize,i=e.fontFamily,a=e.fontWeight,o=e.fontStyle,s=e.fontVariant;return r||(r=document.createElement("canvas").getContext("2d")),r.font=[o,s,a,n+"px",i].join(" "),r.measureText((0,l.default)(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),(0,a.__spreadArrays)([t],(0,o.default)(e)).join("")}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerEngine=e.getEngine=void 0;var r={};e.getEngine=function(t){var e=r[t];if(!e)throw new Error("G engine '".concat(t,"' is not exist, please register it at first."));return e},e.registerEngine=function(t,e){r[t]=e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(58));e.default=function(t,e){var n=(0,r.default)(t,"height",e);return"auto"===n&&(n=t.offsetHeight),parseFloat(n)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(58));e.default=function(t,e){var n=(0,r.default)(t,"width",e);return"auto"===n&&(n=t.offsetWidth),parseFloat(n)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerGeometry=e.View=void 0;var r=n(0),i=n(1),a=n(2),o=r.__importDefault(n(88)),s=n(89),l=n(112),u=n(205),c=n(29),f=n(14),h=n(25),p=n(78),d=n(113),g=n(38),y=n(206),v=n(208),m=r.__importDefault(n(478)),_=r.__importDefault(n(114)),x=r.__importDefault(n(479)),b=n(480),M=n(209),C=n(481),P=n(482),S=function(t){function e(e){var n=t.call(this,{visible:e.visible})||this;n.views=[],n.geometries=[],n.controllers=[],n.interactions={},n.limitInPlot=!1,n.options={data:[],animate:!0},n.usedControllers=(0,v.getComponentControllerNames)(),n.scalePool=new b.ScalePool,n.layoutFunc=x.default,n.isPreMouseInPlot=!1,n.isDataChanged=!1,n.isCoordinateChanged=!1,n.createdScaleKeys=new Map,n.onCanvasEvent=function(t){var e=t.name;if(!e.includes(":")){var r=n.createViewEvent(t);n.doPlotEvent(r),n.emit(e,r)}},n.onDelegateEvents=function(t){var e=t.name;if(e.includes(":")){var r=n.createViewEvent(t);n.emit(e,r)}};var a=e.id,o=void 0===a?(0,i.uniqueId)("view"):a,s=e.parent,l=e.canvas,c=e.backgroundGroup,f=e.middleGroup,h=e.foregroundGroup,p=e.region,d=void 0===p?{start:{x:0,y:0},end:{x:1,y:1}}:p,g=e.padding,m=e.appendPadding,_=e.theme,M=e.options,C=e.limitInPlot,P=e.syncViewPadding;return n.parent=s,n.canvas=l,n.backgroundGroup=c,n.middleGroup=f,n.foregroundGroup=h,n.region=d,n.padding=g,n.appendPadding=m,n.options=r.__assign(r.__assign({},n.options),M),n.limitInPlot=C,n.id=o,n.syncViewPadding=P,n.themeObject=(0,i.isObject)(_)?(0,i.deepMix)({},(0,u.getTheme)("default"),(0,y.createTheme)(_)):(0,u.getTheme)(_),n.init(),n}return r.__extends(e,t),e.prototype.setLayout=function(t){this.layoutFunc=t},e.prototype.init=function(){this.calculateViewBBox(),this.initEvents(),this.initComponentController(),this.initOptions()},e.prototype.render=function(t,e){void 0===t&&(t=!1),this.emit(a.VIEW_LIFE_CIRCLE.BEFORE_RENDER,_.default.fromData(this,a.VIEW_LIFE_CIRCLE.BEFORE_RENDER,e)),this.paint(t),this.emit(a.VIEW_LIFE_CIRCLE.AFTER_RENDER,_.default.fromData(this,a.VIEW_LIFE_CIRCLE.AFTER_RENDER,e)),!1===this.visible&&this.changeVisible(!1)},e.prototype.clear=function(){var t=this;this.emit(a.VIEW_LIFE_CIRCLE.BEFORE_CLEAR),this.filteredData=[],this.coordinateInstance=void 0,this.isDataChanged=!1,this.isCoordinateChanged=!1;for(var e=this.geometries,n=0;n<e.length;n++)e[n].clear(),e[n].container.remove(!0),e[n].labelsContainer.remove(!0);this.geometries=[];var r=this.controllers;for(n=0;n<r.length;n++)"annotation"===r[n].name?r[n].clear(!0):r[n].clear();this.createdScaleKeys.forEach((function(e,n){t.getRootView().scalePool.deleteScale(n)})),this.createdScaleKeys.clear();var i=this.views;for(n=0;n<i.length;n++)i[n].clear();this.emit(a.VIEW_LIFE_CIRCLE.AFTER_CLEAR)},e.prototype.destroy=function(){this.emit(a.VIEW_LIFE_CIRCLE.BEFORE_DESTROY);var e=this.interactions;(0,i.each)(e,(function(t){t&&t.destroy()})),this.clear();for(var n=this.controllers,r=0,o=n.length;r<o;r++){n[r].destroy()}this.backgroundGroup.remove(!0),this.middleGroup.remove(!0),this.foregroundGroup.remove(!0),t.prototype.destroy.call(this)},e.prototype.changeVisible=function(e){t.prototype.changeVisible.call(this,e);for(var n=this.geometries,r=0,i=n.length;r<i;r++){n[r].changeVisible(e)}var a=this.controllers;for(r=0,i=a.length;r<i;r++){a[r].changeVisible(e)}return this.foregroundGroup.set("visible",e),this.middleGroup.set("visible",e),this.backgroundGroup.set("visible",e),this.getCanvas().draw(),this},e.prototype.data=function(t){return(0,i.set)(this.options,"data",t),this.isDataChanged=!0,this},e.prototype.source=function(t){return console.warn("This method will be removed at G2 V4.1. Please use chart.data() instead."),this.data(t)},e.prototype.filter=function(t,e){return(0,i.isFunction)(e)?((0,i.set)(this.options,["filters",t],e),this):(!e&&(0,i.get)(this.options,["filters",t])&&delete this.options.filters[t],this)},e.prototype.axis=function(t,e){return(0,i.isBoolean)(t)?(0,i.set)(this.options,["axes"],t):(0,i.set)(this.options,["axes",t],e),this},e.prototype.legend=function(t,e){return(0,i.isBoolean)(t)?(0,i.set)(this.options,["legends"],t):(0,i.isString)(t)?((0,i.set)(this.options,["legends",t],e),(0,i.isPlainObject)(e)&&(null==e?void 0:e.selected)&&(0,i.set)(this.options,["filters",t],(function(t){var n;return null===(n=null==e?void 0:e.selected[t])||void 0===n||n}))):(0,i.set)(this.options,["legends"],t),this},e.prototype.scale=function(t,e){var n=this;return(0,i.isString)(t)?(0,i.set)(this.options,["scales",t],e):(0,i.isObject)(t)&&(0,i.each)(t,(function(t,e){(0,i.set)(n.options,["scales",e],t)})),this},e.prototype.tooltip=function(t){return(0,i.set)(this.options,"tooltip",t),this},e.prototype.annotation=function(){return this.getController("annotation")},e.prototype.guide=function(){return console.warn("This method will be removed at G2 V4.1. Please use chart.annotation() instead."),this.annotation()},e.prototype.coordinate=function(t,e){return(0,i.isString)(t)?(0,i.set)(this.options,"coordinate",{type:t,cfg:e}):(0,i.set)(this.options,"coordinate",t),this.coordinateController.update(this.options.coordinate),this.coordinateController},e.prototype.coord=function(t,e){return console.warn("This method will be removed at G2 V4.1. Please use chart.coordinate() instead."),this.coordinate(t,e)},e.prototype.facet=function(t,e){this.facetInstance&&this.facetInstance.destroy();var n=(0,s.getFacet)(t);if(!n)throw new Error("facet '".concat(t,"' is not exist!"));return this.facetInstance=new n(this,r.__assign(r.__assign({},e),{type:t})),this},e.prototype.animate=function(t){return(0,i.set)(this.options,"animate",t),this},e.prototype.updateOptions=function(t){return this.clear(),(0,i.mix)(this.options,t),this.views.forEach((function(t){return t.destroy()})),this.views=[],this.initOptions(),this.coordinateBBox=this.viewBBox,this},e.prototype.option=function(t,n){if(e.prototype[t])throw new Error("Can't use built in variable name \"".concat(t,'", please change another one.'));return(0,i.set)(this.options,t,n),this},e.prototype.theme=function(t){return this.themeObject=(0,i.isObject)(t)?(0,i.deepMix)({},this.themeObject,(0,y.createTheme)(t)):(0,u.getTheme)(t),this},e.prototype.interaction=function(t,e){var n=this.interactions[t];n&&n.destroy();var r=(0,l.createInteraction)(t,this,e);return r&&(r.init(),this.interactions[t]=r),this},e.prototype.removeInteraction=function(t){var e=this.interactions[t];e&&(e.destroy(),this.interactions[t]=void 0)},e.prototype.changeData=function(t){this.isDataChanged=!0,this.emit(a.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,_.default.fromData(this,a.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,null)),this.data(t),this.paint(!0);for(var e=this.views,n=0,r=e.length;n<r;n++){e[n].changeData(t)}this.emit(a.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,_.default.fromData(this,a.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,null))},e.prototype.createView=function(t){this.parent&&this.parent.parent&&console.warn("The view nesting recursive feature will be removed at G2 V4.1. Please avoid to use it.");var n={data:this.options.data,scales:(0,i.clone)(this.options.scales),axes:(0,i.clone)(this.options.axes),coordinate:(0,i.clone)(this.coordinateController.getOption()),tooltip:(0,i.clone)(this.options.tooltip),legends:(0,i.clone)(this.options.legends),animate:this.options.animate,visible:this.visible},o=new e(r.__assign(r.__assign({parent:this,canvas:this.canvas,backgroundGroup:this.backgroundGroup.addGroup({zIndex:a.GROUP_Z_INDEX.BG}),middleGroup:this.middleGroup.addGroup({zIndex:a.GROUP_Z_INDEX.MID}),foregroundGroup:this.foregroundGroup.addGroup({zIndex:a.GROUP_Z_INDEX.FORE}),theme:this.themeObject,padding:this.padding},t),{options:r.__assign(r.__assign({},n),(0,i.get)(t,"options",{}))}));return this.views.push(o),o},e.prototype.view=function(t){return console.warn("This method will be removed at G2 V4.1. Please use chart.createView() instead."),this.createView(t)},e.prototype.removeView=function(t){var e=(0,i.remove)(this.views,(function(e){return e===t}))[0];return e&&e.destroy(),e},e.prototype.getCoordinate=function(){return this.coordinateInstance},e.prototype.getTheme=function(){return this.themeObject},e.prototype.getXScale=function(){var t=this.geometries[0];return t?t.getXScale():null},e.prototype.getYScales=function(){var t={},e=[];return this.geometries.forEach((function(n){var r=n.getYScale(),i=r.field;t[i]||(t[i]=!0,e.push(r))})),e},e.prototype.getScalesByDim=function(t){for(var e=this.geometries,n={},r=0,i=e.length;r<i;r++){var a=e[r],o="x"===t?a.getXScale():a.getYScale();o&&!n[o.field]&&(n[o.field]=o)}return n},e.prototype.getScale=function(t,e){var n=e||this.getScaleKey(t);return this.getRootView().scalePool.getScale(n)},e.prototype.getScaleByField=function(t,e){return this.getScale(t,e)},e.prototype.getOptions=function(){return this.options},e.prototype.getData=function(){return this.filteredData},e.prototype.getOriginalData=function(){return this.options.data},e.prototype.getPadding=function(){return this.autoPadding.getPadding()},e.prototype.getGeometries=function(){return this.geometries},e.prototype.getElements=function(){return(0,i.reduce)(this.geometries,(function(t,e){return t.concat(e.getElements())}),[])},e.prototype.getElementsBy=function(t){return this.getElements().filter((function(e){return t(e)}))},e.prototype.getLayer=function(t){return t===a.LAYER.BG?this.backgroundGroup:t===a.LAYER.MID?this.middleGroup:(a.LAYER.FORE,this.foregroundGroup)},e.prototype.isPointInPlot=function(t){return(0,f.isPointInCoordinate)(this.getCoordinate(),t)},e.prototype.getLegendAttributes=function(){return(0,i.flatten)(this.geometries.map((function(t){return t.getGroupAttributes()})))},e.prototype.getGroupScales=function(){var t=this.geometries.map((function(t){return t.getGroupScales()}));return(0,h.uniq)((0,i.flatten)(t))},e.prototype.getCanvas=function(){return this.getRootView().canvas},e.prototype.getRootView=function(){for(var t=this;t.parent;)t=t.parent;return t},e.prototype.getXY=function(t){var e,n,r=this.getCoordinate(),a=this.getScalesByDim("x"),o=this.getScalesByDim("y");if((0,i.each)(t,(function(t,r){a[r]&&(e=a[r].scale(t)),o[r]&&(n=o[r].scale(t))})),!(0,i.isNil)(e)&&!(0,i.isNil)(n))return r.convert({x:e,y:n})},e.prototype.getController=function(t){return(0,i.find)(this.controllers,(function(e){return e.name===t}))},e.prototype.showTooltip=function(t){var e=this.getController("tooltip");return e&&e.showTooltip(t),this},e.prototype.hideTooltip=function(){var t=this.getController("tooltip");return t&&t.hideTooltip(),this},e.prototype.lockTooltip=function(){var t=this.getController("tooltip");return t&&t.lockTooltip(),this},e.prototype.unlockTooltip=function(){var t=this.getController("tooltip");return t&&t.unlockTooltip(),this},e.prototype.isTooltipLocked=function(){var t=this.getController("tooltip");return t&&t.isTooltipLocked()},e.prototype.getTooltipItems=function(t){var e=this.getController("tooltip");return e?e.getTooltipItems(t):[]},e.prototype.getSnapRecords=function(t){for(var e=this.geometries,n=[],r=0,i=e.length;r<i;r++){var a=e[r],o=a.dataArray;a.sort(o);for(var s=void 0,l=0,u=o.length;l<u;l++){var c=o[l];(s=(0,p.findDataByPoint)(t,c,a))&&n.push(s)}}var f=this.views;for(r=0,i=f.length;r<i;r++){var h=f[r].getSnapRecords(t);n=n.concat(h)}return n},e.prototype.getComponents=function(){for(var t=[],e=this.controllers,n=0,r=e.length;n<r;n++){var i=e[n];t=t.concat(i.getComponents())}return t},e.prototype.filterData=function(t){var e=this.options.filters;return 0===(0,i.size)(e)?t:(0,i.filter)(t,(function(t,n){return Object.keys(e).every((function(r){return(0,e[r])(t[r],t,n)}))}))},e.prototype.filterFieldData=function(t,e){var n=this.options.filters,r=(0,i.get)(n,t);return(0,i.isUndefined)(r)?e:e.filter((function(e,n){return r(e[t],e,n)}))},e.prototype.adjustCoordinate=function(){var t=this.getCoordinate(),e=t.start,n=t.end,r=this.coordinateBBox.bl,a=this.coordinateBBox.tr;(0,i.isEqual)(e,r)&&(0,i.isEqual)(n,a)?this.isCoordinateChanged=!1:(this.isCoordinateChanged=!0,this.coordinateInstance=this.coordinateController.adjust(r,a))},e.prototype.paint=function(t){this.renderDataRecursive(t),this.syncScale(),this.emit(a.VIEW_LIFE_CIRCLE.BEFORE_PAINT),this.renderPaddingRecursive(t),this.renderLayoutRecursive(t),this.renderBackgroundStyleShape(),this.renderPaintRecursive(t),this.emit(a.VIEW_LIFE_CIRCLE.AFTER_PAINT),this.isDataChanged=!1},e.prototype.renderBackgroundStyleShape=function(){if(!this.parent){var t=(0,i.get)(this.themeObject,"background");if(t){this.backgroundStyleRectShape||(this.backgroundStyleRectShape=this.backgroundGroup.addShape("rect",{attrs:{},zIndex:-1,capture:!1}),this.backgroundStyleRectShape.toBack());var e=this.viewBBox,n=e.x,r=e.y,a=e.width,o=e.height;this.backgroundStyleRectShape.attr({fill:t,x:n,y:r,width:a,height:o})}else this.backgroundStyleRectShape&&(this.backgroundStyleRectShape.remove(!0),this.backgroundStyleRectShape=void 0)}},e.prototype.renderPaddingRecursive=function(t){this.calculateViewBBox(),this.adjustCoordinate(),this.initComponents(t),this.autoPadding=(0,C.calculatePadding)(this).shrink((0,d.parsePadding)(this.appendPadding)),this.coordinateBBox=this.viewBBox.shrink(this.autoPadding.getPadding()),this.adjustCoordinate();for(var e=this.views,n=0,r=e.length;n<r;n++){e[n].renderPaddingRecursive(t)}},e.prototype.renderLayoutRecursive=function(t){var e=!0===this.syncViewPadding?P.defaultSyncViewPadding:(0,i.isFunction)(this.syncViewPadding)?this.syncViewPadding:void 0;e&&(e(this,this.views,M.PaddingCal),this.views.forEach((function(t){t.coordinateBBox=t.viewBBox.shrink(t.autoPadding.getPadding()),t.adjustCoordinate()}))),this.doLayout();for(var n=this.views,r=0,a=n.length;r<a;r++){n[r].renderLayoutRecursive(t)}},e.prototype.renderPaintRecursive=function(t){var e=this.middleGroup;if(this.limitInPlot){var n=(0,f.getCoordinateClipCfg)(this.coordinateInstance),r=n.type,i=n.attrs;e.setClip({type:r,attrs:i})}else e.setClip(void 0);this.paintGeometries(t),this.renderComponents(t);for(var a=this.views,o=0,s=a.length;o<s;o++){a[o].renderPaintRecursive(t)}},e.prototype.createScale=function(t,e,n,a){var o=(0,i.get)(this.options.scales,[t]),s=r.__assign(r.__assign({},o),n);return this.parent?this.parent.createScale(t,e,s,a):this.scalePool.createScale(t,e,s,a)},e.prototype.renderDataRecursive=function(t){this.doFilterData(),this.createCoordinate(),this.initGeometries(t),this.renderFacet(t);for(var e=this.views,n=0,r=e.length;n<r;n++){e[n].renderDataRecursive(t)}},e.prototype.calculateViewBBox=function(){var t,e,n,r;if(this.parent){var i=this.parent.coordinateBBox;t=i.x,e=i.y,n=i.width,r=i.height}else t=0,e=0,n=this.canvas.get("width"),r=this.canvas.get("height");var a=this.region,o=a.start,s=a.end,l=new c.BBox(t+n*o.x,e+r*o.y,n*(s.x-o.x),r*(s.y-o.y));this.viewBBox&&this.viewBBox.isEqual(l)||(this.viewBBox=new c.BBox(t+n*o.x,e+r*o.y,n*(s.x-o.x),r*(s.y-o.y))),this.coordinateBBox=this.viewBBox},e.prototype.initEvents=function(){this.foregroundGroup.on("*",this.onDelegateEvents),this.middleGroup.on("*",this.onDelegateEvents),this.backgroundGroup.on("*",this.onDelegateEvents),this.canvas.on("*",this.onCanvasEvent)},e.prototype.initComponentController=function(){for(var t=this.usedControllers,e=0,n=t.length;e<n;e++){var r=t[e],i=(0,v.getComponentController)(r);i&&this.controllers.push(new i(this))}},e.prototype.createViewEvent=function(t){var e=t.shape,n=t.name,r=e?e.get("origin"):null,i=new _.default(this,t,r);return i.type=n,i},e.prototype.doPlotEvent=function(t){var e=t.type,n={x:t.x,y:t.y};if(["mousedown","mouseup","mousemove","mouseleave","mousewheel","touchstart","touchmove","touchend","touchcancel","click","dblclick","contextmenu"].includes(e)){var r=this.isPointInPlot(n),i=t.clone();if(r){var o="plot:".concat(e);i.type=o,this.emit(o,i),"mouseleave"!==e&&"touchend"!==e||(this.isPreMouseInPlot=!1)}"mousemove"===e||"touchmove"===e?(this.isPreMouseInPlot&&!r?("mousemove"===e&&(i.type=a.PLOT_EVENTS.MOUSE_LEAVE,this.emit(a.PLOT_EVENTS.MOUSE_LEAVE,i)),i.type=a.PLOT_EVENTS.LEAVE,this.emit(a.PLOT_EVENTS.LEAVE,i)):!this.isPreMouseInPlot&&r&&("mousemove"===e&&(i.type=a.PLOT_EVENTS.MOUSE_ENTER,this.emit(a.PLOT_EVENTS.MOUSE_ENTER,i)),i.type=a.PLOT_EVENTS.ENTER,this.emit(a.PLOT_EVENTS.ENTER,i)),this.isPreMouseInPlot=r):"mouseleave"!==e&&"touchend"!==e||this.isPreMouseInPlot&&("mouseleave"===e&&(i.type=a.PLOT_EVENTS.MOUSE_LEAVE,this.emit(a.PLOT_EVENTS.MOUSE_LEAVE,i)),i.type=a.PLOT_EVENTS.LEAVE,this.emit(a.PLOT_EVENTS.LEAVE,i),this.isPreMouseInPlot=!1)}},e.prototype.doFilterData=function(){var t=this.options.data;this.filteredData=this.filterData(t)},e.prototype.initGeometries=function(t){this.createOrUpdateScales();for(var e=this.getCoordinate(),n=(0,i.get)(this.options,"scales",{}),r=this.geometries,a=0,o=r.length;a<o;a++){var s=r[a];s.scales=this.getGeometryScales();var l={coordinate:e,scaleDefs:n,data:this.filteredData,theme:this.themeObject,isDataChanged:this.isDataChanged,isCoordinateChanged:this.isCoordinateChanged};t?s.update(l):s.init(l)}this.adjustScales()},e.prototype.createOrUpdateScales=function(){for(var t=this.getScaleFields(),e=this.getGroupedFields(),n=this.getOptions(),r=n.data,i=n.scales,a=void 0===i?{}:i,o=this.filteredData,s=0,l=t.length;s<l;s++){var u=t[s],c=a[u],f=this.getScaleKey(u);this.createScale(u,e.includes(u)?r:o,c,f),this.createdScaleKeys.set(f,!0)}},e.prototype.syncScale=function(){this.getRootView().scalePool.sync(this.getCoordinate(),this.theme)},e.prototype.getGeometryScales=function(){for(var t=this.getScaleFields(),e={},n=0;n<t.length;n++){var r=t[n];e[r]=this.getScaleByField(r)}return e},e.prototype.getScaleFields=function(){for(var t=[],e=new Map,n=this.geometries,r=0;r<n.length;r++){var i=n[r].getScaleFields();(0,h.uniq)(i,t,e)}return t},e.prototype.getGroupedFields=function(){for(var t=[],e=new Map,n=this.geometries,r=0;r<n.length;r++){var i=n[r].getGroupFields();(0,h.uniq)(i,t,e)}return t},e.prototype.adjustScales=function(){this.adjustCategoryScaleRange()},e.prototype.adjustCategoryScaleRange=function(){var t=this,e=r.__spreadArray([this.getXScale()],r.__read(this.getYScales()),!1).filter((function(t){return!!t})),n=this.getCoordinate(),a=this.options.scales;(0,i.each)(e,(function(e){var r=e.field,o=e.values,s=e.isCategory,l=e.isIdentity;(s||l)&&o&&!(0,i.get)(a,[r,"range"])&&(e.range=(0,g.getDefaultCategoryScaleRange)(e,n,t.theme))}))},e.prototype.initComponents=function(t){for(var e=this.controllers,n=0;n<e.length;n++){var r=e[n];t?r.update():(r.clear(),r.render())}},e.prototype.doLayout=function(){this.layoutFunc(this)},e.prototype.createCoordinate=function(){var t=this.coordinateBBox.bl,e=this.coordinateBBox.tr;this.coordinateInstance=this.coordinateController.create(t,e)},e.prototype.paintGeometries=function(t){for(var e=this.options.animate,n=this.getCoordinate(),r={x:this.viewBBox.x,y:this.viewBBox.y,minX:this.viewBBox.minX,minY:this.viewBBox.minY,maxX:this.viewBBox.maxX,maxY:this.viewBBox.maxY,width:this.viewBBox.width,height:this.viewBBox.height},i=this.geometries,a=0;a<i.length;a++){var o=i[a];o.coordinate=n,o.canvasRegion=r,e||o.animate(!1),o.paint(t)}},e.prototype.renderComponents=function(t){for(var e=0;e<this.getComponents().length;e++){this.getComponents()[e].component.render()}},e.prototype.renderFacet=function(t){this.facetInstance&&(t?this.facetInstance.update():(this.facetInstance.clear(),this.facetInstance.init(),this.facetInstance.render()))},e.prototype.initOptions=function(){var t=this,e=this.options,n=e.geometries,a=void 0===n?[]:n,o=e.interactions,s=void 0===o?[]:o,l=e.views,u=void 0===l?[]:l,c=e.annotations,f=void 0===c?[]:c,h=e.coordinate,p=e.events,d=e.facets;this.coordinateController?h&&this.coordinateController.update(h):this.coordinateController=new m.default(h);for(var g=0;g<a.length;g++){var y=a[g];this.createGeometry(y)}for(var v=0;v<s.length;v++){var _=s[v],x=_.type,b=_.cfg;this.interaction(x,b)}for(var M=0;M<u.length;M++){var C=u[M];this.createView(C)}for(var P=this.getController("annotation"),S=0;S<f.length;S++){var O=f[S];P.annotation(O)}p&&(0,i.each)(p,(function(e,n){t.on(n,e)})),d&&(0,i.each)(d,(function(e){var n=e.type,i=r.__rest(e,["type"]);t.facet(n,i)}))},e.prototype.createGeometry=function(t){var e=t.type,n=t.cfg,r=void 0===n?{}:n;if(this[e]){var a=this[e](r);(0,i.each)(t,(function(t,e){(0,i.isFunction)(a[e])&&a[e](t)}))}},e.prototype.getScaleKey=function(t){return"".concat(this.id,"-").concat(t)},e}(o.default);e.View=S,e.registerGeometry=function(t,e){S.prototype[t.toLowerCase()]=function(t){void 0===t&&(t={});var n=r.__assign({container:this.middleGroup.addGroup(),labelsContainer:this.foregroundGroup.addGroup()},t),i=new e(n);return this.geometries.push(i),i}},e.default=S},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){this._events={}}return t.prototype.on=function(t,e,n){return this._events[t]||(this._events[t]=[]),this._events[t].push({callback:e,once:!!n}),this},t.prototype.once=function(t,e){return this.on(t,e,!0)},t.prototype.emit=function(t){for(var e=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=this._events[t]||[],a=this._events["*"]||[],o=function(r){for(var i=r.length,a=0;a<i;a++)if(r[a]){var o=r[a],s=o.callback;o.once&&(r.splice(a,1),0===r.length&&delete e._events[t],i--,a--),s.apply(e,n)}};o(i),o(a)},t.prototype.off=function(t,e){if(t)if(e){for(var n=this._events[t]||[],r=n.length,i=0;i<r;i++)n[i].callback===e&&(n.splice(i,1),r--,i--);0===n.length&&delete this._events[t]}else delete this._events[t];else this._events={};return this},t.prototype.getEvents=function(){return this._events},t}();e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.rectPath=e.pathToCurve=e.pathToAbsolute=e.parsePathString=e.parsePathArray=e.intersection=e.formatPath=e.fillPathByDiff=e.fillPath=e.catmullRomToBezier=void 0;var r=n(1),i="\t\n\v\f\r   ᠎              \u2028\u2029",a=new RegExp("([a-z])["+i+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+i+"]*,?["+i+"]*)+)","ig"),o=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+i+"]*,?["+i+"]*","ig"),s=function(t){if(!t)return null;if((0,r.isArray)(t))return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(a,(function(r,i,a){var s=[],l=i.toLowerCase();if(a.replace(o,(function(t,e){e&&s.push(+e)})),"m"===l&&s.length>2&&(n.push([i].concat(s.splice(0,2))),l="l",i="m"===i?"l":"L"),"o"===l&&1===s.length&&n.push([i,s[0]]),"r"===l)n.push([i].concat(s));else for(;s.length>=e[l]&&(n.push([i].concat(s.splice(0,e[l]))),e[l]););return t})),n};e.parsePathString=s;var l=function(t,e){for(var n=[],r=0,i=t.length;i-2*!e>r;r+=2){var a=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?i-4===r?a[3]={x:+t[0],y:+t[1]}:i-2===r&&(a[2]={x:+t[0],y:+t[1]},a[3]={x:+t[2],y:+t[3]}):a[0]={x:+t[i-2],y:+t[i-1]}:i-4===r?a[3]=a[2]:r||(a[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-a[0].x+6*a[1].x+a[2].x)/6,(-a[0].y+6*a[1].y+a[2].y)/6,(a[1].x+6*a[2].x-a[3].x)/6,(a[1].y+6*a[2].y-a[3].y)/6,a[2].x,a[2].y])}return n};e.catmullRomToBezier=l;var u=function(t,e,n,r,i){var a=[];if(null===i&&null===r&&(r=n),t=+t,e=+e,n=+n,r=+r,null!==i){var o=Math.PI/180,s=t+n*Math.cos(-r*o),l=t+n*Math.cos(-i*o);a=[["M",s,e+n*Math.sin(-r*o)],["A",n,n,0,+(i-r>180),0,l,e+n*Math.sin(-i*o)]]}else a=[["M",t,e],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return a},c=function(t){if(!(t=s(t))||!t.length)return[["M",0,0]];var e,n,r=[],i=0,a=0,o=0,c=0,f=0;"M"===t[0][0]&&(o=i=+t[0][1],c=a=+t[0][2],f++,r[0]=["M",i,a]);for(var h=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),p=void 0,d=void 0,g=f,y=t.length;g<y;g++){if(r.push(p=[]),(e=(d=t[g])[0])!==e.toUpperCase())switch(p[0]=e.toUpperCase(),p[0]){case"A":p[1]=d[1],p[2]=d[2],p[3]=d[3],p[4]=d[4],p[5]=d[5],p[6]=+d[6]+i,p[7]=+d[7]+a;break;case"V":p[1]=+d[1]+a;break;case"H":p[1]=+d[1]+i;break;case"R":for(var v=2,m=(n=[i,a].concat(d.slice(1))).length;v<m;v++)n[v]=+n[v]+i,n[++v]=+n[v]+a;r.pop(),r=r.concat(l(n,h));break;case"O":r.pop(),(n=u(i,a,d[1],d[2])).push(n[0]),r=r.concat(n);break;case"U":r.pop(),r=r.concat(u(i,a,d[1],d[2],d[3])),p=["U"].concat(r[r.length-1].slice(-2));break;case"M":o=+d[1]+i,c=+d[2]+a;break;default:for(v=1,m=d.length;v<m;v++)p[v]=+d[v]+(v%2?i:a)}else if("R"===e)n=[i,a].concat(d.slice(1)),r.pop(),r=r.concat(l(n,h)),p=["R"].concat(d.slice(-2));else if("O"===e)r.pop(),(n=u(i,a,d[1],d[2])).push(n[0]),r=r.concat(n);else if("U"===e)r.pop(),r=r.concat(u(i,a,d[1],d[2],d[3])),p=["U"].concat(r[r.length-1].slice(-2));else for(var _=0,x=d.length;_<x;_++)p[_]=d[_];if("O"!==(e=e.toUpperCase()))switch(p[0]){case"Z":i=+o,a=+c;break;case"H":i=p[1];break;case"V":a=p[1];break;case"M":o=p[p.length-2],c=p[p.length-1];break;default:i=p[p.length-2],a=p[p.length-1]}}return r};e.pathToAbsolute=c;var f=function(t,e,n,r){return[t,e,n,r,n,r]},h=function(t,e,n,r,i,a){return[1/3*t+2/3*n,1/3*e+2/3*r,1/3*i+2/3*n,1/3*a+2/3*r,i,a]},p=function t(e,n,r,i,a,o,s,l,u,c){r===i&&(r+=1);var f,h,p,d,g,y=120*Math.PI/180,v=Math.PI/180*(+a||0),m=[],_=function(t,e,n){return{x:t*Math.cos(n)-e*Math.sin(n),y:t*Math.sin(n)+e*Math.cos(n)}};if(c)h=c[0],p=c[1],d=c[2],g=c[3];else{e=(f=_(e,n,-v)).x,n=f.y,l=(f=_(l,u,-v)).x,u=f.y,e===l&&n===u&&(l+=1,u+=1);var x=(e-l)/2,b=(n-u)/2,M=x*x/(r*r)+b*b/(i*i);M>1&&(r*=M=Math.sqrt(M),i*=M);var C=r*r,P=i*i,S=(o===s?-1:1)*Math.sqrt(Math.abs((C*P-C*b*b-P*x*x)/(C*b*b+P*x*x)));d=S*r*b/i+(e+l)/2,g=S*-i*x/r+(n+u)/2,h=Math.asin(((n-g)/i).toFixed(9)),p=Math.asin(((u-g)/i).toFixed(9)),h=e<d?Math.PI-h:h,p=l<d?Math.PI-p:p,h<0&&(h=2*Math.PI+h),p<0&&(p=2*Math.PI+p),s&&h>p&&(h-=2*Math.PI),!s&&p>h&&(p-=2*Math.PI)}var O=p-h;if(Math.abs(O)>y){var w=p,A=l,T=u;p=h+y*(s&&p>h?1:-1),m=t(l=d+r*Math.cos(p),u=g+i*Math.sin(p),r,i,a,0,s,A,T,[p,w,d,g])}O=p-h;var E=Math.cos(h),I=Math.sin(h),L=Math.cos(p),D=Math.sin(p),B=Math.tan(O/4),j=4/3*r*B,R=4/3*i*B,k=[e,n],F=[e+j*I,n-R*E],N=[l+j*D,u-R*L],G=[l,u];if(F[0]=2*k[0]-F[0],F[1]=2*k[1]-F[1],c)return[F,N,G].concat(m);for(var Y=[],V=0,H=(m=[F,N,G].concat(m).join().split(",")).length;V<H;V++)Y[V]=V%2?_(m[V-1],m[V],v).y:_(m[V],m[V+1],v).x;return Y},d=function(t,e){var n,r=c(t),i=e&&c(e),a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},s=[],l=[],u="",d="",g=function(t,e,n){var r,i;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"].concat(p.apply(0,[e.x,e.y].concat(t.slice(1))));break;case"S":"C"===n||"S"===n?(r=2*e.x-e.bx,i=2*e.y-e.by):(r=e.x,i=e.y),t=["C",r,i].concat(t.slice(1));break;case"T":"Q"===n||"T"===n?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"].concat(h(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"].concat(h(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(f(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(f(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(f(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(f(e.x,e.y,e.X,e.Y))}return t},y=function(t,e){if(t[e].length>7){t[e].shift();for(var a=t[e];a.length;)s[e]="A",i&&(l[e]="A"),t.splice(e++,0,["C"].concat(a.splice(0,6)));t.splice(e,1),n=Math.max(r.length,i&&i.length||0)}},v=function(t,e,a,o,s){t&&e&&"M"===t[s][0]&&"M"!==e[s][0]&&(e.splice(s,0,["M",o.x,o.y]),a.bx=0,a.by=0,a.x=t[s][1],a.y=t[s][2],n=Math.max(r.length,i&&i.length||0))};n=Math.max(r.length,i&&i.length||0);for(var m=0;m<n;m++){r[m]&&(u=r[m][0]),"C"!==u&&(s[m]=u,m&&(d=s[m-1])),r[m]=g(r[m],a,d),"A"!==s[m]&&"C"===u&&(s[m]="C"),y(r,m),i&&(i[m]&&(u=i[m][0]),"C"!==u&&(l[m]=u,m&&(d=l[m-1])),i[m]=g(i[m],o,d),"A"!==l[m]&&"C"===u&&(l[m]="C"),y(i,m)),v(r,i,a,o,m),v(i,r,o,a,m);var _=r[m],x=i&&i[m],b=_.length,M=i&&x.length;a.x=_[b-2],a.y=_[b-1],a.bx=parseFloat(_[b-4])||a.x,a.by=parseFloat(_[b-3])||a.y,o.bx=i&&(parseFloat(x[M-4])||o.x),o.by=i&&(parseFloat(x[M-3])||o.y),o.x=i&&x[M-2],o.y=i&&x[M-1]}return i?[r,i]:r};e.pathToCurve=d;var g=/,?([a-z]),?/gi,y=function(t){return t.join(",").replace(g,"$1")};e.parsePathArray=y;var v=function(t,e,n,r,i){return t*(t*(-3*e+9*n-9*r+3*i)+6*e-12*n+6*r)-3*e+3*n},m=function(t,e,n,r,i,a,o,s,l){null===l&&(l=1);for(var u=(l=l>1?1:l<0?0:l)/2,c=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],h=0,p=0;p<12;p++){var d=u*c[p]+u,g=v(d,t,n,i,o),y=v(d,e,r,a,s),m=g*g+y*y;h+=f[p]*Math.sqrt(m)}return u*h},_=function(t,e,n,r,i,a,o,s){for(var l,u,c,f,h=[],p=[[],[]],d=0;d<2;++d)if(0===d?(u=6*t-12*n+6*i,l=-3*t+9*n-9*i+3*o,c=3*n-3*t):(u=6*e-12*r+6*a,l=-3*e+9*r-9*a+3*s,c=3*r-3*e),Math.abs(l)<1e-12){if(Math.abs(u)<1e-12)continue;(f=-c/u)>0&&f<1&&h.push(f)}else{var g=u*u-4*c*l,y=Math.sqrt(g);if(!(g<0)){var v=(-u+y)/(2*l);v>0&&v<1&&h.push(v);var m=(-u-y)/(2*l);m>0&&m<1&&h.push(m)}}for(var _,x=h.length,b=x;x--;)_=1-(f=h[x]),p[0][x]=_*_*_*t+3*_*_*f*n+3*_*f*f*i+f*f*f*o,p[1][x]=_*_*_*e+3*_*_*f*r+3*_*f*f*a+f*f*f*s;return p[0][b]=t,p[1][b]=e,p[0][b+1]=o,p[1][b+1]=s,p[0].length=p[1].length=b+2,{min:{x:Math.min.apply(0,p[0]),y:Math.min.apply(0,p[1])},max:{x:Math.max.apply(0,p[0]),y:Math.max.apply(0,p[1])}}},x=function(t,e,n,r,i,a,o,s){if(!(Math.max(t,n)<Math.min(i,o)||Math.min(t,n)>Math.max(i,o)||Math.max(e,r)<Math.min(a,s)||Math.min(e,r)>Math.max(a,s))){var l=(t-n)*(a-s)-(e-r)*(i-o);if(l){var u=((t*r-e*n)*(i-o)-(t-n)*(i*s-a*o))/l,c=((t*r-e*n)*(a-s)-(e-r)*(i*s-a*o))/l,f=+u.toFixed(2),h=+c.toFixed(2);if(!(f<+Math.min(t,n).toFixed(2)||f>+Math.max(t,n).toFixed(2)||f<+Math.min(i,o).toFixed(2)||f>+Math.max(i,o).toFixed(2)||h<+Math.min(e,r).toFixed(2)||h>+Math.max(e,r).toFixed(2)||h<+Math.min(a,s).toFixed(2)||h>+Math.max(a,s).toFixed(2)))return{x:u,y:c}}}},b=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},M=function(t,e,n,r,i){if(i)return[["M",+t+ +i,e],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]];var a=[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]];return a.parsePathArray=y,a};e.rectPath=M;var C=function(t,e,n,r){return null===t&&(t=e=n=r=0),null===e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:M(t,e,n,r),vb:[t,e,n,r].join(" ")}},P=function(t,e,n,i,a,o,s,l){(0,r.isArray)(t)||(t=[t,e,n,i,a,o,s,l]);var u=_.apply(null,t);return C(u.min.x,u.min.y,u.max.x-u.min.x,u.max.y-u.min.y)},S=function(t,e,n,r,i,a,o,s,l){var u=1-l,c=Math.pow(u,3),f=Math.pow(u,2),h=l*l,p=h*l,d=t+2*l*(n-t)+h*(i-2*n+t),g=e+2*l*(r-e)+h*(a-2*r+e),y=n+2*l*(i-n)+h*(o-2*i+n),v=r+2*l*(a-r)+h*(s-2*a+r);return{x:c*t+3*f*l*n+3*u*l*l*i+p*o,y:c*e+3*f*l*r+3*u*l*l*a+p*s,m:{x:d,y:g},n:{x:y,y:v},start:{x:u*t+l*n,y:u*e+l*r},end:{x:u*i+l*o,y:u*a+l*s},alpha:90-180*Math.atan2(d-y,g-v)/Math.PI}},O=function(t,e,n){if(!function(t,e){return t=C(t),e=C(e),b(e,t.x,t.y)||b(e,t.x2,t.y)||b(e,t.x,t.y2)||b(e,t.x2,t.y2)||b(t,e.x,e.y)||b(t,e.x2,e.y)||b(t,e.x,e.y2)||b(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)}(P(t),P(e)))return n?0:[];for(var r=~~(m.apply(0,t)/8),i=~~(m.apply(0,e)/8),a=[],o=[],s={},l=n?0:[],u=0;u<r+1;u++){var c=S.apply(0,t.concat(u/r));a.push({x:c.x,y:c.y,t:u/r})}for(u=0;u<i+1;u++){c=S.apply(0,e.concat(u/i));o.push({x:c.x,y:c.y,t:u/i})}for(u=0;u<r;u++)for(var f=0;f<i;f++){var h=a[u],p=a[u+1],d=o[f],g=o[f+1],y=Math.abs(p.x-h.x)<.001?"y":"x",v=Math.abs(g.x-d.x)<.001?"y":"x",_=x(h.x,h.y,p.x,p.y,d.x,d.y,g.x,g.y);if(_){if(s[_.x.toFixed(4)]===_.y.toFixed(4))continue;s[_.x.toFixed(4)]=_.y.toFixed(4);var M=h.t+Math.abs((_[y]-h[y])/(p[y]-h[y]))*(p.t-h.t),O=d.t+Math.abs((_[v]-d[v])/(g[v]-d[v]))*(g.t-d.t);M>=0&&M<=1&&O>=0&&O<=1&&(n?l+=1:l.push({x:_.x,y:_.y,t1:M,t2:O}))}}return l};function w(t,e){var n=[],r=[];return t.length&&function t(e,i){if(1===e.length)n.push(e[0]),r.push(e[0]);else{for(var a=[],o=0;o<e.length-1;o++)0===o&&n.push(e[0]),o===e.length-2&&r.push(e[o+1]),a[o]=[(1-i)*e[o][0]+i*e[o+1][0],(1-i)*e[o][1]+i*e[o+1][1]];t(a,i)}}(t,e),{left:n,right:r.reverse()}}e.intersection=function(t,e){return function(t,e,n){var r,i,a,o,s,l,u,c,f,h;t=d(t),e=d(e);for(var p=n?0:[],g=0,y=t.length;g<y;g++){var v=t[g];if("M"===v[0])r=s=v[1],i=l=v[2];else{"C"===v[0]?(f=[r,i].concat(v.slice(1)),r=f[6],i=f[7]):(f=[r,i,r,i,s,l,s,l],r=s,i=l);for(var m=0,_=e.length;m<_;m++){var x=e[m];if("M"===x[0])a=u=x[1],o=c=x[2];else{"C"===x[0]?(h=[a,o].concat(x.slice(1)),a=h[6],o=h[7]):(h=[a,o,a,o,u,c,u,c],a=u,o=c);var b=O(f,h,n);if(n)p+=b;else{for(var M=0,C=b.length;M<C;M++)b[M].segment1=g,b[M].segment2=m,b[M].bez1=f,b[M].bez2=h;p=p.concat(b)}}}}}return p}(t,e)};var A=function(t,e,n){if(1===n)return[[].concat(t)];var r=[];if("L"===e[0]||"C"===e[0]||"Q"===e[0])r=r.concat(function(t,e,n){var r=[[t[1],t[2]]];n=n||2;var i=[];"A"===e[0]?(r.push(e[6]),r.push(e[7])):"C"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]]),r.push([e[5],e[6]])):"S"===e[0]||"Q"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]])):r.push([e[1],e[2]]);for(var a=r,o=1/n,s=0;s<n-1;s++){var l=w(a,o/(1-o*s));i.push(l.left),a=l.right}return i.push(a),i.map((function(t){var e=[];return 4===t.length&&(e.push("C"),e=e.concat(t[2])),t.length>=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e=e.concat(t[t.length-1])}))}(t,e,n));else{var i=[].concat(t);"M"===i[0]&&(i[0]="L");for(var a=0;a<=n-1;a++)r.push(i)}return r};e.fillPath=function(t,e){if(1===t.length)return t;var n=t.length-1,r=e.length-1,i=n/r,a=[];if(1===t.length&&"M"===t[0][0]){for(var o=0;o<r-n;o++)t.push(t[0]);return t}for(o=0;o<r;o++){var s=Math.floor(i*o);a[s]=(a[s]||0)+1}var l=a.reduce((function(e,r,i){return i===n?e.concat(t[n]):e.concat(A(t[i],t[i+1],r))}),[]);return l.unshift(t[0]),"Z"!==e[r]&&"z"!==e[r]||l.push("Z"),l};var T=function(t,e){if(t.length!==e.length)return!1;var n=!0;return(0,r.each)(t,(function(t,r){if(t!==e[r])return n=!1,!1})),n};function E(t,e,n){var r=null,i=n;return e<i&&(i=e,r="add"),t<i&&(i=t,r="del"),{type:r,min:i}}function I(t,e,n){for(var r,i=[].concat(t),a=1/(n+1),o=L(e)[0],s=1;s<=n;s++)a*=s,0===(r=Math.floor(t.length*a))?i.unshift([o[0]*a+t[r][0]*(1-a),o[1]*a+t[r][1]*(1-a)]):i.splice(r,0,[o[0]*a+t[r][0]*(1-a),o[1]*a+t[r][1]*(1-a)]);return i}function L(t){var e=[];switch(t[0]){case"M":case"L":e.push([t[1],t[2]]);break;case"A":e.push([t[6],t[7]]);break;case"Q":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"T":e.push([t[1],t[2]]);break;case"C":e.push([t[5],t[6]]),e.push([t[1],t[2]]),e.push([t[3],t[4]]);break;case"S":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"H":case"V":e.push([t[1],t[1]])}return e}e.fillPathByDiff=function(t,e){var n=function(t,e){var n,r,i=t.length,a=e.length,o=0;if(0===i||0===a)return null;for(var s=[],l=0;l<=i;l++)s[l]=[],s[l][0]={min:l};for(var u=0;u<=a;u++)s[0][u]={min:u};for(l=1;l<=i;l++){n=t[l-1];for(u=1;u<=a;u++){r=e[u-1],o=T(n,r)?0:1;var c=s[l-1][u].min+1,f=s[l][u-1].min+1,h=s[l-1][u-1].min+o;s[l][u]=E(c,f,h)}}return s}(t,e),r=t.length,i=e.length,a=[],o=1,s=1;if(n[r][i].min!==r){for(var l=1;l<=r;l++){var u=n[l][l].min;s=l;for(var c=o;c<=i;c++)n[l][c].min<u&&(u=n[l][c].min,s=c);o=s,n[l][o].type&&a.push({index:l-1,type:n[l][o].type})}for(l=a.length-1;l>=0;l--)o=a[l].index,"add"===a[l].type?t.splice(o,0,[].concat(t[o])):t.splice(o,1)}var f=i-(r=t.length);if(r<i)for(l=0;l<f;l++)"z"===t[r-1][0]||"Z"===t[r-1][0]?t.splice(r-2,0,t[r-2]):t.push(t[r-1]),r+=1;return t};e.formatPath=function(t,e){if(t.length<=1)return t;for(var n,r=0;r<e.length;r++)if(t[r][0]!==e[r][0])switch(n=L(t[r]),e[r][0]){case"M":t[r]=["M"].concat(n[0]);break;case"L":t[r]=["L"].concat(n[0]);break;case"A":t[r]=[].concat(e[r]),t[r][6]=n[0][0],t[r][7]=n[0][1];break;case"Q":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=I(n,t[r-1],1)}t[r]=["Q"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"T":t[r]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(r>0)){t[r]=e[r];break}n=I(n,t[r-1],2)}t[r]=["C"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"S":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=I(n,t[r-1],1)}t[r]=["S"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;default:t[r]=e[r]}return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){this.bubbles=!0,this.target=null,this.currentTarget=null,this.delegateTarget=null,this.delegateObject=null,this.defaultPrevented=!1,this.propagationStopped=!1,this.shape=null,this.fromShape=null,this.toShape=null,this.propagationPath=[],this.type=t,this.name=t,this.originalEvent=e,this.timeStamp=e.timeStamp}return t.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t.prototype.toString=function(){return"[Event (type="+this.type+")]"},t.prototype.save=function(){},t.prototype.restore=function(){},t}();e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=r.__importDefault(n(154)),o=n(39),s=function(t){function e(e){var n=t.call(this)||this;n.destroyed=!1;var r=n.getDefaultCfg();return n.cfg=(0,o.mix)(r,e),n}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{}},e.prototype.get=function(t){return this.cfg[t]},e.prototype.set=function(t,e){this.cfg[t]=e},e.prototype.destroy=function(){this.cfg={destroyed:!0},this.off(),this.destroyed=!0},e}(a.default);e.default=s},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.getNodeVersion=e.detectOS=e.parseUserAgent=e.browserName=e.detect=e.ReactNativeInfo=e.BotInfo=e.SearchBotDeviceInfo=e.NodeInfo=e.BrowserInfo=void 0;var n=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,a=e.length;i<a;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))},r=function(t,e,n){this.name=t,this.version=e,this.os=n,this.type="browser"};e.BrowserInfo=r;var i=function(e){this.version=e,this.type="node",this.name="node",this.os=t.platform};e.NodeInfo=i;var a=function(t,e,n,r){this.name=t,this.version=e,this.os=n,this.bot=r,this.type="bot-device"};e.SearchBotDeviceInfo=a;var o=function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null};e.BotInfo=o;var s=function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null};e.ReactNativeInfo=s;var l=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,u=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],c=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function f(t){return""!==t&&u.reduce((function(e,n){var r=n[0],i=n[1];if(e)return e;var a=i.exec(t);return!!a&&[r,a]}),!1)}function h(t){var e=f(t);if(!e)return null;var i=e[0],s=e[1];if("searchbot"===i)return new o;var u=s[1]&&s[1].split(".").join("_").split("_").slice(0,3);u?u.length<3&&(u=n(n([],u,!0),function(t){for(var e=[],n=0;n<t;n++)e.push("0");return e}(3-u.length),!0)):u=[];var c=u.join("."),h=p(t),d=l.exec(t);return d&&d[1]?new a(i,c,h,d[1]):new r(i,c,h)}function p(t){for(var e=0,n=c.length;e<n;e++){var r=c[e],i=r[0];if(r[1].exec(t))return i}return null}function d(){return void 0!==t&&t.version?new i(t.version.slice(1)):null}e.detect=function(t){return t?h(t):"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new s:"undefined"!=typeof navigator?h(navigator.userAgent):d()},e.browserName=function(t){var e=f(t);return e?e[0]:null},e.parseUserAgent=h,e.detectOS=p,e.getNodeVersion=d}).call(this,n(323))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=r.__importDefault(n(160)),s=n(39),l={};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.isCanvas=function(){return!1},e.prototype.getBBox=function(){var t=1/0,e=-1/0,n=1/0,r=-1/0,i=[],o=[],l=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));return l.length>0?((0,s.each)(l,(function(t){var e=t.getBBox();i.push(e.minX,e.maxX),o.push(e.minY,e.maxY)})),t=(0,a.min)(i),e=(0,a.max)(i),n=(0,a.min)(o),r=(0,a.max)(o)):(t=0,e=0,n=0,r=0),{x:t,y:n,minX:t,minY:n,maxX:e,maxY:r,width:e-t,height:r-n}},e.prototype.getCanvasBBox=function(){var t=1/0,e=-1/0,n=1/0,r=-1/0,i=[],o=[],l=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));return l.length>0?((0,s.each)(l,(function(t){var e=t.getCanvasBBox();i.push(e.minX,e.maxX),o.push(e.minY,e.maxY)})),t=(0,a.min)(i),e=(0,a.max)(i),n=(0,a.min)(o),r=(0,a.max)(o)):(t=0,e=0,n=0,r=0),{x:t,y:n,minX:t,minY:n,maxX:e,maxY:r,width:e-t,height:r-n}},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.children=[],e},e.prototype.onAttrChange=function(e,n,r){if(t.prototype.onAttrChange.call(this,e,n,r),"matrix"===e){var i=this.getTotalMatrix();this._applyChildrenMarix(i)}},e.prototype.applyMatrix=function(e){var n=this.getTotalMatrix();t.prototype.applyMatrix.call(this,e);var r=this.getTotalMatrix();r!==n&&this._applyChildrenMarix(r)},e.prototype._applyChildrenMarix=function(t){var e=this.getChildren();(0,s.each)(e,(function(e){e.applyMatrix(t)}))},e.prototype.addShape=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[0],r=t[1];(0,s.isObject)(n)?r=n:r.type=n;var i=l[r.type];i||(i=(0,s.upperFirst)(r.type),l[r.type]=i);var a=this.getShapeBase(),o=new a[i](r);return this.add(o),o},e.prototype.addGroup=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n,r=t[0],i=t[1];if((0,s.isFunction)(r))n=new r(i||{parent:this});else{var a=r||{},o=this.getGroupBase();n=new o(a)}return this.add(n),n},e.prototype.getCanvas=function(){return this.isCanvas()?this:this.get("canvas")},e.prototype.getShape=function(t,e,n){if(!(0,s.isAllowCapture)(this))return null;var r,i=this.getChildren();if(this.isCanvas())r=this._findShape(i,t,e,n);else{var a=[t,e,1];a=this.invertFromMatrix(a),this.isClipped(a[0],a[1])||(r=this._findShape(i,a[0],a[1],n))}return r},e.prototype._findShape=function(t,e,n,r){for(var i=null,a=t.length-1;a>=0;a--){var o=t[a];if((0,s.isAllowCapture)(o)&&(o.isGroup()?i=o.getShape(e,n,r):o.isHit(e,n)&&(i=o)),i)break}return i},e.prototype.add=function(t){var e=this.getCanvas(),n=this.getChildren(),r=this.get("timeline"),i=t.getParent();i&&function(t,e,n){void 0===n&&(n=!0),n?e.destroy():(e.set("parent",null),e.set("canvas",null)),(0,s.removeFromArray)(t.getChildren(),e)}(i,t,!1),t.set("parent",this),e&&function t(e,n){if(e.set("canvas",n),e.isGroup()){var r=e.get("children");r.length&&r.forEach((function(e){t(e,n)}))}}(t,e),r&&function t(e,n){if(e.set("timeline",n),e.isGroup()){var r=e.get("children");r.length&&r.forEach((function(e){t(e,n)}))}}(t,r),n.push(t),t.onCanvasChange("add"),this._applyElementMatrix(t)},e.prototype._applyElementMatrix=function(t){var e=this.getTotalMatrix();e&&t.applyMatrix(e)},e.prototype.getChildren=function(){return this.get("children")},e.prototype.sort=function(){var t,e=this.getChildren();(0,s.each)(e,(function(t,e){return t._INDEX=e,t})),e.sort((t=function(t,e){return t.get("zIndex")-e.get("zIndex")},function(e,n){var r=t(e,n);return 0===r?e._INDEX-n._INDEX:r})),this.onCanvasChange("sort")},e.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var t=this.getChildren(),e=t.length-1;e>=0;e--)t[e].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},e.prototype.destroy=function(){this.get("destroyed")||(this.clear(),t.prototype.destroy.call(this))},e.prototype.getFirst=function(){return this.getChildByIndex(0)},e.prototype.getLast=function(){var t=this.getChildren();return this.getChildByIndex(t.length-1)},e.prototype.getChildByIndex=function(t){return this.getChildren()[t]},e.prototype.getCount=function(){return this.getChildren().length},e.prototype.contain=function(t){return this.getChildren().indexOf(t)>-1},e.prototype.removeChild=function(t,e){void 0===e&&(e=!0),this.contain(t)&&t.remove(e)},e.prototype.findAll=function(t){var e=[],n=this.getChildren();return(0,s.each)(n,(function(n){t(n)&&e.push(n),n.isGroup()&&(e=e.concat(n.findAll(t)))})),e},e.prototype.find=function(t){var e=null,n=this.getChildren();return(0,s.each)(n,(function(n){if(t(n)?e=n:n.isGroup()&&(e=n.find(t)),e)return!1})),e},e.prototype.findById=function(t){return this.find((function(e){return e.get("id")===t}))},e.prototype.findByClassName=function(t){return this.find((function(e){return e.get("className")===t}))},e.prototype.findAllByName=function(t){return this.findAll((function(e){return e.get("name")===t}))},e}(o.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(8),s=n(39),l=n(92),u=r.__importDefault(n(157)),c=o.ext.transform,f=["zIndex","capture","visible","type"],h=["repeat"];function p(t,e){var n={},r=e.attrs;for(var i in t)n[i]=r[i];return n}function d(t,e){var n={},r=e.attr();return(0,a.each)(t,(function(t,e){-1!==h.indexOf(e)||(0,a.isEqual)(r[e],t)||(n[e]=t)})),n}function g(t,e){if(e.onFrame)return t;var n=e.startTime,r=e.delay,i=e.duration,o=Object.prototype.hasOwnProperty;return(0,a.each)(t,(function(t){n+r<t.startTime+t.delay+t.duration&&i>t.delay&&(0,a.each)(e.toAttrs,(function(e,n){o.call(t.toAttrs,n)&&(delete t.toAttrs[n],delete t.fromAttrs[n])}))})),t}var y=function(t){function e(e){var n=t.call(this,e)||this;n.attrs={};var r=n.getDefaultAttrs();return(0,a.mix)(r,e.attrs),n.attrs=r,n.initAttrs(r),n.initAnimate(),n}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},e.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},e.prototype.onCanvasChange=function(t){},e.prototype.initAttrs=function(t){},e.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},e.prototype.isGroup=function(){return!1},e.prototype.getParent=function(){return this.get("parent")},e.prototype.getCanvas=function(){return this.get("canvas")},e.prototype.attr=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e[0],i=e[1];if(!r)return this.attrs;if((0,a.isObject)(r)){for(var o in r)this.setAttr(o,r[o]);return this.afterAttrsChange(r),this}return 2===e.length?(this.setAttr(r,i),this.afterAttrsChange(((t={})[r]=i,t)),this):this.attrs[r]},e.prototype.isClipped=function(t,e){var n=this.getClip();return n&&!n.isHit(t,e)},e.prototype.setAttr=function(t,e){var n=this.attrs[t];n!==e&&(this.attrs[t]=e,this.onAttrChange(t,e,n))},e.prototype.onAttrChange=function(t,e,n){"matrix"===t&&this.set("totalMatrix",null)},e.prototype.afterAttrsChange=function(t){if(this.cfg.isClipShape){var e=this.cfg.applyTo;e&&e.onCanvasChange("clip")}else this.onCanvasChange("attr")},e.prototype.show=function(){return this.set("visible",!0),this.onCanvasChange("show"),this},e.prototype.hide=function(){return this.set("visible",!1),this.onCanvasChange("hide"),this},e.prototype.setZIndex=function(t){this.set("zIndex",t);var e=this.getParent();return e&&e.sort(),this},e.prototype.toFront=function(){var t=this.getParent();if(t){var e=t.getChildren(),n=(this.get("el"),e.indexOf(this));e.splice(n,1),e.push(this),this.onCanvasChange("zIndex")}},e.prototype.toBack=function(){var t=this.getParent();if(t){var e=t.getChildren(),n=(this.get("el"),e.indexOf(this));e.splice(n,1),e.unshift(this),this.onCanvasChange("zIndex")}},e.prototype.remove=function(t){void 0===t&&(t=!0);var e=this.getParent();e?((0,s.removeFromArray)(e.getChildren(),this),e.get("clearing")||this.onCanvasChange("remove")):this.onCanvasChange("remove"),t&&this.destroy()},e.prototype.resetMatrix=function(){this.attr("matrix",this.getDefaultMatrix()),this.onCanvasChange("matrix")},e.prototype.getMatrix=function(){return this.attr("matrix")},e.prototype.setMatrix=function(t){this.attr("matrix",t),this.onCanvasChange("matrix")},e.prototype.getTotalMatrix=function(){var t=this.cfg.totalMatrix;if(!t){var e=this.attr("matrix"),n=this.cfg.parentMatrix;t=n&&e?(0,l.multiplyMatrix)(n,e):e||n,this.set("totalMatrix",t)}return t},e.prototype.applyMatrix=function(t){var e=this.attr("matrix"),n=null;n=t&&e?(0,l.multiplyMatrix)(t,e):e||t,this.set("totalMatrix",n),this.set("parentMatrix",t)},e.prototype.getDefaultMatrix=function(){return null},e.prototype.applyToMatrix=function(t){var e=this.attr("matrix");return e?(0,l.multiplyVec2)(e,t):t},e.prototype.invertFromMatrix=function(t){var e=this.attr("matrix");if(e){var n=(0,l.invert)(e);if(n)return(0,l.multiplyVec2)(n,t)}return t},e.prototype.setClip=function(t){var e=this.getCanvas(),n=null;if(t){var r=this.getShapeBase()[(0,a.upperFirst)(t.type)];r&&(n=new r({type:t.type,isClipShape:!0,applyTo:this,attrs:t.attrs,canvas:e}))}return this.set("clipShape",n),this.onCanvasChange("clip"),n},e.prototype.getClip=function(){var t=this.cfg.clipShape;return t||null},e.prototype.clone=function(){var t=this,e=this.attrs,n={};(0,a.each)(e,(function(t,r){(0,a.isArray)(e[r])?n[r]=function(t){for(var e=[],n=0;n<t.length;n++)(0,a.isArray)(t[n])?e.push([].concat(t[n])):e.push(t[n]);return e}(e[r]):n[r]=e[r]}));var r=new(0,this.constructor)({attrs:n});return(0,a.each)(f,(function(e){r.set(e,t.get(e))})),r},e.prototype.destroy=function(){this.destroyed||(this.attrs={},t.prototype.destroy.call(this))},e.prototype.isAnimatePaused=function(){return this.get("_pause").isPaused},e.prototype.animate=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.get("timeline")||this.get("canvas")){this.set("animating",!0);var n=this.get("timeline");n||(n=this.get("canvas").get("timeline"),this.set("timeline",n));var r=this.get("animations")||[];n.timer||n.initTimer();var i,o,s,l,u,c=t[0],f=t[1],h=t[2],y=void 0===h?"easeLinear":h,v=t[3],m=void 0===v?a.noop:v,_=t[4],x=void 0===_?0:_;(0,a.isFunction)(c)?(i=c,c={}):(0,a.isObject)(c)&&c.onFrame&&(i=c.onFrame,o=c.repeat),(0,a.isObject)(f)?(f=(u=f).duration,y=u.easing||"easeLinear",x=u.delay||0,o=u.repeat||o||!1,m=u.callback||a.noop,s=u.pauseCallback||a.noop,l=u.resumeCallback||a.noop):((0,a.isNumber)(m)&&(x=m,m=null),(0,a.isFunction)(y)?(m=y,y="easeLinear"):y=y||"easeLinear");var b=d(c,this),M={fromAttrs:p(b,this),toAttrs:b,duration:f,easing:y,repeat:o,callback:m,pauseCallback:s,resumeCallback:l,delay:x,startTime:n.getTime(),id:(0,a.uniqueId)(),onFrame:i,pathFormatted:!1};r.length>0?r=g(r,M):n.addAnimator(this),r.push(M),this.set("animations",r),this.set("_pause",{isPaused:!1})}},e.prototype.stopAnimate=function(t){var e=this;void 0===t&&(t=!0);var n=this.get("animations");(0,a.each)(n,(function(n){t&&(n.onFrame?e.attr(n.onFrame(1)):e.attr(n.toAttrs)),n.callback&&n.callback()})),this.set("animating",!1),this.set("animations",[])},e.prototype.pauseAnimate=function(){var t=this.get("timeline"),e=this.get("animations"),n=t.getTime();return(0,a.each)(e,(function(t){t._paused=!0,t._pauseTime=n,t.pauseCallback&&t.pauseCallback()})),this.set("_pause",{isPaused:!0,pauseTime:n}),this},e.prototype.resumeAnimate=function(){var t=this.get("timeline").getTime(),e=this.get("animations"),n=this.get("_pause").pauseTime;return(0,a.each)(e,(function(e){e.startTime=e.startTime+(t-n),e._paused=!1,e._pauseTime=null,e.resumeCallback&&e.resumeCallback()})),this.set("_pause",{isPaused:!1}),this.set("animations",e),this},e.prototype.emitDelegation=function(t,e){var n,r=this,i=e.propagationPath;this.getEvents();"mouseenter"===t?n=e.fromShape:"mouseleave"===t&&(n=e.toShape);for(var o=function(t){var o=i[t],u=o.get("name");if(u){if((o.isGroup()||o.isCanvas&&o.isCanvas())&&n&&(0,s.isParent)(o,n))return"break";(0,a.isArray)(u)?(0,a.each)(u,(function(t){r.emitDelegateEvent(o,t,e)})):l.emitDelegateEvent(o,u,e)}},l=this,u=0;u<i.length;u++){if("break"===o(u))break}},e.prototype.emitDelegateEvent=function(t,e,n){var r=this.getEvents(),i=e+":"+n.type;(r[i]||r["*"])&&(n.name=i,n.currentTarget=t,n.delegateTarget=this,n.delegateObject=t.get("delegateObject"),this.emit(i,n))},e.prototype.translate=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0);var n=this.getMatrix(),r=c(n,[["t",t,e]]);return this.setMatrix(r),this},e.prototype.move=function(t,e){var n=this.attr("x")||0,r=this.attr("y")||0;return this.translate(t-n,e-r),this},e.prototype.moveTo=function(t,e){return this.move(t,e)},e.prototype.scale=function(t,e){var n=this.getMatrix(),r=c(n,[["s",t,e||t]]);return this.setMatrix(r),this},e.prototype.rotate=function(t){var e=this.getMatrix(),n=c(e,[["r",t]]);return this.setMatrix(n),this},e.prototype.rotateAtStart=function(t){var e=this.attr(),n=e.x,r=e.y,i=this.getMatrix(),a=c(i,[["t",-n,-r],["r",t],["t",n,r]]);return this.setMatrix(a),this},e.prototype.rotateAtPoint=function(t,e,n){var r=this.getMatrix(),i=c(r,[["t",-t,-e],["r",n],["t",t,e]]);return this.setMatrix(i),this},e}(u.default);e.default=y},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sub=e.mul=e.equals=e.exactEquals=e.multiplyScalarAndAdd=e.multiplyScalar=e.subtract=e.add=e.frob=e.str=e.projection=e.normalFromMat4=e.fromQuat=e.fromMat2d=e.fromScaling=e.fromRotation=e.fromTranslation=e.scale=e.rotate=e.translate=e.multiply=e.determinant=e.adjoint=e.invert=e.transpose=e.identity=e.set=e.fromValues=e.copy=e.clone=e.fromMat4=e.create=void 0;var r=n(0).__importStar(n(28));function i(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=e[6],c=e[7],f=e[8],h=n[0],p=n[1],d=n[2],g=n[3],y=n[4],v=n[5],m=n[6],_=n[7],x=n[8];return t[0]=h*r+p*o+d*u,t[1]=h*i+p*s+d*c,t[2]=h*a+p*l+d*f,t[3]=g*r+y*o+v*u,t[4]=g*i+y*s+v*c,t[5]=g*a+y*l+v*f,t[6]=m*r+_*o+x*u,t[7]=m*i+_*s+x*c,t[8]=m*a+_*l+x*f,t}function a(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t}e.create=function(){var t=new r.ARRAY_TYPE(9);return r.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t},e.fromMat4=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t},e.clone=function(t){var e=new r.ARRAY_TYPE(9);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e},e.copy=function(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[6]=e[6],t[7]=e[7],t[8]=e[8],t},e.fromValues=function(t,e,n,i,a,o,s,l,u){var c=new r.ARRAY_TYPE(9);return c[0]=t,c[1]=e,c[2]=n,c[3]=i,c[4]=a,c[5]=o,c[6]=s,c[7]=l,c[8]=u,c},e.set=function(t,e,n,r,i,a,o,s,l,u){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=l,t[8]=u,t},e.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},e.transpose=function(t,e){if(t===e){var n=e[1],r=e[2],i=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=r,t[7]=i}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t},e.invert=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8],f=c*o-s*u,h=-c*a+s*l,p=u*a-o*l,d=n*f+r*h+i*p;return d?(d=1/d,t[0]=f*d,t[1]=(-c*r+i*u)*d,t[2]=(s*r-i*o)*d,t[3]=h*d,t[4]=(c*n-i*l)*d,t[5]=(-s*n+i*a)*d,t[6]=p*d,t[7]=(-u*n+r*l)*d,t[8]=(o*n-r*a)*d,t):null},e.adjoint=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8];return t[0]=o*c-s*u,t[1]=i*u-r*c,t[2]=r*s-i*o,t[3]=s*l-a*c,t[4]=n*c-i*l,t[5]=i*a-n*s,t[6]=a*u-o*l,t[7]=r*l-n*u,t[8]=n*o-r*a,t},e.determinant=function(t){var e=t[0],n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],l=t[7],u=t[8];return e*(u*a-o*l)+n*(-u*i+o*s)+r*(l*i-a*s)},e.multiply=i,e.translate=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=e[6],c=e[7],f=e[8],h=n[0],p=n[1];return t[0]=r,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t[6]=h*r+p*o+u,t[7]=h*i+p*s+c,t[8]=h*a+p*l+f,t},e.rotate=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=e[6],c=e[7],f=e[8],h=Math.sin(n),p=Math.cos(n);return t[0]=p*r+h*o,t[1]=p*i+h*s,t[2]=p*a+h*l,t[3]=p*o-h*r,t[4]=p*s-h*i,t[5]=p*l-h*a,t[6]=u,t[7]=c,t[8]=f,t},e.scale=function(t,e,n){var r=n[0],i=n[1];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=i*e[3],t[4]=i*e[4],t[5]=i*e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},e.fromTranslation=function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t},e.fromRotation=function(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},e.fromScaling=function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},e.fromMat2d=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t},e.fromQuat=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n+n,s=r+r,l=i+i,u=n*o,c=r*o,f=r*s,h=i*o,p=i*s,d=i*l,g=a*o,y=a*s,v=a*l;return t[0]=1-f-d,t[3]=c-v,t[6]=h+y,t[1]=c+v,t[4]=1-u-d,t[7]=p-g,t[2]=h-y,t[5]=p+g,t[8]=1-u-f,t},e.normalFromMat4=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8],f=e[9],h=e[10],p=e[11],d=e[12],g=e[13],y=e[14],v=e[15],m=n*s-r*o,_=n*l-i*o,x=n*u-a*o,b=r*l-i*s,M=r*u-a*s,C=i*u-a*l,P=c*g-f*d,S=c*y-h*d,O=c*v-p*d,w=f*y-h*g,A=f*v-p*g,T=h*v-p*y,E=m*T-_*A+x*w+b*O-M*S+C*P;return E?(E=1/E,t[0]=(s*T-l*A+u*w)*E,t[1]=(l*O-o*T-u*S)*E,t[2]=(o*A-s*O+u*P)*E,t[3]=(i*A-r*T-a*w)*E,t[4]=(n*T-i*O+a*S)*E,t[5]=(r*O-n*A-a*P)*E,t[6]=(g*C-y*M+v*b)*E,t[7]=(y*x-d*C-v*_)*E,t[8]=(d*M-g*x+v*m)*E,t):null},e.projection=function(t,e,n){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},e.str=function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},e.frob=function(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t},e.subtract=a,e.multiplyScalar=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t},e.multiplyScalarAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t},e.exactEquals=function(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[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]},e.equals=function(t,e){var n=t[0],i=t[1],a=t[2],o=t[3],s=t[4],l=t[5],u=t[6],c=t[7],f=t[8],h=e[0],p=e[1],d=e[2],g=e[3],y=e[4],v=e[5],m=e[6],_=e[7],x=e[8];return Math.abs(n-h)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(h))&&Math.abs(i-p)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(p))&&Math.abs(a-d)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(d))&&Math.abs(o-g)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(g))&&Math.abs(s-y)<=r.EPSILON*Math.max(1,Math.abs(s),Math.abs(y))&&Math.abs(l-v)<=r.EPSILON*Math.max(1,Math.abs(l),Math.abs(v))&&Math.abs(u-m)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(m))&&Math.abs(c-_)<=r.EPSILON*Math.max(1,Math.abs(c),Math.abs(_))&&Math.abs(f-x)<=r.EPSILON*Math.max(1,Math.abs(f),Math.abs(x))},e.mul=i,e.sub=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mul=e.equals=e.exactEquals=e.multiplyScalarAndAdd=e.multiplyScalar=e.subtract=e.add=e.frob=e.str=e.targetTo=e.lookAt=e.orthoZO=e.ortho=e.orthoNO=e.perspectiveFromFieldOfView=e.perspectiveZO=e.perspective=e.perspectiveNO=e.frustum=e.fromQuat=e.fromRotationTranslationScaleOrigin=e.fromRotationTranslationScale=e.getRotation=e.getScaling=e.getTranslation=e.fromQuat2=e.fromRotationTranslation=e.fromZRotation=e.fromYRotation=e.fromXRotation=e.fromRotation=e.fromScaling=e.fromTranslation=e.rotateZ=e.rotateY=e.rotateX=e.rotate=e.scale=e.translate=e.multiply=e.determinant=e.adjoint=e.invert=e.transpose=e.identity=e.set=e.fromValues=e.copy=e.clone=e.create=void 0,e.sub=void 0;var r=n(0).__importStar(n(28));function i(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function a(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=e[6],c=e[7],f=e[8],h=e[9],p=e[10],d=e[11],g=e[12],y=e[13],v=e[14],m=e[15],_=n[0],x=n[1],b=n[2],M=n[3];return t[0]=_*r+x*s+b*f+M*g,t[1]=_*i+x*l+b*h+M*y,t[2]=_*a+x*u+b*p+M*v,t[3]=_*o+x*c+b*d+M*m,_=n[4],x=n[5],b=n[6],M=n[7],t[4]=_*r+x*s+b*f+M*g,t[5]=_*i+x*l+b*h+M*y,t[6]=_*a+x*u+b*p+M*v,t[7]=_*o+x*c+b*d+M*m,_=n[8],x=n[9],b=n[10],M=n[11],t[8]=_*r+x*s+b*f+M*g,t[9]=_*i+x*l+b*h+M*y,t[10]=_*a+x*u+b*p+M*v,t[11]=_*o+x*c+b*d+M*m,_=n[12],x=n[13],b=n[14],M=n[15],t[12]=_*r+x*s+b*f+M*g,t[13]=_*i+x*l+b*h+M*y,t[14]=_*a+x*u+b*p+M*v,t[15]=_*o+x*c+b*d+M*m,t}function o(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=r+r,l=i+i,u=a+a,c=r*s,f=r*l,h=r*u,p=i*l,d=i*u,g=a*u,y=o*s,v=o*l,m=o*u;return t[0]=1-(p+g),t[1]=f+m,t[2]=h-v,t[3]=0,t[4]=f-m,t[5]=1-(c+g),t[6]=d+y,t[7]=0,t[8]=h+v,t[9]=d-y,t[10]=1-(c+p),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function s(t,e){var n=e[0],r=e[1],i=e[2],a=e[4],o=e[5],s=e[6],l=e[8],u=e[9],c=e[10];return t[0]=Math.hypot(n,r,i),t[1]=Math.hypot(a,o,s),t[2]=Math.hypot(l,u,c),t}function l(t,e,n,r,i){var a,o=1/Math.tan(e/2);return t[0]=o/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=o,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0?(a=1/(r-i),t[10]=(i+r)*a,t[14]=2*i*r*a):(t[10]=-1,t[14]=-2*r),t}function u(t,e,n,r,i,a,o){var s=1/(e-n),l=1/(r-i),u=1/(a-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*u,t[11]=0,t[12]=(e+n)*s,t[13]=(i+r)*l,t[14]=(o+a)*u,t[15]=1,t}function c(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}e.create=function(){var t=new r.ARRAY_TYPE(16);return r.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t},e.clone=function(t){var e=new r.ARRAY_TYPE(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},e.copy=function(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[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},e.fromValues=function(t,e,n,i,a,o,s,l,u,c,f,h,p,d,g,y){var v=new r.ARRAY_TYPE(16);return v[0]=t,v[1]=e,v[2]=n,v[3]=i,v[4]=a,v[5]=o,v[6]=s,v[7]=l,v[8]=u,v[9]=c,v[10]=f,v[11]=h,v[12]=p,v[13]=d,v[14]=g,v[15]=y,v},e.set=function(t,e,n,r,i,a,o,s,l,u,c,f,h,p,d,g,y){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=l,t[8]=u,t[9]=c,t[10]=f,t[11]=h,t[12]=p,t[13]=d,t[14]=g,t[15]=y,t},e.identity=i,e.transpose=function(t,e){if(t===e){var n=e[1],r=e[2],i=e[3],a=e[6],o=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=a,t[11]=e[14],t[12]=i,t[13]=o,t[14]=s}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t},e.invert=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8],f=e[9],h=e[10],p=e[11],d=e[12],g=e[13],y=e[14],v=e[15],m=n*s-r*o,_=n*l-i*o,x=n*u-a*o,b=r*l-i*s,M=r*u-a*s,C=i*u-a*l,P=c*g-f*d,S=c*y-h*d,O=c*v-p*d,w=f*y-h*g,A=f*v-p*g,T=h*v-p*y,E=m*T-_*A+x*w+b*O-M*S+C*P;return E?(E=1/E,t[0]=(s*T-l*A+u*w)*E,t[1]=(i*A-r*T-a*w)*E,t[2]=(g*C-y*M+v*b)*E,t[3]=(h*M-f*C-p*b)*E,t[4]=(l*O-o*T-u*S)*E,t[5]=(n*T-i*O+a*S)*E,t[6]=(y*x-d*C-v*_)*E,t[7]=(c*C-h*x+p*_)*E,t[8]=(o*A-s*O+u*P)*E,t[9]=(r*O-n*A-a*P)*E,t[10]=(d*M-g*x+v*m)*E,t[11]=(f*x-c*M-p*m)*E,t[12]=(s*S-o*w-l*P)*E,t[13]=(n*w-r*S+i*P)*E,t[14]=(g*_-d*b-y*m)*E,t[15]=(c*b-f*_+h*m)*E,t):null},e.adjoint=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8],f=e[9],h=e[10],p=e[11],d=e[12],g=e[13],y=e[14],v=e[15];return t[0]=s*(h*v-p*y)-f*(l*v-u*y)+g*(l*p-u*h),t[1]=-(r*(h*v-p*y)-f*(i*v-a*y)+g*(i*p-a*h)),t[2]=r*(l*v-u*y)-s*(i*v-a*y)+g*(i*u-a*l),t[3]=-(r*(l*p-u*h)-s*(i*p-a*h)+f*(i*u-a*l)),t[4]=-(o*(h*v-p*y)-c*(l*v-u*y)+d*(l*p-u*h)),t[5]=n*(h*v-p*y)-c*(i*v-a*y)+d*(i*p-a*h),t[6]=-(n*(l*v-u*y)-o*(i*v-a*y)+d*(i*u-a*l)),t[7]=n*(l*p-u*h)-o*(i*p-a*h)+c*(i*u-a*l),t[8]=o*(f*v-p*g)-c*(s*v-u*g)+d*(s*p-u*f),t[9]=-(n*(f*v-p*g)-c*(r*v-a*g)+d*(r*p-a*f)),t[10]=n*(s*v-u*g)-o*(r*v-a*g)+d*(r*u-a*s),t[11]=-(n*(s*p-u*f)-o*(r*p-a*f)+c*(r*u-a*s)),t[12]=-(o*(f*y-h*g)-c*(s*y-l*g)+d*(s*h-l*f)),t[13]=n*(f*y-h*g)-c*(r*y-i*g)+d*(r*h-i*f),t[14]=-(n*(s*y-l*g)-o*(r*y-i*g)+d*(r*l-i*s)),t[15]=n*(s*h-l*f)-o*(r*h-i*f)+c*(r*l-i*s),t},e.determinant=function(t){var e=t[0],n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],l=t[7],u=t[8],c=t[9],f=t[10],h=t[11],p=t[12],d=t[13],g=t[14],y=t[15];return(e*o-n*a)*(f*y-h*g)-(e*s-r*a)*(c*y-h*d)+(e*l-i*a)*(c*g-f*d)+(n*s-r*o)*(u*y-h*p)-(n*l-i*o)*(u*g-f*p)+(r*l-i*s)*(u*d-c*p)},e.multiply=a,e.translate=function(t,e,n){var r,i,a,o,s,l,u,c,f,h,p,d,g=n[0],y=n[1],v=n[2];return e===t?(t[12]=e[0]*g+e[4]*y+e[8]*v+e[12],t[13]=e[1]*g+e[5]*y+e[9]*v+e[13],t[14]=e[2]*g+e[6]*y+e[10]*v+e[14],t[15]=e[3]*g+e[7]*y+e[11]*v+e[15]):(r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=e[6],c=e[7],f=e[8],h=e[9],p=e[10],d=e[11],t[0]=r,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t[6]=u,t[7]=c,t[8]=f,t[9]=h,t[10]=p,t[11]=d,t[12]=r*g+s*y+f*v+e[12],t[13]=i*g+l*y+h*v+e[13],t[14]=a*g+u*y+p*v+e[14],t[15]=o*g+c*y+d*v+e[15]),t},e.scale=function(t,e,n){var r=n[0],i=n[1],a=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*a,t[9]=e[9]*a,t[10]=e[10]*a,t[11]=e[11]*a,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},e.rotate=function(t,e,n,i){var a,o,s,l,u,c,f,h,p,d,g,y,v,m,_,x,b,M,C,P,S,O,w,A,T=i[0],E=i[1],I=i[2],L=Math.hypot(T,E,I);return L<r.EPSILON?null:(T*=L=1/L,E*=L,I*=L,a=Math.sin(n),s=1-(o=Math.cos(n)),l=e[0],u=e[1],c=e[2],f=e[3],h=e[4],p=e[5],d=e[6],g=e[7],y=e[8],v=e[9],m=e[10],_=e[11],x=T*T*s+o,b=E*T*s+I*a,M=I*T*s-E*a,C=T*E*s-I*a,P=E*E*s+o,S=I*E*s+T*a,O=T*I*s+E*a,w=E*I*s-T*a,A=I*I*s+o,t[0]=l*x+h*b+y*M,t[1]=u*x+p*b+v*M,t[2]=c*x+d*b+m*M,t[3]=f*x+g*b+_*M,t[4]=l*C+h*P+y*S,t[5]=u*C+p*P+v*S,t[6]=c*C+d*P+m*S,t[7]=f*C+g*P+_*S,t[8]=l*O+h*w+y*A,t[9]=u*O+p*w+v*A,t[10]=c*O+d*w+m*A,t[11]=f*O+g*w+_*A,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t)},e.rotateX=function(t,e,n){var r=Math.sin(n),i=Math.cos(n),a=e[4],o=e[5],s=e[6],l=e[7],u=e[8],c=e[9],f=e[10],h=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=a*i+u*r,t[5]=o*i+c*r,t[6]=s*i+f*r,t[7]=l*i+h*r,t[8]=u*i-a*r,t[9]=c*i-o*r,t[10]=f*i-s*r,t[11]=h*i-l*r,t},e.rotateY=function(t,e,n){var r=Math.sin(n),i=Math.cos(n),a=e[0],o=e[1],s=e[2],l=e[3],u=e[8],c=e[9],f=e[10],h=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*i-u*r,t[1]=o*i-c*r,t[2]=s*i-f*r,t[3]=l*i-h*r,t[8]=a*r+u*i,t[9]=o*r+c*i,t[10]=s*r+f*i,t[11]=l*r+h*i,t},e.rotateZ=function(t,e,n){var r=Math.sin(n),i=Math.cos(n),a=e[0],o=e[1],s=e[2],l=e[3],u=e[4],c=e[5],f=e[6],h=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*i+u*r,t[1]=o*i+c*r,t[2]=s*i+f*r,t[3]=l*i+h*r,t[4]=u*i-a*r,t[5]=c*i-o*r,t[6]=f*i-s*r,t[7]=h*i-l*r,t},e.fromTranslation=function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t},e.fromScaling=function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},e.fromRotation=function(t,e,n){var i,a,o,s=n[0],l=n[1],u=n[2],c=Math.hypot(s,l,u);return c<r.EPSILON?null:(s*=c=1/c,l*=c,u*=c,i=Math.sin(e),o=1-(a=Math.cos(e)),t[0]=s*s*o+a,t[1]=l*s*o+u*i,t[2]=u*s*o-l*i,t[3]=0,t[4]=s*l*o-u*i,t[5]=l*l*o+a,t[6]=u*l*o+s*i,t[7]=0,t[8]=s*u*o+l*i,t[9]=l*u*o-s*i,t[10]=u*u*o+a,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)},e.fromXRotation=function(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},e.fromYRotation=function(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=0,t[2]=-n,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=n,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},e.fromZRotation=function(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},e.fromRotationTranslation=o,e.fromQuat2=function(t,e){var n=new r.ARRAY_TYPE(3),i=-e[0],a=-e[1],s=-e[2],l=e[3],u=e[4],c=e[5],f=e[6],h=e[7],p=i*i+a*a+s*s+l*l;return p>0?(n[0]=2*(u*l+h*i+c*s-f*a)/p,n[1]=2*(c*l+h*a+f*i-u*s)/p,n[2]=2*(f*l+h*s+u*a-c*i)/p):(n[0]=2*(u*l+h*i+c*s-f*a),n[1]=2*(c*l+h*a+f*i-u*s),n[2]=2*(f*l+h*s+u*a-c*i)),o(t,e,n),t},e.getTranslation=function(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t},e.getScaling=s,e.getRotation=function(t,e){var n=new r.ARRAY_TYPE(3);s(n,e);var i=1/n[0],a=1/n[1],o=1/n[2],l=e[0]*i,u=e[1]*a,c=e[2]*o,f=e[4]*i,h=e[5]*a,p=e[6]*o,d=e[8]*i,g=e[9]*a,y=e[10]*o,v=l+h+y,m=0;return v>0?(m=2*Math.sqrt(v+1),t[3]=.25*m,t[0]=(p-g)/m,t[1]=(d-c)/m,t[2]=(u-f)/m):l>h&&l>y?(m=2*Math.sqrt(1+l-h-y),t[3]=(p-g)/m,t[0]=.25*m,t[1]=(u+f)/m,t[2]=(d+c)/m):h>y?(m=2*Math.sqrt(1+h-l-y),t[3]=(d-c)/m,t[0]=(u+f)/m,t[1]=.25*m,t[2]=(p+g)/m):(m=2*Math.sqrt(1+y-l-h),t[3]=(u-f)/m,t[0]=(d+c)/m,t[1]=(p+g)/m,t[2]=.25*m),t},e.fromRotationTranslationScale=function(t,e,n,r){var i=e[0],a=e[1],o=e[2],s=e[3],l=i+i,u=a+a,c=o+o,f=i*l,h=i*u,p=i*c,d=a*u,g=a*c,y=o*c,v=s*l,m=s*u,_=s*c,x=r[0],b=r[1],M=r[2];return t[0]=(1-(d+y))*x,t[1]=(h+_)*x,t[2]=(p-m)*x,t[3]=0,t[4]=(h-_)*b,t[5]=(1-(f+y))*b,t[6]=(g+v)*b,t[7]=0,t[8]=(p+m)*M,t[9]=(g-v)*M,t[10]=(1-(f+d))*M,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t},e.fromRotationTranslationScaleOrigin=function(t,e,n,r,i){var a=e[0],o=e[1],s=e[2],l=e[3],u=a+a,c=o+o,f=s+s,h=a*u,p=a*c,d=a*f,g=o*c,y=o*f,v=s*f,m=l*u,_=l*c,x=l*f,b=r[0],M=r[1],C=r[2],P=i[0],S=i[1],O=i[2],w=(1-(g+v))*b,A=(p+x)*b,T=(d-_)*b,E=(p-x)*M,I=(1-(h+v))*M,L=(y+m)*M,D=(d+_)*C,B=(y-m)*C,j=(1-(h+g))*C;return t[0]=w,t[1]=A,t[2]=T,t[3]=0,t[4]=E,t[5]=I,t[6]=L,t[7]=0,t[8]=D,t[9]=B,t[10]=j,t[11]=0,t[12]=n[0]+P-(w*P+E*S+D*O),t[13]=n[1]+S-(A*P+I*S+B*O),t[14]=n[2]+O-(T*P+L*S+j*O),t[15]=1,t},e.fromQuat=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n+n,s=r+r,l=i+i,u=n*o,c=r*o,f=r*s,h=i*o,p=i*s,d=i*l,g=a*o,y=a*s,v=a*l;return t[0]=1-f-d,t[1]=c+v,t[2]=h-y,t[3]=0,t[4]=c-v,t[5]=1-u-d,t[6]=p+g,t[7]=0,t[8]=h+y,t[9]=p-g,t[10]=1-u-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},e.frustum=function(t,e,n,r,i,a,o){var s=1/(n-e),l=1/(i-r),u=1/(a-o);return t[0]=2*a*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*a*l,t[6]=0,t[7]=0,t[8]=(n+e)*s,t[9]=(i+r)*l,t[10]=(o+a)*u,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*a*2*u,t[15]=0,t},e.perspectiveNO=l,e.perspective=l,e.perspectiveZO=function(t,e,n,r,i){var a,o=1/Math.tan(e/2);return t[0]=o/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=o,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0?(a=1/(r-i),t[10]=i*a,t[14]=i*r*a):(t[10]=-1,t[14]=-r),t},e.perspectiveFromFieldOfView=function(t,e,n,r){var i=Math.tan(e.upDegrees*Math.PI/180),a=Math.tan(e.downDegrees*Math.PI/180),o=Math.tan(e.leftDegrees*Math.PI/180),s=Math.tan(e.rightDegrees*Math.PI/180),l=2/(o+s),u=2/(i+a);return t[0]=l,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=u,t[6]=0,t[7]=0,t[8]=-(o-s)*l*.5,t[9]=(i-a)*u*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t},e.orthoNO=u,e.ortho=u,e.orthoZO=function(t,e,n,r,i,a,o){var s=1/(e-n),l=1/(r-i),u=1/(a-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=u,t[11]=0,t[12]=(e+n)*s,t[13]=(i+r)*l,t[14]=a*u,t[15]=1,t},e.lookAt=function(t,e,n,a){var o,s,l,u,c,f,h,p,d,g,y=e[0],v=e[1],m=e[2],_=a[0],x=a[1],b=a[2],M=n[0],C=n[1],P=n[2];return Math.abs(y-M)<r.EPSILON&&Math.abs(v-C)<r.EPSILON&&Math.abs(m-P)<r.EPSILON?i(t):(h=y-M,p=v-C,d=m-P,o=x*(d*=g=1/Math.hypot(h,p,d))-b*(p*=g),s=b*(h*=g)-_*d,l=_*p-x*h,(g=Math.hypot(o,s,l))?(o*=g=1/g,s*=g,l*=g):(o=0,s=0,l=0),u=p*l-d*s,c=d*o-h*l,f=h*s-p*o,(g=Math.hypot(u,c,f))?(u*=g=1/g,c*=g,f*=g):(u=0,c=0,f=0),t[0]=o,t[1]=u,t[2]=h,t[3]=0,t[4]=s,t[5]=c,t[6]=p,t[7]=0,t[8]=l,t[9]=f,t[10]=d,t[11]=0,t[12]=-(o*y+s*v+l*m),t[13]=-(u*y+c*v+f*m),t[14]=-(h*y+p*v+d*m),t[15]=1,t)},e.targetTo=function(t,e,n,r){var i=e[0],a=e[1],o=e[2],s=r[0],l=r[1],u=r[2],c=i-n[0],f=a-n[1],h=o-n[2],p=c*c+f*f+h*h;p>0&&(c*=p=1/Math.sqrt(p),f*=p,h*=p);var d=l*h-u*f,g=u*c-s*h,y=s*f-l*c;return(p=d*d+g*g+y*y)>0&&(d*=p=1/Math.sqrt(p),g*=p,y*=p),t[0]=d,t[1]=g,t[2]=y,t[3]=0,t[4]=f*y-h*g,t[5]=h*d-c*y,t[6]=c*g-f*d,t[7]=0,t[8]=c,t[9]=f,t[10]=h,t[11]=0,t[12]=i,t[13]=a,t[14]=o,t[15]=1,t},e.str=function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},e.frob=function(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t},e.subtract=c,e.multiplyScalar=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t},e.multiplyScalarAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t[9]=e[9]+n[9]*r,t[10]=e[10]+n[10]*r,t[11]=e[11]+n[11]*r,t[12]=e[12]+n[12]*r,t[13]=e[13]+n[13]*r,t[14]=e[14]+n[14]*r,t[15]=e[15]+n[15]*r,t},e.exactEquals=function(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[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]},e.equals=function(t,e){var n=t[0],i=t[1],a=t[2],o=t[3],s=t[4],l=t[5],u=t[6],c=t[7],f=t[8],h=t[9],p=t[10],d=t[11],g=t[12],y=t[13],v=t[14],m=t[15],_=e[0],x=e[1],b=e[2],M=e[3],C=e[4],P=e[5],S=e[6],O=e[7],w=e[8],A=e[9],T=e[10],E=e[11],I=e[12],L=e[13],D=e[14],B=e[15];return Math.abs(n-_)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(_))&&Math.abs(i-x)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(x))&&Math.abs(a-b)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(b))&&Math.abs(o-M)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(M))&&Math.abs(s-C)<=r.EPSILON*Math.max(1,Math.abs(s),Math.abs(C))&&Math.abs(l-P)<=r.EPSILON*Math.max(1,Math.abs(l),Math.abs(P))&&Math.abs(u-S)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(S))&&Math.abs(c-O)<=r.EPSILON*Math.max(1,Math.abs(c),Math.abs(O))&&Math.abs(f-w)<=r.EPSILON*Math.max(1,Math.abs(f),Math.abs(w))&&Math.abs(h-A)<=r.EPSILON*Math.max(1,Math.abs(h),Math.abs(A))&&Math.abs(p-T)<=r.EPSILON*Math.max(1,Math.abs(p),Math.abs(T))&&Math.abs(d-E)<=r.EPSILON*Math.max(1,Math.abs(d),Math.abs(E))&&Math.abs(g-I)<=r.EPSILON*Math.max(1,Math.abs(g),Math.abs(I))&&Math.abs(y-L)<=r.EPSILON*Math.max(1,Math.abs(y),Math.abs(L))&&Math.abs(v-D)<=r.EPSILON*Math.max(1,Math.abs(v),Math.abs(D))&&Math.abs(m-B)<=r.EPSILON*Math.max(1,Math.abs(m),Math.abs(B))},e.mul=a,e.sub=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setAxes=e.sqlerp=e.rotationTo=e.equals=e.exactEquals=e.normalize=e.sqrLen=e.squaredLength=e.len=e.length=e.lerp=e.dot=e.scale=e.mul=e.add=e.set=e.copy=e.fromValues=e.clone=e.str=e.fromEuler=e.fromMat3=e.conjugate=e.invert=e.random=e.slerp=e.pow=e.ln=e.exp=e.calculateW=e.rotateZ=e.rotateY=e.rotateX=e.multiply=e.getAngle=e.getAxisAngle=e.setAxisAngle=e.identity=e.create=void 0;var r,i,a,o,s,l,u=n(0),c=u.__importStar(n(28)),f=u.__importStar(n(161)),h=u.__importStar(n(91)),p=u.__importStar(n(164));function d(){var t=new c.ARRAY_TYPE(4);return c.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t[3]=1,t}function g(t,e,n){n*=.5;var r=Math.sin(n);return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=Math.cos(n),t}function y(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=n[0],l=n[1],u=n[2],c=n[3];return t[0]=r*c+o*s+i*u-a*l,t[1]=i*c+o*l+a*s-r*u,t[2]=a*c+o*u+r*l-i*s,t[3]=o*c-r*s-i*l-a*u,t}function v(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=Math.sqrt(n*n+r*r+i*i),s=Math.exp(a),l=o>0?s*Math.sin(o)/o:0;return t[0]=n*l,t[1]=r*l,t[2]=i*l,t[3]=s*Math.cos(o),t}function m(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=Math.sqrt(n*n+r*r+i*i),s=o>0?Math.atan2(o,a)/o:0;return t[0]=n*s,t[1]=r*s,t[2]=i*s,t[3]=.5*Math.log(n*n+r*r+i*i+a*a),t}function _(t,e,n,r){var i,a,o,s,l,u=e[0],f=e[1],h=e[2],p=e[3],d=n[0],g=n[1],y=n[2],v=n[3];return(a=u*d+f*g+h*y+p*v)<0&&(a=-a,d=-d,g=-g,y=-y,v=-v),1-a>c.EPSILON?(i=Math.acos(a),o=Math.sin(i),s=Math.sin((1-r)*i)/o,l=Math.sin(r*i)/o):(s=1-r,l=r),t[0]=s*u+l*d,t[1]=s*f+l*g,t[2]=s*h+l*y,t[3]=s*p+l*v,t}function x(t,e){var n,r=e[0]+e[4]+e[8];if(r>0)n=Math.sqrt(r+1),t[3]=.5*n,n=.5/n,t[0]=(e[5]-e[7])*n,t[1]=(e[6]-e[2])*n,t[2]=(e[1]-e[3])*n;else{var i=0;e[4]>e[0]&&(i=1),e[8]>e[3*i+i]&&(i=2);var a=(i+1)%3,o=(i+2)%3;n=Math.sqrt(e[3*i+i]-e[3*a+a]-e[3*o+o]+1),t[i]=.5*n,n=.5/n,t[3]=(e[3*a+o]-e[3*o+a])*n,t[a]=(e[3*a+i]+e[3*i+a])*n,t[o]=(e[3*o+i]+e[3*i+o])*n}return t}e.create=d,e.identity=function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},e.setAxisAngle=g,e.getAxisAngle=function(t,e){var n=2*Math.acos(e[3]),r=Math.sin(n/2);return r>c.EPSILON?(t[0]=e[0]/r,t[1]=e[1]/r,t[2]=e[2]/r):(t[0]=1,t[1]=0,t[2]=0),n},e.getAngle=function(t,n){var r=(0,e.dot)(t,n);return Math.acos(2*r*r-1)},e.multiply=y,e.rotateX=function(t,e,n){n*=.5;var r=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(n),l=Math.cos(n);return t[0]=r*l+o*s,t[1]=i*l+a*s,t[2]=a*l-i*s,t[3]=o*l-r*s,t},e.rotateY=function(t,e,n){n*=.5;var r=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(n),l=Math.cos(n);return t[0]=r*l-a*s,t[1]=i*l+o*s,t[2]=a*l+r*s,t[3]=o*l-i*s,t},e.rotateZ=function(t,e,n){n*=.5;var r=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(n),l=Math.cos(n);return t[0]=r*l+i*s,t[1]=i*l-r*s,t[2]=a*l+o*s,t[3]=o*l-a*s,t},e.calculateW=function(t,e){var n=e[0],r=e[1],i=e[2];return t[0]=n,t[1]=r,t[2]=i,t[3]=Math.sqrt(Math.abs(1-n*n-r*r-i*i)),t},e.exp=v,e.ln=m,e.pow=function(t,n,r){return m(t,n),(0,e.scale)(t,t,r),v(t,t),t},e.slerp=_,e.random=function(t){var e=c.RANDOM(),n=c.RANDOM(),r=c.RANDOM(),i=Math.sqrt(1-e),a=Math.sqrt(e);return t[0]=i*Math.sin(2*Math.PI*n),t[1]=i*Math.cos(2*Math.PI*n),t[2]=a*Math.sin(2*Math.PI*r),t[3]=a*Math.cos(2*Math.PI*r),t},e.invert=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n*n+r*r+i*i+a*a,s=o?1/o:0;return t[0]=-n*s,t[1]=-r*s,t[2]=-i*s,t[3]=a*s,t},e.conjugate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t},e.fromMat3=x,e.fromEuler=function(t,e,n,r){var i=.5*Math.PI/180;e*=i,n*=i,r*=i;var a=Math.sin(e),o=Math.cos(e),s=Math.sin(n),l=Math.cos(n),u=Math.sin(r),c=Math.cos(r);return t[0]=a*l*c-o*s*u,t[1]=o*s*c+a*l*u,t[2]=o*l*u-a*s*c,t[3]=o*l*c+a*s*u,t},e.str=function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},e.clone=p.clone,e.fromValues=p.fromValues,e.copy=p.copy,e.set=p.set,e.add=p.add,e.mul=y,e.scale=p.scale,e.dot=p.dot,e.lerp=p.lerp,e.length=p.length,e.len=e.length,e.squaredLength=p.squaredLength,e.sqrLen=e.squaredLength,e.normalize=p.normalize,e.exactEquals=p.exactEquals,e.equals=p.equals,e.rotationTo=(r=h.create(),i=h.fromValues(1,0,0),a=h.fromValues(0,1,0),function(t,n,o){var s=h.dot(n,o);return s<-.999999?(h.cross(r,i,n),h.len(r)<1e-6&&h.cross(r,a,n),h.normalize(r,r),g(t,r,Math.PI),t):s>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):(h.cross(r,n,o),t[0]=r[0],t[1]=r[1],t[2]=r[2],t[3]=1+s,(0,e.normalize)(t,t))}),e.sqlerp=(o=d(),s=d(),function(t,e,n,r,i,a){return _(o,e,i,a),_(s,n,r,a),_(t,o,s,2*a*(1-a)),t}),e.setAxes=(l=f.create(),function(t,n,r,i){return l[0]=r[0],l[3]=r[1],l[6]=r[2],l[1]=i[0],l[4]=i[1],l[7]=i[2],l[2]=-n[0],l[5]=-n[1],l[8]=-n[2],(0,e.normalize)(t,x(t,l))})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.forEach=e.sqrLen=e.len=e.sqrDist=e.dist=e.div=e.mul=e.sub=e.equals=e.exactEquals=e.str=e.zero=e.transformQuat=e.transformMat4=e.random=e.lerp=e.cross=e.dot=e.normalize=e.inverse=e.negate=e.squaredLength=e.length=e.squaredDistance=e.distance=e.scaleAndAdd=e.scale=e.round=e.max=e.min=e.floor=e.ceil=e.divide=e.multiply=e.subtract=e.add=e.set=e.copy=e.fromValues=e.clone=e.create=void 0;var r,i=n(0).__importStar(n(28));function a(){var t=new i.ARRAY_TYPE(4);return i.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0),t}function o(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t}function s(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t[3]=e[3]*n[3],t}function l(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t[3]=e[3]/n[3],t}function u(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2],a=e[3]-t[3];return Math.hypot(n,r,i,a)}function c(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2],a=e[3]-t[3];return n*n+r*r+i*i+a*a}function f(t){var e=t[0],n=t[1],r=t[2],i=t[3];return Math.hypot(e,n,r,i)}function h(t){var e=t[0],n=t[1],r=t[2],i=t[3];return e*e+n*n+r*r+i*i}e.create=a,e.clone=function(t){var e=new i.ARRAY_TYPE(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e},e.fromValues=function(t,e,n,r){var a=new i.ARRAY_TYPE(4);return a[0]=t,a[1]=e,a[2]=n,a[3]=r,a},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t},e.set=function(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t},e.subtract=o,e.multiply=s,e.divide=l,e.ceil=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t[3]=Math.ceil(e[3]),t},e.floor=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t[3]=Math.floor(e[3]),t},e.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t[3]=Math.min(e[3],n[3]),t},e.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t[3]=Math.max(e[3],n[3]),t},e.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t[3]=Math.round(e[3]),t},e.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t},e.scaleAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t},e.distance=u,e.squaredDistance=c,e.length=f,e.squaredLength=h,e.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t},e.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t},e.normalize=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n*n+r*r+i*i+a*a;return o>0&&(o=1/Math.sqrt(o)),t[0]=n*o,t[1]=r*o,t[2]=i*o,t[3]=a*o,t},e.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]},e.cross=function(t,e,n,r){var i=n[0]*r[1]-n[1]*r[0],a=n[0]*r[2]-n[2]*r[0],o=n[0]*r[3]-n[3]*r[0],s=n[1]*r[2]-n[2]*r[1],l=n[1]*r[3]-n[3]*r[1],u=n[2]*r[3]-n[3]*r[2],c=e[0],f=e[1],h=e[2],p=e[3];return t[0]=f*u-h*l+p*s,t[1]=-c*u+h*o-p*a,t[2]=c*l-f*o+p*i,t[3]=-c*s+f*a-h*i,t},e.lerp=function(t,e,n,r){var i=e[0],a=e[1],o=e[2],s=e[3];return t[0]=i+r*(n[0]-i),t[1]=a+r*(n[1]-a),t[2]=o+r*(n[2]-o),t[3]=s+r*(n[3]-s),t},e.random=function(t,e){var n,r,a,o,s,l;e=e||1;do{s=(n=2*i.RANDOM()-1)*n+(r=2*i.RANDOM()-1)*r}while(s>=1);do{l=(a=2*i.RANDOM()-1)*a+(o=2*i.RANDOM()-1)*o}while(l>=1);var u=Math.sqrt((1-s)/l);return t[0]=e*n,t[1]=e*r,t[2]=e*a*u,t[3]=e*o*u,t},e.transformMat4=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3];return t[0]=n[0]*r+n[4]*i+n[8]*a+n[12]*o,t[1]=n[1]*r+n[5]*i+n[9]*a+n[13]*o,t[2]=n[2]*r+n[6]*i+n[10]*a+n[14]*o,t[3]=n[3]*r+n[7]*i+n[11]*a+n[15]*o,t},e.transformQuat=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=n[0],s=n[1],l=n[2],u=n[3],c=u*r+s*a-l*i,f=u*i+l*r-o*a,h=u*a+o*i-s*r,p=-o*r-s*i-l*a;return t[0]=c*u+p*-o+f*-l-h*-s,t[1]=f*u+p*-s+h*-o-c*-l,t[2]=h*u+p*-l+c*-s-f*-o,t[3]=e[3],t},e.zero=function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t},e.str=function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]},e.equals=function(t,e){var n=t[0],r=t[1],a=t[2],o=t[3],s=e[0],l=e[1],u=e[2],c=e[3];return Math.abs(n-s)<=i.EPSILON*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(r-l)<=i.EPSILON*Math.max(1,Math.abs(r),Math.abs(l))&&Math.abs(a-u)<=i.EPSILON*Math.max(1,Math.abs(a),Math.abs(u))&&Math.abs(o-c)<=i.EPSILON*Math.max(1,Math.abs(o),Math.abs(c))},e.sub=o,e.mul=s,e.div=l,e.dist=u,e.sqrDist=c,e.len=f,e.sqrLen=h,e.forEach=(r=a(),function(t,e,n,i,a,o){var s,l;for(e||(e=4),n||(n=0),l=i?Math.min(i*e+n,t.length):t.length,s=n;s<l;s+=e)r[0]=t[s],r[1]=t[s+1],r[2]=t[s+2],r[3]=t[s+3],a(r,r,o),t[s]=r[0],t[s+1]=r[1],t[s+2]=r[2],t[s+3]=r[3];return t})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.forEach=e.sqrLen=e.sqrDist=e.dist=e.div=e.mul=e.sub=e.len=e.equals=e.exactEquals=e.str=e.zero=e.angle=e.rotate=e.transformMat4=e.transformMat3=e.transformMat2d=e.transformMat2=e.random=e.lerp=e.cross=e.dot=e.normalize=e.inverse=e.negate=e.squaredLength=e.length=e.squaredDistance=e.distance=e.scaleAndAdd=e.scale=e.round=e.max=e.min=e.floor=e.ceil=e.divide=e.multiply=e.subtract=e.add=e.set=e.copy=e.fromValues=e.clone=e.create=void 0;var r,i=n(0).__importStar(n(28));function a(){var t=new i.ARRAY_TYPE(2);return i.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0),t}function o(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function s(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function l(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function u(t,e){var n=e[0]-t[0],r=e[1]-t[1];return Math.hypot(n,r)}function c(t,e){var n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r}function f(t){var e=t[0],n=t[1];return Math.hypot(e,n)}function h(t){var e=t[0],n=t[1];return e*e+n*n}e.create=a,e.clone=function(t){var e=new i.ARRAY_TYPE(2);return e[0]=t[0],e[1]=t[1],e},e.fromValues=function(t,e){var n=new i.ARRAY_TYPE(2);return n[0]=t,n[1]=e,n},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t},e.set=function(t,e,n){return t[0]=e,t[1]=n,t},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t},e.subtract=o,e.multiply=s,e.divide=l,e.ceil=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t},e.floor=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t},e.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t},e.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t},e.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t},e.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t},e.scaleAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t},e.distance=u,e.squaredDistance=c,e.length=f,e.squaredLength=h,e.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t},e.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t},e.normalize=function(t,e){var n=e[0],r=e[1],i=n*n+r*r;return i>0&&(i=1/Math.sqrt(i)),t[0]=e[0]*i,t[1]=e[1]*i,t},e.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]},e.cross=function(t,e,n){var r=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=r,t},e.lerp=function(t,e,n,r){var i=e[0],a=e[1];return t[0]=i+r*(n[0]-i),t[1]=a+r*(n[1]-a),t},e.random=function(t,e){e=e||1;var n=2*i.RANDOM()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t},e.transformMat2=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i,t[1]=n[1]*r+n[3]*i,t},e.transformMat2d=function(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},e.transformMat3=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[3]*i+n[6],t[1]=n[1]*r+n[4]*i+n[7],t},e.transformMat4=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[4]*i+n[12],t[1]=n[1]*r+n[5]*i+n[13],t},e.rotate=function(t,e,n,r){var i=e[0]-n[0],a=e[1]-n[1],o=Math.sin(r),s=Math.cos(r);return t[0]=i*s-a*o+n[0],t[1]=i*o+a*s+n[1],t},e.angle=function(t,e){var n=t[0],r=t[1],i=e[0],a=e[1],o=Math.sqrt(n*n+r*r)*Math.sqrt(i*i+a*a),s=o&&(n*i+r*a)/o;return Math.acos(Math.min(Math.max(s,-1),1))},e.zero=function(t){return t[0]=0,t[1]=0,t},e.str=function(t){return"vec2("+t[0]+", "+t[1]+")"},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]},e.equals=function(t,e){var n=t[0],r=t[1],a=e[0],o=e[1];return Math.abs(n-a)<=i.EPSILON*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(r-o)<=i.EPSILON*Math.max(1,Math.abs(r),Math.abs(o))},e.len=f,e.sub=o,e.mul=s,e.div=l,e.dist=u,e.sqrDist=c,e.sqrLen=h,e.forEach=(r=a(),function(t,e,n,i,a,o){var s,l;for(e||(e=2),n||(n=0),l=i?Math.min(i*e+n,t.length):t.length,s=n;s<l;s+=e)r[0]=t[s],r[1]=t[s+1],a(r,r,o),t[s]=r[0],t[s+1]=r[1];return t})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.rad2deg=e.deg2rad=void 0,e.deg2rad=Math.PI/180,e.rad2deg=180/Math.PI},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.rgbBasisClosed=e.rgbBasis=void 0;var r=n(0),i=n(48),a=r.__importDefault(n(97)),o=r.__importDefault(n(168)),s=r.__importStar(n(49));function l(t){return function(e){var n,r,a=e.length,o=new Array(a),s=new Array(a),l=new Array(a);for(n=0;n<a;++n)r=(0,i.rgb)(e[n]),o[n]=r.r||0,s[n]=r.g||0,l[n]=r.b||0;return o=t(o),s=t(s),l=t(l),r.opacity=1,function(t){return r.r=o(t),r.g=s(t),r.b=l(t),r+""}}}e.default=function t(e){var n=(0,s.gamma)(e);function r(t,e){var r=n((t=(0,i.rgb)(t)).r,(e=(0,i.rgb)(e)).r),a=n(t.g,e.g),o=n(t.b,e.b),l=(0,s.default)(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=a(e),t.b=o(e),t.opacity=l(e),t+""}}return r.gamma=t,r}(1),e.rgbBasis=l(a.default),e.rgbBasisClosed=l(o.default)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(97);e.default=function(t){var e=t.length;return function(n){var i=Math.floor(((n%=1)<0?++n:n)*e),a=t[(i+e-1)%e],o=t[i%e],s=t[(i+1)%e],l=t[(i+2)%e];return(0,r.basis)((n-i/e)*e,a,o,s,l)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return function(){return t}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.genericArray=void 0;var r=n(0),i=r.__importDefault(n(94)),a=r.__importStar(n(98));function o(t,e){var n,r=e?e.length:0,a=t?Math.min(r,t.length):0,o=new Array(a),s=new Array(r);for(n=0;n<a;++n)o[n]=(0,i.default)(t[n],e[n]);for(;n<r;++n)s[n]=e[n];return function(t){for(n=0;n<a;++n)s[n]=o[n](t);return s}}e.default=function(t,e){return((0,a.isNumberArray)(e)?a.default:o)(t,e)},e.genericArray=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}},function(t,e,n){"use strict";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})(t)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(0).__importDefault(n(94));e.default=function(t,e){var n,a={},o={};for(n in null!==t&&"object"===r(t)||(t={}),null!==e&&"object"===r(e)||(e={}),e)n in t?a[n]=(0,i.default)(t[n],e[n]):o[n]=e[n];return function(t){for(n in a)o[n]=a[n](t);return o}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(68)),i=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,a=new RegExp(i.source,"g");e.default=function(t,e){var n,o,s,l=i.lastIndex=a.lastIndex=0,u=-1,c=[],f=[];for(t+="",e+="";(n=i.exec(t))&&(o=a.exec(e));)(s=o.index)>l&&(s=e.slice(l,s),c[u]?c[u]+=s:c[++u]=s),(n=n[0])===(o=o[0])?c[u]?c[u]+=o:c[++u]=o:(c[++u]=null,f.push({i:u,x:(0,r.default)(n,o)})),l=a.lastIndex;return l<e.length&&(s=e.slice(l),c[u]?c[u]+=s:c[++u]=s),c.length<2?f[0]?function(t){return function(e){return t(e)+""}}(f[0].x):function(t){return function(){return t}}(e):(e=f.length,function(t){for(var n,r=0;r<e;++r)c[(n=f[r]).i]=n.x(t);return c.join("")})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerEasing=e.getEasing=void 0;var r=n(0).__importStar(n(348)),i={};e.getEasing=function(t){return i[t.toLowerCase()]||r[t]},e.registerEasing=function(t,e){i[t.toLowerCase()]=e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.tpmt=void 0,e.tpmt=function(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.snapLength=e.nearestPoint=void 0;var r=n(32);e.nearestPoint=function(t,e,n,i,a,o){var s,l=1/0,u=[n,i],c=20;o&&o>200&&(c=o/10);for(var f=1/c,h=f/10,p=0;p<=c;p++){var d=p*f,g=[a.apply(null,t.concat([d])),a.apply(null,e.concat([d]))];(_=(0,r.distance)(u[0],u[1],g[0],g[1]))<l&&(s=d,l=_)}if(0===s)return{x:t[0],y:e[0]};if(1===s){var y=t.length;return{x:t[y-1],y:e[y-1]}}for(l=1/0,p=0;p<32&&!(h<1e-4);p++){var v=s-h,m=s+h,_=(g=[a.apply(null,t.concat([v])),a.apply(null,e.concat([v]))],(0,r.distance)(u[0],u[1],g[0],g[1]));if(v>=0&&_<l)s=v,l=_;else{var x=[a.apply(null,t.concat([m])),a.apply(null,e.concat([m]))],b=(0,r.distance)(u[0],u[1],x[0],x[1]);m<=1&&b<l?(s=m,l=b):h*=.5}}return{x:a.apply(null,t.concat([s])),y:a.apply(null,e.concat([s]))}},e.snapLength=function(t,e){for(var n=0,i=t.length,a=0;a<i;a++){var o=t[a],s=e[a],l=t[(a+1)%i],u=e[(a+1)%i];n+=(0,r.distance)(o,s,l,u)}return n/2}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.distanceAtSegment=e.angleAtSegments=e.pointAtSegments=e.lengthOfSegment=void 0;var r=n(0).__importDefault(n(69)),i=n(32);function a(t){for(var e=0,n=[],r=0;r<t.length-1;r++){var a=t[r],o=t[r+1],s=(0,i.distance)(a[0],a[1],o[0],o[1]),l={from:a,to:o,length:s};n.push(l),e+=s}return{segments:n,totalLength:e}}e.lengthOfSegment=function(t){if(t.length<2)return 0;for(var e=0,n=0;n<t.length-1;n++){var r=t[n],a=t[n+1];e+=(0,i.distance)(r[0],r[1],a[0],a[1])}return e},e.pointAtSegments=function(t,e){if(e>1||e<0||t.length<2)return null;var n=a(t),i=n.segments,o=n.totalLength;if(0===o)return{x:t[0][0],y:t[0][1]};for(var s=0,l=null,u=0;u<i.length;u++){var c=i[u],f=c.from,h=c.to,p=c.length/o;if(e>=s&&e<=s+p){var d=(e-s)/p;l=r.default.pointAt(f[0],f[1],h[0],h[1],d);break}s+=p}return l},e.angleAtSegments=function(t,e){if(e>1||e<0||t.length<2)return 0;for(var n=a(t),r=n.segments,i=n.totalLength,o=0,s=0,l=0;l<r.length;l++){var u=r[l],c=u.from,f=u.to,h=u.length/i;if(e>=o&&e<=o+h){s=Math.atan2(f[1]-c[1],f[0]-c[0]);break}o+=h}return s},e.distanceAtSegment=function(t,e,n){for(var i=1/0,a=0;a<t.length-1;a++){var o=t[a],s=t[a+1],l=r.default.pointDistance(o[0],o[1],s[0],s[1],e,n);l<i&&(i=l)}return i}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(177),i=n(32);e.default={box:function(t){for(var e=[],n=[],r=0;r<t.length;r++){var a=t[r];e.push(a[0]),n.push(a[1])}return(0,i.getBBoxByArray)(e,n)},length:function(t){return(0,r.lengthOfSegment)(t)},pointAt:function(t,e){return(0,r.pointAtSegments)(t,e)},pointDistance:function(t,e,n){return(0,r.distanceAtSegment)(t,e,n)},tangentAngle:function(t,e){return(0,r.angleAtSegments)(t,e)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.assembleFont=e.getTextWidth=e.getLineSpaceing=e.getTextHeight=void 0;var r=n(39),i=n(180);function a(t,e){return e?e-t:.14*t}e.getTextHeight=function(t,e,n){var i=1;return(0,r.isString)(t)&&(i=t.split("\n").length),i>1?e*i+a(e,n)*(i-1):e},e.getLineSpaceing=a,e.getTextWidth=function(t,e){var n=(0,i.getOffScreenContext)(),a=0;if((0,r.isNil)(t)||""===t)return a;if(n.save(),n.font=e,(0,r.isString)(t)&&t.includes("\n")){var o=t.split("\n");(0,r.each)(o,(function(t){var e=n.measureText(t).width;a<e&&(a=e)}))}else a=n.measureText(t).width;return n.restore(),a},e.assembleFont=function(t){var e=t.fontSize,n=t.fontFamily,r=t.fontWeight;return[t.fontStyle,t.fontVariant,r,e+"px",n].join(" ").trim()}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getOffScreenContext=void 0;var r=null;e.getOffScreenContext=function(){if(!r){var t=document.createElement("canvas");t.width=1,t.height=1,r=t.getContext("2d")}return r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,a=/[^\s\,]+/gi;e.default=function(t){var e=t||[];return(0,r.isArray)(e)?e:(0,r.isString)(e)?(e=e.match(i),(0,r.each)(e,(function(t,n){if((t=t.match(a))[0].length>1){var i=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=i}(0,r.each)(t,(function(e,n){isNaN(e)||(t[n]=+e)})),e[n]=t})),e):void 0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,r,i){return i?[["M",+t+ +i,e],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]]:[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(184)),i=n(383);function a(t,e,n){if(t[n].length>7){t[n].shift();for(var r=t[n],i=n;r.length;)e[n]="A",t.splice(i+=1,0,["C"].concat(r.splice(0,6)));t.splice(n,1)}}e.default=function(t,e){void 0===e&&(e=!1);for(var n,o,s=(0,r.default)(t),l={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null},u=[],c="",f=s.length,h=[],p=0;p<f;p+=1)s[p]&&(c=s[p][0]),u[p]=c,s[p]=(0,i.segmentToCubic)(s[p],l),a(s,u,p),f=s.length,"Z"===c&&h.push(p),o=(n=s[p]).length,l.x1=+n[o-2],l.y1=+n[o-1],l.x2=+n[o-4]||l.x1,l.y2=+n[o-3]||l.y1;return e?[s,h]:s}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(185)),i=/[a-z]/;function a(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}e.default=function(t){var e=(0,r.default)(t);if(!e||!e.length)return[["M",0,0]];for(var n=!1,o=0;o<e.length;o++){var s=e[o][0];if(i.test(s)||["V","H","T","S"].indexOf(s)>=0){n=!0;break}}if(!n)return e;var l=[],u=0,c=0,f=0,h=0,p=0,d=e[0];"M"!==d[0]&&"m"!==d[0]||(f=u=+d[1],h=c=+d[2],p++,l[0]=["M",u,c]),o=p;for(var g=e.length;o<g;o++){var y=e[o],v=l[o-1],m=[],_=(s=y[0]).toUpperCase();if(s!==_)switch(m[0]=_,_){case"A":m[1]=y[1],m[2]=y[2],m[3]=y[3],m[4]=y[4],m[5]=y[5],m[6]=+y[6]+u,m[7]=+y[7]+c;break;case"V":m[1]=+y[1]+c;break;case"H":m[1]=+y[1]+u;break;case"M":f=+y[1]+u,h=+y[2]+c,m[1]=f,m[2]=h;break;default:for(var x=1,b=y.length;x<b;x++)m[x]=+y[x]+(x%2?u:c)}else m=e[o];switch(_){case"Z":u=+f,c=+h;break;case"H":m=["L",u=m[1],c];break;case"V":m=["L",u,c=m[1]];break;case"T":u=m[1],c=m[2];var M=a([v[1],v[2]],[v[3],v[4]]);m=["Q",M[0],M[1],u,c];break;case"S":u=m[m.length-2],c=m[m.length-1];var C=v.length,P=a([v[C-4],v[C-3]],[v[C-2],v[C-1]]);m=["C",P[0],P[1],m[1],m[2],u,c];break;case"M":f=m[m.length-2],h=m[m.length-1];break;default:u=m[m.length-2],c=m[m.length-1]}l.push(m)}return l}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i="\t\n\v\f\r   ᠎              \u2028\u2029",a=new RegExp("([a-z])["+i+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+i+"]*,?["+i+"]*)+)","ig"),o=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+i+"]*,?["+i+"]*","ig");e.default=function(t){if(!t)return null;if((0,r.isArray)(t))return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(a,(function(t,r,i){var a=[],s=r.toLowerCase();if(i.replace(o,(function(t,e){e&&a.push(+e)})),"m"===s&&a.length>2&&(n.push([r].concat(a.splice(0,2))),s="l",r="m"===r?"l":"L"),"o"===s&&1===a.length&&n.push([r,a[0]]),"r"===s)n.push([r].concat(a));else for(;a.length>=e[s]&&(n.push([r].concat(a.splice(0,e[s]))),e[s]););return""})),n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t,e,n){return t>=e&&t<=n};e.default=function(t,e,n,i){var a=n.x-t.x,o=n.y-t.y,s=e.x-t.x,l=e.y-t.y,u=i.x-n.x,c=i.y-n.y,f=s*c-l*u,h=null;if(f*f>.001*(s*s+l*l)*(u*u+c*c)){var p=(a*c-o*u)/f,d=(a*l-o*s)/f;r(p,0,1)&&r(d,0,1)&&(h={x:t.x+p*s,y:t.y+p*l})}return h}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});function r(t){return Math.abs(t)<1e-6?0:t<0?-1:1}function i(t,e,n){return(n[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(n[1]-t[1])&&Math.min(t[0],e[0])<=n[0]&&n[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=n[1]&&n[1]<=Math.max(t[1],e[1])}e.default=function(t,e,n){var a=!1,o=t.length;if(o<=2)return!1;for(var s=0;s<o;s++){var l=t[s],u=t[(s+1)%o];if(i(l,u,[e,n]))return!0;r(l[1]-n)>0!=r(u[1]-n)>0&&r(e-(n-l[1])*(l[0]-u[0])/(l[1]-u[1])-l[0])<0&&(a=!a)}return a}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Adjust=e.registerAdjust=e.getAdjust=void 0;var r=n(5),i=n(392);Object.defineProperty(e,"getAdjust",{enumerable:!0,get:function(){return i.getAdjust}}),Object.defineProperty(e,"registerAdjust",{enumerable:!0,get:function(){return i.registerAdjust}});var a=r.__importDefault(n(51));e.Adjust=a.default;var o=r.__importDefault(n(393)),s=r.__importDefault(n(394)),l=r.__importDefault(n(395)),u=r.__importDefault(n(396));(0,i.registerAdjust)("Dodge",o.default),(0,i.registerAdjust)("Jitter",s.default),(0,i.registerAdjust)("Stack",l.default),(0,i.registerAdjust)("Symmetric",u.default),r.__exportStar(n(189),e)},function(t,e){},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Scale=void 0;var r=n(103);Object.defineProperty(e,"Scale",{enumerable:!0,get:function(){return r.Scale}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerTickMethod=e.getTickMethod=void 0;var r={};e.getTickMethod=function(t){return r[t]},e.registerTickMethod=function(t,e){r[t]=e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cat",e.isCategory=!0,e}return(0,i.__extends)(e,t),e.prototype.buildIndexMap=function(){if(!this.translateIndexMap){this.translateIndexMap=new Map;for(var t=0;t<this.values.length;t++)this.translateIndexMap.set(this.values[t],t)}},e.prototype.translate=function(t){this.buildIndexMap();var e=this.translateIndexMap.get(t);return void 0===e&&(e=(0,a.isNumber)(t)?t:NaN),e},e.prototype.scale=function(t){var e=this.translate(t),n=this.calcPercent(e,this.min,this.max);return this.calcValue(n,this.rangeMin(),this.rangeMax())},e.prototype.invert=function(t){var e=this.max-this.min,n=this.calcPercent(t,this.rangeMin(),this.rangeMax()),r=Math.round(e*n)+this.min;return r<this.min||r>this.max?NaN:this.values[r]},e.prototype.getText=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=e;return(0,a.isNumber)(e)&&!this.values.includes(e)&&(o=this.values[o]),t.prototype.getText.apply(this,(0,i.__spreadArrays)([o],n))},e.prototype.initCfg=function(){this.tickMethod="cat"},e.prototype.setDomain=function(){if((0,a.isNil)(this.getConfig("min"))&&(this.min=0),(0,a.isNil)(this.getConfig("max"))){var t=this.values.length;this.max=t>1?t-1:t}this.translateIndexMap&&(this.translateIndexMap=void 0)},e}(r.__importDefault(n(59)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setGlobalDateMasks=e.setGlobalDateI18n=e.defaultI18n=e.parse=e.format=e.assign=void 0;var r=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,i="[^\\s]+",a=/\[([^]*?)\]/gm;function o(t,e){for(var n=[],r=0,i=t.length;r<i;r++)n.push(t[r].substr(0,e));return n}var s=function(t){return function(e,n){var r=n[t].map((function(t){return t.toLowerCase()})).indexOf(e.toLowerCase());return r>-1?r:null}};function l(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0,i=e;r<i.length;r++){var a=i[r];for(var o in a)t[o]=a[o]}return t}e.assign=l;var u=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],c=["January","February","March","April","May","June","July","August","September","October","November","December"],f=o(c,3),h={dayNamesShort:o(u,3),dayNames:u,monthNamesShort:f,monthNames:c,amPm:["am","pm"],DoFn:function(t){return t+["th","st","nd","rd"][t%10>3?0:(t-t%10!=10?1:0)*t%10]}};e.defaultI18n=h;var p=l({},h),d=function(t){return p=l(p,t)};e.setGlobalDateI18n=d;var g=function(t){return t.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},y=function(t,e){for(void 0===e&&(e=2),t=String(t);t.length<e;)t="0"+t;return t},v={D:function(t){return String(t.getDate())},DD:function(t){return y(t.getDate())},Do:function(t,e){return e.DoFn(t.getDate())},d:function(t){return String(t.getDay())},dd:function(t){return y(t.getDay())},ddd:function(t,e){return e.dayNamesShort[t.getDay()]},dddd:function(t,e){return e.dayNames[t.getDay()]},M:function(t){return String(t.getMonth()+1)},MM:function(t){return y(t.getMonth()+1)},MMM:function(t,e){return e.monthNamesShort[t.getMonth()]},MMMM:function(t,e){return e.monthNames[t.getMonth()]},YY:function(t){return y(String(t.getFullYear()),4).substr(2)},YYYY:function(t){return y(t.getFullYear(),4)},h:function(t){return String(t.getHours()%12||12)},hh:function(t){return y(t.getHours()%12||12)},H:function(t){return String(t.getHours())},HH:function(t){return y(t.getHours())},m:function(t){return String(t.getMinutes())},mm:function(t){return y(t.getMinutes())},s:function(t){return String(t.getSeconds())},ss:function(t){return y(t.getSeconds())},S:function(t){return String(Math.round(t.getMilliseconds()/100))},SS:function(t){return y(Math.round(t.getMilliseconds()/10),2)},SSS:function(t){return y(t.getMilliseconds(),3)},a:function(t,e){return t.getHours()<12?e.amPm[0]:e.amPm[1]},A:function(t,e){return t.getHours()<12?e.amPm[0].toUpperCase():e.amPm[1].toUpperCase()},ZZ:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+y(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+y(Math.floor(Math.abs(e)/60),2)+":"+y(Math.abs(e)%60,2)}},m=function(t){return+t-1},_=[null,"\\d\\d?"],x=[null,i],b=["isPm",i,function(t,e){var n=t.toLowerCase();return n===e.amPm[0]?0:n===e.amPm[1]?1:null}],M=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(t){var e=(t+"").match(/([+-]|\d\d)/gi);if(e){var n=60*+e[1]+parseInt(e[2],10);return"+"===e[0]?n:-n}return 0}],C={D:["day","\\d\\d?"],DD:["day","\\d\\d"],Do:["day","\\d\\d?"+i,function(t){return parseInt(t,10)}],M:["month","\\d\\d?",m],MM:["month","\\d\\d",m],YY:["year","\\d\\d",function(t){var e=+(""+(new Date).getFullYear()).substr(0,2);return+(""+(+t>68?e-1:e)+t)}],h:["hour","\\d\\d?",void 0,"isPm"],hh:["hour","\\d\\d",void 0,"isPm"],H:["hour","\\d\\d?"],HH:["hour","\\d\\d"],m:["minute","\\d\\d?"],mm:["minute","\\d\\d"],s:["second","\\d\\d?"],ss:["second","\\d\\d"],YYYY:["year","\\d{4}"],S:["millisecond","\\d",function(t){return 100*+t}],SS:["millisecond","\\d\\d",function(t){return 10*+t}],SSS:["millisecond","\\d{3}"],d:_,dd:_,ddd:x,dddd:x,MMM:["month",i,s("monthNamesShort")],MMMM:["month",i,s("monthNames")],a:b,A:b,ZZ:M,Z:M},P={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},S=function(t){return l(P,t)};e.setGlobalDateMasks=S;var O=function(t,e,n){if(void 0===e&&(e=P.default),void 0===n&&(n={}),"number"==typeof t&&(t=new Date(t)),"[object Date]"!==Object.prototype.toString.call(t)||isNaN(t.getTime()))throw new Error("Invalid Date pass to format");var i=[];e=(e=P[e]||e).replace(a,(function(t,e){return i.push(e),"@@@"}));var o=l(l({},p),n);return(e=e.replace(r,(function(e){return v[e](t,o)}))).replace(/@@@/g,(function(){return i.shift()}))};function w(t,e,n){if(void 0===n&&(n={}),"string"!=typeof e)throw new Error("Invalid format in fecha parse");if(e=P[e]||e,t.length>1e3)return null;var i={year:(new Date).getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},o=[],s=[],u=e.replace(a,(function(t,e){return s.push(g(e)),"@@@"})),c={},f={};u=g(u).replace(r,(function(t){var e=C[t],n=e[0],r=e[1],i=e[3];if(c[n])throw new Error("Invalid format. "+n+" specified twice in format");return c[n]=!0,i&&(f[i]=!0),o.push(e),"("+r+")"})),Object.keys(f).forEach((function(t){if(!c[t])throw new Error("Invalid format. "+t+" is required in specified format")})),u=u.replace(/@@@/g,(function(){return s.shift()}));var h=t.match(new RegExp(u,"i"));if(!h)return null;for(var d,y=l(l({},p),n),v=1;v<h.length;v++){var m=o[v-1],_=m[0],x=m[2],b=x?x(h[v],y):+h[v];if(null==b)return null;i[_]=b}if(1===i.isPm&&null!=i.hour&&12!=+i.hour?i.hour=+i.hour+12:0===i.isPm&&12==+i.hour&&(i.hour=0),null==i.timezoneOffset){d=new Date(i.year,i.month,i.day,i.hour,i.minute,i.second,i.millisecond);for(var M=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],S=(v=0,M.length);v<S;v++)if(c[M[v][0]]&&i[M[v][0]]!==d[M[v][1]]())return null}else if(d=new Date(Date.UTC(i.year,i.month,i.day,i.hour,i.minute-i.timezoneOffset,i.second,i.millisecond)),i.month>11||i.month<0||i.day>31||i.day<1||i.hour>23||i.hour<0||i.minute>59||i.minute<0||i.second>59||i.second<0)return null;return d}e.format=O,e.parse=w;var A={format:O,parse:w,defaultI18n:h,setGlobalDateI18n:d,setGlobalDateMasks:S};e.default=A},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="linear",e.isLinear=!0,e}return(0,i.__extends)(e,t),e.prototype.invert=function(t){var e=this.getInvertPercent(t);return this.min+e*(this.max-this.min)},e.prototype.initCfg=function(){this.tickMethod="wilkinson-extended",this.nice=!1},e}(r.__importDefault(n(72)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantize",e}return(0,i.__extends)(e,t),e.prototype.invert=function(t){var e=this.ticks,n=e.length,r=this.getInvertPercent(t),i=Math.floor(r*(n-1));if(i>=n-1)return(0,a.last)(e);if(i<0)return(0,a.head)(e);var o=e[i],s=i/(n-1);return o+(r-s)/((i+1)/(n-1)-s)*(e[i+1]-o)},e.prototype.initCfg=function(){this.tickMethod="r-pretty",this.tickCount=5,this.nice=!0},e.prototype.calculateTicks=function(){var e=t.prototype.calculateTicks.call(this);return this.nice||((0,a.last)(e)!==this.max&&e.push(this.max),(0,a.head)(e)!==this.min&&e.unshift(this.min)),e},e.prototype.getScalePercent=function(t){var e=this.ticks;if(t<(0,a.head)(e))return 0;if(t>(0,a.last)(e))return 1;var n=0;return(0,a.each)(e,(function(e,r){if(!(t>=e))return!1;n=r})),n/(e.length-1)},e}(r.__importDefault(n(72)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1);e.default=function(t){var e=t.values,n=t.tickInterval,i=t.tickCount,a=t.showLast;if((0,r.isNumber)(n)){var o=(0,r.filter)(e,(function(t,e){return e%n==0})),s=(0,r.last)(e);return a&&(0,r.last)(o)!==s&&o.push(s),o}var l=e.length,u=t.min,c=t.max;if((0,r.isNil)(u)&&(u=0),(0,r.isNil)(c)&&(c=e.length-1),!(0,r.isNumber)(i)||i>=l)return e.slice(u,c+1);if(i<=0||c<=0)return[];for(var f=1===i?l:Math.floor(l/(i-1)),h=[],p=u,d=0;d<i&&!(p>=c);d++)p=Math.min(u+d*f,c),d===i-1&&a?h.push(e[c]):h.push(e[p]);return h}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.prettyNumber=void 0,e.prettyNumber=function(t){return Math.abs(t)<1e-15?t:parseFloat(t.toFixed(15))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(197);e.default=function(t,e,n){if(void 0===n&&(n=5),t===e)return{max:e,min:t,ticks:[t]};var i=n<0?0:Math.round(n);if(0===i)return{max:e,min:t,ticks:[]};var a=(e-t)/i,o=Math.pow(10,Math.floor(Math.log10(a))),s=o;2*o-a<1.5*(a-s)&&5*o-a<2.75*(a-(s=2*o))&&10*o-a<1.5*(a-(s=5*o))&&(s=10*o);for(var l=Math.ceil(e/s),u=Math.floor(t/s),c=Math.max(l*s,e),f=Math.min(u*s,t),h=Math.floor((c-f)/s)+1,p=new Array(h),d=0;d<h;d++)p[d]=(0,r.prettyNumber)(f+d*s);return{min:f,max:c,ticks:p}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.propagationDelegate=void 0;var r=n(12);e.propagationDelegate=function(t,e,n){var i=new r.Event(e,n);i.target=t,i.propagationPath.push(t),t.emitDelegation(e,i);for(var a=t.getParent();a;)a.emitDelegation(e,i),i.propagationPath.push(a),a=a.getParent()}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getStatesStyle=void 0;var r=n(1);e.getStatesStyle=function(t,e,n){var i=e+"Style",a=null;return(0,r.each)(n,(function(e,n){t[n]&&e[i]&&(a||(a={}),(0,r.mix)(a,e[i]))})),a}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.autoEllipsis=e.autoRotate=e.autoHide=void 0;var r=n(0),i=r.__importStar(n(443));e.autoEllipsis=i;var a=r.__importStar(n(444));e.autoHide=a;var o=r.__importStar(n(445));e.autoRotate=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CROSSHAIR_TEXT=e.CROSSHAIR_LINE=e.CONTAINER_CLASS=void 0,e.CONTAINER_CLASS="g2-crosshair",e.CROSSHAIR_LINE=e.CONTAINER_CLASS+"-line",e.CROSSHAIR_TEXT=e.CONTAINER_CLASS+"-text"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createCallbackAction=e.unregisterAction=e.registerAction=e.getActionClass=e.createAction=void 0;var r=n(0).__importDefault(n(474)),i=n(1),a={};e.createAction=function(t,e){var n=a[t],r=null;return n&&((r=new(0,n.ActionClass)(e,n.cfg)).name=t,r.init()),r},e.getActionClass=function(t){var e=a[t];return(0,i.get)(e,"ActionClass")},e.registerAction=function(t,e,n){a[t]={ActionClass:e,cfg:n}},e.unregisterAction=function(t){delete a[t]},e.createCallbackAction=function(t,e){var n=new r.default(e);return n.callback=t,n.name="callback",n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){this.view=t,this.cfg=e}return t.prototype.init=function(){this.initEvents()},t.prototype.initEvents=function(){},t.prototype.clearEvents=function(){},t.prototype.destroy=function(){this.clearEvents()},t}();e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerTheme=e.getTheme=void 0;var r=n(1),i=n(206),a={default:(0,i.createTheme)({})};e.getTheme=function(t){return(0,r.get)(a,(0,r.lowerCase)(t),a.default)},e.registerTheme=function(t,e){a[(0,r.lowerCase)(t)]=(0,i.createTheme)(e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createTheme=void 0;var r=n(476);Object.defineProperty(e,"createTheme",{enumerable:!0,get:function(){return r.createTheme}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createThemeByStyleSheet=void 0;var r=n(0),i=n(41),a=n(8),o=n(1),s=n(13);e.createThemeByStyleSheet=function(t){var e,n={point:{default:{fill:t.pointFillColor,r:t.pointSize,stroke:t.pointBorderColor,lineWidth:t.pointBorder,fillOpacity:t.pointFillOpacity},active:{stroke:t.pointActiveBorderColor,lineWidth:t.pointActiveBorder},selected:{stroke:t.pointSelectedBorderColor,lineWidth:t.pointSelectedBorder},inactive:{fillOpacity:t.pointInactiveFillOpacity,strokeOpacity:t.pointInactiveBorderOpacity}},hollowPoint:{default:{fill:t.hollowPointFillColor,lineWidth:t.hollowPointBorder,stroke:t.hollowPointBorderColor,strokeOpacity:t.hollowPointBorderOpacity,r:t.hollowPointSize},active:{stroke:t.hollowPointActiveBorderColor,strokeOpacity:t.hollowPointActiveBorderOpacity},selected:{lineWidth:t.hollowPointSelectedBorder,stroke:t.hollowPointSelectedBorderColor,strokeOpacity:t.hollowPointSelectedBorderOpacity},inactive:{strokeOpacity:t.hollowPointInactiveBorderOpacity}},area:{default:{fill:t.areaFillColor,fillOpacity:t.areaFillOpacity,stroke:null},active:{fillOpacity:t.areaActiveFillOpacity},selected:{fillOpacity:t.areaSelectedFillOpacity},inactive:{fillOpacity:t.areaInactiveFillOpacity}},hollowArea:{default:{fill:null,stroke:t.hollowAreaBorderColor,lineWidth:t.hollowAreaBorder,strokeOpacity:t.hollowAreaBorderOpacity},active:{fill:null,lineWidth:t.hollowAreaActiveBorder},selected:{fill:null,lineWidth:t.hollowAreaSelectedBorder},inactive:{strokeOpacity:t.hollowAreaInactiveBorderOpacity}},interval:{default:{fill:t.intervalFillColor,fillOpacity:t.intervalFillOpacity},active:{stroke:t.intervalActiveBorderColor,lineWidth:t.intervalActiveBorder},selected:{stroke:t.intervalSelectedBorderColor,lineWidth:t.intervalSelectedBorder},inactive:{fillOpacity:t.intervalInactiveFillOpacity,strokeOpacity:t.intervalInactiveBorderOpacity}},hollowInterval:{default:{fill:t.hollowIntervalFillColor,stroke:t.hollowIntervalBorderColor,lineWidth:t.hollowIntervalBorder,strokeOpacity:t.hollowIntervalBorderOpacity},active:{stroke:t.hollowIntervalActiveBorderColor,lineWidth:t.hollowIntervalActiveBorder,strokeOpacity:t.hollowIntervalActiveBorderOpacity},selected:{stroke:t.hollowIntervalSelectedBorderColor,lineWidth:t.hollowIntervalSelectedBorder,strokeOpacity:t.hollowIntervalSelectedBorderOpacity},inactive:{stroke:t.hollowIntervalInactiveBorderColor,lineWidth:t.hollowIntervalInactiveBorder,strokeOpacity:t.hollowIntervalInactiveBorderOpacity}},line:{default:{stroke:t.lineBorderColor,lineWidth:t.lineBorder,strokeOpacity:t.lineBorderOpacity,fill:null,lineAppendWidth:10,lineCap:"round",lineJoin:"round"},active:{lineWidth:t.lineActiveBorder},selected:{lineWidth:t.lineSelectedBorder},inactive:{strokeOpacity:t.lineInactiveBorderOpacity}}},l=function(t){return{title:{autoRotate:!0,position:"center",spacing:t.axisTitleSpacing,style:{fill:t.axisTitleTextFillColor,fontSize:t.axisTitleTextFontSize,lineHeight:t.axisTitleTextLineHeight,textBaseline:"middle",fontFamily:t.fontFamily},iconStyle:{fill:t.axisDescriptionIconFillColor}},label:{autoRotate:!1,autoEllipsis:!1,autoHide:{type:"equidistance",cfg:{minGap:6}},offset:t.axisLabelOffset,style:{fill:t.axisLabelFillColor,fontSize:t.axisLabelFontSize,lineHeight:t.axisLabelLineHeight,fontFamily:t.fontFamily}},line:{style:{lineWidth:t.axisLineBorder,stroke:t.axisLineBorderColor}},grid:{line:{type:"line",style:{stroke:t.axisGridBorderColor,lineWidth:t.axisGridBorder,lineDash:t.axisGridLineDash}},alignTick:!0,animate:!0},tickLine:{style:{lineWidth:t.axisTickLineBorder,stroke:t.axisTickLineBorderColor},alignTick:!0,length:t.axisTickLineLength},subTickLine:null,animate:!0}}(t),u=function(t){return{title:null,marker:{symbol:"circle",spacing:t.legendMarkerSpacing,style:{r:t.legendCircleMarkerSize,fill:t.legendMarkerColor}},itemName:{spacing:5,style:{fill:t.legendItemNameFillColor,fontFamily:t.fontFamily,fontSize:t.legendItemNameFontSize,lineHeight:t.legendItemNameLineHeight,fontWeight:t.legendItemNameFontWeight,textAlign:"start",textBaseline:"middle"}},itemStates:{active:{nameStyle:{opacity:.8}},unchecked:{nameStyle:{fill:"#D8D8D8"},markerStyle:{fill:"#D8D8D8",stroke:"#D8D8D8"}},inactive:{nameStyle:{fill:"#D8D8D8"},markerStyle:{opacity:.2}}},flipPage:!0,pageNavigator:{marker:{style:{size:t.legendPageNavigatorMarkerSize,inactiveFill:t.legendPageNavigatorMarkerInactiveFillColor,inactiveOpacity:t.legendPageNavigatorMarkerInactiveFillOpacity,fill:t.legendPageNavigatorMarkerFillColor,opacity:t.legendPageNavigatorMarkerFillOpacity}},text:{style:{fill:t.legendPageNavigatorTextFillColor,fontSize:t.legendPageNavigatorTextFontSize}}},animate:!1,maxItemWidth:200,itemSpacing:t.legendItemSpacing,itemMarginBottom:t.legendItemMarginBottom,padding:t.legendPadding}}(t);return{background:t.backgroundColor,defaultColor:t.brandColor,subColor:t.subColor,semanticRed:t.paletteSemanticRed,semanticGreen:t.paletteSemanticGreen,padding:"auto",fontFamily:t.fontFamily,columnWidthRatio:.5,maxColumnWidth:null,minColumnWidth:null,roseWidthRatio:.9999999,multiplePieWidthRatio:1/1.3,colors10:t.paletteQualitative10,colors20:t.paletteQualitative20,sequenceColors:t.paletteSequence,shapes:{point:["hollow-circle","hollow-square","hollow-bowtie","hollow-diamond","hollow-hexagon","hollow-triangle","hollow-triangle-down","circle","square","bowtie","diamond","hexagon","triangle","triangle-down","cross","tick","plus","hyphen","line"],line:["line","dash","dot","smooth"],area:["area","smooth","line","smooth-line"],interval:["rect","hollow-rect","line","tick"]},sizes:[1,10],geometries:{interval:{rect:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:function(t){var e=t.geometry.coordinate;if(e.isPolar&&e.isTransposed){var r=(0,s.getAngle)(t.getModel(),e),i=(r.startAngle+r.endAngle)/2,o=7.5*Math.cos(i),l=7.5*Math.sin(i);return{matrix:a.ext.transform(null,[["t",o,l]])}}return n.interval.selected}}},"hollow-rect":{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},line:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},tick:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},funnel:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:n.interval.selected}},pyramid:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:n.interval.selected}}},line:{line:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},dot:{default:{style:r.__assign(r.__assign({},n.line.default),{lineCap:null,lineDash:[1,1]})},active:{style:r.__assign(r.__assign({},n.line.active),{lineCap:null,lineDash:[1,1]})},inactive:{style:r.__assign(r.__assign({},n.line.inactive),{lineCap:null,lineDash:[1,1]})},selected:{style:r.__assign(r.__assign({},n.line.selected),{lineCap:null,lineDash:[1,1]})}},dash:{default:{style:r.__assign(r.__assign({},n.line.default),{lineCap:null,lineDash:[5.5,1]})},active:{style:r.__assign(r.__assign({},n.line.active),{lineCap:null,lineDash:[5.5,1]})},inactive:{style:r.__assign(r.__assign({},n.line.inactive),{lineCap:null,lineDash:[5.5,1]})},selected:{style:r.__assign(r.__assign({},n.line.selected),{lineCap:null,lineDash:[5.5,1]})}},smooth:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},hv:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},vh:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},hvh:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},vhv:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}}},polygon:{polygon:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:n.interval.selected}}},point:{circle:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},square:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},bowtie:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},diamond:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},hexagon:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},triangle:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},"triangle-down":{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},"hollow-circle":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-square":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-bowtie":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-diamond":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-hexagon":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-triangle":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-triangle-down":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},cross:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},tick:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},plus:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},hyphen:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},line:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}}},area:{area:{default:{style:n.area.default},active:{style:n.area.active},inactive:{style:n.area.inactive},selected:{style:n.area.selected}},smooth:{default:{style:n.area.default},active:{style:n.area.active},inactive:{style:n.area.inactive},selected:{style:n.area.selected}},line:{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}},"smooth-line":{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}}},schema:{candle:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},box:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}}},edge:{line:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},vhv:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},smooth:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},arc:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}}},violin:{violin:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},smooth:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},hollow:{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}},"hollow-smooth":{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}}}},components:{axis:{common:l,top:{position:"top",grid:null,title:null,verticalLimitLength:.5},bottom:{position:"bottom",grid:null,title:null,verticalLimitLength:.5},left:{position:"left",title:null,line:null,tickLine:null,verticalLimitLength:1/3},right:{position:"right",title:null,line:null,tickLine:null,verticalLimitLength:1/3},circle:{title:null,grid:(0,o.deepMix)({},l.grid,{line:{type:"line"}})},radius:{title:null,grid:(0,o.deepMix)({},l.grid,{line:{type:"circle"}})}},legend:{common:u,right:{layout:"vertical",padding:t.legendVerticalPadding},left:{layout:"vertical",padding:t.legendVerticalPadding},top:{layout:"horizontal",padding:t.legendHorizontalPadding},bottom:{layout:"horizontal",padding:t.legendHorizontalPadding},continuous:{title:null,background:null,track:{},rail:{type:"color",size:t.sliderRailHeight,defaultLength:t.sliderRailWidth,style:{fill:t.sliderRailFillColor,stroke:t.sliderRailBorderColor,lineWidth:t.sliderRailBorder}},label:{align:"rail",spacing:4,formatter:null,style:{fill:t.sliderLabelTextFillColor,fontSize:t.sliderLabelTextFontSize,lineHeight:t.sliderLabelTextLineHeight,textBaseline:"middle",fontFamily:t.fontFamily}},handler:{size:t.sliderHandlerWidth,style:{fill:t.sliderHandlerFillColor,stroke:t.sliderHandlerBorderColor}},slidable:!0,padding:u.padding}},tooltip:{showContent:!0,follow:!0,showCrosshairs:!1,showMarkers:!0,shared:!1,enterable:!1,position:"auto",marker:{symbol:"circle",stroke:"#fff",shadowBlur:10,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0,0,0,0.09)",lineWidth:2,r:4},crosshairs:{line:{style:{stroke:t.tooltipCrosshairsBorderColor,lineWidth:t.tooltipCrosshairsBorder}},text:null,textBackground:{padding:2,style:{fill:"rgba(0, 0, 0, 0.25)",lineWidth:0,stroke:null}},follow:!1},domStyles:(e={},e["".concat(i.TOOLTIP_CSS_CONST.CONTAINER_CLASS)]={position:"absolute",visibility:"hidden",zIndex:8,transition:"left 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s, top 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s",backgroundColor:t.tooltipContainerFillColor,opacity:t.tooltipContainerFillOpacity,boxShadow:t.tooltipContainerShadow,borderRadius:"".concat(t.tooltipContainerBorderRadius,"px"),color:t.tooltipTextFillColor,fontSize:"".concat(t.tooltipTextFontSize,"px"),fontFamily:t.fontFamily,lineHeight:"".concat(t.tooltipTextLineHeight,"px"),padding:"0 12px 0 12px"},e["".concat(i.TOOLTIP_CSS_CONST.TITLE_CLASS)]={marginBottom:"12px",marginTop:"12px"},e["".concat(i.TOOLTIP_CSS_CONST.LIST_CLASS)]={margin:0,listStyleType:"none",padding:0},e["".concat(i.TOOLTIP_CSS_CONST.LIST_ITEM_CLASS)]={listStyleType:"none",padding:0,marginBottom:"12px",marginTop:"12px",marginLeft:0,marginRight:0},e["".concat(i.TOOLTIP_CSS_CONST.MARKER_CLASS)]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},e["".concat(i.TOOLTIP_CSS_CONST.VALUE_CLASS)]={display:"inline-block",float:"right",marginLeft:"30px"},e)},annotation:{arc:{style:{stroke:t.annotationArcBorderColor,lineWidth:t.annotationArcBorder},animate:!0},line:{style:{stroke:t.annotationLineBorderColor,lineDash:t.annotationLineDash,lineWidth:t.annotationLineBorder},text:{position:"start",autoRotate:!0,style:{fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,textAlign:"start",fontFamily:t.fontFamily,textBaseline:"bottom"}},animate:!0},text:{style:{fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,textBaseline:"middle",textAlign:"start",fontFamily:t.fontFamily},animate:!0},region:{top:!1,style:{lineWidth:t.annotationRegionBorder,stroke:t.annotationRegionBorderColor,fill:t.annotationRegionFillColor,fillOpacity:t.annotationRegionFillOpacity},animate:!0},image:{top:!1,animate:!0},dataMarker:{top:!0,point:{style:{r:3,stroke:t.brandColor,lineWidth:2}},line:{style:{stroke:t.annotationLineBorderColor,lineWidth:t.annotationLineBorder},length:t.annotationDataMarkerLineLength},text:{style:{textAlign:"start",fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,fontFamily:t.fontFamily}},direction:"upward",autoAdjust:!0,animate:!0},dataRegion:{style:{region:{fill:t.annotationRegionFillColor,fillOpacity:t.annotationRegionFillOpacity},text:{textAlign:"center",textBaseline:"bottom",fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,fontFamily:t.fontFamily}},animate:!0}},slider:{common:{padding:[8,8,8,8],backgroundStyle:{fill:t.cSliderBackgroundFillColor,opacity:t.cSliderBackgroundFillOpacity},foregroundStyle:{fill:t.cSliderForegroundFillColor,opacity:t.cSliderForegroundFillOpacity},handlerStyle:{width:t.cSliderHandlerWidth,height:t.cSliderHandlerHeight,fill:t.cSliderHandlerFillColor,opacity:t.cSliderHandlerFillOpacity,stroke:t.cSliderHandlerBorderColor,lineWidth:t.cSliderHandlerBorder,radius:t.cSliderHandlerBorderRadius,highLightFill:t.cSliderHandlerHighlightFillColor},textStyle:{fill:t.cSliderTextFillColor,opacity:t.cSliderTextFillOpacity,fontSize:t.cSliderTextFontSize,lineHeight:t.cSliderTextLineHeight,fontWeight:t.cSliderTextFontWeight,stroke:t.cSliderTextBorderColor,lineWidth:t.cSliderTextBorder}}},scrollbar:{common:{padding:[8,8,8,8]},default:{style:{trackColor:t.scrollbarTrackFillColor,thumbColor:t.scrollbarThumbFillColor}},hover:{style:{thumbColor:t.scrollbarThumbHighlightFillColor}}}},labels:{offset:12,style:{fill:t.labelFillColor,fontSize:t.labelFontSize,fontFamily:t.fontFamily,stroke:t.labelBorderColor,lineWidth:t.labelBorder},fillColorDark:t.labelFillColorDark,fillColorLight:t.labelFillColorLight,autoRotate:!0},innerLabels:{style:{fill:t.innerLabelFillColor,fontSize:t.innerLabelFontSize,fontFamily:t.fontFamily,stroke:t.innerLabelBorderColor,lineWidth:t.innerLabelBorder},autoRotate:!0},overflowLabels:{style:{fill:t.overflowLabelFillColor,fontSize:t.overflowLabelFontSize,fontFamily:t.fontFamily,stroke:t.overflowLabelBorderColor,lineWidth:t.overflowLabelBorder}},pieLabels:{labelHeight:14,offset:10,labelLine:{style:{lineWidth:t.labelLineBorder}},autoRotate:!0}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getComponentController=e.getComponentControllerNames=e.unregisterComponentController=e.registerComponentController=void 0;var r={};e.registerComponentController=function(t,e){r[t]=e},e.unregisterComponentController=function(t){delete r[t]},e.getComponentControllerNames=function(){return Object.keys(r)},e.getComponentController=function(t){return r[t]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PaddingCal=void 0;var r=n(0),i=n(2),a=function(){function t(t,e,n,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),this.top=t,this.right=e,this.bottom=n,this.left=r}return t.instance=function(e,n,r,i){return void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),void 0===i&&(i=0),new t(e,n,r,i)},t.prototype.max=function(t){var e=r.__read(t,4),n=e[0],i=e[1],a=e[2],o=e[3];return this.top=Math.max(this.top,n),this.right=Math.max(this.right,i),this.bottom=Math.max(this.bottom,a),this.left=Math.max(this.left,o),this},t.prototype.shrink=function(t){var e=r.__read(t,4),n=e[0],i=e[1],a=e[2],o=e[3];return this.top+=n,this.right+=i,this.bottom+=a,this.left+=o,this},t.prototype.inc=function(t,e){var n=t.width,r=t.height;switch(e){case i.DIRECTION.TOP:case i.DIRECTION.TOP_LEFT:case i.DIRECTION.TOP_RIGHT:this.top+=r;break;case i.DIRECTION.RIGHT:case i.DIRECTION.RIGHT_TOP:case i.DIRECTION.RIGHT_BOTTOM:this.right+=n;break;case i.DIRECTION.BOTTOM:case i.DIRECTION.BOTTOM_LEFT:case i.DIRECTION.BOTTOM_RIGHT:this.bottom+=r;break;case i.DIRECTION.LEFT:case i.DIRECTION.LEFT_TOP:case i.DIRECTION.LEFT_BOTTOM:this.left+=n}return this},t.prototype.getPadding=function(){return[this.top,this.right,this.bottom,this.left]},t.prototype.clone=function(){return new(t.bind.apply(t,r.__spreadArray([void 0],r.__read(this.getPadding()),!1)))},t}();e.PaddingCal=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(19),o=n(14),s=n(13),l=n(78),u=n(29),c=n(42),f=r.__importDefault(n(114));var h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isLocked=!1,e}return r.__extends(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"tooltip"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.isVisible=function(){return!1!==this.view.getOptions().tooltip},e.prototype.render=function(){},e.prototype.showTooltip=function(t){if(this.point=t,this.isVisible()){var e=this.view,n=this.getTooltipItems(t);if(n.length){var a=this.getTitle(n),o={x:n[0].x,y:n[0].y};e.emit("tooltip:show",f.default.fromData(e,"tooltip:show",r.__assign({items:n,title:a},t)));var s=this.getTooltipCfg(),l=s.follow,u=s.showMarkers,c=s.showCrosshairs,h=s.showContent,p=s.marker,d=this.items,g=this.title;if((0,i.isEqual)(g,a)&&(0,i.isEqual)(d,n)?(this.tooltip&&l&&(this.tooltip.update(t),this.tooltip.show()),this.tooltipMarkersGroup&&this.tooltipMarkersGroup.show()):(e.emit("tooltip:change",f.default.fromData(e,"tooltip:change",r.__assign({items:n,title:a},t))),((0,i.isFunction)(h)?h(n):h)&&(this.tooltip||this.renderTooltip(),this.tooltip.update((0,i.mix)({},s,{items:this.getItemsAfterProcess(n),title:a},l?t:{})),this.tooltip.show()),u&&this.renderTooltipMarkers(n,p)),this.items=n,this.title=a,c){var y=(0,i.get)(s,["crosshairs","follow"],!1);this.renderCrosshairs(y?t:o,s)}}else this.hideTooltip()}},e.prototype.hideTooltip=function(){if(this.getTooltipCfg().follow){var t=this.tooltipMarkersGroup;t&&t.hide();var e=this.xCrosshair,n=this.yCrosshair;e&&e.hide(),n&&n.hide();var r=this.tooltip;r&&r.hide(),this.view.emit("tooltip:hide",f.default.fromData(this.view,"tooltip:hide",{})),this.point=null}else this.point=null},e.prototype.lockTooltip=function(){this.isLocked=!0,this.tooltip&&this.tooltip.setCapture(!0)},e.prototype.unlockTooltip=function(){this.isLocked=!1;var t=this.getTooltipCfg();this.tooltip&&this.tooltip.setCapture(t.capture)},e.prototype.isTooltipLocked=function(){return this.isLocked},e.prototype.clear=function(){var t=this.tooltip,e=this.xCrosshair,n=this.yCrosshair,r=this.tooltipMarkersGroup;t&&(t.hide(),t.clear()),e&&e.clear(),n&&n.clear(),r&&r.clear(),(null==t?void 0:t.get("customContent"))&&(this.tooltip.destroy(),this.tooltip=null),this.title=null,this.items=null},e.prototype.destroy=function(){this.tooltip&&this.tooltip.destroy(),this.xCrosshair&&this.xCrosshair.destroy(),this.yCrosshair&&this.yCrosshair.destroy(),this.guideGroup&&this.guideGroup.remove(!0),this.reset()},e.prototype.reset=function(){this.items=null,this.title=null,this.tooltipMarkersGroup=null,this.tooltipCrosshairsGroup=null,this.xCrosshair=null,this.yCrosshair=null,this.tooltip=null,this.guideGroup=null,this.isLocked=!1,this.point=null},e.prototype.changeVisible=function(t){if(this.visible!==t){var e=this.tooltip,n=this.tooltipMarkersGroup,r=this.xCrosshair,i=this.yCrosshair;t?(e&&e.show(),n&&n.show(),r&&r.show(),i&&i.show()):(e&&e.hide(),n&&n.hide(),r&&r.hide(),i&&i.hide()),this.visible=t}},e.prototype.getTooltipItems=function(t){var e,n,a,o,s,l,u=this.findItemsFromView(this.view,t);if(u.length){u=(0,i.flatten)(u);try{for(var c=r.__values(u),f=c.next();!f.done;f=c.next()){var h=f.value;try{for(var p=(a=void 0,r.__values(h)),d=p.next();!d.done;d=p.next()){var g=d.value,y=g.mappingData,v=y.x,m=y.y;g.x=(0,i.isArray)(v)?v[v.length-1]:v,g.y=(0,i.isArray)(m)?m[m.length-1]:m}}catch(t){a={error:t}}finally{try{d&&!d.done&&(o=p.return)&&o.call(p)}finally{if(a)throw a.error}}}}catch(t){e={error:t}}finally{try{f&&!f.done&&(n=c.return)&&n.call(c)}finally{if(e)throw e.error}}if(!1===this.getTooltipCfg().shared&&u.length>1){var _=u[0],x=Math.abs(t.y-_[0].y);try{for(var b=r.__values(u),M=b.next();!M.done;M=b.next()){var C=M.value,P=Math.abs(t.y-C[0].y);P<=x&&(_=C,x=P)}}catch(t){s={error:t}}finally{try{M&&!M.done&&(l=b.return)&&l.call(b)}finally{if(s)throw s.error}}u=[_]}return function(t){for(var e=[],n=function(n){var r=t[n];(0,i.find)(e,(function(t){return t.color===r.color&&t.name===r.name&&t.value===r.value&&t.title===r.title}))||e.push(r)},r=0;r<t.length;r++)n(r);return e}((0,i.flatten)(u))}return[]},e.prototype.layout=function(){},e.prototype.update=function(){if(this.point&&this.showTooltip(this.point),this.tooltip){var t=this.view.getCanvas();this.tooltip.set("region",{start:{x:0,y:0},end:{x:t.get("width"),y:t.get("height")}})}},e.prototype.isCursorEntered=function(t){if(this.tooltip){var e=this.tooltip.getContainer(),n=this.tooltip.get("capture");if(e&&n){var r=e.getBoundingClientRect(),i=r.x,a=r.y,o=r.width,s=r.height;return new u.BBox(i,a,o,s).isPointIn(t)}}return!1},e.prototype.getTooltipCfg=function(){var t=this.view,e=t.getOptions().tooltip,n=this.processCustomContent(e),r=t.getTheme(),a=(0,i.get)(r,["components","tooltip"],{}),o=(0,i.get)(n,"enterable",a.enterable);return(0,i.deepMix)({},a,n,{capture:!(!o&&!this.isLocked)})},e.prototype.processCustomContent=function(t){if((0,i.isBoolean)(t)||!(0,i.get)(t,"customContent"))return t;var e=t.customContent;return r.__assign(r.__assign({},t),{customContent:function(t,n){var r=e(t,n)||"";return(0,i.isString)(r)?'<div class="g2-tooltip">'+r+"</div>":r}})},e.prototype.getTitle=function(t){var e=t[0].title||t[0].name;return this.title=e,e},e.prototype.renderTooltip=function(){var t=this.view.getCanvas(),e={start:{x:0,y:0},end:{x:t.get("width"),y:t.get("height")}},n=this.getTooltipCfg(),i=new a.HtmlTooltip(r.__assign(r.__assign({parent:t.get("el").parentNode,region:e},n),{visible:!1,crosshairs:null}));i.init(),this.tooltip=i},e.prototype.renderTooltipMarkers=function(t,e){var n,i,a=this.getTooltipMarkersGroup(),s=this.view.getRootView(),l=s.limitInPlot;try{for(var u=r.__values(t),c=u.next();!c.done;c=u.next()){var f=c.value,h=f.x,p=f.y;if(l||(null==a?void 0:a.getClip())){var d=(0,o.getCoordinateClipCfg)(s.getCoordinate()),g=d.type,y=d.attrs;null==a||a.setClip({type:g,attrs:y})}else null==a||a.setClip(void 0);var v=r.__assign(r.__assign({fill:f.color,symbol:"circle",shadowColor:f.color},e),{x:h,y:p});a.addShape("marker",{attrs:v})}}catch(t){n={error:t}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}},e.prototype.renderCrosshairs=function(t,e){var n=(0,i.get)(e,["crosshairs","type"],"x");"x"===n?(this.yCrosshair&&this.yCrosshair.hide(),this.renderXCrosshairs(t,e)):"y"===n?(this.xCrosshair&&this.xCrosshair.hide(),this.renderYCrosshairs(t,e)):"xy"===n&&(this.renderXCrosshairs(t,e),this.renderYCrosshairs(t,e))},e.prototype.renderXCrosshairs=function(t,e){var n=this.getViewWithGeometry(this.view).getCoordinate();if((0,o.isPointInCoordinate)(n,t)){var r,l;if(n.isRect)n.isTransposed?(r={x:n.start.x,y:t.y},l={x:n.end.x,y:t.y}):(r={x:t.x,y:n.end.y},l={x:t.x,y:n.start.y});else{var u=(0,o.getAngleByPoint)(n,t),c=n.getCenter(),f=n.getRadius();l=(0,s.polarToCartesian)(c.x,c.y,f,u),r=c}var h=(0,i.deepMix)({start:r,end:l,container:this.getTooltipCrosshairsGroup()},(0,i.get)(e,"crosshairs",{}),this.getCrosshairsText("x",t,e));delete h.type;var p=this.xCrosshair;p?p.update(h):(p=new a.Crosshair.Line(h)).init(),p.render(),p.show(),this.xCrosshair=p}},e.prototype.renderYCrosshairs=function(t,e){var n=this.getViewWithGeometry(this.view).getCoordinate();if((0,o.isPointInCoordinate)(n,t)){var r,s;if(n.isRect){var l=void 0,u=void 0;n.isTransposed?(l={x:t.x,y:n.end.y},u={x:t.x,y:n.start.y}):(l={x:n.start.x,y:t.y},u={x:n.end.x,y:t.y}),r={start:l,end:u},s="Line"}else r={center:n.getCenter(),radius:(0,o.getDistanceToCenter)(n,t),startAngle:n.startAngle,endAngle:n.endAngle},s="Circle";delete(r=(0,i.deepMix)({container:this.getTooltipCrosshairsGroup()},r,(0,i.get)(e,"crosshairs",{}),this.getCrosshairsText("y",t,e))).type;var c=this.yCrosshair;c?n.isRect&&"circle"===c.get("type")||!n.isRect&&"line"===c.get("type")?(c=new a.Crosshair[s](r)).init():c.update(r):(c=new a.Crosshair[s](r)).init(),c.render(),c.show(),this.yCrosshair=c}},e.prototype.getCrosshairsText=function(t,e,n){var r=(0,i.get)(n,["crosshairs","text"]),a=(0,i.get)(n,["crosshairs","follow"]),o=this.items;if(r){var s=this.getViewWithGeometry(this.view),l=o[0],u=s.getXScale(),c=s.getYScales()[0],f=void 0,h=void 0;if(a){var p=this.view.getCoordinate().invert(e);f=u.invert(p.x),h=c.invert(p.y)}else f=l.data[u.field],h=l.data[c.field];var d="x"===t?f:h;return(0,i.isFunction)(r)?r=r(t,d,o,e):r.content=d,{text:r}}},e.prototype.getGuideGroup=function(){if(!this.guideGroup){var t=this.view.foregroundGroup;this.guideGroup=t.addGroup({name:"tooltipGuide",capture:!1})}return this.guideGroup},e.prototype.getTooltipMarkersGroup=function(){var t=this.tooltipMarkersGroup;return t&&!t.destroyed?(t.clear(),t.show()):((t=this.getGuideGroup().addGroup({name:"tooltipMarkersGroup"})).toFront(),this.tooltipMarkersGroup=t),t},e.prototype.getTooltipCrosshairsGroup=function(){var t=this.tooltipCrosshairsGroup;return t||((t=this.getGuideGroup().addGroup({name:"tooltipCrosshairsGroup",capture:!1})).toBack(),this.tooltipCrosshairsGroup=t),t},e.prototype.findItemsFromView=function(t,e){var n,i;if(!1===t.getOptions().tooltip)return[];var a=this.getTooltipCfg(),o=(0,l.findItemsFromView)(t,e,a);try{for(var s=r.__values(t.views),u=s.next();!u.done;u=s.next()){var c=u.value;o=o.concat(this.findItemsFromView(c,e))}}catch(t){n={error:t}}finally{try{u&&!u.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}return o},e.prototype.getViewWithGeometry=function(t){var e=this;return t.geometries.length?t:(0,i.find)(t.views,(function(t){return e.getViewWithGeometry(t)}))},e.prototype.getItemsAfterProcess=function(t){var e=this.getTooltipCfg().customItems;return(e||function(t){return t})(t)},e}(c.Controller);e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerAnimation=e.getAnimation=void 0;var r={};e.getAnimation=function(t){return r[t.toLowerCase()]},e.registerAnimation=function(t,e){r[t.toLowerCase()]=e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isModelChange=void 0;var r=n(1);e.isModelChange=function(t,e){return(0,r.some)(["color","shape","size","x","y","isInCircle","data","style","defaultStyle","points","mappingData"],(function(n){return!(0,r.isEqual)(t[n],e[n])}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.diff=void 0,e.diff=function(t,e){for(var n=[],r=[],i=[],a=new Map,o=0;o<e.length;o++){var s=e[o];t[s]?r.push(s):n.push(s),a.set(s,!0)}return Object.keys(t).forEach((function(t){a.has(t)||i.push(t)})),{added:n,updated:r,removed:i}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getMappingValue=void 0;var r=n(0);e.getMappingValue=function(t,e,n){if(!t)return n;var i;if(t.callback&&t.callback.length>1){var a=Array(t.callback.length-1).fill("");i=t.mapping.apply(t,r.__spreadArray([e],r.__read(a),!1)).join("")}else i=t.mapping(e).join("");return i||n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getLegendThemeCfg=e.getCustomLegendItems=e.getLegendItems=e.getLegendLayout=void 0;var r=n(0),i=n(1),a=n(2),o=n(214),s=n(25),l=n(61),u=["line","cross","tick","plus","hyphen"];function c(t){var e=t.symbol;(0,i.isString)(e)&&l.MarkerSymbols[e]&&(t.symbol=l.MarkerSymbols[e])}e.getLegendLayout=function(t){return t.startsWith(a.DIRECTION.LEFT)||t.startsWith(a.DIRECTION.RIGHT)?"vertical":"horizontal"},e.getLegendItems=function(t,e,n,a,l){var f=n.getScale(n.type);if(f.isCategory){var h=f.field,p=e.getAttribute("color"),d=e.getAttribute("shape"),g=t.getTheme().defaultColor,y=e.coordinate.isPolar;return f.getTicks().map((function(n,v){var m,_=n.text,x=n.value,b=_,M=f.invert(x),C=0===t.filterFieldData(h,[(m={},m[h]=M,m)]).length;(0,i.each)(t.views,(function(t){var e;t.filterFieldData(h,[(e={},e[h]=M,e)]).length||(C=!0)}));var P,S,O=(0,o.getMappingValue)(p,M,g),w=(0,o.getMappingValue)(d,M,"point"),A=e.getShapeMarker(w,{color:O,isInPolar:y}),T=l;return(0,i.isFunction)(T)&&(T=T(b,v,r.__assign({name:b,value:M},(0,i.deepMix)({},a,A)))),function(t,e){var n=t.symbol;if((0,i.isString)(n)&&-1!==u.indexOf(n)){var r=(0,i.get)(t,"style",{}),a=(0,i.get)(r,"lineWidth",1),o=r.stroke||r.fill||e;t.style=(0,i.deepMix)({},t.style,{lineWidth:a,stroke:o,fill:null})}}(A=(0,i.deepMix)({},a,A,(0,s.omit)(r.__assign({},T),["style"])),O),T&&T.style&&(A.style=(P=A.style,S=T.style,(0,i.isFunction)(S)?S(P):(0,i.deepMix)({},P,S))),c(A),{id:M,name:b,value:M,marker:A,unchecked:C}}))}return[]},e.getCustomLegendItems=function(t,e,n){return n.map((function(n,r){var a=e;(0,i.isFunction)(a)&&(a=a(n.name,r,(0,i.deepMix)({},t,n)));var o=(0,i.isFunction)(n.marker)?n.marker(n.name,r,(0,i.deepMix)({},t,n)):n.marker,s=(0,i.deepMix)({},t,a,o);return c(s),n.marker=s,n}))},e.getLegendThemeCfg=function(t,e){var n=(0,i.get)(t,["components","legend"],{});return(0,i.deepMix)({},(0,i.get)(n,["common"],{}),(0,i.deepMix)({},(0,i.get)(n,[e],{})))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getLineMarker=void 0;var r={line:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},dot:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},dash:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},smooth:function(t,e,n){return[["M",t-n,e],["A",n/2,n/2,0,1,1,t,e],["A",n/2,n/2,0,1,0,t+n,e]]},hv:function(t,e,n){return[["M",t-n-1,e-2.5],["L",t,e-2.5],["L",t,e+2.5],["L",t+n+1,e+2.5]]},vh:function(t,e,n){return[["M",t-n-1,e+2.5],["L",t,e+2.5],["L",t,e-2.5],["L",t+n+1,e-2.5]]},hvh:function(t,e,n){return[["M",t-(n+1),e+2.5],["L",t-n/2,e+2.5],["L",t-n/2,e-2.5],["L",t+n/2,e-2.5],["L",t+n/2,e+2.5],["L",t+n+1,e+2.5]]},vhv:function(t,e){return[["M",t-5,e+2.5],["L",t-5,e],["L",t,e],["L",t,e-3],["L",t,e+3],["L",t+6.5,e+3]]}};e.getLineMarker=function(t,e){var n=t.color;return{symbol:r[e],style:{lineWidth:2,r:6,stroke:n}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.version=e.getArcParams=e.Shape=e.Group=e.Canvas=void 0;var r=n(0),i=r.__importStar(n(62));e.Shape=i,r.__exportStar(n(12),e);var a=n(502);Object.defineProperty(e,"Canvas",{enumerable:!0,get:function(){return r.__importDefault(a).default}});var o=n(120);Object.defineProperty(e,"Group",{enumerable:!0,get:function(){return r.__importDefault(o).default}});var s=n(219);Object.defineProperty(e,"getArcParams",{enumerable:!0,get:function(){return r.__importDefault(s).default}}),e.version="0.5.12"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseRadius=e.parseStyle=e.parsePattern=e.parseRadialGradient=e.parseLineGradient=void 0;var r=n(15),i=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,a=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,o=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,s=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function l(t,e){var n=t.match(s);(0,r.each)(n,(function(t){var n=t.split(":");e.addColorStop(n[0],n[1])}))}function u(t,e,n){var r,a,o=i.exec(n),s=parseFloat(o[1])%360*(Math.PI/180),u=o[2],c=e.getBBox();s>=0&&s<.5*Math.PI?(r={x:c.minX,y:c.minY},a={x:c.maxX,y:c.maxY}):.5*Math.PI<=s&&s<Math.PI?(r={x:c.maxX,y:c.minY},a={x:c.minX,y:c.maxY}):Math.PI<=s&&s<1.5*Math.PI?(r={x:c.maxX,y:c.maxY},a={x:c.minX,y:c.minY}):(r={x:c.minX,y:c.maxY},a={x:c.maxX,y:c.minY});var f=Math.tan(s),h=f*f,p=(a.x-r.x+f*(a.y-r.y))/(h+1)+r.x,d=f*(a.x-r.x+f*(a.y-r.y))/(h+1)+r.y,g=t.createLinearGradient(r.x,r.y,p,d);return l(u,g),g}function c(t,e,n){var r=a.exec(n),i=parseFloat(r[1]),o=parseFloat(r[2]),u=parseFloat(r[3]),c=r[4];if(0===u){var f=c.match(s);return f[f.length-1].split(":")[1]}var h=e.getBBox(),p=h.maxX-h.minX,d=h.maxY-h.minY,g=Math.sqrt(p*p+d*d)/2,y=t.createRadialGradient(h.minX+p*i,h.minY+d*o,0,h.minX+p/2,h.minY+d/2,u*g);return l(c,y),y}function f(t,e,n){if(e.get("patternSource")&&e.get("patternSource")===n)return e.get("pattern");var r,i,a=o.exec(n),s=a[1],l=a[2];function u(){r=t.createPattern(i,s),e.set("pattern",r),e.set("patternSource",n)}switch(s){case"a":s="repeat";break;case"x":s="repeat-x";break;case"y":s="repeat-y";break;case"n":s="no-repeat";break;default:s="no-repeat"}return i=new Image,l.match(/^data:/i)||(i.crossOrigin="Anonymous"),i.src=l,i.complete?u():(i.onload=u,i.src=i.src),r}e.parseLineGradient=u,e.parseRadialGradient=c,e.parsePattern=f,e.parseStyle=function(t,e,n){var i=e.getBBox();if(isNaN(i.x)||isNaN(i.y)||isNaN(i.width)||isNaN(i.height))return n;if((0,r.isString)(n)){if("("===n[1]||"("===n[2]){if("l"===n[0])return u(t,e,n);if("r"===n[0])return c(t,e,n);if("p"===n[0])return f(t,e,n)}return n}return n instanceof CanvasPattern?n:void 0},e.parseRadius=function(t){var e=0,n=0,i=0,a=0;return(0,r.isArray)(t)?1===t.length?e=n=i=a=t[0]:2===t.length?(e=i=t[0],n=a=t[1]):3===t.length?(e=t[0],n=a=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],a=t[3]):e=n=i=a=t,[e,n,i,a]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(15);function i(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function a(t,e){return i(t)*i(e)?(t[0]*e[0]+t[1]*e[1])/(i(t)*i(e)):1}function o(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(a(t,e))}e.default=function(t,e){var n=e[1],i=e[2],s=(0,r.mod)((0,r.toRadian)(e[3]),2*Math.PI),l=e[4],u=e[5],c=t[0],f=t[1],h=e[6],p=e[7],d=Math.cos(s)*(c-h)/2+Math.sin(s)*(f-p)/2,g=-1*Math.sin(s)*(c-h)/2+Math.cos(s)*(f-p)/2,y=d*d/(n*n)+g*g/(i*i);y>1&&(n*=Math.sqrt(y),i*=Math.sqrt(y));var v=n*n*(g*g)+i*i*(d*d),m=v?Math.sqrt((n*n*(i*i)-v)/v):1;l===u&&(m*=-1),isNaN(m)&&(m=0);var _=i?m*n*g/i:0,x=n?m*-i*d/n:0,b=(c+h)/2+Math.cos(s)*_-Math.sin(s)*x,M=(f+p)/2+Math.sin(s)*_+Math.cos(s)*x,C=[(d-_)/n,(g-x)/i],P=[(-1*d-_)/n,(-1*g-x)/i],S=o([1,0],C),O=o(C,P);return a(C,P)<=-1&&(O=Math.PI),a(C,P)>=1&&(O=0),0===u&&O>0&&(O-=2*Math.PI),1===u&&O<0&&(O+=2*Math.PI),{cx:b,cy:M,rx:(0,r.isSamePoint)(t,[h,p])?0:n,ry:(0,r.isSamePoint)(t,[h,p])?0:i,startAngle:S,endAngle:S+O,xRotation:s,arcFlag:l,sweepFlag:u}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(12);e.default=function(t,e,n){var i=(0,r.getOffScreenContext)();return t.createPath(i),i.isPointInPath(e,n)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});function r(t){return Math.abs(t)<1e-6?0:t<0?-1:1}function i(t,e,n){return(n[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(n[1]-t[1])&&Math.min(t[0],e[0])<=n[0]&&n[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=n[1]&&n[1]<=Math.max(t[1],e[1])}e.default=function(t,e,n){var a=!1,o=t.length;if(o<=2)return!1;for(var s=0;s<o;s++){var l=t[s],u=t[(s+1)%o];if(i(l,u,[e,n]))return!0;r(l[1]-n)>0!=r(u[1]-n)>0&&r(e-(n-l[1])*(l[0]-u[0])/(l[1]-u[1])-l[0])<0&&(a=!a)}return a}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(15);e.default=function(t,e,n,i,a,o,s,l){var u=(Math.atan2(l-e,s-t)+2*Math.PI)%(2*Math.PI);if(u<i||u>a)return!1;var c={x:t+n*Math.cos(u),y:e+n*Math.sin(u)};return(0,r.distance)(c.x,c.y,s,l)<=o/2}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(81));e.default=function(t,e,n,i,a){var o=t.length;if(o<2)return!1;for(var s=0;s<o-1;s++){var l=t[s][0],u=t[s][1],c=t[s+1][0],f=t[s+1][1];if((0,r.default)(l,u,c,f,e,n,i))return!0}if(a){var h=t[0],p=t[o-1];if((0,r.default)(h[0],h[1],p[0],p[1],e,n,i))return!0}return!1}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getQPath=e.getCPath=void 0;var r=n(1);e.getCPath=function(t,e){return["C",1*t.x/2+1*e.x/2,t.y,1*t.x/2+1*e.x/2,e.y,e.x,e.y]},e.getQPath=function(t,e){var n=[];n.push({x:e.x,y:e.y}),n.push(t);var i=["Q"];return(0,r.each)(n,(function(t){i.push(t.x,t.y)})),i}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(14),o=n(14),s=r.__importDefault(n(79)),l=Math.PI/2,u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getLabelOffset=function(t){var e=this.getCoordinate(),n=0;if((0,i.isNumber)(t))n=t;else if((0,i.isString)(t)&&-1!==t.indexOf("%")){var r=e.getRadius();e.innerRadius>0&&(r*=1-e.innerRadius),n=.01*parseFloat(t)*r}return n},e.prototype.getLabelItems=function(e){var n=t.prototype.getLabelItems.call(this,e),a=this.geometry.getYScale();return(0,i.map)(n,(function(t){if(t&&a){var e=a.scale((0,i.get)(t.data,a.field));return r.__assign(r.__assign({},t),{percent:e})}return t}))},e.prototype.getLabelAlign=function(t){var e,n=this.getCoordinate();if(t.labelEmit)e=t.angle<=Math.PI/2&&t.angle>=-Math.PI/2?"left":"right";else if(n.isTransposed){var r=n.getCenter(),i=t.offset;e=Math.abs(t.x-r.x)<1?"center":t.angle>Math.PI||t.angle<=0?i>0?"left":"right":i>0?"right":"left"}else e="center";return e},e.prototype.getLabelPoint=function(t,e,n){var r,i=1,a=t.content[n];this.isToMiddle(e)?r=this.getMiddlePoint(e.points):(1===t.content.length&&0===n?n=1:0===n&&(i=-1),r=this.getArcPoint(e,n));var o=t.offset*i,s=this.getPointAngle(r),l=t.labelEmit,u=this.getCirclePoint(s,o,r,l);return 0===u.r?u.content="":(u.content=a,u.angle=s,u.color=e.color),u.rotate=t.autoRotate?this.getLabelRotate(s,o,l):t.rotate,u.start={x:r.x,y:r.y},u},e.prototype.getArcPoint=function(t,e){return void 0===e&&(e=0),(0,i.isArray)(t.x)||(0,i.isArray)(t.y)?{x:(0,i.isArray)(t.x)?t.x[e]:t.x,y:(0,i.isArray)(t.y)?t.y[e]:t.y}:{x:t.x,y:t.y}},e.prototype.getPointAngle=function(t){return(0,o.getAngleByPoint)(this.getCoordinate(),t)},e.prototype.getCirclePoint=function(t,e,n,i){var o=this.getCoordinate(),s=o.getCenter(),l=(0,a.getDistanceToCenter)(o,n);if(0===l)return r.__assign(r.__assign({},s),{r:l});var u=t;o.isTransposed&&l>e&&!i?u=t+2*Math.asin(e/(2*l)):l+=e;return{x:s.x+l*Math.cos(u),y:s.y+l*Math.sin(u),r:l}},e.prototype.getLabelRotate=function(t,e,n){var r=t+l;return n&&(r-=l),r&&(r>l?r-=Math.PI:r<-l&&(r+=Math.PI)),r},e.prototype.getMiddlePoint=function(t){var e=this.getCoordinate(),n=t.length,r={x:0,y:0};return(0,i.each)(t,(function(t){r.x+=t.x,r.y+=t.y})),r.x/=n,r.y/=n,r=e.convert(r)},e.prototype.isToMiddle=function(t){return t.x.length>2},e}(s.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.antiCollision=void 0,e.antiCollision=function(t,e,n){var r=t.filter((function(t){return!t.invisible}));r.sort((function(t,e){return t.y-e.y}));var i,a=!0,o=n.minY,s=n.maxY,l=Math.abs(o-s),u=0,c=Number.MIN_VALUE,f=r.map((function(t){return t.y>u&&(u=t.y),t.y<c&&(c=t.y),{content:t.content,size:e,targets:[t.y-o],pos:null}}));for(c-=o,u-o>l&&(l=u-o);a;)for(f.forEach((function(t){var e=(Math.min.apply(c,t.targets)+Math.max.apply(c,t.targets))/2;t.pos=Math.min(Math.max(c,e-t.size/2),l-t.size),t.pos=Math.max(0,t.pos)})),a=!1,i=f.length;i--;)if(i>0){var h=f[i-1],p=f[i];h.pos+h.size>p.pos&&(h.size+=p.size,h.targets=h.targets.concat(p.targets),h.pos+h.size>l&&(h.pos=l-h.size),f.splice(i,1),a=!0)}i=0,f.forEach((function(t){var n=o+e/2;t.targets.forEach((function(){r[i].y=t.pos+n,n+=e,i++}))}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return r.__extends(e,t),e.prototype.show=function(){var t=this.context,e=t.event,n=t.view;if(!n.isTooltipLocked()){var r=this.timeStamp,a=+new Date;if(a-r>(0,i.get)(t.view.getOptions(),"tooltip.showDelay",16)){var o=this.location,s={x:e.x,y:e.y};o&&(0,i.isEqual)(o,s)||this.showTooltip(n,s),this.timeStamp=a,this.location=s}}},e.prototype.hide=function(){var t=this.context.view,e=t.getController("tooltip"),n=this.context.event,r=n.clientX,i=n.clientY;e.isCursorEntered({x:r,y:i})||t.isTooltipLocked()||(this.hideTooltip(t),this.location=null)},e.prototype.showTooltip=function(t,e){t.showTooltip(e)},e.prototype.hideTooltip=function(t){t.hideTooltip()},e}(r.__importDefault(n(11)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="rect",e}return r.__extends(e,t),e.prototype.getRegion=function(){var t=this.points;return{start:(0,i.head)(t),end:(0,i.last)(t)}},e.prototype.getMaskAttrs=function(){var t=this.getRegion(),e=t.start,n=t.end;return{x:Math.min(e.x,n.x),y:Math.min(e.y,n.y),width:Math.abs(n.x-e.x),height:Math.abs(n.y-e.y)}},e}(r.__importDefault(n(133)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getMaskPath=function(){var t=this.points,e=[];return t.length&&((0,i.each)(t,(function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e.push(["L",t[0].x,t[0].y])),e},e.prototype.getMaskAttrs=function(){return{path:this.getMaskPath()}},e.prototype.addPoint=function(){this.resize()},e}(r.__importDefault(n(133)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BRUSH_FILTER_EVENTS=void 0;var r,i=n(0),a=n(56),o=i.__importDefault(n(11)),s=n(4);function l(t,e,n,r){var a=Math.min(n[e],r[e]),o=Math.max(n[e],r[e]),s=i.__read(t.range,2),l=s[0],u=s[1];if(a<l&&(a=l),o>u&&(o=u),a===u&&o===u)return null;var c=t.invert(a),f=t.invert(o);if(t.isCategory){var h=t.values.indexOf(c),p=t.values.indexOf(f),d=t.values.slice(h,p+1);return function(t){return d.includes(t)}}return function(t){return t>=c&&t<=f}}!function(t){t.FILTER="brush-filter-processing",t.RESET="brush-filter-reset",t.BEFORE_FILTER="brush-filter:beforefilter",t.AFTER_FILTER="brush-filter:afterfilter",t.BEFORE_RESET="brush-filter:beforereset",t.AFTER_RESET="brush-filter:afterreset"}(r||(r={})),e.BRUSH_FILTER_EVENTS=r;var u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dims=["x","y"],e.startPoint=null,e.isStarted=!1,e}return i.__extends(e,t),e.prototype.hasDim=function(t){return this.dims.includes(t)},e.prototype.start=function(){var t=this.context;this.isStarted=!0,this.startPoint=t.getCurrentPoint()},e.prototype.filter=function(){var t,e;if((0,s.isMask)(this.context)){var n=this.context.event.target.getCanvasBBox();t={x:n.x,y:n.y},e={x:n.maxX,y:n.maxY}}else{if(!this.isStarted)return;t=this.startPoint,e=this.context.getCurrentPoint()}if(!(Math.abs(t.x-e.x)<5||Math.abs(t.x-e.y)<5)){var i=this.context,o=i.view,u={view:o,event:i.event,dims:this.dims};o.emit(r.BEFORE_FILTER,a.Event.fromData(o,r.BEFORE_FILTER,u));var c=o.getCoordinate(),f=c.invert(e),h=c.invert(t);if(this.hasDim("x")){var p=o.getXScale(),d=l(p,"x",f,h);this.filterView(o,p.field,d)}if(this.hasDim("y")){var g=o.getYScales()[0];d=l(g,"y",f,h);this.filterView(o,g.field,d)}this.reRender(o,{source:r.FILTER}),o.emit(r.AFTER_FILTER,a.Event.fromData(o,r.AFTER_FILTER,u))}},e.prototype.end=function(){this.isStarted=!1},e.prototype.reset=function(){var t=this.context.view;if(t.emit(r.BEFORE_RESET,a.Event.fromData(t,r.BEFORE_RESET,{})),this.isStarted=!1,this.hasDim("x")){var e=t.getXScale();this.filterView(t,e.field,null)}if(this.hasDim("y")){var n=t.getYScales()[0];this.filterView(t,n.field,null)}this.reRender(t,{source:r.RESET}),t.emit(r.AFTER_RESET,a.Event.fromData(t,r.AFTER_RESET,{}))},e.prototype.filterView=function(t,e,n){t.filter(e,n)},e.prototype.reRender=function(t,e){t.render(!0,e)},e}(o.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(77),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dims=["x","y"],e.cfgFields=["dims"],e.cacheScaleDefs={},e}return r.__extends(e,t),e.prototype.hasDim=function(t){return this.dims.includes(t)},e.prototype.getScale=function(t){var e=this.context.view;return"x"===t?e.getXScale():e.getYScales()[0]},e.prototype.resetDim=function(t){var e=this.context.view;if(this.hasDim(t)&&this.cacheScaleDefs[t]){var n=this.getScale(t);e.scale(n.field,this.cacheScaleDefs[t]),this.cacheScaleDefs[t]=null}},e.prototype.reset=function(){this.resetDim("x"),this.resetDim("y"),this.context.view.render(!0)},e}(i.Action);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ELEMENT_RANGE_HIGHLIGHT_EVENTS=e.BRUSH_FILTER_EVENTS=e.VIEW_LIFE_CIRCLE=void 0;var r=n(0),i=n(23),a=n(488),o=n(207);(0,i.registerTheme)("dark",(0,o.createThemeByStyleSheet)(a.antvDark));var s=r.__importStar(n(217)),l=r.__importStar(n(504)),u=n(23);(0,u.registerEngine)("canvas",s),(0,u.registerEngine)("svg",l);var c=n(23),f=r.__importDefault(n(525)),h=r.__importDefault(n(527)),p=r.__importDefault(n(529)),d=r.__importDefault(n(530)),g=r.__importDefault(n(532)),y=r.__importDefault(n(123)),v=r.__importDefault(n(533)),m=r.__importDefault(n(535)),_=r.__importDefault(n(537)),x=r.__importDefault(n(539));(0,c.registerGeometry)("Polygon",m.default),(0,c.registerGeometry)("Interval",d.default),(0,c.registerGeometry)("Schema",_.default),(0,c.registerGeometry)("Path",y.default),(0,c.registerGeometry)("Point",v.default),(0,c.registerGeometry)("Line",g.default),(0,c.registerGeometry)("Area",f.default),(0,c.registerGeometry)("Edge",h.default),(0,c.registerGeometry)("Heatmap",p.default),(0,c.registerGeometry)("Violin",x.default),n(541),n(542),n(543),n(544),n(545),n(546),n(547),n(548),n(549),n(550),n(551),n(552),n(553),n(554),n(555),n(556),n(557),n(558),n(559),n(560);var b=n(23),M=r.__importDefault(n(79)),C=r.__importDefault(n(561)),P=r.__importDefault(n(562)),S=r.__importDefault(n(225));(0,b.registerGeometryLabel)("base",M.default),(0,b.registerGeometryLabel)("interval",C.default),(0,b.registerGeometryLabel)("pie",P.default),(0,b.registerGeometryLabel)("polar",S.default);var O=n(23),w=n(563),A=n(564),T=n(565),E=n(566),I=n(567),L=n(568),D=n(569),B=n(573),j=n(575),R=n(576),k=n(577),F=n(578),N=n(579);(0,O.registerGeometryLabelLayout)("overlap",L.overlap),(0,O.registerGeometryLabelLayout)("distribute",w.distribute),(0,O.registerGeometryLabelLayout)("fixed-overlap",L.fixedOverlap),(0,O.registerGeometryLabelLayout)("hide-overlap",D.hideOverlap),(0,O.registerGeometryLabelLayout)("limit-in-shape",I.limitInShape),(0,O.registerGeometryLabelLayout)("limit-in-canvas",E.limitInCanvas),(0,O.registerGeometryLabelLayout)("limit-in-plot",N.limitInPlot),(0,O.registerGeometryLabelLayout)("pie-outer",A.pieOuterLabelLayout),(0,O.registerGeometryLabelLayout)("adjust-color",B.adjustColor),(0,O.registerGeometryLabelLayout)("interval-adjust-position",j.intervalAdjustPosition),(0,O.registerGeometryLabelLayout)("interval-hide-overlap",R.intervalHideOverlap),(0,O.registerGeometryLabelLayout)("point-adjust-position",k.pointAdjustPosition),(0,O.registerGeometryLabelLayout)("pie-spider",T.pieSpiderLabelLayout),(0,O.registerGeometryLabelLayout)("path-adjust-position",F.pathAdjustPosition);var G=n(582),Y=n(583),V=n(585),H=n(586),z=n(587),X=n(588),W=n(589),q=n(590),U=n(23);(0,U.registerAnimation)("fade-in",G.fadeIn),(0,U.registerAnimation)("fade-out",G.fadeOut),(0,U.registerAnimation)("grow-in-x",Y.growInX),(0,U.registerAnimation)("grow-in-xy",Y.growInXY),(0,U.registerAnimation)("grow-in-y",Y.growInY),(0,U.registerAnimation)("scale-in-x",z.scaleInX),(0,U.registerAnimation)("scale-in-y",z.scaleInY),(0,U.registerAnimation)("wave-in",W.waveIn),(0,U.registerAnimation)("zoom-in",q.zoomIn),(0,U.registerAnimation)("zoom-out",q.zoomOut),(0,U.registerAnimation)("position-update",H.positionUpdate),(0,U.registerAnimation)("sector-path-update",X.sectorPathUpdate),(0,U.registerAnimation)("path-in",V.pathIn);var Z=n(23),Q=r.__importDefault(n(591)),K=r.__importDefault(n(592)),$=r.__importDefault(n(593)),J=r.__importDefault(n(594)),tt=r.__importDefault(n(595)),et=r.__importDefault(n(596));(0,Z.registerFacet)("rect",tt.default),(0,Z.registerFacet)("mirror",J.default),(0,Z.registerFacet)("list",K.default),(0,Z.registerFacet)("matrix",$.default),(0,Z.registerFacet)("circle",Q.default),(0,Z.registerFacet)("tree",et.default);var nt=n(23),rt=r.__importDefault(n(597)),it=r.__importDefault(n(600)),at=r.__importDefault(n(602)),ot=r.__importDefault(n(603)),st=r.__importDefault(n(210)),lt=r.__importDefault(n(604));(0,nt.registerComponentController)("axis",it.default),(0,nt.registerComponentController)("legend",at.default),(0,nt.registerComponentController)("tooltip",st.default),(0,nt.registerComponentController)("annotation",rt.default),(0,nt.registerComponentController)("slider",ot.default),(0,nt.registerComponentController)("scrollbar",lt.default);var ut=n(23),ct=r.__importDefault(n(605)),ft=r.__importDefault(n(606)),ht=r.__importDefault(n(227)),pt=r.__importDefault(n(607)),dt=r.__importDefault(n(608)),gt=r.__importDefault(n(609)),yt=r.__importDefault(n(610)),vt=r.__importDefault(n(611)),mt=r.__importDefault(n(131)),_t=r.__importDefault(n(612)),xt=r.__importDefault(n(613)),bt=r.__importStar(n(614));Object.defineProperty(e,"ELEMENT_RANGE_HIGHLIGHT_EVENTS",{enumerable:!0,get:function(){return bt.ELEMENT_RANGE_HIGHLIGHT_EVENTS}});var Mt=r.__importDefault(n(615)),Ct=r.__importDefault(n(616)),Pt=r.__importDefault(n(617)),St=r.__importDefault(n(618)),Ot=r.__importDefault(n(619)),wt=r.__importDefault(n(620)),At=r.__importDefault(n(622)),Tt=r.__importDefault(n(623)),Et=r.__importDefault(n(624)),It=r.__importDefault(n(625)),Lt=r.__importDefault(n(626)),Dt=r.__importDefault(n(627)),Bt=r.__importDefault(n(628)),jt=r.__importDefault(n(229)),Rt=r.__importDefault(n(228)),kt=r.__importDefault(n(629)),Ft=r.__importDefault(n(630)),Nt=r.__importDefault(n(631)),Gt=r.__importStar(n(230));Object.defineProperty(e,"BRUSH_FILTER_EVENTS",{enumerable:!0,get:function(){return Gt.BRUSH_FILTER_EVENTS}});var Yt=r.__importDefault(n(632)),Vt=r.__importDefault(n(633)),Ht=r.__importDefault(n(634)),zt=r.__importDefault(n(635)),Xt=r.__importDefault(n(636)),Wt=r.__importDefault(n(637)),qt=r.__importDefault(n(638)),Ut=r.__importDefault(n(639)),Zt=r.__importDefault(n(640)),Qt=r.__importDefault(n(641));(0,ut.registerAction)("tooltip",ht.default),(0,ut.registerAction)("sibling-tooltip",ft.default),(0,ut.registerAction)("ellipsis-text",pt.default),(0,ut.registerAction)("element-active",dt.default),(0,ut.registerAction)("element-single-active",vt.default),(0,ut.registerAction)("element-range-active",yt.default),(0,ut.registerAction)("element-highlight",mt.default),(0,ut.registerAction)("element-highlight-by-x",xt.default),(0,ut.registerAction)("element-highlight-by-color",_t.default),(0,ut.registerAction)("element-single-highlight",Mt.default),(0,ut.registerAction)("element-range-highlight",bt.default),(0,ut.registerAction)("element-sibling-highlight",bt.default,{effectSiblings:!0,effectByRecord:!0}),(0,ut.registerAction)("element-selected",Pt.default),(0,ut.registerAction)("element-single-selected",St.default),(0,ut.registerAction)("element-range-selected",Ct.default),(0,ut.registerAction)("element-link-by-color",gt.default),(0,ut.registerAction)("active-region",ct.default),(0,ut.registerAction)("list-active",Ot.default),(0,ut.registerAction)("list-selected",At.default),(0,ut.registerAction)("list-highlight",wt.default),(0,ut.registerAction)("list-unchecked",Tt.default),(0,ut.registerAction)("list-checked",Et.default),(0,ut.registerAction)("list-focus",It.default),(0,ut.registerAction)("list-radio",Lt.default),(0,ut.registerAction)("legend-item-highlight",wt.default,{componentNames:["legend"]}),(0,ut.registerAction)("axis-label-highlight",wt.default,{componentNames:["axis"]}),(0,ut.registerAction)("axis-description",Qt.default),(0,ut.registerAction)("rect-mask",Rt.default),(0,ut.registerAction)("x-rect-mask",Bt.default,{dim:"x"}),(0,ut.registerAction)("y-rect-mask",Bt.default,{dim:"y"}),(0,ut.registerAction)("circle-mask",Dt.default),(0,ut.registerAction)("path-mask",jt.default),(0,ut.registerAction)("smooth-path-mask",kt.default),(0,ut.registerAction)("cursor",Ft.default),(0,ut.registerAction)("data-filter",Nt.default),(0,ut.registerAction)("brush",Gt.default),(0,ut.registerAction)("brush-x",Gt.default,{dims:["x"]}),(0,ut.registerAction)("brush-y",Gt.default,{dims:["y"]}),(0,ut.registerAction)("sibling-filter",Yt.default),(0,ut.registerAction)("sibling-x-filter",Yt.default),(0,ut.registerAction)("sibling-y-filter",Yt.default),(0,ut.registerAction)("element-filter",Vt.default),(0,ut.registerAction)("element-sibling-filter",Ht.default),(0,ut.registerAction)("element-sibling-filter-record",Ht.default,{byRecord:!0}),(0,ut.registerAction)("view-drag",Xt.default),(0,ut.registerAction)("view-move",Wt.default),(0,ut.registerAction)("scale-translate",qt.default),(0,ut.registerAction)("scale-zoom",Ut.default),(0,ut.registerAction)("reset-button",zt.default,{name:"reset-button",text:"reset"}),(0,ut.registerAction)("mousewheel-scroll",Zt.default);var Kt=n(23);function $t(t){return t.isInPlot()}function Jt(t){return t.gEvent.preventDefault(),t.gEvent.originalEvent.deltaY>0}(0,Kt.registerInteraction)("tooltip",{start:[{trigger:"plot:mousemove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"plot:touchmove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"plot:mouseleave",action:"tooltip:hide"},{trigger:"plot:leave",action:"tooltip:hide"},{trigger:"plot:touchend",action:"tooltip:hide"}]}),(0,Kt.registerInteraction)("ellipsis-text",{start:[{trigger:"legend-item-name:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"legend-item-name:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"legend-item-name:mouseleave",action:"ellipsis-text:hide"},{trigger:"legend-item-name:touchend",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseleave",action:"ellipsis-text:hide"},{trigger:"axis-label:touchend",action:"ellipsis-text:hide"}]}),(0,Kt.registerInteraction)("element-active",{start:[{trigger:"element:mouseenter",action:"element-active:active"}],end:[{trigger:"element:mouseleave",action:"element-active:reset"}]}),(0,Kt.registerInteraction)("element-selected",{start:[{trigger:"element:click",action:"element-selected:toggle"}]}),(0,Kt.registerInteraction)("element-highlight",{start:[{trigger:"element:mouseenter",action:"element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight:reset"}]}),(0,Kt.registerInteraction)("element-highlight-by-x",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-x:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-x:reset"}]}),(0,Kt.registerInteraction)("element-highlight-by-color",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-color:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-color:reset"}]}),(0,Kt.registerInteraction)("legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","element-active:reset"]}]}),(0,Kt.registerInteraction)("legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","element-highlight:reset"]}]}),(0,Kt.registerInteraction)("axis-label-highlight",{start:[{trigger:"axis-label:mouseenter",action:["axis-label-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"axis-label:mouseleave",action:["axis-label-highlight:reset","element-highlight:reset"]}]}),(0,Kt.registerInteraction)("element-list-highlight",{start:[{trigger:"element:mouseenter",action:["list-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"element:mouseleave",action:["list-highlight:reset","element-highlight:reset"]}]}),(0,Kt.registerInteraction)("element-range-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:function(t){return!t.isInShape("mask")},action:["rect-mask:start","rect-mask:show"]},{trigger:"mask:dragstart",action:["rect-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:drag",action:["rect-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end"]},{trigger:"mask:dragend",action:["rect-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear","rect-mask:end","rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear","rect-mask:hide"]}]}),(0,Kt.registerInteraction)("brush",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:$t,action:["brush:start","rect-mask:start","rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:$t,action:["rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:$t,action:["brush:filter","brush:end","rect-mask:end","rect-mask:hide","reset-button:show"]}],rollback:[{trigger:"reset-button:click",action:["brush:reset","reset-button:hide","cursor:crosshair"]}]}),(0,Kt.registerInteraction)("brush-visible",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"plot:mousedown",action:["rect-mask:start","rect-mask:show"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end","rect-mask:hide","element-filter:filter","element-range-highlight:clear"]}],rollback:[{trigger:"dblclick",action:["element-filter:clear"]}]}),(0,Kt.registerInteraction)("brush-x",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:$t,action:["brush-x:start","x-rect-mask:start","x-rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:$t,action:["x-rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:$t,action:["brush-x:filter","brush-x:end","x-rect-mask:end","x-rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]}),(0,Kt.registerInteraction)("element-path-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:$t,action:"path-mask:start"},{trigger:"mousedown",isEnable:$t,action:"path-mask:show"}],processing:[{trigger:"mousemove",action:"path-mask:addPoint"}],end:[{trigger:"mouseup",action:"path-mask:end"}],rollback:[{trigger:"dblclick",action:"path-mask:hide"}]}),(0,Kt.registerInteraction)("element-single-selected",{start:[{trigger:"element:click",action:"element-single-selected:toggle"}]}),(0,Kt.registerInteraction)("legend-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:["cursor:pointer","list-radio:show"]},{trigger:"legend-item:mouseleave",action:["cursor:default","list-radio:hide"]}],start:[{trigger:"legend-item:click",isEnable:function(t){return!t.isInShape("legend-item-radio")},action:["list-unchecked:toggle","data-filter:filter","list-radio:show"]},{trigger:"legend-item-radio:mouseenter",action:["list-radio:showTip"]},{trigger:"legend-item-radio:mouseleave",action:["list-radio:hideTip"]},{trigger:"legend-item-radio:click",action:["list-focus:toggle","data-filter:filter","list-radio:show"]}]}),(0,Kt.registerInteraction)("continuous-filter",{start:[{trigger:"legend:valuechanged",action:"data-filter:filter"}]}),(0,Kt.registerInteraction)("continuous-visible-filter",{start:[{trigger:"legend:valuechanged",action:"element-filter:filter"}]}),(0,Kt.registerInteraction)("legend-visible-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:"cursor:pointer"},{trigger:"legend-item:mouseleave",action:"cursor:default"}],start:[{trigger:"legend-item:click",action:["list-unchecked:toggle","element-filter:filter"]}]}),(0,Kt.registerInteraction)("active-region",{start:[{trigger:"plot:mousemove",action:"active-region:show"}],end:[{trigger:"plot:mouseleave",action:"active-region:hide"}]}),(0,Kt.registerInteraction)("axis-description",{start:[{trigger:"axis-description:mousemove",action:"axis-description:show"}],end:[{trigger:"axis-description:mouseleave",action:"axis-description:hide"}]}),(0,Kt.registerInteraction)("view-zoom",{start:[{trigger:"plot:mousewheel",isEnable:function(t){return Jt(t.event)},action:"scale-zoom:zoomOut",throttle:{wait:100,leading:!0,trailing:!1}},{trigger:"plot:mousewheel",isEnable:function(t){return!Jt(t.event)},action:"scale-zoom:zoomIn",throttle:{wait:100,leading:!0,trailing:!1}}]}),(0,Kt.registerInteraction)("sibling-tooltip",{start:[{trigger:"plot:mousemove",action:"sibling-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"sibling-tooltip:hide"}]}),(0,Kt.registerInteraction)("plot-mousewheel-scroll",{start:[{trigger:"plot:mousewheel",action:"mousewheel-scroll:scroll"}]});var te=n(2);Object.defineProperty(e,"VIEW_LIFE_CIRCLE",{enumerable:!0,get:function(){return te.VIEW_LIFE_CIRCLE}}),r.__exportStar(n(23),e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(2),o=n(150),s=n(313),l=function(t){function e(e){var n=this,l=e.container,u=e.width,c=e.height,f=e.autoFit,h=void 0!==f&&f,p=e.padding,d=e.appendPadding,g=e.renderer,y=void 0===g?"canvas":g,v=e.pixelRatio,m=e.localRefresh,_=void 0===m||m,x=e.visible,b=void 0===x||x,M=e.supportCSSTransform,C=void 0!==M&&M,P=e.defaultInteractions,S=void 0===P?["tooltip","legend-filter","legend-active","continuous-filter","ellipsis-text","axis-description"]:P,O=e.options,w=e.limitInPlot,A=e.theme,T=e.syncViewPadding,E=(0,i.isString)(l)?document.getElementById(l):l,I=(0,s.createDom)('<div style="position:relative;"></div>');E.appendChild(I);var L=(0,s.getChartSize)(E,h,u,c),D=new((0,o.getEngine)(y).Canvas)(r.__assign({container:I,pixelRatio:v,localRefresh:_,supportCSSTransform:C},L));return(n=t.call(this,{parent:null,canvas:D,backgroundGroup:D.addGroup({zIndex:a.GROUP_Z_INDEX.BG}),middleGroup:D.addGroup({zIndex:a.GROUP_Z_INDEX.MID}),foregroundGroup:D.addGroup({zIndex:a.GROUP_Z_INDEX.FORE}),padding:p,appendPadding:d,visible:b,options:O,limitInPlot:w,theme:A,syncViewPadding:T})||this).onResize=(0,i.debounce)((function(){n.forceFit()}),300),n.ele=E,n.canvas=D,n.width=L.width,n.height=L.height,n.autoFit=h,n.localRefresh=_,n.renderer=y,n.wrapperElement=I,n.updateCanvasStyle(),n.bindAutoFit(),n.initDefaultInteractions(S),n}return r.__extends(e,t),e.prototype.initDefaultInteractions=function(t){var e=this;(0,i.each)(t,(function(t){e.interaction(t)}))},e.prototype.aria=function(t){!1===t?this.ele.removeAttribute("aria-label"):this.ele.setAttribute("aria-label",t.label)},e.prototype.changeSize=function(t,e){return this.width===t&&this.height===e||(this.emit(a.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_SIZE),this.width=t,this.height=e,this.canvas.changeSize(t,e),this.render(!0),this.emit(a.VIEW_LIFE_CIRCLE.AFTER_CHANGE_SIZE)),this},e.prototype.clear=function(){t.prototype.clear.call(this),this.aria(!1)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.unbindAutoFit(),this.canvas.destroy(),(0,s.removeDom)(this.wrapperElement),this.wrapperElement=null},e.prototype.changeVisible=function(e){return t.prototype.changeVisible.call(this,e),this.wrapperElement.style.display=e?"":"none",this},e.prototype.forceFit=function(){if(!this.destroyed){var t=(0,s.getChartSize)(this.ele,!0,this.width,this.height),e=t.width,n=t.height;this.changeSize(e,n)}},e.prototype.updateCanvasStyle=function(){(0,s.modifyCSS)(this.canvas.get("el"),{display:"inline-block",verticalAlign:"middle"})},e.prototype.bindAutoFit=function(){this.autoFit&&window.addEventListener("resize",this.onResize)},e.prototype.unbindAutoFit=function(){this.autoFit&&window.removeEventListener("resize",this.onResize)},e}(r.__importDefault(n(153)).default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(134)),a=r.__importDefault(n(84));e.default=function(t,e){return void 0===e&&(e=[]),(0,i.default)(t,(function(t){return!(0,a.default)(e,t)}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(18)),a=r.__importDefault(n(135)),o=r.__importDefault(n(7)),s=r.__importDefault(n(57));e.default=function(t,e){if(!(0,o.default)(t))return null;var n;if((0,i.default)(e)&&(n=e),(0,s.default)(e)&&(n=function(t){return(0,a.default)(t,e)}),n)for(var r=0;r<t.length;r+=1)if(n(t[r]))return t[r];return null}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){void 0===n&&(n=0);for(var r=n;r<t.length;r++)if(e(t[r],r))return r;return-1}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(35)),a=r.__importDefault(n(7));e.default=function(t,e){for(var n=null,r=0;r<t.length;r++){var o=t[r][e];if(!(0,i.default)(o)){n=(0,a.default)(o)?o[0]:o;break}}return n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(7));e.default=function(t){if(!(0,r.default)(t))return[];for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(7));e.default=function t(e,n){if(void 0===n&&(n=[]),(0,r.default)(e))for(var i=0;i<e.length;i+=1)t(e[i],n);else n.push(e);return n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(7)),a=r.__importDefault(n(137)),o=r.__importDefault(n(138));e.default=function(t){var e=t.filter((function(t){return!isNaN(t)}));if(!e.length)return{min:0,max:0};if((0,i.default)(t[0])){for(var n=[],r=0;r<t.length;r++)n=n.concat(t[r]);e=n}var s=(0,a.default)(e);return{min:(0,o.default)(e),max:s}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Array.prototype,i=r.splice,a=r.indexOf;e.default=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r++)for(var o=e[r],s=-1;(s=a.call(t,o))>-1;)i.call(t,s,1);return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(17)),a=r.__importDefault(n(139));e.default=function(t,e){var n=[];if(!(0,i.default)(t))return n;for(var r=-1,o=[],s=t.length;++r<s;){var l=t[r];e(l,r,t)&&(n.push(l),o.push(r))}return(0,a.default)(t,o),n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(7)),a=r.__importDefault(n(30)),o=r.__importDefault(n(18));e.default=function(t,e){var n;if((0,o.default)(e))n=function(t,n){return e(t)-e(n)};else{var r=[];(0,a.default)(e)?r.push(e):(0,i.default)(e)&&(r=e),n=function(t,e){for(var n=0;n<r.length;n+=1){var i=r[n];if(t[i]>e[i])return 1;if(t[i]<e[i])return-1}return 0}}return t.sort(n),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(141));e.default=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,r.default)([].concat.apply([],t))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(7)),a=r.__importDefault(n(35));e.default=function(t,e){for(var n=[],r={},o=0;o<t.length;o++){var s=t[o][e];if(!(0,a.default)(s)){(0,i.default)(s)||(s=[s]);for(var l=0;l<s.length;l++){var u=s[l];r[u]||(n.push(u),r[u]=!0)}}}return n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(17));e.default=function(t){if((0,r.default)(t))return t[0]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(17));e.default=function(t){if((0,r.default)(t)){return t[t.length-1]}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(7)),a=r.__importDefault(n(30));e.default=function(t,e){return!(!(0,i.default)(t)&&!(0,a.default)(t))&&t[0]===e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(7)),a=r.__importDefault(n(30));e.default=function(t,e){return!(!(0,i.default)(t)&&!(0,a.default)(t))&&t[t.length-1]===e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e){for(var n=0;n<t.length;n++)if(!e(t[n],n))return!1;return!0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e){for(var n=0;n<t.length;n++)if(e(t[n],n))return!0;return!1}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(142));e.default=function(t,e){if(!e)return[t];var n=(0,r.default)(t,e),i=[];for(var a in n)i.push(n[a]);return i}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return t["_wrap_"+e]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if(t["_wrap_"+e])return t["_wrap_"+e];var n=function(n){t[e](n)};return t["_wrap_"+e]=n,n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={};e.default=function(t){var e=r[t];if(!e){for(var n=t.toString(16),i=n.length;i<6;i++)n="0"+n;e="#"+n,r[t]=e}return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(7));e.default=function(t){var e=0,n=0,i=0,a=0;return(0,r.default)(t)?1===t.length?e=n=i=a=t[0]:2===t.length?(e=i=t[0],n=a=t[1]):3===t.length?(e=t[0],n=a=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],a=t[3]):e=n=i=a=t,{r1:e,r2:n,r3:i,r4:a}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e,n){return t<e?e:t>n?n:t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e){var n=e.toString(),r=n.indexOf(".");if(-1===r)return Math.round(t);var i=n.substr(r+1).length;return i>20&&(i=20),parseFloat(t.toFixed(i))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(31));e.default=function(t){return(0,r.default)(t)&&t%1!=0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(31));e.default=function(t){return(0,r.default)(t)&&t%2==0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(31)),i=Number.isInteger?Number.isInteger:function(t){return(0,r.default)(t)&&t%1==0};e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(31));e.default=function(t){return(0,r.default)(t)&&t<0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e,n){return void 0===n&&(n=1e-5),Math.abs(t-e)<n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(31));e.default=function(t){return(0,r.default)(t)&&t%2!=0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(31));e.default=function(t){return(0,r.default)(t)&&t>0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(7)),a=r.__importDefault(n(18));e.default=function(t,e){if((0,i.default)(t)){for(var n,r=-1/0,o=0;o<t.length;o++){var s=t[o],l=(0,a.default)(e)?e(s):s[e];l>r&&(n=s,r=l)}return n}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(7)),a=r.__importDefault(n(18));e.default=function(t,e){if((0,i.default)(t)){for(var n,r=1/0,o=0;o<t.length;o++){var s=t[o],l=(0,a.default)(e)?e(s):s[e];l<r&&(n=s,r=l)}return n}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e){return(t%e+e)%e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=180/Math.PI;e.default=function(t){return r*t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=parseInt},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Math.PI/180;e.default=function(t){return r*t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(45));e.default=r.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(144));e.default=r.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(84)),a=r.__importDefault(n(86));e.default=function(t,e){return(0,i.default)((0,a.default)(t),e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(46));e.default=function(t){return(0,r.default)(t).toLowerCase()}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(46));e.default=function(t){var e=(0,r.default)(t);return e.charAt(0).toLowerCase()+e.substring(1)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return t&&e?t.replace(/\\?\{([^{}]+)\}/g,(function(t,n){return"\\"===t.charAt(0)?t.slice(1):void 0===e[n]?"":e[n]})):t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(46));e.default=function(t){return(0,r.default)(t).toUpperCase()}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(46));e.default=function(t){var e=(0,r.default)(t);return e.charAt(0).toUpperCase()+e.substring(1)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(24));e.default=function(t){return(0,r.default)(t,"Arguments")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(24));e.default=function(t){return(0,r.default)(t,"Boolean")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(24));e.default=function(t){return(0,r.default)(t,"Date")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(24));e.default=function(t){return(0,r.default)(t,"Error")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(31));e.default=function(t){return(0,r.default)(t)&&isFinite(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){return null===t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(24));e.default=function(t){return(0,r.default)(t,"RegExp")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){return void 0===t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){return t instanceof Element||t instanceof HTMLDocument}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return setTimeout(t,16)})(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout)(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(87)),a=r.__importDefault(n(18));e.default=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=t[0],r=1;r<t.length;r++){var o=t[r];(0,a.default)(o)&&(o=o.prototype),(0,i.default)(n.prototype,o)}}},function(t,e,n){"use strict";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})(t)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(0).__importDefault(n(7));e.default=function t(e){if("object"!==r(e)||null===e)return e;var n;if((0,i.default)(e)){n=[];for(var a=0,o=e.length;a<o;a++)"object"===r(e[a])&&null!=e[a]?n[a]=t(e[a]):n[a]=e[a]}else for(var s in n={},e)"object"===r(e[s])&&null!=e[s]?n[s]=t(e[s]):n[s]=e[s];return n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){var r;return function(){var i=this,a=arguments,o=function(){r=null,n||t.apply(i,a)},s=n&&!r;clearTimeout(r),r=setTimeout(o,e),s&&t.apply(i,a)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(7)),a=r.__importDefault(n(57));function o(t,e,n,r){for(var s in n=n||0,r=r||5,e)if(e.hasOwnProperty(s)){var l=e[s];null!==l&&(0,a.default)(l)?((0,a.default)(t[s])||(t[s]={}),n<r?o(t[s],l,n+1,r):t[s]=e[s]):(0,i.default)(l)?(t[s]=[],t[s]=t[s].concat(l)):void 0!==l&&(t[s]=l)}}e.default=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r+=1)o(t,e[r]);return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(87)),a=r.__importDefault(n(18));e.default=function(t,e,n,r){(0,a.default)(e)||(n=e,e=t,t=function(){});var o=Object.create?function(t,e){return Object.create(t,{constructor:{value:e}})}:function(t,e){function n(){}n.prototype=t;var r=new n;return r.constructor=e,r},s=o(e.prototype,t);return t.prototype=(0,i.default)(s,t.prototype),t.superclass=o(e.prototype,e),(0,i.default)(s,n),(0,i.default)(t,r),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(17));e.default=function(t,e){if(!(0,r.default)(t))return-1;var n=Array.prototype.indexOf;if(n)return n.call(t,e);for(var i=-1,a=0;a<t.length;a++)if(t[a]===e){i=a;break}return i}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(35)),a=r.__importDefault(n(17)),o=r.__importDefault(n(145)),s=r.__importDefault(n(146)),l=Object.prototype.hasOwnProperty;e.default=function(t){if((0,i.default)(t))return!0;if((0,a.default)(t))return!t.length;var e=(0,o.default)(t);if("Map"===e||"Set"===e)return!t.size;if((0,s.default)(t))return!Object.keys(t).length;for(var n in t)if(l.call(t,n))return!1;return!0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(18)),a=r.__importDefault(n(148));e.default=function(t,e,n){return(0,i.default)(n)?!!n(t,e):(0,a.default)(t,e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(17));e.default=function(t,e){if(!(0,r.default)(t))return t;for(var n=[],i=0;i<t.length;i++){var a=t[i];n.push(e(a,i))}return n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(35)),a=r.__importDefault(n(66)),o=function(t){return t};e.default=function(t,e){void 0===e&&(e=o);var n={};return(0,a.default)(t)&&!(0,i.default)(t)&&Object.keys(t).forEach((function(r){n[r]=e(t[r],r)})),n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(30));e.default=function(t,e,n){for(var i=0,a=(0,r.default)(e)?e.split("."):e;t&&i<a.length;)t=t[a[i++]];return void 0===t||i<a.length?n:t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(66)),a=r.__importDefault(n(30)),o=r.__importDefault(n(31));e.default=function(t,e,n){var r=t,s=(0,a.default)(e)?e.split("."):e;return s.forEach((function(t,e){e<s.length-1?((0,i.default)(r[t])||(r[t]=(0,o.default)(s[e+1])?[]:{}),r=r[t]):r[t]=n})),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(45)),a=r.__importDefault(n(57)),o=Object.prototype.hasOwnProperty;e.default=function(t,e){if(null===t||!(0,a.default)(t))return{};var n={};return(0,i.default)(e,(function(e){o.call(t,e)&&(n[e]=t[e])})),n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(140));e.default=function(t,e){return(0,r.default)(t,(function(t,n,r){return e.includes(r)||(t[r]=n),t}),{})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){var r,i,a,o,s=0;n||(n={});var l=function(){s=!1===n.leading?0:Date.now(),r=null,o=t.apply(i,a),r||(i=a=null)},u=function(){var u=Date.now();s||!1!==n.leading||(s=u);var c=e-(u-s);return i=this,a=arguments,c<=0||c>e?(r&&(clearTimeout(r),r=null),s=u,o=t.apply(i,a),r||(i=a=null)):r||!1===n.trailing||(r=setTimeout(l,c)),o};return u.cancel=function(){clearTimeout(r),s=0,r=i=a=null},u}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(17));e.default=function(t){return(0,r.default)(t)?Array.prototype.slice.call(t):[]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={};e.default=function(t){return r[t=t||"g"]?r[t]+=1:r[t]=1,t+r[t]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(35)),a=r.__importDefault(n(17));e.default=function(t){return(0,i.default)(t)?0:(0,a.default)(t)?t.length:Object.keys(t).length}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(30)),a=r.__importDefault(n(46)),o=r.__importDefault(n(149));e.default=function(t,e,n,r){void 0===r&&(r="...");var s,l,u=(0,o.default)(r,n),c=(0,i.default)(t)?t:(0,a.default)(t),f=e,h=[];if((0,o.default)(t,n)<=e)return t;for(;s=c.substr(0,16),!((l=(0,o.default)(s,n))+u>f&&l>f);)if(h.push(s),f-=l,!(c=c.substr(16)))return h.join("");for(;s=c.substr(0,1),!((l=(0,o.default)(s,n))+u>f);)if(h.push(s),f-=l,!(c=c.substr(1)))return h.join("");return""+h.join("")+r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){this.map={}}return t.prototype.has=function(t){return void 0!==this.map[t]},t.prototype.get=function(t,e){var n=this.map[t];return void 0===n?e:n},t.prototype.set=function(t,e){this.map[t]=e},t.prototype.clear=function(){this.map={}},t.prototype.delete=function(t){delete this.map[t]},t.prototype.size=function(){return Object.keys(this.map).length},t}();e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.modifyCSS=e.createDom=e.removeDom=e.getChartSize=void 0;var r=n(2);function i(t){return"number"==typeof t&&!isNaN(t)}e.getChartSize=function(t,e,n,a){var o=n,s=a;if(e){var l=function(t){var e=getComputedStyle(t);return{width:(t.clientWidth||parseInt(e.width,10))-parseInt(e.paddingLeft,10)-parseInt(e.paddingRight,10),height:(t.clientHeight||parseInt(e.height,10))-parseInt(e.paddingTop,10)-parseInt(e.paddingBottom,10)}}(t);o=l.width?l.width:o,s=l.height?l.height:s}return{width:Math.max(i(o)?o:r.MIN_CHART_WIDTH,r.MIN_CHART_WIDTH),height:Math.max(i(s)?s:r.MIN_CHART_HEIGHT,r.MIN_CHART_HEIGHT)}},e.removeDom=function(t){var e=t.parentNode;e&&e.removeChild(t)};var a=n(47);Object.defineProperty(e,"createDom",{enumerable:!0,get:function(){return a.createDom}}),Object.defineProperty(e,"modifyCSS",{enumerable:!0,get:function(){return a.modifyCSS}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){if(t){if("function"==typeof t.addEventListener)return t.addEventListener(e,n,!1),{remove:function(){t.removeEventListener(e,n,!1)}};if("function"==typeof t.attachEvent)return t.attachEvent("on"+e,n),{remove:function(){t.detachEvent("on"+e,n)}}}}},function(t,e,n){"use strict";var r,i,a,o;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){r||(r=document.createElement("table"),i=document.createElement("tr"),a=/^\s*<(\w+|!)[^>]*>/,o={tr:document.createElement("tbody"),tbody:r,thead:r,tfoot:r,td:i,th:i,"*":document.createElement("div")});var e=a.test(t)&&RegExp.$1;e&&e in o||(e="*");var n=o[e];t="string"==typeof t?t.replace(/(^\s*)|(\s*$)/g,""):t,n.innerHTML=""+t;var s=n.childNodes[0];return s&&n.contains(s)&&n.removeChild(s),s}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(58)),a=r.__importDefault(n(151));e.default=function(t,e){var n=(0,a.default)(t,e),r=parseFloat((0,i.default)(t,"borderTopWidth"))||0,o=parseFloat((0,i.default)(t,"paddingTop"))||0,s=parseFloat((0,i.default)(t,"paddingBottom"))||0;return n+r+(parseFloat((0,i.default)(t,"borderBottomWidth"))||0)+o+s+(parseFloat((0,i.default)(t,"marginTop"))||0)+(parseFloat((0,i.default)(t,"marginBottom"))||0)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(58)),a=r.__importDefault(n(152));e.default=function(t,e){var n=(0,a.default)(t,e),r=parseFloat((0,i.default)(t,"borderLeftWidth"))||0,o=parseFloat((0,i.default)(t,"paddingLeft"))||0,s=parseFloat((0,i.default)(t,"paddingRight"))||0,l=parseFloat((0,i.default)(t,"borderRightWidth"))||0,u=parseFloat((0,i.default)(t,"marginRight"))||0;return n+r+l+o+s+(parseFloat((0,i.default)(t,"marginLeft"))||0)+u}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return window.devicePixelRatio?window.devicePixelRatio:2}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if(t)for(var n in e)e.hasOwnProperty(n)&&(t.style[n]=e[n]);return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(158),o=r.__importDefault(n(159)),s=n(39),l=r.__importDefault(n(328)),u=r.__importDefault(n(360)),c=(0,a.detect)(),f=c&&"firefox"===c.name,h=function(t){function e(e){var n=t.call(this,e)||this;return n.initContainer(),n.initDom(),n.initEvents(),n.initTimeline(),n}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.cursor="default",e.supportCSSTransform=!1,e},e.prototype.initContainer=function(){var t=this.get("container");(0,s.isString)(t)&&(t=document.getElementById(t),this.set("container",t))},e.prototype.initDom=function(){var t=this.createDom();this.set("el",t),this.get("container").appendChild(t),this.setDOMSize(this.get("width"),this.get("height"))},e.prototype.initEvents=function(){var t=new u.default({canvas:this});t.init(),this.set("eventController",t)},e.prototype.initTimeline=function(){var t=new l.default(this);this.set("timeline",t)},e.prototype.setDOMSize=function(t,e){var n=this.get("el");s.isBrowser&&(n.style.width=t+"px",n.style.height=e+"px")},e.prototype.changeSize=function(t,e){this.setDOMSize(t,e),this.set("width",t),this.set("height",e),this.onCanvasChange("changeSize")},e.prototype.getRenderer=function(){return this.get("renderer")},e.prototype.getCursor=function(){return this.get("cursor")},e.prototype.setCursor=function(t){this.set("cursor",t);var e=this.get("el");s.isBrowser&&e&&(e.style.cursor=t)},e.prototype.getPointByEvent=function(t){if(this.get("supportCSSTransform")){if(f&&!(0,s.isNil)(t.layerX)&&t.layerX!==t.offsetX)return{x:t.layerX,y:t.layerY};if(!(0,s.isNil)(t.offsetX))return{x:t.offsetX,y:t.offsetY}}var e=this.getClientByEvent(t),n=e.x,r=e.y;return this.getPointByClient(n,r)},e.prototype.getClientByEvent=function(t){var e=t;return t.touches&&(e="touchend"===t.type?t.changedTouches[0]:t.touches[0]),{x:e.clientX,y:e.clientY}},e.prototype.getPointByClient=function(t,e){var n=this.get("el").getBoundingClientRect();return{x:t-n.left,y:e-n.top}},e.prototype.getClientByPoint=function(t,e){var n=this.get("el").getBoundingClientRect();return{x:t+n.left,y:e+n.top}},e.prototype.draw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.parentNode.removeChild(t)},e.prototype.clearEvents=function(){this.get("eventController").destroy()},e.prototype.isCanvas=function(){return!0},e.prototype.getParent=function(){return null},e.prototype.destroy=function(){var e=this.get("timeline");this.get("destroyed")||(this.clear(),e&&e.stop(),this.clearEvents(),this.removeDom(),t.prototype.destroy.call(this))},e}(o.default);e.default=h},function(t,e){var n,r,i=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(t){n=a}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(t){r=o}}();var l,u=[],c=!1,f=-1;function h(){c&&l&&(c=!1,l.length?u=l.concat(u):f=-1,u.length&&p())}function p(){if(!c){var t=s(h);c=!0;for(var e=u.length;e;){for(l=u,u=[];++f<e;)l&&l[f].run();f=-1,e=u.length}l=null,c=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function g(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];u.push(new d(t,e)),1!==u.length||c||s(p)},d.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sub=e.mul=e.multiplyScalarAndAdd=e.multiplyScalar=e.equals=e.exactEquals=e.subtract=e.add=e.LDU=e.frob=e.str=e.fromScaling=e.fromRotation=e.scale=e.rotate=e.multiply=e.determinant=e.adjoint=e.invert=e.transpose=e.set=e.fromValues=e.identity=e.copy=e.clone=e.create=void 0;var r=n(0).__importStar(n(28));function i(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=n[0],l=n[1],u=n[2],c=n[3];return t[0]=r*s+a*l,t[1]=i*s+o*l,t[2]=r*u+a*c,t[3]=i*u+o*c,t}function a(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t}e.create=function(){var t=new r.ARRAY_TYPE(4);return r.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0),t[0]=1,t[3]=1,t},e.clone=function(t){var e=new r.ARRAY_TYPE(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t},e.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t},e.fromValues=function(t,e,n,i){var a=new r.ARRAY_TYPE(4);return a[0]=t,a[1]=e,a[2]=n,a[3]=i,a},e.set=function(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t},e.transpose=function(t,e){if(t===e){var n=e[1];t[1]=e[2],t[2]=n}else t[0]=e[0],t[1]=e[2],t[2]=e[1],t[3]=e[3];return t},e.invert=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n*a-i*r;return o?(o=1/o,t[0]=a*o,t[1]=-r*o,t[2]=-i*o,t[3]=n*o,t):null},e.adjoint=function(t,e){var n=e[0];return t[0]=e[3],t[1]=-e[1],t[2]=-e[2],t[3]=n,t},e.determinant=function(t){return t[0]*t[3]-t[2]*t[1]},e.multiply=i,e.rotate=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(n),l=Math.cos(n);return t[0]=r*l+a*s,t[1]=i*l+o*s,t[2]=r*-s+a*l,t[3]=i*-s+o*l,t},e.scale=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=n[0],l=n[1];return t[0]=r*s,t[1]=i*s,t[2]=a*l,t[3]=o*l,t},e.fromRotation=function(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=-n,t[3]=r,t},e.fromScaling=function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=e[1],t},e.str=function(t){return"mat2("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},e.frob=function(t){return Math.hypot(t[0],t[1],t[2],t[3])},e.LDU=function(t,e,n,r){return t[2]=r[2]/r[0],n[0]=r[0],n[1]=r[1],n[3]=r[3]-t[2]*n[1],[t,e,n]},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t},e.subtract=a,e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]},e.equals=function(t,e){var n=t[0],i=t[1],a=t[2],o=t[3],s=e[0],l=e[1],u=e[2],c=e[3];return Math.abs(n-s)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(i-l)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(l))&&Math.abs(a-u)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(u))&&Math.abs(o-c)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(c))},e.multiplyScalar=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t},e.multiplyScalarAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t},e.mul=i,e.sub=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sub=e.mul=e.equals=e.exactEquals=e.multiplyScalarAndAdd=e.multiplyScalar=e.subtract=e.add=e.frob=e.str=e.fromTranslation=e.fromScaling=e.fromRotation=e.translate=e.scale=e.rotate=e.multiply=e.determinant=e.invert=e.set=e.fromValues=e.identity=e.copy=e.clone=e.create=void 0;var r=n(0).__importStar(n(28));function i(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=n[0],c=n[1],f=n[2],h=n[3],p=n[4],d=n[5];return t[0]=r*u+a*c,t[1]=i*u+o*c,t[2]=r*f+a*h,t[3]=i*f+o*h,t[4]=r*p+a*d+s,t[5]=i*p+o*d+l,t}function a(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t}e.create=function(){var t=new r.ARRAY_TYPE(6);return r.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[4]=0,t[5]=0),t[0]=1,t[3]=1,t},e.clone=function(t){var e=new r.ARRAY_TYPE(6);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e},e.copy=function(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},e.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t},e.fromValues=function(t,e,n,i,a,o){var s=new r.ARRAY_TYPE(6);return s[0]=t,s[1]=e,s[2]=n,s[3]=i,s[4]=a,s[5]=o,s},e.set=function(t,e,n,r,i,a,o){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t},e.invert=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=n*a-r*i;return l?(l=1/l,t[0]=a*l,t[1]=-r*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-a*o)*l,t[5]=(r*o-n*s)*l,t):null},e.determinant=function(t){return t[0]*t[3]-t[1]*t[2]},e.multiply=i,e.rotate=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=Math.sin(n),c=Math.cos(n);return t[0]=r*c+a*u,t[1]=i*c+o*u,t[2]=r*-u+a*c,t[3]=i*-u+o*c,t[4]=s,t[5]=l,t},e.scale=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=n[0],c=n[1];return t[0]=r*u,t[1]=i*u,t[2]=a*c,t[3]=o*c,t[4]=s,t[5]=l,t},e.translate=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=n[0],c=n[1];return t[0]=r,t[1]=i,t[2]=a,t[3]=o,t[4]=r*u+a*c+s,t[5]=i*u+o*c+l,t},e.fromRotation=function(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=-n,t[3]=r,t[4]=0,t[5]=0,t},e.fromScaling=function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=e[1],t[4]=0,t[5]=0,t},e.fromTranslation=function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=e[0],t[5]=e[1],t},e.str=function(t){return"mat2d("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+")"},e.frob=function(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],1)},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t},e.subtract=a,e.multiplyScalar=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t},e.multiplyScalarAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t},e.exactEquals=function(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]},e.equals=function(t,e){var n=t[0],i=t[1],a=t[2],o=t[3],s=t[4],l=t[5],u=e[0],c=e[1],f=e[2],h=e[3],p=e[4],d=e[5];return Math.abs(n-u)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(u))&&Math.abs(i-c)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(c))&&Math.abs(a-f)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(f))&&Math.abs(o-h)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(h))&&Math.abs(s-p)<=r.EPSILON*Math.max(1,Math.abs(s),Math.abs(p))&&Math.abs(l-d)<=r.EPSILON*Math.max(1,Math.abs(l),Math.abs(d))},e.mul=i,e.sub=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.equals=e.exactEquals=e.str=e.normalize=e.sqrLen=e.squaredLength=e.len=e.length=e.conjugate=e.invert=e.lerp=e.dot=e.scale=e.mul=e.multiply=e.add=e.rotateAroundAxis=e.rotateByQuatPrepend=e.rotateByQuatAppend=e.rotateZ=e.rotateY=e.rotateX=e.translate=e.getTranslation=e.setDual=e.setReal=e.getDual=e.getReal=e.set=e.identity=e.copy=e.fromMat4=e.fromRotation=e.fromTranslation=e.fromRotationTranslation=e.fromRotationTranslationValues=e.fromValues=e.clone=e.create=void 0;var r=n(0),i=r.__importStar(n(28)),a=r.__importStar(n(163)),o=r.__importStar(n(162));function s(t,e,n){var r=.5*n[0],i=.5*n[1],a=.5*n[2],o=e[0],s=e[1],l=e[2],u=e[3];return t[0]=o,t[1]=s,t[2]=l,t[3]=u,t[4]=r*u+i*l-a*s,t[5]=i*u+a*o-r*l,t[6]=a*u+r*s-i*o,t[7]=-r*o-i*s-a*l,t}function l(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[6]=e[6],t[7]=e[7],t}function u(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=n[4],l=n[5],u=n[6],c=n[7],f=e[4],h=e[5],p=e[6],d=e[7],g=n[0],y=n[1],v=n[2],m=n[3];return t[0]=r*m+o*g+i*v-a*y,t[1]=i*m+o*y+a*g-r*v,t[2]=a*m+o*v+r*y-i*g,t[3]=o*m-r*g-i*y-a*v,t[4]=r*c+o*s+i*u-a*l+f*m+d*g+h*v-p*y,t[5]=i*c+o*l+a*s-r*u+h*m+d*y+p*g-f*v,t[6]=a*c+o*u+r*l-i*s+p*m+d*v+f*y-h*g,t[7]=o*c-r*s-i*l-a*u+d*m-f*g-h*y-p*v,t}e.create=function(){var t=new i.ARRAY_TYPE(8);return i.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[4]=0,t[5]=0,t[6]=0,t[7]=0),t[3]=1,t},e.clone=function(t){var e=new i.ARRAY_TYPE(8);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e},e.fromValues=function(t,e,n,r,a,o,s,l){var u=new i.ARRAY_TYPE(8);return u[0]=t,u[1]=e,u[2]=n,u[3]=r,u[4]=a,u[5]=o,u[6]=s,u[7]=l,u},e.fromRotationTranslationValues=function(t,e,n,r,a,o,s){var l=new i.ARRAY_TYPE(8);l[0]=t,l[1]=e,l[2]=n,l[3]=r;var u=.5*a,c=.5*o,f=.5*s;return l[4]=u*r+c*n-f*e,l[5]=c*r+f*t-u*n,l[6]=f*r+u*e-c*t,l[7]=-u*t-c*e-f*n,l},e.fromRotationTranslation=s,e.fromTranslation=function(t,e){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t[4]=.5*e[0],t[5]=.5*e[1],t[6]=.5*e[2],t[7]=0,t},e.fromRotation=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=0,t[5]=0,t[6]=0,t[7]=0,t},e.fromMat4=function(t,e){var n=a.create();o.getRotation(n,e);var r=new i.ARRAY_TYPE(3);return o.getTranslation(r,e),s(t,n,r),t},e.copy=l,e.identity=function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t[6]=0,t[7]=0,t},e.set=function(t,e,n,r,i,a,o,s,l){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=l,t},e.getReal=a.copy,e.getDual=function(t,e){return t[0]=e[4],t[1]=e[5],t[2]=e[6],t[3]=e[7],t},e.setReal=a.copy,e.setDual=function(t,e){return t[4]=e[0],t[5]=e[1],t[6]=e[2],t[7]=e[3],t},e.getTranslation=function(t,e){var n=e[4],r=e[5],i=e[6],a=e[7],o=-e[0],s=-e[1],l=-e[2],u=e[3];return t[0]=2*(n*u+a*o+r*l-i*s),t[1]=2*(r*u+a*s+i*o-n*l),t[2]=2*(i*u+a*l+n*s-r*o),t},e.translate=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=.5*n[0],l=.5*n[1],u=.5*n[2],c=e[4],f=e[5],h=e[6],p=e[7];return t[0]=r,t[1]=i,t[2]=a,t[3]=o,t[4]=o*s+i*u-a*l+c,t[5]=o*l+a*s-r*u+f,t[6]=o*u+r*l-i*s+h,t[7]=-r*s-i*l-a*u+p,t},e.rotateX=function(t,e,n){var r=-e[0],i=-e[1],o=-e[2],s=e[3],l=e[4],u=e[5],c=e[6],f=e[7],h=l*s+f*r+u*o-c*i,p=u*s+f*i+c*r-l*o,d=c*s+f*o+l*i-u*r,g=f*s-l*r-u*i-c*o;return a.rotateX(t,e,n),r=t[0],i=t[1],o=t[2],s=t[3],t[4]=h*s+g*r+p*o-d*i,t[5]=p*s+g*i+d*r-h*o,t[6]=d*s+g*o+h*i-p*r,t[7]=g*s-h*r-p*i-d*o,t},e.rotateY=function(t,e,n){var r=-e[0],i=-e[1],o=-e[2],s=e[3],l=e[4],u=e[5],c=e[6],f=e[7],h=l*s+f*r+u*o-c*i,p=u*s+f*i+c*r-l*o,d=c*s+f*o+l*i-u*r,g=f*s-l*r-u*i-c*o;return a.rotateY(t,e,n),r=t[0],i=t[1],o=t[2],s=t[3],t[4]=h*s+g*r+p*o-d*i,t[5]=p*s+g*i+d*r-h*o,t[6]=d*s+g*o+h*i-p*r,t[7]=g*s-h*r-p*i-d*o,t},e.rotateZ=function(t,e,n){var r=-e[0],i=-e[1],o=-e[2],s=e[3],l=e[4],u=e[5],c=e[6],f=e[7],h=l*s+f*r+u*o-c*i,p=u*s+f*i+c*r-l*o,d=c*s+f*o+l*i-u*r,g=f*s-l*r-u*i-c*o;return a.rotateZ(t,e,n),r=t[0],i=t[1],o=t[2],s=t[3],t[4]=h*s+g*r+p*o-d*i,t[5]=p*s+g*i+d*r-h*o,t[6]=d*s+g*o+h*i-p*r,t[7]=g*s-h*r-p*i-d*o,t},e.rotateByQuatAppend=function(t,e,n){var r=n[0],i=n[1],a=n[2],o=n[3],s=e[0],l=e[1],u=e[2],c=e[3];return t[0]=s*o+c*r+l*a-u*i,t[1]=l*o+c*i+u*r-s*a,t[2]=u*o+c*a+s*i-l*r,t[3]=c*o-s*r-l*i-u*a,s=e[4],l=e[5],u=e[6],c=e[7],t[4]=s*o+c*r+l*a-u*i,t[5]=l*o+c*i+u*r-s*a,t[6]=u*o+c*a+s*i-l*r,t[7]=c*o-s*r-l*i-u*a,t},e.rotateByQuatPrepend=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=n[0],l=n[1],u=n[2],c=n[3];return t[0]=r*c+o*s+i*u-a*l,t[1]=i*c+o*l+a*s-r*u,t[2]=a*c+o*u+r*l-i*s,t[3]=o*c-r*s-i*l-a*u,s=n[4],l=n[5],u=n[6],c=n[7],t[4]=r*c+o*s+i*u-a*l,t[5]=i*c+o*l+a*s-r*u,t[6]=a*c+o*u+r*l-i*s,t[7]=o*c-r*s-i*l-a*u,t},e.rotateAroundAxis=function(t,e,n,r){if(Math.abs(r)<i.EPSILON)return l(t,e);var a=Math.hypot(n[0],n[1],n[2]);r*=.5;var o=Math.sin(r),s=o*n[0]/a,u=o*n[1]/a,c=o*n[2]/a,f=Math.cos(r),h=e[0],p=e[1],d=e[2],g=e[3];t[0]=h*f+g*s+p*c-d*u,t[1]=p*f+g*u+d*s-h*c,t[2]=d*f+g*c+h*u-p*s,t[3]=g*f-h*s-p*u-d*c;var y=e[4],v=e[5],m=e[6],_=e[7];return t[4]=y*f+_*s+v*c-m*u,t[5]=v*f+_*u+m*s-y*c,t[6]=m*f+_*c+y*u-v*s,t[7]=_*f-y*s-v*u-m*c,t},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t},e.multiply=u,e.mul=u,e.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t},e.dot=a.dot,e.lerp=function(t,n,r,i){var a=1-i;return(0,e.dot)(n,r)<0&&(i=-i),t[0]=n[0]*a+r[0]*i,t[1]=n[1]*a+r[1]*i,t[2]=n[2]*a+r[2]*i,t[3]=n[3]*a+r[3]*i,t[4]=n[4]*a+r[4]*i,t[5]=n[5]*a+r[5]*i,t[6]=n[6]*a+r[6]*i,t[7]=n[7]*a+r[7]*i,t},e.invert=function(t,n){var r=(0,e.squaredLength)(n);return t[0]=-n[0]/r,t[1]=-n[1]/r,t[2]=-n[2]/r,t[3]=n[3]/r,t[4]=-n[4]/r,t[5]=-n[5]/r,t[6]=-n[6]/r,t[7]=n[7]/r,t},e.conjugate=function(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[6]=-e[6],t[7]=e[7],t},e.length=a.length,e.len=e.length,e.squaredLength=a.squaredLength,e.sqrLen=e.squaredLength,e.normalize=function(t,n){var r=(0,e.squaredLength)(n);if(r>0){r=Math.sqrt(r);var i=n[0]/r,a=n[1]/r,o=n[2]/r,s=n[3]/r,l=n[4],u=n[5],c=n[6],f=n[7],h=i*l+a*u+o*c+s*f;t[0]=i,t[1]=a,t[2]=o,t[3]=s,t[4]=(l-i*h)/r,t[5]=(u-a*h)/r,t[6]=(c-o*h)/r,t[7]=(f-s*h)/r}return t},e.str=function(t){return"quat2("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+")"},e.exactEquals=function(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[6]===e[6]&&t[7]===e[7]},e.equals=function(t,e){var n=t[0],r=t[1],a=t[2],o=t[3],s=t[4],l=t[5],u=t[6],c=t[7],f=e[0],h=e[1],p=e[2],d=e[3],g=e[4],y=e[5],v=e[6],m=e[7];return Math.abs(n-f)<=i.EPSILON*Math.max(1,Math.abs(n),Math.abs(f))&&Math.abs(r-h)<=i.EPSILON*Math.max(1,Math.abs(r),Math.abs(h))&&Math.abs(a-p)<=i.EPSILON*Math.max(1,Math.abs(a),Math.abs(p))&&Math.abs(o-d)<=i.EPSILON*Math.max(1,Math.abs(o),Math.abs(d))&&Math.abs(s-g)<=i.EPSILON*Math.max(1,Math.abs(s),Math.abs(g))&&Math.abs(l-y)<=i.EPSILON*Math.max(1,Math.abs(l),Math.abs(y))&&Math.abs(u-v)<=i.EPSILON*Math.max(1,Math.abs(u),Math.abs(v))&&Math.abs(c-m)<=i.EPSILON*Math.max(1,Math.abs(c),Math.abs(m))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.vertical=e.angleTo=e.direction=e.transform=e.leftScale=e.leftRotate=e.leftTranslate=void 0;var r=n(67);function i(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r.mat3.fromTranslation(i,n),r.mat3.multiply(t,i,e)}function a(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r.mat3.fromRotation(i,n),r.mat3.multiply(t,i,e)}function o(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r.mat3.fromScaling(i,n),r.mat3.multiply(t,i,e)}function s(t,e){return t[0]*e[1]-e[0]*t[1]}e.leftTranslate=i,e.leftRotate=a,e.leftScale=o,e.transform=function(t,e){for(var n,s,l,u=t?[].concat(t):[1,0,0,0,1,0,0,0,1],c=0,f=e.length;c<f;c++){var h=e[c];switch(h[0]){case"t":i(u,u,[h[1],h[2]]);break;case"s":o(u,u,[h[1],h[2]]);break;case"r":a(u,u,h[1]);break;case"m":n=u,s=u,l=h[1],r.mat3.multiply(n,l,s)}}return u},e.direction=s,e.angleTo=function(t,e,n){var i=r.vec2.angle(t,e),a=s(t,e)>=0;return n?a?2*Math.PI-i:i:a?i:2*Math.PI-i},e.vertical=function(t,e,n){return n?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=r.__importStar(n(329)),o=n(332),s=n(174),l=r.__importStar(n(155)),u=n(359),c=[1,0,0,0,1,0,0,0,1];function f(t,e,n){var r,a=e.startTime;if(n<a+e.delay||e._paused)return!1;var f=e.duration,h=e.easing,p=(0,s.getEasing)(h);if(n=n-a-e.delay,e.repeat)r=p(r=n%f/f);else{if(!((r=n/f)<1))return e.onFrame?t.attr(e.onFrame(1)):t.attr(e.toAttrs),!0;r=p(r)}if(e.onFrame){var d=e.onFrame(r);t.attr(d)}else!function(t,e,n){var r={},a=e.fromAttrs,s=e.toAttrs;if(!t.destroyed){var f;for(var h in s)if(!(0,i.isEqual)(a[h],s[h]))if("path"===h){var p=s[h],d=a[h];p.length>d.length?(p=l.parsePathString(s[h]),d=l.parsePathString(a[h]),d=l.fillPathByDiff(d,p),d=l.formatPath(d,p),e.fromAttrs.path=d,e.toAttrs.path=p):e.pathFormatted||(p=l.parsePathString(s[h]),d=l.parsePathString(a[h]),d=l.formatPath(d,p),e.fromAttrs.path=d,e.toAttrs.path=p,e.pathFormatted=!0),r[h]=[];for(var g=0;g<p.length;g++){for(var y=p[g],v=d[g],m=[],_=0;_<y.length;_++)(0,i.isNumber)(y[_])&&v&&(0,i.isNumber)(v[_])?(f=(0,o.interpolate)(v[_],y[_]),m.push(f(n))):m.push(y[_]);r[h].push(m)}}else if("matrix"===h){var x=(0,o.interpolateArray)(a[h]||c,s[h]||c)(n);r[h]=x}else(0,u.isColorProp)(h)&&(0,u.isGradientColor)(s[h])?r[h]=s[h]:(0,i.isFunction)(s[h])||(f=(0,o.interpolate)(a[h],s[h]),r[h]=f(n));t.attr(r)}}(t,e,r);return!1}var h=function(){function t(t){this.animators=[],this.current=0,this.timer=null,this.canvas=t}return t.prototype.initTimer=function(){var t,e,n,r=this;this.timer=a.timer((function(i){if(r.current=i,r.animators.length>0){for(var a=r.animators.length-1;a>=0;a--)if((t=r.animators[a]).destroyed)r.removeAnimator(a);else{if(!t.isAnimatePaused())for(var o=(e=t.get("animations")).length-1;o>=0;o--)n=e[o],f(t,n,i)&&(e.splice(o,1),!1,n.callback&&n.callback());0===e.length&&r.removeAnimator(a)}r.canvas.get("autoDraw")||r.canvas.draw()}}))},t.prototype.addAnimator=function(t){this.animators.push(t)},t.prototype.removeAnimator=function(t){this.animators.splice(t,1)},t.prototype.isAnimating=function(){return!!this.animators.length},t.prototype.stop=function(){this.timer&&this.timer.stop()},t.prototype.stopAllAnimations=function(t){void 0===t&&(t=!0),this.animators.forEach((function(e){e.stopAnimate(t)})),this.animators=[],this.canvas.draw()},t.prototype.getTime=function(){return this.current},t}();e.default=h},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.interval=e.timeout=e.timerFlush=e.timer=e.now=void 0;var i=n(93);Object.defineProperty(e,"now",{enumerable:!0,get:function(){return i.now}}),Object.defineProperty(e,"timer",{enumerable:!0,get:function(){return i.timer}}),Object.defineProperty(e,"timerFlush",{enumerable:!0,get:function(){return i.timerFlush}});var a=n(330);Object.defineProperty(e,"timeout",{enumerable:!0,get:function(){return r(a).default}});var o=n(331);Object.defineProperty(e,"interval",{enumerable:!0,get:function(){return r(o).default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(93);e.default=function(t,e,n){var i=new r.Timer;return e=null==e?0:+e,i.restart((function(n){i.stop(),t(n+e)}),e,n),i}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(93);e.default=function(t,e,n){var i=new r.Timer,a=e;return null==e?(i.restart(t,e,n),i):(e=+e,n=null==n?(0,r.now)():+n,i.restart((function r(o){o+=a,i.restart(r,a+=e,n),t(o)}),e,n),i)}},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.quantize=e.piecewise=e.interpolateCubehelixLong=e.interpolateCubehelix=e.interpolateHclLong=e.interpolateHcl=e.interpolateLab=e.interpolateHslLong=e.interpolateHsl=e.interpolateRgbBasisClosed=e.interpolateRgbBasis=e.interpolateRgb=e.interpolateZoom=e.interpolateTransformSvg=e.interpolateTransformCss=e.interpolateString=e.interpolateRound=e.interpolateObject=e.interpolateNumberArray=e.interpolateNumber=e.interpolateHue=e.interpolateDiscrete=e.interpolateDate=e.interpolateBasisClosed=e.interpolateBasis=e.interpolateArray=e.interpolate=void 0;var i=n(94);Object.defineProperty(e,"interpolate",{enumerable:!0,get:function(){return r(i).default}});var a=n(170);Object.defineProperty(e,"interpolateArray",{enumerable:!0,get:function(){return r(a).default}});var o=n(97);Object.defineProperty(e,"interpolateBasis",{enumerable:!0,get:function(){return r(o).default}});var s=n(168);Object.defineProperty(e,"interpolateBasisClosed",{enumerable:!0,get:function(){return r(s).default}});var l=n(171);Object.defineProperty(e,"interpolateDate",{enumerable:!0,get:function(){return r(l).default}});var u=n(335);Object.defineProperty(e,"interpolateDiscrete",{enumerable:!0,get:function(){return r(u).default}});var c=n(336);Object.defineProperty(e,"interpolateHue",{enumerable:!0,get:function(){return r(c).default}});var f=n(68);Object.defineProperty(e,"interpolateNumber",{enumerable:!0,get:function(){return r(f).default}});var h=n(98);Object.defineProperty(e,"interpolateNumberArray",{enumerable:!0,get:function(){return r(h).default}});var p=n(172);Object.defineProperty(e,"interpolateObject",{enumerable:!0,get:function(){return r(p).default}});var d=n(337);Object.defineProperty(e,"interpolateRound",{enumerable:!0,get:function(){return r(d).default}});var g=n(173);Object.defineProperty(e,"interpolateString",{enumerable:!0,get:function(){return r(g).default}});var y=n(338);Object.defineProperty(e,"interpolateTransformCss",{enumerable:!0,get:function(){return y.interpolateTransformCss}}),Object.defineProperty(e,"interpolateTransformSvg",{enumerable:!0,get:function(){return y.interpolateTransformSvg}});var v=n(341);Object.defineProperty(e,"interpolateZoom",{enumerable:!0,get:function(){return r(v).default}});var m=n(167);Object.defineProperty(e,"interpolateRgb",{enumerable:!0,get:function(){return r(m).default}}),Object.defineProperty(e,"interpolateRgbBasis",{enumerable:!0,get:function(){return m.rgbBasis}}),Object.defineProperty(e,"interpolateRgbBasisClosed",{enumerable:!0,get:function(){return m.rgbBasisClosed}});var _=n(342);Object.defineProperty(e,"interpolateHsl",{enumerable:!0,get:function(){return r(_).default}}),Object.defineProperty(e,"interpolateHslLong",{enumerable:!0,get:function(){return _.hslLong}});var x=n(343);Object.defineProperty(e,"interpolateLab",{enumerable:!0,get:function(){return r(x).default}});var b=n(344);Object.defineProperty(e,"interpolateHcl",{enumerable:!0,get:function(){return r(b).default}}),Object.defineProperty(e,"interpolateHclLong",{enumerable:!0,get:function(){return b.hclLong}});var M=n(345);Object.defineProperty(e,"interpolateCubehelix",{enumerable:!0,get:function(){return r(M).default}}),Object.defineProperty(e,"interpolateCubehelixLong",{enumerable:!0,get:function(){return M.cubehelixLong}});var C=n(346);Object.defineProperty(e,"piecewise",{enumerable:!0,get:function(){return r(C).default}});var P=n(347);Object.defineProperty(e,"quantize",{enumerable:!0,get:function(){return r(P).default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Hcl=e.hcl=e.lch=e.Lab=e.gray=void 0;var r=n(0).__importStar(n(96)),i=n(95),a=n(166),o=6/29,s=3*o*o;function l(t){if(t instanceof c)return new c(t.l,t.a,t.b,t.opacity);if(t instanceof v)return m(t);t instanceof i.Rgb||(t=(0,i.rgbConvert)(t));var e,n,r=d(t.r),a=d(t.g),o=d(t.b),s=f((.2225045*r+.7168786*a+.0606169*o)/1);return r===a&&a===o?e=n=s:(e=f((.4360747*r+.3850649*a+.1430804*o)/.96422),n=f((.0139322*r+.0971045*a+.7141733*o)/.82521)),new c(116*s-16,500*(e-s),200*(s-n),t.opacity)}function u(t,e,n,r){return 1===arguments.length?l(t):new c(t,e,n,null==r?1:r)}function c(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function f(t){return t>.008856451679035631?Math.pow(t,1/3):t/s+4/29}function h(t){return t>o?t*t*t:s*(t-4/29)}function p(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function d(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function g(t){if(t instanceof v)return new v(t.h,t.c,t.l,t.opacity);if(t instanceof c||(t=l(t)),0===t.a&&0===t.b)return new v(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*a.rad2deg;return new v(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function y(t,e,n,r){return 1===arguments.length?g(t):new v(t,e,n,null==r?1:r)}function v(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function m(t){if(isNaN(t.h))return new c(t.l,0,0,t.opacity);var e=t.h*a.deg2rad;return new c(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}e.gray=function(t,e){return new c(t,0,0,null==e?1:e)},e.default=u,e.Lab=c,(0,r.default)(c,u,(0,r.extend)(i.Color,{brighter:function(t){return new c(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new c(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=.96422*h(e),t=1*h(t),n=.82521*h(n),new i.Rgb(p(3.1338561*e-1.6168667*t-.4906146*n),p(-.9787684*e+1.9161415*t+.033454*n),p(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}})),e.lch=function(t,e,n,r){return 1===arguments.length?g(t):new v(n,e,t,null==r?1:r)},e.hcl=y,e.Hcl=v,(0,r.default)(v,y,(0,r.extend)(i.Color,{brighter:function(t){return new v(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new v(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return m(this).rgb()}}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Cubehelix=void 0;var r=n(0).__importStar(n(96)),i=n(95),a=n(166),o=-.14861,s=1.78277,l=-.29227,u=-.90649,c=1.97294,f=c*u,h=c*s,p=s*l-u*o;function d(t){if(t instanceof y)return new y(t.h,t.s,t.l,t.opacity);t instanceof i.Rgb||(t=(0,i.rgbConvert)(t));var e=t.r/255,n=t.g/255,r=t.b/255,o=(p*r+f*e-h*n)/(p+f-h),s=r-o,d=(c*(n-o)-l*s)/u,g=Math.sqrt(d*d+s*s)/(c*o*(1-o)),v=g?Math.atan2(d,s)*a.rad2deg-120:NaN;return new y(v<0?v+360:v,g,o,t.opacity)}function g(t,e,n,r){return 1===arguments.length?d(t):new y(t,e,n,null==r?1:r)}function y(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}e.default=g,e.Cubehelix=y,(0,r.default)(y,g,(0,r.extend)(i.Color,{brighter:function(t){return t=null==t?i.brighter:Math.pow(i.brighter,t),new y(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?i.darker:Math.pow(i.darker,t),new y(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*a.deg2rad,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),f=Math.sin(t);return new i.Rgb(255*(e+n*(o*r+s*f)),255*(e+n*(l*r+u*f)),255*(e+n*(c*r)),this.opacity)}}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(49);e.default=function(t,e){var n=(0,r.hue)(+t,+e);return function(t){var e=n(t);return e-360*Math.floor(e/360)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.interpolateTransformSvg=e.interpolateTransformCss=void 0;var r=n(0).__importDefault(n(68)),i=n(339);function a(t,e,n,i){function a(t){return t.length?t.pop()+" ":""}return function(o,s){var l=[],u=[];return o=t(o),s=t(s),function(t,i,a,o,s,l){if(t!==a||i!==o){var u=s.push("translate(",null,e,null,n);l.push({i:u-4,x:(0,r.default)(t,a)},{i:u-2,x:(0,r.default)(i,o)})}else(a||o)&&s.push("translate("+a+e+o+n)}(o.translateX,o.translateY,s.translateX,s.translateY,l,u),function(t,e,n,o){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(a(n)+"rotate(",null,i)-2,x:(0,r.default)(t,e)})):e&&n.push(a(n)+"rotate("+e+i)}(o.rotate,s.rotate,l,u),function(t,e,n,o){t!==e?o.push({i:n.push(a(n)+"skewX(",null,i)-2,x:(0,r.default)(t,e)}):e&&n.push(a(n)+"skewX("+e+i)}(o.skewX,s.skewX,l,u),function(t,e,n,i,o,s){if(t!==n||e!==i){var l=o.push(a(o)+"scale(",null,",",null,")");s.push({i:l-4,x:(0,r.default)(t,n)},{i:l-2,x:(0,r.default)(e,i)})}else 1===n&&1===i||o.push(a(o)+"scale("+n+","+i+")")}(o.scaleX,o.scaleY,s.scaleX,s.scaleY,l,u),o=s=null,function(t){for(var e,n=-1,r=u.length;++n<r;)l[(e=u[n]).i]=e.x(t);return l.join("")}}}e.interpolateTransformCss=a(i.parseCss,"px, ","px)","deg)"),e.interpolateTransformSvg=a(i.parseSvg,", ",")",")")},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseSvg=e.parseCss=void 0;var r,i,a,o,s=n(0).__importStar(n(340));e.parseCss=function(t){return"none"===t?s.identity:(r||(r=document.createElement("DIV"),i=document.documentElement,a=document.defaultView),r.style.transform=t,t=a.getComputedStyle(i.appendChild(r),null).getPropertyValue("transform"),i.removeChild(r),t=t.slice(7,-1).split(","),(0,s.default)(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))},e.parseSvg=function(t){return null==t?s.identity:(o||(o=document.createElementNS("http://www.w3.org/2000/svg","g")),o.setAttribute("transform",t),(t=o.transform.baseVal.consolidate())?(t=t.matrix,(0,s.default)(t.a,t.b,t.c,t.d,t.e,t.f)):s.identity)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.identity=void 0;var r=180/Math.PI;e.identity={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},e.default=function(t,e,n,i,a,o){var s,l,u;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(u=t*n+e*i)&&(n-=t*u,i-=e*u),(l=Math.sqrt(n*n+i*i))&&(n/=l,i/=l,u/=l),t*i<e*n&&(t=-t,e=-e,u=-u,s=-s),{translateX:a,translateY:o,rotate:Math.atan2(e,t)*r,skewX:Math.atan(u)*r,scaleX:s,scaleY:l}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Math.SQRT2;function i(t){return((t=Math.exp(t))+1/t)/2}e.default=function(t,e){var n,a,o=t[0],s=t[1],l=t[2],u=e[0],c=e[1],f=e[2],h=u-o,p=c-s,d=h*h+p*p;if(d<1e-12)a=Math.log(f/l)/r,n=function(t){return[o+t*h,s+t*p,l*Math.exp(r*t*a)]};else{var g=Math.sqrt(d),y=(f*f-l*l+4*d)/(2*l*2*g),v=(f*f-l*l-4*d)/(2*f*2*g),m=Math.log(Math.sqrt(y*y+1)-y),_=Math.log(Math.sqrt(v*v+1)-v);a=(_-m)/r,n=function(t){var e,n=t*a,u=i(m),c=l/(2*g)*(u*(e=r*n+m,((e=Math.exp(2*e))-1)/(e+1))-function(t){return((t=Math.exp(t))-1/t)/2}(m));return[o+c*h,s+c*p,l*u/i(r*n+m)]}}return n.duration=1e3*a,n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hslLong=void 0;var r=n(0),i=n(48),a=r.__importStar(n(49));function o(t){return function(e,n){var r=t((e=(0,i.hsl)(e)).h,(n=(0,i.hsl)(n)).h),o=(0,a.default)(e.s,n.s),s=(0,a.default)(e.l,n.l),l=(0,a.default)(e.opacity,n.opacity);return function(t){return e.h=r(t),e.s=o(t),e.l=s(t),e.opacity=l(t),e+""}}}e.default=o(a.hue),e.hslLong=o(a.default)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(48),a=r.__importDefault(n(49));e.default=function(t,e){var n=(0,a.default)((t=(0,i.lab)(t)).l,(e=(0,i.lab)(e)).l),r=(0,a.default)(t.a,e.a),o=(0,a.default)(t.b,e.b),s=(0,a.default)(t.opacity,e.opacity);return function(e){return t.l=n(e),t.a=r(e),t.b=o(e),t.opacity=s(e),t+""}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hclLong=void 0;var r=n(0),i=n(48),a=r.__importStar(n(49));function o(t){return function(e,n){var r=t((e=(0,i.hcl)(e)).h,(n=(0,i.hcl)(n)).h),o=(0,a.default)(e.c,n.c),s=(0,a.default)(e.l,n.l),l=(0,a.default)(e.opacity,n.opacity);return function(t){return e.h=r(t),e.c=o(t),e.l=s(t),e.opacity=l(t),e+""}}}e.default=o(a.hue),e.hclLong=o(a.default)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.cubehelixLong=void 0;var r=n(0),i=n(48),a=r.__importStar(n(49));function o(t){return function e(n){function r(e,r){var o=t((e=(0,i.cubehelix)(e)).h,(r=(0,i.cubehelix)(r)).h),s=(0,a.default)(e.s,r.s),l=(0,a.default)(e.l,r.l),u=(0,a.default)(e.opacity,r.opacity);return function(t){return e.h=o(t),e.s=s(t),e.l=l(Math.pow(t,n)),e.opacity=u(t),e+""}}return n=+n,r.gamma=e,r}(1)}e.default=o(a.hue),e.cubehelixLong=o(a.default)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){for(var n=0,r=e.length-1,i=e[0],a=new Array(r<0?0:r);n<r;)a[n]=t(i,i=e[++n]);return function(t){var e=Math.max(0,Math.min(r-1,Math.floor(t*=r)));return a[e](t-e)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t(r/(e-1));return n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.easeElasticInOut=e.easeElasticOut=e.easeElasticIn=e.easeElastic=e.easeBackInOut=e.easeBackOut=e.easeBackIn=e.easeBack=e.easeBounceInOut=e.easeBounceOut=e.easeBounceIn=e.easeBounce=e.easeCircleInOut=e.easeCircleOut=e.easeCircleIn=e.easeCircle=e.easeExpInOut=e.easeExpOut=e.easeExpIn=e.easeExp=e.easeSinInOut=e.easeSinOut=e.easeSinIn=e.easeSin=e.easePolyInOut=e.easePolyOut=e.easePolyIn=e.easePoly=e.easeCubicInOut=e.easeCubicOut=e.easeCubicIn=e.easeCubic=e.easeQuadInOut=e.easeQuadOut=e.easeQuadIn=e.easeQuad=e.easeLinear=void 0;var r=n(349);Object.defineProperty(e,"easeLinear",{enumerable:!0,get:function(){return r.linear}});var i=n(350);Object.defineProperty(e,"easeQuad",{enumerable:!0,get:function(){return i.quadInOut}}),Object.defineProperty(e,"easeQuadIn",{enumerable:!0,get:function(){return i.quadIn}}),Object.defineProperty(e,"easeQuadOut",{enumerable:!0,get:function(){return i.quadOut}}),Object.defineProperty(e,"easeQuadInOut",{enumerable:!0,get:function(){return i.quadInOut}});var a=n(351);Object.defineProperty(e,"easeCubic",{enumerable:!0,get:function(){return a.cubicInOut}}),Object.defineProperty(e,"easeCubicIn",{enumerable:!0,get:function(){return a.cubicIn}}),Object.defineProperty(e,"easeCubicOut",{enumerable:!0,get:function(){return a.cubicOut}}),Object.defineProperty(e,"easeCubicInOut",{enumerable:!0,get:function(){return a.cubicInOut}});var o=n(352);Object.defineProperty(e,"easePoly",{enumerable:!0,get:function(){return o.polyInOut}}),Object.defineProperty(e,"easePolyIn",{enumerable:!0,get:function(){return o.polyIn}}),Object.defineProperty(e,"easePolyOut",{enumerable:!0,get:function(){return o.polyOut}}),Object.defineProperty(e,"easePolyInOut",{enumerable:!0,get:function(){return o.polyInOut}});var s=n(353);Object.defineProperty(e,"easeSin",{enumerable:!0,get:function(){return s.sinInOut}}),Object.defineProperty(e,"easeSinIn",{enumerable:!0,get:function(){return s.sinIn}}),Object.defineProperty(e,"easeSinOut",{enumerable:!0,get:function(){return s.sinOut}}),Object.defineProperty(e,"easeSinInOut",{enumerable:!0,get:function(){return s.sinInOut}});var l=n(354);Object.defineProperty(e,"easeExp",{enumerable:!0,get:function(){return l.expInOut}}),Object.defineProperty(e,"easeExpIn",{enumerable:!0,get:function(){return l.expIn}}),Object.defineProperty(e,"easeExpOut",{enumerable:!0,get:function(){return l.expOut}}),Object.defineProperty(e,"easeExpInOut",{enumerable:!0,get:function(){return l.expInOut}});var u=n(355);Object.defineProperty(e,"easeCircle",{enumerable:!0,get:function(){return u.circleInOut}}),Object.defineProperty(e,"easeCircleIn",{enumerable:!0,get:function(){return u.circleIn}}),Object.defineProperty(e,"easeCircleOut",{enumerable:!0,get:function(){return u.circleOut}}),Object.defineProperty(e,"easeCircleInOut",{enumerable:!0,get:function(){return u.circleInOut}});var c=n(356);Object.defineProperty(e,"easeBounce",{enumerable:!0,get:function(){return c.bounceOut}}),Object.defineProperty(e,"easeBounceIn",{enumerable:!0,get:function(){return c.bounceIn}}),Object.defineProperty(e,"easeBounceOut",{enumerable:!0,get:function(){return c.bounceOut}}),Object.defineProperty(e,"easeBounceInOut",{enumerable:!0,get:function(){return c.bounceInOut}});var f=n(357);Object.defineProperty(e,"easeBack",{enumerable:!0,get:function(){return f.backInOut}}),Object.defineProperty(e,"easeBackIn",{enumerable:!0,get:function(){return f.backIn}}),Object.defineProperty(e,"easeBackOut",{enumerable:!0,get:function(){return f.backOut}}),Object.defineProperty(e,"easeBackInOut",{enumerable:!0,get:function(){return f.backInOut}});var h=n(358);Object.defineProperty(e,"easeElastic",{enumerable:!0,get:function(){return h.elasticOut}}),Object.defineProperty(e,"easeElasticIn",{enumerable:!0,get:function(){return h.elasticIn}}),Object.defineProperty(e,"easeElasticOut",{enumerable:!0,get:function(){return h.elasticOut}}),Object.defineProperty(e,"easeElasticInOut",{enumerable:!0,get:function(){return h.elasticInOut}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.linear=void 0,e.linear=function(t){return+t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.quadInOut=e.quadOut=e.quadIn=void 0,e.quadIn=function(t){return t*t},e.quadOut=function(t){return t*(2-t)},e.quadInOut=function(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.cubicInOut=e.cubicOut=e.cubicIn=void 0,e.cubicIn=function(t){return t*t*t},e.cubicOut=function(t){return--t*t*t+1},e.cubicInOut=function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.polyInOut=e.polyOut=e.polyIn=void 0;e.polyIn=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(3),e.polyOut=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),e.polyInOut=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(3)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sinInOut=e.sinOut=e.sinIn=void 0;var r=Math.PI,i=r/2;e.sinIn=function(t){return 1==+t?1:1-Math.cos(t*i)},e.sinOut=function(t){return Math.sin(t*i)},e.sinInOut=function(t){return(1-Math.cos(r*t))/2}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.expInOut=e.expOut=e.expIn=void 0;var r=n(175);e.expIn=function(t){return(0,r.tpmt)(1-+t)},e.expOut=function(t){return 1-(0,r.tpmt)(t)},e.expInOut=function(t){return((t*=2)<=1?(0,r.tpmt)(1-t):2-(0,r.tpmt)(t-1))/2}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.circleInOut=e.circleOut=e.circleIn=void 0,e.circleIn=function(t){return 1-Math.sqrt(1-t*t)},e.circleOut=function(t){return Math.sqrt(1- --t*t)},e.circleInOut=function(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.bounceInOut=e.bounceOut=e.bounceIn=void 0;var r=7.5625;function i(t){return(t=+t)<4/11?r*t*t:t<8/11?r*(t-=6/11)*t+3/4:t<10/11?r*(t-=9/11)*t+15/16:r*(t-=21/22)*t+63/64}e.bounceIn=function(t){return 1-i(1-t)},e.bounceOut=i,e.bounceInOut=function(t){return((t*=2)<=1?1-i(1-t):i(t-1)+1)/2}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.backInOut=e.backOut=e.backIn=void 0;e.backIn=function t(e){function n(t){return(t=+t)*t*(e*(t-1)+t)}return e=+e,n.overshoot=t,n}(1.70158),e.backOut=function t(e){function n(t){return--t*t*((t+1)*e+t)+1}return e=+e,n.overshoot=t,n}(1.70158),e.backInOut=function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(1.70158)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.elasticInOut=e.elasticOut=e.elasticIn=void 0;var r=n(175),i=2*Math.PI;e.elasticIn=function t(e,n){var a=Math.asin(1/(e=Math.max(1,e)))*(n/=i);function o(t){return e*(0,r.tpmt)(- --t)*Math.sin((a-t)/n)}return o.amplitude=function(e){return t(e,n*i)},o.period=function(n){return t(e,n)},o}(1,.3),e.elasticOut=function t(e,n){var a=Math.asin(1/(e=Math.max(1,e)))*(n/=i);function o(t){return 1-e*(0,r.tpmt)(t=+t)*Math.sin((t+a)/n)}return o.amplitude=function(e){return t(e,n*i)},o.period=function(n){return t(e,n)},o}(1,.3),e.elasticInOut=function t(e,n){var a=Math.asin(1/(e=Math.max(1,e)))*(n/=i);function o(t){return((t=2*t-1)<0?e*(0,r.tpmt)(-t)*Math.sin((a-t)/n):2-e*(0,r.tpmt)(t)*Math.sin((a+t)/n))/2}return o.amplitude=function(e){return t(e,n*i)},o.period=function(n){return t(e,n)},o}(1,.3)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isGradientColor=e.isColorProp=void 0;e.isColorProp=function(t){return["fill","stroke","fillStyle","strokeStyle"].includes(t)};e.isGradientColor=function(t){return/^[r,R,L,l]{1}[\s]*\(/.test(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(156)),i=n(39),a=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function o(t,e,n){n.name=e,n.target=t,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}function s(t,e,n){if(n.bubbles){var r=void 0,a=!1;if("mouseenter"===e?(r=n.fromShape,a=!0):"mouseleave"===e&&(a=!0,r=n.toShape),t.isCanvas()&&a)return;if(r&&(0,i.isParent)(t,r))return void(n.bubbles=!1);n.name=e,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}}var l=function(){function t(t){var e=this;this.draggingShape=null,this.dragging=!1,this.currentShape=null,this.mousedownShape=null,this.mousedownPoint=null,this._eventCallback=function(t){var n=t.type;e._triggerEvent(n,t)},this._onDocumentMove=function(t){if(e.canvas.get("el")!==t.target&&(e.dragging||e.currentShape)){var n=e._getPointInfo(t);e.dragging&&e._emitEvent("drag",t,n,e.draggingShape)}},this._onDocumentMouseUp=function(t){if(e.canvas.get("el")!==t.target&&e.dragging){var n=e._getPointInfo(t);e.draggingShape&&e._emitEvent("drop",t,n,null),e._emitEvent("dragend",t,n,e.draggingShape),e._afterDrag(e.draggingShape,n,t)}},this.canvas=t.canvas}return t.prototype.init=function(){this._bindEvents()},t.prototype._bindEvents=function(){var t=this,e=this.canvas.get("el");(0,i.each)(a,(function(n){e.addEventListener(n,t._eventCallback)})),document&&(document.addEventListener("mousemove",this._onDocumentMove),document.addEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._clearEvents=function(){var t=this,e=this.canvas.get("el");(0,i.each)(a,(function(n){e.removeEventListener(n,t._eventCallback)})),document&&(document.removeEventListener("mousemove",this._onDocumentMove),document.removeEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._getEventObj=function(t,e,n,i,a,o){var s=new r.default(t,e);return s.fromShape=a,s.toShape=o,s.x=n.x,s.y=n.y,s.clientX=n.clientX,s.clientY=n.clientY,s.propagationPath.push(i),s},t.prototype._getShape=function(t,e){return this.canvas.getShape(t.x,t.y,e)},t.prototype._getPointInfo=function(t){var e=this.canvas,n=e.getClientByEvent(t),r=e.getPointByEvent(t);return{x:r.x,y:r.y,clientX:n.x,clientY:n.y}},t.prototype._triggerEvent=function(t,e){var n=this._getPointInfo(e),r=this._getShape(n,e),i=this["_on"+t],a=!1;if(i)i.call(this,n,r,e);else{var o=this.currentShape;"mouseenter"===t||"dragenter"===t||"mouseover"===t?(this._emitEvent(t,e,n,null,null,r),r&&this._emitEvent(t,e,n,r,null,r),"mouseenter"===t&&this.draggingShape&&this._emitEvent("dragenter",e,n,null)):"mouseleave"===t||"dragleave"===t||"mouseout"===t?(a=!0,o&&this._emitEvent(t,e,n,o,o,null),this._emitEvent(t,e,n,null,o,null),"mouseleave"===t&&this.draggingShape&&this._emitEvent("dragleave",e,n,null)):this._emitEvent(t,e,n,r,null,null)}if(a||(this.currentShape=r),r&&!r.get("destroyed")){var s=this.canvas;s.get("el").style.cursor=r.attr("cursor")||s.get("cursor")}},t.prototype._onmousedown=function(t,e,n){0===n.button&&(this.mousedownShape=e,this.mousedownPoint=t,this.mousedownTimeStamp=n.timeStamp),this._emitEvent("mousedown",n,t,e,null,null)},t.prototype._emitMouseoverEvents=function(t,e,n,r){var i=this.canvas.get("el");n!==r&&(n&&(this._emitEvent("mouseout",t,e,n,n,r),this._emitEvent("mouseleave",t,e,n,n,r),r&&!r.get("destroyed")||(i.style.cursor=this.canvas.get("cursor"))),r&&(this._emitEvent("mouseover",t,e,r,n,r),this._emitEvent("mouseenter",t,e,r,n,r)))},t.prototype._emitDragoverEvents=function(t,e,n,r,i){r?(r!==n&&(n&&this._emitEvent("dragleave",t,e,n,n,r),this._emitEvent("dragenter",t,e,r,n,r)),i||this._emitEvent("dragover",t,e,r)):n&&this._emitEvent("dragleave",t,e,n,n,r),i&&this._emitEvent("dragover",t,e,r)},t.prototype._afterDrag=function(t,e,n){t&&(t.set("capture",!0),this.draggingShape=null),this.dragging=!1;var r=this._getShape(e,n);r!==t&&this._emitMouseoverEvents(n,e,t,r),this.currentShape=r},t.prototype._onmouseup=function(t,e,n){if(0===n.button){var r=this.draggingShape;this.dragging?(r&&this._emitEvent("drop",n,t,e),this._emitEvent("dragend",n,t,r),this._afterDrag(r,t,n)):(this._emitEvent("mouseup",n,t,e),e===this.mousedownShape&&this._emitEvent("click",n,t,e),this.mousedownShape=null,this.mousedownPoint=null)}},t.prototype._ondragover=function(t,e,n){n.preventDefault();var r=this.currentShape;this._emitDragoverEvents(n,t,r,e,!0)},t.prototype._onmousemove=function(t,e,n){var r=this.canvas,i=this.currentShape,a=this.draggingShape;if(this.dragging)a&&this._emitDragoverEvents(n,t,i,e,!1),this._emitEvent("drag",n,t,a);else{var o=this.mousedownPoint;if(o){var s=this.mousedownShape,l=n.timeStamp-this.mousedownTimeStamp,u=o.clientX-t.clientX,c=o.clientY-t.clientY;l>120||u*u+c*c>40?s&&s.get("draggable")?((a=this.mousedownShape).set("capture",!1),this.draggingShape=a,this.dragging=!0,this._emitEvent("dragstart",n,t,a),this.mousedownShape=null,this.mousedownPoint=null):!s&&r.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",n,t,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e)):(this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e))}else this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e)}},t.prototype._emitEvent=function(t,e,n,r,i,a){var l=this._getEventObj(t,e,n,r,i,a);if(r){l.shape=r,o(r,t,l);for(var u=r.getParent();u;)u.emitDelegation(t,l),l.propagationStopped||s(u,t,l),l.propagationPath.push(u),u=u.getParent()}else{o(this.canvas,t,l)}},t.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},t}();e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.isGroup=function(){return!0},e.prototype.isEntityGroup=function(){return!1},e.prototype.clone=function(){for(var e=t.prototype.clone.call(this),n=this.getChildren(),r=0;r<n.length;r++){var i=n[r];e.add(i.clone())}return e},e}(r.__importDefault(n(159)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=r.__importDefault(n(160)),o=n(92),s=function(t){function e(e){return t.call(this,e)||this}return(0,i.__extends)(e,t),e.prototype._isInBBox=function(t,e){var n=this.getBBox();return n.minX<=t&&n.maxX>=t&&n.minY<=e&&n.maxY>=e},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e),this.clearCacheBBox()},e.prototype.getBBox=function(){var t=this.cfg.bbox;return t||(t=this.calculateBBox(),this.set("bbox",t)),t},e.prototype.getCanvasBBox=function(){var t=this.cfg.canvasBBox;return t||(t=this.calculateCanvasBBox(),this.set("canvasBBox",t)),t},e.prototype.applyMatrix=function(e){t.prototype.applyMatrix.call(this,e),this.set("canvasBBox",null)},e.prototype.calculateCanvasBBox=function(){var t=this.getBBox(),e=this.getTotalMatrix(),n=t.minX,r=t.minY,i=t.maxX,a=t.maxY;if(e){var s=(0,o.multiplyVec2)(e,[t.minX,t.minY]),l=(0,o.multiplyVec2)(e,[t.maxX,t.minY]),u=(0,o.multiplyVec2)(e,[t.minX,t.maxY]),c=(0,o.multiplyVec2)(e,[t.maxX,t.maxY]);n=Math.min(s[0],l[0],u[0],c[0]),i=Math.max(s[0],l[0],u[0],c[0]),r=Math.min(s[1],l[1],u[1],c[1]),a=Math.max(s[1],l[1],u[1],c[1])}var f=this.attrs;if(f.shadowColor){var h=f.shadowBlur,p=void 0===h?0:h,d=f.shadowOffsetX,g=void 0===d?0:d,y=f.shadowOffsetY,v=void 0===y?0:y,m=n-p+g,_=i+p+g,x=r-p+v,b=a+p+v;n=Math.min(n,m),i=Math.max(i,_),r=Math.min(r,x),a=Math.max(a,b)}return{x:n,y:r,minX:n,minY:r,maxX:i,maxY:a,width:i-n,height:a-r}},e.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBBox",null)},e.prototype.isClipShape=function(){return this.get("isClipShape")},e.prototype.isInShape=function(t,e){return!1},e.prototype.isOnlyHitBox=function(){return!1},e.prototype.isHit=function(t,e){var n=this.get("startArrowShape"),r=this.get("endArrowShape"),i=[t,e,1],a=(i=this.invertFromMatrix(i))[0],o=i[1],s=this._isInBBox(a,o);if(this.isOnlyHitBox())return s;if(s&&!this.isClipped(a,o)){if(this.isInShape(a,o))return!0;if(n&&n.isHit(a,o))return!0;if(r&&r.isHit(a,o))return!0}return!1},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerBBox=e.getBBoxMethod=void 0;var r=n(0),i=n(364);Object.defineProperty(e,"registerBBox",{enumerable:!0,get:function(){return i.register}}),Object.defineProperty(e,"getBBoxMethod",{enumerable:!0,get:function(){return i.getMethod}});var a=r.__importDefault(n(365)),o=r.__importDefault(n(366)),s=r.__importDefault(n(367)),l=r.__importDefault(n(373)),u=r.__importDefault(n(374)),c=r.__importDefault(n(375)),f=r.__importDefault(n(390)),h=r.__importDefault(n(391));(0,i.register)("rect",a.default),(0,i.register)("image",a.default),(0,i.register)("circle",o.default),(0,i.register)("marker",o.default),(0,i.register)("polyline",s.default),(0,i.register)("polygon",l.default),(0,i.register)("text",u.default),(0,i.register)("path",c.default),(0,i.register)("line",f.default),(0,i.register)("ellipse",h.default)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getMethod=e.register=void 0;var r=new Map;e.register=function(t,e){r.set(t,e)},e.getMethod=function(t){return r.get(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.attr();return{x:e.x,y:e.y,width:e.width,height:e.height}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.attr(),n=e.x,r=e.y,i=e.r;return{x:n-i,y:r-i,width:2*i,height:2*i}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(20),i=n(99);e.default=function(t){for(var e=t.attr().points,n=[],a=[],o=0;o<e.length;o++){var s=e[o];n.push(s[0]),a.push(s[1])}var l=r.Util.getBBoxByArray(n,a),u=l.x,c=l.y,f={minX:u,minY:c,maxX:u+l.width,maxY:c+l.height};return{x:(f=(0,i.mergeArrowBBox)(t,f)).minX,y:f.minY,width:f.maxX-f.minX,height:f.maxY-f.minY}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(69)),i=n(32),a=n(176);function o(t,e,n,r){var i=1-r;return i*i*t+2*r*i*e+r*r*n}function s(t,e,n){var r=t+n-2*e;if((0,i.isNumberEqual)(r,0))return[.5];var a=(t-e)/r;return a<=1&&a>=0?[a]:[]}function l(t,e,n,r){return 2*(1-r)*(e-t)+2*r*(n-e)}function u(t,e,n,i,a,s,l){var u=o(t,n,a,l),c=o(e,i,s,l),f=r.default.pointAt(t,e,n,i,l),h=r.default.pointAt(n,i,a,s,l);return[[t,e,f.x,f.y,u,c],[u,c,h.x,h.y,a,s]]}e.default={box:function(t,e,n,r,a,l){var u=s(t,n,a)[0],c=s(e,r,l)[0],f=[t,a],h=[e,l];return void 0!==u&&f.push(o(t,n,a,u)),void 0!==c&&h.push(o(e,r,l,c)),(0,i.getBBoxByArray)(f,h)},length:function(t,e,n,r,a,o){return function t(e,n,r,a,o,s,l){if(0===l)return((0,i.distance)(e,n,r,a)+(0,i.distance)(r,a,o,s)+(0,i.distance)(e,n,o,s))/2;var c=u(e,n,r,a,o,s,.5),f=c[0],h=c[1];return f.push(l-1),h.push(l-1),t.apply(null,f)+t.apply(null,h)}(t,e,n,r,a,o,3)},nearestPoint:function(t,e,n,r,i,s,l,u){return(0,a.nearestPoint)([t,n,i],[e,r,s],l,u,o)},pointDistance:function(t,e,n,r,a,o,s,l){var u=this.nearestPoint(t,e,n,r,a,o,s,l);return(0,i.distance)(u.x,u.y,s,l)},interpolationAt:o,pointAt:function(t,e,n,r,i,a,s){return{x:o(t,n,i,s),y:o(e,r,a,s)}},divide:function(t,e,n,r,i,a,o){return u(t,e,n,r,i,a,o)},tangentAngle:function(t,e,n,r,a,o,s){var u=l(t,n,a,s),c=l(e,r,o,s),f=Math.atan2(c,u);return(0,i.piMod)(f)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(32),a=r.__importDefault(n(69)),o=n(176);function s(t,e,n,r,i){var a=1-i;return a*a*a*t+3*e*i*a*a+3*n*i*i*a+r*i*i*i}function l(t,e,n,r,i){var a=1-i;return 3*(a*a*(e-t)+2*a*i*(n-e)+i*i*(r-n))}function u(t,e,n,r){var a,o,s,l=-3*t+9*e-9*n+3*r,u=6*t-12*e+6*n,c=3*e-3*t,f=[];if((0,i.isNumberEqual)(l,0))(0,i.isNumberEqual)(u,0)||(a=-c/u)>=0&&a<=1&&f.push(a);else{var h=u*u-4*l*c;(0,i.isNumberEqual)(h,0)?f.push(-u/(2*l)):h>0&&(o=(-u-(s=Math.sqrt(h)))/(2*l),(a=(-u+s)/(2*l))>=0&&a<=1&&f.push(a),o>=0&&o<=1&&f.push(o))}return f}function c(t,e,n,r,i,o,l,u,c){var f=s(t,n,i,l,c),h=s(e,r,o,u,c),p=a.default.pointAt(t,e,n,r,c),d=a.default.pointAt(n,r,i,o,c),g=a.default.pointAt(i,o,l,u,c),y=a.default.pointAt(p.x,p.y,d.x,d.y,c),v=a.default.pointAt(d.x,d.y,g.x,g.y,c);return[[t,e,p.x,p.y,y.x,y.y,f,h],[f,h,v.x,v.y,g.x,g.y,l,u]]}e.default={extrema:u,box:function(t,e,n,r,a,o,l,c){for(var f=[t,l],h=[e,c],p=u(t,n,a,l),d=u(e,r,o,c),g=0;g<p.length;g++)f.push(s(t,n,a,l,p[g]));for(g=0;g<d.length;g++)h.push(s(e,r,o,c,d[g]));return(0,i.getBBoxByArray)(f,h)},length:function(t,e,n,r,i,a,s,l){return function t(e,n,r,i,a,s,l,u,f){if(0===f)return(0,o.snapLength)([e,r,a,l],[n,i,s,u]);var h=c(e,n,r,i,a,s,l,u,.5),p=h[0],d=h[1];return p.push(f-1),d.push(f-1),t.apply(null,p)+t.apply(null,d)}(t,e,n,r,i,a,s,l,3)},nearestPoint:function(t,e,n,r,i,a,l,u,c,f,h){return(0,o.nearestPoint)([t,n,i,l],[e,r,a,u],c,f,s,h)},pointDistance:function(t,e,n,r,a,o,s,l,u,c,f){var h=this.nearestPoint(t,e,n,r,a,o,s,l,u,c,f);return(0,i.distance)(h.x,h.y,u,c)},interpolationAt:s,pointAt:function(t,e,n,r,i,a,o,l,u){return{x:s(t,n,i,o,u),y:s(e,r,a,l,u)}},divide:function(t,e,n,r,i,a,o,s,l){return c(t,e,n,r,i,a,o,s,l)},tangentAngle:function(t,e,n,r,a,o,s,u,c){var f=l(t,n,a,s,c),h=l(e,r,o,u,c);return(0,i.piMod)(Math.atan2(h,f))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(32),a=r.__importDefault(n(371));function o(t,e,n,r,i,a){return n*Math.cos(i)*Math.cos(a)-r*Math.sin(i)*Math.sin(a)+t}function s(t,e,n,r,i,a){return n*Math.sin(i)*Math.cos(a)+r*Math.cos(i)*Math.sin(a)+e}function l(t,e,n){return{x:t*Math.cos(n),y:e*Math.sin(n)}}function u(t,e,n){var r=Math.cos(n),i=Math.sin(n);return[t*r-e*i,t*i+e*r]}e.default={box:function(t,e,n,r,i,a,l){for(var u=function(t,e,n){return Math.atan(-e/t*Math.tan(n))}(n,r,i),c=1/0,f=-1/0,h=[a,l],p=2*-Math.PI;p<=2*Math.PI;p+=Math.PI){var d=u+p;a<l?a<d&&d<l&&h.push(d):l<d&&d<a&&h.push(d)}for(p=0;p<h.length;p++){var g=o(t,0,n,r,i,h[p]);g<c&&(c=g),g>f&&(f=g)}var y=function(t,e,n){return Math.atan(e/(t*Math.tan(n)))}(n,r,i),v=1/0,m=-1/0,_=[a,l];for(p=2*-Math.PI;p<=2*Math.PI;p+=Math.PI){var x=y+p;a<l?a<x&&x<l&&_.push(x):l<x&&x<a&&_.push(x)}for(p=0;p<_.length;p++){var b=s(0,e,n,r,i,_[p]);b<v&&(v=b),b>m&&(m=b)}return{x:c,y:v,width:f-c,height:m-v}},length:function(t,e,n,r,i,a,o){},nearestPoint:function(t,e,n,r,i,o,s,c,f){var h=u(c-t,f-e,-i),p=h[0],d=h[1],g=a.default.nearestPoint(0,0,n,r,p,d),y=function(t,e,n,r){return(Math.atan2(r*t,n*e)+2*Math.PI)%(2*Math.PI)}(n,r,g.x,g.y);y<o?g=l(n,r,o):y>s&&(g=l(n,r,s));var v=u(g.x,g.y,i);return{x:v[0]+t,y:v[1]+e}},pointDistance:function(t,e,n,r,a,o,s,l,u){var c=this.nearestPoint(t,e,n,r,l,u);return(0,i.distance)(c.x,c.y,l,u)},pointAt:function(t,e,n,r,i,a,l,u){var c=(l-a)*u+a;return{x:o(t,0,n,r,i,c),y:s(0,e,n,r,i,c)}},tangentAngle:function(t,e,n,r,a,o,s,l){var u=(s-o)*l+o,c=function(t,e,n,r,i,a,o,s){return-1*n*Math.cos(i)*Math.sin(s)-r*Math.sin(i)*Math.cos(s)}(0,0,n,r,a,0,0,u),f=function(t,e,n,r,i,a,o,s){return-1*n*Math.sin(i)*Math.sin(s)+r*Math.cos(i)*Math.cos(s)}(0,0,n,r,a,0,0,u);return(0,i.piMod)(Math.atan2(f,c))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(32);function i(t,e){var n=Math.abs(t);return e>0?n:-1*n}e.default={box:function(t,e,n,r){return{x:t-n,y:e-r,width:2*n,height:2*r}},length:function(t,e,n,r){return Math.PI*(3*(n+r)-Math.sqrt((3*n+r)*(n+3*r)))},nearestPoint:function(t,e,n,r,a,o){var s=n,l=r;if(0===s||0===l)return{x:t,y:e};for(var u,c,f=a-t,h=o-e,p=Math.abs(f),d=Math.abs(h),g=s*s,y=l*l,v=Math.PI/4,m=0;m<4;m++){u=s*Math.cos(v),c=l*Math.sin(v);var _=(g-y)*Math.pow(Math.cos(v),3)/s,x=(y-g)*Math.pow(Math.sin(v),3)/l,b=u-_,M=c-x,C=p-_,P=d-x,S=Math.hypot(M,b),O=Math.hypot(P,C);v+=S*Math.asin((b*P-M*C)/(S*O))/Math.sqrt(g+y-u*u-c*c),v=Math.min(Math.PI/2,Math.max(0,v))}return{x:t+i(u,f),y:e+i(c,h)}},pointDistance:function(t,e,n,i,a,o){var s=this.nearestPoint(t,e,n,i,a,o);return(0,r.distance)(s.x,s.y,a,o)},pointAt:function(t,e,n,r,i){var a=2*Math.PI*i;return{x:t+n*Math.cos(a),y:e+r*Math.sin(a)}},tangentAngle:function(t,e,n,i,a){var o=2*Math.PI*a,s=Math.atan2(i*Math.cos(o),-n*Math.sin(o));return(0,r.piMod)(s)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(177),a=r.__importDefault(n(178));function o(t){var e=t.slice(0);return t.length&&e.push(t[0]),e}e.default={box:function(t){return a.default.box(t)},length:function(t){return(0,i.lengthOfSegment)(o(t))},pointAt:function(t,e){return(0,i.pointAtSegments)(o(t),e)},pointDistance:function(t,e,n){return(0,i.distanceAtSegment)(o(t),e,n)},tangentAngle:function(t,e){return(0,i.angleAtSegments)(o(t),e)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(20);e.default=function(t){for(var e=t.attr().points,n=[],i=[],a=0;a<e.length;a++){var o=e[a];n.push(o[0]),i.push(o[1])}return r.Util.getBBoxByArray(n,i)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(179);e.default=function(t){var e=t.attr(),n=e.x,i=e.y,a=e.text,o=e.fontSize,s=e.lineHeight,l=e.font;l||(l=(0,r.assembleFont)(e));var u,c=(0,r.getTextWidth)(a,l);if(c){var f=e.textAlign,h=e.textBaseline,p=(0,r.getTextHeight)(a,o,s),d={x:n,y:i-p};f&&("end"===f||"right"===f?d.x-=c:"center"===f&&(d.x-=c/2)),h&&("top"===h?d.y+=p:"middle"===h&&(d.y+=p/2)),u={x:d.x,y:d.y,width:c,height:p}}else u={x:n,y:i,width:0,height:0};return u}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(20),i=n(50),a=n(1),o=n(99);function s(t,e){var n=t.prePoint,r=t.currentPoint,i=t.nextPoint,o=Math.pow(r[0]-n[0],2)+Math.pow(r[1]-n[1],2),s=Math.pow(r[0]-i[0],2)+Math.pow(r[1]-i[1],2),l=Math.pow(n[0]-i[0],2)+Math.pow(n[1]-i[1],2),u=Math.acos((o+s-l)/(2*Math.sqrt(o)*Math.sqrt(s)));if(!u||0===Math.sin(u)||(0,a.isNumberEqual)(u,0))return{xExtra:0,yExtra:0};var c=Math.abs(Math.atan2(i[1]-r[1],i[0]-r[0])),f=Math.abs(Math.atan2(i[0]-r[0],i[1]-r[1]));return c=c>Math.PI/2?Math.PI-c:c,f=f>Math.PI/2?Math.PI-f:f,{xExtra:Math.cos(u/2-c)*(e/2*(1/Math.sin(u/2)))-e/2||0,yExtra:Math.cos(f-u/2)*(e/2*(1/Math.sin(u/2)))-e/2||0}}e.default=function(t){var e=t.attr(),n=e.path,l=e.stroke?e.lineWidth:0,u=function(t,e){for(var n=[],i=[],o=[],l=0;l<t.length;l++){var u=(m=t[l]).currentPoint,c=m.params,f=m.prePoint,h=void 0;switch(m.command){case"Q":h=r.Quad.box(f[0],f[1],c[1],c[2],c[3],c[4]);break;case"C":h=r.Cubic.box(f[0],f[1],c[1],c[2],c[3],c[4],c[5],c[6]);break;case"A":var p=m.arcParams;h=r.Arc.box(p.cx,p.cy,p.rx,p.ry,p.xRotation,p.startAngle,p.endAngle);break;default:n.push(u[0]),i.push(u[1])}h&&(m.box=h,n.push(h.x,h.x+h.width),i.push(h.y,h.y+h.height)),e&&("L"===m.command||"M"===m.command)&&m.prePoint&&m.nextPoint&&o.push(m)}n=n.filter((function(t){return!Number.isNaN(t)&&t!==1/0&&t!==-1/0})),i=i.filter((function(t){return!Number.isNaN(t)&&t!==1/0&&t!==-1/0}));var d=(0,a.min)(n),g=(0,a.min)(i),y=(0,a.max)(n),v=(0,a.max)(i);if(0===o.length)return{x:d,y:g,width:y-d,height:v-g};for(l=0;l<o.length;l++){var m;(u=(m=o[l]).currentPoint)[0]===d?d-=s(m,e).xExtra:u[0]===y&&(y+=s(m,e).xExtra),u[1]===g?g-=s(m,e).yExtra:u[1]===v&&(v+=s(m,e).yExtra)}return{x:d,y:g,width:y-d,height:v-g}}(t.get("segments")||(0,i.path2Segments)(n),l),c=u.x,f=u.y,h={minX:c,minY:f,maxX:c+u.width,maxY:f+u.height};return{x:(h=(0,o.mergeArrowBBox)(t,h)).minX,y:h.minY,width:h.maxX-h.minX,height:h.maxY-h.minY}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(377);e.default=function(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=[[0,0],[1,1]]);for(var i=!!e,a=[],o=0,s=t.length;o<s;o+=2)a.push([t[o],t[o+1]]);var l,u,c,f=function(t,e,n,i){var a,o,s,l,u,c,f,h=[],p=!!i;if(p){s=i[0],l=i[1];for(var d=0,g=t.length;d<g;d+=1){var y=t[d];s=r.vec2.min([0,0],s,y),l=r.vec2.max([0,0],l,y)}}d=0;for(var v=t.length;d<v;d+=1){y=t[d];if(0!==d||n)if(d!==v-1||n){a=t[[d?d-1:v-1,d-1][n?0:1]],o=t[n?(d+1)%v:d+1];var m=[0,0];m=r.vec2.sub(m,o,a),m=r.vec2.scale(m,m,e);var _=r.vec2.distance(y,a),x=r.vec2.distance(y,o),b=_+x;0!==b&&(_/=b,x/=b);var M=r.vec2.scale([0,0],m,-_),C=r.vec2.scale([0,0],m,x);c=r.vec2.add([0,0],y,M),u=r.vec2.add([0,0],y,C),u=r.vec2.min([0,0],u,r.vec2.max([0,0],o,y)),u=r.vec2.max([0,0],u,r.vec2.min([0,0],o,y)),M=r.vec2.sub([0,0],u,y),M=r.vec2.scale([0,0],M,-_/x),c=r.vec2.add([0,0],y,M),c=r.vec2.min([0,0],c,r.vec2.max([0,0],a,y)),c=r.vec2.max([0,0],c,r.vec2.min([0,0],a,y)),C=r.vec2.sub([0,0],y,c),C=r.vec2.scale([0,0],C,x/_),u=r.vec2.add([0,0],y,C),p&&(c=r.vec2.max([0,0],c,s),c=r.vec2.min([0,0],c,l),u=r.vec2.max([0,0],u,s),u=r.vec2.min([0,0],u,l)),h.push(f),h.push(c),f=u}else c=y,h.push(f),h.push(c);else f=y}return n&&h.push(h.shift()),h}(a,.4,i,n),h=a.length,p=[];for(o=0;o<h-1;o+=1)l=f[2*o],u=f[2*o+1],c=a[o+1],p.push(["C",l[0],l[1],u[0],u[1],c[0],c[1]]);return i&&(l=f[h],u=f[h+1],c=a[0],p.push(["C",l[0],l[1],u[0],u[1],c[0],c[1]])),p}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ext=e.vec3=e.vec2=e.mat3=void 0;var r=n(0),i=n(67);Object.defineProperty(e,"mat3",{enumerable:!0,get:function(){return i.mat3}}),Object.defineProperty(e,"vec2",{enumerable:!0,get:function(){return i.vec2}}),Object.defineProperty(e,"vec3",{enumerable:!0,get:function(){return i.vec3}});var a=r.__importStar(n(378));e.ext=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.vertical=e.angleTo=e.direction=e.transform=e.leftScale=e.leftRotate=e.leftTranslate=void 0;var r=n(67);function i(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r.mat3.fromTranslation(i,n),r.mat3.multiply(t,i,e)}function a(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r.mat3.fromRotation(i,n),r.mat3.multiply(t,i,e)}function o(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r.mat3.fromScaling(i,n),r.mat3.multiply(t,i,e)}function s(t,e){return t[0]*e[1]-e[0]*t[1]}e.leftTranslate=i,e.leftRotate=a,e.leftScale=o,e.transform=function(t,e){for(var n,s,l,u=t?[].concat(t):[1,0,0,0,1,0,0,0,1],c=0,f=e.length;c<f;c++){var h=e[c];switch(h[0]){case"t":i(u,u,[h[1],h[2]]);break;case"s":o(u,u,[h[1],h[2]]);break;case"r":a(u,u,h[1]);break;case"m":n=u,s=u,l=h[1],r.mat3.multiply(n,l,s)}}return u},e.direction=s,e.angleTo=function(t,e,n){var i=r.vec2.angle(t,e),a=s(t,e)>=0;return n?a?2*Math.PI-i:i:a?i:2*Math.PI-i},e.vertical=function(t,e,n){return n?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t}},function(t,e,n){"use strict";function r(t,e){var n=[],r=[];return t.length&&function t(e,i){if(1===e.length)n.push(e[0]),r.push(e[0]);else{for(var a=[],o=0;o<e.length-1;o++)0===o&&n.push(e[0]),o===e.length-2&&r.push(e[o+1]),a[o]=[(1-i)*e[o][0]+i*e[o+1][0],(1-i)*e[o][1]+i*e[o+1][1]];t(a,i)}}(t,e),{left:n,right:r.reverse()}}function i(t,e,n){if(1===n)return[[].concat(t)];var i=[];if("L"===e[0]||"C"===e[0]||"Q"===e[0])i=i.concat(function(t,e,n){var i=[[t[1],t[2]]];n=n||2;var a=[];"A"===e[0]?(i.push(e[6]),i.push(e[7])):"C"===e[0]?(i.push([e[1],e[2]]),i.push([e[3],e[4]]),i.push([e[5],e[6]])):"S"===e[0]||"Q"===e[0]?(i.push([e[1],e[2]]),i.push([e[3],e[4]])):i.push([e[1],e[2]]);for(var o=i,s=1/n,l=0;l<n-1;l++){var u=r(o,s/(1-s*l));a.push(u.left),o=u.right}return a.push(o),a.map((function(t){var e=[];return 4===t.length&&(e.push("C"),e=e.concat(t[2])),t.length>=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e=e.concat(t[t.length-1])}))}(t,e,n));else{var a=[].concat(t);"M"===a[0]&&(a[0]="L");for(var o=0;o<=n-1;o++)i.push(a)}return i}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if(1===t.length)return t;var n=t.length-1,r=e.length-1,a=n/r,o=[];if(1===t.length&&"M"===t[0][0]){for(var s=0;s<r-n;s++)t.push(t[0]);return t}for(s=0;s<r;s++){var l=Math.floor(a*s);o[l]=(o[l]||0)+1}var u=o.reduce((function(e,r,a){return a===n?e.concat(t[n]):e.concat(i(t[a],t[a+1],r))}),[]);return u.unshift(t[0]),"Z"!==e[r]&&"z"!==e[r]||u.push("Z"),u}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1);function i(t,e,n){var r=null,i=n;return e<i&&(i=e,r="add"),t<i&&(i=t,r="del"),{type:r,min:i}}e.default=function(t,e){var n=function(t,e){var n,a,o=t.length,s=e.length,l=0;if(0===o||0===s)return null;for(var u=[],c=0;c<=o;c++)u[c]=[],u[c][0]={min:c};for(var f=0;f<=s;f++)u[0][f]={min:f};for(c=1;c<=o;c++){n=t[c-1];for(f=1;f<=s;f++){a=e[f-1],l=(0,r.isEqual)(n,a)?0:1;var h=u[c-1][f].min+1,p=u[c][f-1].min+1,d=u[c-1][f-1].min+l;u[c][f]=i(h,p,d)}}return u}(t,e),a=t.length,o=e.length,s=[],l=1,u=1;if(n[a][o]!==a){for(var c=1;c<=a;c++){var f=n[c][c].min;u=c;for(var h=l;h<=o;h++)n[c][h].min<f&&(f=n[c][h].min,u=h);l=u,n[c][l].type&&s.push({index:c-1,type:n[c][l].type})}for(c=s.length-1;c>=0;c--)l=s[c].index,"add"===s[c].type?t.splice(l,0,[].concat(t[l])):t.splice(l,1)}if((a=t.length)<o)for(c=0;c<o-a;c++)"z"===t[a-1][0]||"Z"===t[a-1][0]?t.splice(a-2,0,t[a-2]):t.push(t[a-1]);return t}},function(t,e,n){"use strict";function r(t){var e=[];switch(t[0]){case"M":case"L":e.push([t[1],t[2]]);break;case"A":e.push([t[6],t[7]]);break;case"Q":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"T":e.push([t[1],t[2]]);break;case"C":e.push([t[5],t[6]]),e.push([t[1],t[2]]),e.push([t[3],t[4]]);break;case"S":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"H":case"V":e.push([t[1],t[1]])}return e}function i(t,e,n){for(var i,a=[].concat(t),o=1/(n+1),s=r(e)[0],l=1;l<=n;l++)o*=l,0===(i=Math.floor(t.length*o))?a.unshift([s[0]*o+t[i][0]*(1-o),s[1]*o+t[i][1]*(1-o)]):a.splice(i,0,[s[0]*o+t[i][0]*(1-o),s[1]*o+t[i][1]*(1-o)]);return a}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if(t.length<=1)return t;for(var n,a=0;a<e.length;a++)if(t[a][0]!==e[a][0])switch(n=r(t[a]),e[a][0]){case"M":t[a]=["M"].concat(n[0]);break;case"L":t[a]=["L"].concat(n[0]);break;case"A":t[a]=[].concat(e[a]),t[a][6]=n[0][0],t[a][7]=n[0][1];break;case"Q":if(n.length<2){if(!(a>0)){t[a]=e[a];break}n=i(n,t[a-1],1)}t[a]=["Q"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"T":t[a]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(a>0)){t[a]=e[a];break}n=i(n,t[a-1],2)}t[a]=["C"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"S":if(n.length<2){if(!(a>0)){t[a]=e[a];break}n=i(n,t[a-1],1)}t[a]=["S"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;default:t[a]=e[a]}return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=r.__importDefault(n(182)),o=r.__importDefault(n(183)),s=function(t,e,n,r,i){return t*(t*(-3*e+9*n-9*r+3*i)+6*e-12*n+6*r)-3*e+3*n},l=function(t,e,n,r,i,a,o,l,u){null===u&&(u=1);for(var c=(u=u>1?1:u<0?0:u)/2,f=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],h=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],p=0,d=0;d<12;d++){var g=c*f[d]+c,y=s(g,t,n,i,o),v=s(g,e,r,a,l),m=y*y+v*v;p+=h[d]*Math.sqrt(m)}return c*p},u=function(t,e,n,r,i,a,o,s){for(var l,u,c,f,h=[],p=[[],[]],d=0;d<2;++d)if(0===d?(u=6*t-12*n+6*i,l=-3*t+9*n-9*i+3*o,c=3*n-3*t):(u=6*e-12*r+6*a,l=-3*e+9*r-9*a+3*s,c=3*r-3*e),Math.abs(l)<1e-12){if(Math.abs(u)<1e-12)continue;(f=-c/u)>0&&f<1&&h.push(f)}else{var g=u*u-4*c*l,y=Math.sqrt(g);if(!(g<0)){var v=(-u+y)/(2*l);v>0&&v<1&&h.push(v);var m=(-u-y)/(2*l);m>0&&m<1&&h.push(m)}}for(var _,x=h.length,b=x;x--;)_=1-(f=h[x]),p[0][x]=_*_*_*t+3*_*_*f*n+3*_*f*f*i+f*f*f*o,p[1][x]=_*_*_*e+3*_*_*f*r+3*_*f*f*a+f*f*f*s;return p[0][b]=t,p[1][b]=e,p[0][b+1]=o,p[1][b+1]=s,p[0].length=p[1].length=b+2,{min:{x:Math.min.apply(0,p[0]),y:Math.min.apply(0,p[1])},max:{x:Math.max.apply(0,p[0]),y:Math.max.apply(0,p[1])}}},c=function(t,e,n,r,i,a,o,s){if(!(Math.max(t,n)<Math.min(i,o)||Math.min(t,n)>Math.max(i,o)||Math.max(e,r)<Math.min(a,s)||Math.min(e,r)>Math.max(a,s))){var l=(t-n)*(a-s)-(e-r)*(i-o);if(l){var u=((t*r-e*n)*(i-o)-(t-n)*(i*s-a*o))/l,c=((t*r-e*n)*(a-s)-(e-r)*(i*s-a*o))/l,f=+u.toFixed(2),h=+c.toFixed(2);if(!(f<+Math.min(t,n).toFixed(2)||f>+Math.max(t,n).toFixed(2)||f<+Math.min(i,o).toFixed(2)||f>+Math.max(i,o).toFixed(2)||h<+Math.min(e,r).toFixed(2)||h>+Math.max(e,r).toFixed(2)||h<+Math.min(a,s).toFixed(2)||h>+Math.max(a,s).toFixed(2)))return{x:u,y:c}}}},f=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},h=function(t,e,n,r){return null===t&&(t=e=n=r=0),null===e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:(0,a.default)(t,e,n,r),vb:[t,e,n,r].join(" ")}},p=function(t,e,n,r,a,o,s,l){(0,i.isArray)(t)||(t=[t,e,n,r,a,o,s,l]);var c=u.apply(null,t);return h(c.min.x,c.min.y,c.max.x-c.min.x,c.max.y-c.min.y)},d=function(t,e,n,r,i,a,o,s,l){var u=1-l,c=Math.pow(u,3),f=Math.pow(u,2),h=l*l,p=h*l,d=t+2*l*(n-t)+h*(i-2*n+t),g=e+2*l*(r-e)+h*(a-2*r+e),y=n+2*l*(i-n)+h*(o-2*i+n),v=r+2*l*(a-r)+h*(s-2*a+r);return{x:c*t+3*f*l*n+3*u*l*l*i+p*o,y:c*e+3*f*l*r+3*u*l*l*a+p*s,m:{x:d,y:g},n:{x:y,y:v},start:{x:u*t+l*n,y:u*e+l*r},end:{x:u*i+l*o,y:u*a+l*s},alpha:90-180*Math.atan2(d-y,g-v)/Math.PI}},g=function(t,e,n){if(!function(t,e){return t=h(t),e=h(e),f(e,t.x,t.y)||f(e,t.x2,t.y)||f(e,t.x,t.y2)||f(e,t.x2,t.y2)||f(t,e.x,e.y)||f(t,e.x2,e.y)||f(t,e.x,e.y2)||f(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)}(p(t),p(e)))return n?0:[];for(var r=~~(l.apply(0,t)/8),i=~~(l.apply(0,e)/8),a=[],o=[],s={},u=n?0:[],g=0;g<r+1;g++){var y=d.apply(0,t.concat(g/r));a.push({x:y.x,y:y.y,t:g/r})}for(g=0;g<i+1;g++){y=d.apply(0,e.concat(g/i));o.push({x:y.x,y:y.y,t:g/i})}for(g=0;g<r;g++)for(var v=0;v<i;v++){var m=a[g],_=a[g+1],x=o[v],b=o[v+1],M=Math.abs(_.x-m.x)<.001?"y":"x",C=Math.abs(b.x-x.x)<.001?"y":"x",P=c(m.x,m.y,_.x,_.y,x.x,x.y,b.x,b.y);if(P){if(s[P.x.toFixed(4)]===P.y.toFixed(4))continue;s[P.x.toFixed(4)]=P.y.toFixed(4);var S=m.t+Math.abs((P[M]-m[M])/(_[M]-m[M]))*(_.t-m.t),O=x.t+Math.abs((P[C]-x[C])/(b[C]-x[C]))*(b.t-x.t);S>=0&&S<=1&&O>=0&&O<=1&&(n?u++:u.push({x:P.x,y:P.y,t1:S,t2:O}))}}return u};e.default=function(t,e){return function(t,e,n){var r,i,a,s,l,u,c,f,h,p;t=(0,o.default)(t),e=(0,o.default)(e);for(var d=n?0:[],y=0,v=t.length;y<v;y++){var m=t[y];if("M"===m[0])r=l=m[1],i=u=m[2];else{"C"===m[0]?(h=[r,i].concat(m.slice(1)),r=h[6],i=h[7]):(h=[r,i,r,i,l,u,l,u],r=l,i=u);for(var _=0,x=e.length;_<x;_++){var b=e[_];if("M"===b[0])a=c=b[1],s=f=b[2];else{"C"===b[0]?(p=[a,s].concat(b.slice(1)),a=p[6],s=p[7]):(p=[a,s,a,s,c,f,c,f],a=c,s=f);var M=g(h,p,n);if(n)d+=M;else{for(var C=0,P=M.length;C<P;C++)M[C].segment1=y,M[C].segment2=_,M[C].bez1=h,M[C].bez2=p;d=d.concat(M)}}}}}return d}(t,e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.segmentToCubic=void 0;var r=n(384),i=n(385),a=n(386);e.segmentToCubic=function(t,e){"TQ".indexOf(t[0])<0&&(e.qx=null,e.qy=null);var n=t.slice(1),o=n[0],s=n[1];switch(t[0]){case"M":return e.x=o,e.y=s,t;case"A":return["C"].concat(r.arcToCubic.apply(0,[e.x1,e.y1].concat(t.slice(1))));case"Q":return e.qx=o,e.qy=s,["C"].concat(i.quadToCubic.apply(0,[e.x1,e.y1].concat(t.slice(1))));case"L":return["C"].concat((0,a.lineToCubic)(e.x1,e.y1,t[1],t[2]));case"H":return["C"].concat((0,a.lineToCubic)(e.x1,e.y1,t[1],e.y1));case"V":return["C"].concat((0,a.lineToCubic)(e.x1,e.y1,e.x1,t[1]));case"Z":return["C"].concat((0,a.lineToCubic)(e.x1,e.y1,e.x,e.y))}return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.arcToCubic=void 0;var r=2*Math.PI,i=function(t,e,n,r,i,a,o){var s=t.x,l=t.y;return{x:r*(s*=e)-i*(l*=n)+a,y:i*s+r*l+o}},a=function(t,e){var n=1.5707963267948966===e?.551915024494:-1.5707963267948966===e?-.551915024494:4/3*Math.tan(e/4),r=Math.cos(t),i=Math.sin(t),a=Math.cos(t+e),o=Math.sin(t+e);return[{x:r-i*n,y:i+r*n},{x:a+o*n,y:o-a*n},{x:a,y:o}]},o=function(t,e,n,r){var i=t*n+e*r;return i>1&&(i=1),i<-1&&(i=-1),(t*r-e*n<0?-1:1)*Math.acos(i)},s=function(t){var e=t.px,n=t.py,s=t.cx,l=t.cy,u=t.rx,c=t.ry,f=t.xAxisRotation,h=void 0===f?0:f,p=t.largeArcFlag,d=void 0===p?0:p,g=t.sweepFlag,y=void 0===g?0:g,v=[];if(0===u||0===c)return[{x1:0,y1:0,x2:0,y2:0,x:s,y:l}];var m=Math.sin(h*r/360),_=Math.cos(h*r/360),x=_*(e-s)/2+m*(n-l)/2,b=-m*(e-s)/2+_*(n-l)/2;if(0===x&&0===b)return[{x1:0,y1:0,x2:0,y2:0,x:s,y:l}];u=Math.abs(u),c=Math.abs(c);var M=Math.pow(x,2)/Math.pow(u,2)+Math.pow(b,2)/Math.pow(c,2);M>1&&(u*=Math.sqrt(M),c*=Math.sqrt(M));var C=function(t,e,n,i,a,s,l,u,c,f,h,p){var d=Math.pow(a,2),g=Math.pow(s,2),y=Math.pow(h,2),v=Math.pow(p,2),m=d*g-d*v-g*y;m<0&&(m=0),m/=d*v+g*y;var _=(m=Math.sqrt(m)*(l===u?-1:1))*a/s*p,x=m*-s/a*h,b=f*_-c*x+(t+n)/2,M=c*_+f*x+(e+i)/2,C=(h-_)/a,P=(p-x)/s,S=(-h-_)/a,O=(-p-x)/s,w=o(1,0,C,P),A=o(C,P,S,O);return 0===u&&A>0&&(A-=r),1===u&&A<0&&(A+=r),[b,M,w,A]}(e,n,s,l,u,c,d,y,m,_,x,b),P=C[0],S=C[1],O=C[2],w=C[3],A=Math.abs(w)/(r/4);Math.abs(1-A)<1e-7&&(A=1);var T=Math.max(Math.ceil(A),1);w/=T;for(var E=0;E<T;E++)v.push(a(O,w)),O+=w;return v.map((function(t){var e=i(t[0],u,c,_,m,P,S),n=e.x,r=e.y,a=i(t[1],u,c,_,m,P,S),o=a.x,s=a.y,l=i(t[2],u,c,_,m,P,S);return{x1:n,y1:r,x2:o,y2:s,x:l.x,y:l.y}}))};e.arcToCubic=function(t,e,n,r,i,a,o,l,u){return s({px:t,py:e,cx:l,cy:u,rx:n,ry:r,xAxisRotation:i,largeArcFlag:a,sweepFlag:o}).reduce((function(t,e){var n=e.x1,r=e.y1,i=e.x2,a=e.y2,o=e.x,s=e.y;return t.push(n,r,i,a,o,s),t}),[])}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.quadToCubic=void 0,e.quadToCubic=function(t,e,n,r,i,a){return[1/3*t+2/3*n,1/3*e+2/3*r,1/3*i+2/3*n,1/3*a+2/3*r,i,a]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.lineToCubic=void 0,e.lineToCubic=function(t,e,n,r){return[t,e,n,r,n,r]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=/,?([a-z]),?/gi;e.default=function(t){return t.join(",").replace(r,"$1")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(100)),a=n(100),o=r.__importDefault(n(181));function s(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}e.default=function(t){for(var e=[],n=null,r=null,l=null,u=0,c=(t=(0,o.default)(t)).length,f=0;f<c;f++){var h=t[f];r=t[f+1];var p=h[0],d={command:p,prePoint:n,params:h,startTangent:null,endTangent:null};switch(p){case"M":l=[h[1],h[2]],u=f;break;case"A":var g=(0,i.default)(n,h);d.arcParams=g}if("Z"===p)n=l,r=t[u+1];else{var y=h.length;n=[h[y-2],h[y-1]]}r&&"Z"===r[0]&&(r=t[u],e[u]&&(e[u].prePoint=n)),d.currentPoint=n,e[u]&&(0,a.isSamePoint)(n,e[u].currentPoint)&&(e[u].prePoint=d.prePoint);var v=r?[r[r.length-2],r[r.length-1]]:null;d.nextPoint=v;var m=d.prePoint;if(["L","H","V"].includes(p))d.startTangent=[m[0]-n[0],m[1]-n[1]],d.endTangent=[n[0]-m[0],n[1]-m[1]];else if("Q"===p){var _=[h[1],h[2]];d.startTangent=[m[0]-_[0],m[1]-_[1]],d.endTangent=[n[0]-_[0],n[1]-_[1]]}else if("T"===p){_=s((M=e[f-1]).currentPoint,m);"Q"===M.command?(d.command="Q",d.startTangent=[m[0]-_[0],m[1]-_[1]],d.endTangent=[n[0]-_[0],n[1]-_[1]]):(d.command="TL",d.startTangent=[m[0]-n[0],m[1]-n[1]],d.endTangent=[n[0]-m[0],n[1]-m[1]])}else if("C"===p){var x=[h[1],h[2]],b=[h[3],h[4]];d.startTangent=[m[0]-x[0],m[1]-x[1]],d.endTangent=[n[0]-b[0],n[1]-b[1]],0===d.startTangent[0]&&0===d.startTangent[1]&&(d.startTangent=[x[0]-b[0],x[1]-b[1]]),0===d.endTangent[0]&&0===d.endTangent[1]&&(d.endTangent=[b[0]-x[0],b[1]-x[1]])}else if("S"===p){var M;x=s((M=e[f-1]).currentPoint,m),b=[h[1],h[2]];"C"===M.command?(d.command="C",d.startTangent=[m[0]-x[0],m[1]-x[1]],d.endTangent=[n[0]-b[0],n[1]-b[1]]):(d.command="SQ",d.startTangent=[m[0]-b[0],m[1]-b[1]],d.endTangent=[n[0]-b[0],n[1]-b[1]])}else if("A"===p){var C=.001,P=d.arcParams||{},S=P.cx,O=void 0===S?0:S,w=P.cy,A=void 0===w?0:w,T=P.rx,E=void 0===T?0:T,I=P.ry,L=void 0===I?0:I,D=P.sweepFlag,B=void 0===D?0:D,j=P.startAngle,R=void 0===j?0:j,k=P.endAngle,F=void 0===k?0:k;0===B&&(C*=-1);var N=E*Math.cos(R-C)+O,G=L*Math.sin(R-C)+A;d.startTangent=[N-l[0],G-l[1]];var Y=E*Math.cos(R+F+C)+O,V=L*Math.sin(R+F-C)+A;d.endTangent=[m[0]-Y,m[1]-V]}e.push(d)}return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(187)),a=r.__importDefault(n(186)),o=n(1);function s(t){for(var e=[],n=t.length,r=0;r<n-1;r++){var i=t[r],a=t[r+1];e.push({from:{x:i[0],y:i[1]},to:{x:a[0],y:a[1]}})}if(e.length>1){var o=t[0],s=t[n-1];e.push({from:{x:s[0],y:s[1]},to:{x:o[0],y:o[1]}})}return e}function l(t){var e=t.map((function(t){return t[0]})),n=t.map((function(t){return t[1]}));return{minX:Math.min.apply(null,e),maxX:Math.max.apply(null,e),minY:Math.min.apply(null,n),maxY:Math.max.apply(null,n)}}e.default=function(t,e){if(t.length<2||e.length<2)return!1;var n,r,u=l(t),c=l(e);if(n=u,(r=c).minX>n.maxX||r.maxX<n.minX||r.minY>n.maxY||r.maxY<n.minY)return!1;var f=!1;if((0,o.each)(e,(function(e){if((0,i.default)(t,e[0],e[1]))return f=!0,!1})),f)return!0;if((0,o.each)(t,(function(t){if((0,i.default)(e,t[0],t[1]))return f=!0,!1})),f)return!0;var h=s(t),p=s(e),d=!1;return(0,o.each)(p,(function(t){if(function(t,e){var n=!1;return(0,o.each)(t,(function(t){if((0,a.default)(t.from,t.to,e.from,e.to))return n=!0,!1})),n}(h,t))return d=!0,!1})),d}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(99);e.default=function(t){var e=t.attr(),n=e.x1,i=e.y1,a=e.x2,o=e.y2,s={minX:Math.min(n,a),maxX:Math.max(n,a),minY:Math.min(i,o),maxY:Math.max(i,o)};return{x:(s=(0,r.mergeArrowBBox)(t,s)).minX,y:s.minY,width:s.maxX-s.minX,height:s.maxY-s.minY}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.attr(),n=e.x,r=e.y,i=e.rx,a=e.ry;return{x:n-i,y:r-a,width:2*i,height:2*a}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Adjust=e.registerAdjust=e.getAdjust=void 0;var r=n(5),i=r.__importDefault(n(51));e.Adjust=i.default;var a={},o=function(t){return a[t.toLowerCase()]};e.getAdjust=o;e.registerAdjust=function(t,e){if(o(t))throw new Error("Adjust type '"+t+"' existed.");a[t.toLowerCase()]=e},r.__exportStar(n(189),e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(5),i=n(5),a=r.__importStar(n(1)),o=n(101),s=function(t){function e(e){var n=t.call(this,e)||this;n.cacheMap={},n.adjustDataArray=[],n.mergeData=[];var r=e.marginRatio,i=void 0===r?o.MARGIN_RATIO:r,a=e.dodgeRatio,s=void 0===a?o.DODGE_RATIO:a,l=e.dodgeBy,u=e.intervalPadding,c=e.dodgePadding,f=e.xDimensionLength,h=e.groupNum,p=e.defaultSize,d=e.maxColumnWidth,g=e.minColumnWidth,y=e.columnWidthRatio,v=e.customOffset;return n.marginRatio=i,n.dodgeRatio=s,n.dodgeBy=l,n.intervalPadding=u,n.dodgePadding=c,n.xDimensionLegenth=f,n.groupNum=h,n.defaultSize=p,n.maxColumnWidth=d,n.minColumnWidth=g,n.columnWidthRatio=y,n.customOffset=v,n}return(0,i.__extends)(e,t),e.prototype.process=function(t){var e=a.clone(t),n=a.flatten(e),r=this.dodgeBy,i=r?a.group(n,r):e;return this.cacheMap={},this.adjustDataArray=i,this.mergeData=n,this.adjustData(i,n),this.adjustDataArray=[],this.mergeData=[],e},e.prototype.adjustDim=function(t,e,n,r){var i=this,o=this.customOffset,s=this.getDistribution(t),l=this.groupData(n,t);return a.each(l,(function(n,l){var u;u=1===e.length?{pre:e[0]-1,next:e[0]+1}:i.getAdjustRange(t,parseFloat(l),e),a.each(n,(function(e){var n=e[t],l=s[n],c=l.indexOf(r);if(a.isNil(o))e[t]=i.getDodgeOffset(u,c,l.length);else{var f=u.pre,h=u.next;e[t]=a.isFunction(o)?o(e,u):(f+h)/2+o}}))})),[]},e.prototype.getDodgeOffset=function(t,e,n){var r,i=this.dodgeRatio,o=this.marginRatio,s=this.intervalPadding,l=this.dodgePadding,u=t.pre,c=t.next,f=c-u;if(!a.isNil(s)&&a.isNil(l)&&s>=0)r=u+this.getIntervalOnlyOffset(n,e);else if(!a.isNil(l)&&a.isNil(s)&&l>=0){r=u+this.getDodgeOnlyOffset(n,e)}else if(!a.isNil(s)&&!a.isNil(l)&&s>=0&&l>=0){r=u+this.getIntervalAndDodgeOffset(n,e)}else{var h=f*i/n,p=o*h;r=(u+c)/2+(.5*(f-n*h-(n-1)*p)+((e+1)*h+e*p)-.5*h-.5*f)}return r},e.prototype.getIntervalOnlyOffset=function(t,e){var n=this,r=n.defaultSize,i=n.intervalPadding,o=n.xDimensionLegenth,s=n.groupNum,l=n.dodgeRatio,u=n.maxColumnWidth,c=n.minColumnWidth,f=n.columnWidthRatio,h=i/o,p=(1-(s-1)*h)/s*l/(t-1),d=((1-h*(s-1))/s-p*(t-1))/t;if(d=a.isNil(f)?d:1/s/t*f,!a.isNil(u)){var g=u/o;d=Math.min(d,g)}if(!a.isNil(c)){var y=c/o;d=Math.max(d,y)}return((.5+e)*(d=r?r/o:d)+e*(p=((1-(s-1)*h)/s-t*d)/(t-1))+.5*h)*s-h/2},e.prototype.getDodgeOnlyOffset=function(t,e){var n=this,r=n.defaultSize,i=n.dodgePadding,o=n.xDimensionLegenth,s=n.groupNum,l=n.marginRatio,u=n.maxColumnWidth,c=n.minColumnWidth,f=n.columnWidthRatio,h=i/o,p=1*l/(s-1),d=((1-p*(s-1))/s-h*(t-1))/t;if(d=f?1/s/t*f:d,!a.isNil(u)){var g=u/o;d=Math.min(d,g)}if(!a.isNil(c)){var y=c/o;d=Math.max(d,y)}return((.5+e)*(d=r?r/o:d)+e*h+.5*(p=(1-(d*t+h*(t-1))*s)/(s-1)))*s-p/2},e.prototype.getIntervalAndDodgeOffset=function(t,e){var n=this.intervalPadding,r=this.dodgePadding,i=this.xDimensionLegenth,a=this.groupNum,o=n/i,s=r/i;return((.5+e)*(((1-o*(a-1))/a-s*(t-1))/t)+e*s+.5*o)*a-o/2},e.prototype.getDistribution=function(t){var e=this.adjustDataArray,n=this.cacheMap,r=n[t];return r||(r={},a.each(e,(function(e,n){var i=a.valuesOfKey(e,t);i.length||i.push(0),a.each(i,(function(t){r[t]||(r[t]=[]),r[t].push(n)}))})),n[t]=r),r},e}(r.__importDefault(n(51)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(5),i=n(5),a=r.__importStar(n(1)),o=n(101);var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.process=function(t){var e=a.clone(t),n=a.flatten(e);return this.adjustData(e,n),e},e.prototype.adjustDim=function(t,e,n){var r=this,i=this.groupData(n,t);return a.each(i,(function(n,i){return r.adjustGroup(n,t,parseFloat(i),e)}))},e.prototype.getAdjustOffset=function(t){var e,n=t.pre,r=t.next,i=(r-n)*o.GAP;return(r-i-(e=n+i))*Math.random()+e},e.prototype.adjustGroup=function(t,e,n,r){var i=this,o=this.getAdjustRange(e,n,r);return a.each(t,(function(t){t[e]=i.getAdjustOffset(o)})),t},e}(r.__importDefault(n(51)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(5),i=n(5),a=r.__importStar(n(1)),o=r.__importDefault(n(51)),s=a.Cache,l=function(t){function e(e){var n=t.call(this,e)||this,r=e.adjustNames,i=void 0===r?["y"]:r,a=e.height,o=void 0===a?NaN:a,s=e.size,l=void 0===s?10:s,u=e.reverseOrder,c=void 0!==u&&u;return n.adjustNames=i,n.height=o,n.size=l,n.reverseOrder=c,n}return(0,i.__extends)(e,t),e.prototype.process=function(t){var e=this.yField,n=this.reverseOrder,r=e?this.processStack(t):this.processOneDimStack(t);return n?this.reverse(r):r},e.prototype.reverse=function(t){return t.slice(0).reverse()},e.prototype.processStack=function(t){var e=this.xField,n=this.yField,r=this.reverseOrder?this.reverse(t):t,o=new s,l=new s;return r.map((function(t){return t.map((function(t){var r,s=a.get(t,e,0),u=a.get(t,[n]),c=s.toString();if(u=a.isArray(u)?u[1]:u,!a.isNil(u)){var f=u>=0?o:l;f.has(c)||f.set(c,0);var h=f.get(c),p=u+h;return f.set(c,p),(0,i.__assign)((0,i.__assign)({},t),((r={})[n]=[h,p],r))}return t}))}))},e.prototype.processOneDimStack=function(t){var e=this,n=this.xField,r=this.height,a=this.reverseOrder,o=a?this.reverse(t):t,l=new s;return o.map((function(t){return t.map((function(t){var a,o=e.size,s=t[n],u=2*o/r;l.has(s)||l.set(s,u/2);var c=l.get(s);return l.set(s,c+u),(0,i.__assign)((0,i.__assign)({},t),((a={}).y=c,a))}))}))},e}(o.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(5),i=n(5),a=r.__importStar(n(1)),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.process=function(t){var e=a.flatten(t),n=this.xField,r=this.yField,o=this.getXValuesMaxMap(e),s=Math.max.apply(Math,Object.keys(o).map((function(t){return o[t]})));return a.map(t,(function(t){return a.map(t,(function(t){var e,l,u=t[r],c=t[n];if(a.isArray(u)){var f=(s-o[c])/2;return(0,i.__assign)((0,i.__assign)({},t),((e={})[r]=a.map(u,(function(t){return f+t})),e))}var h=(s-u)/2;return(0,i.__assign)((0,i.__assign)({},t),((l={})[r]=[h,u+h],l))}))}))},e.prototype.getXValuesMaxMap=function(t){var e=this,n=this.xField,r=this.yField,i=a.groupBy(t,(function(t){return t[n]}));return a.mapValues(i,(function(t){return e.getDimMaxValue(t,r)}))},e.prototype.getDimMaxValue=function(t,e){var n=a.map(t,(function(t){return a.get(t,e,[])})),r=a.flatten(n);return Math.max.apply(Math,r)},e}(r.__importDefault(n(51)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(5),i=n(5),a=r.__importDefault(n(70)),o=n(1),s=function(t){function e(e){var n=t.call(this,e)||this;return n.type="color",n.names=["color"],(0,o.isString)(n.values)&&(n.linear=!0),n.gradient=a.default.gradient(n.values),n}return(0,i.__extends)(e,t),e.prototype.getLinearValue=function(t){return this.gradient(t)},e}(r.__importDefault(n(40)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(5),i=n(5),a=function(t){function e(e){var n=t.call(this,e)||this;return n.type="opacity",n.names=["opacity"],n}return(0,i.__extends)(e,t),e}(r.__importDefault(n(40)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(5),i=n(5),a=n(1),o=function(t){function e(e){var n=t.call(this,e)||this;return n.names=["x","y"],n.type="position",n}return(0,i.__extends)(e,t),e.prototype.mapping=function(t,e){var n=this.scales,r=n[0],i=n[1];return(0,a.isNil)(t)||(0,a.isNil)(e)?[]:[(0,a.isArray)(t)?t.map((function(t){return r.scale(t)})):r.scale(t),(0,a.isArray)(e)?e.map((function(t){return i.scale(t)})):i.scale(e)]},e}(r.__importDefault(n(40)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(5),i=n(5),a=function(t){function e(e){var n=t.call(this,e)||this;return n.type="shape",n.names=["shape"],n}return(0,i.__extends)(e,t),e.prototype.getLinearValue=function(t){var e=Math.round((this.values.length-1)*t);return this.values[e]},e}(r.__importDefault(n(40)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(5),i=n(5),a=function(t){function e(e){var n=t.call(this,e)||this;return n.type="size",n.names=["size"],n}return(0,i.__extends)(e,t),e}(r.__importDefault(n(40)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Attribute=e.registerAttribute=e.getAttribute=void 0;var r=n(5),i=r.__importDefault(n(40));e.Attribute=i.default;var a={},o=function(t){return a[t.toLowerCase()]};e.getAttribute=o;e.registerAttribute=function(t,e){if(o(t))throw new Error("Attribute type '"+t+"' existed.");a[t.toLowerCase()]=e},r.__exportStar(n(190),e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(71),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="timeCat",e}return(0,i.__extends)(e,t),e.prototype.translate=function(t){t=(0,o.toTimeStamp)(t);var e=this.values.indexOf(t);return-1===e&&(e=(0,a.isNumber)(t)&&t<this.values.length?t:NaN),e},e.prototype.getText=function(t,e){var n=this.translate(t);if(n>-1){var r=this.values[n],i=this.formatter;return r=i?i(r,e):(0,o.timeFormat)(r,this.mask)}return t},e.prototype.initCfg=function(){this.tickMethod="time-cat",this.mask="YYYY-MM-DD",this.tickCount=7},e.prototype.setDomain=function(){var e=this.values;(0,a.each)(e,(function(t,n){e[n]=(0,o.toTimeStamp)(t)})),e.sort((function(t,e){return t-e})),t.prototype.setDomain.call(this)},e}(r.__importDefault(n(192)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1);e.default=function(t){return function(e,n,i,a){for(var o=(0,r.isNil)(i)?0:i,s=(0,r.isNil)(a)?e.length:a;o<s;){var l=o+s>>>1;t(e[l])>n?s=l:o=l+1}return o}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(73),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e}return(0,i.__extends)(e,t),e.prototype.invert=function(t){var e,n=this.base,r=(0,a.log)(n,this.max),i=this.rangeMin(),o=this.rangeMax()-i,s=this.positiveMin;if(s){if(0===t)return 0;var l=1/(r-(e=(0,a.log)(n,s/n)))*o;if(t<l)return t/l*s}else e=(0,a.log)(n,this.min);var u=(t-i)/o*(r-e)+e;return Math.pow(n,u)},e.prototype.initCfg=function(){this.tickMethod="log",this.base=10,this.tickCount=6,this.nice=!0},e.prototype.setDomain=function(){t.prototype.setDomain.call(this);var e=this.min;if(e<0)throw new Error("When you use log scale, the minimum value must be greater than zero!");0===e&&(this.positiveMin=(0,a.getLogPositiveMin)(this.values,this.base,this.max))},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;if(e===n)return 0;if(t<=0)return 0;var r=this.base,i=this.positiveMin;return i&&(n=1*i/r),t<i?t/i/((0,a.log)(r,e)-(0,a.log)(r,n)):((0,a.log)(r,t)-(0,a.log)(r,n))/((0,a.log)(r,e)-(0,a.log)(r,n))},e}(r.__importDefault(n(72)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(73),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="pow",e}return(0,i.__extends)(e,t),e.prototype.invert=function(t){var e=this.getInvertPercent(t),n=this.exponent,r=(0,a.calBase)(n,this.max),i=(0,a.calBase)(n,this.min),o=e*(r-i)+i,s=o>=0?1:-1;return Math.pow(o,n)*s},e.prototype.initCfg=function(){this.tickMethod="pow",this.exponent=2,this.tickCount=5,this.nice=!0},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;if(e===n)return 0;var r=this.exponent;return((0,a.calBase)(r,t)-(0,a.calBase)(r,n))/((0,a.calBase)(r,e)-(0,a.calBase)(r,n))},e}(r.__importDefault(n(72)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(71),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="time",e}return(0,i.__extends)(e,t),e.prototype.getText=function(t,e){var n=this.translate(t),r=this.formatter;return r?r(n,e):(0,o.timeFormat)(n,this.mask)},e.prototype.scale=function(e){var n=e;return((0,a.isString)(n)||(0,a.isDate)(n))&&(n=this.translate(n)),t.prototype.scale.call(this,n)},e.prototype.translate=function(t){return(0,o.toTimeStamp)(t)},e.prototype.initCfg=function(){this.tickMethod="time-pretty",this.mask="YYYY-MM-DD",this.tickCount=7,this.nice=!1},e.prototype.setDomain=function(){var t=this.values,e=this.getConfig("min"),n=this.getConfig("max");if((0,a.isNil)(e)&&(0,a.isNumber)(e)||(this.min=this.translate(this.min)),(0,a.isNil)(n)&&(0,a.isNumber)(n)||(this.max=this.translate(this.max)),t&&t.length){var r=[],i=1/0,s=i,l=0;(0,a.each)(t,(function(t){var e=(0,o.toTimeStamp)(t);if(isNaN(e))throw new TypeError("Invalid Time: "+t+" in time scale!");i>e?(s=i,i=e):s>e&&(s=e),l<e&&(l=e),r.push(e)})),t.length>1&&(this.minTickInterval=s-i),(0,a.isNil)(e)&&(this.min=i),(0,a.isNil)(n)&&(this.max=l)}},e}(r.__importDefault(n(194)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantile",e}return(0,i.__extends)(e,t),e.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},e}(r.__importDefault(n(195)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerScale=e.getScale=e.Scale=void 0;var r=n(0).__importDefault(n(59));e.Scale=r.default;var i={};function a(t){return i[t]}e.getScale=a,e.registerScale=function(t,e){if(a(t))throw new Error("type '"+t+"' existed.");i[t]=e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="identity",e.isIdentity=!0,e}return(0,i.__extends)(e,t),e.prototype.calculateTicks=function(){return this.values},e.prototype.scale=function(t){return this.values[0]!==t&&(0,a.isNumber)(t)?t:this.range[0]},e.prototype.invert=function(t){var e=this.range;return t<e[0]||t>e[1]?NaN:this.values[0]},e}(r.__importDefault(n(59)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerTickMethod=e.getTickMethod=void 0;var r=n(0),i=r.__importDefault(n(196)),a=r.__importDefault(n(412)),o=r.__importDefault(n(414)),s=r.__importDefault(n(416)),l=r.__importDefault(n(417)),u=r.__importDefault(n(418)),c=r.__importDefault(n(419)),f=n(191);Object.defineProperty(e,"getTickMethod",{enumerable:!0,get:function(){return f.getTickMethod}}),Object.defineProperty(e,"registerTickMethod",{enumerable:!0,get:function(){return f.registerTickMethod}});var h=r.__importDefault(n(420)),p=r.__importDefault(n(421)),d=r.__importDefault(n(422));(0,f.registerTickMethod)("cat",i.default),(0,f.registerTickMethod)("time-cat",p.default),(0,f.registerTickMethod)("wilkinson-extended",o.default),(0,f.registerTickMethod)("r-pretty",c.default),(0,f.registerTickMethod)("time",h.default),(0,f.registerTickMethod)("time-pretty",d.default),(0,f.registerTickMethod)("log",s.default),(0,f.registerTickMethod)("pow",l.default),(0,f.registerTickMethod)("quantile",u.default),(0,f.registerTickMethod)("d3-linear",a.default)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=r.__importDefault(n(413)),o=r.__importDefault(n(104)),s=r.__importDefault(n(105));e.default=function(t){var e=t.min,n=t.max,r=t.tickInterval,l=t.minLimit,u=t.maxLimit,c=(0,a.default)(t);return(0,i.isNil)(l)&&(0,i.isNil)(u)?r?(0,o.default)(e,n,r).ticks:c:(0,s.default)(t,(0,i.head)(c),(0,i.last)(c))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.D3Linear=void 0,e.default=function(t){var e=t.min,n=t.max,r=t.nice,i=t.tickCount,a=new o;return a.domain([e,n]),r&&a.nice(i),a.ticks(i)};var r=Math.sqrt(50),i=Math.sqrt(10),a=Math.sqrt(2),o=function(){function t(){this._domain=[0,1]}return t.prototype.domain=function(t){return t?(this._domain=Array.from(t,Number),this):this._domain.slice()},t.prototype.nice=function(t){var e,n;void 0===t&&(t=5);var r,i=this._domain.slice(),a=0,o=this._domain.length-1,l=this._domain[a],u=this._domain[o];return u<l&&(l=(e=[u,l])[0],u=e[1],a=(n=[o,a])[0],o=n[1]),(r=s(l,u,t))>0?r=s(l=Math.floor(l/r)*r,u=Math.ceil(u/r)*r,t):r<0&&(r=s(l=Math.ceil(l*r)/r,u=Math.floor(u*r)/r,t)),r>0?(i[a]=Math.floor(l/r)*r,i[o]=Math.ceil(u/r)*r,this.domain(i)):r<0&&(i[a]=Math.ceil(l*r)/r,i[o]=Math.floor(u*r)/r,this.domain(i)),this},t.prototype.ticks=function(t){return void 0===t&&(t=5),function(t,e,n){var r,i,a,o,l=-1;if(n=+n,(t=+t)===(e=+e)&&n>0)return[t];(r=e<t)&&(i=t,t=e,e=i);if(0===(o=s(t,e,n))||!isFinite(o))return[];if(o>0)for(t=Math.ceil(t/o),e=Math.floor(e/o),a=new Array(i=Math.ceil(e-t+1));++l<i;)a[l]=(t+l)*o;else for(t=Math.floor(t*o),e=Math.ceil(e*o),a=new Array(i=Math.ceil(t-e+1));++l<i;)a[l]=(t-l)/o;r&&a.reverse();return a}(this._domain[0],this._domain[this._domain.length-1],t||5)},t}();function s(t,e,n){var o=(e-t)/Math.max(0,n),s=Math.floor(Math.log(o)/Math.LN10),l=o/Math.pow(10,s);return s>=0?(l>=r?10:l>=i?5:l>=a?2:1)*Math.pow(10,s):-Math.pow(10,-s)/(l>=r?10:l>=i?5:l>=a?2:1)}e.D3Linear=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=r.__importDefault(n(415)),o=r.__importDefault(n(104)),s=r.__importDefault(n(105));e.default=function(t){var e=t.min,n=t.max,r=t.tickCount,l=t.nice,u=t.tickInterval,c=t.minLimit,f=t.maxLimit,h=(0,a.default)(e,n,r,l).ticks;return(0,i.isNil)(c)&&(0,i.isNil)(f)?u?(0,o.default)(e,n,u).ticks:h:(0,s.default)(t,(0,i.head)(h),(0,i.last)(h))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ALL_Q=e.DEFAULT_Q=void 0;var r=n(1),i=n(197);e.DEFAULT_Q=[1,5,2,2.5,4,3],e.ALL_Q=[1,5,2,2.5,4,3,1.5,7,6,8,9];var a=100*Number.EPSILON;function o(t,e,n,i,o,s){var l=(0,r.size)(e),u=(0,r.indexOf)(e,t),c=0,f=function(t,e){return(t%e+e)%e}(i,s);return(f<a||s-f<a)&&i<=0&&o>=0&&(c=1),1-u/(l-1)-n+c}function s(t,e,n){var i=(0,r.size)(e);return 1-(0,r.indexOf)(e,t)/(i-1)-n+1}function l(t,e,n,r,i,a){var o=(t-1)/(a-i),s=(e-1)/(Math.max(a,r)-Math.min(n,i));return 2-Math.max(o/s,s/o)}function u(t,e){return t>=e?2-(t-1)/(e-1):1}function c(t,e,n,r){var i=e-t;return 1-.5*(Math.pow(e-r,2)+Math.pow(t-n,2))/Math.pow(.1*i,2)}function f(t,e,n){var r=e-t;if(n>r){var i=(n-r)/2;return 1-Math.pow(i,2)/Math.pow(.1*r,2)}return 1}e.default=function(t,n,a,h,p,d){void 0===a&&(a=5),void 0===h&&(h=!0),void 0===p&&(p=e.DEFAULT_Q),void 0===d&&(d=[.25,.2,.5,.05]);var g=a<0?0:Math.round(a);if(Number.isNaN(t)||Number.isNaN(n)||"number"!=typeof t||"number"!=typeof n||!g)return{min:0,max:0,ticks:[]};if(n-t<1e-15||1===g)return{min:t,max:n,ticks:[t]};for(var y={score:-2,lmin:0,lmax:0,lstep:0},v=1;v<1/0;){for(var m=0;m<p.length;m+=1){var _=p[m],x=s(_,p,v);if(d[0]*x+d[1]+d[2]+d[3]<y.score){v=1/0;break}for(var b=2;b<1/0;){var M=u(b,g);if(d[0]*x+d[1]+d[2]*M+d[3]<y.score)break;for(var C=(n-t)/(b+1)/v/_,P=Math.ceil(Math.log10(C));P<1/0;){var S=v*_*Math.pow(10,P),O=f(t,n,S*(b-1));if(d[0]*x+d[1]*O+d[2]*M+d[3]<y.score)break;var w=Math.floor(n/S)*v-(b-1)*v,A=Math.ceil(t/S)*v;if(w<=A)for(var T=A-w,E=0;E<=T;E+=1){var I=(w+E)*(S/v),L=I+S*(b-1),D=S,B=o(_,p,v,I,L,D),j=c(t,n,I,L),R=l(b,g,t,n,I,L),k=d[0]*B+d[1]*j+d[2]*R+1*d[3];k>y.score&&(!h||I<=t&&L>=n)&&(y.lmin=I,y.lmax=L,y.lstep=D,y.score=k)}P+=1}b+=1}}v+=1}var F=(0,i.prettyNumber)(y.lmax),N=(0,i.prettyNumber)(y.lmin),G=(0,i.prettyNumber)(y.lstep),Y=Math.floor(function(t){return Math.round(1e12*t)/1e12}((F-N)/G))+1,V=new Array(Y);for(V[0]=(0,i.prettyNumber)(N),m=1;m<Y;m++)V[m]=(0,i.prettyNumber)(V[m-1]+G);return{min:Math.min(t,(0,r.head)(V)),max:Math.max(n,(0,r.last)(V)),ticks:V}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(73);e.default=function(t){var e,n=t.base,i=t.tickCount,a=t.min,o=t.max,s=t.values,l=(0,r.log)(n,o);if(a>0)e=Math.floor((0,r.log)(n,a));else{var u=(0,r.getLogPositiveMin)(s,n,o);e=Math.floor((0,r.log)(n,u))}for(var c=l-e,f=Math.ceil(c/i),h=[],p=e;p<l+f;p+=f)h.push(Math.pow(n,p));return a<=0&&h.unshift(0),h}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(73),a=r.__importDefault(n(198));e.default=function(t){var e=t.exponent,n=t.tickCount,r=Math.ceil((0,i.calBase)(e,t.max)),o=Math.floor((0,i.calBase)(e,t.min));return(0,a.default)(o,r,n).ticks.map((function(t){var n=t>=0?1:-1;return Math.pow(t,e)*n}))}},function(t,e,n){"use strict";function r(t,e){var n=t.length*e;return 1===e?t[t.length-1]:0===e?t[0]:n%1!=0?t[Math.ceil(n)-1]:t.length%2==0?(t[n-1]+t[n])/2:t[n]}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.tickCount,n=t.values;if(!n||!n.length)return[];for(var i=n.slice().sort((function(t,e){return t-e})),a=[],o=0;o<e;o++){var s=o/(e-1);a.push(r(i,s))}return a}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=r.__importDefault(n(104)),o=r.__importDefault(n(198)),s=r.__importDefault(n(105));e.default=function(t){var e=t.min,n=t.max,r=t.tickCount,l=t.tickInterval,u=t.minLimit,c=t.maxLimit,f=(0,o.default)(e,n,r).ticks;return(0,i.isNil)(u)&&(0,i.isNil)(c)?l?(0,a.default)(e,n,l).ticks:f:(0,s.default)(t,(0,i.head)(f),(0,i.last)(f))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(71);e.default=function(t){var e=t.min,n=t.max,i=t.minTickInterval,a=t.tickInterval,o=t.tickCount;if(a)o=Math.ceil((n-e)/a);else{var s=(n-e)/(a=(0,r.getTickInterval)(e,n,o)[1])/o;s>1&&(a*=Math.ceil(s)),i&&a<i&&(a=i)}a=Math.max(Math.floor((n-e)/(Math.pow(2,12)-1)),a);for(var l=[],u=e;u<n+a;u+=a)l.push(u);return l}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=r.__importDefault(n(196));e.default=function(t){return(0,a.default)((0,i.__assign)({showLast:!0},t))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(71);function i(t){return new Date(t).getFullYear()}function a(t){return new Date(t,0,1).getTime()}function o(t){return new Date(t).getMonth()}function s(t,e){return new Date(t,e,1).getTime()}e.default=function(t){var e=t.min,n=t.max,l=t.minTickInterval,u=t.tickCount,c=t.tickInterval,f=[];c||(c=(n-e)/u,l&&c<l&&(c=l)),c=Math.max(Math.floor((n-e)/(Math.pow(2,12)-1)),c);var h=i(e);if(c>r.YEAR)for(var p=i(n),d=Math.ceil(c/r.YEAR),g=h;g<=p+d;g+=d)f.push(a(g));else if(c>r.MONTH){var y=Math.ceil(c/r.MONTH),v=o(e),m=function(t,e){var n=i(t),r=i(e),a=o(t);return 12*(r-n)+(o(e)-a)%12}(e,n);for(g=0;g<=m+y;g+=y)f.push(s(h,g+v))}else if(c>r.DAY){var _=(P=new Date(e)).getFullYear(),x=P.getMonth(),b=P.getDate(),M=Math.ceil(c/r.DAY),C=function(t,e){return Math.ceil((e-t)/r.DAY)}(e,n);for(g=0;g<C+M;g+=M)f.push(new Date(_,x,b+g).getTime())}else if(c>r.HOUR){_=(P=new Date(e)).getFullYear(),x=P.getMonth(),M=P.getDate();var P,S=P.getHours(),O=Math.ceil(c/r.HOUR),w=function(t,e){return Math.ceil((e-t)/r.HOUR)}(e,n);for(g=0;g<=w+O;g+=O)f.push(new Date(_,x,M,S+g).getTime())}else if(c>r.MINUTE){var A=function(t,e){return Math.ceil((e-t)/6e4)}(e,n),T=Math.ceil(c/r.MINUTE);for(g=0;g<=A+T;g+=T)f.push(e+g*r.MINUTE)}else{var E=c;E<r.SECOND&&(E=r.SECOND);var I=Math.floor(e/r.SECOND)*r.SECOND,L=Math.ceil((n-e)/r.SECOND),D=Math.ceil(E/r.SECOND);for(g=0;g<L+D;g+=D)f.push(I+g*r.SECOND)}return f.length>=512&&console.warn("Notice: current ticks length("+f.length+') >= 512, may cause performance issues, even out of memory. Because of the configure "tickInterval"(in milliseconds, current is '+c+") is too small, increase the value to solve the problem!"),f}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Coordinate=e.registerCoordinate=e.getCoordinate=void 0;var r=n(0),i=r.__importDefault(n(74));e.Coordinate=i.default;var a=r.__importDefault(n(424)),o=r.__importDefault(n(425)),s=r.__importDefault(n(426)),l=n(427);Object.defineProperty(e,"getCoordinate",{enumerable:!0,get:function(){return l.getCoordinate}}),Object.defineProperty(e,"registerCoordinate",{enumerable:!0,get:function(){return l.registerCoordinate}}),(0,l.registerCoordinate)("rect",a.default),(0,l.registerCoordinate)("cartesian",a.default),(0,l.registerCoordinate)("polar",s.default),(0,l.registerCoordinate)("helix",o.default)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=function(t){function e(e){var n=t.call(this,e)||this;return n.isRect=!0,n.type="cartesian",n.initial(),n}return(0,i.__extends)(e,t),e.prototype.initial=function(){t.prototype.initial.call(this);var e=this.start,n=this.end;this.x={start:e.x,end:n.x},this.y={start:e.y,end:n.y}},e.prototype.convertPoint=function(t){var e,n=t.x,r=t.y;return this.isTransposed&&(n=(e=[r,n])[0],r=e[1]),{x:this.convertDim(n,"x"),y:this.convertDim(r,"y")}},e.prototype.invertPoint=function(t){var e,n=this.invertDim(t.x,"x"),r=this.invertDim(t.y,"y");return this.isTransposed&&(n=(e=[r,n])[0],r=e[1]),{x:n,y:r}},e}(r.__importDefault(n(74)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(8),o=n(1),s=function(t){function e(e){var n=t.call(this,e)||this;n.isHelix=!0,n.type="helix";var r=e.startAngle,i=void 0===r?1.25*Math.PI:r,a=e.endAngle,o=void 0===a?7.25*Math.PI:a,s=e.innerRadius,l=void 0===s?0:s,u=e.radius;return n.startAngle=i,n.endAngle=o,n.innerRadius=l,n.radius=u,n.initial(),n}return(0,i.__extends)(e,t),e.prototype.initial=function(){t.prototype.initial.call(this);var e=(this.endAngle-this.startAngle)/(2*Math.PI)+1,n=Math.min(this.width,this.height)/2;this.radius&&this.radius>=0&&this.radius<=1&&(n*=this.radius),this.d=Math.floor(n*(1-this.innerRadius)/e),this.a=this.d/(2*Math.PI),this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*n,end:this.innerRadius*n+.99*this.d}},e.prototype.convertPoint=function(t){var e,n=t.x,r=t.y;this.isTransposed&&(n=(e=[r,n])[0],r=e[1]);var i=this.convertDim(n,"x"),a=this.a*i,o=this.convertDim(r,"y");return{x:this.center.x+Math.cos(i)*(a+o),y:this.center.y+Math.sin(i)*(a+o)}},e.prototype.invertPoint=function(t){var e,n=this.d+this.y.start,r=a.vec2.subtract([0,0],[t.x,t.y],[this.center.x,this.center.y]),i=a.ext.angleTo(r,[1,0],!0),s=i*this.a;a.vec2.length(r)<s&&(s=a.vec2.length(r)),i=2*Math.floor((a.vec2.length(r)-s)/n)*Math.PI+i;var l=this.a*i,u=a.vec2.length(r)-l;u=(0,o.isNumberEqual)(u,0)?0:u;var c=this.invertDim(i,"x"),f=this.invertDim(u,"y");return c=(0,o.isNumberEqual)(c,0)?0:c,f=(0,o.isNumberEqual)(f,0)?0:f,this.isTransposed&&(c=(e=[f,c])[0],f=e[1]),{x:c,y:f}},e}(r.__importDefault(n(74)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(8),o=n(1),s=function(t){function e(e){var n=t.call(this,e)||this;n.isPolar=!0,n.type="polar";var r=e.startAngle,i=void 0===r?-Math.PI/2:r,a=e.endAngle,o=void 0===a?3*Math.PI/2:a,s=e.innerRadius,l=void 0===s?0:s,u=e.radius;return n.startAngle=i,n.endAngle=o,n.innerRadius=l,n.radius=u,n.initial(),n}return(0,i.__extends)(e,t),e.prototype.initial=function(){for(t.prototype.initial.call(this);this.endAngle<this.startAngle;)this.endAngle+=2*Math.PI;var e,n=this.getOneBox(),r=n.maxX-n.minX,i=n.maxY-n.minY,a=Math.abs(n.minX)/r,o=Math.abs(n.minY)/i;this.height/i>this.width/r?(e=this.width/r,this.circleCenter={x:this.center.x-(.5-a)*this.width,y:this.center.y-(.5-o)*e*i}):(e=this.height/i,this.circleCenter={x:this.center.x-(.5-a)*e*r,y:this.center.y-(.5-o)*this.height}),this.polarRadius=this.radius,this.radius?this.radius>0&&this.radius<=1?this.polarRadius=e*this.radius:(this.radius<=0||this.radius>e)&&(this.polarRadius=e):this.polarRadius=e,this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*this.polarRadius,end:this.polarRadius}},e.prototype.getRadius=function(){return this.polarRadius},e.prototype.convertPoint=function(t){var e,n=this.getCenter(),r=t.x,i=t.y;return this.isTransposed&&(r=(e=[i,r])[0],i=e[1]),r=this.convertDim(r,"x"),i=this.convertDim(i,"y"),{x:n.x+Math.cos(r)*i,y:n.y+Math.sin(r)*i}},e.prototype.invertPoint=function(t){var e,n=this.getCenter(),r=[t.x-n.x,t.y-n.y],i=this.startAngle,s=this.endAngle;this.isReflect("x")&&(i=(e=[s,i])[0],s=e[1]);var l=[1,0,0,0,1,0,0,0,1];a.ext.leftRotate(l,l,i);var u=[1,0,0];a.vec3.transformMat3(u,u,l);var c=[u[0],u[1]],f=a.ext.angleTo(c,r,s<i);(0,o.isNumberEqual)(f,2*Math.PI)&&(f=0);var h=a.vec2.length(r),p=f/(s-i);p=s-i>0?p:-p;var d=this.invertDim(h,"y"),g={x:0,y:0};return g.x=this.isTransposed?d:p,g.y=this.isTransposed?p:d,g},e.prototype.getCenter=function(){return this.circleCenter},e.prototype.getOneBox=function(){var t=this.startAngle,e=this.endAngle;if(Math.abs(e-t)>=2*Math.PI)return{minX:-1,maxX:1,minY:-1,maxY:1};for(var n=[0,Math.cos(t),Math.cos(e)],r=[0,Math.sin(t),Math.sin(e)],i=Math.min(t,e);i<Math.max(t,e);i+=Math.PI/18)n.push(Math.cos(i)),r.push(Math.sin(i));return{minX:Math.min.apply(Math,n),maxX:Math.max.apply(Math,n),minY:Math.min.apply(Math,r),maxY:Math.max.apply(Math,r)}},e}(r.__importDefault(n(74)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerCoordinate=e.getCoordinate=void 0;var r=n(0),i={};e.getCoordinate=function(t){return i[t.toLowerCase()]};e.registerCoordinate=function(t,e){i[t.toLowerCase()]=e},r.__exportStar(n(428),e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Html=e.Shape=e.RegionFilter=e.DataRegion=e.DataMarker=e.Image=e.Region=e.Arc=e.Text=e.Line=void 0;var i=n(430);Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return r(i).default}});var a=n(432);Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return r(a).default}});var o=n(433);Object.defineProperty(e,"Arc",{enumerable:!0,get:function(){return r(o).default}});var s=n(434);Object.defineProperty(e,"Region",{enumerable:!0,get:function(){return r(s).default}});var l=n(435);Object.defineProperty(e,"Image",{enumerable:!0,get:function(){return r(l).default}});var u=n(436);Object.defineProperty(e,"DataMarker",{enumerable:!0,get:function(){return r(u).default}});var c=n(437);Object.defineProperty(e,"DataRegion",{enumerable:!0,get:function(){return r(c).default}});var f=n(438);Object.defineProperty(e,"RegionFilter",{enumerable:!0,get:function(){return r(f).default}});var h=n(439);Object.defineProperty(e,"Shape",{enumerable:!0,get:function(){return r(h).default}});var p=n(440);Object.defineProperty(e,"Html",{enumerable:!0,get:function(){return r(p).default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=r.__importDefault(n(9)),s=n(75),l=r.__importDefault(n(21)),u=n(10),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"annotation",type:"line",locationType:"region",start:null,end:null,style:{},text:null,defaultCfg:{style:{fill:l.default.textColor,fontSize:12,textAlign:"center",textBaseline:"bottom",fontFamily:l.default.fontFamily},text:{position:"center",autoRotate:!0,content:null,offsetX:0,offsetY:0,style:{stroke:l.default.lineColor,lineWidth:1}}}})},e.prototype.renderInner=function(t){this.renderLine(t),this.get("text")&&this.renderLabel(t)},e.prototype.renderLine=function(t){var e=this.get("start"),n=this.get("end"),r=this.get("style");this.addShape(t,{type:"line",id:this.getElementId("line"),name:"annotation-line",attrs:(0,i.__assign)({x1:e.x,y1:e.y,x2:n.x,y2:n.y},r)})},e.prototype.getLabelPoint=function(t,e,n){var r;return((r="start"===n?0:"center"===n?.5:(0,a.isString)(n)&&-1!==n.indexOf("%")?parseInt(n,10)/100:(0,a.isNumber)(n)?n:1)>1||r<0)&&(r=1),{x:(0,u.getValueByPercent)(t.x,e.x,r),y:(0,u.getValueByPercent)(t.y,e.y,r)}},e.prototype.renderLabel=function(t){var e=this.get("text"),n=this.get("start"),r=this.get("end"),i=e.position,a=e.content,o=e.style,l=e.offsetX,u=e.offsetY,c=e.autoRotate,f=e.maxLength,h=e.autoEllipsis,p=e.ellipsisPosition,d=e.background,g=e.isVertical,y=void 0!==g&&g,v=this.getLabelPoint(n,r,i),m=v.x+l,_=v.y+u,x={id:this.getElementId("line-text"),name:"annotation-line-text",x:m,y:_,content:a,style:o,maxLength:f,autoEllipsis:h,ellipsisPosition:p,background:d,isVertical:y};if(c){var b=[r.x-n.x,r.y-n.y];x.rotate=Math.atan2(b[1],b[0])}(0,s.renderTag)(t,x)},e}(o.default);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ellipsisString=e.charAtLength=e.strLen=void 0;function r(t,e){return t.charCodeAt(e)>0&&t.charCodeAt(e)<128?1:2}e.strLen=function(t){for(var e=0,n=0;n<t.length;n++)e+=r(t,n);return e},e.charAtLength=r,e.ellipsisString=function(t,e,n){void 0===n&&(n="tail");var i=t.length,a="";if("tail"===n){for(var o=0,s=0;o<e;){if(!(o+r(t,s)<=e))break;a+=t[s],o+=r(t,s),s++}a+="…"}else if("head"===n){for(o=0,s=i-1;o<e;){if(!(o+r(t,s)<=e))break;a+=t[s],o+=r(t,s),s--}a="…"+a}else{for(var l="",u="",c=(o=0,0),f=i-1;o<e;){var h=r(t,c),p=!1;h+o<=e&&(l+=t[c],c++,o+=h,p=!0);var d=r(t,f);if(d+o<=e&&(u=t[f]+u,o+=d,f--,p=!0),!p)break}a=l+"…"+u}return a}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=r.__importDefault(n(9)),o=n(75),s=n(33),l=r.__importDefault(n(21)),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"annotation",type:"text",locationType:"point",x:0,y:0,content:"",rotate:null,style:{},background:null,maxLength:null,autoEllipsis:!0,isVertical:!1,ellipsisPosition:"tail",defaultCfg:{style:{fill:l.default.textColor,fontSize:12,textAlign:"center",textBaseline:"middle",fontFamily:l.default.fontFamily}}})},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetLocation()},e.prototype.renderInner=function(t){var e=this.getLocation(),n=e.x,r=e.y,i=this.get("content"),a=this.get("style"),s={id:this.getElementId("text"),name:this.get("name")+"-text",x:n,y:r,content:i,style:a,maxLength:this.get("maxLength"),autoEllipsis:this.get("autoEllipsis"),isVertical:this.get("isVertical"),ellipsisPosition:this.get("ellipsisPosition"),background:this.get("background"),rotate:this.get("rotate")};(0,o.renderTag)(t,s)},e.prototype.resetLocation=function(){var t=this.getElementByLocalId("text-group");if(t){var e=this.getLocation(),n=e.x,r=e.y,i=this.get("rotate");(0,s.applyTranslate)(t,n,r),(0,s.applyRotate)(t,i,n,r)}},e}(a.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=r.__importDefault(n(9)),o=n(10),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"annotation",type:"arc",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:3*Math.PI/2,style:{stroke:"#999",lineWidth:1}})},e.prototype.renderInner=function(t){this.renderArc(t)},e.prototype.getArcPath=function(){var t=this.getLocation(),e=t.center,n=t.radius,r=t.startAngle,i=t.endAngle,a=(0,o.getCirclePoint)(e,n,r),s=(0,o.getCirclePoint)(e,n,i),l=i-r>Math.PI?1:0,u=[["M",a.x,a.y]];if(i-r==2*Math.PI){var c=(0,o.getCirclePoint)(e,n,r+Math.PI);u.push(["A",n,n,0,l,1,c.x,c.y]),u.push(["A",n,n,0,l,1,s.x,s.y])}else u.push(["A",n,n,0,l,1,s.x,s.y]);return u},e.prototype.renderArc=function(t){var e=this.getArcPath(),n=this.get("style");this.addShape(t,{type:"path",id:this.getElementId("arc"),name:"annotation-arc",attrs:(0,i.__assign)({path:e},n)})},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=r.__importDefault(n(9)),o=r.__importDefault(n(21)),s=n(10),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"annotation",type:"region",locationType:"region",start:null,end:null,style:{},defaultCfg:{style:{lineWidth:0,fill:o.default.regionColor,opacity:.4}}})},e.prototype.renderInner=function(t){this.renderRegion(t)},e.prototype.renderRegion=function(t){var e=this.get("start"),n=this.get("end"),r=this.get("style"),a=(0,s.regionToBBox)({start:e,end:n});this.addShape(t,{type:"rect",id:this.getElementId("region"),name:"annotation-region",attrs:(0,i.__assign)({x:a.x,y:a.y,width:a.width,height:a.height},r)})},e}(a.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=r.__importDefault(n(9)),o=n(10),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"annotation",type:"image",locationType:"region",start:null,end:null,src:null,style:{}})},e.prototype.renderInner=function(t){this.renderImage(t)},e.prototype.getImageAttrs=function(){var t=this.get("start"),e=this.get("end"),n=this.get("style"),r=(0,o.regionToBBox)({start:t,end:e}),a=this.get("src");return(0,i.__assign)({x:r.x,y:r.y,img:a,width:r.width,height:r.height},n)},e.prototype.renderImage=function(t){this.addShape(t,{type:"image",id:this.getElementId("image"),name:"annotation-image",attrs:this.getImageAttrs()})},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=r.__importDefault(n(9)),s=n(75),l=n(33),u=r.__importDefault(n(21)),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"annotation",type:"dataMarker",locationType:"point",x:0,y:0,point:{},line:{},text:{},direction:"upward",autoAdjust:!0,coordinateBBox:null,defaultCfg:{point:{display:!0,style:{r:3,fill:"#FFFFFF",stroke:"#1890FF",lineWidth:2}},line:{display:!0,length:20,style:{stroke:u.default.lineColor,lineWidth:1}},text:{content:"",display:!0,style:{fill:u.default.textColor,opacity:.65,fontSize:12,textAlign:"start",fontFamily:u.default.fontFamily}}}})},e.prototype.renderInner=function(t){(0,a.get)(this.get("line"),"display")&&this.renderLine(t),(0,a.get)(this.get("text"),"display")&&this.renderText(t),(0,a.get)(this.get("point"),"display")&&this.renderPoint(t),this.get("autoAdjust")&&this.autoAdjust(t)},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x")+this.get("offsetX"),y:this.get("y")+this.get("offsetY")})},e.prototype.renderPoint=function(t){var e=this.getShapeAttrs().point;this.addShape(t,{type:"circle",id:this.getElementId("point"),name:"annotation-point",attrs:e})},e.prototype.renderLine=function(t){var e=this.getShapeAttrs().line;this.addShape(t,{type:"path",id:this.getElementId("line"),name:"annotation-line",attrs:e})},e.prototype.renderText=function(t){var e=this.getShapeAttrs().text,n=e.x,r=e.y,a=e.text,o=(0,i.__rest)(e,["x","y","text"]),l=this.get("text"),u=l.background,c=l.maxLength,f=l.autoEllipsis,h=l.isVertival,p=l.ellipsisPosition,d={x:n,y:r,id:this.getElementId("text"),name:"annotation-text",content:a,style:o,background:u,maxLength:c,autoEllipsis:f,isVertival:h,ellipsisPosition:p};(0,s.renderTag)(t,d)},e.prototype.autoAdjust=function(t){var e=this.get("direction"),n=this.get("x"),r=this.get("y"),i=(0,a.get)(this.get("line"),"length",0),o=this.get("coordinateBBox"),s=t.getBBox(),u=s.minX,c=s.maxX,f=s.minY,h=s.maxY,p=t.findById(this.getElementId("text-group")),d=t.findById(this.getElementId("text")),g=t.findById(this.getElementId("line"));if(o){if(p){if(n+u<=o.minX){var y=o.minX-(n+u);(0,l.applyTranslate)(p,p.attr("x")+y,p.attr("y"))}if(n+c>=o.maxX){y=n+c-o.maxX;(0,l.applyTranslate)(p,p.attr("x")-y,p.attr("y"))}}if("upward"===e&&r+f<=o.minY||"upward"!==e&&r+h>=o.maxY){var v=void 0,m=void 0;"upward"===e&&r+f<=o.minY?(v="top",m=1):(v="bottom",m=-1),d.attr("textBaseline",v),g&&g.attr("path",[["M",0,0],["L",0,i*m]]),(0,l.applyTranslate)(p,p.attr("x"),(i+2)*m)}}},e.prototype.getShapeAttrs=function(){var t=(0,a.get)(this.get("line"),"display"),e=(0,a.get)(this.get("point"),"style",{}),n=(0,a.get)(this.get("line"),"style",{}),r=(0,a.get)(this.get("text"),"style",{}),o=this.get("direction"),s=t?(0,a.get)(this.get("line"),"length",0):0,l="upward"===o?-1:1;return{point:(0,i.__assign)({x:0,y:0},e),line:(0,i.__assign)({path:[["M",0,0],["L",0,s*l]]},n),text:(0,i.__assign)({x:0,y:(s+2)*l,text:(0,a.get)(this.get("text"),"content",""),textBaseline:"upward"===o?"bottom":"top"},r)}},e}(o.default);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=r.__importDefault(n(9)),s=r.__importDefault(n(21)),l=n(10),u=n(75),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"annotation",type:"dataRegion",locationType:"points",points:[],lineLength:0,region:{},text:{},defaultCfg:{region:{style:{lineWidth:0,fill:s.default.regionColor,opacity:.4}},text:{content:"",style:{textAlign:"center",textBaseline:"bottom",fontSize:12,fill:s.default.textColor,fontFamily:s.default.fontFamily}}}})},e.prototype.renderInner=function(t){var e=(0,a.get)(this.get("region"),"style",{}),n=((0,a.get)(this.get("text"),"style",{}),this.get("lineLength")||0),r=this.get("points");if(r.length){var o=(0,l.pointsToBBox)(r),s=[];s.push(["M",r[0].x,o.minY-n]),r.forEach((function(t){s.push(["L",t.x,t.y])})),s.push(["L",r[r.length-1].x,r[r.length-1].y-n]),this.addShape(t,{type:"path",id:this.getElementId("region"),name:"annotation-region",attrs:(0,i.__assign)({path:s},e)});var c=(0,i.__assign)({id:this.getElementId("text"),name:"annotation-text",x:(o.minX+o.maxX)/2,y:o.minY-n},this.get("text"));(0,u.renderTag)(t,c)}},e}(o.default);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=r.__importDefault(n(9)),s=n(10),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"annotation",type:"regionFilter",locationType:"region",start:null,end:null,color:null,shape:[]})},e.prototype.renderInner=function(t){var e=this,n=this.get("start"),r=this.get("end"),i=this.addGroup(t,{id:this.getElementId("region-filter"),capture:!1});(0,a.each)(this.get("shapes"),(function(t,n){var r=t.get("type"),o=(0,a.clone)(t.attr());e.adjustShapeAttrs(o),e.addShape(i,{id:e.getElementId("shape-"+r+"-"+n),capture:!1,type:r,attrs:o})}));var o=(0,s.regionToBBox)({start:n,end:r});i.setClip({type:"rect",attrs:{x:o.minX,y:o.minY,width:o.width,height:o.height}})},e.prototype.adjustShapeAttrs=function(t){var e=this.get("color");t.fill&&(t.fill=t.fillStyle=e),t.stroke=t.strokeStyle=e},e}(o.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"annotation",type:"shape",draw:a.noop})},e.prototype.renderInner=function(t){var e=this.get("render");(0,a.isFunction)(e)&&e(t)},e}(r.__importDefault(n(9)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(47),o=n(1),s=r.__importDefault(n(76)),l=n(10),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"annotation",type:"html",locationType:"point",x:0,y:0,containerTpl:'<div class="g2-html-annotation"></div>',alignX:"left",alignY:"top",html:"",zIndex:7})},e.prototype.render=function(){var t=this.getContainer(),e=this.get("html");(0,l.clearDom)(t);var n=(0,o.isFunction)(e)?e(t):e;if((0,o.isElement)(n))t.appendChild(n);else if((0,o.isString)(n)||(0,o.isNumber)(n)){var r=(0,a.createDom)(""+n);r&&t.appendChild(r)}this.resetPosition()},e.prototype.resetPosition=function(){var t=this.getContainer(),e=this.getLocation(),n=e.x,r=e.y,i=this.get("alignX"),o=this.get("alignY"),s=this.get("offsetX"),l=this.get("offsetY"),u=(0,a.getOuterWidth)(t),c=(0,a.getOuterHeight)(t),f={x:n,y:r};"middle"===i?f.x-=Math.round(u/2):"right"===i&&(f.x-=Math.round(u)),"middle"===o?f.y-=Math.round(c/2):"bottom"===o&&(f.y-=Math.round(c)),s&&(f.x+=s),l&&(f.y+=l),(0,a.modifyCSS)(t,{position:"absolute",left:f.x+"px",top:f.y+"px",zIndex:this.get("zIndex")})},e}(s.default);e.default=u},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Base=e.Circle=e.Line=void 0;var i=n(442);Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return r(i).default}});var a=n(446);Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return r(a).default}});var o=n(107);Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return r(o).default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(8),o=n(1),s=r.__importDefault(n(107)),l=r.__importStar(n(201)),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{type:"line",locationType:"region",start:null,end:null})},e.prototype.getLinePath=function(){var t=this.get("start"),e=this.get("end"),n=[];return n.push(["M",t.x,t.y]),n.push(["L",e.x,e.y]),n},e.prototype.getInnerLayoutBBox=function(){var e=this.get("start"),n=this.get("end"),r=t.prototype.getInnerLayoutBBox.call(this),i=Math.min(e.x,n.x,r.x),a=Math.min(e.y,n.y,r.y),o=Math.max(e.x,n.x,r.maxX),s=Math.max(e.y,n.y,r.maxY);return{x:i,y:a,minX:i,minY:a,maxX:o,maxY:s,width:o-i,height:s-a}},e.prototype.isVertical=function(){var t=this.get("start"),e=this.get("end");return(0,o.isNumberEqual)(t.x,e.x)},e.prototype.isHorizontal=function(){var t=this.get("start"),e=this.get("end");return(0,o.isNumberEqual)(t.y,e.y)},e.prototype.getTickPoint=function(t){var e=this.get("start"),n=this.get("end"),r=n.x-e.x,i=n.y-e.y;return{x:e.x+r*t,y:e.y+i*t}},e.prototype.getSideVector=function(t){var e=this.getAxisVector(),n=a.vec2.normalize([0,0],e),r=this.get("verticalFactor"),i=[n[1],-1*n[0]];return a.vec2.scale([0,0],i,t*r)},e.prototype.getAxisVector=function(){var t=this.get("start"),e=this.get("end");return[e.x-t.x,e.y-t.y]},e.prototype.processOverlap=function(t){var e=this,n=this.isVertical(),r=this.isHorizontal();if(n||r){var i=this.get("label"),a=this.get("title"),s=this.get("verticalLimitLength"),l=i.offset,u=s,c=0,f=0;a&&(c=a.style.fontSize,f=a.spacing),u&&(u=u-l-f-c);var h=this.get("overlapOrder");if((0,o.each)(h,(function(n){i[n]&&e.canProcessOverlap(n)&&e.autoProcessOverlap(n,i[n],t,u)})),a&&(0,o.isNil)(a.offset)){var p=t.getCanvasBBox(),d=n?p.width:p.height;a.offset=l+d+f+c/2}}},e.prototype.canProcessOverlap=function(t){var e=this.get("label");return"autoRotate"!==t||(0,o.isNil)(e.rotate)},e.prototype.autoProcessOverlap=function(t,e,n,r){var i=this,a=this.isVertical(),s=!1,u=l[t];if(!0===e){this.get("label");s=u.getDefault()(a,n,r)}else if((0,o.isFunction)(e))s=e(a,n,r);else if((0,o.isObject)(e)){var c=e;u[c.type]&&(s=u[c.type](a,n,r,c.cfg))}else u[e]&&(s=u[e](a,n,r));if("autoRotate"===t){if(s){var f=n.getChildren(),h=this.get("verticalFactor");(0,o.each)(f,(function(t){if("center"===t.attr("textAlign")){var e=h>0?"end":"start";t.attr("textAlign",e)}}))}}else if("autoHide"===t){var p=n.getChildren().slice(0);(0,o.each)(p,(function(t){t.get("visible")||(i.get("isRegister")&&i.unregisterElement(t),t.remove())}))}},e}(s.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ellipsisMiddle=e.ellipsisTail=e.ellipsisHead=e.getDefault=void 0;var r=n(1),i=n(60);function a(t,e,n,a){var o=e.getChildren(),s=!1;return(0,r.each)(o,(function(e){var r=(0,i.ellipsisLabel)(t,e,n,a);s=s||r})),s}function o(t,e,n){return a(t,e,n,"tail")}e.getDefault=function(){return o},e.ellipsisHead=function(t,e,n){return a(t,e,n,"head")},e.ellipsisTail=o,e.ellipsisMiddle=function(t,e,n){return a(t,e,n,"middle")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.equidistanceWithReverseBoth=e.equidistance=e.reserveBoth=e.reserveLast=e.reserveFirst=e.getDefault=void 0;var r=n(60),i=n(33),a=n(10);function o(t){return(function(t){var e=t.attr("matrix");return e&&1!==e[0]}(t)?(0,i.getAngleByMatrix)(t.attr("matrix")):0)%360}function s(t,e,n,r){var i=!1,s=o(e),l=t?Math.abs(n.attr("y")-e.attr("y")):Math.abs(n.attr("x")-e.attr("x")),u=(t?n.attr("y")>e.attr("y"):n.attr("x")>e.attr("x"))?e.getBBox():n.getBBox();if(t){var c=Math.abs(Math.cos(s));i=(0,a.near)(c,0,Math.PI/180)?u.width+r>l:u.height/c+r>l}else{c=Math.abs(Math.sin(s));i=(0,a.near)(c,0,Math.PI/180)?u.width+r>l:u.height/c+r>l}return i}function l(t,e,n,r){var i=(null==r?void 0:r.minGap)||0,a=e.getChildren().slice().filter((function(t){return t.get("visible")}));if(!a.length)return!1;var o=!1;n&&a.reverse();for(var l=a.length,u=a[0],c=1;c<l;c++){var f=a[c];f.getBBox();s(t,u,f,i)?(f.hide(),o=!0):u=f}return o}function u(t,e,n){var i=(null==n?void 0:n.minGap)||0,s=e.getChildren().slice();if(s.length<2)return!1;var l=!1,u=s[0],c=u.getBBox(),f=s[1],h=s.length,p=o(u),d=t?Math.abs(f.attr("y")-u.attr("y")):Math.abs(f.attr("x")-u.attr("x")),g=0;if(t){var y=Math.abs(Math.cos(p));if((0,a.near)(y,0,Math.PI/180))g=((0,r.getMaxLabelWidth)(s)+i)/d;else g=(c.height/y+i)/d}else{y=Math.abs(Math.sin(p));if((0,a.near)(y,0,Math.PI/180))g=((0,r.getMaxLabelWidth)(s)+i)/d;else g=(c.height/y+i)/d}if(g>1){g=Math.ceil(g);for(var v=0;v<h;v++)v%g!=0&&(s[v].hide(),l=!0)}return l}function c(t,e,n,r){var i=u(t,e,r);return l(t,e,!1)&&(i=!0),i}e.getDefault=function(){return c},e.reserveFirst=function(t,e,n,r){return l(t,e,!1,r)},e.reserveLast=function(t,e,n,r){return l(t,e,!0,r)},e.reserveBoth=function(t,e,n,r){var i=(null==r?void 0:r.minGap)||0,a=e.getChildren().slice();if(a.length<=2)return!1;for(var o=!1,l=a.length,u=a[0],c=a[l-1],f=u,h=1;h<l-1;h++){var p=a[h];p.getBBox();s(t,f,p,i)?(p.hide(),o=!0):f=p}return s(t,f,c,i)&&(f.hide(),o=!0),o},e.equidistance=c,e.equidistanceWithReverseBoth=function(t,e,n,r){var i=e.getChildren().slice(),a=u(t,e,r);if(i.length>2){var o=i[0],s=i[i.length-1];o.get("visible")||(o.show(),l(t,e,!1,r)&&(a=!0)),s.get("visible")||(s.show(),l(t,e,!0,r)&&(a=!0))}return a}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.unfixedAngle=e.fixedAngle=e.getDefault=void 0;var r=n(0),i=n(1),a=n(60),o=n(33),s=r.__importDefault(n(21));function l(t,e,n,r){var s=e.getChildren();if(!s.length)return!1;if(!t&&s.length<2)return!1;var l=(0,a.getMaxLabelWidth)(s),u=!1;t?u=!!n&&l>n:u=l>Math.abs(s[1].attr("x")-s[0].attr("x"));u&&function(t,e){(0,i.each)(t,(function(t){var n=t.attr("x"),r=t.attr("y"),i=(0,o.getMatrixByAngle)({x:n,y:r},e);t.attr("matrix",i)}))}(s,r(n,l));return u}function u(t,e,n,r){return l(t,e,n,(function(){return(0,i.isNumber)(r)?r:t?s.default.verticalAxisRotate:s.default.horizontalAxisRotate}))}e.getDefault=function(){return u},e.fixedAngle=u,e.unfixedAngle=function(t,e,n){return l(t,e,n,(function(e,n){if(!e)return t?s.default.verticalAxisRotate:s.default.horizontalAxisRotate;if(t)return-Math.acos(e/n);var r=0;return(e>n||(r=Math.asin(e/n))>Math.PI/4)&&(r=Math.PI/4),r}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(8),s=r.__importDefault(n(107)),l=r.__importStar(n(201)),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{type:"circle",locationType:"circle",center:null,radius:null,startAngle:-Math.PI/2,endAngle:3*Math.PI/2})},e.prototype.getLinePath=function(){var t=this.get("center"),e=t.x,n=t.y,r=this.get("radius"),i=r,a=this.get("startAngle"),o=this.get("endAngle"),s=[];if(Math.abs(o-a)===2*Math.PI)s=[["M",e,n-i],["A",r,i,0,1,1,e,n+i],["A",r,i,0,1,1,e,n-i],["Z"]];else{var l=this.getCirclePoint(a),u=this.getCirclePoint(o),c=Math.abs(o-a)>Math.PI?1:0,f=a>o?0:1;s=[["M",e,n],["L",l.x,l.y],["A",r,i,0,c,f,u.x,u.y],["L",e,n]]}return s},e.prototype.getTickPoint=function(t){var e=this.get("startAngle"),n=e+(this.get("endAngle")-e)*t;return this.getCirclePoint(n)},e.prototype.getSideVector=function(t,e){var n=this.get("center"),r=[e.x-n.x,e.y-n.y],i=this.get("verticalFactor"),a=o.vec2.length(r);return o.vec2.scale(r,r,i*t/a),r},e.prototype.getAxisVector=function(t){var e=this.get("center"),n=[t.x-e.x,t.y-e.y];return[n[1],-1*n[0]]},e.prototype.getCirclePoint=function(t,e){var n=this.get("center");return e=e||this.get("radius"),{x:n.x+Math.cos(t)*e,y:n.y+Math.sin(t)*e}},e.prototype.canProcessOverlap=function(t){var e=this.get("label");return"autoRotate"!==t||(0,a.isNil)(e.rotate)},e.prototype.processOverlap=function(t){var e=this,n=this.get("label"),r=this.get("title"),i=this.get("verticalLimitLength"),o=n.offset,s=i,l=0,u=0;r&&(l=r.style.fontSize,u=r.spacing),s&&(s=s-o-u-l);var c=this.get("overlapOrder");if((0,a.each)(c,(function(r){n[r]&&e.canProcessOverlap(r)&&e.autoProcessOverlap(r,n[r],t,s)})),r&&(0,a.isNil)(r.offset)){var f=t.getCanvasBBox().height;r.offset=o+f+u+l/2}},e.prototype.autoProcessOverlap=function(t,e,n,r){var i=this,o=!1,s=l[t];if(r>0)if(!0===e)o=s.getDefault()(!1,n,r);else if((0,a.isFunction)(e))o=e(!1,n,r);else if((0,a.isObject)(e)){var u=e;s[u.type]&&(o=s[u.type](!1,n,r,u.cfg))}else s[e]&&(o=s[e](!1,n,r));if("autoRotate"===t){if(o){var c=n.getChildren(),f=this.get("verticalFactor");(0,a.each)(c,(function(t){if("center"===t.attr("textAlign")){var e=f>0?"end":"start";t.attr("textAlign",e)}}))}}else if("autoHide"===t){var h=n.getChildren().slice(0);(0,a.each)(h,(function(t){t.get("visible")||(i.get("isRegister")&&i.unregisterElement(t),t.remove())}))}},e}(s.default);e.default=u},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Html=e.Base=e.Circle=e.Line=void 0;var i=n(448);Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return r(i).default}});var a=n(449);Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return r(a).default}});var o=n(108);Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return r(o).default}});var s=n(450);Object.defineProperty(e,"Html",{enumerable:!0,get:function(){return r(s).default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(10),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{type:"line",locationType:"region",start:null,end:null})},e.prototype.getRotateAngle=function(){var t=this.getLocation(),e=t.start,n=t.end,r=this.get("text").position,i=Math.atan2(n.y-e.y,n.x-e.x);return"start"===r?i-Math.PI/2:i+Math.PI/2},e.prototype.getTextPoint=function(){var t=this.getLocation(),e=t.start,n=t.end,r=this.get("text"),i=r.position,o=r.offset;return(0,a.getTextPoint)(e,n,i,o)},e.prototype.getLinePath=function(){var t=this.getLocation(),e=t.start,n=t.end;return[["M",e.x,e.y],["L",n.x,n.y]]},e}(r.__importDefault(n(108)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(10),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{type:"circle",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:3*Math.PI/2})},e.prototype.getRotateAngle=function(){var t=this.getLocation(),e=t.startAngle,n=t.endAngle;return"start"===this.get("text").position?e+Math.PI/2:n-Math.PI/2},e.prototype.getTextPoint=function(){var t=this.get("text"),e=t.position,n=t.offset,r=this.getLocation(),i=r.center,o=r.radius,s=r.startAngle,l=r.endAngle,u="start"===e?s:l,c=this.getRotateAngle()-Math.PI,f=(0,a.getCirclePoint)(i,o,u),h=Math.cos(c)*n,p=Math.sin(c)*n;return{x:f.x+h,y:f.y+p}},e.prototype.getLinePath=function(){var t=this.getLocation(),e=t.center,n=t.radius,r=t.startAngle,i=t.endAngle,o=null;if(i-r==2*Math.PI){var s=e.x,l=e.y;o=[["M",s,l-n],["A",n,n,0,1,1,s,l+n],["A",n,n,0,1,1,s,l-n],["Z"]]}else{var u=(0,a.getCirclePoint)(e,n,r),c=(0,a.getCirclePoint)(e,n,i),f=Math.abs(i-r)>Math.PI?1:0,h=r>i?0:1;o=[["M",u.x,u.y],["A",n,n,0,f,h,c.x,c.y]]}return o},e}(r.__importDefault(n(108)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(47),o=n(1),s=n(10),l=r.__importDefault(n(76)),u=r.__importStar(n(202)),c=r.__importDefault(n(451)),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"crosshair",type:"html",locationType:"region",start:{x:0,y:0},end:{x:0,y:0},capture:!1,text:null,containerTpl:'<div class="'+u.CONTAINER_CLASS+'"></div>',crosshairTpl:'<div class="'+u.CROSSHAIR_LINE+'"></div>',textTpl:'<span class="'+u.CROSSHAIR_TEXT+'">{content}</span>',domStyles:null,containerClassName:u.CONTAINER_CLASS,defaultStyles:c.default,defaultCfg:{text:{position:"start",content:null,align:"center",offset:10}}})},e.prototype.render=function(){this.resetText(),this.resetPosition()},e.prototype.initCrossHair=function(){var t=this.getContainer(),e=this.get("crosshairTpl"),n=(0,a.createDom)(e);t.appendChild(n),this.applyStyle(u.CROSSHAIR_LINE,n),this.set("crosshairEl",n)},e.prototype.getTextPoint=function(){var t=this.getLocation(),e=t.start,n=t.end,r=this.get("text"),i=r.position,a=r.offset;return(0,s.getTextPoint)(e,n,i,a)},e.prototype.resetText=function(){var t=this.get("text"),e=this.get("textEl");if(t){var n=t.content;if(!e){var r=this.getContainer(),i=(0,o.substitute)(this.get("textTpl"),t);e=(0,a.createDom)(i),r.appendChild(e),this.applyStyle(u.CROSSHAIR_TEXT,e),this.set("textEl",e)}e.innerHTML=n}else e&&e.remove()},e.prototype.isVertical=function(t,e){return t.x===e.x},e.prototype.resetPosition=function(){var t=this.get("crosshairEl");t||(this.initCrossHair(),t=this.get("crosshairEl"));var e=this.get("start"),n=this.get("end"),r=Math.min(e.x,n.x),i=Math.min(e.y,n.y);this.isVertical(e,n)?(0,a.modifyCSS)(t,{width:"1px",height:(0,s.toPx)(Math.abs(n.y-e.y))}):(0,a.modifyCSS)(t,{height:"1px",width:(0,s.toPx)(Math.abs(n.x-e.x))}),(0,a.modifyCSS)(t,{top:(0,s.toPx)(i),left:(0,s.toPx)(r)}),this.alignText()},e.prototype.alignText=function(){var t=this.get("textEl");if(t){var e=this.get("text").align,n=t.clientWidth,r=this.getTextPoint();switch(e){case"center":r.x=r.x-n/2;break;case"right":r.x=r.x-n}(0,a.modifyCSS)(t,{top:(0,s.toPx)(r.y),left:(0,s.toPx)(r.x)})}},e.prototype.updateInner=function(e){(0,o.hasKey)(e,"text")&&this.resetText(),t.prototype.updateInner.call(this,e)},e}(l.default);e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(0),a=i.__importDefault(n(21)),o=i.__importStar(n(202));e.default=((r={})[""+o.CONTAINER_CLASS]={position:"relative"},r[""+o.CROSSHAIR_LINE]={position:"absolute",backgroundColor:"rgba(0, 0, 0, 0.25)"},r[""+o.CROSSHAIR_TEXT]={position:"absolute",color:a.default.textColor,fontFamily:a.default.fontFamily},r)},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Line=e.Circle=e.Base=void 0;var i=n(109);Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return r(i).default}});var a=n(453);Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return r(a).default}});var o=n(454);Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return r(o).default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1);var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{type:"circle",center:null,closed:!0})},e.prototype.getGridPath=function(t,e){var n,r,i,o,s,l,u=this.getLineType(),c=this.get("closed"),f=[];if(t.length)if("circle"===u){var h=this.get("center"),p=t[0],d=(n=h.x,r=h.y,i=p.x,o=p.y,s=i-n,l=o-r,Math.sqrt(s*s+l*l)),g=e?0:1;c?(f.push(["M",h.x,h.y-d]),f.push(["A",d,d,0,0,g,h.x,h.y+d]),f.push(["A",d,d,0,0,g,h.x,h.y-d]),f.push(["Z"])):(0,a.each)(t,(function(t,e){0===e?f.push(["M",t.x,t.y]):f.push(["A",d,d,0,0,g,t.x,t.y])}))}else(0,a.each)(t,(function(t,e){0===e?f.push(["M",t.x,t.y]):f.push(["L",t.x,t.y])})),c&&f.push(["Z"]);return f},e}(r.__importDefault(n(109)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{type:"line"})},e.prototype.getGridPath=function(t){var e=[];return(0,a.each)(t,(function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e},e}(r.__importDefault(n(109)).default);e.default=o},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Base=e.Continuous=e.Category=void 0;var i=n(456);Object.defineProperty(e,"Category",{enumerable:!0,get:function(){return r(i).default}});var a=n(457);Object.defineProperty(e,"Continuous",{enumerable:!0,get:function(){return r(a).default}});var o=n(110);Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return r(o).default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(60),s=n(33),l=n(200),u=r.__importDefault(n(21)),c=r.__importDefault(n(110)),f={marker:{style:{inactiveFill:"#000",inactiveOpacity:.45,fill:"#000",opacity:1,size:12}},text:{style:{fill:"#ccc",fontSize:12}}},h={fill:u.default.textColor,fontSize:12,textAlign:"start",textBaseline:"middle",fontFamily:u.default.fontFamily,fontWeight:"normal",lineHeight:12},p={right:90*Math.PI/180,left:270*Math.PI/180,up:0,down:180*Math.PI/180},d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.currentPageIndex=1,e.totalPagesCnt=1,e.pageWidth=0,e.pageHeight=0,e.startX=0,e.startY=0,e.onNavigationBack=function(){var t=e.getElementByLocalId("item-group");if(e.currentPageIndex>1){e.currentPageIndex-=1,e.updateNavigation();var n=e.getCurrentNavigationMatrix();e.get("animate")?t.animate({matrix:n},100):t.attr({matrix:n})}},e.onNavigationAfter=function(){var t=e.getElementByLocalId("item-group");if(e.currentPageIndex<e.totalPagesCnt){e.currentPageIndex+=1,e.updateNavigation();var n=e.getCurrentNavigationMatrix();e.get("animate")?t.animate({matrix:n},100):t.attr({matrix:n})}},e}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"legend",type:"category",itemSpacing:24,itemMarginBottom:8,maxItemWidth:null,itemWidth:null,itemHeight:null,itemName:{},itemValue:null,maxWidth:null,maxHeight:null,marker:{},radio:null,items:[],itemStates:{},itemBackground:{},pageNavigator:{},defaultCfg:{title:{spacing:5,style:{fill:u.default.textColor,fontSize:12,textAlign:"start",textBaseline:"top"}},background:{padding:5,style:{stroke:u.default.lineColor}},itemBackground:{style:{opacity:0,fill:"#fff"}},pageNavigator:f,itemName:{spacing:16,style:h},marker:{spacing:8,style:{r:6,symbol:"circle"}},itemValue:{alignRight:!1,formatter:null,style:h,spacing:6},itemStates:{active:{nameStyle:{opacity:.8}},unchecked:{nameStyle:{fill:u.default.uncheckedColor},markerStyle:{fill:u.default.uncheckedColor,stroke:u.default.uncheckedColor}},inactive:{nameStyle:{fill:u.default.uncheckedColor},markerStyle:{opacity:.2}}}}})},e.prototype.isList=function(){return!0},e.prototype.getItems=function(){return this.get("items")},e.prototype.setItems=function(t){this.update({items:t})},e.prototype.updateItem=function(t,e){(0,a.mix)(t,e),this.clear(),this.render()},e.prototype.clearItems=function(){var t=this.getElementByLocalId("item-group");t&&t.clear()},e.prototype.setItemState=function(t,e,n){t[e]=n;var r=this.getElementByLocalId("item-"+t.id);if(r){var i=this.getItems().indexOf(t),a=this.createOffScreenGroup(),o=this.drawItem(t,i,this.getItemHeight(),a);this.updateElements(o,r),this.clearUpdateStatus(r)}},e.prototype.hasState=function(t,e){return!!t[e]},e.prototype.getItemStates=function(t){var e=this.get("itemStates"),n=[];return(0,a.each)(e,(function(e,r){t[r]&&n.push(r)})),n},e.prototype.clearItemsState=function(t){var e=this,n=this.getItemsByState(t);(0,a.each)(n,(function(n){e.setItemState(n,t,!1)}))},e.prototype.getItemsByState=function(t){var e=this,n=this.getItems();return(0,a.filter)(n,(function(n){return e.hasState(n,t)}))},e.prototype.drawLegendContent=function(t){this.processItems(),this.drawItems(t)},e.prototype.processItems=function(){var t=this.get("items");(0,a.each)(t,(function(t){t.id||(t.id=t.name)}))},e.prototype.drawItems=function(t){var e=this,n=this.addGroup(t,{id:this.getElementId("item-container-group"),name:"legend-item-container-group"}),r=this.addGroup(n,{id:this.getElementId("item-group"),name:"legend-item-group"}),i=this.getItemHeight(),o=this.get("itemWidth"),s=this.get("itemSpacing"),l=this.get("itemMarginBottom"),u=this.get("currentPoint"),c=u.x,f=u.y,h=this.get("layout"),p=this.get("items"),d=!1,g=0,y=this.get("maxWidth"),v=this.get("maxHeight");(0,a.each)(p,(function(t,n){var a=e.drawItem(t,n,i,r),p=a.getBBox(),m=o||p.width;m>g&&(g=m),"horizontal"===h?(y&&y<u.x+m-c&&(d=!0,u.x=c,u.y+=i+l),e.moveElementTo(a,u),u.x+=m+s):(v&&v<u.y+i+l-f&&(d=!0,u.x+=g+s,u.y=f,g=0),e.moveElementTo(a,u),u.y+=i+l)})),d&&this.get("flipPage")&&(this.pageHeight=0,this.pageWidth=0,this.totalPagesCnt=1,this.startX=c,this.startY=f,this.adjustNavigation(t,r))},e.prototype.getItemHeight=function(){var t=this.get("itemHeight");if(!t){var e=(this.get("itemName")||{}).style;if((0,a.isFunction)(e)){var n=this.getItems();n.forEach((function(r,a){var o=(0,i.__assign)((0,i.__assign)({},h),e(r,a,n)).fontSize;t<o&&(t=o)}))}else e&&(t=e.fontSize)}return t},e.prototype.drawMarker=function(t,e,n,r){var o=(0,i.__assign)((0,i.__assign)((0,i.__assign)({x:0,y:r/2},e.style),{symbol:(0,a.get)(n.marker,"symbol","circle")}),(0,a.get)(n.marker,"style",{})),s=this.addShape(t,{type:"marker",id:this.getElementId("item-"+n.id+"-marker"),name:"legend-item-marker",attrs:o}),l=s.getBBox();s.attr("x",l.width/2);var u=s.attr(),c=u.stroke,f=u.fill;return c&&s.set("isStroke",!0),f&&s.set("isFill",!0),s},e.prototype.drawItemText=function(t,e,n,r,o,s,l){var u=n.formatter,c=n.style,f=(0,i.__assign)((0,i.__assign)({x:s,y:o/2,text:u?u(r[e],r,l):r[e]},h),(0,a.isFunction)(c)?c(r,l,this.getItems()):c);return this.addShape(t,{type:"text",id:this.getElementId("item-"+r.id+"-"+e),name:"legend-item-"+e,attrs:f})},e.prototype.drawRadio=function(t,e,n,r,a){var o,s,l=e.style||{},u=null!==(o=l.r)&&void 0!==o?o:r/2,c=3.6*u/8,f=[a+u,r/2-u],h=f[0],p=f[1],d=[h+u,p+u],g=d[0],y=d[1],v=[h,y+u],m=v[0],_=v[1],x=[a,p+u],b=x[0],M=x[1],C=n.showRadio,P=(0,i.__assign)((0,i.__assign)({path:[["M",h,p],["A",u,u,0,0,1,g,y],["L",g-c,y],["L",g,y],["A",u,u,0,0,1,m,_],["L",m,_-c],["L",m,_],["A",u,u,0,0,1,b,M],["L",b+c,M],["L",b,M],["A",u,u,0,0,1,h,p],["L",h,p+c]],stroke:"#000000",fill:"#ffffff"},l),{opacity:C?null!==(s=null==l?void 0:l.opacity)&&void 0!==s?s:.45:0}),S=this.addShape(t,{type:"path",id:this.getElementId("item-"+n.id+"-radio"),name:"legend-item-radio",attrs:P});return S.set("tip",e.tip),S},e.prototype.drawItem=function(t,e,n,r){var s="item-"+t.id,l=this.addGroup(r,{name:"legend-item-container",id:this.getElementId("item-container-"+s),delegateObject:{item:t,index:e}}),u=this.addGroup(l,{name:"legend-item",id:this.getElementId(s),delegateObject:{item:t,index:e}}),c=this.get("marker"),f=this.get("itemName"),h=this.get("itemValue"),p=this.get("itemBackground"),d=this.get("radio"),g=this.getLimitItemWidth(),y=0;if(c){var v=this.drawMarker(u,c,t,n),m=c.spacing,_=(0,a.get)(t,["marker","spacing"]);(0,a.isNumber)(_)&&(m=_),y=v.getBBox().maxX+m}if(f){var x=this.drawItemText(u,"name",f,t,n,y,e);g&&(0,o.ellipsisLabel)(!0,x,(0,a.clamp)(g-y,0,g)),y=x.getBBox().maxX+f.spacing}if(h){var b=this.drawItemText(u,"value",h,t,n,y,e);g&&(h.alignRight?(b.attr({textAlign:"right",x:g}),(0,o.ellipsisLabel)(!0,b,(0,a.clamp)(g-y,0,g),"head")):(0,o.ellipsisLabel)(!0,b,(0,a.clamp)(g-y,0,g))),y=b.getBBox().maxX+h.spacing}if(d&&this.drawRadio(u,d,t,n,y),p){var M=u.getBBox();this.addShape(u,{type:"rect",name:"legend-item-background",id:this.getElementId(s+"-background"),attrs:(0,i.__assign)({x:0,y:0,width:M.width,height:n},p.style)}).toBack()}return this.applyItemStates(t,u),u},e.prototype.adjustNavigation=function(t,e){var n=this,r=this.startX,i=this.startY,o=this.get("layout"),s=e.findAll((function(t){return"legend-item"===t.get("name")})),l=this.get("maxWidth"),u=this.get("maxHeight"),c=this.get("itemWidth"),h=this.get("itemSpacing"),p=this.getItemHeight(),d=(0,a.deepMix)({},f,this.get("pageNavigator")),g=this.drawNavigation(t,o,"00/00",d),y=g.getBBox(),v={x:r,y:i},m=1,_=0,x=0,b=0,M=this.get("itemMarginBottom");if("horizontal"===o){var C=this.get("maxRow")||1,P=p+(1===C?0:M);this.pageHeight=P*C,(0,a.each)(s,(function(t){var e=t.getBBox(),i=c||e.width;(_&&_<v.x+i+h||l<v.x+i+h+y.width)&&(1===m&&(_=v.x+h,n.pageWidth=_,n.moveElementTo(g,{x:l-h-y.width-y.minX,y:v.y+p/2-y.height/2-y.minY})),m+=1,v.x=r,v.y+=P),n.moveElementTo(t,v),t.getParent().setClip({type:"rect",attrs:{x:v.x,y:v.y,width:i+h,height:p}}),v.x+=i+h}))}else{(0,a.each)(s,(function(t){var e=t.getBBox();e.width>x&&(x=e.width)})),b=x,x+=h,l&&(x=Math.min(l,x),b=Math.min(l,b)),this.pageWidth=x,this.pageHeight=u-Math.max(y.height,p+M);var S=Math.floor(this.pageHeight/(p+M));(0,a.each)(s,(function(t,e){0!==e&&e%S==0&&(m+=1,v.x+=x,v.y=i),n.moveElementTo(t,v),t.getParent().setClip({type:"rect",attrs:{x:v.x,y:v.y,width:x,height:p}}),v.y+=p+M})),this.totalPagesCnt=m,this.moveElementTo(g,{x:r+b/2-y.width/2-y.minX,y:u-y.height-y.minY})}this.pageHeight&&this.pageWidth&&e.getParent().setClip({type:"rect",attrs:{x:this.startX,y:this.startY,width:this.pageWidth,height:this.pageHeight}}),"horizontal"===o&&this.get("maxRow")?this.totalPagesCnt=Math.ceil(m/this.get("maxRow")):this.totalPagesCnt=m,this.currentPageIndex>this.totalPagesCnt&&(this.currentPageIndex=1),this.updateNavigation(g),e.attr("matrix",this.getCurrentNavigationMatrix())},e.prototype.drawNavigation=function(t,e,n,r){var o={x:0,y:0},s=this.addGroup(t,{id:this.getElementId("navigation-group"),name:"legend-navigation"}),l=(0,a.get)(r.marker,"style",{}),u=l.size,c=void 0===u?12:u,f=(0,i.__rest)(l,["size"]),h=this.drawArrow(s,o,"navigation-arrow-left","horizontal"===e?"up":"left",c,f);h.on("click",this.onNavigationBack);var p=h.getBBox();o.x+=p.width+2;var d=this.addShape(s,{type:"text",id:this.getElementId("navigation-text"),name:"navigation-text",attrs:(0,i.__assign)({x:o.x,y:o.y+c/2,text:n,textBaseline:"middle"},(0,a.get)(r.text,"style"))}).getBBox();return o.x+=d.width+2,this.drawArrow(s,o,"navigation-arrow-right","horizontal"===e?"down":"right",c,f).on("click",this.onNavigationAfter),s},e.prototype.updateNavigation=function(t){var e=(0,a.deepMix)({},f,this.get("pageNavigator")).marker.style,n=e.fill,r=e.opacity,i=e.inactiveFill,o=e.inactiveOpacity,s=this.currentPageIndex+"/"+this.totalPagesCnt,l=t?t.getChildren()[1]:this.getElementByLocalId("navigation-text"),u=t?t.findById(this.getElementId("navigation-arrow-left")):this.getElementByLocalId("navigation-arrow-left"),c=t?t.findById(this.getElementId("navigation-arrow-right")):this.getElementByLocalId("navigation-arrow-right");l.attr("text",s),u.attr("opacity",1===this.currentPageIndex?o:r),u.attr("fill",1===this.currentPageIndex?i:n),u.attr("cursor",1===this.currentPageIndex?"not-allowed":"pointer"),c.attr("opacity",this.currentPageIndex===this.totalPagesCnt?o:r),c.attr("fill",this.currentPageIndex===this.totalPagesCnt?i:n),c.attr("cursor",this.currentPageIndex===this.totalPagesCnt?"not-allowed":"pointer");var h=u.getBBox().maxX+2;l.attr("x",h),h+=l.getBBox().width+2,this.updateArrowPath(c,{x:h,y:0})},e.prototype.drawArrow=function(t,e,n,r,a,o){var l=e.x,u=e.y,c=this.addShape(t,{type:"path",id:this.getElementId(n),name:n,attrs:(0,i.__assign)({size:a,direction:r,path:[["M",l+a/2,u],["L",l,u+a],["L",l+a,u+a],["Z"]],cursor:"pointer"},o)});return c.attr("matrix",(0,s.getMatrixByAngle)({x:l+a/2,y:u+a/2},p[r])),c},e.prototype.updateArrowPath=function(t,e){var n=e.x,r=e.y,i=t.attr(),a=i.size,o=i.direction,l=(0,s.getMatrixByAngle)({x:n+a/2,y:r+a/2},p[o]);t.attr("path",[["M",n+a/2,r],["L",n,r+a],["L",n+a,r+a],["Z"]]),t.attr("matrix",l)},e.prototype.getCurrentNavigationMatrix=function(){var t=this.currentPageIndex,e=this.pageWidth,n=this.pageHeight,r="horizontal"===this.get("layout")?{x:0,y:n*(1-t)}:{x:e*(1-t),y:0};return(0,s.getMatrixByTranslate)(r)},e.prototype.applyItemStates=function(t,e){if(this.getItemStates(t).length>0){var n=e.getChildren(),r=this.get("itemStates");(0,a.each)(n,(function(e){var n=e.get("name").split("-")[2],i=(0,l.getStatesStyle)(t,n,r);i&&(e.attr(i),"marker"!==n||e.get("isStroke")&&e.get("isFill")||(e.get("isStroke")&&e.attr("fill",null),e.get("isFill")&&e.attr("stroke",null)))}))}},e.prototype.getLimitItemWidth=function(){var t=this.get("itemWidth"),e=this.get("maxItemWidth");return e?t&&(e=t<=e?t:e):t&&(e=t),e},e}(c.default);e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=r.__importDefault(n(21)),s=n(10),l=r.__importDefault(n(110)),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{type:"continue",min:0,max:100,value:null,colors:[],track:{},rail:{},label:{},handler:{},slidable:!0,tip:null,step:null,maxWidth:null,maxHeight:null,defaultCfg:{label:{align:"rail",spacing:5,formatter:null,style:{fontSize:12,fill:o.default.textColor,textBaseline:"middle",fontFamily:o.default.fontFamily}},handler:{size:10,style:{fill:"#fff",stroke:"#333"}},track:{},rail:{type:"color",size:20,defaultLength:100,style:{fill:"#DCDEE2"}},title:{spacing:5,style:{fill:o.default.textColor,fontSize:12,textAlign:"start",textBaseline:"top"}}}})},e.prototype.isSlider=function(){return!0},e.prototype.getValue=function(){return this.getCurrentValue()},e.prototype.getRange=function(){return{min:this.get("min"),max:this.get("max")}},e.prototype.setRange=function(t,e){this.update({min:t,max:e})},e.prototype.setValue=function(t){var e=this.getValue();this.set("value",t);var n=this.get("group");this.resetTrackClip(),this.get("slidable")&&this.resetHandlers(n),this.delegateEmit("valuechanged",{originValue:e,value:t})},e.prototype.initEvent=function(){var t=this.get("group");this.bindSliderEvent(t),this.bindRailEvent(t),this.bindTrackEvent(t)},e.prototype.drawLegendContent=function(t){this.drawRail(t),this.drawLabels(t),this.fixedElements(t),this.resetTrack(t),this.resetTrackClip(t),this.get("slidable")&&this.resetHandlers(t)},e.prototype.bindSliderEvent=function(t){this.bindHandlersEvent(t)},e.prototype.bindHandlersEvent=function(t){var e=this;t.on("legend-handler-min:drag",(function(t){var n=e.getValueByCanvasPoint(t.x,t.y),r=e.getCurrentValue()[1];r<n&&(r=n),e.setValue([n,r])})),t.on("legend-handler-max:drag",(function(t){var n=e.getValueByCanvasPoint(t.x,t.y),r=e.getCurrentValue()[0];r>n&&(r=n),e.setValue([r,n])}))},e.prototype.bindRailEvent=function(t){},e.prototype.bindTrackEvent=function(t){var e=this,n=null;t.on("legend-track:dragstart",(function(t){n={x:t.x,y:t.y}})),t.on("legend-track:drag",(function(t){if(n){var r=e.getValueByCanvasPoint(n.x,n.y),i=e.getValueByCanvasPoint(t.x,t.y),a=e.getCurrentValue(),o=a[1]-a[0],s=e.getRange(),l=i-r;l<0?a[0]+l>s.min?e.setValue([a[0]+l,a[1]+l]):e.setValue([s.min,s.min+o]):l>0&&(l>0&&a[1]+l<s.max?e.setValue([a[0]+l,a[1]+l]):e.setValue([s.max-o,s.max])),n={x:t.x,y:t.y}}})),t.on("legend-track:dragend",(function(t){n=null}))},e.prototype.drawLabels=function(t){this.drawLabel("min",t),this.drawLabel("max",t)},e.prototype.drawLabel=function(t,e){var n=this.get("label"),r=n.style,o=n.align,s=n.formatter,l=this.get(t),u=this.getLabelAlignAttrs(t,o),c="label-"+t;this.addShape(e,{type:"text",id:this.getElementId(c),name:"legend-label-"+t,attrs:(0,i.__assign)((0,i.__assign)({x:0,y:0,text:(0,a.isFunction)(s)?s(l):l},r),u)})},e.prototype.getLabelAlignAttrs=function(t,e){var n="center",r="middle";return this.isVertical()?(n="start",r="rail"!==e?"min"===t?"top":"bottom":"top"):"rail"!==e?(r="top",n="min"===t?"start":"end"):(n="start",r="middle"),{textAlign:n,textBaseline:r}},e.prototype.getRailPath=function(t,e,n,r){var i=this.get("rail"),a=i.size,o=i.defaultLength,s=i.type,l=this.isVertical(),u=n,c=r;u||(u=l?a:o),c||(c=l?o:a);var f=[];return"color"===s?(f.push(["M",t,e]),f.push(["L",t+u,e]),f.push(["L",t+u,e+c]),f.push(["L",t,e+c]),f.push(["Z"])):(f.push(["M",t+u,e]),f.push(["L",t+u,e+c]),f.push(["L",t,e+c]),f.push(["Z"])),f},e.prototype.drawRail=function(t){var e=this.get("rail").style;this.addShape(t,{type:"path",id:this.getElementId("rail"),name:"legend-rail",attrs:(0,i.__assign)({path:this.getRailPath(0,0)},e)})},e.prototype.getTrackColor=function(t){var e,n=t.length;if(!n)return null;if(1===n)return t[0];e=this.isVertical()?"l(90)":"l(0)";for(var r=0;r<n;r++){e+=" "+r/(n-1)+":"+t[r]}return e},e.prototype.getTrackPath=function(t){var e=this.getRailShape(t).attr("path");return(0,a.clone)(e)},e.prototype.getClipTrackAttrs=function(t){var e,n,r,i,a=this.getCurrentValue(),o=a[0],s=a[1],l=this.getRailBBox(t),u=this.getPointByValue(o,t),c=this.getPointByValue(s,t);return this.isVertical()?(e=l.minX,n=u.y,r=l.width,i=c.y-u.y):(e=u.x,n=l.minY,r=c.x-u.x,i=l.height),{x:e,y:n,width:r,height:i}},e.prototype.getTrackAttrs=function(t){var e=this.get("track"),n=this.get("colors"),r=this.getTrackPath(t);return(0,a.mix)({path:r,fill:this.getTrackColor(n)},e.style)},e.prototype.resetTrackClip=function(t){var e=t||this.get("group"),n=this.getElementId("track"),r=e.findById(n),i=r.getClip(),a=this.getClipTrackAttrs(t);i?i.attr(a):r.setClip({type:"rect",attrs:a})},e.prototype.resetTrack=function(t){var e=this.getElementId("track"),n=t.findById(e),r=this.getTrackAttrs(t);n?n.attr(r):this.addShape(t,{type:"path",id:e,draggable:this.get("slidable"),name:"legend-track",attrs:r})},e.prototype.getPointByValue=function(t,e){var n=this.getRange(),r=n.min,i=(t-r)/(n.max-r),a=this.getRailBBox(e),o={x:0,y:0};return this.isVertical()?(o.x=a.minX+a.width/2,o.y=(0,s.getValueByPercent)(a.minY,a.maxY,i)):(o.x=(0,s.getValueByPercent)(a.minX,a.maxX,i),o.y=a.minY+a.height/2),o},e.prototype.getRailShape=function(t){return(t||this.get("group")).findById(this.getElementId("rail"))},e.prototype.getRailBBox=function(t){return this.getRailShape(t).getBBox()},e.prototype.getRailCanvasBBox=function(){return this.get("group").findById(this.getElementId("rail")).getCanvasBBox()},e.prototype.isVertical=function(){return"vertical"===this.get("layout")},e.prototype.getValueByCanvasPoint=function(t,e){var n,r=this.getRange(),i=r.min,a=r.max,o=this.getRailCanvasBBox(),l=this.isVertical(),u=this.get("step");n=l?(e-o.minY)/o.height:(t-o.minX)/o.width;var c=(0,s.getValueByPercent)(i,a,n);u&&(c=i+Math.round((c-i)/u)*u);return c>a&&(c=a),c<i&&(c=i),c},e.prototype.getCurrentValue=function(){var t=this.get("value");if(!t){var e=this.get("values");return e?[Math.max(Math.min.apply(Math,(0,i.__spreadArrays)(e,[this.get("max")])),this.get("min")),Math.min(Math.max.apply(Math,(0,i.__spreadArrays)(e,[this.get("min")])),this.get("max"))]:[this.get("min"),this.get("max")]}return t},e.prototype.resetHandlers=function(t){var e=this.getCurrentValue(),n=e[0],r=e[1];this.resetHandler(t,"min",n),this.resetHandler(t,"max",r)},e.prototype.getHandlerPath=function(t,e){var n=this.isVertical(),r=[],i=t.size,a=e.x,o=e.y,s=1.4*i,l=i/2,u=i/6;if(n){var c=a+.4*s;r.push(["M",a,o]),r.push(["L",c,o+l]),r.push(["L",a+s,o+l]),r.push(["L",a+s,o-l]),r.push(["L",c,o-l]),r.push(["Z"]),r.push(["M",c,o+u]),r.push(["L",a+s-2,o+u]),r.push(["M",c,o-u]),r.push(["L",a+s-2,o-u])}else{var f=o+.4*s;r.push(["M",a,o]),r.push(["L",a-l,f]),r.push(["L",a-l,o+s]),r.push(["L",a+l,o+s]),r.push(["L",a+l,f]),r.push(["Z"]),r.push(["M",a-u,f]),r.push(["L",a-u,o+s-2]),r.push(["M",a+u,f]),r.push(["L",a+u,o+s-2])}return r},e.prototype.resetHandler=function(t,e,n){var r=this.getPointByValue(n,t),a=this.get("handler"),o=this.getHandlerPath(a,r),s=this.getElementId("handler-"+e),l=t.findById(s),u=this.isVertical();l?l.attr("path",o):this.addShape(t,{type:"path",name:"legend-handler-"+e,draggable:!0,id:s,attrs:(0,i.__assign)((0,i.__assign)({path:o},a.style),{cursor:u?"ns-resize":"ew-resize"})})},e.prototype.fixedElements=function(t){var e=t.findById(this.getElementId("rail")),n=t.findById(this.getElementId("label-min")),r=t.findById(this.getElementId("label-max")),i=this.getDrawPoint();this.isVertical()?this.fixedVertail(n,r,e,i):this.fixedHorizontal(n,r,e,i)},e.prototype.fitRailLength=function(t,e,n,r){var i=this.isVertical()?"height":"width",o=this.get("label"),s=o.align,l=o.spacing,u=this.get("max"+(0,a.upperFirst)(i));if(u){var c=("rail"===s?n[i]+t[i]+e[i]+2*l:n[i])-u;c>0&&this.changeRailLength(r,i,n[i]-c)}},e.prototype.changeRailLength=function(t,e,n){var r,i=t.getBBox();r="height"===e?this.getRailPath(i.x,i.y,i.width,n):this.getRailPath(i.x,i.y,n,i.height),t.attr("path",r)},e.prototype.changeRailPosition=function(t,e,n){var r=t.getBBox(),i=this.getRailPath(e,n,r.width,r.height);t.attr("path",i)},e.prototype.fixedHorizontal=function(t,e,n,r){var i=this.get("label"),a=i.align,o=i.spacing,s=n.getBBox(),l=t.getBBox(),u=e.getBBox(),c=s.height;this.fitRailLength(l,u,s,n),s=n.getBBox(),"rail"===a?(t.attr({x:r.x,y:r.y+c/2}),this.changeRailPosition(n,r.x+l.width+o,r.y),e.attr({x:r.x+l.width+s.width+2*o,y:r.y+c/2})):"top"===a?(t.attr({x:r.x,y:r.y}),e.attr({x:r.x+s.width,y:r.y}),this.changeRailPosition(n,r.x,r.y+l.height+o)):(this.changeRailPosition(n,r.x,r.y),t.attr({x:r.x,y:r.y+s.height+o}),e.attr({x:r.x+s.width,y:r.y+s.height+o}))},e.prototype.fixedVertail=function(t,e,n,r){var i=this.get("label"),a=i.align,o=i.spacing,s=n.getBBox(),l=t.getBBox(),u=e.getBBox();if(this.fitRailLength(l,u,s,n),s=n.getBBox(),"rail"===a)t.attr({x:r.x,y:r.y}),this.changeRailPosition(n,r.x,r.y+l.height+o),e.attr({x:r.x,y:r.y+l.height+s.height+2*o});else if("right"===a)t.attr({x:r.x+s.width+o,y:r.y}),this.changeRailPosition(n,r.x,r.y),e.attr({x:r.x+s.width+o,y:r.y+s.height});else{var c=Math.max(l.width,u.width);t.attr({x:r.x,y:r.y}),this.changeRailPosition(n,r.x+c+o,r.y),e.attr({x:r.x,y:r.y+s.height})}},e}(l.default);e.default=u},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Html=void 0;var i=n(459);Object.defineProperty(e,"Html",{enumerable:!0,get:function(){return r(i).default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=r.__importDefault(n(70)),o=n(47),s=n(1),l=r.__importDefault(n(76)),u=n(10),c=r.__importStar(n(111)),f=r.__importDefault(n(460)),h=n(461);var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"tooltip",type:"html",x:0,y:0,items:[],customContent:null,containerTpl:'<div class="'+c.CONTAINER_CLASS+'"><div class="'+c.TITLE_CLASS+'"></div><ul class="'+c.LIST_CLASS+'"></ul></div>',itemTpl:'<li class="'+c.LIST_ITEM_CLASS+'" data-index={index}>\n <span class="'+c.MARKER_CLASS+'" style="background:{color}"></span>\n <span class="'+c.NAME_CLASS+'">{name}</span>:\n <span class="'+c.VALUE_CLASS+'">{value}</span>\n </li>',xCrosshairTpl:'<div class="'+c.CROSSHAIR_X+'"></div>',yCrosshairTpl:'<div class="'+c.CROSSHAIR_Y+'"></div>',title:null,showTitle:!0,region:null,crosshairsRegion:null,containerClassName:c.CONTAINER_CLASS,crosshairs:null,offset:10,position:"right",domStyles:null,defaultStyles:f.default})},e.prototype.render=function(){this.get("customContent")?this.renderCustomContent():(this.resetTitle(),this.renderItems()),this.resetPosition()},e.prototype.clear=function(){this.clearCrosshairs(),this.setTitle(""),this.clearItemDoms()},e.prototype.show=function(){var t=this.getContainer();t&&!this.destroyed&&(this.set("visible",!0),(0,o.modifyCSS)(t,{visibility:"visible"}),this.setCrossHairsVisible(!0))},e.prototype.hide=function(){var t=this.getContainer();t&&!this.destroyed&&(this.set("visible",!1),(0,o.modifyCSS)(t,{visibility:"hidden"}),this.setCrossHairsVisible(!1))},e.prototype.getLocation=function(){return{x:this.get("x"),y:this.get("y")}},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetPosition()},e.prototype.setCrossHairsVisible=function(t){var e=t?"":"none",n=this.get("xCrosshairDom"),r=this.get("yCrosshairDom");n&&(0,o.modifyCSS)(n,{display:e}),r&&(0,o.modifyCSS)(r,{display:e})},e.prototype.initContainer=function(){if(t.prototype.initContainer.call(this),this.get("customContent")){this.get("container")&&this.get("container").remove();var e=this.getHtmlContentNode();this.get("parent").appendChild(e),this.set("container",e),this.resetStyles(),this.applyStyles()}},e.prototype.updateInner=function(e){var n,r,i;this.get("customContent")?this.renderCustomContent():(n=e,r=["title","showTitle"],i=!1,(0,s.each)(r,(function(t){if((0,s.hasKey)(n,t))return i=!0,!1})),i&&this.resetTitle(),(0,s.hasKey)(e,"items")&&this.renderItems()),t.prototype.updateInner.call(this,e)},e.prototype.initDom=function(){this.cacheDoms()},e.prototype.removeDom=function(){t.prototype.removeDom.call(this),this.clearCrosshairs()},e.prototype.resetPosition=function(){var t,e=this.get("x"),n=this.get("y"),r=this.get("offset"),i=this.getOffset(),a=i.offsetX,s=i.offsetY,l=this.get("position"),c=this.get("region"),f=this.getContainer(),p=this.getBBox(),d=p.width,g=p.height;c&&(t=(0,u.regionToBBox)(c));var y=(0,h.getAlignPoint)(e,n,r,d,g,l,t);(0,o.modifyCSS)(f,{left:(0,u.toPx)(y.x+a),top:(0,u.toPx)(y.y+s)}),this.resetCrosshairs()},e.prototype.renderCustomContent=function(){var t=this.getHtmlContentNode(),e=this.get("parent"),n=this.get("container");n&&n.parentNode===e?e.replaceChild(t,n):e.appendChild(t),this.set("container",t),this.resetStyles(),this.applyStyles()},e.prototype.getHtmlContentNode=function(){var t,e=this.get("customContent");if(e){var n=e(this.get("title"),this.get("items"));t=(0,s.isElement)(n)?n:(0,o.createDom)(n)}return t},e.prototype.cacheDoms=function(){var t=this.getContainer(),e=t.getElementsByClassName(c.TITLE_CLASS)[0],n=t.getElementsByClassName(c.LIST_CLASS)[0];this.set("titleDom",e),this.set("listDom",n)},e.prototype.resetTitle=function(){var t=this.get("title");this.get("showTitle")&&t?this.setTitle(t):this.setTitle("")},e.prototype.setTitle=function(t){var e=this.get("titleDom");e&&(e.innerText=t)},e.prototype.resetCrosshairs=function(){var t=this.get("crosshairsRegion"),e=this.get("crosshairs");if(t&&e){var n=(0,u.regionToBBox)(t),r=this.get("xCrosshairDom"),i=this.get("yCrosshairDom");"x"===e?(this.resetCrosshair("x",n),i&&(i.remove(),this.set("yCrosshairDom",null))):"y"===e?(this.resetCrosshair("y",n),r&&(r.remove(),this.set("xCrosshairDom",null))):(this.resetCrosshair("x",n),this.resetCrosshair("y",n)),this.setCrossHairsVisible(this.get("visible"))}else this.clearCrosshairs()},e.prototype.resetCrosshair=function(t,e){var n=this.checkCrosshair(t),r=this.get(t);"x"===t?(0,o.modifyCSS)(n,{left:(0,u.toPx)(r),top:(0,u.toPx)(e.y),height:(0,u.toPx)(e.height)}):(0,o.modifyCSS)(n,{top:(0,u.toPx)(r),left:(0,u.toPx)(e.x),width:(0,u.toPx)(e.width)})},e.prototype.checkCrosshair=function(t){var e=t+"CrosshairDom",n=t+"CrosshairTpl",r="CROSSHAIR_"+t.toUpperCase(),i=c[r],a=this.get(e),s=this.get("parent");return a||(a=(0,o.createDom)(this.get(n)),this.applyStyle(i,a),s.appendChild(a),this.set(e,a)),a},e.prototype.renderItems=function(){this.clearItemDoms();var t=this.get("items"),e=this.get("itemTpl"),n=this.get("listDom");n&&((0,s.each)(t,(function(t){var r=a.default.toCSSGradient(t.color),l=(0,i.__assign)((0,i.__assign)({},t),{color:r}),u=(0,s.substitute)(e,l),c=(0,o.createDom)(u);n.appendChild(c)})),this.applyChildrenStyles(n,this.get("domStyles")))},e.prototype.clearItemDoms=function(){this.get("listDom")&&(0,u.clearDom)(this.get("listDom"))},e.prototype.clearCrosshairs=function(){var t=this.get("xCrosshairDom"),e=this.get("yCrosshairDom");t&&t.remove(),e&&e.remove(),this.set("xCrosshairDom",null),this.set("yCrosshairDom",null)},e}(l.default);e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(0),a=i.__importDefault(n(21)),o=i.__importStar(n(111));e.default=((r={})[""+o.CONTAINER_CLASS]={position:"absolute",visibility:"visible",zIndex:8,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)",backgroundColor:"rgba(255, 255, 255, 0.9)",boxShadow:"0px 0px 10px #aeaeae",borderRadius:"3px",color:"rgb(87, 87, 87)",fontSize:"12px",fontFamily:a.default.fontFamily,lineHeight:"20px",padding:"10px 10px 6px 10px"},r[""+o.TITLE_CLASS]={marginBottom:"4px"},r[""+o.LIST_CLASS]={margin:"0px",listStyleType:"none",padding:"0px"},r[""+o.LIST_ITEM_CLASS]={listStyleType:"none",marginBottom:"4px"},r[""+o.MARKER_CLASS]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},r[""+o.VALUE_CLASS]={display:"inline-block",float:"right",marginLeft:"30px"},r[""+o.CROSSHAIR_X]={position:"absolute",width:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},r[""+o.CROSSHAIR_Y]={position:"absolute",height:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},r)},function(t,e,n){"use strict";function r(t,e,n,r,i){return{left:t<i.x,right:t+n>i.x+i.width,top:e<i.y,bottom:e+r>i.y+i.height}}function i(t,e,n,r,i,a){var o=t,s=e;switch(a){case"left":o=t-r-n,s=e-i/2;break;case"right":o=t+n,s=e-i/2;break;case"top":o=t-r/2,s=e-i-n;break;case"bottom":o=t-r/2,s=e+n;break;default:o=t+n,s=e-i-n}return{x:o,y:s}}Object.defineProperty(e,"__esModule",{value:!0}),e.getAlignPoint=e.getPointByPosition=e.getOutSides=void 0,e.getOutSides=r,e.getPointByPosition=i,e.getAlignPoint=function(t,e,n,a,o,s,l){var u=i(t,e,n,a,o,s);if(l){var c=r(u.x,u.y,a,o,l);"auto"===s?(c.right&&(u.x=Math.max(0,t-a-n)),c.top&&(u.y=Math.max(0,e-o-n))):"top"===s||"bottom"===s?(c.left&&(u.x=l.x),c.right&&(u.x=l.x+l.width-a),"top"===s&&c.top&&(u.y=e+n),"bottom"===s&&c.bottom&&(u.y=e-o-n)):(c.top&&(u.y=l.y),c.bottom&&(u.y=l.y+l.height-o),"left"===s&&c.left&&(u.x=t+n),"right"===s&&c.right&&(u.x=t-a-n))}return u}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Slider=void 0;var r=n(463);Object.defineProperty(e,"Slider",{enumerable:!0,get:function(){return r.Slider}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Slider=void 0;var r=n(0),i=n(0),a=n(1),o=r.__importDefault(n(9)),s=n(464),l=n(467),u=n(468),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.onMouseDown=function(t){return function(n){e.currentTarget=t;var r=n.originalEvent;r.stopPropagation(),r.preventDefault(),e.prevX=(0,a.get)(r,"touches.0.pageX",r.pageX),e.prevY=(0,a.get)(r,"touches.0.pageY",r.pageY);var i=e.getContainerDOM();i.addEventListener("mousemove",e.onMouseMove),i.addEventListener("mouseup",e.onMouseUp),i.addEventListener("mouseleave",e.onMouseUp),i.addEventListener("touchmove",e.onMouseMove),i.addEventListener("touchend",e.onMouseUp),i.addEventListener("touchcancel",e.onMouseUp)}},e.onMouseMove=function(t){var n=e.cfg.width,r=[e.get("start"),e.get("end")];t.stopPropagation(),t.preventDefault();var i=(0,a.get)(t,"touches.0.pageX",t.pageX),o=(0,a.get)(t,"touches.0.pageY",t.pageY),s=i-e.prevX,l=e.adjustOffsetRange(s/n);e.updateStartEnd(l),e.updateUI(e.getElementByLocalId("foreground"),e.getElementByLocalId("minText"),e.getElementByLocalId("maxText")),e.prevX=i,e.prevY=o,e.draw(),e.emit(u.SLIDER_CHANGE,[e.get("start"),e.get("end")].sort()),e.delegateEmit("valuechanged",{originValue:r,value:[e.get("start"),e.get("end")]})},e.onMouseUp=function(){e.currentTarget&&(e.currentTarget=void 0);var t=e.getContainerDOM();t&&(t.removeEventListener("mousemove",e.onMouseMove),t.removeEventListener("mouseup",e.onMouseUp),t.removeEventListener("mouseleave",e.onMouseUp),t.removeEventListener("touchmove",e.onMouseMove),t.removeEventListener("touchend",e.onMouseUp),t.removeEventListener("touchcancel",e.onMouseUp))},e}return(0,i.__extends)(e,t),e.prototype.setRange=function(t,e){this.set("minLimit",t),this.set("maxLimit",e);var n=this.get("start"),r=this.get("end"),i=(0,a.clamp)(n,t,e),o=(0,a.clamp)(r,t,e);this.get("isInit")||n===i&&r===o||this.setValue([i,o])},e.prototype.getRange=function(){return{min:this.get("minLimit")||0,max:this.get("maxLimit")||1}},e.prototype.setValue=function(t){var e=this.getRange();if((0,a.isArray)(t)&&2===t.length){var n=[this.get("start"),this.get("end")];this.update({start:(0,a.clamp)(t[0],e.min,e.max),end:(0,a.clamp)(t[1],e.min,e.max)}),this.get("updateAutoRender")||this.render(),this.delegateEmit("valuechanged",{originValue:n,value:t})}},e.prototype.getValue=function(){return[this.get("start"),this.get("end")]},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"slider",x:0,y:0,width:100,height:16,backgroundStyle:{},foregroundStyle:{},handlerStyle:{},textStyle:{},defaultCfg:{backgroundStyle:u.BACKGROUND_STYLE,foregroundStyle:u.FOREGROUND_STYLE,handlerStyle:u.HANDLER_STYLE,textStyle:u.TEXT_STYLE}})},e.prototype.update=function(e){var n=e.start,r=e.end,o=(0,i.__assign)({},e);(0,a.isNil)(n)||(o.start=(0,a.clamp)(n,0,1)),(0,a.isNil)(r)||(o.end=(0,a.clamp)(r,0,1)),t.prototype.update.call(this,o),this.minHandler=this.getChildComponentById(this.getElementId("minHandler")),this.maxHandler=this.getChildComponentById(this.getElementId("maxHandler")),this.trend=this.getChildComponentById(this.getElementId("trend"))},e.prototype.init=function(){this.set("start",(0,a.clamp)(this.get("start"),0,1)),this.set("end",(0,a.clamp)(this.get("end"),0,1)),t.prototype.init.call(this)},e.prototype.render=function(){t.prototype.render.call(this),this.updateUI(this.getElementByLocalId("foreground"),this.getElementByLocalId("minText"),this.getElementByLocalId("maxText"))},e.prototype.renderInner=function(t){var e=this.cfg,n=(e.start,e.end,e.width),r=e.height,o=e.trendCfg,c=void 0===o?{}:o,f=e.minText,h=e.maxText,p=e.backgroundStyle,d=void 0===p?{}:p,g=e.foregroundStyle,y=void 0===g?{}:g,v=e.textStyle,m=void 0===v?{}:v,_=(0,a.deepMix)({},l.DEFAULT_HANDLER_STYLE,this.cfg.handlerStyle);(0,a.size)((0,a.get)(c,"data"))&&(this.trend=this.addComponent(t,(0,i.__assign)({component:s.Trend,id:this.getElementId("trend"),x:0,y:0,width:n,height:r},c))),this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:(0,i.__assign)({x:0,y:0,width:n,height:r},d)});this.addShape(t,{id:this.getElementId("minText"),type:"text",attrs:(0,i.__assign)({y:r/2,textAlign:"right",text:f,silent:!1},m)}),this.addShape(t,{id:this.getElementId("maxText"),type:"text",attrs:(0,i.__assign)({y:r/2,textAlign:"left",text:h,silent:!1},m)}),this.addShape(t,{id:this.getElementId("foreground"),name:"foreground",type:"rect",attrs:(0,i.__assign)({y:0,height:r},y)});var x=(0,a.get)(_,"width",u.DEFAULT_HANDLER_WIDTH),b=(0,a.get)(_,"height",24);this.minHandler=this.addComponent(t,{component:l.Handler,id:this.getElementId("minHandler"),name:"handler-min",x:0,y:(r-b)/2,width:x,height:b,cursor:"ew-resize",style:_}),this.maxHandler=this.addComponent(t,{component:l.Handler,id:this.getElementId("maxHandler"),name:"handler-max",x:0,y:(r-b)/2,width:x,height:b,cursor:"ew-resize",style:_})},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},e.prototype.initEvent=function(){this.bindEvents()},e.prototype.updateUI=function(t,e,n){var r=this.cfg,i=r.start,o=r.end,s=r.width,l=r.minText,c=r.maxText,f=r.handlerStyle,h=r.height,p=i*s,d=o*s;this.trend&&(this.trend.update({width:s,height:h}),this.get("updateAutoRender")||this.trend.render()),t.attr("x",p),t.attr("width",d-p);var g=(0,a.get)(f,"width",u.DEFAULT_HANDLER_WIDTH);e.attr("text",l),n.attr("text",c);var y=this._dodgeText([p,d],e,n),v=y[0],m=y[1];this.minHandler&&(this.minHandler.update({x:p-g/2}),this.get("updateAutoRender")||this.minHandler.render()),(0,a.each)(v,(function(t,n){return e.attr(n,t)})),this.maxHandler&&(this.maxHandler.update({x:d-g/2}),this.get("updateAutoRender")||this.maxHandler.render()),(0,a.each)(m,(function(t,e){return n.attr(e,t)}))},e.prototype.bindEvents=function(){var t=this.get("group");t.on("handler-min:mousedown",this.onMouseDown("minHandler")),t.on("handler-min:touchstart",this.onMouseDown("minHandler")),t.on("handler-max:mousedown",this.onMouseDown("maxHandler")),t.on("handler-max:touchstart",this.onMouseDown("maxHandler"));var e=t.findById(this.getElementId("foreground"));e.on("mousedown",this.onMouseDown("foreground")),e.on("touchstart",this.onMouseDown("foreground"))},e.prototype.adjustOffsetRange=function(t){var e=this.cfg,n=e.start,r=e.end;switch(this.currentTarget){case"minHandler":var i=0-n,a=1-n;return Math.min(a,Math.max(i,t));case"maxHandler":i=0-r,a=1-r;return Math.min(a,Math.max(i,t));case"foreground":i=0-n,a=1-r;return Math.min(a,Math.max(i,t))}},e.prototype.updateStartEnd=function(t){var e=this.cfg,n=e.start,r=e.end;switch(this.currentTarget){case"minHandler":n+=t;break;case"maxHandler":r+=t;break;case"foreground":n+=t,r+=t}this.set("start",n),this.set("end",r)},e.prototype._dodgeText=function(t,e,n){var r,i,o=this.cfg,s=o.handlerStyle,l=o.width,c=(0,a.get)(s,"width",u.DEFAULT_HANDLER_WIDTH),f=t[0],h=t[1],p=!1;f>h&&(f=(r=[h,f])[0],h=r[1],e=(i=[n,e])[0],n=i[1],p=!0);var d=e.getBBox(),g=n.getBBox(),y=d.width>f-2?{x:f+c/2+2,textAlign:"left"}:{x:f-c/2-2,textAlign:"right"},v=g.width>l-h-2?{x:h-c/2-2,textAlign:"right"}:{x:h+c/2+2,textAlign:"left"};return p?[v,y]:[y,v]},e.prototype.draw=function(){var t=this.get("container"),e=t&&t.get("canvas");e&&e.draw()},e.prototype.getContainerDOM=function(){var t=this.get("container"),e=t&&t.get("canvas");return e&&e.get("container")},e}(o.default);e.Slider=c,e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Trend=void 0;var r=n(0),i=n(0),a=r.__importDefault(n(9)),o=n(465),s=n(466),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"trend",x:0,y:0,width:200,height:16,smooth:!0,isArea:!1,data:[],backgroundStyle:o.BACKGROUND_STYLE,lineStyle:o.LINE_STYLE,areaStyle:o.AREA_STYLE})},e.prototype.renderInner=function(t){var e=this.cfg,n=e.width,r=e.height,a=e.data,o=e.smooth,l=e.isArea,u=e.backgroundStyle,c=e.lineStyle,f=e.areaStyle;this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:(0,i.__assign)({x:0,y:0,width:n,height:r},u)});var h=(0,s.dataToPath)(a,n,r,o);if(this.addShape(t,{id:this.getElementId("line"),type:"path",attrs:(0,i.__assign)({path:h},c)}),l){var p=(0,s.linePathToAreaPath)(h,n,r,a);this.addShape(t,{id:this.getElementId("area"),type:"path",attrs:(0,i.__assign)({path:p},f)})}},e.prototype.applyOffset=function(){var t=this.cfg,e=t.x,n=t.y;this.moveElementTo(this.get("group"),{x:e,y:n})},e}(a.default);e.Trend=l,e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AREA_STYLE=e.LINE_STYLE=e.BACKGROUND_STYLE=void 0,e.BACKGROUND_STYLE={opacity:0},e.LINE_STYLE={stroke:"#C5C5C5",strokeOpacity:.85},e.AREA_STYLE={fill:"#CACED4",opacity:.85}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.linePathToAreaPath=e.getAreaLineY=e.dataToPath=e.getSmoothLinePath=e.getLinePath=void 0;var r=n(0),i=n(50),a=n(103),o=n(1);function s(t){return function(t){return(0,o.map)(t,(function(t,e){return[0===e?"M":"L",t[0],t[1]]}))}(t)}function l(t){if(t.length<=2)return s(t);var e=[];(0,o.each)(t,(function(t){(0,o.isEqual)(t,e.slice(e.length-2))||e.push(t[0],t[1])}));var n=(0,i.catmullRom2Bezier)(e,!1),r=(0,o.head)(t),a=r[0],l=r[1];return n.unshift(["M",a,l]),n}function u(t,e){var n=new a.Linear({values:t}),r=n.max<0?n.max:Math.max(0,n.min);return e-n.scale(r)*e}e.getLinePath=s,e.getSmoothLinePath=l,e.dataToPath=function(t,e,n,r){void 0===r&&(r=!0);var i=new a.Linear({values:t}),u=new a.Category({values:(0,o.map)(t,(function(t,e){return e}))}),c=(0,o.map)(t,(function(t,r){return[u.scale(r)*e,n-i.scale(t)*n]}));return r?l(c):s(c)},e.getAreaLineY=u,e.linePathToAreaPath=function(t,e,n,i){var a=(0,r.__spreadArrays)(t),o=u(i,n);return a.push(["L",e,o]),a.push(["L",0,o]),a.push(["Z"]),a}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Handler=e.DEFAULT_HANDLER_STYLE=void 0;var r=n(0),i=n(0),a=r.__importDefault(n(9));e.DEFAULT_HANDLER_STYLE={fill:"#F7F7F7",stroke:"#BFBFBF",radius:2,opacity:1,cursor:"ew-resize",highLightFill:"#FFF"};var o=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(n,t),n.prototype.getDefaultCfg=function(){var n=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},n),{name:"handler",x:0,y:0,width:10,height:24,style:e.DEFAULT_HANDLER_STYLE})},n.prototype.renderInner=function(t){var e=this.cfg,n=e.width,r=e.height,i=e.style,a=i.fill,o=i.stroke,s=i.radius,l=i.opacity,u=i.cursor;this.addShape(t,{type:"rect",id:this.getElementId("background"),attrs:{x:0,y:0,width:n,height:r,fill:a,stroke:o,radius:s,opacity:l,cursor:u}});var c=1/3*n,f=2/3*n,h=1/4*r,p=3/4*r;this.addShape(t,{id:this.getElementId("line-left"),type:"line",attrs:{x1:c,y1:h,x2:c,y2:p,stroke:o,cursor:u}}),this.addShape(t,{id:this.getElementId("line-right"),type:"line",attrs:{x1:f,y1:h,x2:f,y2:p,stroke:o,cursor:u}})},n.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},n.prototype.initEvent=function(){this.bindEvents()},n.prototype.bindEvents=function(){var t=this;this.get("group").on("mouseenter",(function(){var e=t.get("style").highLightFill;t.getElementByLocalId("background").attr("fill",e),t.draw()})),this.get("group").on("mouseleave",(function(){var e=t.get("style").fill;t.getElementByLocalId("background").attr("fill",e),t.draw()}))},n.prototype.draw=function(){var t=this.get("container").get("canvas");t&&t.draw()},n}(a.default);e.Handler=o,e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SLIDER_CHANGE=e.TEXT_STYLE=e.HANDLER_STYLE=e.DEFAULT_HANDLER_WIDTH=e.FOREGROUND_STYLE=e.BACKGROUND_STYLE=void 0,e.BACKGROUND_STYLE={fill:"#416180",opacity:.05},e.FOREGROUND_STYLE={fill:"#5B8FF9",opacity:.15,cursor:"move"},e.DEFAULT_HANDLER_WIDTH=10,e.HANDLER_STYLE={width:e.DEFAULT_HANDLER_WIDTH,height:24},e.TEXT_STYLE={textBaseline:"middle",fill:"#000",opacity:.45},e.SLIDER_CHANGE="sliderchange"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n(0).__exportStar(n(470),e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Scrollbar=e.DEFAULT_THEME=void 0;var r=n(0),i=n(0),a=n(47),o=n(1),s=r.__importDefault(n(9));e.DEFAULT_THEME={default:{trackColor:"rgba(0,0,0,0)",thumbColor:"rgba(0,0,0,0.15)",size:8,lineCap:"round"},hover:{thumbColor:"rgba(0,0,0,0.2)"}};var l=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.clearEvents=o.noop,e.onStartEvent=function(t){return function(n){e.isMobile=t,n.originalEvent.preventDefault();var r=t?(0,o.get)(n.originalEvent,"touches.0.clientX"):n.clientX,i=t?(0,o.get)(n.originalEvent,"touches.0.clientY"):n.clientY;e.startPos=e.cfg.isHorizontal?r:i,e.bindLaterEvent()}},e.bindLaterEvent=function(){var t=e.getContainerDOM(),n=[];n=e.isMobile?[(0,a.addEventListener)(t,"touchmove",e.onMouseMove),(0,a.addEventListener)(t,"touchend",e.onMouseUp),(0,a.addEventListener)(t,"touchcancel",e.onMouseUp)]:[(0,a.addEventListener)(t,"mousemove",e.onMouseMove),(0,a.addEventListener)(t,"mouseup",e.onMouseUp),(0,a.addEventListener)(t,"mouseleave",e.onMouseUp)],e.clearEvents=function(){n.forEach((function(t){t.remove()}))}},e.onMouseMove=function(t){var n=e.cfg,r=n.isHorizontal,i=n.thumbOffset;t.preventDefault();var a=e.isMobile?(0,o.get)(t,"touches.0.clientX"):t.clientX,s=e.isMobile?(0,o.get)(t,"touches.0.clientY"):t.clientY,l=r?a:s,u=l-e.startPos;e.startPos=l,e.updateThumbOffset(i+u)},e.onMouseUp=function(t){t.preventDefault(),e.clearEvents()},e.onTrackClick=function(t){var n=e.cfg,r=n.isHorizontal,i=n.x,a=n.y,o=n.thumbLen,s=e.getContainerDOM().getBoundingClientRect(),l=t.clientX,u=t.clientY,c=r?l-s.left-i-o/2:u-s.top-a-o/2,f=e.validateRange(c);e.updateThumbOffset(f)},e.onThumbMouseOver=function(){var t=e.cfg.theme.hover.thumbColor;e.getElementByLocalId("thumb").attr("stroke",t),e.draw()},e.onThumbMouseOut=function(){var t=e.cfg.theme.default.thumbColor;e.getElementByLocalId("thumb").attr("stroke",t),e.draw()},e}return(0,i.__extends)(n,t),n.prototype.setRange=function(t,e){this.set("minLimit",t),this.set("maxLimit",e);var n=this.getValue(),r=(0,o.clamp)(n,t,e);n===r||this.get("isInit")||this.setValue(r)},n.prototype.getRange=function(){return{min:this.get("minLimit")||0,max:this.get("maxLimit")||1}},n.prototype.setValue=function(t){var e=this.getRange(),n=this.getValue();this.update({thumbOffset:(this.get("trackLen")-this.get("thumbLen"))*(0,o.clamp)(t,e.min,e.max)}),this.delegateEmit("valuechange",{originalValue:n,value:this.getValue()})},n.prototype.getValue=function(){return(0,o.clamp)(this.get("thumbOffset")/(this.get("trackLen")-this.get("thumbLen")),0,1)},n.prototype.getDefaultCfg=function(){var n=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},n),{name:"scrollbar",isHorizontal:!0,minThumbLen:20,thumbOffset:0,theme:e.DEFAULT_THEME})},n.prototype.renderInner=function(t){this.renderTrackShape(t),this.renderThumbShape(t)},n.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},n.prototype.initEvent=function(){this.bindEvents()},n.prototype.renderTrackShape=function(t){var n=this.cfg,r=n.trackLen,i=n.theme,a=void 0===i?{default:{}}:i,s=(0,o.deepMix)({},e.DEFAULT_THEME,a).default,l=s.lineCap,u=s.trackColor,c=s.size,f=(0,o.get)(this.cfg,"size",c),h=this.get("isHorizontal")?{x1:0+f/2,y1:f/2,x2:r-f/2,y2:f/2,lineWidth:f,stroke:u,lineCap:l}:{x1:f/2,y1:0+f/2,x2:f/2,y2:r-f/2,lineWidth:f,stroke:u,lineCap:l};return this.addShape(t,{id:this.getElementId("track"),name:"track",type:"line",attrs:h})},n.prototype.renderThumbShape=function(t){var n=this.cfg,r=n.thumbOffset,i=n.thumbLen,a=n.theme,s=(0,o.deepMix)({},e.DEFAULT_THEME,a).default,l=s.size,u=s.lineCap,c=s.thumbColor,f=(0,o.get)(this.cfg,"size",l),h=this.get("isHorizontal")?{x1:r+f/2,y1:f/2,x2:r+i-f/2,y2:f/2,lineWidth:f,stroke:c,lineCap:u,cursor:"default"}:{x1:f/2,y1:r+f/2,x2:f/2,y2:r+i-f/2,lineWidth:f,stroke:c,lineCap:u,cursor:"default"};return this.addShape(t,{id:this.getElementId("thumb"),name:"thumb",type:"line",attrs:h})},n.prototype.bindEvents=function(){var t=this.get("group");t.on("mousedown",this.onStartEvent(!1)),t.on("mouseup",this.onMouseUp),t.on("touchstart",this.onStartEvent(!0)),t.on("touchend",this.onMouseUp),t.findById(this.getElementId("track")).on("click",this.onTrackClick);var e=t.findById(this.getElementId("thumb"));e.on("mouseover",this.onThumbMouseOver),e.on("mouseout",this.onThumbMouseOut)},n.prototype.getContainerDOM=function(){var t=this.get("container"),e=t&&t.get("canvas");return e&&e.get("container")},n.prototype.validateRange=function(t){var e=this.cfg,n=e.thumbLen,r=e.trackLen,i=t;return t+n>r?i=r-n:t+n<n&&(i=0),i},n.prototype.draw=function(){var t=this.get("container"),e=t&&t.get("canvas");e&&e.draw()},n.prototype.updateThumbOffset=function(t){var e=this.cfg,n=e.thumbOffset,r=e.isHorizontal,i=e.thumbLen,a=e.size,o=this.validateRange(t);if(o!==n){var s=this.getElementByLocalId("thumb");r?s.attr({x1:o+a/2,x2:o+i-a/2}):s.attr({y1:o+a/2,y2:o+i-a/2}),this.emitOffsetChange(o)}},n.prototype.emitOffsetChange=function(t){var e=this.cfg,n=e.thumbOffset,r=e.trackLen,i=e.thumbLen;this.cfg.thumbOffset=t,this.emit("scrollchange",{thumbOffset:t,ratio:(0,o.clamp)(t/(r-i),0,1)}),this.delegateEmit("valuechange",{originalValue:n,value:t})},n}(s.default);e.Scrollbar=l},function(t,e){},function(t,e){},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseAction=void 0;var r=n(0),i=n(1),a=n(203),o=r.__importDefault(n(475)),s=r.__importDefault(n(204));function l(t,e,n){var r=t.split(":"),i=r[0],o=e.getAction(i)||(0,a.createAction)(i,e);if(!o)throw new Error("There is no action named ".concat(i));return{action:o,methodName:r[1],arg:n}}function u(t){var e=t.action,n=t.methodName,r=t.arg;if(!e[n])throw new Error("Action(".concat(e.name,") doesn't have a method called ").concat(n));e[n](r)}e.parseAction=l;var c="start",f="showEnable",h="end",p="rollback",d="processing",g=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.callbackCaches={},r.emitCaches={},r.steps=n,r}return r.__extends(e,t),e.prototype.init=function(){this.initContext(),t.prototype.init.call(this)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.steps=null,this.context&&(this.context.destroy(),this.context=null),this.callbackCaches=null,this.view=null},e.prototype.initEvents=function(){var t=this;(0,i.each)(this.steps,(function(e,n){(0,i.each)(e,(function(e){var r=t.getActionCallback(n,e);r&&t.bindEvent(e.trigger,r)}))}))},e.prototype.clearEvents=function(){var t=this;(0,i.each)(this.steps,(function(e,n){(0,i.each)(e,(function(e){var r=t.getActionCallback(n,e);r&&t.offEvent(e.trigger,r)}))}))},e.prototype.initContext=function(){var t=this.view,e=new o.default(t);this.context=e;var n=this.steps;(0,i.each)(n,(function(t){(0,i.each)(t,(function(t){if((0,i.isFunction)(t.action))t.actionObject={action:(0,a.createCallbackAction)(t.action,e),methodName:"execute"};else if((0,i.isString)(t.action))t.actionObject=l(t.action,e,t.arg);else if((0,i.isArray)(t.action)){var n=t.action,r=(0,i.isArray)(t.arg)?t.arg:[t.arg];t.actionObject=[],(0,i.each)(n,(function(n,i){t.actionObject.push(l(n,e,r[i]))}))}}))}))},e.prototype.isAllowStep=function(t){var e=this.currentStepName,n=this.steps;if(e===t)return!0;if(t===f)return!0;if(t===d)return e===c;if(t===c)return e!==d;if(t===h)return e===d||e===c;if(t===p){if(n[h])return e===h;if(e===c)return!0}return!1},e.prototype.isAllowExecute=function(t,e){if(this.isAllowStep(t)){var n=this.getKey(t,e);return(!e.once||!this.emitCaches[n])&&(!e.isEnable||e.isEnable(this.context))}return!1},e.prototype.enterStep=function(t){this.currentStepName=t,this.emitCaches={}},e.prototype.afterExecute=function(t,e){t!==f&&this.currentStepName!==t&&this.enterStep(t);var n=this.getKey(t,e);this.emitCaches[n]=!0},e.prototype.getKey=function(t,e){return t+e.trigger+e.action},e.prototype.getActionCallback=function(t,e){var n=this,r=this.context,a=this.callbackCaches,o=e.actionObject;if(e.action&&o){var s=this.getKey(t,e);if(!a[s]){var l=function(a){r.event=a,n.isAllowExecute(t,e)?((0,i.isArray)(o)?(0,i.each)(o,(function(t){r.event=a,u(t)})):(r.event=a,u(o)),n.afterExecute(t,e),e.callback&&(r.event=a,e.callback(r))):r.event=null};e.debounce?a[s]=(0,i.debounce)(l,e.debounce.wait,e.debounce.immediate):e.throttle?a[s]=(0,i.throttle)(l,e.throttle.wait,{leading:e.throttle.leading,trailing:e.throttle.trailing}):a[s]=l}return a[s]}return null},e.prototype.bindEvent=function(t,e){var n=t.split(":");"window"===n[0]?window.addEventListener(n[1],e):"document"===n[0]?document.addEventListener(n[1],e):this.view.on(t,e)},e.prototype.offEvent=function(t,e){var n=t.split(":");"window"===n[0]?window.removeEventListener(n[1],e):"document"===n[0]?document.removeEventListener(n[1],e):this.view.off(t,e)},e}(s.default);e.default=g},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.execute=function(){this.callback&&this.callback(this.context)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.callback=null},e}(r.__importDefault(n(11)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(4),a=function(){function t(t){this.actions=[],this.event=null,this.cacheMap={},this.view=t}return t.prototype.cache=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length)return this.cacheMap[t[0]];2===t.length&&(this.cacheMap[t[0]]=t[1])},t.prototype.getAction=function(t){return this.actions.find((function(e){return e.name===t}))},t.prototype.addAction=function(t){this.actions.push(t)},t.prototype.removeAction=function(t){var e=this.actions,n=this.actions.indexOf(t);n>=0&&e.splice(n,1)},t.prototype.getCurrentPoint=function(){var t=this.event;return t?t.target instanceof HTMLElement?this.view.getCanvas().getPointByClient(t.clientX,t.clientY):{x:t.x,y:t.y}:null},t.prototype.getCurrentShape=function(){return(0,r.get)(this.event,["gEvent","shape"])},t.prototype.isInPlot=function(){var t=this.getCurrentPoint();return!!t&&this.view.isPointInPlot(t)},t.prototype.isInShape=function(t){var e=this.getCurrentShape();return!!e&&e.get("name")===t},t.prototype.isInComponent=function(t){var e=(0,i.getComponents)(this.view),n=this.getCurrentPoint();return!!n&&!!e.find((function(e){var r=e.getBBox();return t?e.get("name")===t&&(0,i.isInBox)(r,n):(0,i.isInBox)(r,n)}))},t.prototype.destroy=function(){(0,r.each)(this.actions.slice(),(function(t){t.destroy()})),this.view=null,this.event=null,this.actions=null,this.cacheMap=null},t}();e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createTheme=void 0;var r=n(0),i=n(1),a=n(207),o=n(477);e.createTheme=function(t){var e=t.styleSheet,n=void 0===e?{}:e,s=r.__rest(t,["styleSheet"]),l=(0,o.createLightStyleSheet)(n);return(0,i.deepMix)({},(0,a.createThemeByStyleSheet)(l),s)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.antvLight=e.createLightStyleSheet=void 0;var r=n(0),i="#000",a="#595959",o="#8C8C8C",s="#BFBFBF",l="#D9D9D9",u="#F0F0F0",c="#FFFFFF",f="#D9D9D9",h=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#6F5EF9","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],p=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#6F5EF9","#D3CEFD","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],d=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"];e.createLightStyleSheet=function(t){void 0===t&&(t={});var e=t.paletteQualitative10,n=void 0===e?h:e,g=t.paletteQualitative20,y=void 0===g?p:g,v=t.brandColor,m=void 0===v?n[0]:v,_={backgroundColor:"transparent",brandColor:m,subColor:"rgba(0,0,0,0.05)",paletteQualitative10:n,paletteQualitative20:y,paletteSemanticRed:"#F4664A",paletteSemanticGreen:"#30BF78",paletteSemanticYellow:"#FAAD14",paletteSequence:d,fontFamily:'"Segoe UI", Roboto, "Helvetica Neue", Arial,\n "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n "Noto Color Emoji"',axisLineBorderColor:s,axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:a,axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisDescriptionIconFillColor:f,axisTickLineBorderColor:s,axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:l,axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:o,axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:l,axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:o,legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:m,legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:a,legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",legendItemSpacing:24,legendItemMarginBottom:12,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:i,legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:i,legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:o,legendPageNavigatorTextFontSize:12,sliderRailFillColor:l,sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:o,sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:u,sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:s,annotationArcBorderColor:l,annotationArcBorder:1,annotationLineBorderColor:s,annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:a,annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:i,annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:s,tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"rgb(255, 255, 255)",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 0px 10px #aeaeae",tooltipContainerBorderRadius:3,tooltipTextFillColor:a,tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:a,labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:c,innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:a,overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:c,overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:s,cSliderRailHieght:16,cSliderBackgroundFillColor:"#416180",cSliderBackgroundFillOpacity:.05,cSliderForegroundFillColor:"#5B8FF9",cSliderForegroundFillOpacity:.15,cSliderHandlerHeight:24,cSliderHandlerWidth:10,cSliderHandlerFillColor:"#F7F7F7",cSliderHandlerFillOpacity:1,cSliderHandlerHighlightFillColor:"#FFF",cSliderHandlerBorderColor:"#BFBFBF",cSliderHandlerBorder:1,cSliderHandlerBorderRadius:2,cSliderTextFillColor:"#000",cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:"normal",cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:"rgba(0,0,0,0)",scrollbarThumbFillColor:"rgba(0,0,0,0.15)",scrollbarThumbHighlightFillColor:"rgba(0,0,0,0.2)",pointFillColor:m,pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:c,pointBorderOpacity:1,pointActiveBorderColor:i,pointSelectedBorder:2,pointSelectedBorderColor:i,pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:m,hollowPointBorderOpacity:.95,hollowPointFillColor:c,hollowPointActiveBorder:1,hollowPointActiveBorderColor:i,hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:i,hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:m,lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:m,areaFillOpacity:.25,areaActiveFillColor:m,areaActiveFillOpacity:.5,areaSelectedFillColor:m,areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:m,hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:i,hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:i,hollowAreaInactiveBorderOpacity:.3,intervalFillColor:m,intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:i,intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:i,intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:m,hollowIntervalBorderOpacity:1,hollowIntervalFillColor:c,hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:i,hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:i,hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3};return r.__assign(r.__assign({},_),t)},e.antvLight=(0,e.createLightStyleSheet)()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(19),o=function(){function t(t){this.option=this.wrapperOption(t)}return t.prototype.update=function(t){return this.option=this.wrapperOption(t),this},t.prototype.hasAction=function(t){var e=this.option.actions;return(0,i.some)(e,(function(e){return e[0]===t}))},t.prototype.create=function(t,e){var n=this.option,i=n.type,o=n.cfg,s="theta"===i,l=r.__assign({start:t,end:e},o),u=(0,a.getCoordinate)(s?"polar":i);return this.coordinate=new u(l),this.coordinate.type=i,s&&(this.hasAction("transpose")||this.transpose()),this.execActions(),this.coordinate},t.prototype.adjust=function(t,e){return this.coordinate.update({start:t,end:e}),this.coordinate.resetMatrix(),this.execActions(["scale","rotate","translate"]),this.coordinate},t.prototype.rotate=function(t){return this.option.actions.push(["rotate",t]),this},t.prototype.reflect=function(t){return this.option.actions.push(["reflect",t]),this},t.prototype.scale=function(t,e){return this.option.actions.push(["scale",t,e]),this},t.prototype.transpose=function(){return this.option.actions.push(["transpose"]),this},t.prototype.getOption=function(){return this.option},t.prototype.getCoordinate=function(){return this.coordinate},t.prototype.wrapperOption=function(t){return r.__assign({type:"rect",actions:[],cfg:{}},t)},t.prototype.execActions=function(t){var e=this,n=this.option.actions;(0,i.each)(n,(function(n){var a,o=r.__read(n),s=o[0],l=o.slice(1);(!!(0,i.isNil)(t)||t.includes(s))&&(a=e.coordinate)[s].apply(a,r.__spreadArray([],r.__read(l),!1))}))},t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.getController("axis"),n=t.getController("legend"),r=t.getController("annotation");[e,t.getController("slider"),t.getController("scrollbar"),n,r].forEach((function(t){t&&t.layout()}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ScalePool=void 0;var r=n(1),i=n(38),a=function(){function t(){this.scales=new Map,this.syncScales=new Map}return t.prototype.createScale=function(t,e,n,a){var o=n,s=this.getScaleMeta(a);if(0===e.length&&s){var l=s.scale,u={type:l.type};l.isCategory&&(u.values=l.values),o=(0,r.deepMix)(u,s.scaleDef,n)}var c=(0,i.createScaleByField)(t,e,o);return this.cacheScale(c,n,a),c},t.prototype.sync=function(t,e){var n=this;this.syncScales.forEach((function(a,o){var s=Number.MAX_SAFE_INTEGER,l=Number.MIN_SAFE_INTEGER,u=[];(0,r.each)(a,(function(t){var e=n.getScale(t);l=(0,r.isNumber)(e.max)?Math.max(l,e.max):l,s=(0,r.isNumber)(e.min)?Math.min(s,e.min):s,(0,r.each)(e.values,(function(t){u.includes(t)||u.push(t)}))})),(0,r.each)(a,(function(a){var o=n.getScale(a);if(o.isContinuous)o.change({min:s,max:l,values:u});else if(o.isCategory){var c=o.range,f=n.getScaleMeta(a);u&&!(0,r.get)(f,["scaleDef","range"])&&(c=(0,i.getDefaultCategoryScaleRange)((0,r.deepMix)({},o,{values:u}),t,e)),o.change({values:u,range:c})}}))}))},t.prototype.cacheScale=function(t,e,n){var r=this.getScaleMeta(n);r&&r.scale.type===t.type?((0,i.syncScale)(r.scale,t),r.scaleDef=e):(r={key:n,scale:t,scaleDef:e},this.scales.set(n,r));var a=this.getSyncKey(r);if(r.syncKey=a,this.removeFromSyncScales(n),a){var o=this.syncScales.get(a);o||(o=[],this.syncScales.set(a,o)),o.push(n)}},t.prototype.getScale=function(t){var e=this.getScaleMeta(t);if(!e){var n=(0,r.last)(t.split("-")),i=this.syncScales.get(n);i&&i.length&&(e=this.getScaleMeta(i[0]))}return e&&e.scale},t.prototype.deleteScale=function(t){var e=this.getScaleMeta(t);if(e){var n=e.syncKey,r=this.syncScales.get(n);if(r&&r.length){var i=r.indexOf(t);-1!==i&&r.splice(i,1)}}this.scales.delete(t)},t.prototype.clear=function(){this.scales.clear(),this.syncScales.clear()},t.prototype.removeFromSyncScales=function(t){var e=this;this.syncScales.forEach((function(n,r){var i=n.indexOf(t);if(-1!==i)return n.splice(i,1),0===n.length&&e.syncScales.delete(r),!1}))},t.prototype.getSyncKey=function(t){var e=t.scale,n=t.scaleDef,i=e.field,a=(0,r.get)(n,["sync"]);return!0===a?i:!1===a?void 0:a},t.prototype.getScaleMeta=function(t){return this.scales.get(t)},t}();e.ScalePool=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.calculatePadding=void 0;var r=n(0),i=n(1),a=n(2),o=n(29),s=n(113),l=n(209);e.calculatePadding=function(t){var e=t.padding;if(!(0,s.isAutoPadding)(e))return new(l.PaddingCal.bind.apply(l.PaddingCal,r.__spreadArray([void 0],r.__read((0,s.parsePadding)(e)),!1)));var n=t.viewBBox,u=new l.PaddingCal,c=[],f=[],h=[];return(0,i.each)(t.getComponents(),(function(t){var e=t.type;e===a.COMPONENT_TYPE.AXIS?c.push(t):[a.COMPONENT_TYPE.LEGEND,a.COMPONENT_TYPE.SLIDER,a.COMPONENT_TYPE.SCROLLBAR].includes(e)?f.push(t):e!==a.COMPONENT_TYPE.GRID&&e!==a.COMPONENT_TYPE.TOOLTIP&&h.push(t)})),(0,i.each)(c,(function(t){var e=t.component.getLayoutBBox(),r=new o.BBox(e.x,e.y,e.width,e.height).exceed(n);u.max(r)})),(0,i.each)(f,(function(t){var e=t.component,n=t.direction,r=e.getLayoutBBox(),i=e.get("padding"),a=new o.BBox(r.x,r.y,r.width,r.height).expand(i);u.inc(a,n)})),(0,i.each)(h,(function(t){var e=t.component,n=t.direction,r=e.getLayoutBBox(),i=new o.BBox(r.x,r.y,r.width,r.height);u.inc(i,n)})),u}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultSyncViewPadding=void 0,e.defaultSyncViewPadding=function(t,e,n){var r=n.instance();e.forEach((function(t){t.autoPadding=r.max(t.autoPadding.getPadding())}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.group=void 0;var r=n(0),i=n(1);e.group=function(t,e,n){var a,o;if(void 0===n&&(n={}),!e)return[t];var s=(0,i.groupToMap)(t,e),l=[];if(1===e.length&&n[e[0]]){var u=n[e[0]];try{for(var c=r.__values(u),f=c.next();!f.done;f=c.next()){var h=f.value,p=s["_".concat(h)];p&&l.push(p)}}catch(t){a={error:t}}finally{try{f&&!f.done&&(o=c.return)&&o.call(c)}finally{if(a)throw a.error}}}else for(var d in s)if(s.hasOwnProperty(d)){var g=s[d];l.push(g)}return l}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseFields=void 0;var r=n(1);e.parseFields=function(t){return(0,r.isArray)(t)?t:t.split("*")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(36),o=n(117),s=n(53),l=n(13),u=n(54),c=n(2),f=n(486),h=function(){function t(t){this.shapesMap={};var e=t.layout,n=t.container;this.layout=e,this.container=n}return t.prototype.render=function(t,e,n){return void 0===n&&(n=!1),r.__awaiter(this,void 0,void 0,(function(){var o,s,l,u,c,h,p,d,g=this;return r.__generator(this,(function(y){switch(y.label){case 0:if(o={},s=this.createOffscreenGroup(),!t.length)return[3,2];try{for(l=r.__values(t),u=l.next();!u.done;u=l.next())(c=u.value)&&(o[c.id]=this.renderLabel(c,s))}catch(t){p={error:t}}finally{try{u&&!u.done&&(d=l.return)&&d.call(l)}finally{if(p)throw p.error}}return[4,this.doLayout(t,e,o)];case 1:y.sent(),this.renderLabelLine(t,o),this.renderLabelBackground(t,o),this.adjustLabel(t,o),y.label=2;case 2:return h=this.shapesMap,(0,i.each)(o,(function(t,e){if(t.destroyed)delete o[e];else{if(h[e]){var s=t.get("data"),l=t.get("origin"),u=t.get("coordinate"),c=t.get("animateCfg"),p=h[e];(0,f.updateLabel)(p,o[e],{data:s,origin:l,animateCfg:c,coordinate:u}),o[e]=p}else{if(g.container.destroyed)return;g.container.add(t);var d=(0,i.get)(t.get("animateCfg"),n?"enter":"appear");d&&(0,a.doAnimate)(t,d,{toAttrs:r.__assign({},t.attr()),coordinate:t.get("coordinate")})}delete h[e]}})),(0,i.each)(h,(function(t){var e=(0,i.get)(t.get("animateCfg"),"leave");e?(0,a.doAnimate)(t,e,{toAttrs:null,coordinate:t.get("coordinate")}):t.remove(!0)})),this.shapesMap=o,s.destroy(),[2]}}))}))},t.prototype.clear=function(){this.container.clear(),this.shapesMap={}},t.prototype.destroy=function(){this.container.destroy(),this.shapesMap=null},t.prototype.renderLabel=function(t,e){var n,a=t.id,o=t.elementId,s=t.data,l=t.mappingData,f=t.coordinate,h=t.animate,p=t.content,d={id:a,elementId:o,data:s,origin:r.__assign(r.__assign({},l),{data:l[c.FIELD_ORIGIN]}),coordinate:f},g=e.addGroup(r.__assign({name:"label",animateCfg:!1!==this.animate&&null!==h&&!1!==h&&(0,i.deepMix)({},this.animate,h)},d));if(p.isGroup&&p.isGroup()||p.isShape&&p.isShape()){var y=p.getCanvasBBox(),v=y.width,m=y.height,_=(0,i.get)(t,"textAlign","left"),x=t.x,b=t.y-m/2;"center"===_?x-=v/2:"right"!==_&&"end"!==_||(x-=v),(0,u.translate)(p,x,b),n=p,g.add(p)}else{var M=(0,i.get)(t,["style","fill"]);n=g.addShape("text",r.__assign({attrs:r.__assign(r.__assign({x:t.x,y:t.y,textAlign:t.textAlign,textBaseline:(0,i.get)(t,"textBaseline","middle"),text:t.content},t.style),{fill:(0,i.isNull)(M)?t.color:M})},d))}return t.rotate&&(0,u.rotate)(n,t.rotate),g},t.prototype.doLayout=function(t,e,n){return r.__awaiter(this,void 0,void 0,(function(){var a,s=this;return r.__generator(this,(function(r){switch(r.label){case 0:return this.layout?(a=(0,i.isArray)(this.layout)?this.layout:[this.layout],[4,Promise.all(a.map((function(r){var a=(0,o.getGeometryLabelLayout)((0,i.get)(r,"type",""));if(a){var l=[],u=[];return(0,i.each)(n,(function(t,n){l.push(t),u.push(e[t.get("elementId")])})),a(t,l,u,s.region,r.cfg)}})))]):[3,2];case 1:r.sent(),r.label=2;case 2:return[2]}}))}))},t.prototype.renderLabelLine=function(t,e){(0,i.each)(t,(function(t){var n=(0,i.get)(t,"coordinate");if(t&&n){var a=n.getCenter(),o=n.getRadius();if(t.labelLine){var s=(0,i.get)(t,"labelLine",{}),u=t.id,c=s.path;if(!c){var f=(0,l.polarToCartesian)(a.x,a.y,o,t.angle);c=[["M",f.x,f.y],["L",t.x,t.y]]}var h=e[u];h.destroyed||h.addShape("path",{capture:!1,attrs:r.__assign({path:c,stroke:t.color?t.color:(0,i.get)(t,["style","fill"],"#000"),fill:null},s.style),id:u,origin:t.mappingData,data:t.data,coordinate:t.coordinate})}}}))},t.prototype.renderLabelBackground=function(t,e){(0,i.each)(t,(function(t){var n=(0,i.get)(t,"coordinate"),a=(0,i.get)(t,"background");if(a&&n){var o=t.id,l=e[o];if(!l.destroyed){var u=l.getChildren()[0];if(u){var c=(0,s.getLabelBackgroundInfo)(l,t,a.padding),f=c.rotation,h=r.__rest(c,["rotation"]),p=l.addShape("rect",{attrs:r.__assign(r.__assign({},h),a.style||{}),id:o,origin:t.mappingData,data:t.data,coordinate:t.coordinate});if(p.setZIndex(-1),f){var d=u.getMatrix();p.setMatrix(d)}}}}}))},t.prototype.createOffscreenGroup=function(){return new(this.container.getGroupBase())({})},t.prototype.adjustLabel=function(t,e){(0,i.each)(t,(function(t){if(t){var n=t.id,r=e[n];if(!r.destroyed){var a=r.findAll((function(t){return"path"!==t.get("type")}));(0,i.each)(a,(function(e){e&&(t.offsetX&&e.attr("x",e.attr("x")+t.offsetX),t.offsetY&&e.attr("y",e.attr("y")+t.offsetY))}))}}}))},t}();e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.updateLabel=void 0;var r=n(1),i=n(36),a=n(13);e.updateLabel=function t(e,n,o){var s=o.data,l=o.origin,u=o.animateCfg,c=o.coordinate,f=(0,r.get)(u,"update");e.set("data",s),e.set("origin",l),e.set("animateCfg",u),e.set("coordinate",c),e.set("visible",n.get("visible")),e.getChildren().forEach((function(r,h){var p=n.getChildByIndex(h);if(p){r.set("data",s),r.set("origin",l),r.set("animateCfg",u),r.set("coordinate",c);var d=(0,a.getReplaceAttrs)(r,p);f?(0,i.doAnimate)(r,f,{toAttrs:d,coordinate:c}):r.attr(d),p.isGroup()&&t(r,p,o)}else e.removeChild(r),r.remove(!0)})),(0,r.each)(n.getChildren(),(function(t,n){n>=e.getCount()&&(t.destroyed||e.add(t))}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.antvDark=e.createDarkStyleSheet=void 0;var r=n(0),i="#000",a="#262626",o="#BFBFBF",s="#F0F0F0",l="#FFFFFF",u="#A6A6A6",c="#737373",f="#404040",h="#262626",p=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#E86452","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],d=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#E86452","#F8D0CB","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],g=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"];e.createDarkStyleSheet=function(t){void 0===t&&(t={});var e=t.paletteQualitative10,n=void 0===e?p:e,y=t.paletteQualitative20,v=void 0===y?d:y,m=t.brandColor,_={backgroundColor:"#141414",brandColor:void 0===m?n[0]:m,subColor:"rgba(255,255,255,0.05)",paletteQualitative10:n,paletteQualitative20:v,paletteSemanticRed:"#F4664A",paletteSemanticGreen:"#30BF78",paletteSemanticYellow:"#FAAD14",paletteSequence:g,fontFamily:'"Segoe UI", Roboto, "Helvetica Neue", Arial,\n "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n "Noto Color Emoji"',axisLineBorderColor:f,axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:u,axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisDescriptionIconFillColor:a,axisTickLineBorderColor:f,axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:h,axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:c,axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:h,axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:c,legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:p[0],legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:u,legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",legendItemSpacing:24,legendItemMarginBottom:12,legendSpacing:16,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:c,legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:c,legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:u,legendPageNavigatorTextFontSize:12,sliderRailFillColor:h,sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:c,sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:s,sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:o,annotationArcBorderColor:h,annotationArcBorder:1,annotationLineBorderColor:f,annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:u,annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:l,annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:f,tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"#1f1f1f",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 2px 4px rgba(0,0,0,.5)",tooltipContainerBorderRadius:3,tooltipTextFillColor:u,tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:u,labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:i,innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:u,overflowLabelFillColorDark:"#2c3542",overflowLabelFillColorLight:"#ffffff",overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:i,overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:f,cSliderRailHieght:16,cSliderBackgroundFillColor:"#416180",cSliderBackgroundFillOpacity:.05,cSliderForegroundFillColor:"#5B8FF9",cSliderForegroundFillOpacity:.15,cSliderHandlerHeight:24,cSliderHandlerWidth:10,cSliderHandlerFillColor:"#F7F7F7",cSliderHandlerFillOpacity:1,cSliderHandlerHighlightFillColor:"#FFF",cSliderHandlerBorderColor:"#BFBFBF",cSliderHandlerBorder:1,cSliderHandlerBorderRadius:2,cSliderTextFillColor:"#fff",cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:"normal",cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:"rgba(255,255,255,0.65)",scrollbarThumbFillColor:"rgba(0,0,0,0.35)",scrollbarThumbHighlightFillColor:"rgba(0,0,0,0.45)",pointFillColor:p[0],pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:i,pointBorderOpacity:1,pointActiveBorderColor:l,pointSelectedBorder:2,pointSelectedBorderColor:l,pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:p[0],hollowPointBorderOpacity:.95,hollowPointFillColor:i,hollowPointActiveBorder:1,hollowPointActiveBorderColor:l,hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:l,hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:p[0],lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:p[0],areaFillOpacity:.25,areaActiveFillColor:p[0],areaActiveFillOpacity:.5,areaSelectedFillColor:p[0],areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:p[0],hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:l,hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:l,hollowAreaInactiveBorderOpacity:.3,intervalFillColor:p[0],intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:l,intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:l,intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:p[0],hollowIntervalBorderOpacity:1,hollowIntervalFillColor:i,hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:l,hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:l,hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3};return r.__assign(r.__assign({},_),t)},e.antvDark=(0,e.createDarkStyleSheet)()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=r.__importDefault(n(26)),o=n(15),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,r:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var a=this.attr(),s=a.x,l=a.y,u=a.r,c=i/2,f=(0,o.distance)(s,l,t,e);return r&&n?f<=u+c:r?f<=u:!!n&&(f>=u-c&&f<=u+c)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.r;t.beginPath(),t.arc(n,r,i,0,2*Math.PI,!1),t.closePath()},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0);function a(t,e,n,r){return t/(n*n)+e/(r*r)}var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.attr(),s=i/2,l=o.x,u=o.y,c=o.rx,f=o.ry,h=(t-l)*(t-l),p=(e-u)*(e-u);return r&&n?a(h,p,c+s,f+s)<=1:r?a(h,p,c,f)<=1:!!n&&(a(h,p,c-s,f-s)>=1&&a(h,p,c+s,f+s)<=1)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.rx,a=e.ry;if(t.beginPath(),t.ellipse)t.ellipse(n,r,i,a,0,0,2*Math.PI,!1);else{var o=i>a?i:a,s=i>a?1:i/a,l=i>a?a/i:1;t.save(),t.translate(n,r),t.scale(s,l),t.arc(0,0,o,0,2*Math.PI),t.restore(),t.closePath()}},e}(r.__importDefault(n(26)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=r.__importDefault(n(26)),o=n(15);function s(t){return t instanceof HTMLElement&&(0,o.isString)(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase()}var l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,width:0,height:0})},e.prototype.initAttrs=function(t){this._setImage(t.img)},e.prototype.isStroke=function(){return!1},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._afterLoading=function(){if(!0===this.get("toDraw")){var t=this.get("canvas");t?t.draw():this.createPath(this.get("context"))}},e.prototype._setImage=function(t){var e=this,n=this.attrs;if((0,o.isString)(t)){var r=new Image;r.onload=function(){if(e.destroyed)return!1;e.attr("img",r),e.set("loading",!1),e._afterLoading();var t=e.get("callback");t&&t.call(e)},r.crossOrigin="Anonymous",r.src=t,this.set("loading",!0)}else t instanceof Image?(n.width||(n.width=t.width),n.height||(n.height=t.height)):s(t)&&(n.width||(n.width=Number(t.getAttribute("width"))),n.height||(n.height,Number(t.getAttribute("height"))))},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),"img"===e&&this._setImage(n)},e.prototype.createPath=function(t){if(this.get("loading"))return this.set("toDraw",!0),void this.set("context",t);var e=this.attr(),n=e.x,r=e.y,i=e.width,a=e.height,l=e.sx,u=e.sy,c=e.swidth,f=e.sheight,h=e.img;(h instanceof Image||s(h))&&((0,o.isNil)(l)||(0,o.isNil)(u)||(0,o.isNil)(c)||(0,o.isNil)(f)?t.drawImage(h,n,r,i,a):t.drawImage(h,l,u,c,f,n,r,i,a))},e}(a.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(20),o=r.__importDefault(n(26)),s=r.__importDefault(n(81)),l=r.__importStar(n(80)),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this.setArrow()},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),this.setArrow()},e.prototype.setArrow=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2,a=t.startArrow,o=t.endArrow;a&&l.addStartArrow(this,t,r,i,e,n),o&&l.addEndArrow(this,t,e,n,r,i)},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){if(!n||!i)return!1;var a=this.attr(),o=a.x1,l=a.y1,u=a.x2,c=a.y2;return(0,s.default)(o,l,u,c,i,t,e)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,a=e.y2,o=e.startArrow,s=e.endArrow,u={dx:0,dy:0},c={dx:0,dy:0};o&&o.d&&(u=l.getShortenOffset(n,r,i,a,e.startArrow.d)),s&&s.d&&(c=l.getShortenOffset(n,r,i,a,e.endArrow.d)),t.beginPath(),t.moveTo(n+u.dx,r+u.dy),t.lineTo(i-c.dx,a-c.dy)},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2;return a.Line.length(e,n,r,i)},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,o=e.y2;return a.Line.pointAt(n,r,i,o,t)},e}(o.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(50),s=r.__importDefault(n(26)),l=n(15),u=n(63),c={circle:function(t,e,n){return[["M",t-n,e],["A",n,n,0,1,0,t+n,e],["A",n,n,0,1,0,t-n,e]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["Z"]]},"triangle-down":function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]}},f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.initAttrs=function(t){this._resetParamsCache()},e.prototype._resetParamsCache=function(){this.set("paramsCache",{})},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),-1!==["symbol","x","y","r","radius"].indexOf(e)&&this._resetParamsCache()},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._getR=function(t){return(0,a.isNil)(t.r)?t.radius:t.r},e.prototype._getPath=function(){var t,n,r=this.attr(),i=r.x,a=r.y,s=r.symbol||"circle",u=this._getR(r);if((0,l.isFunction)(s))n=(t=s)(i,a,u),n=(0,o.path2Absolute)(n);else{if(!(t=e.Symbols[s]))return console.warn(s+" marker is not supported."),null;n=t(i,a,u)}return n},e.prototype.createPath=function(t){var e=this._getPath(),n=this.get("paramsCache");(0,u.drawPath)(this,t,{path:e},n)},e.Symbols=c,e}(s.default);e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(20),o=n(1),s=r.__importDefault(n(26)),l=n(50),u=n(63),c=r.__importDefault(n(220)),f=r.__importDefault(n(221)),h=r.__importDefault(n(495)),p=r.__importStar(n(80));function d(t,e,n){for(var r=!1,i=0;i<t.length;i++){var a=t[i];if(r=(0,f.default)(a,e,n))break}return r}var g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this._setPathArr(t.path),this.setArrow()},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),"path"===e&&this._setPathArr(n),this.setArrow()},e.prototype._setPathArr=function(t){this.attrs.path=(0,l.path2Absolute)(t);var e=h.default.hasArc(t);this.set("hasArc",e),this.set("paramsCache",{}),this.set("segments",null),this.set("curve",null),this.set("tCache",null),this.set("totalLength",null)},e.prototype.getSegments=function(){var t=this.get("segements");return t||(t=(0,l.path2Segments)(this.attr("path")),this.set("segments",t)),t},e.prototype.setArrow=function(){var t=this.attr(),e=t.startArrow,n=t.endArrow;if(e){var r=this.getStartTangent();p.addStartArrow(this,t,r[0][0],r[0][1],r[1][0],r[1][1])}if(n){r=this.getEndTangent();p.addEndArrow(this,t,r[0][0],r[0][1],r[1][0],r[1][1])}},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var a=this.getSegments(),o=this.get("hasArc"),s=!1;if(n){var l=this.getTotalLength();s=h.default.isPointInStroke(a,i,t,e,l)}if(!s&&r)if(o)s=(0,c.default)(this,t,e);else{var u=this.attr("path"),f=h.default.extractPolygons(u);s=d(f.polygons,t,e)||d(f.polylines,t,e)}return s},e.prototype.createPath=function(t){var e=this.attr(),n=this.get("paramsCache");(0,u.drawPath)(this,t,e,n)},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.get("totalLength");return(0,o.isNil)(t)?(this._calculateCurve(),this._setTcache(),this.get("totalLength")):t},e.prototype.getPoint=function(t){var e,n,r=this.get("tCache");r||(this._calculateCurve(),this._setTcache(),r=this.get("tCache"));var i=this.get("curve");if(!r||0===r.length)return i?{x:i[0][1],y:i[0][2]}:null;(0,o.each)(r,(function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)}));var s=i[n];if((0,o.isNil)(s)||(0,o.isNil)(n))return null;var l=s.length,u=i[n+1];return a.Cubic.pointAt(s[l-2],s[l-1],u[1],u[2],u[3],u[4],u[5],u[6],e)},e.prototype._calculateCurve=function(){var t=this.attr().path;this.set("curve",h.default.pathToCurve(t))},e.prototype._setTcache=function(){var t,e,n,r,i=0,s=0,l=[],u=this.get("curve");u&&((0,o.each)(u,(function(t,e){n=u[e+1],r=t.length,n&&(i+=a.Cubic.length(t[r-2],t[r-1],n[1],n[2],n[3],n[4],n[5],n[6])||0)})),this.set("totalLength",i),0!==i?((0,o.each)(u,(function(o,c){n=u[c+1],r=o.length,n&&((t=[])[0]=s/i,e=a.Cubic.length(o[r-2],o[r-1],n[1],n[2],n[3],n[4],n[5],n[6]),s+=e||0,t[1]=s/i,l.push(t))})),this.set("tCache",l)):this.set("tCache",[]))},e.prototype.getStartTangent=function(){var t,e=this.getSegments();if(e.length>1){var n=e[0].currentPoint,r=e[1].currentPoint,i=e[1].startTangent;t=[],i?(t.push([n[0]-i[0],n[1]-i[1]]),t.push([n[0],n[1]])):(t.push([r[0],r[1]]),t.push([n[0],n[1]]))}return t},e.prototype.getEndTangent=function(){var t,e=this.getSegments(),n=e.length;if(n>1){var r=e[n-2].currentPoint,i=e[n-1].currentPoint,a=e[n-1].endTangent;t=[],a?(t.push([i[0]-a[0],i[1]-a[1]]),t.push([i[0],i[1]])):(t.push([r[0],r[1]]),t.push([i[0],i[1]]))}return t},e}(s.default);e.default=g},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(12),o=n(20),s=n(20),l=n(8),u=r.__importStar(n(91)),c=n(15),f=r.__importDefault(n(81)),h=r.__importDefault(n(222)),p=l.ext.transform;e.default=(0,i.__assign)({hasArc:function(t){for(var e=!1,n=t.length,r=0;r<n;r++){var i=t[r][0];if("C"===i||"A"===i||"Q"===i){e=!0;break}}return e},extractPolygons:function(t){for(var e=t.length,n=[],r=[],i=[],a=0;a<e;a++){var o=t[a],s=o[0];"M"===s?(i.length&&(r.push(i),i=[]),i.push([o[1],o[2]])):"Z"===s?i.length&&(n.push(i),i=[]):i.push([o[1],o[2]])}return i.length>0&&r.push(i),{polygons:n,polylines:r}},isPointInStroke:function(t,e,n,r,i){for(var a=!1,l=e/2,d=0;d<t.length;d++){var g=t[d],y=g.currentPoint,v=g.params,m=g.prePoint,_=g.box;if(!_||(0,c.inBox)(_.x-l,_.y-l,_.width+e,_.height+e,n,r)){switch(g.command){case"L":case"Z":a=(0,f.default)(m[0],m[1],y[0],y[1],e,n,r);break;case"Q":a=o.Quad.pointDistance(m[0],m[1],v[1],v[2],v[3],v[4],n,r)<=e/2;break;case"C":a=s.Cubic.pointDistance(m[0],m[1],v[1],v[2],v[3],v[4],v[5],v[6],n,r,i)<=e/2;break;case"A":var x=g.arcParams,b=x.cx,M=x.cy,C=x.rx,P=x.ry,S=x.startAngle,O=x.endAngle,w=x.xRotation,A=[n,r,1],T=C>P?C:P,E=p(null,[["t",-b,-M],["r",-w],["s",1/(C>P?1:C/P),1/(C>P?P/C:1)]]);u.transformMat3(A,A,E),a=(0,h.default)(0,0,T,S,O,e,A[0],A[1])}if(a)break}}return a}},a.PathUtil)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=r.__importDefault(n(26)),o=r.__importDefault(n(223)),s=r.__importDefault(n(221)),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var a=this.attr().points,l=!1;return n&&(l=(0,o.default)(a,i,t,e,!0)),!l&&r&&(l=(0,s.default)(a,t,e)),l},e.prototype.createPath=function(t){var e=this.attr().points;if(!(e.length<2)){t.beginPath();for(var n=0;n<e.length;n++){var r=e[n];0===n?t.moveTo(r[0],r[1]):t.lineTo(r[0],r[1])}t.closePath()}},e}(a.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(20),o=n(20),s=n(1),l=r.__importDefault(n(26)),u=r.__importDefault(n(223)),c=r.__importStar(n(80)),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this.setArrow()},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),this.setArrow(),-1!==["points"].indexOf(e)&&this._resetCache()},e.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},e.prototype.setArrow=function(){var t=this.attr(),e=this.attrs,n=e.points,r=e.startArrow,i=e.endArrow,a=n.length,o=n[0][0],s=n[0][1],l=n[a-1][0],u=n[a-1][1];r&&c.addStartArrow(this,t,n[1][0],n[1][1],o,s),i&&c.addEndArrow(this,t,n[a-2][0],n[a-2][1],l,u)},e.prototype.isFill=function(){return!1},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){if(!n||!i)return!1;var a=this.attr().points;return(0,u.default)(a,i,t,e,!1)},e.prototype.isStroke=function(){return!0},e.prototype.createPath=function(t){var e=this.attr(),n=e.points,r=e.startArrow,i=e.endArrow,a=n.length;if(!(n.length<2)){var o,s=n[0][0],l=n[0][1],u=n[a-1][0],f=n[a-1][1];if(r&&r.d)s+=(o=c.getShortenOffset(s,l,n[1][0],n[1][1],r.d)).dx,l+=o.dy;if(i&&i.d)u-=(o=c.getShortenOffset(n[a-2][0],n[a-2][1],u,f,i.d)).dx,f-=o.dy;t.beginPath(),t.moveTo(s,l);for(var h=0;h<a-1;h++){var p=n[h];t.lineTo(p[0],p[1])}t.lineTo(u,f)}},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.attr().points,e=this.get("totalLength");return(0,s.isNil)(e)?(this.set("totalLength",o.Polyline.length(t)),this.get("totalLength")):e},e.prototype.getPoint=function(t){var e,n,r=this.attr().points,i=this.get("tCache");return i||(this._setTcache(),i=this.get("tCache")),(0,s.each)(i,(function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)})),a.Line.pointAt(r[n][0],r[n][1],r[n+1][0],r[n+1][1],e)},e.prototype._setTcache=function(){var t=this.attr().points;if(t&&0!==t.length){var e=this.getTotalLength();if(!(e<=0)){var n,r,i=0,o=[];(0,s.each)(t,(function(s,l){t[l+1]&&((n=[])[0]=i/e,r=a.Line.length(s[0],s[1],t[l+1][0],t[l+1][1]),i+=r,n[1]=i/e,o.push(n))})),this.set("tCache",o)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attr().points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e}(l.default);e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=r.__importDefault(n(26)),o=n(218),s=n(15),l=r.__importDefault(n(499)),u=r.__importDefault(n(500)),c=r.__importDefault(n(220)),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var a=this.attr(),o=a.x,f=a.y,h=a.width,p=a.height,d=a.radius;if(d){var g=!1;return n&&(g=(0,u.default)(o,f,h,p,d,i,t,e)),!g&&r&&(g=(0,c.default)(this,t,e)),g}var y=i/2;return r&&n?(0,s.inBox)(o-y,f-y,h+y,p+y,t,e):r?(0,s.inBox)(o,f,h,p,t,e):n?(0,l.default)(o,f,h,p,i,t,e):void 0},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.width,a=e.height,s=e.radius;if(t.beginPath(),0===s)t.rect(n,r,i,a);else{var l=(0,o.parseRadius)(s),u=l[0],c=l[1],f=l[2],h=l[3];t.moveTo(n+u,r),t.lineTo(n+i-c,r),0!==c&&t.arc(n+i-c,r+c,c,-Math.PI/2,0),t.lineTo(n+i,r+a-f),0!==f&&t.arc(n+i-f,r+a-f,f,0,Math.PI/2),t.lineTo(n+h,r+a),0!==h&&t.arc(n+h,r+a-h,h,Math.PI/2,Math.PI),t.lineTo(n,r+u),0!==u&&t.arc(n+u,r+u,u,Math.PI,1.5*Math.PI),t.closePath()}},e}(a.default);e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(15);e.default=function(t,e,n,i,a,o,s){var l=a/2;return(0,r.inBox)(t-l,e-l,n,a,o,s)||(0,r.inBox)(t+n-l,e-l,a,i,o,s)||(0,r.inBox)(t+l,e+i-l,n,a,o,s)||(0,r.inBox)(t-l,e+l,a,i,o,s)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(81)),a=r.__importDefault(n(222));e.default=function(t,e,n,r,o,s,l,u){return(0,i.default)(t+o,e,t+n-o,e,s,l,u)||(0,i.default)(t+n,e+o,t+n,e+r-o,s,l,u)||(0,i.default)(t+n-o,e+r,t+o,e+r,s,l,u)||(0,i.default)(t,e+r-o,t,e+o,s,l,u)||(0,a.default)(t+n-o,e+o,o,1.5*Math.PI,2*Math.PI,s,l,u)||(0,a.default)(t+n-o,e+r-o,o,0,.5*Math.PI,s,l,u)||(0,a.default)(t+o,e+r-o,o,.5*Math.PI,Math.PI,s,l,u)||(0,a.default)(t+o,e+o,o,Math.PI,1.5*Math.PI,s,l,u)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=r.__importDefault(n(26)),o=n(15),s=n(12),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.isOnlyHitBox=function(){return!0},e.prototype.initAttrs=function(t){this._assembleFont(),t.text&&this._setText(t.text)},e.prototype._assembleFont=function(){var t=this.attrs;t.font=(0,s.assembleFont)(t)},e.prototype._setText=function(t){var e=null;(0,o.isString)(t)&&-1!==t.indexOf("\n")&&(e=t.split("\n")),this.set("textArr",e)},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),e.startsWith("font")&&this._assembleFont(),"text"===e&&this._setText(n)},e.prototype._getSpaceingY=function(){var t=this.attrs,e=t.lineHeight,n=1*t.fontSize;return e?e-n:.14*n},e.prototype._drawTextArr=function(t,e,n){var r,i=this.attrs,a=i.textBaseline,l=i.x,u=i.y,c=1*i.fontSize,f=this._getSpaceingY(),h=(0,s.getTextHeight)(i.text,i.fontSize,i.lineHeight);(0,o.each)(e,(function(e,i){r=u+i*(f+c)-h+c,"middle"===a&&(r+=h-c-(h-c)/2),"top"===a&&(r+=h-c),(0,o.isNil)(e)||(n?t.fillText(e,l,r):t.strokeText(e,l,r))}))},e.prototype._drawText=function(t,e){var n=this.attr(),r=n.x,i=n.y,a=this.get("textArr");if(a)this._drawTextArr(t,a,e);else{var s=n.text;(0,o.isNil)(s)||(e?t.fillText(s,r,i):t.strokeText(s,r,i))}},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,r=e.opacity,i=e.strokeOpacity,a=e.fillOpacity;this.isStroke()&&n>0&&((0,o.isNil)(i)||1===i||(t.globalAlpha=r),this.stroke(t)),this.isFill()&&((0,o.isNil)(a)||1===a?this.fill(t):(t.globalAlpha=a,this.fill(t),t.globalAlpha=r)),this.afterDrawPath(t)},e.prototype.fill=function(t){this._drawText(t,!0)},e.prototype.stroke=function(t){this._drawText(t,!1)},e}(a.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(12),o=n(503),s=r.__importStar(n(62)),l=r.__importDefault(n(120)),u=n(15),c=n(63),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.renderer="canvas",e.autoDraw=!0,e.localRefresh=!0,e.refreshElements=[],e.clipView=!0,e.quickHit=!1,e},e.prototype.onCanvasChange=function(t){"attr"!==t&&"sort"!==t&&"changeSize"!==t||(this.set("refreshElements",[this]),this.draw())},e.prototype.getShapeBase=function(){return s},e.prototype.getGroupBase=function(){return l.default},e.prototype.getPixelRatio=function(){var t=this.get("pixelRatio")||(0,u.getPixelRatio)();return t>=1?Math.ceil(t):1},e.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.cfg.width,maxY:this.cfg.height}},e.prototype.createDom=function(){var t=document.createElement("canvas"),e=t.getContext("2d");return this.set("context",e),t},e.prototype.setDOMSize=function(e,n){t.prototype.setDOMSize.call(this,e,n);var r=this.get("context"),i=this.get("el"),a=this.getPixelRatio();i.width=a*e,i.height=a*n,a>1&&r.scale(a,a)},e.prototype.clear=function(){t.prototype.clear.call(this),this._clearFrame();var e=this.get("context"),n=this.get("el");e.clearRect(0,0,n.width,n.height)},e.prototype.getShape=function(e,n){return this.get("quickHit")?(0,o.getShape)(this,e,n):t.prototype.getShape.call(this,e,n,null)},e.prototype._getRefreshRegion=function(){var t,e=this.get("refreshElements"),n=this.getViewRange();e.length&&e[0]===this?t=n:(t=(0,c.getMergedRegion)(e))&&(t.minX=Math.floor(t.minX),t.minY=Math.floor(t.minY),t.maxX=Math.ceil(t.maxX),t.maxY=Math.ceil(t.maxY),t.maxY+=1,this.get("clipView")&&(t=(0,c.mergeView)(t,n)));return t},e.prototype.refreshElement=function(t){this.get("refreshElements").push(t)},e.prototype._clearFrame=function(){var t=this.get("drawFrame");t&&((0,u.clearAnimationFrame)(t),this.set("drawFrame",null),this.set("refreshElements",[]))},e.prototype.draw=function(){var t=this.get("drawFrame");this.get("autoDraw")&&t||this._startDraw()},e.prototype._drawAll=function(){var t=this.get("context"),e=this.get("el"),n=this.getChildren();t.clearRect(0,0,e.width,e.height),(0,c.applyAttrsToContext)(t,this),(0,c.drawChildren)(t,n),this.set("refreshElements",[])},e.prototype._drawRegion=function(){var t=this.get("context"),e=this.get("refreshElements"),n=this.getChildren(),r=this._getRefreshRegion();r?(t.clearRect(r.minX,r.minY,r.maxX-r.minX,r.maxY-r.minY),t.save(),t.beginPath(),t.rect(r.minX,r.minY,r.maxX-r.minX,r.maxY-r.minY),t.clip(),(0,c.applyAttrsToContext)(t,this),(0,c.checkRefresh)(this,n,r),(0,c.drawChildren)(t,n,r),t.restore()):e.length&&(0,c.clearChanged)(e),(0,u.each)(e,(function(t){t.get("hasChanged")&&t.set("hasChanged",!1)})),this.set("refreshElements",[])},e.prototype._startDraw=function(){var t=this,e=this.get("drawFrame");e||(e=(0,u.requestAnimationFrame)((function(){t.get("localRefresh")?t._drawRegion():t._drawAll(),t.set("drawFrame",null)})),this.set("drawFrame",e))},e.prototype.skipDraw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.width=0,t.height=0,t.parentNode.removeChild(t)},e}(a.AbstractCanvas);e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getShape=void 0;var r=n(12);function i(t,e,n){var i=t.getTotalMatrix();if(i){var a=function(t,e){if(e){var n=(0,r.invert)(e);return(0,r.multiplyVec2)(n,t)}return t}([e,n,1],i);return[a[0],a[1]]}return[e,n]}function a(t,e,n){if(t.isCanvas&&t.isCanvas())return!0;if(!(0,r.isAllowCapture)(t)||!1===t.cfg.isInView)return!1;if(t.cfg.clipShape){var a=i(t,e,n),o=a[0],s=a[1];if(t.isClipped(o,s))return!1}var l=t.cfg.cacheCanvasBBox||t.getCanvasBBox();return e>=l.minX&&e<=l.maxX&&n>=l.minY&&n<=l.maxY}e.getShape=function t(e,n,r){if(!a(e,n,r))return null;for(var o=null,s=e.getChildren(),l=s.length-1;l>=0;l--){var u=s[l];if(u.isGroup())o=t(u,n,r);else if(a(u,n,r)){var c=u,f=i(u,n,r),h=f[0],p=f[1];c.isInShape(h,p)&&(o=u)}if(o)break}return o}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.version=e.Shape=e.Group=e.Canvas=void 0;var r=n(0),i=r.__importStar(n(82));e.Shape=i,r.__exportStar(n(12),e);var a=n(518);Object.defineProperty(e,"Canvas",{enumerable:!0,get:function(){return r.__importDefault(a).default}});var o=n(122);Object.defineProperty(e,"Group",{enumerable:!0,get:function(){return r.__importDefault(o).default}}),e.version="0.5.6"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(16),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="circle",e.canFill=!0,e.canStroke=!0,e}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,r:0})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");(0,a.each)(e||n,(function(t,e){"x"===e||"y"===e?r.setAttribute("c"+e,t):o.SVG_ATTR_MAP[e]&&r.setAttribute(o.SVG_ATTR_MAP[e],t)}))},e}(r.__importDefault(n(22)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(16),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dom",e.canFill=!1,e.canStroke=!1,e}return(0,i.__extends)(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");if((0,a.each)(e||n,(function(t,e){o.SVG_ATTR_MAP[e]&&r.setAttribute(o.SVG_ATTR_MAP[e],t)})),"function"==typeof n.html){var i=n.html.call(this,n);if(i instanceof Element||i instanceof HTMLDocument){for(var s=r.childNodes,l=s.length-1;l>=0;l--)r.removeChild(s[l]);r.appendChild(i)}else r.innerHTML=i}else r.innerHTML=n.html},e}(r.__importDefault(n(22)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(16),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="ellipse",e.canFill=!0,e.canStroke=!0,e}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");(0,a.each)(e||n,(function(t,e){"x"===e||"y"===e?r.setAttribute("c"+e,t):o.SVG_ATTR_MAP[e]&&r.setAttribute(o.SVG_ATTR_MAP[e],t)}))},e}(r.__importDefault(n(22)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(16),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="image",e.canFill=!1,e.canStroke=!1,e}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,width:0,height:0})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el");(0,a.each)(e||r,(function(t,e){"img"===e?n._setImage(r.img):o.SVG_ATTR_MAP[e]&&i.setAttribute(o.SVG_ATTR_MAP[e],t)}))},e.prototype.setAttr=function(t,e){this.attrs[t]=e,"img"===t&&this._setImage(e)},e.prototype._setImage=function(t){var e=this.attr(),n=this.get("el");if((0,a.isString)(t))n.setAttribute("href",t);else if(t instanceof window.Image)e.width||(n.setAttribute("width",t.width),this.attr("width",t.width)),e.height||(n.setAttribute("height",t.height),this.attr("height",t.height)),n.setAttribute("href",t.src);else if(t instanceof HTMLElement&&(0,a.isString)(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase())n.setAttribute("href",t.toDataURL());else if(t instanceof ImageData){var r=document.createElement("canvas");r.setAttribute("width",""+t.width),r.setAttribute("height",""+t.height),r.getContext("2d").putImageData(t,0,0),e.width||(n.setAttribute("width",""+t.width),this.attr("width",t.width)),e.height||(n.setAttribute("height",""+t.height),this.attr("height",t.height)),n.setAttribute("href",r.toDataURL())}},e}(r.__importDefault(n(22)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(20),o=n(1),s=n(16),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="line",e.canFill=!1,e.canStroke=!0,e}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");(0,o.each)(e||n,(function(e,i){if("startArrow"===i||"endArrow"===i)if(e){var a=(0,o.isObject)(e)?t.addArrow(n,s.SVG_ATTR_MAP[i]):t.getDefaultArrow(n,s.SVG_ATTR_MAP[i]);r.setAttribute(s.SVG_ATTR_MAP[i],"url(#"+a+")")}else r.removeAttribute(s.SVG_ATTR_MAP[i]);else s.SVG_ATTR_MAP[i]&&r.setAttribute(s.SVG_ATTR_MAP[i],e)}))},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2;return a.Line.length(e,n,r,i)},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,o=e.y2;return a.Line.pointAt(n,r,i,o,t)},e}(r.__importDefault(n(22)).default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=r.__importDefault(n(22)),s=r.__importDefault(n(511)),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="marker",e.canFill=!0,e.canStroke=!0,e}return(0,i.__extends)(e,t),e.prototype.createPath=function(t){this.get("el").setAttribute("d",this._assembleMarker())},e.prototype._assembleMarker=function(){var t=this._getPath();return(0,a.isArray)(t)?t.map((function(t){return t.join(" ")})).join(""):t},e.prototype._getPath=function(){var t,e=this.attr(),n=e.x,r=e.y,i=e.r||e.radius,o=e.symbol||"circle";return(t=(0,a.isFunction)(o)?o:s.default.get(o))?t(n,r,i):(console.warn(t+" symbol is not exist."),null)},e.symbolsFactory=s.default,e}(o.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={circle:function(t,e,n){return[["M",t,e],["m",-n,0],["a",n,n,0,1,0,2*n,0],["a",n,n,0,1,0,2*-n,0]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["z"]]},triangleDown:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]}};e.default={get:function(t){return r[t]},register:function(t,e){r[t]=e},remove:function(t){delete r[t]},getAll:function(){return r}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(16),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="path",e.canFill=!0,e.canStroke=!0,e}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el");(0,a.each)(e||r,(function(e,s){if("path"===s&&(0,a.isArray)(e))i.setAttribute("d",n._formatPath(e));else if("startArrow"===s||"endArrow"===s)if(e){var l=(0,a.isObject)(e)?t.addArrow(r,o.SVG_ATTR_MAP[s]):t.getDefaultArrow(r,o.SVG_ATTR_MAP[s]);i.setAttribute(o.SVG_ATTR_MAP[s],"url(#"+l+")")}else i.removeAttribute(o.SVG_ATTR_MAP[s]);else o.SVG_ATTR_MAP[s]&&i.setAttribute(o.SVG_ATTR_MAP[s],e)}))},e.prototype._formatPath=function(t){var e=t.map((function(t){return t.join(" ")})).join("");return~e.indexOf("NaN")?"":e},e.prototype.getTotalLength=function(){var t=this.get("el");return t?t.getTotalLength():null},e.prototype.getPoint=function(t){var e=this.get("el"),n=this.getTotalLength();if(0===n)return null;var r=e?e.getPointAtLength(t*n):null;return r?{x:r.x,y:r.y}:null},e}(r.__importDefault(n(22)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(16),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polygon",e.canFill=!0,e.canStroke=!0,e}return(0,i.__extends)(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");(0,a.each)(e||n,(function(t,e){"points"===e&&(0,a.isArray)(t)&&t.length>=2?r.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):o.SVG_ATTR_MAP[e]&&r.setAttribute(o.SVG_ATTR_MAP[e],t)}))},e}(r.__importDefault(n(22)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(20),o=n(20),s=n(1),l=n(16),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polyline",e.canFill=!0,e.canStroke=!0,e}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{startArrow:!1,endArrow:!1})},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),-1!==["points"].indexOf(e)&&this._resetCache()},e.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");(0,s.each)(e||n,(function(t,e){"points"===e&&(0,s.isArray)(t)&&t.length>=2?r.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):l.SVG_ATTR_MAP[e]&&r.setAttribute(l.SVG_ATTR_MAP[e],t)}))},e.prototype.getTotalLength=function(){var t=this.attr().points,e=this.get("totalLength");return(0,s.isNil)(e)?(this.set("totalLength",a.Polyline.length(t)),this.get("totalLength")):e},e.prototype.getPoint=function(t){var e,n,r=this.attr().points,i=this.get("tCache");return i||(this._setTcache(),i=this.get("tCache")),(0,s.each)(i,(function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)})),o.Line.pointAt(r[n][0],r[n][1],r[n+1][0],r[n+1][1],e)},e.prototype._setTcache=function(){var t=this.attr().points;if(t&&0!==t.length){var e=this.getTotalLength();if(!(e<=0)){var n,r,i=0,a=[];(0,s.each)(t,(function(s,l){t[l+1]&&((n=[])[0]=i/e,r=o.Line.length(s[0],s[1],t[l+1][0],t[l+1][1]),i+=r,n[1]=i/e,a.push(n))})),this.set("tCache",a)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attr().points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e}(r.__importDefault(n(22)).default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=r.__importDefault(n(22)),s=n(16),l=n(516),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="rect",e.canFill=!0,e.canStroke=!0,e}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el"),o=!1,l=["x","y","width","height","radius"];(0,a.each)(e||r,(function(t,e){-1===l.indexOf(e)||o?-1===l.indexOf(e)&&s.SVG_ATTR_MAP[e]&&i.setAttribute(s.SVG_ATTR_MAP[e],t):(i.setAttribute("d",n._assembleRect(r)),o=!0)}))},e.prototype._assembleRect=function(t){var e=t.x,n=t.y,r=t.width,i=t.height,o=t.radius;if(!o)return"M "+e+","+n+" l "+r+",0 l 0,"+i+" l"+-r+" 0 z";var s=(0,l.parseRadius)(o);return(0,a.isArray)(o)?1===o.length?s.r1=s.r2=s.r3=s.r4=o[0]:2===o.length?(s.r1=s.r3=o[0],s.r2=s.r4=o[1]):3===o.length?(s.r1=o[0],s.r2=s.r4=o[1],s.r3=o[2]):(s.r1=o[0],s.r2=o[1],s.r3=o[2],s.r4=o[3]):s.r1=s.r2=s.r3=s.r4=o,[["M "+(e+s.r1)+","+n],["l "+(r-s.r1-s.r2)+",0"],["a "+s.r2+","+s.r2+",0,0,1,"+s.r2+","+s.r2],["l 0,"+(i-s.r2-s.r3)],["a "+s.r3+","+s.r3+",0,0,1,"+-s.r3+","+s.r3],["l "+(s.r3+s.r4-r)+",0"],["a "+s.r4+","+s.r4+",0,0,1,"+-s.r4+","+-s.r4],["l 0,"+(s.r4+s.r1-i)],["a "+s.r1+","+s.r1+",0,0,1,"+s.r1+","+-s.r1],["z"]].join(" ")},e}(o.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parsePath=e.parseRadius=void 0;var r=n(1),i=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,a=/[^\s,]+/gi;e.parseRadius=function(t){var e=0,n=0,i=0,a=0;return(0,r.isArray)(t)?1===t.length?e=n=i=a=t[0]:2===t.length?(e=i=t[0],n=a=t[1]):3===t.length?(e=t[0],n=a=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],a=t[3]):e=n=i=a=t,{r1:e,r2:n,r3:i,r4:a}},e.parsePath=function(t){return t=t||[],(0,r.isArray)(t)?t:(0,r.isString)(t)?(t=t.match(i),(0,r.each)(t,(function(e,n){if((e=e.match(a))[0].length>1){var i=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=i}(0,r.each)(e,(function(t,n){isNaN(t)||(e[n]=+t)})),t[n]=e})),t):void 0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(158),s=n(64),l=n(16),u=r.__importDefault(n(22)),c={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},f={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},h={left:"left",start:"left",center:"middle",right:"end",end:"end"},p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="text",e.canFill=!0,e.canStroke=!0,e}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el");this._setFont(),(0,a.each)(e||r,(function(t,e){"text"===e?n._setText(""+t):"matrix"===e&&t?(0,s.setTransform)(n):l.SVG_ATTR_MAP[e]&&i.setAttribute(l.SVG_ATTR_MAP[e],t)})),i.setAttribute("paint-order","stroke"),i.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")},e.prototype._setFont=function(){var t=this.get("el"),e=this.attr(),n=e.textBaseline,r=e.textAlign,i=(0,o.detect)();i&&"firefox"===i.name?t.setAttribute("dominant-baseline",f[n]||"alphabetic"):t.setAttribute("alignment-baseline",c[n]||"baseline"),t.setAttribute("text-anchor",h[r]||"left")},e.prototype._setText=function(t){var e=this.get("el"),n=this.attr(),r=n.x,i=n.textBaseline,o=void 0===i?"bottom":i;if(t)if(~t.indexOf("\n")){var s=t.split("\n"),l=s.length-1,u="";(0,a.each)(s,(function(t,e){0===e?"alphabetic"===o?u+='<tspan x="'+r+'" dy="'+-l+'em">'+t+"</tspan>":"top"===o?u+='<tspan x="'+r+'" dy="0.9em">'+t+"</tspan>":"middle"===o?u+='<tspan x="'+r+'" dy="'+-(l-1)/2+'em">'+t+"</tspan>":"bottom"===o?u+='<tspan x="'+r+'" dy="-'+(l+.3)+'em">'+t+"</tspan>":"hanging"===o&&(u+='<tspan x="'+r+'" dy="'+(-(l-1)-.3)+'em">'+t+"</tspan>"):u+='<tspan x="'+r+'" dy="1em">'+t+"</tspan>"})),e.innerHTML=u}else e.innerHTML=t;else e.innerHTML=""},e}(u.default);e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(12),o=n(16),s=n(121),l=n(64),u=n(27),c=r.__importStar(n(82)),f=r.__importDefault(n(122)),h=r.__importDefault(n(519)),p=function(t){function e(e){return t.call(this,(0,i.__assign)((0,i.__assign)({},e),{autoDraw:!0,renderer:"svg"}))||this}return(0,i.__extends)(e,t),e.prototype.getShapeBase=function(){return c},e.prototype.getGroupBase=function(){return f.default},e.prototype.getShape=function(t,e,n){var r=n.target||n.srcElement;if(!o.SHAPE_TO_TAGS[r.tagName]){for(var i=r.parentNode;i&&!o.SHAPE_TO_TAGS[i.tagName];)i=i.parentNode;r=i}return this.find((function(t){return t.get("el")===r}))},e.prototype.createDom=function(){var t=(0,u.createSVGElement)("svg"),e=new h.default(t);return t.setAttribute("width",""+this.get("width")),t.setAttribute("height",""+this.get("height")),this.set("context",e),t},e.prototype.onCanvasChange=function(t){var e=this.get("context"),n=this.get("el");if("sort"===t){var r=this.get("children");r&&r.length&&(0,u.sortDom)(this,(function(t,e){return r.indexOf(t)-r.indexOf(e)?1:0}))}else if("clear"===t){if(n){n.innerHTML="";var i=e.el;i.innerHTML="",n.appendChild(i)}}else"matrix"===t?(0,l.setTransform)(this):"clip"===t?(0,l.setClip)(this,e):"changeSize"===t&&(n.setAttribute("width",""+this.get("width")),n.setAttribute("height",""+this.get("height")))},e.prototype.draw=function(){var t=this.get("context"),e=this.getChildren();(0,l.setClip)(this,t),e.length&&(0,s.drawChildren)(t,e)},e}(a.AbstractCanvas);e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=r.__importDefault(n(520)),o=r.__importDefault(n(521)),s=r.__importDefault(n(522)),l=r.__importDefault(n(523)),u=r.__importDefault(n(524)),c=n(27),f=function(){function t(t){var e=(0,c.createSVGElement)("defs"),n=(0,i.uniqueId)("defs_");e.id=n,t.appendChild(e),this.children=[],this.defaultArrow={},this.el=e,this.canvas=t}return t.prototype.find=function(t,e){for(var n=this.children,r=null,i=0;i<n.length;i++)if(n[i].match(t,e)){r=n[i].id;break}return r},t.prototype.findById=function(t){for(var e=this.children,n=null,r=0;r<e.length;r++)if(e[r].id===t){n=e[r];break}return n},t.prototype.add=function(t){this.children.push(t),t.canvas=this.canvas,t.parent=this},t.prototype.getDefaultArrow=function(t,e){var n=t.stroke||t.strokeStyle;if(this.defaultArrow[n])return this.defaultArrow[n].id;var r=new s.default(t,e);return this.defaultArrow[n]=r,this.el.appendChild(r.el),this.add(r),r.id},t.prototype.addGradient=function(t){var e=new a.default(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addArrow=function(t,e){var n=new s.default(t,e);return this.el.appendChild(n.el),this.add(n),n.id},t.prototype.addShadow=function(t){var e=new o.default(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addPattern=function(t){var e=new u.default(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addClip=function(t){var e=new l.default(t);return this.el.appendChild(e.el),this.add(e),e.id},t}();e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(27),a=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,o=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,s=/[\d.]+:(#[^\s]+|[^)]+\))/gi;function l(t){var e=t.match(s);if(!e)return"";var n="";return e.sort((function(t,e){return t=t.split(":"),e=e.split(":"),Number(t[0])-Number(e[0])})),(0,r.each)(e,(function(t){t=t.split(":"),n+='<stop offset="'+t[0]+'" stop-color="'+t[1]+'"></stop>'})),n}var u=function(){function t(t){this.cfg={};var e=null,n=(0,r.uniqueId)("gradient_");return"l"===t.toLowerCase()[0]?function(t,e){var n,i,o=a.exec(t),s=(0,r.mod)((0,r.toRadian)(parseFloat(o[1])),2*Math.PI),u=o[2];s>=0&&s<.5*Math.PI?(n={x:0,y:0},i={x:1,y:1}):.5*Math.PI<=s&&s<Math.PI?(n={x:1,y:0},i={x:0,y:1}):Math.PI<=s&&s<1.5*Math.PI?(n={x:1,y:1},i={x:0,y:0}):(n={x:0,y:1},i={x:1,y:0});var c=Math.tan(s),f=c*c,h=(i.x-n.x+c*(i.y-n.y))/(f+1)+n.x,p=c*(i.x-n.x+c*(i.y-n.y))/(f+1)+n.y;e.setAttribute("x1",n.x),e.setAttribute("y1",n.y),e.setAttribute("x2",h),e.setAttribute("y2",p),e.innerHTML=l(u)}(t,e=(0,i.createSVGElement)("linearGradient")):function(t,e){var n=o.exec(t),r=parseFloat(n[1]),i=parseFloat(n[2]),a=parseFloat(n[3]),s=n[4];e.setAttribute("cx",r),e.setAttribute("cy",i),e.setAttribute("r",a),e.innerHTML=l(s)}(t,e=(0,i.createSVGElement)("radialGradient")),e.setAttribute("id",n),this.el=e,this.id=n,this.cfg=t,this}return t.prototype.match=function(t,e){return this.cfg===e},t}();e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(27),a={shadowColor:"color",shadowOpacity:"opacity",shadowBlur:"blur",shadowOffsetX:"dx",shadowOffsetY:"dy"},o={x:"-40%",y:"-40%",width:"200%",height:"200%"},s=function(){function t(t){this.type="filter",this.cfg={},this.type="filter";var e=(0,i.createSVGElement)("filter");return(0,r.each)(o,(function(t,n){e.setAttribute(n,t)})),this.el=e,this.id=(0,r.uniqueId)("filter_"),this.el.id=this.id,this.cfg=t,this._parseShadow(t,e),this}return t.prototype.match=function(t,e){if(this.type!==t)return!1;var n=!0,i=this.cfg;return(0,r.each)(Object.keys(i),(function(t){if(i[t]!==e[t])return n=!1,!1})),n},t.prototype.update=function(t,e){var n=this.cfg;return n[a[t]]=e,this._parseShadow(n,this.el),this},t.prototype._parseShadow=function(t,e){var n='<feDropShadow\n dx="'+(t.dx||0)+'"\n dy="'+(t.dy||0)+'"\n stdDeviation="'+(t.blur?t.blur/10:0)+'"\n flood-color="'+(t.color?t.color:"#000")+'"\n flood-opacity="'+(t.opacity?t.opacity:1)+'"\n />';e.innerHTML=n},t}();e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(27),a=function(){function t(t,e){this.cfg={};var n=(0,i.createSVGElement)("marker"),a=(0,r.uniqueId)("marker_");n.setAttribute("id",a);var o=(0,i.createSVGElement)("path");o.setAttribute("stroke",t.stroke||"none"),o.setAttribute("fill",t.fill||"none"),n.appendChild(o),n.setAttribute("overflow","visible"),n.setAttribute("orient","auto-start-reverse"),this.el=n,this.child=o,this.id=a;var s=t["marker-start"===e?"startArrow":"endArrow"];return this.stroke=t.stroke||"#000",!0===s?this._setDefaultPath(e,o):(this.cfg=s,this._setMarker(t.lineWidth,o)),this}return t.prototype.match=function(){return!1},t.prototype._setDefaultPath=function(t,e){var n=this.el;e.setAttribute("d","M0,0 L"+10*Math.cos(Math.PI/6)+",5 L0,10"),n.setAttribute("refX",""+10*Math.cos(Math.PI/6)),n.setAttribute("refY","5")},t.prototype._setMarker=function(t,e){var n=this.el,i=this.cfg.path,a=this.cfg.d;(0,r.isArray)(i)&&(i=i.map((function(t){return t.join(" ")})).join("")),e.setAttribute("d",i),n.appendChild(e),a&&n.setAttribute("refX",""+a/t)},t.prototype.update=function(t){var e=this.child;e.attr?e.attr("fill",t):e.setAttribute("fill",t)},t}();e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(27),a=function(){function t(t){this.type="clip",this.cfg={};var e=(0,i.createSVGElement)("clipPath");this.el=e,this.id=(0,r.uniqueId)("clip_"),e.id=this.id;var n=t.cfg.el;return e.appendChild(n),this.cfg=t,this}return t.prototype.match=function(){return!1},t.prototype.remove=function(){var t=this.el;t.parentNode.removeChild(t)},t}();e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(27),a=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,o=function(){function t(t){this.cfg={};var e=(0,i.createSVGElement)("pattern");e.setAttribute("patternUnits","userSpaceOnUse");var n=(0,i.createSVGElement)("image");e.appendChild(n);var o=(0,r.uniqueId)("pattern_");e.id=o,this.el=e,this.id=o,this.cfg=t;var s=a.exec(t)[2];n.setAttribute("href",s);var l=new Image;function u(){e.setAttribute("width",""+l.width),e.setAttribute("height",""+l.height)}return s.match(/^data:/i)||(l.crossOrigin="Anonymous"),l.src=s,l.complete?u():(l.onload=u,l.src=l.src),this}return t.prototype.match=function(t,e){return this.cfg===e},t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(2),a=r.__importDefault(n(123));n(526);var o=function(t){function e(e){var n=t.call(this,e)||this;n.type="area",n.shapeType="area",n.generatePoints=!0,n.startOnZero=!0;var r=e.startOnZero,i=void 0===r||r,a=e.sortable,o=void 0!==a&&a,s=e.showSinglePoint,l=void 0!==s&&s;return n.startOnZero=i,n.sortable=o,n.showSinglePoint=l,n}return r.__extends(e,t),e.prototype.getPointsAndData=function(t){for(var e=[],n=[],r=0,a=t.length;r<a;r++){var o=t[r];e.push(o.points),n.push(o[i.FIELD_ORIGIN])}return{points:e,data:n}},e.prototype.getYMinValue=function(){return this.startOnZero?t.prototype.getYMinValue.call(this):this.getYScale().min},e}(a.default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(3),a=n(83),o=(0,i.registerShapeFactory)("area",{defaultShapeType:"area",getDefaultPoints:function(t){var e=t.x,n=t.y0;return((0,r.isArray)(t.y)?t.y:[n,t.y]).map((function(t){return{x:e,y:t}}))}});(0,i.registerShape)("area","area",{draw:function(t,e){var n=(0,a.getShapeAttrs)(t,!1,!1,this);return e.addShape({type:"path",attrs:n,name:"area"})},getMarker:function(t){return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,fill:t.color}}}}),e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(34));n(528);var a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="edge",e.shapeType="edge",e.generatePoints=!0,e}return r.__extends(e,t),e}(i.default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(3),a=n(6),o=n(52),s=n(119),l=(0,i.registerShapeFactory)("edge",{defaultShapeType:"line",getDefaultPoints:function(t){return(0,s.splitPoints)(t)}});(0,i.registerShape)("edge","line",{draw:function(t,e){var n=(0,a.getStyle)(t,!0,!1,"lineWidth"),i=(0,o.getLinePath)(this.parsePoints(t.points),this.coordinate.isPolar);return e.addShape("path",{attrs:r.__assign(r.__assign({},n),{path:i})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}}),e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(70)),a=n(1),o=n(2),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="heatmap",e.paletteCache={},e}return r.__extends(e,t),e.prototype.updateElements=function(t,e){void 0===e&&(e=!1);for(var n=0;n<t.length;n++){var r=t[n],i=this.prepareRange(r),o=this.prepareSize(),s=(0,a.get)(this.styleOption,["cfg","shadowBlur"]);(0,a.isNumber)(s)||(s=o/2),this.prepareGreyScaleBlurredCircle(o,s),this.drawWithRange(r,i,o,s)}},e.prototype.color=function(t,e){return this.createAttrOption("color",t,"function"!=typeof e?e:""),this},e.prototype.clear=function(){t.prototype.clear.call(this),this.clearShadowCanvasCtx(),this.paletteCache={}},e.prototype.prepareRange=function(t){var e=this.getAttribute("color").getFields()[0],n=1/0,r=-1/0;return t.forEach((function(t){var i=t[o.FIELD_ORIGIN][e];i>r&&(r=i),i<n&&(n=i)})),n===r&&(n=r-1),[n,r]},e.prototype.prepareSize=function(){var t=this.getDefaultValue("size");return(0,a.isNumber)(t)||(t=this.getDefaultSize()),t},e.prototype.prepareGreyScaleBlurredCircle=function(t,e){var n=this.getGrayScaleBlurredCanvas(),r=t+e,i=n.getContext("2d");n.width=n.height=2*r,i.clearRect(0,0,n.width,n.height),i.shadowOffsetX=i.shadowOffsetY=2*r,i.shadowBlur=e,i.shadowColor="black",i.beginPath(),i.arc(-r,-r,t,0,2*Math.PI,!0),i.closePath(),i.fill()},e.prototype.drawWithRange=function(t,e,n,i){var a,s,l=this.coordinate,u=l.start,c=l.end,f=this.coordinate.getWidth(),h=this.coordinate.getHeight(),p=this.getAttribute("color").getFields()[0];this.clearShadowCanvasCtx();var d=this.getShadowCanvasCtx();e&&(t=t.filter((function(t){return t[o.FIELD_ORIGIN][p]<=e[1]&&t[o.FIELD_ORIGIN][p]>=e[0]})));var g=this.scales[p];try{for(var y=r.__values(t),v=y.next();!v.done;v=y.next()){var m=v.value,_=this.getDrawCfg(m),x=_.x,b=_.y,M=g.scale(m[o.FIELD_ORIGIN][p]);this.drawGrayScaleBlurredCircle(x-u.x,b-c.y,n+i,M,d)}}catch(t){a={error:t}}finally{try{v&&!v.done&&(s=y.return)&&s.call(y)}finally{if(a)throw a.error}}var C=d.getImageData(0,0,f,h);this.clearShadowCanvasCtx(),this.colorize(C),d.putImageData(C,0,0);var P=this.getImageShape();P.attr("x",u.x),P.attr("y",c.y),P.attr("width",f),P.attr("height",h),P.attr("img",d.canvas),P.set("origin",this.getShapeInfo(t))},e.prototype.getDefaultSize=function(){var t=this.getAttribute("position"),e=this.coordinate;return Math.min(e.getWidth()/(4*t.scales[0].ticks.length),e.getHeight()/(4*t.scales[1].ticks.length))},e.prototype.clearShadowCanvasCtx=function(){var t=this.getShadowCanvasCtx();t.clearRect(0,0,t.canvas.width,t.canvas.height)},e.prototype.getShadowCanvasCtx=function(){var t=this.shadowCanvas;return t||(t=document.createElement("canvas"),this.shadowCanvas=t),t.width=this.coordinate.getWidth(),t.height=this.coordinate.getHeight(),t.getContext("2d")},e.prototype.getGrayScaleBlurredCanvas=function(){return this.grayScaleBlurredCanvas||(this.grayScaleBlurredCanvas=document.createElement("canvas")),this.grayScaleBlurredCanvas},e.prototype.drawGrayScaleBlurredCircle=function(t,e,n,r,i){var a=this.getGrayScaleBlurredCanvas();i.globalAlpha=r,i.drawImage(a,t-n,e-n)},e.prototype.colorize=function(t){for(var e=this.getAttribute("color"),n=t.data,r=this.paletteCache,o=3;o<n.length;o+=4){var s=n[o];if((0,a.isNumber)(s)){var l=r[s]?r[s]:i.default.rgb2arr(e.gradient(s/256));n[o-3]=l[0],n[o-2]=l[1],n[o-1]=l[2],n[o]=s}}},e.prototype.getImageShape=function(){var t=this.imageShape;return t||(t=this.container.addShape({type:"image",attrs:{}}),this.imageShape=t,t)},e.prototype.getShapeInfo=function(t){var e=this.getDrawCfg(t[0]),n=t.map((function(t){return t[o.FIELD_ORIGIN]}));return r.__assign(r.__assign({},e),{mappingData:t,data:n})},e}(r.__importDefault(n(34)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(14),o=r.__importDefault(n(34));n(531);var s=n(124),l=n(38),u=function(t){function e(e){var n=t.call(this,e)||this;n.type="interval",n.shapeType="interval",n.generatePoints=!0;var r=e.background;return n.background=r,n}return r.__extends(e,t),e.prototype.createShapePointsCfg=function(e){var n,r=t.prototype.createShapePointsCfg.call(this,e),i=this.getAttribute("size");if(i){n=this.getAttributeValues(i,e)[0];var o=this.coordinate;n/=(0,a.getXDimensionLength)(o)}else this.defaultSize||(this.defaultSize=(0,s.getDefaultSize)(this)),n=this.defaultSize;return r.size=n,r},e.prototype.adjustScale=function(){t.prototype.adjustScale.call(this);var e=this.getYScale();if("theta"===this.coordinate.type)e.change({nice:!1,min:0,max:(0,l.getMaxScale)(e)});else{var n=this.scaleDefs,r=e.field,a=e.min,o=e.max;"time"!==e.type&&(a>0&&!(0,i.get)(n,[r,"min"])&&e.change({min:0}),o<=0&&!(0,i.get)(n,[r,"max"])&&e.change({max:0}))}},e.prototype.getDrawCfg=function(e){var n=t.prototype.getDrawCfg.call(this,e);return n.background=this.background,n},e}(o.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(3),a=n(116),o=n(6),s=n(65),l=(0,i.registerShapeFactory)("interval",{defaultShapeType:"rect",getDefaultPoints:function(t){return(0,s.getRectPoints)(t)}});(0,i.registerShape)("interval","rect",{draw:function(t,e){var n,i=(0,o.getStyle)(t,!1,!0),l=e,u=null==t?void 0:t.background;if(u){l=e.addGroup();var c=(0,o.getBackgroundRectStyle)(t),f=(0,s.getBackgroundRectPath)(t,this.parsePoints(t.points),this.coordinate);l.addShape("path",{attrs:r.__assign(r.__assign({},c),{path:f}),zIndex:-1,name:a.BACKGROUND_SHAPE})}n=i.radius&&this.coordinate.isRect?(0,s.getRectWithCornerRadius)(this.parsePoints(t.points),this.coordinate,i.radius):this.parsePath((0,s.getIntervalRectPath)(t.points,i.lineCap,this.coordinate));var h=l.addShape("path",{attrs:r.__assign(r.__assign({},i),{path:n}),name:"interval"});return u?l:h},getMarker:function(t){var e=t.color;return t.isInPolar?{symbol:"circle",style:{r:4.5,fill:e}}:{symbol:"square",style:{r:4,fill:e}}}}),e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(123));n(118);var a=function(t){function e(e){var n=t.call(this,e)||this;n.type="line";var r=e.sortable,i=void 0!==r&&r;return n.sortable=i,n}return r.__extends(e,t),e}(i.default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(34));n(534);var a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="point",e.shapeType="point",e.generatePoints=!0,e}return r.__extends(e,t),e.prototype.getDrawCfg=function(e){var n=t.prototype.getDrawCfg.call(this,e);return r.__assign(r.__assign({},n),{isStack:!!this.getAdjust("stack")})},e}(i.default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(61),a=n(3),o=n(119),s=n(125),l=(0,a.registerShapeFactory)("point",{defaultShapeType:"hollow-circle",getDefaultPoints:function(t){return(0,o.splitPoints)(t)}});(0,r.each)(s.SHAPES,(function(t){(0,a.registerShape)("point","hollow-".concat(t),{draw:function(e,n){return(0,s.drawPoints)(this,e,n,t,!0)},getMarker:function(e){var n=e.color;return{symbol:i.MarkerSymbols[t]||t,style:{r:4.5,stroke:n,fill:null}}}})})),e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=r.__importDefault(n(34));n(536);var o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polygon",e.shapeType="polygon",e.generatePoints=!0,e}return r.__extends(e,t),e.prototype.createShapePointsCfg=function(e){var n,r=t.prototype.createShapePointsCfg.call(this,e),a=r.x,o=r.y;if(!(0,i.isArray)(a)||!(0,i.isArray)(o)){var s=this.getXScale(),l=this.getYScale(),u=.5/s.values.length,c=.5/l.values.length;s.isCategory&&l.isCategory?(a=[a-u,a-u,a+u,a+u],o=[o-c,o+c,o+c,o-c]):(0,i.isArray)(a)?(a=[(n=a)[0],n[0],n[1],n[1]],o=[o-c/2,o+c/2,o+c/2,o-c/2]):(0,i.isArray)(o)&&(o=[(n=o)[0],n[1],n[1],n[0]],a=[a-u/2,a-u/2,a+u/2,a+u/2]),r.x=a,r.y=o}return r},e}(a.default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(3),o=n(6);var s=(0,a.registerShapeFactory)("polygon",{defaultShapeType:"polygon",getDefaultPoints:function(t){var e=[];return(0,i.each)(t.x,(function(n,r){var i=t.y[r];e.push({x:n,y:i})})),e}});(0,a.registerShape)("polygon","polygon",{draw:function(t,e){if(!(0,i.isEmpty)(t.points)){var n=(0,o.getStyle)(t,!0,!0),a=this.parsePath(function(t){for(var e=t[0],n=1,r=[["M",e.x,e.y]];n<t.length;){var a=t[n];a.x===t[n-1].x&&a.y===t[n-1].y||(r.push(["L",a.x,a.y]),a.x===e.x&&a.y===e.y&&n<t.length-1&&(e=t[n+1],r.push(["Z"]),r.push(["M",e.x,e.y]),n++)),n++}return(0,i.isEqual)((0,i.last)(r),e)||r.push(["L",e.x,e.y]),r.push(["Z"]),r}(t.points));return e.addShape("path",{attrs:r.__assign(r.__assign({},n),{path:a}),name:"polygon"})}},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}}),e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(14),a=r.__importDefault(n(34));n(538);var o=n(124),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="schema",e.shapeType="schema",e.generatePoints=!0,e}return r.__extends(e,t),e.prototype.createShapePointsCfg=function(e){var n,r=t.prototype.createShapePointsCfg.call(this,e),a=this.getAttribute("size");if(a){n=this.getAttributeValues(a,e)[0];var s=this.coordinate;n/=(0,i.getXDimensionLength)(s)}else this.defaultSize||(this.defaultSize=(0,o.getDefaultSize)(this)),n=this.defaultSize;return r.size=n,r},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=(0,n(3).registerShapeFactory)("schema",{defaultShapeType:""});e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(2),o=n(14),s=n(124),l=r.__importDefault(n(34));n(540);var u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="violin",e.shapeType="violin",e.generatePoints=!0,e}return r.__extends(e,t),e.prototype.createShapePointsCfg=function(e){var n,r=t.prototype.createShapePointsCfg.call(this,e),l=this.getAttribute("size");if(l){n=this.getAttributeValues(l,e)[0];var u=this.coordinate;n/=(0,o.getXDimensionLength)(u)}else this.defaultSize||(this.defaultSize=(0,s.getDefaultSize)(this)),n=this.defaultSize;return r.size=n,r._size=(0,i.get)(e[a.FIELD_ORIGIN],[this._sizeField]),r},e.prototype.initAttributes=function(){var e=this.attributeOption,n=e.size?e.size.fields[0]:this._sizeField?this._sizeField:"size";this._sizeField=n,delete e.size,t.prototype.initAttributes.call(this)},e}(l.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(3),o=n(43),s=n(6);var l=(0,a.registerShapeFactory)("violin",{defaultShapeType:"violin",getDefaultPoints:function(t){var e=t.size/2,n=[],r=function(t){if(!(0,i.isArray)(t))return[];var e=(0,i.max)(t);return(0,i.map)(t,(function(t){return t/e}))}(t._size);return(0,i.each)(t.y,(function(i,a){var o=r[a]*e,s=0===a,l=a===t.y.length-1;n.push({isMin:s,isMax:l,x:t.x-o,y:i}),n.unshift({isMin:s,isMax:l,x:t.x+o,y:i})})),n}});(0,a.registerShape)("violin","violin",{draw:function(t,e){var n=(0,s.getStyle)(t,!0,!0),i=this.parsePath((0,o.getViolinPath)(t.points));return e.addShape("path",{attrs:r.__assign(r.__assign({},n),{path:i}),name:"violin"})},getMarker:function(t){return{symbol:"circle",style:{r:4,fill:t.color}}}}),e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(3),i=n(83);(0,r.registerShape)("area","line",{draw:function(t,e){var n=(0,i.getShapeAttrs)(t,!0,!1,this);return e.addShape({type:"path",attrs:n,name:"area"})},getMarker:function(t){return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,stroke:t.color,fill:null}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(3),i=n(83);(0,r.registerShape)("area","smooth",{draw:function(t,e){var n=this.coordinate,r=(0,i.getShapeAttrs)(t,!1,!0,this,(0,i.getConstraint)(n));return e.addShape({type:"path",attrs:r,name:"area"})},getMarker:function(t){return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(3),i=n(83);(0,r.registerShape)("area","smooth-line",{draw:function(t,e){var n=this.coordinate,r=(0,i.getShapeAttrs)(t,!0,!0,this,(0,i.getConstraint)(n));return e.addShape({type:"path",attrs:r,name:"area"})},getMarker:function(t){return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,stroke:t.color,fill:null}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(13),a=n(3),o=n(6),s=n(224);(0,a.registerShape)("edge","arc",{draw:function(t,e){var n,a=(0,o.getStyle)(t,!0,!1,"lineWidth"),l=t.points,u=l.length>2?"weight":"normal";if(t.isInCircle){var c={x:0,y:1};return"normal"===u?n=function(t,e,n){var r=(0,s.getQPath)(e,n),i=[["M",t.x,t.y]];return i.push(r),i}(l[0],l[1],c):(a.fill=a.stroke,n=function(t,e){var n=(0,s.getQPath)(t[1],e),r=(0,s.getQPath)(t[3],e),i=[["M",t[0].x,t[0].y]];return i.push(r),i.push(["L",t[3].x,t[3].y]),i.push(["L",t[2].x,t[2].y]),i.push(n),i.push(["L",t[1].x,t[1].y]),i.push(["L",t[0].x,t[0].y]),i.push(["Z"]),i}(l,c)),n=this.parsePath(n),e.addShape("path",{attrs:r.__assign(r.__assign({},a),{path:n})})}if("normal"===u)return l=this.parsePoints(l),n=(0,i.getArcPath)((l[1].x+l[0].x)/2,l[0].y,Math.abs(l[1].x-l[0].x)/2,Math.PI,2*Math.PI),e.addShape("path",{attrs:r.__assign(r.__assign({},a),{path:n})});var f=(0,s.getCPath)(l[1],l[3]),h=(0,s.getCPath)(l[2],l[0]);return n=[["M",l[0].x,l[0].y],["L",l[1].x,l[1].y],f,["L",l[3].x,l[3].y],["L",l[2].x,l[2].y],h,["Z"]],n=this.parsePath(n),a.fill=a.stroke,e.addShape("path",{attrs:r.__assign(r.__assign({},a),{path:n})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(3),a=n(6),o=n(224);(0,i.registerShape)("edge","smooth",{draw:function(t,e){var n=(0,a.getStyle)(t,!0,!1,"lineWidth"),i=t.points,s=this.parsePath(function(t,e){var n=(0,o.getCPath)(t,e),r=[["M",t.x,t.y]];return r.push(n),r}(i[0],i[1]));return e.addShape("path",{attrs:r.__assign(r.__assign({},n),{path:s})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(3),o=n(6);(0,a.registerShape)("edge","vhv",{draw:function(t,e){var n=(0,o.getStyle)(t,!0,!1,"lineWidth"),a=t.points,s=this.parsePath(function(t,e){var n=[];n.push({x:t.x,y:t.y*(1-1/3)+e.y*(1/3)}),n.push({x:e.x,y:t.y*(1-1/3)+e.y*(1/3)}),n.push(e);var r=[["M",t.x,t.y]];return(0,i.each)(n,(function(t){r.push(["L",t.x,t.y])})),r}(a[0],a[1]));return e.addShape("path",{attrs:r.__assign(r.__assign({},n),{path:s})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(3),a=n(6),o=n(65);(0,i.registerShape)("interval","funnel",{getPoints:function(t){return t.size=2*t.size,(0,o.getRectPoints)(t)},draw:function(t,e){var n=(0,a.getStyle)(t,!1,!0),i=this.parsePath((0,o.getFunnelPath)(t.points,t.nextPoints,!1));return e.addShape("path",{attrs:r.__assign(r.__assign({},n),{path:i}),name:"interval"})},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(3),a=n(116),o=n(6),s=n(65);(0,i.registerShape)("interval","hollow-rect",{draw:function(t,e){var n=(0,o.getStyle)(t,!0,!1),i=e,l=null==t?void 0:t.background;if(l){i=e.addGroup();var u=(0,o.getBackgroundRectStyle)(t),c=(0,s.getBackgroundRectPath)(t,this.parsePoints(t.points),this.coordinate);i.addShape("path",{attrs:r.__assign(r.__assign({},u),{path:c}),zIndex:-1,name:a.BACKGROUND_SHAPE})}var f=this.parsePath((0,s.getRectPath)(t.points)),h=i.addShape("path",{attrs:r.__assign(r.__assign({},n),{path:f}),name:"interval"});return l?i:h},getMarker:function(t){var e=t.color;return t.isInPolar?{symbol:"circle",style:{r:4.5,stroke:e,fill:null}}:{symbol:"square",style:{r:4,stroke:e,fill:null}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(3),o=n(6),s=n(65),l=n(25);(0,a.registerShape)("interval","line",{getPoints:function(t){return n=(e=t).x,r=e.y,a=e.y0,(0,i.isArray)(r)?r.map((function(t,e){return{x:(0,i.isArray)(n)?n[e]:n,y:t}})):[{x:n,y:a},{x:n,y:r}];var e,n,r,a},draw:function(t,e){var n=(0,o.getStyle)(t,!0,!1,"lineWidth"),i=(0,l.omit)(r.__assign({},n),["fill"]),a=this.parsePath((0,s.getRectPath)(t.points,!1));return e.addShape("path",{attrs:r.__assign(r.__assign({},i),{path:a}),name:"interval"})},getMarker:function(t){return{symbol:function(t,e,n){return[["M",t,e-n],["L",t,e+n]]},style:{r:5,stroke:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(3),a=n(6),o=n(65);(0,i.registerShape)("interval","pyramid",{getPoints:function(t){return t.size=2*t.size,(0,o.getRectPoints)(t)},draw:function(t,e){var n=(0,a.getStyle)(t,!1,!0),i=this.parsePath((0,o.getFunnelPath)(t.points,t.nextPoints,!0));return e.addShape("path",{attrs:r.__assign(r.__assign({},n),{path:i}),name:"interval"})},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(3),o=n(6);(0,a.registerShape)("interval","tick",{getPoints:function(t){return function(t){var e,n,a,o=t.x,s=t.y,l=t.y0,u=t.size;(0,i.isArray)(s)?(n=(e=r.__read(s,2))[0],a=e[1]):(n=l,a=s);var c=o+u/2,f=o-u/2;return[{x:o,y:n},{x:o,y:a},{x:f,y:n},{x:c,y:n},{x:f,y:a},{x:c,y:a}]}(t)},draw:function(t,e){var n,i=(0,o.getStyle)(t,!0,!1),a=this.parsePath([["M",(n=t.points)[0].x,n[0].y],["L",n[1].x,n[1].y],["M",n[2].x,n[2].y],["L",n[3].x,n[3].y],["M",n[4].x,n[4].y],["L",n[5].x,n[5].y]]);return e.addShape("path",{attrs:r.__assign(r.__assign({},i),{path:a}),name:"interval"})},getMarker:function(t){return{symbol:function(t,e,n){return[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]]},style:{r:5,stroke:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(3),o=n(43),s=n(6),l=n(216);function u(t,e){var n=(0,o.getPathPoints)(t.points,t.connectNulls,t.showSinglePoint),a=[];return(0,i.each)(n,(function(t){var n=function(t,e){var n=[];return(0,i.each)(t,(function(r,i){var a=t[i+1];if(n.push(r),a){var o=function(t,e,n){var r,i=t.x,a=t.y,o=e.x,s=e.y;switch(n){case"hv":r=[{x:o,y:a}];break;case"vh":r=[{x:i,y:s}];break;case"hvh":var l=(o+i)/2;r=[{x:l,y:a},{x:l,y:s}];break;case"vhv":var u=(a+s)/2;r=[{x:i,y:u},{x:o,y:u}]}return r}(r,a,e);n=n.concat(o)}})),n}(t,e);a=a.concat(function(t){return t.map((function(t,e){return 0===e?["M",t.x,t.y]:["L",t.x,t.y]}))}(n))})),r.__assign(r.__assign({},(0,s.getStyle)(t,!0,!1,"lineWidth")),{path:a})}(0,i.each)(["hv","vh","hvh","vhv"],(function(t){(0,a.registerShape)("line",t,{draw:function(e,n){var r=u(e,t);return n.addShape({type:"path",attrs:r,name:"line"})},getMarker:function(e){return(0,l.getLineMarker)(e,t)}})}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(61),a=n(3),o=n(125);(0,r.each)(o.HOLLOW_SHAPES,(function(t){(0,a.registerShape)("point",t,{draw:function(e,n){return(0,o.drawPoints)(this,e,n,t,!0)},getMarker:function(e){var n=e.color;return{symbol:i.MarkerSymbols[t],style:{r:4.5,stroke:n,fill:null}}}})}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(3),a=n(6);(0,i.registerShape)("point","image",{draw:function(t,e){var n,i,o=(0,a.getStyle)(t,!1,!1,"r").r,s=this.parsePoints(t.points),l=s[0];if(t.isStack)l=s[1];else if(s.length>1){var u=e.addGroup();try{for(var c=r.__values(s),f=c.next();!f.done;f=c.next()){var h=f.value;u.addShape("image",{attrs:{x:h.x-o/2,y:h.y-o,width:o,height:o,img:t.shape[1]}})}}catch(t){n={error:t}}finally{try{f&&!f.done&&(i=c.return)&&i.call(c)}finally{if(n)throw n.error}}return u}return e.addShape("image",{attrs:{x:l.x-o/2,y:l.y-o,width:o,height:o,img:t.shape[1]}})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(61),a=n(3),o=n(125);(0,r.each)(o.SHAPES,(function(t){(0,a.registerShape)("point",t,{draw:function(e,n){return(0,o.drawPoints)(this,e,n,t,!1)},getMarker:function(e){var n=e.color;return{symbol:i.MarkerSymbols[t]||t,style:{r:4.5,fill:n}}}})}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(3),o=n(6);function s(t){var e=(0,i.isArray)(t)?t:[t],n=e[0],r=e[e.length-1],a=e.length>1?e[1]:n;return{min:n,max:r,min1:a,max1:e.length>3?e[3]:r,median:e.length>2?e[2]:a}}function l(t,e,n){var r,a=n/2;if((0,i.isArray)(e)){var o=s(e),l=o.min,u=o.max,c=o.median,f=o.min1,h=t-a,p=t+a;r=[[h,u],[p,u],[t,u],[t,d=o.max1],[h,f],[h,d],[p,d],[p,f],[t,f],[t,l],[h,l],[p,l],[h,c],[p,c]]}else{e=(0,i.isNil)(e)?.5:e;var d,g=s(t),y=(l=g.min,u=g.max,c=g.median,e-a),v=e+a;r=[[l,y],[l,v],[l,e],[f=g.min1,e],[f,y],[f,v],[d=g.max1,v],[d,y],[d,e],[u,e],[u,y],[u,v],[c,y],[c,v]]}return r.map((function(t){return{x:t[0],y:t[1]}}))}(0,a.registerShape)("schema","box",{getPoints:function(t){return l(t.x,t.y,t.size)},draw:function(t,e){var n,i=(0,o.getStyle)(t,!0,!1),a=this.parsePath([["M",(n=t.points)[0].x,n[0].y],["L",n[1].x,n[1].y],["M",n[2].x,n[2].y],["L",n[3].x,n[3].y],["M",n[4].x,n[4].y],["L",n[5].x,n[5].y],["L",n[6].x,n[6].y],["L",n[7].x,n[7].y],["L",n[4].x,n[4].y],["Z"],["M",n[8].x,n[8].y],["L",n[9].x,n[9].y],["M",n[10].x,n[10].y],["L",n[11].x,n[11].y],["M",n[12].x,n[12].y],["L",n[13].x,n[13].y]]);return e.addShape("path",{attrs:r.__assign(r.__assign({},i),{path:a,name:"schema"})})},getMarker:function(t){return{symbol:function(t,e,n){var r=l(t,[e-6,e-3,e,e+3,e+6],n);return[["M",r[0].x+1,r[0].y],["L",r[1].x-1,r[1].y],["M",r[2].x,r[2].y],["L",r[3].x,r[3].y],["M",r[4].x,r[4].y],["L",r[5].x,r[5].y],["L",r[6].x,r[6].y],["L",r[7].x,r[7].y],["L",r[4].x,r[4].y],["Z"],["M",r[8].x,r[8].y],["L",r[9].x,r[9].y],["M",r[10].x+1,r[10].y],["L",r[11].x-1,r[11].y],["M",r[12].x,r[12].y],["L",r[13].x,r[13].y]]},style:{r:6,lineWidth:1,stroke:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(25),o=n(3),s=n(6);function l(t,e,n){var r,o,s=(r=e,o=((0,i.isArray)(r)?r:[r]).sort((function(t,e){return e-t})),(0,a.padEnd)(o,4,o[o.length-1]));return[{x:t,y:s[0]},{x:t,y:s[1]},{x:t-n/2,y:s[2]},{x:t-n/2,y:s[1]},{x:t+n/2,y:s[1]},{x:t+n/2,y:s[2]},{x:t,y:s[2]},{x:t,y:s[3]}]}(0,o.registerShape)("schema","candle",{getPoints:function(t){return l(t.x,t.y,t.size)},draw:function(t,e){var n,i=(0,s.getStyle)(t,!0,!0),a=this.parsePath([["M",(n=t.points)[0].x,n[0].y],["L",n[1].x,n[1].y],["M",n[2].x,n[2].y],["L",n[3].x,n[3].y],["L",n[4].x,n[4].y],["L",n[5].x,n[5].y],["Z"],["M",n[6].x,n[6].y],["L",n[7].x,n[7].y]]);return e.addShape("path",{attrs:r.__assign(r.__assign({},i),{path:a,name:"schema"})})},getMarker:function(t){var e=t.color;return{symbol:function(t,e,n){var r=l(t,[e+7.5,e+3,e-3,e-7.5],n);return[["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],["M",r[2].x,r[2].y],["L",r[3].x,r[3].y],["L",r[4].x,r[4].y],["L",r[5].x,r[5].y],["Z"],["M",r[6].x,r[6].y],["L",r[7].x,r[7].y]]},style:{lineWidth:1,stroke:e,fill:e,r:6}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(3),o=n(6);function s(t,e){var n=Math.abs(t[0].x-t[2].x),r=Math.abs(t[0].y-t[2].y),a=Math.min(n,r);return e&&(a=(0,i.clamp)(e,0,Math.min(n,r))),a/=2,{x:(t[0].x+t[2].x)/2-a,y:(t[0].y+t[2].y)/2-a,width:2*a,height:2*a}}(0,a.registerShape)("polygon","square",{draw:function(t,e){if(!(0,i.isEmpty)(t.points)){var n=(0,o.getStyle)(t,!0,!0),a=this.parsePoints(t.points);return e.addShape("rect",{attrs:r.__assign(r.__assign({},n),s(a,t.size)),name:"polygon"})}},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(3),a=n(43),o=n(6);(0,i.registerShape)("violin","smooth",{draw:function(t,e){var n=(0,o.getStyle)(t,!0,!0),i=this.parsePath((0,a.getSmoothViolinPath)(t.points));return e.addShape("path",{attrs:r.__assign(r.__assign({},n),{path:i})})},getMarker:function(t){return{symbol:"circle",style:{stroke:null,r:4,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(3),a=n(43),o=n(6);(0,i.registerShape)("violin","hollow",{draw:function(t,e){var n=(0,o.getStyle)(t,!0,!1),i=this.parsePath((0,a.getViolinPath)(t.points));return e.addShape("path",{attrs:r.__assign(r.__assign({},n),{path:i})})},getMarker:function(t){return{symbol:"circle",style:{r:4,fill:null,stroke:t.color}}}}),(0,i.registerShape)("violin","hollow-smooth",{draw:function(t,e){var n=(0,o.getStyle)(t,!0,!1),i=this.parsePath((0,a.getSmoothViolinPath)(t.points));return e.addShape("path",{attrs:r.__assign(r.__assign({},n),{path:i})})},getMarker:function(t){return{symbol:"circle",style:{r:4,fill:null,stroke:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getLabelValueDir=function(t){var e=t.points;return e[0].y<=e[2].y?1:-1},e.prototype.getLabelOffsetPoint=function(e,n,i,a){var o,s=t.prototype.getLabelOffsetPoint.call(this,e,n,i),l=this.getCoordinate(),u=l.isTransposed?"x":"y",c=this.getLabelValueDir(e.mappingData);return s=r.__assign(r.__assign({},s),((o={})[u]=s[u]*c,o)),l.isReflect("x")&&(s=r.__assign(r.__assign({},s),{x:-1*s.x})),l.isReflect("y")&&(s=r.__assign(r.__assign({},s),{y:-1*s.y})),s},e.prototype.getThemedLabelCfg=function(t){var e=this.geometry,n=this.getDefaultLabelCfg(),r=e.theme;return(0,i.deepMix)({},n,r.labels,"middle"===t.position?{offset:0}:{},t)},e.prototype.setLabelPosition=function(t,e,n,r){var a,o,s,l,u=this.getCoordinate(),c=u.isTransposed,f=e.points,h=u.convert(f[0]),p=u.convert(f[2]),d=this.getLabelValueDir(e),g=(0,i.isArray)(e.shape)?e.shape[0]:e.shape;if("funnel"===g||"pyramid"===g){var y=(0,i.get)(e,"nextPoints"),v=(0,i.get)(e,"points");if(y){var m=u.convert(v[0]),_=u.convert(v[1]),x=u.convert(y[0]),b=u.convert(y[1]);c?(a=Math.min(x.y,m.y),s=Math.max(x.y,m.y),o=(_.x+b.x)/2,l=(m.x+x.x)/2):(a=Math.min((_.y+b.y)/2,(m.y+x.y)/2),s=Math.max((_.y+b.y)/2,(m.y+x.y)/2),o=b.x,l=m.x)}else a=Math.min(p.y,h.y),s=Math.max(p.y,h.y),o=p.x,l=h.x}else a=Math.min(p.y,h.y),s=Math.max(p.y,h.y),o=p.x,l=h.x;switch(r){case"right":t.x=o,t.y=(a+s)/2,t.textAlign=(0,i.get)(t,"textAlign",d>0?"left":"right");break;case"left":t.x=l,t.y=(a+s)/2,t.textAlign=(0,i.get)(t,"textAlign",d>0?"left":"right");break;case"bottom":c&&(t.x=(o+l)/2),t.y=s,t.textAlign=(0,i.get)(t,"textAlign","center"),t.textBaseline=(0,i.get)(t,"textBaseline",d>0?"bottom":"top");break;case"middle":c&&(t.x=(o+l)/2),t.y=(a+s)/2,t.textAlign=(0,i.get)(t,"textAlign","center"),t.textBaseline=(0,i.get)(t,"textBaseline","middle");break;case"top":c&&(t.x=(o+l)/2),t.y=a,t.textAlign=(0,i.get)(t,"textAlign","center"),t.textBaseline=(0,i.get)(t,"textBaseline",d>0?"bottom":"top")}},e}(r.__importDefault(n(79)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(14),o=n(13),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.defaultLayout="distribute",e}return r.__extends(e,t),e.prototype.getDefaultLabelCfg=function(e,n){var r=t.prototype.getDefaultLabelCfg.call(this,e,n);return(0,i.deepMix)({},r,(0,i.get)(this.geometry.theme,"pieLabels",{}))},e.prototype.getLabelOffset=function(e){return t.prototype.getLabelOffset.call(this,e)||0},e.prototype.getLabelRotate=function(t,e,n){var r;return e<0&&((r=t)>Math.PI/2&&(r-=Math.PI),r<-Math.PI/2&&(r+=Math.PI)),r},e.prototype.getLabelAlign=function(t){var e,n=this.getCoordinate().getCenter();return e=t.angle<=Math.PI/2&&t.x>=n.x?"left":"right",t.offset<=0&&(e="right"===e?"left":"right"),e},e.prototype.getArcPoint=function(t){return t},e.prototype.getPointAngle=function(t){var e,n=this.getCoordinate(),r={x:(0,i.isArray)(t.x)?t.x[0]:t.x,y:t.y[0]},o={x:(0,i.isArray)(t.x)?t.x[1]:t.x,y:t.y[1]},s=(0,a.getAngleByPoint)(n,r);if(t.points&&t.points[0].y===t.points[1].y)e=s;else{var l=(0,a.getAngleByPoint)(n,o);s>=l&&(l+=2*Math.PI),e=s+(l-s)/2}return e},e.prototype.getCirclePoint=function(t,e){var n=this.getCoordinate(),i=n.getCenter(),a=n.getRadius()+e;return r.__assign(r.__assign({},(0,o.polarToCartesian)(i.x,i.y,a,t)),{angle:t,r:a})},e}(r.__importDefault(n(225)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.distribute=void 0;var r=n(0),i=n(1),a=n(13);e.distribute=function(t,e,n,o){if(t.length&&e.length){var s=t[0]?t[0].offset:0,l=e[0].get("coordinate"),u=l.getRadius(),c=l.getCenter();if(s>0){var f=2*(u+s)+28,h={start:l.start,end:l.end},p=[[],[]];t.forEach((function(t){t&&("right"===t.textAlign?p[0].push(t):p[1].push(t))})),p.forEach((function(t,n){var a=f/14;t.length>a&&(t.sort((function(t,e){return e["..percent"]-t["..percent"]})),t.splice(a,t.length-a)),t.sort((function(t,e){return t.y-e.y})),function(t,e,n,a,o,s){var l,u,c,f=!0,h=a.start,p=a.end,d=Math.min(h.y,p.y),g=Math.abs(h.y-p.y),y=0,v=Number.MIN_VALUE,m=e.map((function(t){return t.y>y&&(y=t.y),t.y<v&&(v=t.y),{size:n,targets:[t.y-d]}}));for(v-=d,y-d>g&&(g=y-d);f;)for(m.forEach((function(t){var e=(Math.min.apply(v,t.targets)+Math.max.apply(v,t.targets))/2;t.pos=Math.min(Math.max(v,e-t.size/2),g-t.size)})),f=!1,c=m.length;c--;)if(c>0){var _=m[c-1],x=m[c];_.pos+_.size>x.pos&&(_.size+=x.size,_.targets=_.targets.concat(x.targets),_.pos+_.size>g&&(_.pos=g-_.size),m.splice(c,1),f=!0)}c=0,m.forEach((function(t){var r=d+n/2;t.targets.forEach((function(){e[c].y=t.pos+r,r+=n,c++}))}));var b={};try{for(var M=r.__values(t),C=M.next();!C.done;C=M.next()){var P=C.value;b[P.get("id")]=P}}catch(t){l={error:t}}finally{try{C&&!C.done&&(u=M.return)&&u.call(M)}finally{if(l)throw l.error}}e.forEach((function(t){var e=t.r*t.r,n=Math.pow(Math.abs(t.y-o.y),2);if(e<n)t.x=o.x;else{var r=Math.sqrt(e-n);t.x=s?o.x+r:o.x-r}var a=b[t.id];a.attr("x",t.x),a.attr("y",t.y);var l=(0,i.find)(a.getChildren(),(function(t){return"text"===t.get("type")}));l&&(l.attr("y",t.y),l.attr("x",t.x))}))}(e,t,14,h,c,n)}))}(0,i.each)(t,(function(t){if(t&&t.labelLine){var e=t.offset,n=t.angle,r=(0,a.polarToCartesian)(c.x,c.y,u,n),o=(0,a.polarToCartesian)(c.x,c.y,u+e/2,n),s=t.x+(0,i.get)(t,"offsetX",0),l=t.y+(0,i.get)(t,"offsetY",0),f={x:s-4*Math.cos(n),y:l-4*Math.sin(n)};(0,i.isObject)(t.labelLine)||(t.labelLine={}),t.labelLine.path=["M ".concat(r.x),"".concat(r.y," Q").concat(o.x),"".concat(o.y," ").concat(f.x),f.y].join(",")}}))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pieOuterLabelLayout=void 0;var r=n(0),i=n(1),a=n(13),o=n(226);e.pieOuterLabelLayout=function(t,e,n,s){var l,u,c=(0,i.filter)(t,(function(t){return!(0,i.isNil)(t)})),f=e[0]&&e[0].get("coordinate");if(f){var h=f.getCenter(),p=f.getRadius(),d={};try{for(var g=r.__values(e),y=g.next();!y.done;y=g.next()){var v=y.value;d[v.get("id")]=v}}catch(t){l={error:t}}finally{try{y&&!y.done&&(u=g.return)&&u.call(g)}finally{if(l)throw l.error}}var m=(0,i.get)(c[0],"labelHeight",14),_=(0,i.get)(c[0],"offset",0);if(!(_<=0)){var x=(0,i.groupBy)(c,(function(t){return t.x<h.x?"left":"right"})),b=f.start,M=f.end,C=Math.min(2*(p+_+m),f.getHeight()),P=C/2,S={minX:b.x,maxX:M.x,minY:h.y-P,maxY:h.y+P};(0,i.each)(x,(function(t,e){var n=Math.floor(C/m);t.length>n&&(t.sort((function(t,e){return e.percent-t.percent})),(0,i.each)(t,(function(t,e){e+1>n&&(d[t.id].set("visible",!1),t.invisible=!0)}))),(0,o.antiCollision)(t,m,S)})),(0,i.each)(x,(function(t,e){(0,i.each)(t,(function(t){var n="right"===e,r=d[t.id].getChildByIndex(0);if(r){var o=p+_,s=t.y-h.y,l=Math.pow(o,2),u=Math.pow(s,2),c=l-u>0?l-u:0,g=Math.sqrt(c),y=Math.abs(Math.cos(t.angle)*o);t.x=n?h.x+Math.max(g,y):h.x-Math.max(g,y)}r&&(r.attr("y",t.y),r.attr("x",t.x)),function(t,e){var n=e.getCenter(),r=e.getRadius();if(t&&t.labelLine){var o=t.angle,s=t.offset,l=(0,a.polarToCartesian)(n.x,n.y,r,o),u=t.x+(0,i.get)(t,"offsetX",0)*(Math.cos(o)>0?1:-1),c=t.y+(0,i.get)(t,"offsetY",0)*(Math.sin(o)>0?1:-1),f={x:u-4*Math.cos(o),y:c-4*Math.sin(o)},h=t.labelLine.smooth,p=[],d=f.x-n.x,g=f.y-n.y,y=Math.atan(g/d);if(d<0&&(y+=Math.PI),!1===h){(0,i.isObject)(t.labelLine)||(t.labelLine={});var v=0;(o<0&&o>-Math.PI/2||o>1.5*Math.PI)&&f.y>l.y&&(v=1),o>=0&&o<Math.PI/2&&f.y>l.y&&(v=1),o>=Math.PI/2&&o<Math.PI&&l.y>f.y&&(v=1),(o<-Math.PI/2||o>=Math.PI&&o<1.5*Math.PI)&&l.y>f.y&&(v=1);var m=s/2>4?4:Math.max(s/2-1,0),_=(0,a.polarToCartesian)(n.x,n.y,r+m,o),x=(0,a.polarToCartesian)(n.x,n.y,r+s/2,y);p.push("M ".concat(l.x," ").concat(l.y)),p.push("L ".concat(_.x," ").concat(_.y)),p.push("A ".concat(n.x," ").concat(n.y," 0 ").concat(0," ").concat(v," ").concat(x.x," ").concat(x.y)),p.push("L ".concat(f.x," ").concat(f.y))}else{_=(0,a.polarToCartesian)(n.x,n.y,r+(s/2>4?4:Math.max(s/2-1,0)),o);var b=l.x<n.x?1:-1;p.push("M ".concat(f.x," ").concat(f.y));var M=(l.y-n.y)/(l.x-n.x),C=(f.y-n.y)/(f.x-n.x);Math.abs(M-C)>Math.pow(Math.E,-16)&&p.push.apply(p,["C",f.x+4*b,f.y,2*_.x-l.x,2*_.y-l.y,l.x,l.y]),p.push("L ".concat(l.x," ").concat(l.y))}t.labelLine.path=p.join(" ")}}(t,f)}))}))}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pieSpiderLabelLayout=void 0;var r=n(0),i=n(1),a=n(13),o=n(226),s=n(54);e.pieSpiderLabelLayout=function(t,e,n,l){var u,c,f=e[0]&&e[0].get("coordinate");if(f){var h=f.getCenter(),p=f.getRadius(),d={};try{for(var g=r.__values(e),y=g.next();!y.done;y=g.next()){var v=y.value;d[v.get("id")]=v}}catch(t){u={error:t}}finally{try{y&&!y.done&&(c=g.return)&&c.call(g)}finally{if(u)throw u.error}}var m=(0,i.get)(t[0],"labelHeight",14),_=Math.max((0,i.get)(t[0],"offset",0),4);(0,i.each)(t,(function(t){if(t&&(0,i.get)(d,[t.id])){var e=t.x>h.x||t.x===h.x&&t.y>h.y,n=(0,i.isNil)(t.offsetX)?4:t.offsetX,r=(0,a.polarToCartesian)(h.x,h.y,p+4,t.angle),o=_+n;t.x=h.x+(e?1:-1)*(p+o),t.y=r.y}}));var x=f.start,b=f.end,M=(0,i.groupBy)(t,(function(t){return t.x<h.x?"left":"right"})),C=2*(p+_)+m;(0,i.each)(M,(function(t){var e=t.length*m;e>C&&(C=Math.min(e,Math.abs(x.y-b.y)))}));var P={minX:x.x,maxX:b.x,minY:h.y-C/2,maxY:h.y+C/2};(0,i.each)(M,(function(t,e){var n=C/m;t.length>n&&(t.sort((function(t,e){return e.percent-t.percent})),(0,i.each)(t,(function(t,e){e>n&&(d[t.id].set("visible",!1),t.invisible=!0)}))),(0,o.antiCollision)(t,m,P)}));var S=P.minY,O=P.maxY;(0,i.each)(M,(function(t,e){var n="right"===e;(0,i.each)(t,(function(t){var e=(0,i.get)(d,t&&[t.id]);if(e)if(t.y<S||t.y>O)e.set("visible",!1);else{var r=e.getChildByIndex(0),o=r.getCanvasBBox(),l=n?o.x:o.maxX,u=o.y+o.height/2;(0,s.translate)(r,t.x-l,t.y-u),t.labelLine&&function(t,e,n){var r,o=e.getCenter(),s=e.getRadius(),l={x:t.x-(n?4:-4),y:t.y},u=(0,a.polarToCartesian)(o.x,o.y,s+4,t.angle),c={x:l.x,y:l.y},f={x:u.x,y:u.y},h=(0,a.polarToCartesian)(o.x,o.y,s,t.angle);if(l.y!==u.y){var p=n?4:-4;c.y=l.y,t.angle<0&&t.angle>=-Math.PI/2&&(c.x=Math.max(u.x,l.x-p),l.y<u.y?f.y=c.y:(f.y=u.y,f.x=Math.max(f.x,c.x-p))),t.angle>0&&t.angle<Math.PI/2&&(c.x=Math.max(u.x,l.x-p),l.y>u.y?f.y=c.y:(f.y=u.y,f.x=Math.max(f.x,c.x-p))),t.angle>Math.PI/2&&(c.x=Math.min(u.x,l.x-p),l.y>u.y?f.y=c.y:(f.y=u.y,f.x=Math.min(f.x,c.x-p))),t.angle<-Math.PI/2&&(c.x=Math.min(u.x,l.x-p),l.y<u.y?f.y=c.y:(f.y=u.y,f.x=Math.min(f.x,c.x-p)))}r=["M ".concat(l.x,",").concat(l.y),"L ".concat(c.x,",").concat(c.y),"L ".concat(f.x,",").concat(f.y),"L ".concat(u.x,",").concat(u.y),"L ".concat(h.x,",").concat(h.y)].join(" "),t.labelLine=(0,i.deepMix)({},t.labelLine,{path:r})}(t,f,n)}}))}))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.limitInCanvas=void 0;var r=n(1),i=n(54);e.limitInCanvas=function(t,e,n,a){(0,r.each)(e,(function(t){var e=a.minX,n=a.minY,r=a.maxX,o=a.maxY,s=t.getCanvasBBox(),l=s.minX,u=s.minY,c=s.maxX,f=s.maxY,h=s.x,p=s.y,d=s.width,g=s.height,y=h,v=p;(l<e||c<e)&&(y=e),(u<n||f<n)&&(v=n),l>r?y=r-d:c>r&&(y-=c-r),u>o?v=o-g:f>o&&(v-=f-o),y===h&&v===p||(0,i.translate)(t,y-h,v-p)}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.limitInShape=void 0;var r=n(1);e.limitInShape=function(t,e,n,i){(0,r.each)(e,(function(t,e){var r=t.getCanvasBBox(),i=n[e].getBBox();(r.minX<i.minX||r.minY<i.minY||r.maxX>i.maxX||r.maxY>i.maxY)&&t.remove(!0)}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.overlap=e.fixedOverlap=void 0;var r=n(1),i=function(){function t(t){void 0===t&&(t={}),this.bitmap={};var e=t.xGap,n=void 0===e?1:e,r=t.yGap,i=void 0===r?8:r;this.xGap=n,this.yGap=i}return t.prototype.hasGap=function(t){for(var e=!0,n=this.bitmap,r=Math.round(t.minX),i=Math.round(t.maxX),a=Math.round(t.minY),o=Math.round(t.maxY),s=r;s<=i;s+=1)if(n[s]){if(s===r||s===i){for(var l=a;l<=o;l++)if(n[s][l]){e=!1;break}}else if(n[s][a]||n[s][o]){e=!1;break}}else n[s]={};return e},t.prototype.fillGap=function(t){for(var e=this.bitmap,n=Math.round(t.minX),r=Math.round(t.maxX),i=Math.round(t.minY),a=Math.round(t.maxY),o=n;o<=r;o+=1)e[o]||(e[o]={});for(o=n;o<=r;o+=this.xGap){for(var s=i;s<=a;s+=this.yGap)e[o][s]=!0;e[o][a]=!0}if(1!==this.yGap)for(o=i;o<=a;o+=1)e[n][o]=!0,e[r][o]=!0;if(1!==this.xGap)for(o=n;o<=r;o+=1)e[o][i]=!0,e[o][a]=!0},t.prototype.destroy=function(){this.bitmap={}},t}();function a(t,e,n,r){var i=t.getCanvasBBox(),a=i.width,o=i.height,s={x:e,y:n,textAlign:"center"};switch(r){case 0:s.y-=o+1,s.x+=1,s.textAlign="left";break;case 1:s.y-=o+1,s.x-=1,s.textAlign="right";break;case 2:s.y+=o+1,s.x-=1,s.textAlign="right";break;case 3:s.y+=o+1,s.x+=1,s.textAlign="left";break;case 5:s.y-=2*o+2;break;case 6:s.y+=2*o+2;break;case 7:s.x+=a+1,s.textAlign="left";break;case 8:s.x-=a+1,s.textAlign="right"}return t.attr(s),t.getCanvasBBox()}e.fixedOverlap=function(t,e,n,a){var o=new i;(0,r.each)(e,(function(t){(function(t,e,n){void 0===n&&(n=100);var r,i=t.attr(),a=i.x,o=i.y,s=t.getCanvasBBox(),l=Math.sqrt(s.width*s.width+s.height*s.height),u=1,c=0,f=0;if(e.hasGap(s))return e.fillGap(s),!0;for(var h,p,d=!1,g=0,y={};Math.min(Math.abs(c),Math.abs(f))<l&&g<n;)if(h=u+=-1,p=void 0,f=~~(r=[(p=.1*h)*Math.cos(p),p*Math.sin(p)])[1],((c=~~r[0])||f)&&!y["".concat(c,"-").concat(f)]&&(t.attr({x:a+c,y:o+f}),c+f<0&&t.attr("textAlign","right"),g++,e.hasGap(t.getCanvasBBox()))){e.fillGap(t.getCanvasBBox()),d=!0,y["".concat(c,"-").concat(f)]=!0;break}return d})(t.find((function(t){return"text"===t.get("type")})),o)||t.remove(!0)})),o.destroy()},e.overlap=function(t,e,n,o){var s=new i;(0,r.each)(e,(function(t){for(var e=t.find((function(t){return"text"===t.get("type")})),n=e.attr(),r=n.x,i=n.y,o=!1,l=0;l<=8;l++){var u=a(e,r,i,l);if(s.hasGap(u)){s.fillGap(u),o=!0;break}}o||t.remove(!0)})),s.destroy()}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hideOverlap=void 0;var r=n(0),i=n(1),a=n(570),o=n(53),s=n(571),l=n(572),u=function(t){for(var e=t.slice(),n=0;n<e.length;n++){var r=e[n];if(r.visible)for(var i=n+1;i<e.length;i++){var o=e[i];r!==o&&o.visible&&(0,a.intersect)(r,o)&&(o.visible=!1)}}return e},c=new Map,f=(0,s.createWorker)(l.code);e.hideOverlap=function(t,e,n,a){return new Promise((function(n){var a=e.map((function(e,n){return r.__assign(r.__assign({},(0,o.getLabelBackgroundInfo)(e,t[n],(0,i.get)(t[n],"background.padding"))),{visible:!0})})),s=JSON.stringify(a),l=function(t){return c.set(s,t),(0,i.each)(t,(function(t,n){var r=t.visible,i=e[n];r?null==i||i.show():null==i||i.hide()})),n(t)};if(c.get(s))l(c.get(s));else if(f)try{f.postMessage(JSON.stringify({type:"hide-overlap",items:a})),f.onmessage=function(t){return l(Array.isArray(t.data)?t.data:[])},f.onmessageerror=function(t){console.warn("[AntV G2] Web worker is not available"),l(u(a))}}catch(t){console.error(t),l(u(a))}else l(u(a))}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.intersect=e.isIntersectRect=void 0;var r=n(0);function i(t){if(t.length>4)return[];var e=function(t,e){return[e.x-t.x,e.y-t.y]};return[e(t[0],t[1]),e(t[1],t[2])]}function a(t,e,n){void 0===e&&(e=0),void 0===n&&(n={x:0,y:0});var r=t.x,i=t.y;return{x:(r-n.x)*Math.cos(-e)+(i-n.y)*Math.sin(-e)+n.x,y:(n.x-r)*Math.sin(-e)+(i-n.y)*Math.cos(-e)+n.y}}function o(t){var e=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],n=t.rotation;return n?[a(e[0],n,e[0]),a(e[1],n,e[0]),a(e[2],n,e[0]),a(e[3],n,e[0])]:e}function s(t,e){if(t.length>4)return{min:0,max:0};var n=[];return t.forEach((function(t){var r,i;n.push((r=[t.x,t.y],i=e,(r[0]||0)*(i[0]||0)+(r[1]||0)*(i[1]||0)+(r[2]||0)*(i[2]||0)))})),{min:Math.min.apply(Math,r.__spreadArray([],r.__read(n),!1)),max:Math.max.apply(Math,r.__spreadArray([],r.__read(n),!1))}}function l(t,e){return t.max>e.min&&t.min<e.max}function u(t){return["x","y","width","height"].every((function(e){return"number"==typeof(n=t[e])&&!Number.isNaN(n)&&n!==1/0&&n!==-1/0;var n}))}function c(t,e,n){return void 0===n&&(n=0),!(e.x>t.x+t.width+n||e.x+e.width<t.x-n||e.y>t.y+t.height+n||e.y+e.height<t.y-n)}e.isIntersectRect=c,e.intersect=function(t,e,n){if(void 0===n&&(n=0),!u(t)||!u(e))return!1;if(!t.rotation&&!e.rotation)return c(t,e,n);for(var r=o(t),a=o(e),f=i(r).concat(i(a)),h=0;h<f.length;h++){var p=f[h];if(!l(s(r,p),s(a,p)))return!1}return!0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createWorker=void 0,e.createWorker=function(t){var e;try{e=new Blob([t.toString()],{type:"application/javascript"})}catch(n){(e=new window.BlobBuilder).append(t.toString()),e=e.getBlob()}return new Worker(URL.createObjectURL(e))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.code=void 0;var r="\n self.onmessage = ".concat(function(t){var e=function(){function t(t){if(t.length>4)return[];var e=function(t,e){return[e.x-t.x,e.y-t.y]};return[e(t[0],t[1]),e(t[1],t[2])]}function e(t,e,n){void 0===e&&(e=0),void 0===n&&(n={x:0,y:0});var r=t.x,i=t.y;return{x:(r-n.x)*Math.cos(-e)+(i-n.y)*Math.sin(-e)+n.x,y:(n.x-r)*Math.sin(-e)+(i-n.y)*Math.cos(-e)+n.y}}function n(t){var n=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],r=t.rotation;return r?[e(n[0],r,n[0]),e(n[1],r,n[0]),e(n[2],r,n[0]),e(n[3],r,n[0])]:n}function r(t,e){if(t.length>4)return{min:0,max:0};var n=[];return t.forEach((function(t){var r,i;n.push((r=[t.x,t.y],i=e,(r[0]||0)*(i[0]||0)+(r[1]||0)*(i[1]||0)+(r[2]||0)*(i[2]||0)))})),{min:Math.min.apply(null,n),max:Math.max.apply(null,n)}}function i(t,e){return t.max>e.min&&t.min<e.max}function a(t){return["x","y","width","height"].every((function(e){return"number"==typeof(n=t[e])&&!Number.isNaN(n)&&n!==1/0&&n!==-1/0;var n}))}return{intersect:function(e,o,s){if(void 0===s&&(s=0),!a(e)||!a(o))return!1;if(!e.rotation&&!o.rotation)return function(t,e,n){return void 0===n&&(n=0),!(e.x>t.x+t.width+n||e.x+e.width<t.x-n||e.y>t.y+t.height+n||e.y+e.height<t.y-n)}(e,o,s);for(var l=n(e),u=n(o),c=t(l).concat(t(u)),f=0;f<c.length;f++){var h=c[f];if(!i(r(l,h),r(u,h)))return!1}return!0}}}().intersect;var n={"hide-overlap":function(t){for(var n=t.slice(),r=0;r<n.length;r++){var i=n[r];if(i.visible)for(var a=r+1;a<n.length;a++){var o=n[a];i!==o&&o.visible&&e(i,o)&&(o.visible=!1)}}return n}};try{var r=JSON.parse(t.data);if(!r||!r.type||!n[r.type])return;var i=r.type,a=r.items,o=n[i](a);self.postMessage(o)}catch(t){throw t}}.toString(),"\n");e.code=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adjustColor=void 0;var r=n(29),i=n(574);e.adjustColor=function(t,e,n){if(0!==n.length){var a=n[0].get("element").geometry.theme,o=a.labels||{},s=o.fillColorLight,l=o.fillColorDark;n.forEach((function(t,n){var o=e[n].find((function(t){return"text"===t.get("type")})),u=r.BBox.fromObject(t.getBBox()),c=r.BBox.fromObject(o.getCanvasBBox()),f=!u.contains(c),h=t.attr("fill"),p=(0,i.isContrastColorWhite)(h);f?o.attr(a.overflowLabels.style):p?s&&o.attr("fill",s):l&&o.attr("fill",l)}))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isContrastColorWhite=void 0;var r=n(0),i=r.__importDefault(n(70)),a={"#5B8FF9":!0};e.isContrastColorWhite=function(t){var e=i.default.toRGB(t).toUpperCase();if(a[e])return a[e];var n=r.__read(i.default.rgb2arr(e),3);return(299*n[0]+587*n[1]+114*n[2])/1e3<128}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.intervalAdjustPosition=void 0;var r=n(29),i=n(53);function a(t,e,n){return!!t.getAdjust("stack")||e.every((function(e,a){var o=n[a];return function(t,e,n){var a=t.coordinate,o=(0,i.findLabelTextShape)(e),s=r.BBox.fromObject(o.getCanvasBBox()),l=r.BBox.fromObject(n.getBBox());return a.isTransposed?l.height>=s.height:l.width>=s.width}(t,e,o)}))}e.intervalAdjustPosition=function(t,e,n){var o;if(0!==n.length){var s=null===(o=n[0])||void 0===o?void 0:o.get("element"),l=null==s?void 0:s.geometry;if(l&&"interval"===l.type)a(l,e,n)&&n.forEach((function(t,n){var a=e[n];!function(t,e,n){var a=t.coordinate,o=r.BBox.fromObject(n.getBBox()),s=(0,i.findLabelTextShape)(e);a.isTransposed?s.attr({x:o.minX+o.width/2,textAlign:"center"}):s.attr({y:o.minY+o.height/2,textBaseline:"middle"})}(l,a,t)}))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.intervalHideOverlap=void 0;var r=n(0),i=n(1),a=n(53);e.intervalHideOverlap=function(t,e,n){var o;if(0!==n.length){var s=null===(o=n[0])||void 0===o?void 0:o.get("element"),l=null==s?void 0:s.geometry;if(l&&"interval"===l.type){var u,c=function(t){var e=[],n=Math.max(Math.floor(t.length/500),1);return(0,i.each)(t,(function(t,r){r%n==0?e.push(t):t.set("visible",!1)})),e}(e),f=r.__read(l.getXYFields(),1)[0],h=[],p=[],d=(0,i.groupBy)(c,(function(t){return t.get("data")[f]})),g=(0,i.uniq)((0,i.map)(c,(function(t){return t.get("data")[f]})));c.forEach((function(t){t.set("visible",!0)}));var y=function(t){t&&(t.length&&p.push(t.pop()),p.push.apply(p,r.__spreadArray([],r.__read(t),!1)))};for((0,i.size)(g)>0&&(u=g.shift(),y(d[u])),(0,i.size)(g)>0&&(u=g.pop(),y(d[u])),(0,i.each)(g.reverse(),(function(t){y(d[t])}));p.length>0;){var v=p.shift();v.get("visible")&&((0,a.checkShapeOverlap)(v,h)?v.set("visible",!1):h.push(v))}}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pointAdjustPosition=void 0;var r=n(0),i=n(1),a=n(53);function o(t,e,n){return t.some((function(t){return n(t,e)}))}function s(t,e){return o(t,e,(function(t,e){var n,r,i,o=(0,a.findLabelTextShape)(t),s=(0,a.findLabelTextShape)(e);return n=o.getCanvasBBox(),r=s.getCanvasBBox(),void 0===(i=2)&&(i=0),Math.max(0,Math.min(n.x+n.width+i,r.x+r.width+i)-Math.max(n.x-i,r.x-i))*Math.max(0,Math.min(n.y+n.height+i,r.y+r.height+i)-Math.max(n.y-i,r.y-i))>0}))}e.pointAdjustPosition=function(t,e,n,l,u){var c,f;if(0!==n.length){var h=null===(c=n[0])||void 0===c?void 0:c.get("element"),p=null==h?void 0:h.geometry;if(p&&"point"===p.type){var d=r.__read(p.getXYFields(),2),g=d[0],y=d[1],v=(0,i.groupBy)(e,(function(t){return t.get("data")[g]})),m=[],_=u&&u.offset||(null===(f=t[0])||void 0===f?void 0:f.offset)||12;(0,i.map)((0,i.keys)(v).reverse(),(function(t){for(var e=function(t,e){var n=t.getXYFields()[1],i=[],a=e.sort((function(t,e){return t.get("data")[n]-t.get("data")[n]}));return a.length>0&&i.push(a.shift()),a.length>0&&i.push(a.pop()),i.push.apply(i,r.__spreadArray([],r.__read(a),!1)),i}(p,v[t]);e.length;){var n=e.shift(),i=(0,a.findLabelTextShape)(n);if(o(m,n,(function(t,e){return t.get("data")[g]===e.get("data")[g]&&t.get("data")[y]===e.get("data")[y]})))i.set("visible",!1);else{var l=!1;s(m,n)&&(i.attr("y",i.attr("y")+2*_),l=s(m,n)),l?i.set("visible",!1):m.push(n)}}}))}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pathAdjustPosition=void 0;var r=n(0),i=n(1),a=n(53);function o(t,e,n){return t.some((function(t){return n(t,e)}))}function s(t,e){return o(t,e,(function(t,e){var n,r,i,o=(0,a.findLabelTextShape)(t),s=(0,a.findLabelTextShape)(e);return n=o.getCanvasBBox(),r=s.getCanvasBBox(),void 0===(i=2)&&(i=0),Math.max(0,Math.min(n.x+n.width+i,r.x+r.width+i)-Math.max(n.x-i,r.x-i))*Math.max(0,Math.min(n.y+n.height+i,r.y+r.height+i)-Math.max(n.y-i,r.y-i))>0}))}e.pathAdjustPosition=function(t,e,n,l,u){var c,f;if(0!==n.length){var h=null===(c=n[0])||void 0===c?void 0:c.get("element"),p=null==h?void 0:h.geometry;if(p&&!(["path","line","area"].indexOf(p.type)<0)){var d=r.__read(p.getXYFields(),2),g=d[0],y=d[1],v=(0,i.groupBy)(e,(function(t){return t.get("data")[g]})),m=[],_=u&&u.offset||(null===(f=t[0])||void 0===f?void 0:f.offset)||12;(0,i.map)((0,i.keys)(v).reverse(),(function(t){for(var e=function(t,e){var n=t.getXYFields()[1],i=[],a=e.sort((function(t,e){return t.get("data")[n]-t.get("data")[n]}));return a.length>0&&i.push(a.shift()),a.length>0&&i.push(a.pop()),i.push.apply(i,r.__spreadArray([],r.__read(a),!1)),i}(p,v[t]);e.length;){var n=e.shift(),i=(0,a.findLabelTextShape)(n);if(o(m,n,(function(t,e){return t.get("data")[g]===e.get("data")[g]&&t.get("data")[y]===e.get("data")[y]})))i.set("visible",!1);else{var l=!1;s(m,n)&&(i.attr("y",i.attr("y")+2*_),l=s(m,n)),l?i.set("visible",!1):m.push(n)}}}))}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.limitInPlot=void 0;var r=n(1),i=n(14),a=n(580),o=n(54);e.limitInPlot=function(t,e,n,s,l){if(!(e.length<=0)){var u=(null==l?void 0:l.direction)||["top","right","bottom","left"],c=(null==l?void 0:l.action)||"translate",f=(null==l?void 0:l.margin)||0,h=e[0].get("coordinate");if(h){var p=(0,i.getCoordinateBBox)(h,f),d=p.minX,g=p.minY,y=p.maxX,v=p.maxY;(0,r.each)(e,(function(t){var e=t.getCanvasBBox(),n=e.minX,i=e.minY,s=e.maxX,l=e.maxY,f=e.x,h=e.y,p=e.width,m=e.height,_=f,x=h;if(u.indexOf("left")>=0&&(n<d||s<d)&&(_=d),u.indexOf("top")>=0&&(i<g||l<g)&&(x=g),u.indexOf("right")>=0&&(n>y?_=y-p:s>y&&(_-=s-y)),u.indexOf("bottom")>=0&&(i>v?x=v-m:l>v&&(x-=l-v)),_!==f||x!==h){var b=_-f;if("translate"===c)(0,o.translate)(t,b,x-h);else if("ellipsis"===c){t.findAll((function(t){return"text"===t.get("type")})).forEach((function(t){var e=(0,r.pick)(t.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),n=t.getCanvasBBox(),i=(0,a.getEllipsisText)(t.attr("text"),n.width-Math.abs(b),e);t.attr("text",i)}))}else t.hide()}}))}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getEllipsisText=e.measureTextWidth=void 0;var r=n(0),i=n(1),a=n(581);e.measureTextWidth=(0,i.memoize)((function(t,e){void 0===e&&(e={});var n=e.fontSize,r=e.fontFamily,o=e.fontWeight,s=e.fontStyle,l=e.fontVariant,u=(0,a.getCanvasContext)();return u.font=[s,l,o,"".concat(n,"px"),r].join(" "),u.measureText((0,i.isString)(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),r.__spreadArray([t],r.__read((0,i.values)(e)),!1).join("")}));e.getEllipsisText=function(t,n,r){var a,o=(0,e.measureTextWidth)("...",r);a=(0,i.isString)(t)?t:(0,i.toString)(t);var s,l,u=n,c=[];if((0,e.measureTextWidth)(t,r)<=n)return t;for(;s=a.substr(0,16),!((l=(0,e.measureTextWidth)(s,r))+o>u&&l>u);)if(c.push(s),u-=l,!(a=a.substr(16)))return c.join("");for(;s=a.substr(0,1),!((l=(0,e.measureTextWidth)(s,r))+o>u);)if(c.push(s),u-=l,!(a=a.substr(1)))return c.join("");return"".concat(c.join(""),"...")}},function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.getCanvasContext=void 0,e.getCanvasContext=function(){return r||(r=document.createElement("canvas").getContext("2d")),r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fadeOut=e.fadeIn=void 0;var r=n(1);e.fadeIn=function(t,e,n){var i={fillOpacity:(0,r.isNil)(t.attr("fillOpacity"))?1:t.attr("fillOpacity"),strokeOpacity:(0,r.isNil)(t.attr("strokeOpacity"))?1:t.attr("strokeOpacity"),opacity:(0,r.isNil)(t.attr("opacity"))?1:t.attr("opacity")};t.attr({fillOpacity:0,strokeOpacity:0,opacity:0}),t.animate(i,e)},e.fadeOut=function(t,e,n){var r=e.easing,i=e.duration,a=e.delay;t.animate({fillOpacity:0,strokeOpacity:0,opacity:0},i,r,(function(){t.remove(!0)}),a)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.growInXY=e.growInY=e.growInX=void 0;var r=n(584);e.growInX=function(t,e,n){var i=n.coordinate,a=n.minYPoint;(0,r.doScaleAnimate)(t,e,i,a,"x")},e.growInY=function(t,e,n){var i=n.coordinate,a=n.minYPoint;(0,r.doScaleAnimate)(t,e,i,a,"y")},e.growInXY=function(t,e,n){var i=n.coordinate,a=n.minYPoint;(0,r.doScaleAnimate)(t,e,i,a,"xy")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.doScaleAnimate=e.transformShape=void 0;var r=n(0),i=n(8);function a(t,e,n){var a,o=r.__read(e,2),s=o[0],l=o[1];return t.applyToMatrix([s,l,1]),"x"===n?(t.setMatrix(i.ext.transform(t.getMatrix(),[["t",-s,-l],["s",.01,1],["t",s,l]])),a=i.ext.transform(t.getMatrix(),[["t",-s,-l],["s",100,1],["t",s,l]])):"y"===n?(t.setMatrix(i.ext.transform(t.getMatrix(),[["t",-s,-l],["s",1,.01],["t",s,l]])),a=i.ext.transform(t.getMatrix(),[["t",-s,-l],["s",1,100],["t",s,l]])):"xy"===n&&(t.setMatrix(i.ext.transform(t.getMatrix(),[["t",-s,-l],["s",.01,.01],["t",s,l]])),a=i.ext.transform(t.getMatrix(),[["t",-s,-l],["s",100,100],["t",s,l]])),a}e.transformShape=a,e.doScaleAnimate=function(t,e,n,r,i){var o,s,l=n.start,u=n.end,c=n.getWidth(),f=n.getHeight();"y"===i?(o=l.x+c/2,s=r.y<l.y?r.y:l.y):"x"===i?(o=r.x>l.x?r.x:l.x,s=l.y+f/2):"xy"===i&&(n.isPolar?(o=n.getCenter().x,s=n.getCenter().y):(o=(l.x+u.x)/2,s=(l.y+u.y)/2));var h=a(t,[o,s],i);t.animate({matrix:h},e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pathIn=void 0,e.pathIn=function(t,e,n){var r=t.getTotalLength();t.attr("lineDash",[r]),t.animate((function(t){return{lineDashOffset:(1-t)*r}}),e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.positionUpdate=void 0,e.positionUpdate=function(t,e,n){var r=n.toAttrs,i=r.x,a=r.y;delete r.x,delete r.y,t.attr(r),t.animate({x:i,y:a},e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.scaleInY=e.scaleInX=void 0;var r=n(8);e.scaleInX=function(t,e,n){var i=t.getBBox(),a=t.get("origin").mappingData.points,o=a[0].y-a[1].y>0?i.maxX:i.minX,s=(i.minY+i.maxY)/2;t.applyToMatrix([o,s,1]);var l=r.ext.transform(t.getMatrix(),[["t",-o,-s],["s",.01,1],["t",o,s]]);t.setMatrix(l),t.animate({matrix:r.ext.transform(t.getMatrix(),[["t",-o,-s],["s",100,1],["t",o,s]])},e)},e.scaleInY=function(t,e,n){var i=t.getBBox(),a=t.get("origin").mappingData,o=(i.minX+i.maxX)/2,s=a.points,l=s[0].y-s[1].y<=0?i.maxY:i.minY;t.applyToMatrix([o,l,1]);var u=r.ext.transform(t.getMatrix(),[["t",-o,-l],["s",1,.01],["t",o,l]]);t.setMatrix(u),t.animate({matrix:r.ext.transform(t.getMatrix(),[["t",-o,-l],["s",1,100],["t",o,l]])},e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sectorPathUpdate=void 0;var r=n(0),i=n(217),a=n(1),o=n(13);function s(t,e){var n,o=(0,i.getArcParams)(t,e),s=o.startAngle,l=o.endAngle;return!(0,a.isNumberEqual)(s,.5*-Math.PI)&&s<.5*-Math.PI&&(s+=2*Math.PI),!(0,a.isNumberEqual)(l,.5*-Math.PI)&&l<.5*-Math.PI&&(l+=2*Math.PI),0===e[5]&&(s=(n=r.__read([l,s],2))[0],l=n[1]),(0,a.isNumberEqual)(s,1.5*Math.PI)&&(s=-.5*Math.PI),(0,a.isNumberEqual)(l,-.5*Math.PI)&&(l=1.5*Math.PI),{startAngle:s,endAngle:l}}function l(t){var e;return"M"===t[0]||"L"===t[0]?e=[t[1],t[2]]:"a"!==t[0]&&"A"!==t[0]&&"C"!==t[0]||(e=[t[t.length-2],t[t.length-1]]),e}function u(t){var e,n,i,o=t.filter((function(t){return"A"===t[0]||"a"===t[0]}));if(0===o.length)return{startAngle:0,endAngle:0,radius:0,innerRadius:0};var u=o[0],c=o.length>1?o[1]:o[0],f=t.indexOf(u),h=t.indexOf(c),p=l(t[f-1]),d=l(t[h-1]),g=s(p,u),y=g.startAngle,v=g.endAngle,m=s(d,c),_=m.startAngle,x=m.endAngle;(0,a.isNumberEqual)(y,_)&&(0,a.isNumberEqual)(v,x)?(n=y,i=v):(n=Math.min(y,_),i=Math.max(v,x));var b=u[1],M=o[o.length-1][1];return b<M?(b=(e=r.__read([M,b],2))[0],M=e[1]):b===M&&(M=0),{startAngle:n,endAngle:i,radius:b,innerRadius:M}}e.sectorPathUpdate=function(t,e,n){var i=n.toAttrs,s=n.coordinate,l=i.path||[],c=l.map((function(t){return t[0]}));if(!(l.length<1)){var f=u(l),h=f.startAngle,p=f.endAngle,d=f.radius,g=f.innerRadius,y=u(t.attr("path")),v=y.startAngle,m=y.endAngle,_=s.getCenter(),x=h-v,b=p-m;0!==x||0!==b?t.animate((function(t){var e=v+t*x,n=m+t*b;return r.__assign(r.__assign({},i),{path:(0,a.isEqual)(c,["M","A","A","Z"])?(0,o.getArcPath)(_.x,_.y,d,e,n):(0,o.getSectorPath)(_.x,_.y,d,e,n,g)})}),r.__assign(r.__assign({},e),{callback:function(){t.attr("path",l)}})):t.attr("path",l)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.waveIn=void 0;var r=n(0),i=n(14);e.waveIn=function(t,e,n){var a=(0,i.getCoordinateClipCfg)(n.coordinate,20),o=a.type,s=a.startState,l=a.endState,u=t.setClip({type:o,attrs:s});u.animate(l,r.__assign(r.__assign({},e),{callback:function(){t&&!t.get("destroyed")&&t.set("clipShape",null),u.remove(!0)}}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.zoomOut=e.zoomIn=void 0;var r=n(0),i=n(8),a=n(1);function o(t,e,n){if(t.isGroup())(0,a.each)(t.getChildren(),(function(t){o(t,e,n)}));else{var s=t.getBBox(),l=(s.minX+s.maxX)/2,u=(s.minY+s.maxY)/2;if(t.applyToMatrix([l,u,1]),"zoomIn"===n){var c=i.ext.transform(t.getMatrix(),[["t",-l,-u],["s",.01,.01],["t",l,u]]);t.setMatrix(c),t.animate({matrix:i.ext.transform(t.getMatrix(),[["t",-l,-u],["s",100,100],["t",l,u]])},e)}else t.animate({matrix:i.ext.transform(t.getMatrix(),[["t",-l,-u],["s",.01,.01],["t",l,u]])},r.__assign(r.__assign({},e),{callback:function(){t.remove(!0)}}))}}e.zoomIn=function(t,e,n){o(t,e,"zoomIn")},e.zoomOut=function(t,e,n){o(t,e,"zoomOut")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(2),o=n(55),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getDefaultCfg=function(){return(0,i.deepMix)({},t.prototype.getDefaultCfg.call(this),{type:"circle",showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this)})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.getRegion=function(t,e){var n=2*Math.PI/t,r=-1*Math.PI/2+n*e,i=.5/(1+1/Math.sin(n/2)),a=(0,o.getAnglePoint)({x:.5,y:.5},.5-i,r),s=5*Math.PI/4,l=1*Math.PI/4;return{start:(0,o.getAnglePoint)(a,i,s),end:(0,o.getAnglePoint)(a,i,l)}},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.generateFacets=function(t){var e=this,n=this.cfg,a=n.fields,o=n.type,s=r.__read(a,1)[0];if(!s)throw new Error("No `fields` specified!");var l=this.getFieldValues(t,s),u=l.length,c=[];return l.forEach((function(n,r){var a=[{field:s,value:n,values:l}],f=(0,i.filter)(t,e.getFacetDataFilter(a)),h={type:o,data:f,region:e.getRegion(u,r),columnValue:n,columnField:s,columnIndex:r,columnValuesLength:u,rowValue:null,rowField:null,rowIndex:0,rowValuesLength:1};c.push(h)})),c},e.prototype.getXAxisOption=function(t,e,n,r){return n},e.prototype.getYAxisOption=function(t,e,n,r){return n},e.prototype.renderTitle=function(){var t=this;(0,i.each)(this.facets,(function(e){var n=e.columnValue,r=e.view,s=(0,i.get)(t.cfg.title,"formatter"),l=(0,i.deepMix)({position:["50%","0%"],content:s?s(n):n},(0,o.getFactTitleConfig)(a.DIRECTION.TOP),t.cfg.title);r.annotation().text(l)}))},e}(n(37).Facet);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(2),o=n(55),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getDefaultCfg=function(){return(0,i.deepMix)({},t.prototype.getDefaultCfg.call(this),{type:"list",cols:null,showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this)})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.generateFacets=function(t){var e=this,n=this.cfg.fields,a=this.cfg.cols,o=r.__read(n,1)[0];if(!o)throw new Error("No `fields` specified!");var s=this.getFieldValues(t,o),l=s.length;a=a||l;var u=this.getPageCount(l,a),c=[];return s.forEach((function(n,r){var f=e.getRowCol(r,a),h=f.row,p=f.col,d=[{field:o,value:n,values:s}],g=(0,i.filter)(t,e.getFacetDataFilter(d)),y={type:e.cfg.type,data:g,region:e.getRegion(u,a,p,h),columnValue:n,rowValue:n,columnField:o,rowField:null,columnIndex:p,rowIndex:h,columnValuesLength:a,rowValuesLength:u,total:l};c.push(y)})),c},e.prototype.getXAxisOption=function(t,e,n,i){return i.rowIndex!==i.rowValuesLength-1&&i.columnValuesLength*i.rowIndex+i.columnIndex+1+i.columnValuesLength<=i.total?r.__assign(r.__assign({},n),{label:null,title:null}):n},e.prototype.getYAxisOption=function(t,e,n,i){return 0!==i.columnIndex?r.__assign(r.__assign({},n),{title:null,label:null}):n},e.prototype.renderTitle=function(){var t=this;(0,i.each)(this.facets,(function(e){var n=e.columnValue,r=e.view,s=(0,i.get)(t.cfg.title,"formatter"),l=(0,i.deepMix)({position:["50%","0%"],content:s?s(n):n},(0,o.getFactTitleConfig)(a.DIRECTION.TOP),t.cfg.title);r.annotation().text(l)}))},e.prototype.getPageCount=function(t,e){return Math.floor((t+e-1)/e)},e.prototype.getRowCol=function(t,e){return{row:Math.floor(t/e),col:t%e}},e}(n(37).Facet);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(2),o=n(55),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getDefaultCfg=function(){return(0,i.deepMix)({},t.prototype.getDefaultCfg.call(this),{type:"matrix",showTitle:!1,columnTitle:r.__assign({},t.prototype.getDefaultTitleCfg.call(this)),rowTitle:r.__assign({},t.prototype.getDefaultTitleCfg.call(this))})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.generateFacets=function(t){for(var e=this.cfg,n=e.fields,r=e.type,i=n.length,a=i,o=[],s=0;s<a;s++)for(var l=n[s],u=0;u<i;u++){var c=n[u],f={type:r,data:t,region:this.getRegion(i,a,s,u),columnValue:l,rowValue:c,columnField:l,rowField:c,columnIndex:s,rowIndex:u,columnValuesLength:a,rowValuesLength:i};o.push(f)}return o},e.prototype.getXAxisOption=function(t,e,n,i){return i.rowIndex!==i.rowValuesLength-1?r.__assign(r.__assign({},n),{label:null,title:null}):n},e.prototype.getYAxisOption=function(t,e,n,i){return 0!==i.columnIndex?r.__assign(r.__assign({},n),{title:null,label:null}):n},e.prototype.renderTitle=function(){var t=this;(0,i.each)(this.facets,(function(e,n){var r=e.columnIndex,s=e.rowIndex,l=e.columnValuesLength,u=(e.rowValuesLength,e.columnValue),c=e.rowValue,f=e.view;if(0===s){var h=(0,i.get)(t.cfg.columnTitle,"formatter"),p=(0,i.deepMix)({position:["50%","0%"],content:h?h(u):u},(0,o.getFactTitleConfig)(a.DIRECTION.TOP),t.cfg.columnTitle);f.annotation().text(p)}if(r===l-1){h=(0,i.get)(t.cfg.rowTitle,"formatter"),p=(0,i.deepMix)({position:["100%","50%"],content:h?h(c):c},(0,o.getFactTitleConfig)(a.DIRECTION.RIGHT),t.cfg.rowTitle);f.annotation().text(p)}}))},e}(n(37).Facet);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(2),o=n(55),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getDefaultCfg=function(){return(0,i.deepMix)({},t.prototype.getDefaultCfg.call(this),{type:"mirror",showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this),transpose:!1})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.beforeEachView=function(t,e){this.cfg.transpose?e.columnIndex%2==0?t.coordinate().transpose().reflect("x"):t.coordinate().transpose():e.rowIndex%2!=0&&t.coordinate().reflect("y")},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.generateFacets=function(t){var e,n,a=this,o=r.__read(this.cfg.fields,1)[0],s=[],l=1,u=1,c=[""],f=[""];return this.cfg.transpose?(e=o,c=this.getFieldValues(t,e).slice(0,2),l=c.length):(n=o,f=this.getFieldValues(t,n).slice(0,2),u=f.length),c.forEach((function(r,o){f.forEach((function(h,p){var d=[{field:e,value:r,values:c},{field:n,value:h,values:f}],g=(0,i.filter)(t,a.getFacetDataFilter(d)),y={type:a.cfg.type,data:g,region:a.getRegion(u,l,o,p),columnValue:r,rowValue:h,columnField:e,rowField:n,columnIndex:o,rowIndex:p,columnValuesLength:l,rowValuesLength:u};s.push(y)}))})),s},e.prototype.getXAxisOption=function(t,e,n,i){return 1===i.columnIndex||1===i.rowIndex?r.__assign(r.__assign({},n),{label:null,title:null}):n},e.prototype.getYAxisOption=function(t,e,n,r){return n},e.prototype.renderTitle=function(){var t=this;(0,i.each)(this.facets,(function(e,n){var r=e.columnValue,s=e.rowValue,l=e.view,u=(0,i.get)(t.cfg.title,"formatter");if(t.cfg.transpose){var c=(0,i.deepMix)({position:["50%","0%"],content:u?u(r):r},(0,o.getFactTitleConfig)(a.DIRECTION.TOP),t.cfg.title);l.annotation().text(c)}else{c=(0,i.deepMix)({position:["100%","50%"],content:u?u(s):s},(0,o.getFactTitleConfig)(a.DIRECTION.RIGHT),t.cfg.title);l.annotation().text(c)}}))},e}(n(37).Facet);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(2),o=n(55),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.getDefaultCfg=function(){return(0,i.deepMix)({},t.prototype.getDefaultCfg.call(this),{type:"rect",columnTitle:r.__assign({},t.prototype.getDefaultTitleCfg.call(this)),rowTitle:r.__assign({},t.prototype.getDefaultTitleCfg.call(this))})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.generateFacets=function(t){var e=this,n=r.__read(this.cfg.fields,2),a=n[0],o=n[1],s=[],l=1,u=1,c=[""],f=[""];return a&&(c=this.getFieldValues(t,a),l=c.length),o&&(f=this.getFieldValues(t,o),u=f.length),c.forEach((function(n,r){f.forEach((function(h,p){var d=[{field:a,value:n,values:c},{field:o,value:h,values:f}],g=(0,i.filter)(t,e.getFacetDataFilter(d)),y={type:e.cfg.type,data:g,region:e.getRegion(u,l,r,p),columnValue:n,rowValue:h,columnField:a,rowField:o,columnIndex:r,rowIndex:p,columnValuesLength:l,rowValuesLength:u};s.push(y)}))})),s},e.prototype.renderTitle=function(){var t=this;(0,i.each)(this.facets,(function(e,n){var r=e.columnIndex,s=e.rowIndex,l=e.columnValuesLength,u=e.columnValue,c=e.rowValue,f=e.view;if(0===s){var h=(0,i.get)(t.cfg.columnTitle,"formatter"),p=(0,i.deepMix)({position:["50%","0%"],content:h?h(u):u},(0,o.getFactTitleConfig)(a.DIRECTION.TOP),t.cfg.columnTitle);f.annotation().text(p)}if(r===l-1){h=(0,i.get)(t.cfg.rowTitle,"formatter"),p=(0,i.deepMix)({position:["100%","50%"],content:h?h(c):c},(0,o.getFactTitleConfig)(a.DIRECTION.RIGHT),t.cfg.rowTitle);f.annotation().text(p)}}))},e.prototype.getXAxisOption=function(t,e,n,i){return i.rowIndex!==i.rowValuesLength-1?r.__assign(r.__assign({},n),{title:null,label:null}):i.columnIndex!==Math.floor((i.columnValuesLength-1)/2)?r.__assign(r.__assign({},n),{title:null}):n},e.prototype.getYAxisOption=function(t,e,n,i){return 0!==i.columnIndex?r.__assign(r.__assign({},n),{title:null,label:null}):i.rowIndex!==Math.floor((i.rowValuesLength-1)/2)?r.__assign(r.__assign({},n),{title:null}):n},e}(n(37).Facet);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(2),o=n(55),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.afterChartRender=function(){e.facets&&e.cfg.line&&(e.container.clear(),e.drawLines(e.facets))},e}return r.__extends(e,t),e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.init=function(){t.prototype.init.call(this),this.view.on(a.VIEW_LIFE_CIRCLE.AFTER_RENDER,this.afterChartRender)},e.prototype.getDefaultCfg=function(){return(0,i.deepMix)({},t.prototype.getDefaultCfg.call(this),{type:"tree",line:{style:{lineWidth:1,stroke:"#ddd"},smooth:!1},showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this)})},e.prototype.generateFacets=function(t){if(!this.cfg.fields.length)throw new Error("Please specify for the fields for rootFacet!");var e=[],n={type:this.cfg.type,data:t,region:null,rowValuesLength:this.getRows(),columnValuesLength:1,rowIndex:0,columnIndex:0,rowField:"",columnField:"",rowValue:"",columnValue:""};return e.push(n),n.children=this.getChildFacets(t,1,e),this.setRegion(e),e},e.prototype.setRegion=function(t){var e=this;this.forceColIndex(t),t.forEach((function(t){t.region=e.getRegion(t.rowValuesLength,t.columnValuesLength,t.columnIndex,t.rowIndex)}))},e.prototype.getRegion=function(t,e,n,r){var i=1/e,a=1/t,o={x:i*n,y:a*r};return{start:o,end:{x:o.x+i,y:o.y+2*a/3}}},e.prototype.forceColIndex=function(t){var e,n,i=this,a=[],o=0;t.forEach((function(t){i.isLeaf(t)&&(a.push(t),t.columnIndex=o,o++)})),a.forEach((function(t){t.columnValuesLength=a.length}));for(var s=this.cfg.fields.length-1;s>=0;s--){var l=this.getFacetsByLevel(t,s);try{for(var u=(e=void 0,r.__values(l)),c=u.next();!c.done;c=u.next()){var f=c.value;this.isLeaf(f)||(f.originColIndex=f.columnIndex,f.columnIndex=this.getRegionIndex(f.children),f.columnValuesLength=a.length)}}catch(t){e={error:t}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(e)throw e.error}}}},e.prototype.getFacetsByLevel=function(t,e){var n=[];return t.forEach((function(t){t.rowIndex===e&&n.push(t)})),n},e.prototype.getRegionIndex=function(t){var e=t[0];return(t[t.length-1].columnIndex-e.columnIndex)/2+e.columnIndex},e.prototype.isLeaf=function(t){return!t.children||!t.children.length},e.prototype.getRows=function(){return this.cfg.fields.length+1},e.prototype.getChildFacets=function(t,e,n){var r=this,i=this.cfg.fields;if(!(i.length<e)){var a=[],o=i[e-1],s=this.getFieldValues(t,o);return s.forEach((function(i,l){var u=[{field:o,value:i,values:s}],c=t.filter(r.getFacetDataFilter(u));if(c.length){var f={type:r.cfg.type,data:c,region:null,columnValue:i,rowValue:"",columnField:o,rowField:"",columnIndex:l,rowValuesLength:r.getRows(),columnValuesLength:1,rowIndex:e,children:r.getChildFacets(c,e+1,n)};a.push(f),n.push(f)}})),a}},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.renderTitle=function(){var t=this;(0,i.each)(this.facets,(function(e){var n=e.columnValue,r=e.view,s=(0,i.get)(t.cfg.title,"formatter"),l=(0,i.deepMix)({position:["50%","0%"],content:s?s(n):n},(0,o.getFactTitleConfig)(a.DIRECTION.TOP),t.cfg.title);r.annotation().text(l)}))},e.prototype.drawLines=function(t){var e=this;t.forEach((function(t){if(!e.isLeaf(t)){var n=t.children;e.addFacetLines(t,n)}}))},e.prototype.addFacetLines=function(t,e){var n=this,r=t.view.coordinateBBox,i={x:r.x+r.width/2,y:r.y+r.height};e.forEach((function(t){var e=t.view.coordinateBBox,r={x:e.bl.x+(e.tr.x-e.bl.x)/2,y:e.tr.y},a={x:i.x,y:i.y+(r.y-i.y)/2},o={x:r.x,y:a.y};n.drawLine([i,a,o,r])}))},e.prototype.getPath=function(t){var e=[];return this.cfg.line.smooth?(e.push(["M",t[0].x,t[0].y]),e.push(["C",t[1].x,t[1].y,t[2].x,t[2].y,t[3].x,t[3].y])):t.forEach((function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e},e.prototype.drawLine=function(t){var e=this.getPath(t),n=this.cfg.line.style;this.container.addShape("path",{attrs:(0,i.assign)({path:e},n)})},e.prototype.getXAxisOption=function(t,e,n,i){return i.rowIndex!==i.rowValuesLength-1?r.__assign(r.__assign({},n),{title:null,label:null}):n},e.prototype.getYAxisOption=function(t,e,n,i){return 0!==i.originColIndex&&0!==i.columnIndex?r.__assign(r.__assign({},n),{title:null,label:null}):n},e}(n(37).Facet);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(19),o=n(36),s=n(2),l=n(14),u=n(25),c=n(598),f=n(42),h=["regionFilter","shape"],p=function(t){function e(e){var n=t.call(this,e)||this;return n.cache=new Map,n.foregroundContainer=n.view.getLayer(s.LAYER.FORE).addGroup(),n.backgroundContainer=n.view.getLayer(s.LAYER.BG).addGroup(),n.option=[],n}return r.__extends(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"annotation"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.layout=function(){this.update()},e.prototype.render=function(){},e.prototype.update=function(){var t=this;this.onAfterRender((function(){var e=new Map;(0,i.each)(t.option,(function(n){if((0,i.includes)(h,n.type)){var r=t.updateOrCreate(n);r&&e.set(t.getCacheKey(n),r)}})),t.cache=t.syncCache(e)}));var e=new Map;(0,i.each)(this.option,(function(n){if(!(0,i.includes)(h,n.type)){var r=t.updateOrCreate(n);r&&e.set(t.getCacheKey(n),r)}})),this.cache=this.syncCache(e)},e.prototype.clear=function(e){void 0===e&&(e=!1),t.prototype.clear.call(this),this.clearComponents(),this.foregroundContainer.clear(),this.backgroundContainer.clear(),e&&(this.option=[])},e.prototype.destroy=function(){this.clear(!0),this.foregroundContainer.remove(!0),this.backgroundContainer.remove(!0)},e.prototype.getComponents=function(){var t=[];return this.cache.forEach((function(e){t.push(e)})),t},e.prototype.clearComponents=function(){this.getComponents().forEach((function(t){t.component.destroy()})),this.cache.clear()},e.prototype.onAfterRender=function(t){this.view.getOptions().animate?this.view.geometries.forEach((function(e){e.animateOption&&e.once(s.GEOMETRY_LIFE_CIRCLE.AFTER_DRAW_ANIMATE,(function(){t()}))})):this.view.getRootView().once(s.VIEW_LIFE_CIRCLE.AFTER_RENDER,(function(){t()}))},e.prototype.createAnnotation=function(t){var e=t.type,n=a.Annotation[(0,i.upperFirst)(e)];if(n){var r=this.getAnnotationTheme(e),o=this.getAnnotationCfg(e,t,r);return o?{component:new n(o),layer:this.isTop(o)?s.LAYER.FORE:s.LAYER.BG,direction:s.DIRECTION.NONE,type:s.COMPONENT_TYPE.ANNOTATION,extra:t}:null}},e.prototype.annotation=function(t){this.option.push(t)},e.prototype.arc=function(t){return this.annotation(r.__assign({type:"arc"},t)),this},e.prototype.image=function(t){return this.annotation(r.__assign({type:"image"},t)),this},e.prototype.line=function(t){return this.annotation(r.__assign({type:"line"},t)),this},e.prototype.region=function(t){return this.annotation(r.__assign({type:"region"},t)),this},e.prototype.text=function(t){return this.annotation(r.__assign({type:"text"},t)),this},e.prototype.dataMarker=function(t){return this.annotation(r.__assign({type:"dataMarker"},t)),this},e.prototype.dataRegion=function(t){this.annotation(r.__assign({type:"dataRegion"},t))},e.prototype.regionFilter=function(t){this.annotation(r.__assign({type:"regionFilter"},t))},e.prototype.shape=function(t){this.annotation(r.__assign({type:"shape"},t))},e.prototype.html=function(t){this.annotation(r.__assign({type:"html"},t))},e.prototype.parsePosition=function(t){var e,n,a=this.view.getXScale(),o=this.view.getScalesByDim("y"),s=(0,i.isFunction)(t)?t.call(null,a,o):t,l=0,u=0;if((0,i.isArray)(s)){var f=r.__read(s,2),h=f[0],p=f[1];if((0,i.isString)(h)&&-1!==h.indexOf("%")&&!isNaN(h.slice(0,-1)))return this.parsePercentPosition(s);l=(0,c.getNormalizedValue)(h,a),u=(0,c.getNormalizedValue)(p,Object.values(o)[0])}else if(!(0,i.isNil)(s))try{for(var d=r.__values((0,i.keys)(s)),g=d.next();!g.done;g=d.next()){var y=g.value,v=s[y];y===a.field&&(l=(0,c.getNormalizedValue)(v,a)),o[y]&&(u=(0,c.getNormalizedValue)(v,o[y]))}}catch(t){e={error:t}}finally{try{g&&!g.done&&(n=d.return)&&n.call(d)}finally{if(e)throw e.error}}return isNaN(l)||isNaN(u)?null:this.view.getCoordinate().convert({x:l,y:u})},e.prototype.getRegionPoints=function(t,e){var n,r=this,a=this.view.getXScale(),o=this.view.getScalesByDim("y"),s=Object.values(o)[0],l=a.field,u=this.view.getData(),c=(0,i.isArray)(t)?t[0]:t[l],f=(0,i.isArray)(e)?e[0]:e[l],h=[];return(0,i.each)(u,(function(t,e){if(t[l]===c&&(n=e),e>=n){var i=r.parsePosition([t[l],t[s.field]]);i&&h.push(i)}if(t[l]===f)return!1})),h},e.prototype.parsePercentPosition=function(t){var e=parseFloat(t[0])/100,n=parseFloat(t[1])/100,r=this.view.getCoordinate(),i=r.start,a=r.end,o=Math.min(i.x,a.x),s=Math.min(i.y,a.y);return{x:r.getWidth()*e+o,y:r.getHeight()*n+s}},e.prototype.getCoordinateBBox=function(){var t=this.view.getCoordinate(),e=t.start,n=t.end,r=t.getWidth(),i=t.getHeight(),a={x:Math.min(e.x,n.x),y:Math.min(e.y,n.y)};return{x:a.x,y:a.y,minX:a.x,minY:a.y,maxX:a.x+r,maxY:a.y+i,width:r,height:i}},e.prototype.getAnnotationCfg=function(t,e,n){var a=this,s=this.view.getCoordinate(),u=this.view.getCanvas(),c={};if((0,i.isNil)(e))return null;var f=e.start,h=e.end,p=e.position,d=this.parsePosition(f),g=this.parsePosition(h),y=this.parsePosition(p);if(!(!["arc","image","line","region","regionFilter"].includes(t)||d&&g))return null;if(["text","dataMarker","html"].includes(t)&&!y)return null;if("arc"===t){var v=e,m=(v.start,v.end,r.__rest(v,["start","end"])),_=(0,l.getAngleByPoint)(s,d),x=(0,l.getAngleByPoint)(s,g);_>x&&(x=2*Math.PI+x),c=r.__assign(r.__assign({},m),{center:s.getCenter(),radius:(0,l.getDistanceToCenter)(s,d),startAngle:_,endAngle:x})}else if("image"===t){var b=e;b.start,b.end,m=r.__rest(b,["start","end"]);c=r.__assign(r.__assign({},m),{start:d,end:g,src:e.src})}else if("line"===t){var M=e;M.start,M.end,m=r.__rest(M,["start","end"]);c=r.__assign(r.__assign({},m),{start:d,end:g,text:(0,i.get)(e,"text",null)})}else if("region"===t){var C=e;C.start,C.end,m=r.__rest(C,["start","end"]);c=r.__assign(r.__assign({},m),{start:d,end:g})}else if("text"===t){var P=this.view.getData(),S=e,O=(S.position,S.content),w=(m=r.__rest(S,["position","content"]),O);(0,i.isFunction)(O)&&(w=O(P)),c=r.__assign(r.__assign(r.__assign({},y),m),{content:w})}else if("dataMarker"===t){var A=e,T=(A.position,A.point),E=A.line,I=A.text,L=A.autoAdjust,D=A.direction;m=r.__rest(A,["position","point","line","text","autoAdjust","direction"]);c=r.__assign(r.__assign(r.__assign({},m),y),{coordinateBBox:this.getCoordinateBBox(),point:T,line:E,text:I,autoAdjust:L,direction:D})}else if("dataRegion"===t){var B=e,j=B.start,R=B.end,k=B.region,F=(I=B.text,B.lineLength);m=r.__rest(B,["start","end","region","text","lineLength"]);c=r.__assign(r.__assign({},m),{points:this.getRegionPoints(j,R),region:k,text:I,lineLength:F})}else if("regionFilter"===t){var N=e,G=(N.start,N.end,N.apply),Y=N.color,V=(m=r.__rest(N,["start","end","apply","color"]),this.view.geometries),H=[],z=function t(e){e&&(e.isGroup()?e.getChildren().forEach((function(e){return t(e)})):H.push(e))};(0,i.each)(V,(function(t){G?(0,i.contains)(G,t.type)&&(0,i.each)(t.elements,(function(t){z(t.shape)})):(0,i.each)(t.elements,(function(t){z(t.shape)}))})),c=r.__assign(r.__assign({},m),{color:Y,shapes:H,start:d,end:g})}else if("shape"===t){var X=e,W=X.render,q=r.__rest(X,["render"]);c=r.__assign(r.__assign({},q),{render:function(t){if((0,i.isFunction)(e.render))return W(t,a.view,{parsePosition:a.parsePosition.bind(a)})}})}else if("html"===t){var U=e,Z=U.html;U.position,q=r.__rest(U,["html","position"]);c=r.__assign(r.__assign(r.__assign({},q),y),{parent:u.get("el").parentNode,html:function(t){return(0,i.isFunction)(Z)?Z(t,a.view):Z}})}var Q=(0,i.deepMix)({},n,r.__assign(r.__assign({},c),{top:e.top,style:e.style,offsetX:e.offsetX,offsetY:e.offsetY}));return"html"!==t&&(Q.container=this.getComponentContainer(Q)),Q.animate=this.view.getOptions().animate&&Q.animate&&(0,i.get)(e,"animate",Q.animate),Q.animateOption=(0,i.deepMix)({},o.DEFAULT_ANIMATE_CFG,Q.animateOption,e.animateOption),Q},e.prototype.isTop=function(t){return(0,i.get)(t,"top",!0)},e.prototype.getComponentContainer=function(t){return this.isTop(t)?this.foregroundContainer:this.backgroundContainer},e.prototype.getAnnotationTheme=function(t){return(0,i.get)(this.view.getTheme(),["components","annotation",t],{})},e.prototype.updateOrCreate=function(t){var e=this.cache.get(this.getCacheKey(t));if(e){var n=t.type,a=this.getAnnotationTheme(n),o=this.getAnnotationCfg(n,t,a);o&&(0,u.omit)(o,["container"]),e.component.update(r.__assign(r.__assign({},o||{}),{visible:!!o})),(0,i.includes)(h,t.type)&&e.component.render()}else(e=this.createAnnotation(t))&&(e.component.init(),(0,i.includes)(h,t.type)&&e.component.render());return e},e.prototype.syncCache=function(t){var e=this,n=new Map(this.cache);return t.forEach((function(t,e){n.set(e,t)})),n.forEach((function(t,r){(0,i.find)(e.option,(function(t){return r===e.getCacheKey(t)}))||(t.component.destroy(),n.delete(r))})),n},e.prototype.getCacheKey=function(t){return t},e}(f.Controller);e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getNormalizedValue=void 0;var r=n(599);e.getNormalizedValue=function(t,e){if(!e)return null;var n;switch(t){case"start":return 0;case"center":return.5;case"end":return 1;case"median":n=e.isCategory?(0,r.getMedian)(e.values.map((function(t,e){return e}))):(0,r.getMedian)(e.values);break;case"mean":n=e.isCategory?(e.values.length-1)/2:(0,r.getMean)(e.values);break;case"min":n=e.isCategory?0:e[t];break;case"max":n=e.isCategory?e.values.length-1:e[t];break;default:n=t}return e.scale(n)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getMean=e.getMedian=void 0;var r=n(0),i=n(1);e.getMedian=function(t){var e=r.__spreadArray([],r.__read(t),!1);e.sort((function(t,e){return t-e}));var n=e.length;return 0===n?0:n%2==1?e[(n-1)/2]:(e[n/2]+e[n/2-1])/2},e.getMean=function(t){var e=(0,i.reduce)(t,(function(t,e){return t+(isNaN(e)||!(0,i.isNumber)(e)?0:e)}),0);return 0===t.length?0:e/t.length}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(2),o=n(19),s=n(36),l=n(90),u=n(90),c=n(601),f=n(25),h=n(42),p=["container"],d=r.__assign(r.__assign({},s.DEFAULT_ANIMATE_CFG),{appear:null}),g=function(t){function e(e){var n=t.call(this,e)||this;return n.cache=new Map,n.gridContainer=n.view.getLayer(a.LAYER.BG).addGroup(),n.gridForeContainer=n.view.getLayer(a.LAYER.FORE).addGroup(),n.axisContainer=n.view.getLayer(a.LAYER.BG).addGroup(),n.axisForeContainer=n.view.getLayer(a.LAYER.FORE).addGroup(),n}return r.__extends(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"axis"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.render=function(){this.update()},e.prototype.layout=function(){var t=this,e=this.view.getCoordinate();(0,i.each)(this.getComponents(),(function(n){var r,i=n.component,o=n.direction,s=n.type,u=n.extra,f=u.dim,h=u.scale,p=u.alignTick;if(s===a.COMPONENT_TYPE.AXIS)e.isPolar?"x"===f?r=e.isTransposed?(0,l.getAxisRegion)(e,o):(0,l.getCircleAxisCenterRadius)(e):"y"===f&&(r=e.isTransposed?(0,l.getCircleAxisCenterRadius)(e):(0,l.getAxisRegion)(e,o)):r=(0,l.getAxisRegion)(e,o);else if(s===a.COMPONENT_TYPE.GRID)if(e.isPolar){r={items:e.isTransposed?"x"===f?(0,c.getCircleGridItems)(e,t.view.getYScales()[0],h,p,f):(0,c.getLineGridItems)(e,h,f,p):"x"===f?(0,c.getLineGridItems)(e,h,f,p):(0,c.getCircleGridItems)(e,t.view.getXScale(),h,p,f),center:t.view.getCoordinate().getCenter()}}else r={items:(0,c.getLineGridItems)(e,h,f,p)};i.update(r)}))},e.prototype.update=function(){this.option=this.view.getOptions().axes;var t=new Map;this.updateXAxes(t),this.updateYAxes(t);var e=new Map;this.cache.forEach((function(n,r){t.has(r)?e.set(r,n):n.component.destroy()})),this.cache=e},e.prototype.clear=function(){t.prototype.clear.call(this),this.cache.clear(),this.gridContainer.clear(),this.gridForeContainer.clear(),this.axisContainer.clear(),this.axisForeContainer.clear()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.gridContainer.remove(!0),this.gridForeContainer.remove(!0),this.axisContainer.remove(!0),this.axisForeContainer.remove(!0)},e.prototype.getComponents=function(){var t=[];return this.cache.forEach((function(e){t.push(e)})),t},e.prototype.updateXAxes=function(t){var e=this.view.getXScale();if(e&&!e.isIdentity){var n=(0,u.getAxisOption)(this.option,e.field);if(!1!==n){var r=(0,l.getAxisDirection)(n,a.DIRECTION.BOTTOM),o=a.LAYER.BG,s=this.view.getCoordinate(),c=this.getId("axis",e.field),h=this.getId("grid",e.field);if(s.isRect){if(g=this.cache.get(c)){var d=this.getLineAxisCfg(e,n,r);(0,f.omit)(d,p),g.component.update(d),t.set(c,g)}else g=this.createLineAxis(e,n,o,r,"x"),this.cache.set(c,g),t.set(c,g);if(y=this.cache.get(h)){d=this.getLineGridCfg(e,n,r,"x");(0,f.omit)(d,p),y.component.update(d),t.set(h,y)}else(y=this.createLineGrid(e,n,o,r,"x"))&&(this.cache.set(h,y),t.set(h,y))}else if(s.isPolar){var g,y;if(g=this.cache.get(c)){d=s.isTransposed?this.getLineAxisCfg(e,n,a.DIRECTION.RADIUS):this.getCircleAxisCfg(e,n,r);(0,f.omit)(d,p),g.component.update(d),t.set(c,g)}else{if(s.isTransposed){if((0,i.isUndefined)(n))return;g=this.createLineAxis(e,n,o,a.DIRECTION.RADIUS,"x")}else g=this.createCircleAxis(e,n,o,r,"x");this.cache.set(c,g),t.set(c,g)}if(y=this.cache.get(h)){d=s.isTransposed?this.getCircleGridCfg(e,n,a.DIRECTION.RADIUS,"x"):this.getLineGridCfg(e,n,a.DIRECTION.CIRCLE,"x");(0,f.omit)(d,p),y.component.update(d),t.set(h,y)}else{if(s.isTransposed){if((0,i.isUndefined)(n))return;y=this.createCircleGrid(e,n,o,a.DIRECTION.RADIUS,"x")}else y=this.createLineGrid(e,n,o,a.DIRECTION.CIRCLE,"x");y&&(this.cache.set(h,y),t.set(h,y))}}}}},e.prototype.updateYAxes=function(t){var e=this,n=this.view.getYScales();(0,i.each)(n,(function(n,r){if(n&&!n.isIdentity){var o=n.field,s=(0,u.getAxisOption)(e.option,o);if(!1!==s){var c=a.LAYER.BG,h=e.getId("axis",o),d=e.getId("grid",o),g=e.view.getCoordinate();if(g.isRect){var y=(0,l.getAxisDirection)(s,0===r?a.DIRECTION.LEFT:a.DIRECTION.RIGHT);if(m=e.cache.get(h)){var v=e.getLineAxisCfg(n,s,y);(0,f.omit)(v,p),m.component.update(v),t.set(h,m)}else m=e.createLineAxis(n,s,c,y,"y"),e.cache.set(h,m),t.set(h,m);if(_=e.cache.get(d)){v=e.getLineGridCfg(n,s,y,"y");(0,f.omit)(v,p),_.component.update(v),t.set(d,_)}else(_=e.createLineGrid(n,s,c,y,"y"))&&(e.cache.set(d,_),t.set(d,_))}else if(g.isPolar){var m,_;if(m=e.cache.get(h)){v=g.isTransposed?e.getCircleAxisCfg(n,s,a.DIRECTION.CIRCLE):e.getLineAxisCfg(n,s,a.DIRECTION.RADIUS);(0,f.omit)(v,p),m.component.update(v),t.set(h,m)}else{if(g.isTransposed){if((0,i.isUndefined)(s))return;m=e.createCircleAxis(n,s,c,a.DIRECTION.CIRCLE,"y")}else m=e.createLineAxis(n,s,c,a.DIRECTION.RADIUS,"y");e.cache.set(h,m),t.set(h,m)}if(_=e.cache.get(d)){v=g.isTransposed?e.getLineGridCfg(n,s,a.DIRECTION.CIRCLE,"y"):e.getCircleGridCfg(n,s,a.DIRECTION.RADIUS,"y");(0,f.omit)(v,p),_.component.update(v),t.set(d,_)}else{if(g.isTransposed){if((0,i.isUndefined)(s))return;_=e.createLineGrid(n,s,c,a.DIRECTION.CIRCLE,"y")}else _=e.createCircleGrid(n,s,c,a.DIRECTION.RADIUS,"y");_&&(e.cache.set(d,_),t.set(d,_))}}}}}))},e.prototype.createLineAxis=function(t,e,n,r,i){var s={component:new o.LineAxis(this.getLineAxisCfg(t,e,r)),layer:n,direction:r===a.DIRECTION.RADIUS?a.DIRECTION.NONE:r,type:a.COMPONENT_TYPE.AXIS,extra:{dim:i,scale:t}};return s.component.set("field",t.field),s.component.init(),s},e.prototype.createLineGrid=function(t,e,n,r,s){var l=this.getLineGridCfg(t,e,r,s);if(l){var u={component:new o.LineGrid(l),layer:n,direction:a.DIRECTION.NONE,type:a.COMPONENT_TYPE.GRID,extra:{dim:s,scale:t,alignTick:(0,i.get)(l,"alignTick",!0)}};return u.component.init(),u}},e.prototype.createCircleAxis=function(t,e,n,r,i){var s={component:new o.CircleAxis(this.getCircleAxisCfg(t,e,r)),layer:n,direction:r,type:a.COMPONENT_TYPE.AXIS,extra:{dim:i,scale:t}};return s.component.set("field",t.field),s.component.init(),s},e.prototype.createCircleGrid=function(t,e,n,r,s){var l=this.getCircleGridCfg(t,e,r,s);if(l){var u={component:new o.CircleGrid(l),layer:n,direction:a.DIRECTION.NONE,type:a.COMPONENT_TYPE.GRID,extra:{dim:s,scale:t,alignTick:(0,i.get)(l,"alignTick",!0)}};return u.component.init(),u}},e.prototype.getLineAxisCfg=function(t,e,n){var a=(0,i.get)(e,["top"])?this.axisForeContainer:this.axisContainer,o=this.view.getCoordinate(),s=(0,l.getAxisRegion)(o,n),u=(0,l.getAxisTitleText)(t,e),c=(0,l.getAxisThemeCfg)(this.view.getTheme(),n),f=(0,i.get)(e,["title"])?(0,i.deepMix)({title:{style:{text:u}}},{title:(0,l.getAxisTitleOptions)(this.view.getTheme(),n,e.title)},e):e,h=(0,i.deepMix)(r.__assign(r.__assign({container:a},s),{ticks:t.getTicks().map((function(t){return{id:"".concat(t.tickValue),name:t.text,value:t.value}})),verticalFactor:o.isPolar?-1*(0,l.getAxisFactorByRegion)(s,o.getCenter()):(0,l.getAxisFactorByRegion)(s,o.getCenter()),theme:c}),c,f),p=this.getAnimateCfg(h),d=p.animate,g=p.animateOption;h.animateOption=g,h.animate=d;var y=(0,l.isVertical)(s),v=(0,i.get)(h,"verticalLimitLength",y?1/3:.5);if(v<=1){var m=this.view.getCanvas().get("width"),_=this.view.getCanvas().get("height");h.verticalLimitLength=v*(y?m:_)}return h},e.prototype.getLineGridCfg=function(t,e,n,r){if((0,c.showGrid)((0,l.getAxisThemeCfg)(this.view.getTheme(),n),e)){var a=(0,c.getGridThemeCfg)(this.view.getTheme(),n),o=(0,i.deepMix)({container:(0,i.get)(e,["top"])?this.gridForeContainer:this.gridContainer},a,(0,i.get)(e,"grid"),this.getAnimateCfg(e));return o.items=(0,c.getLineGridItems)(this.view.getCoordinate(),t,r,(0,i.get)(o,"alignTick",!0)),o}},e.prototype.getCircleAxisCfg=function(t,e,n){var o=(0,i.get)(e,["top"])?this.axisForeContainer:this.axisContainer,s=this.view.getCoordinate(),u=t.getTicks().map((function(t){return{id:"".concat(t.tickValue),name:t.text,value:t.value}}));t.isCategory||Math.abs(s.endAngle-s.startAngle)!==2*Math.PI||u.pop();var c=(0,l.getAxisTitleText)(t,e),f=(0,l.getAxisThemeCfg)(this.view.getTheme(),a.DIRECTION.CIRCLE),h=(0,i.get)(e,["title"])?(0,i.deepMix)({title:{style:{text:c}}},{title:(0,l.getAxisTitleOptions)(this.view.getTheme(),n,e.title)},e):e,p=(0,i.deepMix)(r.__assign(r.__assign({container:o},(0,l.getCircleAxisCenterRadius)(this.view.getCoordinate())),{ticks:u,verticalFactor:1,theme:f}),f,h),d=this.getAnimateCfg(p),g=d.animate,y=d.animateOption;return p.animate=g,p.animateOption=y,p},e.prototype.getCircleGridCfg=function(t,e,n,r){if((0,c.showGrid)((0,l.getAxisThemeCfg)(this.view.getTheme(),n),e)){var o=(0,c.getGridThemeCfg)(this.view.getTheme(),a.DIRECTION.RADIUS),s=(0,i.deepMix)({container:(0,i.get)(e,["top"])?this.gridForeContainer:this.gridContainer,center:this.view.getCoordinate().getCenter()},o,(0,i.get)(e,"grid"),this.getAnimateCfg(e)),u=(0,i.get)(s,"alignTick",!0),f="x"===r?this.view.getYScales()[0]:this.view.getXScale();return s.items=(0,c.getCircleGridItems)(this.view.getCoordinate(),f,t,u,r),s}},e.prototype.getId=function(t,e){var n=this.view.getCoordinate();return"".concat(t,"-").concat(e,"-").concat(n.type)},e.prototype.getAnimateCfg=function(t){return{animate:this.view.getOptions().animate&&(0,i.get)(t,"animate"),animateOption:t&&t.animateOption?(0,i.deepMix)({},d,t.animateOption):d}},e}(h.Controller);e.default=g},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.showGrid=e.getCircleGridItems=e.getLineGridItems=e.getGridThemeCfg=void 0;var r=n(1);e.getGridThemeCfg=function(t,e){var n=(0,r.deepMix)({},(0,r.get)(t,["components","axis","common"]),(0,r.get)(t,["components","axis",e]));return(0,r.get)(n,["grid"],{})},e.getLineGridItems=function(t,e,n,r){var i=[],a=e.getTicks();return t.isPolar&&a.push({value:1,text:"",tickValue:""}),a.reduce((function(e,a,o){var s=a.value;if(r)i.push({points:[t.convert("y"===n?{x:0,y:s}:{x:s,y:0}),t.convert("y"===n?{x:1,y:s}:{x:s,y:1})]});else if(o){var l=(e.value+s)/2;i.push({points:[t.convert("y"===n?{x:0,y:l}:{x:l,y:0}),t.convert("y"===n?{x:1,y:l}:{x:l,y:1})]})}return a}),a[0]),i},e.getCircleGridItems=function(t,e,n,i,a){var o=e.values.length,s=[],l=n.getTicks();return l.reduce((function(e,n){var l=e?e.value:n.value,u=n.value,c=(l+u)/2;return"x"===a?s.push({points:[t.convert({x:i?u:c,y:0}),t.convert({x:i?u:c,y:1})]}):s.push({points:(0,r.map)(Array(o+1),(function(e,n){return t.convert({x:n/o,y:i?u:c})}))}),n}),l[0]),s},e.showGrid=function(t,e){var n=(0,r.get)(e,"grid");if(null===n)return!1;var i=(0,r.get)(t,"grid");return!(void 0===n&&null===i)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(2),o=n(19),s=n(36),l=n(29),u=n(126),c=n(25),f=n(215),h=n(38);function p(t,e){return(0,i.isBoolean)(t)?!1!==t&&{}:(0,i.get)(t,[e],t)}function d(t){return(0,i.get)(t,"position",a.DIRECTION.BOTTOM)}var g=function(t){function e(e){var n=t.call(this,e)||this;return n.container=n.view.getLayer(a.LAYER.FORE).addGroup(),n}return r.__extends(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"legend"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.render=function(){this.update()},e.prototype.layout=function(){var t=this;this.layoutBBox=this.view.viewBBox,(0,i.each)(this.components,(function(e){var n=e.component,i=e.direction,a=(0,f.getLegendLayout)(i),o=n.get("maxWidthRatio"),s=n.get("maxHeightRatio"),c=t.getCategoryLegendSizeCfg(a,o,s),h=n.get("maxWidth"),p=n.get("maxHeight");n.update({maxWidth:Math.min(c.maxWidth,h||0),maxHeight:Math.min(c.maxHeight,p||0)});var d=n.get("padding"),g=n.getLayoutBBox(),y=new l.BBox(g.x,g.y,g.width,g.height).expand(d),v=r.__read((0,u.directionToPosition)(t.view.viewBBox,y,i),2),m=v[0],_=v[1],x=r.__read((0,u.directionToPosition)(t.layoutBBox,y,i),2),b=x[0],M=x[1],C=0,P=0;i.startsWith("top")||i.startsWith("bottom")?(C=m,P=M):(C=b,P=_),n.setLocation({x:C+d[3],y:P+d[0]}),t.layoutBBox=t.layoutBBox.cut(y,i)}))},e.prototype.update=function(){var t=this;this.option=this.view.getOptions().legends;var e={};if((0,i.get)(this.option,"custom")){var n="global-custom",r=this.getComponentById(n);if(r){var o=this.getCategoryCfg(void 0,void 0,void 0,this.option,!0);(0,c.omit)(o,["container"]),r.component.update(o),e[n]=!0}else{var s=this.createCustomLegend(void 0,void 0,void 0,this.option);if(s){s.init();var l=a.LAYER.FORE,u=d(this.option);this.components.push({id:n,component:s,layer:l,direction:u,type:a.COMPONENT_TYPE.LEGEND,extra:void 0}),e[n]=!0}}}else this.loopLegends((function(n,r,a){var o=t.getId(a.field),s=t.getComponentById(o);if(s){var l=void 0,u=p(t.option,a.field);!1!==u&&((0,i.get)(u,"custom")?l=t.getCategoryCfg(n,r,a,u,!0):a.isLinear?l=t.getContinuousCfg(n,r,a,u):a.isCategory&&(l=t.getCategoryCfg(n,r,a,u))),l&&((0,c.omit)(l,["container"]),s.direction=d(u),s.component.update(l),e[o]=!0)}else{var f=t.createFieldLegend(n,r,a);f&&(f.component.init(),t.components.push(f),e[o]=!0)}}));var f=[];(0,i.each)(this.getComponents(),(function(t){e[t.id]?f.push(t):t.component.destroy()})),this.components=f},e.prototype.clear=function(){t.prototype.clear.call(this),this.container.clear()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.container.remove(!0)},e.prototype.getGeometries=function(t){var e=this,n=t.geometries;return(0,i.each)(t.views,(function(t){n=n.concat(e.getGeometries(t))})),n},e.prototype.loopLegends=function(t){if(this.view.getRootView()===this.view){var e=this.getGeometries(this.view),n={};(0,i.each)(e,(function(e){var r=e.getGroupAttributes();(0,i.each)(r,(function(r){var i=r.getScale(r.type);i&&"identity"!==i.type&&!n[i.field]&&(t(e,r,i),n[i.field]=!0)}))}))}},e.prototype.createFieldLegend=function(t,e,n){var r,o=p(this.option,n.field),s=a.LAYER.FORE,l=d(o);if(!1!==o&&((0,i.get)(o,"custom")?r=this.createCustomLegend(t,e,n,o):n.isLinear?r=this.createContinuousLegend(t,e,n,o):n.isCategory&&(r=this.createCategoryLegend(t,e,n,o))),r)return r.set("field",n.field),{id:this.getId(n.field),component:r,layer:s,direction:l,type:a.COMPONENT_TYPE.LEGEND,extra:{scale:n}}},e.prototype.createCustomLegend=function(t,e,n,r){var i=this.getCategoryCfg(t,e,n,r,!0);return new o.CategoryLegend(i)},e.prototype.createContinuousLegend=function(t,e,n,r){var i=this.getContinuousCfg(t,e,n,(0,c.omit)(r,["value"]));return new o.ContinuousLegend(i)},e.prototype.createCategoryLegend=function(t,e,n,r){var i=this.getCategoryCfg(t,e,n,r);return new o.CategoryLegend(i)},e.prototype.getContinuousCfg=function(t,e,n,r){var a=n.getTicks(),o=(0,i.find)(a,(function(t){return 0===t.value})),l=(0,i.find)(a,(function(t){return 1===t.value})),u=a.map((function(t){var r=t.value,i=t.tickValue,a=e.mapping(n.invert(r)).join("");return{value:i,attrValue:a,color:a,scaleValue:r}}));o||u.push({value:n.min,attrValue:e.mapping(n.invert(0)).join(""),color:e.mapping(n.invert(0)).join(""),scaleValue:0}),l||u.push({value:n.max,attrValue:e.mapping(n.invert(1)).join(""),color:e.mapping(n.invert(1)).join(""),scaleValue:1}),u.sort((function(t,e){return t.value-e.value}));var c={min:(0,i.head)(u).value,max:(0,i.last)(u).value,colors:[],rail:{type:e.type},track:{}};"size"===e.type&&(c.track={style:{fill:"size"===e.type?this.view.getTheme().defaultColor:void 0}}),"color"===e.type&&(c.colors=u.map((function(t){return t.attrValue})));var p=this.container,g=d(r),y=(0,f.getLegendLayout)(g),v=(0,i.get)(r,"title");return v&&(v=(0,i.deepMix)({text:(0,h.getName)(n)},v)),c.container=p,c.layout=y,c.title=v,c.animateOption=s.DEFAULT_ANIMATE_CFG,this.mergeLegendCfg(c,r,"continuous")},e.prototype.getCategoryCfg=function(t,e,n,r,o){var l=this.container,u=(0,i.get)(r,"position",a.DIRECTION.BOTTOM),c=(0,f.getLegendThemeCfg)(this.view.getTheme(),u),p=(0,i.get)(c,["marker"]),d=(0,i.get)(r,"marker"),g=(0,f.getLegendLayout)(u),y=(0,i.get)(c,["pageNavigator"]),v=(0,i.get)(r,"pageNavigator"),m=o?(0,f.getCustomLegendItems)(p,d,r.items):(0,f.getLegendItems)(this.view,t,e,p,d),_=(0,i.get)(r,"title");_&&(_=(0,i.deepMix)({text:n?(0,h.getName)(n):""},_));var x=(0,i.get)(r,"maxWidthRatio"),b=(0,i.get)(r,"maxHeightRatio"),M=this.getCategoryLegendSizeCfg(g,x,b);M.container=l,M.layout=g,M.items=m,M.title=_,M.animateOption=s.DEFAULT_ANIMATE_CFG,M.pageNavigator=(0,i.deepMix)({},y,v);var C=this.mergeLegendCfg(M,r,u);C.reversed&&C.items.reverse();var P=(0,i.get)(C,"maxItemWidth");return P&&P<=1&&(C.maxItemWidth=this.view.viewBBox.width*P),C},e.prototype.mergeLegendCfg=function(t,e,n){var r=n.split("-")[0],a=(0,f.getLegendThemeCfg)(this.view.getTheme(),r);return(0,i.deepMix)({},a,t,e)},e.prototype.getId=function(t){return"".concat(this.name,"-").concat(t)},e.prototype.getComponentById=function(t){return(0,i.find)(this.components,(function(e){return e.id===t}))},e.prototype.getCategoryLegendSizeCfg=function(t,e,n){void 0===e&&(e=a.COMPONENT_MAX_VIEW_PERCENTAGE),void 0===n&&(n=a.COMPONENT_MAX_VIEW_PERCENTAGE);var r=this.view.viewBBox,i=r.width,o=r.height;return"vertical"===t?{maxWidth:i*e,maxHeight:o}:{maxWidth:i,maxHeight:o*n}},e}(n(42).Controller);e.default=g},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(2),o=n(19),s=n(29),l=n(126),u=n(25),c=function(t){function e(e){var n=t.call(this,e)||this;return n.onChangeFn=i.noop,n.resetMeasure=function(){n.clear()},n.onValueChange=function(t){var e=r.__read(t,2),i=e[0],a=e[1];n.start=i,n.end=a,n.changeViewData(i,a)},n.container=n.view.getLayer(a.LAYER.FORE).addGroup(),n.onChangeFn=(0,i.throttle)(n.onValueChange,20,{leading:!0}),n.width=0,n.view.on(a.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,n.resetMeasure),n.view.on(a.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_SIZE,n.resetMeasure),n}return r.__extends(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"slider"},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.view.off(a.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(a.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_SIZE,this.resetMeasure)},e.prototype.init=function(){},e.prototype.render=function(){this.option=this.view.getOptions().slider;var t=this.getSliderCfg(),e=t.start,n=t.end;(0,i.isNil)(this.start)&&(this.start=e,this.end=n);var r=this.view.getOptions().data;this.option&&!(0,i.isEmpty)(r)?this.slider?this.slider=this.updateSlider():(this.slider=this.createSlider(),this.slider.component.on("sliderchange",this.onChangeFn)):this.slider&&(this.slider.component.destroy(),this.slider=void 0)},e.prototype.layout=function(){var t=this;if(this.option&&!this.width&&(this.measureSlider(),setTimeout((function(){t.view.destroyed||t.changeViewData(t.start,t.end)}),0)),this.slider){var e=this.view.coordinateBBox.width,n=this.slider.component.get("padding"),i=r.__read(n,4),o=i[0],u=(i[1],i[2],i[3]),c=this.slider.component.getLayoutBBox(),f=new s.BBox(c.x,c.y,Math.min(c.width,e),c.height).expand(n),h=this.getMinMaxText(this.start,this.end),p=h.minText,d=h.maxText,g=r.__read((0,l.directionToPosition)(this.view.viewBBox,f,a.DIRECTION.BOTTOM),2),y=(g[0],g[1]),v=r.__read((0,l.directionToPosition)(this.view.coordinateBBox,f,a.DIRECTION.BOTTOM),2),m=v[0];v[1];this.slider.component.update(r.__assign(r.__assign({},this.getSliderCfg()),{x:m+u,y:y+o,width:this.width,start:this.start,end:this.end,minText:p,maxText:d})),this.view.viewBBox=this.view.viewBBox.cut(f,a.DIRECTION.BOTTOM)}},e.prototype.update=function(){this.render()},e.prototype.createSlider=function(){var t=this.getSliderCfg(),e=new o.Slider(r.__assign({container:this.container},t));return e.init(),{component:e,layer:a.LAYER.FORE,direction:a.DIRECTION.BOTTOM,type:a.COMPONENT_TYPE.SLIDER}},e.prototype.updateSlider=function(){var t=this.getSliderCfg();if(this.width){var e=this.getMinMaxText(this.start,this.end),n=e.minText,i=e.maxText;t=r.__assign(r.__assign({},t),{width:this.width,start:this.start,end:this.end,minText:n,maxText:i})}return this.slider.component.update(t),this.slider},e.prototype.measureSlider=function(){var t=this.getSliderCfg().width;this.width=t},e.prototype.getSliderCfg=function(){var t={height:16,start:0,end:1,minText:"",maxText:"",x:0,y:0,width:this.view.coordinateBBox.width};if((0,i.isObject)(this.option)){var e=r.__assign({data:this.getData()},(0,i.get)(this.option,"trendCfg",{}));t=(0,i.deepMix)({},t,this.getThemeOptions(),this.option),t=r.__assign(r.__assign({},t),{trendCfg:e})}return t.start=(0,i.clamp)(Math.min((0,i.isNil)(t.start)?0:t.start,(0,i.isNil)(t.end)?1:t.end),0,1),t.end=(0,i.clamp)(Math.max((0,i.isNil)(t.start)?0:t.start,(0,i.isNil)(t.end)?1:t.end),0,1),t},e.prototype.getData=function(){var t=this.view.getOptions().data,e=r.__read(this.view.getYScales(),1)[0],n=this.view.getGroupScales();if(n.length){var i=n[0],a=i.field,o=i.ticks;return t.reduce((function(t,n){return n[a]===o[0]&&t.push(n[e.field]),t}),[])}return t.map((function(t){return t[e.field]||0}))},e.prototype.getThemeOptions=function(){var t=this.view.getTheme();return(0,i.get)(t,["components","slider","common"],{})},e.prototype.getMinMaxText=function(t,e){var n=this.view.getOptions().data,r=this.view.getXScale(),a=(0,i.valuesOfKey)(n,r.field);r.isLinear&&(a=a.sort());var o=a,s=(0,i.size)(n);if(!r||!s)return{};var l=(0,i.size)(o),u=Math.floor(t*(l-1)),c=Math.floor(e*(l-1)),f=(0,i.get)(o,[u]),h=(0,i.get)(o,[c]),p=this.getSliderCfg().formatter;return p&&(f=p(f,n[u],u),h=p(h,n[c],c)),{minText:f,maxText:h}},e.prototype.changeViewData=function(t,e){var n=this.view.getOptions().data,r=this.view.getXScale(),a=(0,i.size)(n);if(r&&a){var o=(0,i.valuesOfKey)(n,r.field),s=this.view.getXScale().isLinear?o.sort((function(t,e){return Number(t)-Number(e)})):o,l=s,c=(0,i.size)(l),f=Math.floor(t*(c-1)),h=Math.floor(e*(c-1));this.view.filter(r.field,(function(t,e){var n=l.indexOf(t);return!(n>-1)||(0,u.isBetween)(n,f,h)})),this.view.render(!0)}},e.prototype.getComponents=function(){return this.slider?[this.slider]:[]},e.prototype.clear=function(){this.slider&&(this.slider.component.destroy(),this.slider=void 0),this.width=0,this.start=void 0,this.end=void 0},e}(n(42).Controller);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(42),a=n(19),o=n(29),s=n(126),l=n(2),u=n(1),c=n(25),f=function(t){function e(e){var n=t.call(this,e)||this;return n.onChangeFn=u.noop,n.resetMeasure=function(){n.clear()},n.onValueChange=function(t){var e=t.ratio,r=n.getValidScrollbarCfg().animate;n.ratio=(0,u.clamp)(e,0,1);var i=n.view.getOptions().animate;r||n.view.animate(!1),n.changeViewData(n.getScrollRange(),!0),n.view.animate(i)},n.container=n.view.getLayer(l.LAYER.FORE).addGroup(),n.onChangeFn=(0,u.throttle)(n.onValueChange,20,{leading:!0}),n.trackLen=0,n.thumbLen=0,n.ratio=0,n.view.on(l.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,n.resetMeasure),n.view.on(l.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_SIZE,n.resetMeasure),n}return r.__extends(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"scrollbar"},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.view.off(l.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(l.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_SIZE,this.resetMeasure)},e.prototype.init=function(){},e.prototype.render=function(){this.option=this.view.getOptions().scrollbar,this.option?this.scrollbar?this.scrollbar=this.updateScrollbar():(this.scrollbar=this.createScrollbar(),this.scrollbar.component.on("scrollchange",this.onChangeFn)):this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0)},e.prototype.layout=function(){var t=this;if(this.option&&!this.trackLen&&(this.measureScrollbar(),setTimeout((function(){t.view.destroyed||t.changeViewData(t.getScrollRange(),!0)}))),this.scrollbar){var e=this.view.coordinateBBox.width,n=this.scrollbar.component.get("padding"),i=this.scrollbar.component.getLayoutBBox(),a=new o.BBox(i.x,i.y,Math.min(i.width,e),i.height).expand(n),u=this.getScrollbarComponentCfg(),c=void 0,f=void 0;if(u.isHorizontal){var h=r.__read((0,s.directionToPosition)(this.view.viewBBox,a,l.DIRECTION.BOTTOM),2),p=(h[0],h[1]),d=r.__read((0,s.directionToPosition)(this.view.coordinateBBox,a,l.DIRECTION.BOTTOM),2),g=d[0];d[1];c=g,f=p}else{var y=r.__read((0,s.directionToPosition)(this.view.viewBBox,a,l.DIRECTION.RIGHT),2),v=(y[0],p=y[1],r.__read((0,s.directionToPosition)(this.view.viewBBox,a,l.DIRECTION.RIGHT),2));g=v[0],v[1];c=g,f=p}c+=n[3],f+=n[0],this.trackLen?this.scrollbar.component.update(r.__assign(r.__assign({},u),{x:c,y:f,trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio})):this.scrollbar.component.update(r.__assign(r.__assign({},u),{x:c,y:f})),this.view.viewBBox=this.view.viewBBox.cut(a,u.isHorizontal?l.DIRECTION.BOTTOM:l.DIRECTION.RIGHT)}},e.prototype.update=function(){this.render()},e.prototype.getComponents=function(){return this.scrollbar?[this.scrollbar]:[]},e.prototype.clear=function(){this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0),this.trackLen=0,this.thumbLen=0,this.ratio=0,this.cnt=0,this.step=0,this.data=void 0,this.xScaleCfg=void 0,this.yScalesCfg=[]},e.prototype.setValue=function(t){this.onValueChange({ratio:t})},e.prototype.getValue=function(){return this.ratio},e.prototype.getThemeOptions=function(){var t=this.view.getTheme();return(0,u.get)(t,["components","scrollbar","common"],{})},e.prototype.getScrollbarTheme=function(t){var e=(0,u.get)(this.view.getTheme(),["components","scrollbar"]),n=t||{},i=n.thumbHighlightColor,a=r.__rest(n,["thumbHighlightColor"]);return{default:(0,u.deepMix)({},(0,u.get)(e,["default","style"],{}),a),hover:(0,u.deepMix)({},(0,u.get)(e,["hover","style"],{}),{thumbColor:i})}},e.prototype.measureScrollbar=function(){var t=this.view.getXScale(),e=this.view.getYScales().slice();this.data=this.getScrollbarData(),this.step=this.getStep(),this.cnt=this.getCnt();var n=this.getScrollbarComponentCfg(),r=n.trackLen,i=n.thumbLen;this.trackLen=r,this.thumbLen=i,this.xScaleCfg={field:t.field,values:t.values||[]},this.yScalesCfg=e},e.prototype.getScrollRange=function(){var t=Math.floor((this.cnt-this.step)*(0,u.clamp)(this.ratio,0,1));return[t,Math.min(t+this.step-1,this.cnt-1)]},e.prototype.changeViewData=function(t,e){var n=this,i=r.__read(t,2),a=i[0],o=i[1],s="vertical"!==this.getValidScrollbarCfg().type,l=(0,u.valuesOfKey)(this.data,this.xScaleCfg.field),f=this.view.getXScale().isLinear?l.sort((function(t,e){return Number(t)-Number(e)})):l,h=s?f:f.reverse();this.yScalesCfg.forEach((function(t){n.view.scale(t.field,{formatter:t.formatter,type:t.type,min:t.min,max:t.max,tickMethod:t.tickMethod})})),this.view.filter(this.xScaleCfg.field,(function(t){var e=h.indexOf(t);return!(e>-1)||(0,c.isBetween)(e,a,o)})),this.view.render(!0)},e.prototype.createScrollbar=function(){var t="vertical"!==this.getValidScrollbarCfg().type,e=new a.Scrollbar(r.__assign(r.__assign({container:this.container},this.getScrollbarComponentCfg()),{x:0,y:0}));return e.init(),{component:e,layer:l.LAYER.FORE,direction:t?l.DIRECTION.BOTTOM:l.DIRECTION.RIGHT,type:l.COMPONENT_TYPE.SCROLLBAR}},e.prototype.updateScrollbar=function(){var t=this.getScrollbarComponentCfg(),e=this.trackLen?r.__assign(r.__assign({},t),{trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio}):r.__assign({},t);return this.scrollbar.component.update(e),this.scrollbar},e.prototype.getStep=function(){if(this.step)return this.step;var t=this.view.coordinateBBox,e=this.getValidScrollbarCfg(),n=e.type,r=e.categorySize,i="vertical"!==n;return Math.floor((i?t.width:t.height)/r)},e.prototype.getCnt=function(){if(this.cnt)return this.cnt;var t=this.view.getXScale(),e=this.getScrollbarData(),n=(0,u.valuesOfKey)(e,t.field);return(0,u.size)(n)},e.prototype.getScrollbarComponentCfg=function(){var t=this.view,e=t.coordinateBBox,n=t.viewBBox,i=this.getValidScrollbarCfg(),a=i.type,o=i.padding,s=i.width,l=i.height,c=i.style,f="vertical"!==a,h=r.__read(o,4),p=h[0],d=h[1],g=h[2],y=h[3],v=f?{x:e.minX+y,y:n.maxY-l-g}:{x:n.maxX-s-d,y:e.minY+p},m=this.getStep(),_=this.getCnt(),x=f?e.width-y-d:e.height-p-g,b=Math.max(x*(0,u.clamp)(m/_,0,1),20);return r.__assign(r.__assign({},this.getThemeOptions()),{x:v.x,y:v.y,size:f?l:s,isHorizontal:f,trackLen:x,thumbLen:b,thumbOffset:0,theme:this.getScrollbarTheme(c)})},e.prototype.getValidScrollbarCfg=function(){var t={type:"horizontal",categorySize:32,width:8,height:8,padding:[0,0,0,0],animate:!0,style:{}};return(0,u.isObject)(this.option)&&(t=r.__assign(r.__assign({},t),this.option)),(0,u.isObject)(this.option)&&this.option.padding||(t.padding=(t.type,[0,0,0,0])),t},e.prototype.getScrollbarData=function(){var t=this.view.getCoordinate(),e=this.getValidScrollbarCfg(),n=this.view.getOptions().data||[];return t.isReflect("y")&&"vertical"===e.type&&(n=r.__spreadArray([],r.__read(n),!1).reverse()),n},e}(i.Controller);e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getItemsOfView=void 0;var r=n(0),i=n(1),a=n(78),o=n(13),s=r.__importDefault(n(11)),l={fill:"#CCD6EC",opacity:.3};function u(t,e,n){var o,s,l,u,c,f,h=(0,a.findItemsFromViewRecurisive)(t,e,n);if(h.length){h=(0,i.flatten)(h);try{for(var p=r.__values(h),d=p.next();!d.done;d=p.next()){var g=d.value;try{for(var y=(l=void 0,r.__values(g)),v=y.next();!v.done;v=y.next()){var m=v.value,_=m.mappingData,x=_.x,b=_.y;m.x=(0,i.isArray)(x)?x[x.length-1]:x,m.y=(0,i.isArray)(b)?b[b.length-1]:b}}catch(t){l={error:t}}finally{try{v&&!v.done&&(u=y.return)&&u.call(y)}finally{if(l)throw l.error}}}}catch(t){o={error:t}}finally{try{d&&!d.done&&(s=p.return)&&s.call(p)}finally{if(o)throw o.error}}if(!1===n.shared&&h.length>1){var M=h[0],C=Math.abs(e.y-M[0].y);try{for(var P=r.__values(h),S=P.next();!S.done;S=P.next()){var O=S.value,w=Math.abs(e.y-O[0].y);w<=C&&(M=O,C=w)}}catch(t){c={error:t}}finally{try{S&&!S.done&&(f=P.return)&&f.call(P)}finally{if(c)throw c.error}}h=[M]}return(0,i.uniq)((0,i.flatten)(h))}return[]}e.getItemsOfView=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.show=function(t){var e=this.context.view,n=this.context.event,a=e.getController("tooltip").getTooltipCfg(),s=u(e,{x:n.x,y:n.y},a);if(!(0,i.isEqual)(s,this.items)&&(this.items=s,s.length)){var c=e.getXScale().field,f=s[0].data[c],h=[],p=e.geometries;if((0,i.each)(p,(function(t){if("interval"===t.type||"schema"===t.type){var e=t.getElementsBy((function(t){return t.getData()[c]===f}));h=h.concat(e)}})),h.length){var d=e.getCoordinate(),g=h[0].shape.getCanvasBBox(),y=h[0].shape.getCanvasBBox(),v=g;(0,i.each)(h,(function(t){var e=t.shape.getCanvasBBox();d.isTransposed?(e.minY<g.minY&&(g=e),e.maxY>y.maxY&&(y=e)):(e.minX<g.minX&&(g=e),e.maxX>y.maxX&&(y=e)),v.x=Math.min(e.minX,v.minX),v.y=Math.min(e.minY,v.minY),v.width=Math.max(e.maxX,v.maxX)-v.x,v.height=Math.max(e.maxY,v.maxY)-v.y}));var m=e.backgroundGroup,_=e.coordinateBBox,x=void 0;if(d.isRect){var b=e.getXScale(),M=t||{},C=M.appendRatio,P=M.appendWidth;(0,i.isNil)(P)&&(C=(0,i.isNil)(C)?b.isLinear?0:.25:C,P=d.isTransposed?C*y.height:C*g.width);var S=void 0,O=void 0,w=void 0,A=void 0;d.isTransposed?(S=_.minX,O=Math.min(y.minY,g.minY)-P,w=_.width,A=v.height+2*P):(S=Math.min(g.minX,y.minX)-P,O=_.minY,w=v.width+2*P,A=_.height),x=[["M",S,O],["L",S+w,O],["L",S+w,O+A],["L",S,O+A],["Z"]]}else{var T=(0,i.head)(h),E=(0,i.last)(h),I=(0,o.getAngle)(T.getModel(),d).startAngle,L=(0,o.getAngle)(E.getModel(),d).endAngle,D=d.getCenter(),B=d.getRadius(),j=d.innerRadius*B;x=(0,o.getSectorPath)(D.x,D.y,B,I,L,j)}if(this.regionPath)this.regionPath.attr("path",x),this.regionPath.show();else{var R=(0,i.get)(t,"style",l);this.regionPath=m.addShape({type:"path",name:"active-region",capture:!1,attrs:r.__assign(r.__assign({},R),{path:x})})}}}},e.prototype.hide=function(){this.regionPath&&this.regionPath.hide(),this.items=null},e.prototype.destroy=function(){this.hide(),this.regionPath&&this.regionPath.remove(!0),t.prototype.destroy.call(this)},e}(s.default);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(4),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.showTooltip=function(t,e){var n=(0,a.getSilbings)(t);(0,i.each)(n,(function(n){var r=(0,a.getSiblingPoint)(t,n,e);n.showTooltip(r)}))},e.prototype.hideTooltip=function(t){var e=(0,a.getSilbings)(t);(0,i.each)(e,(function(t){t.hideTooltip()}))},e}(r.__importDefault(n(227)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(41),o=r.__importDefault(n(11)),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return r.__extends(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},e.prototype.show=function(){var t=this.context.event,e=this.timeStamp,n=+new Date;if(n-e>16){var r=this.location,a={x:t.x,y:t.y};r&&(0,i.isEqual)(r,a)||this.showTooltip(a),this.timeStamp=n,this.location=a}},e.prototype.hide=function(){this.hideTooltip(),this.location=null},e.prototype.showTooltip=function(t){var e=this.context.event.target;if(e&&e.get("tip")){this.tooltip||this.renderTooltip();var n=e.get("tip");this.tooltip.update(r.__assign({title:n},t)),this.tooltip.show()}},e.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},e.prototype.renderTooltip=function(){var t,e=this.context.view,n=e.canvas,o={start:{x:0,y:0},end:{x:n.get("width"),y:n.get("height")}},l=e.getTheme(),u=(0,i.get)(l,["components","tooltip","domStyles"],{}),c=new s.HtmlTooltip({parent:n.get("el").parentNode,region:o,visible:!1,crosshairs:null,domStyles:r.__assign({},(0,i.deepMix)({},u,(t={},t[a.TOOLTIP_CSS_CONST.CONTAINER_CLASS]={"max-width":"50%"},t[a.TOOLTIP_CSS_CONST.TITLE_CLASS]={"word-break":"break-all"},t)))});c.init(),c.setCapture(!1),this.tooltip=c},e}(o.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return r.__extends(e,t),e.prototype.active=function(){this.setState()},e}(r.__importDefault(n(127)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(11)),a=n(4),o=n(1),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.cache={},e}return r.__extends(e,t),e.prototype.getColorScale=function(t,e){var n=e.geometry.getAttribute("color");return n?t.getScaleByField(n.getFields()[0]):null},e.prototype.getLinkPath=function(t,e){var n=this.context.view.getCoordinate().isTransposed,r=t.shape.getCanvasBBox(),i=e.shape.getCanvasBBox();return n?[["M",r.minX,r.minY],["L",i.minX,i.maxY],["L",i.maxX,i.maxY],["L",r.maxX,r.minY],["Z"]]:[["M",r.maxX,r.minY],["L",i.minX,i.minY],["L",i.minX,i.maxY],["L",r.maxX,r.maxY],["Z"]]},e.prototype.addLinkShape=function(t,e,n,i){var a={opacity:.4,fill:e.shape.attr("fill")};t.addShape({type:"path",attrs:r.__assign(r.__assign({},(0,o.deepMix)({},a,(0,o.isFunction)(i)?i(a,e):i)),{path:this.getLinkPath(e,n)})})},e.prototype.linkByElement=function(t,e){var n=this,r=this.context.view,i=this.getColorScale(r,t);if(i){var s=(0,a.getElementValue)(t,i.field);if(!this.cache[s]){var l=(0,a.getElementsByField)(r,i.field,s),u=this.linkGroup.addGroup();this.cache[s]=u;var c=l.length;(0,o.each)(l,(function(t,r){if(r<c-1){var i=l[r+1];n.addLinkShape(u,t,i,e)}}))}}},e.prototype.removeLink=function(t){var e=this.getColorScale(this.context.view,t);if(e){var n=(0,a.getElementValue)(t,e.field);this.cache[n]&&(this.cache[n].remove(),this.cache[n]=null)}},e.prototype.link=function(t){var e=this.context;this.linkGroup||(this.linkGroup=e.view.foregroundGroup.addGroup({id:"link-by-color-group",capture:!1}));var n=(0,a.getCurrentElement)(e);n&&this.linkByElement(n,null==t?void 0:t.style)},e.prototype.unlink=function(){var t=(0,a.getCurrentElement)(this.context);t&&this.removeLink(t)},e.prototype.clear=function(){this.linkGroup&&this.linkGroup.clear(),this.cache={}},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.linkGroup&&this.linkGroup.remove()},e}(i.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return r.__extends(e,t),e.prototype.active=function(){this.setState()},e}(r.__importDefault(n(129)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return r.__extends(e,t),e.prototype.active=function(){this.setState()},e}(r.__importDefault(n(130)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(4),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.setStateByElement=function(t,e){var n=this.context.view,r=t.geometry.getAttribute("color");if(r){var a=n.getScaleByField(r.getFields()[0]),o=(0,i.getElementValue)(t,a.field),s=(0,i.getElements)(n),l=s.filter((function(t){return(0,i.getElementValue)(t,a.field)===o}));this.setHighlightBy(s,(function(t){return l.includes(t)}),e)}},e}(r.__importDefault(n(131)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(4),a=r.__importStar(n(131)),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.setElementHighlight=function(t,e){e(t)?(t.hasState(a.STATUS_UNACTIVE)&&t.setState(a.STATUS_UNACTIVE,!1),t.setState(a.STATUS_ACTIVE,!0)):(t.setState(a.STATUS_UNACTIVE,!0),t.hasState(a.STATUS_ACTIVE)&&t.setState(a.STATUS_ACTIVE,!1))},e.prototype.setStateByElement=function(t,e){var n=this.context.view,r=n.getXScale(),a=(0,i.getElementValue)(t,r.field),o=(0,i.getElements)(n),s=o.filter((function(t){return(0,i.getElementValue)(t,r.field)===a}));this.setHighlightBy(o,(function(t){return s.includes(t)}),e)},e.prototype.toggle=function(){var t=(0,i.getCurrentElement)(this.context);if(t){var e=t.hasState(this.stateName);this.setStateByElement(t,!e)}},e}(a.default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ELEMENT_RANGE_HIGHLIGHT_EVENTS=void 0;var r,i=n(0),a=n(56),o=n(132),s=i.__importDefault(n(129));!function(t){t.BEFORE_HIGHLIGHT="element-range-highlight:beforehighlight",t.AFTER_HIGHLIGHT="element-range-highlight:afterhighlight",t.BEFORE_CLEAR="element-range-highlight:beforeclear",t.AFTER_CLEAR="element-range-highlight:afterclear"}(r||(r={})),e.ELEMENT_RANGE_HIGHLIGHT_EVENTS=r;var l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return i.__extends(e,t),e.prototype.clearViewState=function(t){(0,o.clearHighlight)(t)},e.prototype.highlight=function(){var t=this.context,e=t.view,n={view:e,event:t.event,highlightElements:this.getIntersectElements()};e.emit(r.BEFORE_HIGHLIGHT,a.Event.fromData(e,r.BEFORE_HIGHLIGHT,n)),this.setState(),e.emit(r.AFTER_HIGHLIGHT,a.Event.fromData(e,r.AFTER_HIGHLIGHT,n))},e.prototype.clear=function(){var e=this.context.view;e.emit(r.BEFORE_CLEAR,a.Event.fromData(e,r.BEFORE_CLEAR,{})),t.prototype.clear.call(this),e.emit(r.AFTER_CLEAR,a.Event.fromData(e,r.AFTER_CLEAR,{}))},e.prototype.setElementsState=function(t,e,n){(0,o.setHighlightBy)(n,(function(e){return t.indexOf(e)>=0}),e)},e}(s.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(4),a=n(132),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return r.__extends(e,t),e.prototype.highlight=function(){this.setState()},e.prototype.setElementState=function(t,e){var n=this.context.view,r=(0,i.getElements)(n);(0,a.setHighlightBy)(r,(function(e){return t===e}),e)},e.prototype.clear=function(){var t=this.context.view;(0,a.clearHighlight)(t)},e}(r.__importDefault(n(130)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return r.__extends(e,t),e.prototype.selected=function(){this.setState()},e}(r.__importDefault(n(129)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return r.__extends(e,t),e.prototype.selected=function(){this.setState()},e}(r.__importDefault(n(127)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return r.__extends(e,t),e.prototype.selected=function(){this.setState()},e}(r.__importDefault(n(130)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return r.__extends(e,t),e.prototype.active=function(){this.setState()},e}(r.__importDefault(n(44)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(621),o=r.__importDefault(n(44)),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e.ignoreItemStates=["unchecked"],e}return r.__extends(e,t),e.prototype.setItemsState=function(t,e,n){this.setHighlightBy(t,(function(t){return t.name===e}),n)},e.prototype.setItemState=function(t,e,n){t.getItems();this.setHighlightBy(t,(function(t){return t===e}),n)},e.prototype.setHighlightBy=function(t,e,n){var r=t.getItems();if(n)(0,i.each)(r,(function(n){e(n)?(t.hasState(n,"inactive")&&t.setItemState(n,"inactive",!1),t.setItemState(n,"active",!0)):t.hasState(n,"active")||t.setItemState(n,"inactive",!0)}));else{var a=t.getItemsByState("active"),o=!0;(0,i.each)(a,(function(t){if(!e(t))return o=!1,!1})),o?this.clear():(0,i.each)(r,(function(n){e(n)&&(t.hasState(n,"active")&&t.setItemState(n,"active",!1),t.setItemState(n,"inactive",!0))}))}},e.prototype.highlight=function(){this.setState()},e.prototype.clear=function(){var t=this.getTriggerListInfo();if(t)(0,a.clearList)(t.list);else{var e=this.getAllowComponents();(0,i.each)(e,(function(t){t.clearItemsState("active"),t.clearItemsState("inactive")}))}},e}(o.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.clearList=void 0;var r=n(1);e.clearList=function(t){var e=t.getItems();(0,r.each)(e,(function(e){t.hasState(e,"active")&&t.setItemState(e,"active",!1),t.hasState(e,"inactive")&&t.setItemState(e,"inactive",!1)}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return r.__extends(e,t),e.prototype.selected=function(){this.setState()},e}(r.__importDefault(n(44)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="unchecked",e}return r.__extends(e,t),e.prototype.unchecked=function(){this.setState()},e}(r.__importDefault(n(44)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=r.__importDefault(n(44)),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="checked",e}return r.__extends(e,t),e.prototype.setItemState=function(t,e,n){this.setCheckedBy(t,(function(t){return t===e}),n)},e.prototype.setCheckedBy=function(t,e,n){var r=t.getItems();n&&(0,i.each)(r,(function(n){e(n)?(t.hasState(n,"unchecked")&&t.setItemState(n,"unchecked",!1),t.setItemState(n,"checked",!0)):t.hasState(n,"checked")||t.setItemState(n,"unchecked",!0)}))},e.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var e=t.list,n=t.item;!(0,i.some)(e.getItems(),(function(t){return e.hasState(t,"unchecked")}))||e.hasState(n,"unchecked")?this.setItemState(e,n,!0):this.reset()}},e.prototype.checked=function(){this.setState()},e.prototype.reset=function(){var t=this.getAllowComponents();(0,i.each)(t,(function(t){t.clearItemsState("checked"),t.clearItemsState("unchecked")}))},e}(a.default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(44)),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.toggle=function(){var t,e,n,i,a,o,s,l,u=this.getTriggerListInfo();if(null==u?void 0:u.item){var c=u.list,f=u.item,h=c.getItems(),p=h.filter((function(t){return!c.hasState(t,"unchecked")})),d=h.filter((function(t){return c.hasState(t,"unchecked")})),g=p[0];if(h.length===p.length)try{for(var y=r.__values(h),v=y.next();!v.done;v=y.next()){var m=v.value;c.setItemState(m,"unchecked",m.id!==f.id)}}catch(e){t={error:e}}finally{try{v&&!v.done&&(e=y.return)&&e.call(y)}finally{if(t)throw t.error}}else if(h.length-d.length==1)if(g.id===f.id)try{for(var _=r.__values(h),x=_.next();!x.done;x=_.next()){m=x.value;c.setItemState(m,"unchecked",!1)}}catch(t){n={error:t}}finally{try{x&&!x.done&&(i=_.return)&&i.call(_)}finally{if(n)throw n.error}}else try{for(var b=r.__values(h),M=b.next();!M.done;M=b.next()){m=M.value;c.setItemState(m,"unchecked",m.id!==f.id)}}catch(t){a={error:t}}finally{try{M&&!M.done&&(o=b.return)&&o.call(b)}finally{if(a)throw a.error}}else try{for(var C=r.__values(h),P=C.next();!P.done;P=C.next()){m=P.value;c.setItemState(m,"unchecked",m.id!==f.id)}}catch(t){s={error:t}}finally{try{P&&!P.done&&(l=C.return)&&l.call(C)}finally{if(s)throw s.error}}}},e}(i.default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(44)),a=n(1),o=n(41),s=n(19),l="legend-radio-tip",u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return r.__extends(e,t),e.prototype.show=function(){var t=this.getTriggerListInfo();if(null==t?void 0:t.item){var e=t.list,n=t.item;e.setItemState(n,"showRadio",!0)}},e.prototype.hide=function(){var t=this.getTriggerListInfo();if(null==t?void 0:t.item){var e=t.list,n=t.item;e.setItemState(n,"showRadio",!1)}},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},e.prototype.showTip=function(){var t=this.context.event,e=this.timeStamp,n=+new Date,r=this.context.event.target;if(n-e>16&&"legend-item-radio"===r.get("name")){var i=this.location,o={x:t.x,y:t.y};this.timeStamp=n,this.location=o,i&&(0,a.isEqual)(i,o)||this.showTooltip(o)}},e.prototype.hideTip=function(){this.hideTooltip(),this.location=null},e.prototype.showTooltip=function(t){var e=this.context,n=e.event.target;if(n&&n.get("tip")){this.tooltip||this.renderTooltip();var i=e.view.getCanvas().get("el").getBoundingClientRect(),a=i.x,o=i.y;this.tooltip.update(r.__assign(r.__assign({title:n.get("tip")},t),{x:t.x+a,y:t.y+o})),this.tooltip.show()}},e.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},e.prototype.renderTooltip=function(){var t,e=((t={})[o.TOOLTIP_CSS_CONST.CONTAINER_CLASS]={padding:"6px 8px",transform:"translate(-50%, -80%)",background:"rgba(0,0,0,0.75)",color:"#fff","border-radius":"2px","z-index":100},t[o.TOOLTIP_CSS_CONST.TITLE_CLASS]={"font-size":"12px","line-height":"14px","margin-bottom":0,"word-break":"break-all"},t);document.getElementById(l)&&document.body.removeChild(document.getElementById(l));var n=new s.HtmlTooltip({parent:document.body,region:null,visible:!1,crosshairs:null,domStyles:e,containerId:l});n.init(),n.setCapture(!1),this.tooltip=n},e}(i.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(4),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="circle",e}return r.__extends(e,t),e.prototype.getMaskAttrs=function(){var t=this.points,e=(0,i.last)(this.points),n=0,r=0,o=0;if(t.length){var s=t[0];n=(0,a.distance)(s,e)/2,r=(e.x+s.x)/2,o=(e.y+s.y)/2}return{x:r,y:o,r:n}},e}(r.__importDefault(n(133)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1);function a(t){t.x=(0,i.clamp)(t.x,0,1),t.y=(0,i.clamp)(t.y,0,1)}var o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dim="x",e.inPlot=!0,e}return r.__extends(e,t),e.prototype.getRegion=function(){var t=null,e=null,n=this.points,r=this.dim,o=this.context.view.getCoordinate(),s=o.invert((0,i.head)(n)),l=o.invert((0,i.last)(n));return this.inPlot&&(a(s),a(l)),"x"===r?(t=o.convert({x:s.x,y:0}),e=o.convert({x:l.x,y:1})):(t=o.convert({x:0,y:s.y}),e=o.convert({x:1,y:l.y})),{start:t,end:e}},e}(r.__importDefault(n(228)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(4),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getMaskPath=function(){var t=this.points;return(0,i.getSpline)(t,!0)},e}(r.__importDefault(n(229)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.setCursor=function(t){this.context.view.getCanvas().setCursor(t)},e.prototype.default=function(){this.setCursor("default")},e.prototype.pointer=function(){this.setCursor("pointer")},e.prototype.move=function(){this.setCursor("move")},e.prototype.crosshair=function(){this.setCursor("crosshair")},e.prototype.wait=function(){this.setCursor("wait")},e.prototype.help=function(){this.setCursor("help")},e.prototype.text=function(){this.setCursor("text")},e.prototype.eResize=function(){this.setCursor("e-resize")},e.prototype.wResize=function(){this.setCursor("w-resize")},e.prototype.nResize=function(){this.setCursor("n-resize")},e.prototype.sResize=function(){this.setCursor("s-resize")},e.prototype.neResize=function(){this.setCursor("ne-resize")},e.prototype.nwResize=function(){this.setCursor("nw-resize")},e.prototype.seResize=function(){this.setCursor("se-resize")},e.prototype.swResize=function(){this.setCursor("sw-resize")},e.prototype.nsResize=function(){this.setCursor("ns-resize")},e.prototype.ewResize=function(){this.setCursor("ew-resize")},e}(r.__importDefault(n(11)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=r.__importDefault(n(11)),o=n(4),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.filterView=function(t,e,n){var r=this;t.getScaleByField(e)&&t.filter(e,n),t.views&&t.views.length&&(0,i.each)(t.views,(function(t){r.filterView(t,e,n)}))},e.prototype.filter=function(){var t=(0,o.getDelegationObject)(this.context);if(t){var e=this.context.view,n=t.component,i=n.get("field");if((0,o.isList)(t)){if(i){var a=n.getItemsByState("unchecked"),s=(0,o.getScaleByField)(e,i),l=a.map((function(t){return t.name}));l.length?this.filterView(e,i,(function(t){var e=s.getText(t);return!l.includes(e)})):this.filterView(e,i,null),e.render(!0)}}else if((0,o.isSlider)(t)){var u=n.getValue(),c=r.__read(u,2),f=c[0],h=c[1];this.filterView(e,i,(function(t){return t>=f&&t<=h})),e.render(!0)}}},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=r.__importDefault(n(230)),o=n(4),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.filterView=function(t,e,n){var r=(0,o.getSilbings)(t);(0,i.each)(r,(function(t){t.filter(e,n)}))},e.prototype.reRender=function(t){var e=(0,o.getSilbings)(t);(0,i.each)(e,(function(t){t.render(!0)}))},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=r.__importDefault(n(11)),o=n(4),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.filter=function(){var t=(0,o.getDelegationObject)(this.context),e=this.context.view,n=(0,o.getElements)(e);if((0,o.isMask)(this.context)){var a=(0,o.getMaskedElements)(this.context,10);a&&(0,i.each)(n,(function(t){a.includes(t)?t.show():t.hide()}))}else if(t){var s=t.component,l=s.get("field");if((0,o.isList)(t)){if(l){var u=s.getItemsByState("unchecked"),c=(0,o.getScaleByField)(e,l),f=u.map((function(t){return t.name}));(0,i.each)(n,(function(t){var e=(0,o.getElementValue)(t,l),n=c.getText(e);f.indexOf(n)>=0?t.hide():t.show()}))}}else if((0,o.isSlider)(t)){var h=s.getValue(),p=r.__read(h,2),d=p[0],g=p[1];(0,i.each)(n,(function(t){var e=(0,o.getElementValue)(t,l);e>=d&&e<=g?t.show():t.hide()}))}}},e.prototype.clear=function(){var t=(0,o.getElements)(this.context.view);(0,i.each)(t,(function(t){t.show()}))},e.prototype.reset=function(){this.clear()},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=r.__importDefault(n(11)),o=n(4),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.byRecord=!1,e}return r.__extends(e,t),e.prototype.filter=function(){(0,o.isMask)(this.context)&&(this.byRecord?this.filterByRecord():this.filterByBBox())},e.prototype.filterByRecord=function(){var t=this.context.view,e=(0,o.getMaskedElements)(this.context,10);if(e){var n=t.getXScale().field,r=t.getYScales()[0].field,a=e.map((function(t){return t.getModel().data})),s=(0,o.getSilbings)(t);(0,i.each)(s,(function(t){var e=(0,o.getElements)(t);(0,i.each)(e,(function(t){var e=t.getModel().data;(0,o.isInRecords)(a,e,n,r)?t.show():t.hide()}))}))}},e.prototype.filterByBBox=function(){var t=this,e=this.context.view,n=(0,o.getSilbings)(e);(0,i.each)(n,(function(e){var n=(0,o.getSiblingMaskElements)(t.context,e,10),r=(0,o.getElements)(e);n&&(0,i.each)(r,(function(t){n.includes(t)?t.show():t.hide()}))}))},e.prototype.reset=function(){var t=(0,o.getSilbings)(this.context.view);(0,i.each)(t,(function(t){var e=(0,o.getElements)(t);(0,i.each)(e,(function(t){t.show()}))}))},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(8),a=n(1),o=n(113),s=r.__importDefault(n(11)),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.buttonGroup=null,e.buttonCfg={name:"button",text:"button",textStyle:{x:0,y:0,fontSize:12,fill:"#333333",cursor:"pointer"},padding:[8,10],style:{fill:"#f7f7f7",stroke:"#cccccc",cursor:"pointer"},activeStyle:{fill:"#e6e6e6"}},e}return r.__extends(e,t),e.prototype.getButtonCfg=function(){return(0,a.deepMix)(this.buttonCfg,this.cfg)},e.prototype.drawButton=function(){var t=this.getButtonCfg(),e=this.context.view.foregroundGroup.addGroup({name:t.name}),n=e.addShape({type:"text",name:"button-text",attrs:r.__assign({text:t.text},t.textStyle)}).getBBox(),i=(0,o.parsePadding)(t.padding),a=e.addShape({type:"rect",name:"button-rect",attrs:r.__assign({x:n.x-i[3],y:n.y-i[0],width:n.width+i[1]+i[3],height:n.height+i[0]+i[2]},t.style)});a.toBack(),e.on("mouseenter",(function(){a.attr(t.activeStyle)})),e.on("mouseleave",(function(){a.attr(t.style)})),this.buttonGroup=e},e.prototype.resetPosition=function(){var t=this.context.view.getCoordinate().convert({x:1,y:1}),e=this.buttonGroup,n=e.getBBox(),r=i.ext.transform(null,[["t",t.x-n.width-10,t.y+n.height+5]]);e.setMatrix(r)},e.prototype.show=function(){this.buttonGroup||this.drawButton(),this.resetPosition(),this.buttonGroup.show()},e.prototype.hide=function(){this.buttonGroup&&this.buttonGroup.hide()},e.prototype.destroy=function(){var e=this.buttonGroup;e&&e.remove(),t.prototype.destroy.call(this)},e}(s.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(11)),a=n(4),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.starting=!1,e.dragStart=!1,e}return r.__extends(e,t),e.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint()},e.prototype.drag=function(){if(this.startPoint){var t=this.context.getCurrentPoint(),e=this.context.view,n=this.context.event;this.dragStart?e.emit("drag",{target:n.target,x:n.x,y:n.y}):(0,a.distance)(t,this.startPoint)>4&&(e.emit("dragstart",{target:n.target,x:n.x,y:n.y}),this.dragStart=!0)}},e.prototype.end=function(){if(this.dragStart){var t=this.context.view,e=this.context.event;t.emit("dragend",{target:e.target,x:e.x,y:e.y})}this.starting=!1,this.dragStart=!1},e}(i.default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(8),a=n(77),o=n(4),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.starting=!1,e.isMoving=!1,e.startPoint=null,e.startMatrix=null,e}return r.__extends(e,t),e.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint(),this.startMatrix=this.context.view.middleGroup.getMatrix()},e.prototype.move=function(){if(this.starting){var t=this.startPoint,e=this.context.getCurrentPoint();if((0,o.distance)(t,e)>5&&!this.isMoving&&(this.isMoving=!0),this.isMoving){var n=this.context.view,r=i.ext.transform(this.startMatrix,[["t",e.x-t.x,e.y-t.y]]);n.backgroundGroup.setMatrix(r),n.foregroundGroup.setMatrix(r),n.middleGroup.setMatrix(r)}}},e.prototype.end=function(){this.isMoving&&(this.isMoving=!1),this.startMatrix=null,this.starting=!1,this.startPoint=null},e.prototype.reset=function(){this.starting=!1,this.startPoint=null,this.isMoving=!1;var t=this.context.view;t.backgroundGroup.resetMatrix(),t.foregroundGroup.resetMatrix(),t.middleGroup.resetMatrix(),this.isMoving=!1},e}(a.Action);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.startPoint=null,e.starting=!1,e.startCache={},e}return r.__extends(e,t),e.prototype.start=function(){var t=this;this.startPoint=this.context.getCurrentPoint(),this.starting=!0;var e=this.dims;(0,i.each)(e,(function(e){var n=t.getScale(e),r=n.min,i=n.max,a=n.values;t.startCache[e]={min:r,max:i,values:a}}))},e.prototype.end=function(){this.startPoint=null,this.starting=!1,this.startCache={}},e.prototype.translate=function(){var t=this;if(this.starting){var e=this.startPoint,n=this.context.view.getCoordinate(),r=this.context.getCurrentPoint(),a=n.invert(e),o=n.invert(r),s=o.x-a.x,l=o.y-a.y,u=this.context.view,c=this.dims;(0,i.each)(c,(function(e){t.translateDim(e,{x:-1*s,y:-1*l})})),u.render(!0)}},e.prototype.translateDim=function(t,e){if(this.hasDim(t)){var n=this.getScale(t);n.isLinear&&this.translateLinear(t,n,e)}},e.prototype.translateLinear=function(t,e,n){var r=this.context.view,i=this.startCache[t],a=i.min,o=i.max,s=o-a,l=n[t]*s;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:e.nice,min:a,max:o}),r.scale(e.field,{nice:!1,min:a+l,max:o+l})},e.prototype.reset=function(){t.prototype.reset.call(this),this.startPoint=null,this.starting=!1},e}(r.__importDefault(n(231)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.zoomRatio=.05,e}return r.__extends(e,t),e.prototype.zoomIn=function(){this.zoom(this.zoomRatio)},e.prototype.zoom=function(t){var e=this,n=this.dims;(0,i.each)(n,(function(n){e.zoomDim(n,t)})),this.context.view.render(!0)},e.prototype.zoomOut=function(){this.zoom(-1*this.zoomRatio)},e.prototype.zoomDim=function(t,e){if(this.hasDim(t)){var n=this.getScale(t);n.isLinear&&this.zoomLinear(t,n,e)}},e.prototype.zoomLinear=function(t,e,n){var r=this.context.view;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:e.nice,min:e.min,max:e.max});var i=this.cacheScaleDefs[t],a=i.max-i.min,o=e.min,s=e.max,l=n*a,u=o-l,c=s+l,f=(c-u)/a;c>u&&f<100&&f>.01&&r.scale(e.field,{nice:!1,min:o-l,max:s+l})},e}(r.__importDefault(n(231)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(77);var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.scroll=function(t){var e=this.context,n=e.view,r=e.event;if(n.getOptions().scrollbar){var a=(null==t?void 0:t.wheelDelta)||1,o=n.getController("scrollbar"),s=n.getXScale(),l=n.getOptions().data,u=(0,i.size)((0,i.valuesOfKey)(l,s.field)),c=(0,i.size)(s.values),f=o.getValue(),h=Math.floor((u-c)*f)+(function(t){return t.gEvent.originalEvent.deltaY>0}(r)?a:-a),p=a/(u-c)/1e4,d=(0,i.clamp)(h/(u-c)+p,0,1);o.setValue(d)}},e}(a.Action);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(41),a=n(1),o=n(19),s=r.__importDefault(n(11)),l=n(4),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.show=function(){var t=this.context,e=(0,l.getDelegationObject)(t).axis.cfg.title,n=e.description,r=e.text,a=t.event,o=a.x,s=a.y;this.tooltip||this.renderTooltip(),this.tooltip.update({title:r||"",customContent:function(){return'\n <div class="'.concat(i.TOOLTIP_CSS_CONST.CONTAINER_CLASS,'">\n <div class="').concat(i.TOOLTIP_CSS_CONST.TITLE_CLASS,'">\n ').concat(r,'\n </div>\n <div class="').concat(i.TOOLTIP_CSS_CONST.LIST_CLASS,'">\n ').concat(n,"\n </div>\n </div>\n ")},x:o,y:s}),this.tooltip.show()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},e.prototype.hide=function(){this.tooltip&&this.tooltip.hide()},e.prototype.renderTooltip=function(){var t,e=this.context.view.canvas,n={start:{x:0,y:0},end:{x:e.get("width"),y:e.get("height")}},s=new o.HtmlTooltip({parent:e.get("el").parentNode,region:n,visible:!1,containerId:"aixs-description-tooltip",domStyles:r.__assign({},(0,a.deepMix)({},(t={},t[i.TOOLTIP_CSS_CONST.CONTAINER_CLASS]={"max-width":"50%",padding:"5px","line-height":"15px"},t[i.TOOLTIP_CSS_CONST.TITLE_CLASS]={"word-break":"break-all","font-size":"14px","margin-bottom":"3px"},t[i.TOOLTIP_CSS_CONST.LIST_CLASS]={"word-break":"break-all",opacity:".5"},t)))});s.init(),s.setCapture(!1),this.tooltip=s},e}(s.default);e.default=u}])}));
  26. //# sourceMappingURL=g2.min.js.map